/* ==========================================================================
   Alfalend — WooCommerce tootedetaili leht  (single-product.css)  v3.0
   Bränd: pruun #3D1A00, roheline #7DC242, kreem #FAF6F0, Poppins / Inter
   Töötab kahel malli-teel:
     1) body.single-product      — WooCommerce'i vaikemall
     2) body.af-wc-divi-product  — Divi et_pb_wc_* moodulitega lehed
   Uued interaktiivsed osad (breadcrumb, ostukasti kaart, koguse nupud,
   usaldusrida, kleepuv mobiiliriba, seotud toodete karusell) lisab
   single-product.js otse DOM-i — need klassid (af-sp-*) on ühised
   mõlemale mallile, seega ei vaja Divi-duplikaate.
   ========================================================================== */

body.single-product,
body.af-wc-divi-product {
    --af-brown:    #3D1A00;
    --af-brown2:   #5A2E12;
    --af-green:    #7DC242;
    --af-green-d:  #5EA22C;
    --af-cream:    #FAF6F0;
    --af-cream2:   #F3EBDD;
    --af-line:     #ECE3D6;
    --af-ink:      #3a2c20;
    --af-muted:    #8a7a67;
    --af-white:    #FFFFFF;
    --af-card-sh:      0 2px 14px rgba(61,26,0,.07);
    --af-card-sh-lg:   0 24px 60px rgba(61,26,0,.14);
    --af-radius:   18px;
}

/* ====================== LEIVARADA — PEIDETUD =========================
   af-header plugin renderdab nüüd oma leivaputku kõigil lehetüüpidel
   (sh tootelehed). WC vaikimisi breadcrumb eemaldatakse PHP-poolel
   (vt af-tooted.php), see CSS on lisakaitse juhuks kui Divi mall
   renderdab selle mõnel lehel siiski otse malli sisse. */
body.single-product .woocommerce-breadcrumb,
body.af-wc-divi-product .woocommerce-breadcrumb {
    display: none !important;
}

/* ====================== ÜLDINE LEHE LAIUS / SIDEBARI PEITMINE ========================= */

html body.single-product #sidebar,
html body.single-product .et_right_sidebar,
html body.single-product .et_left_sidebar,
html body.single-product #right-area,
html body.single-product aside.widget-area {
    display: none !important;
    width: 0 !important;
}
html body.et-right-sidebar.single-product #left-area,
html body.et-left-sidebar.single-product #left-area,
html body.single-product #left-area,
html body.single-product #content-area #left-area {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: 0 !important;
}
html body.single-product #content-area {
    display: block !important;
    width: 100% !important;
}
html body.et-right-sidebar.single-product #main-content,
html body.et-left-sidebar.single-product #main-content {
    padding-right: 0 !important;
    padding-left: 0 !important;
}
html body.single-product #main-content .container,
html body.single-product #page-container #main-content .container {
    max-width: 1560px !important;
    width: 100% !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    box-sizing: border-box !important;
}
/* Divi lisab sidebar-paigutusele vertikaalse eraldusjoone (::before) —
   kuna sidebar on peidetud, peidame ka selle joone. */
html body.single-product #main-content .container::before,
html body.single-product.et_right_sidebar #main-content .container::before,
html body.single-product.et-right-sidebar #main-content .container::before,
html body.single-product.et_left_sidebar #main-content .container::before,
html body.single-product.et-left-sidebar #main-content .container::before {
    display: none !important;
    content: none !important;
}
body.single-product .et_pb_row,
body.single-product .et_pb_row_inner {
    max-width: 1560px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
body.single-product .woocommerce,
body.single-product .woocommerce-page,
body.single-product #content .woocommerce {
    max-width: 1560px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}
body.af-wc-divi-product .et_pb_column:empty,
body.af-wc-divi-product .et_pb_column > .et_pb_module:only-child:empty {
    display: none !important;
}
body.af-wc-divi-product .et_pb_row {
    max-width: 1560px !important;
    width: 100% !important;
}

/* ====================== PÕHIPAIGUTUS: KAKS VEERGU (standardne WC) =========================
   NB: div.product klass esineb ka Divi Theme Builderi päises/jaluses
   (et_builder_inner_content product) — seepärast ankurdame #left-area külge,
   et need read tabaksid AINULT päris tootesisu. */
body.single-product #left-area div.product {
    display: grid !important;
    grid-template-columns: minmax(240px, 340px) minmax(0, 1fr) !important;
    column-gap: 48px !important;
    row-gap: 0 !important;
    align-items: start !important;
    margin-bottom: 0 !important;
    padding: 28px 24px 0 !important;
    box-sizing: border-box !important;
}
/* Divi lisab galerii+summary ümber täiendava <div class="clearfix"> wrapperi,
   mis polnud arvesse võetud — see lõhub grid vanem-laps suhte, sest gallery/
   summary polegi div.product OTSESED lapsed. display:contents eemaldab
   wrapperi visuaalselt puust, nii et grid-column/row rakenduvad korrektselt.
   Skoop on ainult div.product OTSENE .clearfix laps (> kombinaator), et mitte
   mõjutada teisi samanimelisi .clearfix elemente lehel (nt #content-area). */
body.single-product #left-area div.product > .clearfix {
    display: contents !important;
}
body.single-product .woocommerce-product-gallery {
    grid-column: 1 !important;
    grid-row: 1 !important;
    position: sticky !important;
    top: 24px !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    clear: none !important;
}
body.single-product .summary.entry-summary {
    grid-column: 2 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    float: none !important;
    width: 100% !important;
    max-width: none !important;
    clear: none !important;
}
body.single-product .woocommerce-tabs {
    grid-column: 1 / -1 !important;
    margin-top: 60px !important;
}
body.single-product .related.products,
body.single-product .up-sells.products {
    grid-column: 1 / -1 !important;
}

/* ====================== GALERII ========================= */
body.single-product .woocommerce-product-gallery,
body.af-wc-divi-product .et_pb_wc_images {
    --af-thumb-w: 84px;
}
/* Kaks-veeruline raam: pisipildid vasakul kitsas ribas, suur pilt paremal (ainult siis kui on >1 pilt — vt .af-gallery-multi, lisab JS) */
body.single-product .woocommerce-product-gallery.af-gallery-multi,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery.af-gallery-multi {
    display: grid !important;
    grid-template-columns: var(--af-thumb-w) 1fr !important;
    gap: 14px !important;
    align-items: start !important;
}
body.single-product .woocommerce-product-gallery.af-gallery-multi .woocommerce-product-gallery__wrapper,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery.af-gallery-multi .woocommerce-product-gallery__wrapper {
    grid-column: 2 !important;
    grid-row: 1 !important;
}
body.single-product .woocommerce-product-gallery.af-gallery-multi .flex-control-nav.flex-control-thumbs,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery.af-gallery-multi .flex-control-nav.flex-control-thumbs {
    grid-column: 1 !important;
    grid-row: 1 !important;
}

body.single-product .woocommerce-product-gallery__wrapper,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery__wrapper {
    border-radius: 22px !important;
    overflow: hidden !important;
    background: var(--af-cream) !important;
    aspect-ratio: 1 / 1 !important;
    box-shadow: 0 22px 50px rgba(125,194,66,.16), 0 3px 12px rgba(61,26,0,.09) !important;
    position: relative !important;
    cursor: zoom-in !important;
}
/* Peida WooCommerce'i vaikimisi suurendusklaasi nupp — meil on oma hõljatus-suum */
body.single-product .woocommerce-product-gallery__trigger,
body.af-wc-divi-product .woocommerce-product-gallery__trigger {
    display: none !important;
}
/* Toote fotod on tavaliselt puhtal valgel taustal (kontrollitud: rgb(255,255,255)
   piltide nurkades) — soe taust + mix-blend-mode: multiply peidab valge ära,
   sest valge x taustavärv = taustavärv ise, aga materjali enda värvid jäävad alles. */
body.single-product .woocommerce-product-gallery .flex-viewport,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery .flex-viewport {
    border-radius: var(--af-radius) !important;
    overflow: hidden !important;
    background: #E4D5BC !important;
}
body.single-product .woocommerce-product-gallery__wrapper img,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery__wrapper img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform .12s ease-out !important;
    mix-blend-mode: multiply !important;
}
/* Hõljatus-suum (lisab klassi af-sp-zoomed JS mousemove'i peale, tekstuuri nägemiseks) */
body.single-product .woocommerce-product-gallery__wrapper.af-sp-zoomed img,
body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery__wrapper.af-sp-zoomed img {
    transform: scale(1.9) !important;
    transition: transform .06s linear !important;
}
@media (hover: none) {
    body.single-product .woocommerce-product-gallery__wrapper,
    body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery__wrapper { cursor: default !important; }
}
/* Müügimärgis */
body.single-product span.onsale,
body.af-wc-divi-product span.onsale {
    background: var(--af-green) !important;
    border-radius: 999px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 5px 14px !important;
    min-height: auto !important;
    min-width: auto !important;
    line-height: 1.4 !important;
    top: 14px !important;
    left: 14px !important;
    box-shadow: 0 4px 14px rgba(94,162,44,.35) !important;
}
/* Pisipildid (mobiilis/kui pole af-gallery-multi: rida allpool) */
body.single-product .flex-control-nav.flex-control-thumbs {
    display: flex !important;
    gap: 10px !important;
    margin-top: 12px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    padding: 0 !important;
}
body.single-product .woocommerce-product-gallery.af-gallery-multi .flex-control-nav.flex-control-thumbs {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    margin-top: 0 !important;
    max-height: none !important;
    aspect-ratio: 1 / 1 !important;
    overflow-y: auto !important;
}
body.single-product .flex-control-thumbs li {
    margin: 0 !important;
    flex: 0 0 calc(16.66% - 9px) !important;
    width: auto !important;
}
body.single-product .woocommerce-product-gallery.af-gallery-multi .flex-control-thumbs li {
    flex: 0 0 auto !important;
    width: 100% !important;
}
body.single-product .flex-control-thumbs li img {
    border-radius: 10px !important;
    border: 2.5px solid transparent !important;
    cursor: pointer !important;
    opacity: .62 !important;
    transition: border-color .15s, opacity .15s !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    background: #E4D5BC !important;
    mix-blend-mode: multiply !important;
}
body.single-product .flex-control-thumbs li img.flex-active,
body.single-product .flex-control-thumbs li img:hover {
    border-color: var(--af-green) !important;
    opacity: 1 !important;
}


body.single-product .summary.entry-summary,
body.af-wc-divi-product .et_pb_wc_title,
body.af-wc-divi-product .et_pb_wc_price,
body.af-wc-divi-product .et_pb_wc_add_to_cart,
body.af-wc-divi-product .et_pb_wc_meta {
    font-family: 'Inter', sans-serif !important;
}
body.single-product .summary.entry-summary {
    padding: 6px 0 0 !important;
    animation: af-sp-rise .45s cubic-bezier(.2,.7,.2,1) both !important;
}
@media (prefers-reduced-motion: reduce) {
    body.single-product .summary.entry-summary { animation: none !important; }
}
@keyframes af-sp-rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Kategooria — eyebrow, roheline aktsent-triip järgneb */
body.single-product .summary .posted_in,
body.af-wc-divi-product .et_pb_wc_title .posted_in,
body.af-wc-divi-product .posted_in {
    display: block !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .14em !important;
    text-transform: uppercase !important;
    color: var(--af-green-d) !important;
    margin-bottom: 0 !important;
}
body.single-product .summary .posted_in a,
body.af-wc-divi-product .posted_in a {
    color: var(--af-green-d) !important;
    text-decoration: none !important;
}
/* Signatuurne aktsent-triip — kordub ka "Seotud tooted" pealkirja juures */
body.single-product .summary .posted_in::after,
body.af-wc-divi-product .posted_in::after {
    content: '' !important;
    display: block !important;
    width: 46px !important;
    height: 4px !important;
    border-radius: 4px !important;
    background: var(--af-green) !important;
    margin: 12px 0 18px !important;
}

/* Toote pealkiri */
body.single-product .product_title.entry-title,
body.af-wc-divi-product .et_pb_wc_title h1,
body.af-wc-divi-product .et_pb_wc_title .product_title {
    font-family: 'Poppins', sans-serif !important;
    font-size: clamp(25px, 2.7vw, 36px) !important;
    font-weight: 800 !important;
    letter-spacing: -.01em !important;
    color: var(--af-brown) !important;
    line-height: 1.15 !important;
    margin: 0 0 20px !important;
}

/* Hind — heledam "hinnasilt", mitte tume tekst valgel taustal */
body.single-product p.price,
body.single-product span.price,
body.af-wc-divi-product .et_pb_wc_price .price,
body.af-wc-divi-product .et_pb_wc_price p.price {
    display: inline-flex !important;
    align-items: baseline !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    margin: 0 0 20px !important;
    padding: 12px 20px !important;
    background: var(--af-cream) !important;
    border-radius: 12px !important;
    font-family: 'Poppins', sans-serif !important;
    line-height: 1.2 !important;
    width: fit-content !important;
    max-width: 100% !important;
}
body.single-product .price .woocommerce-Price-amount.amount,
body.af-wc-divi-product .et_pb_wc_price .woocommerce-Price-amount.amount {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: var(--af-brown2) !important;
}
body.single-product .price del .woocommerce-Price-amount.amount {
    font-size: 15px !important;
    font-weight: 400 !important;
    color: var(--af-muted) !important;
}
body.single-product .price ins,
body.af-wc-divi-product .et_pb_wc_price .price ins {
    text-decoration: none !important;
}
body.single-product .price ins .woocommerce-Price-amount.amount,
body.af-wc-divi-product .et_pb_wc_price .price ins { color: var(--af-green-d) !important; }
body.af-wc-divi-product .et_pb_wc_price .price del { color: var(--af-muted) !important; font-size: 15px !important; font-weight: 400 !important; }

/* Laoseis */
body.single-product p.stock {
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 0 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    padding: 5px 12px 5px 10px !important;
    border-radius: 999px !important;
}
body.single-product p.stock::before {
    content: '';
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
body.single-product p.in-stock {
    color: var(--af-green-d) !important;
    background: rgba(125,194,66,.12) !important;
}
body.single-product p.in-stock::before { background: var(--af-green) !important; }
body.single-product p.out-of-stock {
    color: var(--af-muted) !important;
    background: var(--af-cream2) !important;
}
body.single-product p.out-of-stock::before { background: #cbbda8 !important; }

/* Lühikirjeldus */
body.single-product .woocommerce-product-details__short-description,
body.af-wc-divi-product .et_pb_wc_description {
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.7 !important;
    color: var(--af-ink) !important;
    margin-bottom: 22px !important;
    padding-bottom: 22px !important;
    border-bottom: 1px solid var(--af-line) !important;
}
body.single-product .woocommerce-product-details__short-description p { margin: 0 0 10px !important; }
body.single-product .woocommerce-product-details__short-description ul,
body.single-product .woocommerce-product-details__short-description ol {
    padding-left: 20px !important;
    margin: 0 0 10px !important;
}

/* ====================== OSTUKORV + KOGUSE NUPUD ========================= */
body.single-product form.cart,
body.af-wc-divi-product .et_pb_wc_add_to_cart form.cart {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-bottom: 22px !important;
}

/* Koguse pill: [ - ] 1 [ + ] — nupud lisab single-product.js (af-sp-qty-btn) */
body.single-product .quantity {
    display: flex !important;
    align-items: stretch !important;
    flex-shrink: 0 !important;
    border: 1.5px solid var(--af-line) !important;
    border-radius: 11px !important;
    overflow: hidden !important;
    height: 44px !important;
    background: #fff !important;
}
body.single-product .quantity:focus-within {
    border-color: var(--af-green) !important;
    box-shadow: 0 0 0 3px rgba(125,194,66,.16) !important;
}
body.single-product .quantity .qty {
    width: 52px !important;
    height: 100% !important;
    border: none !important;
    border-left: 1px solid var(--af-line) !important;
    border-right: 1px solid var(--af-line) !important;
    font-size: 15px !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    color: var(--af-brown) !important;
    text-align: center !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
    -moz-appearance: textfield !important;
}
body.single-product .quantity .qty::-webkit-inner-spin-button,
body.single-product .quantity .qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body.single-product .quantity .af-sp-qty-btn {
    width: 38px !important;
    height: 100% !important;
    border: none !important;
    background: var(--af-cream) !important;
    color: var(--af-brown) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s, color .15s !important;
    padding: 0 !important;
    line-height: 1 !important;
}
body.single-product .quantity .af-sp-qty-btn:hover { background: var(--af-green) !important; color: #fff !important; }
body.single-product .quantity .af-sp-qty-btn:active { background: var(--af-green-d) !important; }

/* Lisa ostukorvi nupp */
body.single-product .single_add_to_cart_button.button,
body.af-wc-divi-product .et_pb_wc_cart .single_add_to_cart_button,
body.af-wc-divi-product .et_pb_wc_add_to_cart .single_add_to_cart_button {
    flex: 0 0 auto !important;
    min-width: 0 !important;
    height: 44px !important;
    padding: 0 26px !important;
    background: var(--af-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 11px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: .02em !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    box-shadow: 0 3px 14px rgba(125,194,66,.28) !important;
    transition: background .15s, transform .18s, box-shadow .18s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
body.single-product .single_add_to_cart_button.button:hover,
body.af-wc-divi-product .single_add_to_cart_button:hover {
    background: var(--af-green-d) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgba(125,194,66,.38) !important;
}
body.single-product .single_add_to_cart_button.button:disabled {
    opacity: .55 !important;
    transform: none !important;
    cursor: not-allowed !important;
}
/* Divi lisab globaalselt kõigile .button elementidele hõljatusel
   ikoonifondi noole (::after, ETmodules "5") — meie nupu kujundusega
   see kokku ei sobi (maandub keskele, mitte paremasse äärde), seega
   lülitame selle sellel nupul täielikult välja. */
body.single-product .single_add_to_cart_button.button::after,
body.single-product .single_add_to_cart_button.button::before,
body.af-wc-divi-product .single_add_to_cart_button::after,
body.af-wc-divi-product .single_add_to_cart_button::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

/* Variant-select (variable product) */
body.single-product table.variations {
    width: 100% !important;
    margin-bottom: 18px !important;
    border-collapse: collapse !important;
}
body.single-product table.variations td,
body.single-product table.variations th {
    padding: 6px 0 !important;
    vertical-align: middle !important;
}
body.single-product table.variations td.label label {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--af-brown) !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
}
body.single-product table.variations select {
    border: 1.5px solid var(--af-line) !important;
    border-radius: 10px !important;
    padding: 9px 32px 9px 12px !important;
    font-size: 14px !important;
    font-family: 'Inter', sans-serif !important;
    color: var(--af-brown) !important;
    background: #fff !important;
    cursor: pointer !important;
    outline: none !important;
    box-shadow: none !important;
    width: 100% !important;
}
body.single-product table.variations select:focus {
    border-color: var(--af-green) !important;
    box-shadow: 0 0 0 3px rgba(125,194,66,.16) !important;
}
body.single-product .reset_variations {
    font-size: 12px !important;
    color: var(--af-muted) !important;
    text-decoration: underline !important;
    cursor: pointer !important;
    margin-left: 8px !important;
}

/* ====================== USALDUSRIDA (af-sp-usp, JS-lisatud) ========================= */
.af-sp-usp {
    display: flex !important;
    flex-direction: column !important;
    gap: 11px !important;
    margin: 4px 0 20px !important;
    padding: 0 !important;
    background: none !important;
    border-radius: 0 !important;
}
.af-sp-usp-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--af-ink) !important;
}
.af-sp-usp-item svg {
    flex-shrink: 0 !important;
    width: 18px !important; height: 18px !important;
    color: var(--af-green-d) !important;
}

/* ====================== META (SKU, KATEGOORIAD, SILDID) ========================= */
body.single-product .product_meta,
body.af-wc-divi-product .et_pb_wc_meta {
    font-family: 'Inter', sans-serif !important;
    font-size: 12.5px !important;
    color: var(--af-muted) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 9px !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--af-line) !important;
    margin-top: auto !important;
}
body.single-product .product_meta > span {
    display: flex !important;
    align-items: flex-start !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}
body.single-product .product_meta .label { font-weight: 600 !important; color: var(--af-brown) !important; flex-shrink: 0 !important; margin-right: 2px !important; }
body.single-product .product_meta a {
    display: inline-block !important;
    background: var(--af-cream) !important;
    color: var(--af-brown) !important;
    padding: 3px 11px !important;
    border-radius: 999px !important;
    font-weight: 600 !important;
    font-size: 12px !important;
    text-decoration: none !important;
    transition: background .15s, color .15s !important;
}
body.single-product .product_meta a:hover { background: var(--af-green) !important; color: #fff !important; }

/* Kategooriate eraldi väljatoomine ("Kategooriad: ...") pole vajalik —
   leivarada näitab kategooria konteksti juba. Kui product_meta jääb
   pärast selle peitmist tühjaks (SKU/sildid puuduvad), ei näita see
   ka enam tühja piiritletud plokki. */
body.single-product .product_meta .posted_in,
body.af-wc-divi-product .et_pb_wc_meta .posted_in {
    display: none !important;
}
body.single-product .product_meta:empty,
body.af-wc-divi-product .et_pb_wc_meta:empty {
    display: none !important;
    padding: 0 !important;
    border: none !important;
}

/* ====================== ARVUSTUSED PEIDETUD =========================
   PHP filter (woocommerce_product_tabs) eemaldab tabi standardsel mallil
   juba renderdusest; see on turvavõrk Divi et_pb_wc-mooduli jaoks ja
   juhuks kui #reviews renderdub mõnel lehel väljaspool tab-süsteemi. */
body.single-product .woocommerce-tabs #tab-reviews,
body.single-product .woocommerce-tabs li.reviews_tab,
body.single-product #reviews,
body.af-wc-divi-product .et_pb_wc_reviews {
    display: none !important;
}

/* ====================== TABID — PILL-STIIL ========================= */
body.single-product .woocommerce-tabs,
body.af-wc-divi-product .et_pb_wc_tabs {
    background: var(--af-white) !important;
    border: 1px solid var(--af-line) !important;
    border-radius: var(--af-radius) !important;
    overflow: hidden !important;
}
body.single-product .woocommerce-tabs ul.tabs,
body.af-wc-divi-product .et_pb_wc_tabs .woocommerce-tabs ul.tabs {
    display: flex !important;
    list-style: none !important;
    padding: 14px !important;
    margin: 0 !important;
    gap: 6px !important;
    background: var(--af-cream) !important;
    border-bottom: 1px solid var(--af-line) !important;
    flex-wrap: wrap !important;
}
body.single-product .woocommerce-tabs ul.tabs::before { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    border-radius: 999px !important;
}
body.single-product .woocommerce-tabs ul.tabs li::before { display: none !important; }
body.single-product .woocommerce-tabs ul.tabs li a,
body.af-wc-divi-product .et_pb_wc_tabs ul.tabs li a {
    display: block !important;
    padding: 10px 20px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 600 !important;
    color: var(--af-brown) !important;
    text-decoration: none !important;
    border-radius: 999px !important;
    background: transparent !important;
    transition: background .15s, color .15s !important;
}
body.single-product .woocommerce-tabs ul.tabs li a:hover { background: rgba(125,194,66,.14) !important; }
body.single-product .woocommerce-tabs ul.tabs li.active a,
body.af-wc-divi-product .et_pb_wc_tabs ul.tabs li.active a {
    color: #fff !important;
    background: var(--af-green) !important;
    box-shadow: 0 4px 14px rgba(125,194,66,.30) !important;
}
body.single-product .woocommerce-tabs .panel {
    padding: 30px 28px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    line-height: 1.75 !important;
    color: var(--af-ink) !important;
    margin: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}
body.single-product .woocommerce-tabs .panel h2 { display: none !important; }
body.single-product .woocommerce-tabs .panel h3 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--af-brown) !important;
    margin: 0 0 12px !important;
}
body.single-product .woocommerce-product-attributes {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 0 !important;
}
body.single-product .woocommerce-product-attributes th,
body.single-product .woocommerce-product-attributes td {
    padding: 10px 14px !important;
    font-size: 13.5px !important;
    border: 1px solid var(--af-line) !important;
    vertical-align: top !important;
}
body.single-product .woocommerce-product-attributes th {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    color: var(--af-brown) !important;
    background: var(--af-cream) !important;
    width: 34% !important;
}
body.single-product .woocommerce-product-attributes td { color: var(--af-ink) !important; }

/* ====================== SEOTUD TOOTED — KARUSELL ========================= */
body.single-product .related.products,
body.single-product .up-sells.products {
    margin-top: 0 !important;
    padding: 50px 24px !important;
    background: none !important;
    position: relative !important;
}
body.single-product .related.products > h2,
body.single-product .up-sells.products > h2 {
    font-family: 'Poppins', sans-serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--af-brown) !important;
    margin: 0 0 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}
body.single-product .related.products > h2::before,
body.single-product .up-sells.products > h2::before {
    content: '' !important;
    display: block !important;
    width: 5px !important;
    height: 24px !important;
    border-radius: 4px !important;
    background: var(--af-green) !important;
    flex-shrink: 0 !important;
}
/* JS-i lisatav wrapper karusselli ümber, koos nooltega */
.af-sp-carousel-wrap { position: relative !important; }
.af-sp-carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 3 !important;
    width: 42px !important; height: 42px !important;
    border-radius: 50% !important;
    border: 1px solid var(--af-line) !important;
    background: #fff !important;
    color: var(--af-brown) !important;
    box-shadow: var(--af-card-sh) !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background .15s, color .15s, box-shadow .15s !important;
}
.af-sp-carousel-arrow:hover { background: var(--af-green) !important; color: #fff !important; box-shadow: 0 6px 20px rgba(125,194,66,.32) !important; }
.af-sp-carousel-arrow.af-sp-prev { left: -8px !important; }
.af-sp-carousel-arrow.af-sp-next { right: -8px !important; }
.af-sp-carousel-arrow[hidden] { display: none !important; }

body.single-product .related ul.products,
body.single-product .up-sells ul.products {
    display: grid !important;
    grid-auto-flow: column !important;
    grid-auto-columns: 260px !important;
    justify-content: start !important;
    gap: 22px !important;
    list-style: none !important;
    padding: 4px 4px 10px !important;
    margin: 0 !important;
    overflow-x: auto !important;
    scroll-snap-type: x proximity !important;
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}
body.single-product .related ul.products::-webkit-scrollbar,
body.single-product .up-sells ul.products::-webkit-scrollbar { height: 6px; }
body.single-product .related ul.products::-webkit-scrollbar-thumb,
body.single-product .up-sells ul.products::-webkit-scrollbar-thumb { background: var(--af-line); border-radius: 6px; }

body.single-product .related ul.products li.product,
body.single-product .up-sells ul.products li.product {
    background: #fff !important;
    border: 1px solid var(--af-line) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: var(--af-card-sh) !important;
    transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s, border-color .3s !important;
    display: flex !important;
    flex-direction: column !important;
    scroll-snap-align: start !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}
body.single-product .related ul.products li.product:hover,
body.single-product .up-sells ul.products li.product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 18px 44px rgba(61,26,0,.16) !important;
    border-color: transparent !important;
}
/* Kogu kaardi sisu (pilt + pealkiri + hind) on WooCommerce/Divi mallis
   ÜHE JA SAMA <a> lingi sees, mitte pilt eraldi — <a> peab olema
   voolav veerg (mitte ruudukujuline pildiümbris), muidu lõikuvad
   pealkiri/hind "ruudu alt ära". */
body.single-product .related ul.products li.product > a,
body.single-product .up-sells ul.products li.product > a {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    text-decoration: none !important;
    color: inherit !important;
}
body.single-product .related ul.products li.product .et_shop_image,
body.single-product .up-sells ul.products li.product .et_shop_image {
    display: block !important;
    position: relative !important;
    overflow: hidden !important;
    aspect-ratio: 1 / 1 !important;
    background: #E4D5BC !important;
}
body.single-product .related ul.products li.product a img,
body.single-product .up-sells ul.products li.product a img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    background: #E4D5BC !important;
    transition: transform .5s cubic-bezier(.2,.7,.2,1) !important;
    mix-blend-mode: multiply !important;
}
body.single-product .related ul.products li.product:hover a img,
body.single-product .up-sells ul.products li.product:hover a img {
    transform: scale(1.06) !important;
}
/* Divi lisab shop-kaartidele oma .et_overlay hõljatuskihi — peidame,
   et see ei kollideeruks meie enda hõljatuse-efektiga */
body.single-product .related ul.products li.product .et_overlay,
body.single-product .up-sells ul.products li.product .et_overlay {
    display: none !important;
}
body.single-product .related ul.products li.product .woocommerce-loop-product__title,
body.single-product .up-sells ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: var(--af-brown) !important;
    padding: 16px 18px 4px !important;
    margin: 0 !important;
    line-height: 1.35 !important;
}
body.single-product .related ul.products li.product .price,
body.single-product .up-sells ul.products li.product .price {
    display: block !important;
    padding: 4px 18px 16px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--af-brown2) !important;
    font-family: 'Poppins', sans-serif !important;
    margin-top: auto !important;
}
body.single-product .related ul.products li.product .price del,
body.single-product .up-sells ul.products li.product .price del {
    color: var(--af-muted) !important;
    font-weight: 400 !important;
    font-size: 12px !important;
}
body.single-product .related ul.products li.product .price ins,
body.single-product .up-sells ul.products li.product .price ins {
    text-decoration: none !important;
    color: var(--af-green-d) !important;
}
body.single-product .related ul.products li.product a.button,
body.single-product .up-sells ul.products li.product a.button,
body.single-product .related ul.products li.product .button,
body.single-product .up-sells ul.products li.product .button {
    margin: 0 14px 16px !important;
    display: block !important;
    background: var(--af-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 9px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    padding: 10px 12px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: background .15s !important;
    box-shadow: 0 3px 12px rgba(125,194,66,.25) !important;
}
body.single-product .related ul.products li.product a.button:hover,
body.single-product .up-sells ul.products li.product a.button:hover,
body.single-product .related ul.products li.product .button:hover,
body.single-product .up-sells ul.products li.product .button:hover {
    background: var(--af-green-d) !important;
}
body.single-product .related ul.products li.product a.button::after,
body.single-product .related ul.products li.product a.button::before,
body.single-product .related ul.products li.product .button::after,
body.single-product .related ul.products li.product .button::before,
body.single-product .up-sells ul.products li.product .button::after,
body.single-product .up-sells ul.products li.product .button::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

/* ====================== TEATED (woocommerce-notices) ========================= */
body.single-product .woocommerce-message,
body.single-product .woocommerce-info {
    border-top-color: var(--af-green) !important;
    background: rgba(125,194,66,.08) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    color: var(--af-ink) !important;
    border-radius: 0 0 8px 8px !important;
}
body.single-product .woocommerce-message a.button,
body.single-product .woocommerce-info a.button {
    background: var(--af-green) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600 !important;
    padding: 8px 18px !important;
    text-decoration: none !important;
    transition: background .15s !important;
}
body.single-product .woocommerce-message a.button:hover,
body.single-product .woocommerce-info a.button:hover {
    background: var(--af-green-d) !important;
}
body.single-product .woocommerce-message a.button::after,
body.single-product .woocommerce-message a.button::before,
body.single-product .woocommerce-info a.button::after,
body.single-product .woocommerce-info a.button::before {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
}

/* ====================== KLEEPUV MOBIILIRIBA (af-sp-sticky, JS-lisatud) ========================= */
.af-sp-sticky {
    position: fixed !important;
    left: 0 !important; right: 0 !important; bottom: 0 !important;
    z-index: 9999 !important;
    background: #fff !important;
    border-top: 1px solid var(--af-line) !important;
    box-shadow: 0 -10px 30px rgba(61,26,0,.14) !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 14px !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    transform: translateY(110%) !important;
    transition: transform .28s cubic-bezier(.2,.7,.2,1) !important;
}
.af-sp-sticky.is-visible { transform: translateY(0) !important; }
.af-sp-sticky-thumb {
    width: 44px !important; height: 44px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    background: var(--af-cream) !important;
}
.af-sp-sticky-info { flex: 1 1 auto !important; min-width: 0 !important; }
.af-sp-sticky-title {
    font-family: 'Poppins', sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: var(--af-brown) !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 2px !important;
}
.af-sp-sticky-price {
    font-family: 'Poppins', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--af-green-d) !important;
}
.af-sp-sticky-price del { color: var(--af-muted) !important; font-weight: 400 !important; font-size: 12px !important; margin-right: 4px !important; }
.af-sp-sticky-btn {
    flex-shrink: 0 !important;
    background: var(--af-green) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 12px 18px !important;
    cursor: pointer !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}
.af-sp-sticky-btn:active { background: var(--af-green-d) !important; }
@media (min-width: 961px) {
    .af-sp-sticky { display: none !important; }
}

/* ====================== RESPONSIVE ========================= */
@media (max-width: 960px) {
    body.single-product #left-area div.product {
        grid-template-columns: 1fr !important;
        column-gap: 0 !important;
        padding: 16px 16px 0 !important;
    }
    body.single-product .woocommerce-product-gallery {
        position: static !important;
        grid-column: 1 !important;
        grid-row: 1 !important;
    }
    body.single-product .woocommerce-product-gallery.af-gallery-multi,
    body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery.af-gallery-multi {
        grid-template-columns: 1fr !important;
    }
    body.single-product .woocommerce-product-gallery.af-gallery-multi .flex-control-nav.flex-control-thumbs,
    body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery.af-gallery-multi .flex-control-nav.flex-control-thumbs {
        flex-direction: row !important;
        overflow-y: visible !important;
        aspect-ratio: auto !important;
    }
    body.single-product .woocommerce-product-gallery.af-gallery-multi .flex-control-thumbs li,
    body.af-wc-divi-product .et_pb_wc_images .woocommerce-product-gallery.af-gallery-multi .flex-control-thumbs li {
        width: auto !important;
        flex: 0 0 calc(16.66% - 9px) !important;
    }
    body.single-product .summary.entry-summary {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-top: 24px !important;
        padding: 0 4px !important;
    }
    body.single-product .woocommerce-tabs { margin-top: 32px !important; }
    body.single-product .related.products,
    body.single-product .up-sells.products { padding: 36px 20px 44px !important; }
    /* Ostukorvinupu järel jäta ruumi kleepuva riba jaoks */
    body.single-product #left-area div.product { padding-bottom: 76px !important; }
}
@media (max-width: 560px) {
    body.single-product .product_title.entry-title { font-size: 21px !important; }
    body.single-product .price .woocommerce-Price-amount.amount { font-size: 24px !important; }
    body.single-product form.cart { flex-direction: column !important; align-items: stretch !important; }
    body.single-product .quantity { align-self: flex-start !important; }
    body.single-product .single_add_to_cart_button.button { min-width: auto !important; width: 100% !important; }
    body.single-product .woocommerce-tabs ul.tabs { padding: 10px !important; }
    body.single-product .woocommerce-tabs ul.tabs li a { padding: 9px 16px !important; font-size: 12.5px !important; white-space: nowrap !important; }
    body.single-product .woocommerce-tabs .panel { padding: 22px 18px !important; }
    body.single-product .related.products, body.single-product .up-sells.products { padding: 28px 16px 40px !important; }
    body.single-product .related ul.products,
    body.single-product .up-sells ul.products { grid-auto-columns: 190px !important; gap: 14px !important; }
    .af-sp-carousel-arrow { display: none !important; }
}
