/*
Theme Name: Kingitus3D
Template: storefront
Version: 1.54
*/

:root {
  /* ── TOOTEPILTIDE TAUST ─────────────────────────────────────────
     --k3d-img-bg   : transparent = sama mis taga (kaart/leht, praegu valge)
                      #fff        = alati valge
                      linear-gradient(135deg,#fff0f4,#ffe0ea) = vana roosa
     --k3d-img-blur : none  = udune pildi-taust väljas
                      block = udune pildi-taust sees
     ───────────────────────────────────────────────────────────── */
  --k3d-img-bg: transparent;
  --k3d-img-blur: none;
  --pink: #E8527A;
  --pink-light: #FFB3C6;
  --pink-pale: #FFF0F4;
  --black: #1A1A1A;
  --gray: #F5F5F5;
  --white: #FFFFFF;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(232,82,122,0.13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: #1A1A1A; background: white; }

a, button, a:focus, button:focus, a:active, button:active { outline: none !important; }

/* Roosa hover kõigile linkidele */
a[style*="color:#E8527A"] { transition: opacity .2s; }
a[style*="color:#E8527A"]:hover { opacity: .75; }

/* Hide Storefront defaults */
.site-header { display: none !important; height: 0 !important; margin: 0 !important; padding: 0 !important; }
.storefront-handheld-footer-bar { display: none !important; }
#secondary { display: none !important; }
#primary { width: 100% !important; float: none !important; }
.col-full { max-width: 100% !important; padding: 0 !important; }
.site-content { padding: 0 !important; }
body { padding-top: 70px !important; }
body.home { padding-top: 0 !important; }

/* Nav */
/* Mobiilimenüü ja hamburger — peidetud desktopil */
#k3d-hamburger { display: none; }
.k3d-mobile-menu { display: none; }

.k3d-nav-logo { display: flex; align-items: center; }
.k3d-nav-left { display: flex; align-items: center; min-width: 44px; }
.k3d-nav-right { display: flex; align-items: center; gap: 12px; }
/* Desktop: hamburger peidetud */
#k3d-hamburger { display: none; }
.k3d-mobile-menu { display: none; }

nav.k3d-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  background: white;
  border-bottom: 1px solid #f0e0e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  height: 70px;
  box-sizing: border-box;
}

nav.k3d-nav .nav-links a { transition: color .2s; }
nav.k3d-nav .nav-links a:hover { color: #E8527A !important; }

/* Hero */
.hero {
  background: #0d0d0d;
  background-image: none !important;
  min-height: 0 !important;
  height: auto !important;
  display: flex;
  align-items: center;
  padding: 110px 5% !important;
  position: relative;
  overflow: hidden;
  color: white;
}
.hero-grid { display: none !important; }
.hero-content { flex: 1; max-width: 560px; position: relative; z-index: 3; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(232,82,122,0.15);
  border: 1px solid rgba(232,82,122,0.4);
  color: #ff8fab;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.06;
  color: white;
  margin-bottom: 24px;
}
.hero h1 .line-pink { color: #E8527A; display: block; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.6); line-height: 1.75; margin-bottom: 40px; }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Buttons */
.btn-primary {
  background: #E8527A;
  color: white;
  padding: 15px 34px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 32px rgba(232,82,122,0.5);
}
.btn-secondary {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
  padding: 15px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Stats */
.stats-bar {
  background: #111;
  color: white;
  display: flex;
  justify-content: center;
}
.stat-item {
  flex: 1;
  max-width: 220px;
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: #FFB3C6;
}
.stat-label { font-size: 0.82rem; color: #aaa; margin-top: 4px; }

/* Section */
.section { padding: 90px 5%; }
.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #E8527A;
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.section-sub { color: #666; max-width: 500px; line-height: 1.7; margin-bottom: 56px; }

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}
.step-card {
  background: #F5F5F5;
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
}
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  font-weight: 900;
  color: rgba(232,82,122,0.08);
  position: absolute;
  top: 10px; right: 18px;
  line-height: 1;
}
.step-icon { font-size: 2rem; margin-bottom: 16px; display: inline-block; }
.step-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { font-size: 0.88rem; color: #666; line-height: 1.6; }

/* Product cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
  padding: 32px 5%;
}
.product-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid #f0f0f0;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232,82,122,0.15);
  border-color: #FFB3C6;
}
.product-category {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E8527A;
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-short { font-size: 0.84rem; color: #666; line-height: 1.5; }
.product-price { font-size: 1.25rem; font-weight: 800; }
.product-info { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; }
.product-btn {
  background: #E8527A;
  color: white;
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: white;
  border-radius: 16px;
  padding: 28px;
  border: 1.5px solid #f0f0f0;
}
.stars { color: #E8527A; font-size: 1rem; margin-bottom: 14px; }
.testimonial-text { font-size: 0.9rem; line-height: 1.7; color: #444; margin-bottom: 18px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; border-radius: 50%; background: #FFF0F4; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.author-name { font-weight: 700; font-size: 0.88rem; }
.author-sub { font-size: 0.76rem; color: #999; }

/* Footer newsletter - väike */
.k3d-newsletter-input {
  flex: 1;
  min-width: 200px;
  padding: 13px 18px;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.07);
  color: white;
  font-family: Inter, sans-serif;
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.k3d-newsletter-input::placeholder { color: rgba(255,255,255,0.35); }
.k3d-newsletter-input:focus { border-color: #E8527A; }
.k3d-newsletter-btn {
  background: #E8527A;
  color: white;
  border: none;
  padding: 13px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  outline: none;
}
.k3d-newsletter-btn:hover { background: #d44068; transform: translateY(-1px); }

/* Footer */
footer { background: #111; color: white; padding: 60px 5% 0; }
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr;
  gap: 30px;
  margin-bottom: 48px;
  align-items: start;
}
.footer-brand p { font-size: 0.85rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin-top: 14px; }
.footer-col h4 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: white; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.85rem; outline: none; }
.footer-col a:hover { color: #FFB3C6; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; outline: none; }

/* WC */
.woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #place_order {
  background: #E8527A !important;
  color: white !important;
  border-radius: 50px !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
}
.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 24px 0 !important;
  list-style: none !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: start !important;
  justify-content: start !important;
  box-sizing: border-box !important;
}
.woocommerce ul.products li.product {
  background: white !important;
  border-radius: 16px !important;
  border: 1.5px solid #f0f0f0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  width: auto !important;
  align-self: start !important;
}

/* Filter */
.filter-btn {
  padding: 8px 20px; border-radius: 50px; border: 1.5px solid #ddd;
  background: white; font-size: .85rem; font-weight: 500; cursor: pointer;
  color: #1a1a1a; text-decoration: none; display: inline-block;
}
.filter-btn.active { background: #E8527A; border-color: #E8527A; color: white; }

/* Responsive */
@media (max-width: 768px) {
  /* Peida chipid CSS muutujaga */
  :root { --chip-display: none; }

  /* Nav mobiilil: hamburger vasak | logo kesk | ostukorv parem */
  .nav-links { display: none !important; }
  .k3d-nav {
    padding: 0 4% !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
  }
  /* Mobiilil body padding = nav kõrgus täpselt */
  body { padding-top: 70px !important; }
  body.home { padding-top: 0 !important; }
  .k3d-nav-logo {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }
  .k3d-nav-left { min-width: 44px; }
  .k3d-nav-right { display: flex; align-items: center; gap: 8px; }

  /* Kassasse nupp peidetud mobiilil */
  .k3d-nav-kassa { display: none !important; }

  /* Hamburger nupp — nähtav mobiilil */
  .k3d-hamburger {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
    flex-shrink: 0;
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
    box-shadow: none !important;
  }
  .k3d-hamburger:focus,
  .k3d-hamburger:focus-visible,
  .k3d-hamburger:active {
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
  }
  .k3d-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: transform .3s ease, opacity .3s ease, width .3s ease;
  }
  /* Avatud olekus: kolm joont muutuvad kaheks diagonaaliks */
  .k3d-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .k3d-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
  .k3d-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Mobiilimenüü */
  .k3d-mobile-menu {
    display: none;
    position: fixed;
    top: 70px; /* = nav kõrgus */
    left: 0; right: 0;
    background: white;
    z-index: 9998;
    box-shadow: 0 8px 32px rgba(0,0,0,.10);
    border-top: 1px solid #f0f0f0;
  }
  .k3d-mobile-menu.open { display: block; }
  .k3d-mobile-menu a {
    display: block;
    padding: 16px 6%;
    font-size: 1.05rem;
    font-weight: 500;
    color: #1a1a1a !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f5f5f5;
  }
  .k3d-mobile-menu a.k3d-mm-kassa {
    background: #E8527A;
    color: white !important;
    font-weight: 700;
    border-radius: 0;
    border: none;
    text-align: center;
  }
  .k3d-mobile-menu a.k3d-mm-game {
    background: linear-gradient(90deg,#E8527A,#ff8fab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
  }

  /* Related products 2 tulpa mobiilil */
  .k3d-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  /* WC lehtedel sama padding */
  body.woocommerce { padding-top: 70px !important; }
  body.woocommerce.home { padding-top: 0 !important; }

  /* Eemalda kõik lisaruumid nav all */
  body.woocommerce .col-full { padding-top: 0 !important; }
  body.woocommerce .site-main { padding-top: 0 !important; }
  body:not(.home) .site-main > * { margin-top: 0 !important; }

  /* Hero */
  .hero {
    min-height: 0 !important;
    height: auto !important;
    padding: 90px 6% 60px !important;
    display: block !important;
  }
  .hero-content {
    position: relative !important;
    z-index: 2 !important;
    max-width: 100% !important;
  }
  .hero h1 {
    font-size: 2.6rem !important;
    line-height: 1.15 !important;
    margin-bottom: 16px !important;
  }
  .hero p {
    font-size: 1rem !important;
    line-height: 1.7 !important;
  }
  .hero-badge {
    font-size: .72rem !important;
    padding: 6px 14px !important;
    margin-bottom: 18px !important;
  }
  .hero-btns {
    flex-direction: column !important;
    gap: 10px !important;
    margin-top: 28px !important;
  }
  .hero-btns a {
    width: 100% !important;
    text-align: center !important;
  }
  /* Peida visuaal ja kõik floating elemendid täielikult */
  .hero-visual,
  .float-chip,
  .filament-spool,
  .filament-entry,
  .scene-ring,
  .hero-grid,
  .hero-bg-blob { display: none !important; }

  /* Stats */
  .stats-bar {
    flex-wrap: wrap !important;
    gap: 12px !important;
    padding: 24px 5% !important;
  }
  .stat-item { flex: 1 1 40% !important; }

  /* Tooted grid — 2 kõrvuti mobiilis */
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    padding: 16px 4% !important;
  }
  .woocommerce ul.products li.product {
    border-radius: 12px !important;
  }
  .woocommerce ul.products li.product a img {
    height: 160px !important;
    object-fit: contain !important;
  }
  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: .85rem !important;
    padding: 8px 10px 4px !important;
  }
  .woocommerce ul.products li.product .price {
    font-size: .85rem !important;
    padding: 0 10px 8px !important;
  }
  .woocommerce ul.products li.product .button {
    margin: 0 10px 10px !important;
    font-size: .82rem !important;
    padding: 8px 12px !important;
    width: calc(100% - 20px) !important;
    box-sizing: border-box !important;
  }

  /* Filter nupud */
  .filter-bar {
    padding: 12px 4% !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }
  .filter-btn {
    font-size: .8rem !important;
    padding: 7px 14px !important;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr 1fr !important;
    gap: 28px !important;
    padding: 40px 5% 32px !important;
  }
  .footer-brand {
    grid-column: 1 / -1 !important;
  }
  .footer-newsletter-inner { grid-template-columns: 1fr !important; gap: 24px !important; }
  .footer-bottom {
    flex-direction: column !important;
    gap: 12px !important;
    text-align: center !important;
    padding: 16px 5% !important;
  }

  /* Toast */
  #k3d-cart-toast {
    left: 4% !important;
    right: 4% !important;
    transform: translateX(0) translateY(-20px) !important;
    width: auto !important;
    white-space: normal !important;
    flex-wrap: wrap !important;
    border-radius: 16px !important;
  }
  #k3d-cart-toast.show {
    transform: translateX(0) translateY(0) !important;
  }
}

/* Tablett — 3 veergu */
@media (max-width: 1100px) and (min-width: 769px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Väga väike ekraan */
@media (max-width: 380px) {
  .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
  .hero h1 { font-size: 2.1rem !important; }
}

/* === ANIMATIONS & PRINTER === */
@keyframes blobmove1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-40px, 60px) scale(1.08); }
    66% { transform: translate(30px, -30px) scale(0.95); }
  }
@keyframes blobmove2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(60px, -50px) scale(1.12); }
  }
@keyframes blobmove3 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(50px, 40px) scale(1.1); }
    66% { transform: translate(-30px, -20px) scale(0.9); }
  }
@keyframes ringPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
  }
@keyframes chipFloat {
    0%   { transform: translate(0px, 0px) rotate(-1deg); }
    20%  { transform: translate(8px, -12px) rotate(1.5deg); }
    45%  { transform: translate(-6px, -20px) rotate(-0.5deg); }
    65%  { transform: translate(12px, -8px) rotate(2deg); }
    80%  { transform: translate(-4px, -16px) rotate(-1deg); }
    100% { transform: translate(0px, 0px) rotate(-1deg); }
  }
@keyframes chipFloat2 {
    0%   { transform: translate(0px, 0px) rotate(1deg); }
    25%  { transform: translate(-10px, -14px) rotate(-1deg); }
    50%  { transform: translate(6px, -22px) rotate(2deg); }
    75%  { transform: translate(-8px, -10px) rotate(-0.5deg); }
    100% { transform: translate(0px, 0px) rotate(1deg); }
  }
@keyframes chipFloat3 {
    0%   { transform: translate(0px, 0px) rotate(0.5deg); }
    15%  { transform: translate(10px, -8px) rotate(-1.5deg); }
    40%  { transform: translate(-8px, -18px) rotate(1deg); }
    60%  { transform: translate(14px, -12px) rotate(-2deg); }
    85%  { transform: translate(-5px, -6px) rotate(0.5deg); }
    100% { transform: translate(0px, 0px) rotate(0.5deg); }
  }
@keyframes chipFloat4 {
    0%   { transform: translate(0px, 0px) rotate(-0.5deg); }
    30%  { transform: translate(-12px, -16px) rotate(1.5deg); }
    55%  { transform: translate(8px, -24px) rotate(-1deg); }
    70%  { transform: translate(-6px, -10px) rotate(2deg); }
    100% { transform: translate(0px, 0px) rotate(-0.5deg); }
  }
@keyframes chipDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
  }
@keyframes chipGlow {
    0%, 100% { box-shadow: 0 4px 24px rgba(232,82,122,0.18), inset 0 1px 0 rgba(255,255,255,0.1); }
    50% { box-shadow: 0 8px 32px rgba(232,82,122,0.35), inset 0 1px 0 rgba(255,255,255,0.15); }
  }
@keyframes glowPulse {
    from { opacity: 0.7; transform: translateX(-50%) scale(0.9); }
    to   { opacity: 1;   transform: translateX(-50%) scale(1.2); }
  }
@keyframes carriageSlide {
    0%   { left: 14px; }
    50%  { left: calc(100% - 46px); }
    100% { left: 14px; }
  }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes sliceIn { to { transform: scaleX(1); } }
@keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
  }
  .hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: #0d0d0d;
    overflow: hidden;
  }
  .hero-bg-blob {
    position: absolute; border-radius: 50%;
    filter: blur(80px); opacity: 0.55;
  }
  .blob1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #e8527a 0%, transparent 70%);
    top: -150px; right: -100px;
    animation: blobmove1 8s ease-in-out infinite;
  }
  .blob2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #ff8fab 0%, transparent 70%);
    bottom: -100px; left: 5%;
    animation: blobmove2 10s ease-in-out infinite;
  }
  .blob3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, #c0366a 0%, transparent 70%);
    top: 40%; left: 35%;
    animation: blobmove3 12s ease-in-out infinite;
  }
  @keyframes blobmove1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(-40px, 60px) scale(1.08); }
    66% { transform: translate(30px, -30px) scale(0.95); }
  }
  @keyframes blobmove2 {
    0%,100% { transform: translate(0,0) scale(1); }
    50% { transform: translate(60px, -50px) scale(1.12); }
  }
  @keyframes blobmove3 {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(50px, 40px) scale(1.1); }
    66% { transform: translate(-30px, -20px) scale(0.9); }
  }
  .hero-grid {
    display: none;
  }
  /* Floating particles */
  .hero-particles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .particle {
    position: absolute; border-radius: 50%;
    background: var(--pink); opacity: 0;
    animation: particleFloat linear infinite;
  }
  .hero h1 .line-pink { color: var(--pink); display: block; }
  .hero h1 .line-outline {
    -webkit-text-stroke: 2px rgba(255,255,255,0.3);
    color: transparent; display: block;
  }
  .printer-scene {
    position: relative; width: 340px; height: 360px;
  }
  .scene-ring {
    position: absolute; inset: -20px; border-radius: 50%;
    border: 1px solid rgba(232,82,122,0.15);
    animation: ringPulse 3s ease-in-out infinite;
    pointer-events: none;
  }
  .scene-ring.r2 { inset: -50px; border-color: rgba(232,82,122,0.08); animation-delay: 0.5s; }
  .scene-ring.r3 { inset: -80px; border-color: rgba(232,82,122,0.04); animation-delay: 1s; }
  .float-chip {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(20, 10, 15, 0.55);
    border: 1px solid rgba(232,82,122,0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 50px;
    padding: 8px 14px 8px 10px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.88);
    white-space: nowrap;
    font-weight: 600;
    z-index: 5;
    animation: chipFloat 7s ease-in-out infinite, chipGlow 4s ease-in-out infinite;
    cursor: default;
    letter-spacing: 0.01em;
  }
  .float-chip:nth-child(4)  { animation: chipFloat2 9s ease-in-out infinite 1.2s, chipGlow 5s ease-in-out infinite 0.5s; }
  .float-chip:nth-child(5)  { animation: chipFloat3 6s ease-in-out infinite 2.5s, chipGlow 6s ease-in-out infinite 0.8s; }
  .float-chip:nth-child(6)  { animation: chipFloat4 8s ease-in-out infinite 0.7s, chipGlow 4.5s ease-in-out infinite 0.3s; }
  .chip-icon {
    font-size: 1rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(232,82,122,0.7));
  }
  .chip-label { position: relative; z-index: 1; }
  .chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #E8527A;
    box-shadow: 0 0 8px rgba(232,82,122,0.9);
    flex-shrink: 0;
    animation: chipDot 2s ease-in-out infinite;
  }
  .float-chip:nth-child(4) .chip-dot  { animation-delay: 0.5s; }
  .float-chip:nth-child(5) .chip-dot  { animation-delay: 1s; }
  .float-chip:nth-child(6) .chip-dot  { animation-delay: 1.5s; }
  .pbox {
    position: absolute;
    top: 20px; left: 50%; transform: translateX(-50%);
    width: 200px; height: 185px;
    border: 2px solid rgba(232,82,122,0.45);
    border-radius: 12px;
    background: rgba(232,82,122,0.03);
    box-shadow: 0 0 40px rgba(232,82,122,0.12), inset 0 0 30px rgba(232,82,122,0.04);
    overflow: hidden; /* clips the growing vaas */
  }
  .pbox-corner {
    position: absolute; width: 7px; height: 7px;
    border-radius: 50%; background: var(--pink);
    box-shadow: 0 0 8px rgba(232,82,122,0.9);
  }
  .pbox-corner.tl { top: 8px; left: 8px; }
  .pbox-corner.tr { top: 8px; right: 8px; }
  .pbox-corner.bl { bottom: 8px; left: 8px; }
  .pbox-corner.br { bottom: 8px; right: 8px; }
  .gantry-rail {
    position: absolute; top: 22px; left: 10px; right: 10px;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(232,82,122,0.6), rgba(232,82,122,0.9), rgba(232,82,122,0.6), transparent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(232,82,122,0.5);
  }
  .gantry-carriage {
    position: absolute; top: 10px;
    width: 32px; height: 28px;
    background: linear-gradient(160deg, #2a2a2a, #1a1a1a);
    border: 1.5px solid rgba(232,82,122,0.6);
    border-radius: 5px;
    box-shadow: 0 0 14px rgba(232,82,122,0.6);
    /* starts at left side of box */
    left: 10px;
    animation: carriageSlide 2.8s ease-in-out infinite;
    z-index: 4;
  }
  /* The nozzle tip hanging down from carriage */
  .gantry-carriage::after {
    content: '';
    position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%);
    width: 5px; height: 14px;
    background: linear-gradient(180deg, rgba(232,82,122,0.9), rgba(232,82,122,0.2));
    border-radius: 0 0 3px 3px;
  }
  /* Glowing dot at nozzle tip */
  .nozzle-glow {
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 12px 4px rgba(232,82,122,0.8);
    animation: glowPulse 0.6s ease-in-out infinite alternate;
  }
  .filament-entry {
    position: absolute; top: -18px; right: 30px;
    width: 3px; height: 28px;
    background: linear-gradient(180deg, transparent, var(--pink) 80%);
    border-radius: 2px;
  }
  .filament-spool {
    position: absolute; top: -48px; right: 16px;
    width: 26px; height: 26px;
    border: 3px solid rgba(232,82,122,0.55);
    border-radius: 50%; border-top-color: var(--pink);
    animation: spin 1.8s linear infinite;
  }
  .print-bed {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 10px;
    background: linear-gradient(90deg, rgba(232,82,122,0.1), rgba(232,82,122,0.35), rgba(232,82,122,0.1));
    border-top: 1.5px solid rgba(232,82,122,0.4);
    box-shadow: 0 0 16px rgba(232,82,122,0.25);
  }
  .vaas-wrap {
    position: absolute;
    bottom: 10px; /* sits on print bed */
    left: 50%; transform: translateX(-50%);
    width: 80px;
    display: flex; flex-direction: column-reverse;
    align-items: center; gap: 1px;
    /* max height = box height minus gantry area */
    max-height: 300px; overflow: hidden;
  }
  .vaas-layer {
    height: 5px; border-radius: 2px; flex-shrink: 0;
    background: linear-gradient(90deg, rgba(232,82,122,0.25), rgba(232,82,122,0.75), rgba(232,82,122,0.25));
    animation: sliceIn 0.25s ease forwards;
    transform: scaleX(0);
  }
  @keyframes particleFloat {
    0%   { transform: translateY(100vh) scale(0); opacity: 0; }
    10%  { opacity: 0.6; }
    90%  { opacity: 0.3; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
  }
    .printer-scene { width: 280px; height: 300px; } .pbox { width: 210px; height: 200px; }
    .chip1, .chip3 { left: 0; }

/* === LAYOUT FIXES === */

/* Hero full width + printer on right */
.hero {
  background: #0d0d0d;
  min-height: 0 !important;
  height: auto !important;
  display: flex;
  align-items: center;
  padding: 110px 5% !important;
  position: relative;
  overflow: hidden;
  color: white;
}
.hero-content {
  flex: 1 !important;
  max-width: 520px !important;
  position: relative !important;
  z-index: 3 !important;
}
.hero-visual {
  flex: 1 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
  z-index: 3 !important;
}
.printer-scene {
  position: relative !important;
  width: 320px !important;
  height: 360px !important;
}

/* Float chips - spread out properly */
.float-chip {
  position: absolute !important;
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  background: rgba(20,10,15,0.55) !important;
  border: 1px solid rgba(232,82,122,0.4) !important;
  backdrop-filter: blur(12px) !important;
  border-radius: 50px !important;
  padding: 8px 14px 8px 10px !important;
  font-size: 0.76rem !important;
  color: rgba(255,255,255,0.88) !important;
  white-space: nowrap !important;
  font-weight: 600 !important;
  z-index: 5 !important;
}
.chip1 { top: 5% !important; left: -15% !important; }
.chip2 { top: 28% !important; right: -12% !important; }
.chip3 { bottom: 28% !important; left: -12% !important; }
.chip4 { bottom: 5% !important; right: -8% !important; }

/* Step cards - icons and numbers */
.step-icon {
  font-size: 2rem !important;
  margin-bottom: 16px !important;
  display: block !important;
  min-height: 2.5rem !important;
}
.step-num {
  color: rgba(232,82,122,0.15) !important;
  font-size: 4rem !important;
}
.step-card h3 { color: #1a1a1a !important; font-weight: 700 !important; }
.step-card p { color: #555 !important; }

/* Shop page fixes */
.woocommerce-breadcrumb { display: none !important; }
.woocommerce-page h1.page-title { display: none !important; }
.woocommerce-products-header { display: none !important; }
.term-description { display: none !important; }
.woocommerce-ordering { display: none !important; }
.woocommerce-result-count { display: none !important; }

/* THE BANNER - target Storefront shop header specifically */
.storefront-sorting { padding-top: 0 !important; }
.woocommerce-page .storefront-product-section { display: none !important; }

/* This is the dark banner - it comes from .entry-header on shop page */
body.woocommerce.archive .entry-header,
body.woocommerce-page .entry-header,
body.woocommerce .page-header,
body.woocommerce header.entry-header { display: none !important; }

/* Remove whitespace above filter bar */
body.woocommerce { padding-top: 70px !important; }
body.woocommerce .site-main { padding: 0 !important; margin: 0 !important; }
body.woocommerce #primary { padding: 0 !important; }
body.woocommerce .col-full { padding-top: 0 !important; }

/* Archive/pood leht - padding konteineril, mitte gridil */
body.woocommerce.archive .site-main,
body.woocommerce-page .site-main {
  padding: 0 5% !important;
}

/* Hide the specific shop header that has dark bg */
.woocommerce-page .site-header-image,
.woocommerce-page .hero-static { display: none !important; }

/* Storefront specific shop header */
[class*="storefront"] .woocommerce-products-header__title { display: none !important; }
.storefront-breadcrumb { display: none !important; }

/* Hide Storefront default footer */
.site-info { display: none !important; }
.site-footer > .col-full > p { display: none !important; }
.site-footer .storefront-handheld-footer-bar { display: none !important; }

/* Our footer background fix */
.site-footer { background: transparent !important; padding: 0 !important; }
footer { background: #111111 !important; }

/* Remove grey gap between content and footer */
.site-content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
#colophon { background: transparent !important; }

/* Ostukorv leht - eemalda valge ala footer all */
body.woocommerce-cart .site-main { padding-bottom: 0 !important; margin-bottom: 0 !important; }
body.woocommerce-cart #primary { padding-bottom: 0 !important; }
body.woocommerce-cart .col-full { padding-bottom: 0 !important; }
body.woocommerce-cart .entry-content { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Peida WC vaikimisi tühi ostukorv teade (asendame oma cart-empty.php-ga) */
body.woocommerce-cart .woocommerce-info { display: none !important; }
body.woocommerce-cart p.return-to-shop { display: none !important; }

/* Checkout lehe valge ala fix */
body.woocommerce-checkout .site-main { padding-bottom: 0 !important; margin-bottom: 0 !important; }

/* Footer text fixes */
.footer-top {
  display: grid !important;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr !important;
  gap: 40px !important;
  padding: 60px 5% 40px !important;
  align-items: start !important;
}
.footer-col h4 {
  color: white !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  margin-bottom: 16px !important;
  margin-top: 0 !important;
}
.footer-col ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.footer-col li {
  display: block !important;
  margin-bottom: 12px !important;
}
.footer-col a {
  display: block !important;
  color: rgba(255,255,255,0.75) !important;
  text-decoration: none !important;
  font-size: 0.88rem !important;
  line-height: 1.4 !important;
  transition: color 0.2s !important;
  outline: none !important;
}
.footer-col a:hover { color: #FFB3C6 !important; }
.footer-brand p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.85rem !important;
  line-height: 1.7 !important;
  margin-top: 12px !important;
}
.footer-bottom {
  padding: 20px 5% !important;
  border-top: 1px solid rgba(255,255,255,0.1) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  font-size: 0.8rem !important;
  color: rgba(255,255,255,0.5) !important;
}
.footer-bottom a {
  color: rgba(255,255,255,0.5) !important;
  text-decoration: none !important;
  outline: none !important;
}
.footer-bottom a:hover { color: rgba(255,255,255,0.8) !important; }

@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr !important; }
}


/* === BLOCK CHECKOUT FIXES === */

/* Hide unnecessary fields */
.wc-block-components-address-form__address2,
.wc-block-components-address-form__city,
.wc-block-components-address-form__postcode,
.wc-block-components-address-form__state,
.wc-block-components-address-form__country,
.wc-block-checkout__use-address-for-billing,
.wc-block-checkout__add-address-button { display: none !important; }

/* Inputs */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-textarea textarea {
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-textarea textarea:focus {
  border-color: #E8527A !important;
  box-shadow: 0 0 0 3px rgba(232,82,122,0.1) !important;
  outline: none !important;
}
.wc-block-checkout__step-title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

/* Place order button */
.wc-block-components-checkout-place-order-button {
  background: #E8527A !important;
  color: white !important;
  border-radius: 50px !important;
  border: none !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  padding: 15px !important;
  width: 100% !important;
  box-shadow: 0 4px 18px rgba(232,82,122,.35) !important;
}
.wc-block-components-checkout-place-order-button:hover { background: #d44068 !important; }

/* Sidebar styling */
.wc-block-checkout__sidebar-slotfill {
  background: #f8f8f8 !important;
  border-radius: 16px !important;
  padding: 20px !important;
  border: 1.5px solid #f0f0f0 !important;
}
.wc-block-components-product-details { display: none !important; }
.wc-block-components-product-name {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  max-width: 200px !important;
}

@media (max-width: 768px) {
  .wc-block-checkout.wc-block-checkout--with-sidebar {
    grid-template-columns: 1fr !important;
  }
  .wc-block-checkout__sidebar-slotfill {
    width: 100% !important;
    position: static !important;
  }
}

/* === OSTUKORVI TEADE === */
/* Peida WooCommerce vaikimisi roheline teade */
.woocommerce-message,
.wc-block-components-notice-banner,
.wc-block-store-notice,
.added_to_cart_notice,
div.woocommerce-notices-wrapper .woocommerce-message {
  display: none !important;
}

/* ===== WC VEATEATED JA TEAVITUSED ===== */
.woocommerce-error,
ul.woocommerce-error {
  list-style: none !important;
  margin: 0 0 20px !important;
  padding: 0 !important;
  background: none !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Storefront lisab oma border-top - eemalda */
.woocommerce-error { border-top: none !important; }
/* Wrapper mis ümbritseb kogu error bloki */
.woocommerce-notices-wrapper { border: none !important; outline: none !important; box-shadow: none !important; }
.woocommerce-error li,
ul.woocommerce-error li {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  background: #fff8f9 !important;
  border: 1.5px solid #f0c0ce !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  color: #c0304a !important;
  margin-bottom: 8px !important;
  box-shadow: 0 2px 12px rgba(232,82,122,0.08) !important;
}
.woocommerce-error li::before {
  content: '⚠️' !important;
  font-size: 1rem !important;
  flex-shrink: 0 !important;
}

.woocommerce-info {
  background: #fff8f9 !important;
  border: 1.5px solid #f0e0e8 !important;
  border-radius: 12px !important;
  padding: 12px 18px !important;
  font-size: .88rem !important;
  font-weight: 500 !important;
  color: #555 !important;
  margin-bottom: 16px !important;
  box-shadow: none !important;
}
.woocommerce-info::before { display: none !important; }

/* WC notices wrapper */
.woocommerce-notices-wrapper {
  margin-bottom: 16px !important;
}

/* Inline validation viga toote lehel */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
  border-color: #E8527A !important;
  box-shadow: 0 0 0 3px rgba(232,82,122,.1) !important;
}
.woocommerce-invalid-required-field .woocommerce-checkout-review-order {
  opacity: .6 !important;
}

/* Meie oma roosa teade */
#k3d-cart-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: white;
  border: 1.5px solid #f0e0e8;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(232,82,122,0.18);
  z-index: 99998;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}
#k3d-cart-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
#k3d-cart-toast .k3d-toast-icon {
  width: 32px;
  height: 32px;
  background: #E8527A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
#k3d-cart-toast .k3d-toast-text {
  font-size: .9rem;
  font-weight: 600;
  color: #1a1a1a;
}
#k3d-cart-toast .k3d-toast-link {
  background: #E8527A;
  color: white;
  padding: 7px 16px;
  border-radius: 50px;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  outline: none;
  transition: background .2s;
}
#k3d-cart-toast .k3d-toast-link:hover { background: #d44068; color: white; }

/* Vea toast — kohustuslikud väljad täitmata */
#k3d-error-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: white;
  border: 1.5px solid #f5c0c0;
  border-radius: 50px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(200,50,50,0.14);
  z-index: 99998;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
  white-space: nowrap;
}
#k3d-error-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: none;
}
#k3d-error-toast .k3d-err-icon {
  width: 32px;
  height: 32px;
  background: #e05050;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: white;
}
#k3d-error-toast .k3d-err-text {
  font-size: .9rem;
  font-weight: 600;
  color: #c0392b;
}

/* =====================
   OSTUKORV - WC Blocks
   ===================== */

/* Peida vaikimisi pealkiri */
.woocommerce-cart h1.page-title,
.woocommerce-cart .entry-header { display: none !important; }

/* Lehe tausta ja padding */
body.woocommerce-cart .entry-content,
body.woocommerce-cart #primary {
  padding: 0 !important;
  max-width: 100% !important;
}
body.woocommerce-cart {
  background: #fafafa !important;
}

/* Peamine cart wrapper */
.wp-block-woocommerce-cart {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 48px 5% !important;
}

/* Toodete veerg */
.wp-block-woocommerce-cart-items-block {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 8px 0 !important;
}

/* Päis rida (TOODE / KOKKU) */
.wc-block-cart-items__header {
  background: #fff8f9 !important;
  border-bottom: 1.5px solid #f0f0f0 !important;
  padding: 12px 24px !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .08em !important;
  color: #E8527A !important;
}

/* Üksik toode reas */
.wc-block-cart-item {
  padding: 16px 24px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  transition: background .15s !important;
}
.wc-block-cart-item:hover { background: #fffafb !important; }
.wc-block-cart-item:last-child { border-bottom: none !important; }

/* Toote pilt */
.wc-block-cart-item__image img {
  border-radius: 10px !important;
  border: 1px solid #f0f0f0 !important;
}

/* Toote nimi */
.wc-block-cart-item__product a {
  font-weight: 700 !important;
  color: #1a1a1a !important;
  font-size: .95rem !important;
}
.wc-block-cart-item__product a:hover { color: #E8527A !important; }

/* Koguse nupp */
.wc-block-components-quantity-selector {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 50px !important;
  overflow: hidden !important;
  background: white !important;
}
.wc-block-components-quantity-selector__button {
  background: white !important;
  color: #E8527A !important;
  font-weight: 700 !important;
  border: none !important;
}
.wc-block-components-quantity-selector__button:hover {
  background: #fff0f4 !important;
}
.wc-block-components-quantity-selector input {
  font-weight: 600 !important;
  border: none !important;
  border-left: 1px solid #f0f0f0 !important;
  border-right: 1px solid #f0f0f0 !important;
}

/* Hind */
.wc-block-cart-item__total .woocommerce-Price-amount {
  font-weight: 700 !important;
  color: #E8527A !important;
  font-size: 1rem !important;
}

/* Eemalda nupp */
.wc-block-cart-item__remove-link {
  color: #ddd !important;
  font-size: .8rem !important;
  transition: color .2s !important;
}
.wc-block-cart-item__remove-link:hover { color: #E8527A !important; }

/* Kokkuvõte blokk */
.wp-block-woocommerce-cart-order-summary-block {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 24px !important;
  position: sticky !important;
  top: 88px !important;
  min-width: 320px !important;
}

/* Totals read — tühik nime ja hinna vahel */
.wc-block-components-totals-item {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: nowrap !important;
}
.wc-block-components-totals-item__label {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.wc-block-components-totals-item__value {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-align: right !important;
  margin-left: auto !important;
}

/* Shipping valikud ostukorvis — anna rohkem ruumi */
.wc-block-components-totals-shipping .wc-block-components-radio-control__option {
  padding: 10px 14px !important;
}
.wc-block-components-totals-shipping .wc-block-components-radio-control__option-label {
  font-size: .88rem !important;
}

/* Kokkuvõtte päis */
.wc-block-components-order-summary__toggle {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
}

/* Kogusumma */
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 800 !important;
  font-size: 1rem !important;
}
.wc-block-components-totals-footer-item .woocommerce-Price-amount {
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  color: #E8527A !important;
}

/* Mine kassasse nupp */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  background: #E8527A !important;
  border-color: #E8527A !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  font-size: .95rem !important;
  padding: 14px 28px !important;
  transition: background .2s, transform .1s !important;
  letter-spacing: 0 !important;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  background: #d44068 !important;
  border-color: #d44068 !important;
  transform: translateY(-1px) !important;
}

/* Kupong */
.wc-block-components-totals-coupon__form input {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 50px !important;
  padding: 9px 16px !important;
  font-family: Inter, sans-serif !important;
}
.wc-block-components-totals-coupon__form input:focus {
  border-color: #E8527A !important;
  outline: none !important;
}
.wc-block-components-totals-coupon__form button {
  background: #1a1a1a !important;
  border-radius: 50px !important;
  border: none !important;
  font-weight: 700 !important;
}
.wc-block-components-totals-coupon__form button:hover {
  background: #E8527A !important;
}

/* "Sulle võib huvi pakkuda" sektsioon */
.wc-block-cart__recommended-products h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
}

/* Tühi korv */
.wc-block-cart--is-empty .wc-block-cart__empty-cart__title {
  font-family: 'Playfair Display', serif !important;
  font-weight: 900 !important;
}

/* Toodete grid - WC Blocks versioon */
.wc-block-grid__products,
.wp-block-woocommerce-product-collection ul,
.woocommerce-page ul.products,
ul.products {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 16px !important;
  padding: 24px 0 !important;
  list-style: none !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: start !important;
  justify-content: start !important;
  box-sizing: border-box !important;
}
.wc-block-grid__product,
ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
}

/* Tooted vasakule joondatud — käsitletud ülalpool */

/* Peida WC vaikimisi "Mine maksma" nupp ostukorvis */
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .checkout-button,
.cart_totals .wc-proceed-to-checkout { display: none !important; }

/* =====================
   KASSA - WC Blocks
   ===================== */

body.woocommerce-checkout { background: #fafafa !important; }

/* Pealkiri */
.woocommerce-checkout .entry-header { display: none !important; }
.wc-block-checkout__main { max-width: 680px !important; }

/* Põhipaigutus */
.wp-block-woocommerce-checkout {
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 32px 5% 60px !important;
}

/* E-POSTI JA NIME VAHELINE VAHE - väiksem */
.wc-block-checkout__contact-fields .wc-block-components-text-input,
.wp-block-woocommerce-checkout-contact-information-block .wc-block-components-text-input {
  margin-bottom: 8px !important;
}
/* E-posti väli spetsiifiliselt */
.wc-block-checkout__contact-fields .wc-block-components-text-input:has(input[type=email]),
.wc-block-checkout__contact-fields .wc-block-components-text-input:has(input[autocomplete=email]) {
  margin-bottom: 6px !important;
}
/* Üldiselt vormi väljade vahe sektsioonides */
.wc-block-components-address-form .wc-block-components-text-input { margin-bottom: 10px !important; }

/* TINGIMUSTE LINK - roosa, klikitav */
.k3d-terms-link,
.wc-block-checkout__terms a,
.wc-block-components-checkbox__label a {
  color: #E8527A !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
  cursor: pointer !important;
}
.k3d-terms-link:hover { opacity: .75 !important; }

/* Tingimuste checkbox stiil */
.wc-block-checkout__terms .wc-block-components-checkbox {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  background: white !important;
  transition: border-color .2s !important;
}
.wc-block-checkout__terms .wc-block-components-checkbox:has(input:checked) {
  border-color: #E8527A !important;
  background: #fff8f9 !important;
}
.wc-block-checkout__terms .wc-block-components-checkbox__mark {
  accent-color: #E8527A !important;
}
.wc-block-checkout__terms {
  margin-bottom: 12px !important;
}

/* Peida WC Blocks privaatsuspoliitika teade (meie oma on tingimuste sees) */
.wc-block-checkout__privacy-policy { display: none !important; }

/* Uudiskirja rida (meie inject) */
#k3d-newsletter-row {
  transition: border-color .2s !important;
}
#k3d-newsletter-row:hover { border-color: #E8527A !important; }

/* Sammude pealkirjad */
.wc-block-checkout__step-heading {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
}

/* Sektsioonid */
.wc-block-checkout__step {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 20px !important;
  padding: 24px 28px !important;
  margin-bottom: 20px !important;
}

/* Vormiväljad */
.wc-block-components-text-input input,
.wc-block-components-select select,
.wc-block-components-country-input input,
.wc-block-components-state-input input {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-family: Inter, sans-serif !important;
  font-size: .92rem !important;
  transition: border-color .2s !important;
}
.wc-block-components-text-input input:focus,
.wc-block-components-select select:focus {
  border-color: #E8527A !important;
  box-shadow: 0 0 0 3px rgba(232,82,122,.07) !important;
  outline: none !important;
}

/* Välja label */
.wc-block-components-text-input label,
.wc-block-components-select label,
.wc-block-components-checkbox__label {
  font-size: .78rem !important;
  font-weight: 700 !important;
  color: #888 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
}

/* Tarneviis */
.wc-block-components-shipping-rates-control__package {
  border: none !important;
  padding: 0 !important;
}
.wc-block-components-radio-control__option {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 14px !important;
  padding: 14px 18px !important;
  margin-bottom: 10px !important;
  transition: border-color .2s, background .2s !important;
  background: white !important;
  overflow: hidden !important;
}
.wc-block-components-radio-control__option:has(input:checked) {
  border-color: #E8527A !important;
  background: #fff8f9 !important;
}
.wc-block-components-radio-control__option-layout {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  flex-wrap: nowrap !important;
}
.wc-block-components-radio-control input[type=radio] {
  accent-color: #E8527A !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0 !important;
}
.wc-block-components-radio-control__option-label {
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex: 1 !important;
  gap: 0 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  white-space: nowrap !important;
}
/* Kõik otsesed lapsed ühele reale */
.wc-block-components-radio-control__option-label > * {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
/* Nimi — võtab vaba ruumi, hind jääb paremale */
.wc-block-components-radio-control__option-label > span:first-child,
.wc-block-components-radio-control__option-label .wc-block-components-shipping-rates-control__package-label {
  flex: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-align: left !important;
}
/* Hind — alati paremal, mitte murdu */
.wc-block-components-radio-control__option-label > span:last-child,
.wc-block-components-radio-control__option-label .woocommerce-Price-amount,
.wc-block-components-radio-control__option-label .wc-block-components-formatted-money-amount {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  color: #E8527A !important;
  font-weight: 700 !important;
  margin-left: auto !important;
  padding-left: 12px !important;
}

/* Makseviis */
.wc-block-components-payment-methods-list-item {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 14px !important;
  margin-bottom: 10px !important;
  overflow: hidden !important;
  transition: border-color .2s !important;
}
.wc-block-components-payment-methods-list-item:has(input:checked) {
  border-color: #E8527A !important;
  background: #fff8f9 !important;
}
.wc-block-components-payment-method-label {
  font-size: .95rem !important;
  font-weight: 600 !important;
}

/* Esita tellimus nupp */
.wc-block-components-checkout-place-order-button {
  background: #E8527A !important;
  border-color: #E8527A !important;
  border-radius: 50px !important;
  padding: 16px 32px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  width: 100% !important;
  transition: background .2s, transform .1s !important;
  box-shadow: 0 4px 20px rgba(232,82,122,.3) !important;
}
.wc-block-components-checkout-place-order-button:hover {
  background: #d44068 !important;
  border-color: #d44068 !important;
  transform: translateY(-1px) !important;
}

/* Kokkuvõte paremal */
.wc-block-checkout__sidebar {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  padding: 0 !important;
}
.wc-block-components-order-summary {
  padding: 20px 24px !important;
}
.wc-block-components-order-summary__toggle {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}
.wc-block-components-order-summary-item__image img {
  border-radius: 10px !important;
  border: 1px solid #f0f0f0 !important;
}
/* Toote nimi — kärbi pikad nimed */
.wc-block-components-order-summary-item__individual-prices,
.wc-block-components-order-summary-item__full-price {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
}
.wc-block-components-order-summary-item__description {
  min-width: 0 !important;
}
.wc-block-components-order-summary-item__header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.wc-block-components-order-summary-item__product-details {
  flex: 1 !important;
  min-width: 0 !important;
}
/* Nimi ise */
.wc-block-components-order-summary-item .wc-block-components-product-name {
  max-width: none !important;
  white-space: normal !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  font-size: .88rem !important;
  font-weight: 600 !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
  color: #E8527A !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
  font-weight: 800 !important;
  font-size: 1rem !important;
}

/* Kupongikood */
.wc-block-components-totals-coupon__form input {
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 50px !important;
  padding: 9px 16px !important;
  font-family: Inter, sans-serif !important;
}
.wc-block-components-totals-coupon__form input:focus {
  border-color: #E8527A !important;
  outline: none !important;
}
.wc-block-components-totals-coupon__form button {
  background: #1a1a1a !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  transition: background .2s !important;
}
.wc-block-components-totals-coupon__form button:hover {
  background: #E8527A !important;
}

/* Vormide sammu numbrid */
.wc-block-checkout__step-number {
  background: #E8527A !important;
  color: white !important;
  font-weight: 700 !important;
  border-radius: 50% !important;
}

/* Notices */
.wc-block-store-notice {
  border-radius: 12px !important;
}

/* =====================
   TELLIMUS VASTU VÕETUD
   ===================== */

body.woocommerce-order-received { background: #fafafa !important; }

.woocommerce-order-received .entry-header { display: none !important; }

.woocommerce-order-received .entry-content {
  max-width: 720px !important;
  margin: 0 auto !important;
  padding: 48px 5% 60px !important;
}

/* Tänuteade */
.woocommerce-order-received .woocommerce-thankyou-order-received {
  background: linear-gradient(135deg, #fff0f4, #ffe0ea) !important;
  border-radius: 20px !important;
  padding: 40px 36px !important;
  text-align: center !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 1.6rem !important;
  font-weight: 900 !important;
  color: #1a1a1a !important;
  margin-bottom: 32px !important;
  display: block !important;
}

.woocommerce-order-received .woocommerce-thankyou-order-received::before {
  content: '🎁' !important;
  display: block !important;
  font-size: 3rem !important;
  margin-bottom: 12px !important;
}

/* Tellimuse andmed */
.woocommerce-order-received .woocommerce-order-overview {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 16px !important;
  padding: 24px 28px !important;
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)) !important;
  gap: 20px !important;
  margin-bottom: 28px !important;
}

.woocommerce-order-received .woocommerce-order-overview li {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
  display: block !important;
  font-size: 1rem !important;
  color: #1a1a1a !important;
  margin-top: 4px !important;
}

.woocommerce-order-received .woocommerce-order-overview .woocommerce-order-overview__order,
.woocommerce-order-received .woocommerce-order-overview li {
  font-size: .75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .07em !important;
  color: #aaa !important;
}

/* Tellimuse detailid */
.woocommerce-order-received .woocommerce-order-details {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  margin-bottom: 28px !important;
}

.woocommerce-order-received .woocommerce-order-details__title {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  padding: 18px 24px !important;
  background: #fff8f9 !important;
  border-bottom: 1.5px solid #f0f0f0 !important;
  margin: 0 !important;
}

.woocommerce-order-received .woocommerce-table--order-details {
  width: 100% !important;
  border-collapse: collapse !important;
}

.woocommerce-order-received .woocommerce-table--order-details th,
.woocommerce-order-received .woocommerce-table--order-details td {
  padding: 14px 24px !important;
  border-bottom: 1px solid #f5f5f5 !important;
  font-size: .9rem !important;
}

.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child td,
.woocommerce-order-received .woocommerce-table--order-details tfoot tr:last-child th {
  font-weight: 800 !important;
  font-size: 1rem !important;
  color: #E8527A !important;
  border-bottom: none !important;
}

.woocommerce-order-received .woocommerce-table--order-details .product-name a {
  color: #1a1a1a !important;
  font-weight: 600 !important;
}

/* Ostja andmed */
.woocommerce-order-received .woocommerce-customer-details {
  background: white !important;
  border: 1.5px solid #f0f0f0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
}

.woocommerce-order-received .woocommerce-customer-details h2 {
  font-family: 'Playfair Display', serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  padding: 18px 24px !important;
  background: #fff8f9 !important;
  border-bottom: 1.5px solid #f0f0f0 !important;
  margin: 0 !important;
}

.woocommerce-order-received .woocommerce-customer-details address {
  padding: 20px 24px !important;
  font-style: normal !important;
  font-size: .9rem !important;
  line-height: 1.8 !important;
  color: #555 !important;
}

/* Tagasi poodi link */
.woocommerce-order-received .woocommerce-bacs-bank-details,
.woocommerce-order-received p:last-child a {
  color: #E8527A !important;
  font-weight: 600 !important;
}

/* Peida aadressiväljad kassas - klient valib pakiautomaat niikuinii */
.wc-block-checkout .wc-block-components-address-form__address_1,
.wc-block-checkout .wc-block-components-address-form__address_2,
.wc-block-checkout .wc-block-components-address-form__city,
.wc-block-checkout .wc-block-components-address-form__postcode,
.wc-block-checkout .wc-block-components-address-form__state,
.wc-block-checkout .wc-block-components-address-form__country,
.wc-block-checkout .wc-block-components-address-form__address_2-toggle { display: none !important; }

/* Peida "Tarneaadress" pealkiri aga jäta väljad (eesnimi, perenimi, telefon) */
.wc-block-checkout .wc-block-checkout__shipping-fields-title,
.wp-block-woocommerce-checkout-shipping-address-block h2 { display: none !important; }

/* Kassa - sisestusvälja tekst korrektselt joondatud */
.wc-block-checkout .wc-block-components-text-input input,
.wc-block-checkout .wc-block-components-text-input textarea {
  padding-top: 20px !important;
  padding-bottom: 8px !important;
  height: auto !important;
  min-height: 52px !important;
}

/* Peida "(Valikuline)" tekst telefoni juures */
.wc-block-checkout .wc-block-components-address-form__phone label .optional,
.wc-block-checkout .wc-block-components-address-form__phone label span:not(.required),
.wc-block-checkout label[for*="phone"] .wc-block-components-text-input__label-text::after {
  display: none !important;
}

/* Telefoni (valikuline) tekst - eemaldatud, tekitas probleeme */

/* =====================
   FLATPICKR KALENDER — meie disainiga
   ===================== */
.flatpickr-calendar {
  border-radius: 16px !important;
  box-shadow: 0 8px 32px rgba(232,82,122,.15) !important;
  border: 1.5px solid #f0e0e8 !important;
  font-family: Inter, sans-serif !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: #E8527A !important;
  border-color: #E8527A !important;
}
.flatpickr-day:hover {
  background: #fff0f4 !important;
  border-color: #FFB3C6 !important;
}
.flatpickr-month,
.flatpickr-weekdays {
  background: #E8527A !important;
  border-radius: 14px 14px 0 0 !important;
}
.flatpickr-current-month,
.flatpickr-monthDropdown-months,
.numInputWrapper input,
.flatpickr-current-month input.cur-year {
  color: white !important;
}
.flatpickr-weekday { color: white !important; font-weight: 600 !important; }
.flatpickr-prev-month svg,
.flatpickr-next-month svg { fill: white !important; }
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg { fill: #ffe0ea !important; }
.flatpickr-day.today { border-color: #E8527A !important; }

/* =====================
   CUSTOM KELLAAJA PICKER
   ===================== */
.k3d-tp-opt:hover {
  background: #fff0f4 !important;
  border-color: #FFB3C6 !important;
}
.k3d-tp-hours::-webkit-scrollbar,
.k3d-tp-mins::-webkit-scrollbar { width: 4px; }
.k3d-tp-hours::-webkit-scrollbar-thumb,
.k3d-tp-mins::-webkit-scrollbar-thumb { background: #f0c0d0; border-radius: 4px; }


/* =====================================================================
   Tootepiltide taust: sama pilt uduselt taustal (nagu Instagram/Spotify)
   Terve pilt on näha (object-fit: contain), tühjad servad täidab
   pildi enda värvidega udune koopia — roosasid ribasid pole.
   ===================================================================== */
img.k3d-blurbg,
.k3d-hp-img img.k3d-blurbg {
  position: absolute !important;
  top: -10% !important;
  left: -10% !important;
  right: auto !important;
  bottom: auto !important;
  width: 120% !important;
  height: 120% !important;
  max-width: none !important;
  object-fit: cover !important;
  filter: blur(22px) saturate(1.15) brightness(1.05);
  opacity: .85;
  transform: none !important;
  pointer-events: none;
  user-select: none;
  display: var(--k3d-img-blur) !important;
}


/* === v1.39 MOBIIL === */
/* iOS Safari suumib lehte sisse, kui sisestusvälja font on alla 16px.
   Mobiilil kõik väljad 16px → suumimist ei toimu. */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="search"], input[type="password"], input:not([type]), select, textarea {
    font-size: 16px !important;
  }
}

/* v1.46 — tootekaardid ei tohi kunagi ekraanist välja venida */
.k3d-related-grid > *, .woocommerce ul.products li.product { min-width: 0; overflow-wrap: break-word; }

/* v1.47 — jaluse sotsiaalmeedia: ikoon + tühik + tekst */
.footer-col a.k3d-social { display: inline-flex !important; align-items: center; gap: 8px; }
.footer-col a.k3d-social svg { flex-shrink: 0; display: block; }
/* Otsinguväli type=search: eemalda brauseri vaikestiil */
input[type="search"]#k3d-search-input, input[type="search"]#k3d-sp-search { -webkit-appearance: none; appearance: none; }

/* v1.49 — "Tooted" rippmenüü kategooriatega (ainult arvutis; mobiilis on nav-links peidus) */
.nav-links li.k3d-dd { position: relative; }
.k3d-dd-toggle { display: inline-flex !important; align-items: center; gap: 5px; }
.k3d-dd-caret { transition: transform .2s; opacity: .55; }
.k3d-dd:hover .k3d-dd-caret, .k3d-dd:focus-within .k3d-dd-caret { transform: rotate(180deg); opacity: 1; }
.k3d-dd-menu {
  position: absolute; top: 100%; left: 50%;
  transform: translate(-50%, 8px);
  padding-top: 22px;              /* nähtamatu "sild", et hiir ei kukuks vahele */
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 10000;
}
.k3d-dd:hover .k3d-dd-menu, .k3d-dd:focus-within .k3d-dd-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(-50%, 0);
}
.k3d-dd-inner {
  min-width: 230px; background: #fff;
  border: 1.5px solid #f5e0e8; border-radius: 16px;
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
  padding: 8px; display: flex; flex-direction: column;
}
.k3d-dd-inner::before {          /* väike nool */
  content: ''; position: absolute; top: 15px; left: 50%;
  width: 12px; height: 12px; background: #fff;
  border-left: 1.5px solid #f5e0e8; border-top: 1.5px solid #f5e0e8;
  transform: translateX(-50%) rotate(45deg);
}
nav.k3d-nav .k3d-dd-inner a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 14px; border-radius: 10px;
  color: #1a1a1a !important; font-size: .9rem; font-weight: 500;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
nav.k3d-nav .k3d-dd-inner a:hover { background: #fff0f4; color: #E8527A !important; }
nav.k3d-nav .k3d-dd-inner a.k3d-dd-all { font-weight: 700; color: #E8527A !important; border-bottom: 1px solid #f5e0e8; border-radius: 10px 10px 4px 4px; margin-bottom: 4px; }
.k3d-dd-count { font-size: .72rem; font-weight: 700; color: #bbb; background: #fafafa; border-radius: 50px; padding: 2px 8px; min-width: 22px; text-align: center; }
nav.k3d-nav .k3d-dd-inner a:hover .k3d-dd-count { color: #E8527A; background: #fff; }

/* =====================================================================
   v1.50 — KASSA (Blocks) TARNEVIISID
   Uuem WooCommerce: input + __option-layout > __label-group > __label + __secondary-label
   Raadionupp vasakul, nimi kohe selle kõrval, hind paremas servas.
   Ainult tarneviisid (makseviise ei puuduta).
   ===================================================================== */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option,
.wc-block-components-totals-shipping .wc-block-components-radio-control__option {
  display: flex !important; align-items: center !important; gap: 12px !important;
  padding: 14px 16px !important; position: relative !important; min-height: 0 !important;
  box-shadow: none !important; outline: none !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option:has(input:focus-visible) {
  box-shadow: 0 0 0 3px rgba(232,82,122,.2) !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__input,
.wc-block-components-totals-shipping .wc-block-components-radio-control__input {
  position: relative !important; /* relative: WooCommerce'i täpp (::before) jääb nupu sisse */
  transform: none !important; margin: 0 !important;
  top: auto !important; left: auto !important; flex-shrink: 0 !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__input:checked,
.wc-block-components-totals-shipping .wc-block-components-radio-control__input:checked {
  border-color: #E8527A !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__input:checked::before,
.wc-block-components-totals-shipping .wc-block-components-radio-control__input:checked::before {
  background: #E8527A !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option-layout,
.wc-block-components-totals-shipping .wc-block-components-radio-control__option-layout {
  display: flex !important; flex-direction: column !important; align-items: stretch !important;
  flex: 1 1 auto !important; min-width: 0 !important; width: auto !important;
  padding: 0 !important; margin: 0 !important; gap: 2px !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label-group,
.wc-block-components-totals-shipping .wc-block-components-radio-control__label-group {
  display: flex !important; align-items: center !important; justify-content: space-between !important;
  gap: 12px !important; width: 100% !important; text-align: left !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__label,
.wc-block-components-totals-shipping .wc-block-components-radio-control__label {
  flex: 1 1 auto !important; min-width: 0 !important; text-align: left !important;
  font-size: .95rem !important; font-weight: 600 !important; color: #1a1a1a !important;
  white-space: normal !important; line-height: 1.35 !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__secondary-label,
.wc-block-components-totals-shipping .wc-block-components-radio-control__secondary-label {
  flex: 0 0 auto !important; margin-left: auto !important; text-align: right !important;
  white-space: nowrap !important; color: #E8527A !important; font-weight: 700 !important; font-size: .95rem !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__description-group,
.wc-block-components-totals-shipping .wc-block-components-radio-control__description-group {
  display: flex !important; justify-content: space-between !important; gap: 12px !important;
  font-size: .8rem !important; color: #888 !important; text-align: left !important;
}
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__description-group:empty { display: none !important; }
/* Valikute vahel pole vaja WooCommerce'i joont — kastidel on oma ääris */
.wc-block-components-shipping-rates-control .wc-block-components-radio-control__option::after { display: none !important; }
.wc-block-components-shipping-rates-control .wc-block-components-radio-control { border: none !important; box-shadow: none !important; overflow: visible !important; }
@media (max-width: 480px) {
  .wc-block-components-shipping-rates-control .wc-block-components-radio-control__option { padding: 12px 14px !important; gap: 10px !important; }
  .wc-block-components-shipping-rates-control .wc-block-components-radio-control__label { font-size: .9rem !important; }
}

/* v1.54 — kassa mobiilis: tellimuse kokkuvõte AINULT vormi all.
   WooCommerce näitab mobiilis kokkuvõtet kaks korda: külgribas (ülal) ja vormi sees (all).
   Peidame külgriba versiooni — aga ainult siis, kui vormi sees on kokkuvõte olemas,
   et kokkuvõte kunagi täiesti ära ei kaoks. */
@media (max-width: 768px) {
  .wc-block-components-sidebar-layout:has(.wc-block-checkout__main .wp-block-woocommerce-checkout-order-summary-block) .wc-block-checkout__sidebar,
  .wc-block-components-sidebar-layout:has(.wc-block-checkout__main .checkout-order-summary-block-fill-wrapper) .wc-block-checkout__sidebar {
    display: none !important;
  }
}
