/* ===== SSC Blogi disain (2026-07-20) — laetakse ssc-blog-design.php mu-plugina kaudu ===== */

/* Postituse sisu: pildid tekstist lahku (min 10px) */
.single-post .wp-block-post-content figure,
.single-post .wp-block-post-content .wp-block-image {
    margin-top: 14px;
    margin-bottom: 14px;
}
.single-post .wp-block-post-content img { height: auto; }
.single-post .wp-block-post-content img.alignleft,
.single-post .wp-block-post-content .alignleft {
    float: left;
    margin: 6px 16px 12px 0;
}
.single-post .wp-block-post-content img.alignright,
.single-post .wp-block-post-content .alignright {
    float: right;
    margin: 6px 0 12px 16px;
}
.single-post .wp-block-post-content img.aligncenter,
.single-post .wp-block-post-content .aligncenter {
    display: block;
    margin: 14px auto;
}

/* Esilehe blogi-sektsiooni kaardid */
body.home .ssc-blog-section .wp-block-post-title {
    display: block !important;
    overflow: visible;
}
/* Kaardi-pealkirjad BOLD ja silmapaistvad (esileht + arhiiv; Piret 20.07) */
.ssc-blog-section .wp-block-post-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin: 2px 0 6px !important;
}
.ssc-blog-section .wp-block-post-title a {
    font-weight: 700 !important;
    color: inherit;
}
.ssc-blog-section .wp-block-post-featured-image { margin-bottom: 10px; }
.ssc-blog-section .wp-block-post-featured-image img { border-radius: 8px; }
.ssc-blog-section .wp-block-post-title a { text-decoration: none; color: inherit; }
.ssc-blog-section .wp-block-post-title a:hover { color: #c41230; }
.ssc-blog-section .wp-block-post-excerpt { font-size: 14px; color: #555; margin-top: 6px; }
.ssc-blog-section .wp-block-post-excerpt__more-link {
    color: #c41230;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

/* Ääred (Piret: min 100px molemal pool) + 9 kaarti.
   NB: has-global-padding reegel on spetsiifilisem -> vaja tugevat selektorit + !important */
.wp-block-group.ssc-blog-section,
.ssc-blog-section {
    padding-left: 100px !important;
    padding-right: 100px !important;
    box-sizing: border-box;
}
@media (max-width: 781px) {
    .wp-block-group.ssc-blog-section,
    .ssc-blog-section {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
.ssc-blog-section .wp-block-post-template { row-gap: 34px; }

/* Blogi laius (TT5 vaikimisi 645px on kitsas) — KOGU postituse veerg 900px.
   NB: pealkiri/esipilt on PESASTATUD constrained-gruppides -> selektor peab katma koik tasemed */
.single-post main .is-layout-constrained > :where(:not(.alignwide):not(.alignfull)),
.single-post main.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)),
.blog main .is-layout-constrained > :where(:not(.alignwide):not(.alignfull)),
.blog main.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Pealkiri samale 900px joonele (tema konteiner pole constrained) */
.single-post main .wp-block-post-title {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Esipilt tekstilaiuseks (Piret 20.07) */
.single-post main .wp-block-post-featured-image { width: 100%; max-width: 900px; }
.single-post main .wp-block-post-featured-image img { width: 100%; height: auto; }

/* Vana blogi veerublokid (pilt+tekst korvuti) tulid gap-klassideta -> vahe 0. Anna vahe. */
.single-post .wp-block-post-content .wp-block-columns {
    gap: 24px;
}
.single-post .wp-block-post-content .wp-block-column > figure:first-child {
    margin-top: 0;
}

/* Arhiivileht LAIAKS: sisemine constrained-piirang maha, aared 100px, kaardid suuremaks */
.ssc-blog-archive.is-layout-constrained > :where(:not(.alignfull)) {
    max-width: none;
}
.ssc-blog-archive {
    padding-left: 100px !important;
    padding-right: 100px !important;
    box-sizing: border-box;
}
@media (max-width: 781px) {
    .ssc-blog-archive {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
}
.ssc-blog-archive .wp-block-post-template {
    gap: 40px 28px;
}
.ssc-blog-archive .wp-block-query-pagination { margin-top: 36px; justify-content: center; }

/* Footeri margised: Turvaline ostukoht + pangakaardid + EL fond (sprite live-saidilt) */
.ssc-footer-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    padding: 24px 20px 8px;
}
.ssc-safe-store {
    display: inline-block;
    width: 163px;
    height: 166px;
    background: url('/wp-content/uploads/ssc-static/sokisahtel-sprite.webp') 0 -30px no-repeat;
}
.ssc-bank-cards {
    display: inline-block;
    width: 168px;
    height: 56px;
    background: url('/wp-content/uploads/ssc-static/sokisahtel-sprite.webp') 0 -210px no-repeat;
}


/* Sisulehed (ostutingimused, tarne jne) laiemaks — sama 900px nagu blogi (Piret 20.07) */
body.page:not(.home) main .is-layout-constrained > :where(:not(.alignwide):not(.alignfull)),
body.page:not(.home) main.is-layout-constrained > :where(:not(.alignwide):not(.alignfull)) {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}


/* Infolehtede + blogi tüpograafia (Piret 21.07: "pikad jorud, pealkirjad pole boldis") */
body:not(.home) .wp-block-post-content h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    margin-top: 38px !important;
    margin-bottom: 14px !important;
}
body:not(.home) .wp-block-post-content h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.35;
    margin-top: 28px !important;
    margin-bottom: 10px !important;
}
body:not(.home) .wp-block-post-content h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
    margin-top: 22px !important;
    margin-bottom: 8px !important;
}
body:not(.home) .wp-block-post-content p {
    line-height: 1.65;
    margin-bottom: 14px;
}
body:not(.home) .wp-block-post-content ul,
body:not(.home) .wp-block-post-content ol {
    margin: 0 0 16px;
    padding-left: 26px;
}
body:not(.home) .wp-block-post-content li { margin-bottom: 6px; line-height: 1.6; }
body:not(.home) .wp-block-post-content table { border-collapse: collapse; margin: 16px 0; }
body:not(.home) .wp-block-post-content td,
body:not(.home) .wp-block-post-content th { border: 1px solid #ddd; padding: 8px 12px; }

/* Toote-tiilid: kast pildiga samas suhtes 2:3 -> toode taies ulatuses nahtav, midagi ei loigata
   (WC product-image blokk paneb inline aspect-ratio:3:4, pildid on 2:3 -> varbad kadusid) */
.wp-block-woocommerce-product-image img {
    aspect-ratio: 2 / 3 !important;
    object-fit: cover !important;
    width: 100% !important;
    height: auto !important;
}

/* Kiirvalik: suuruse-popover toote-tiilis (ssc-quick-add) */
.wp-block-woocommerce-product-button { position: relative; }
.ssc-qa-pop {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    padding: 12px 14px;
    z-index: 60;
    min-width: 170px;
    text-align: center;
}
.ssc-qa-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.ssc-qa-sizes { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ssc-qa-size {
    border: 1px solid #c41230;
    background: #fff;
    color: #c41230;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.ssc-qa-size:hover { background: #c41230; color: #fff; }
.ssc-qa-view { display: inline-block; margin-top: 8px; font-size: 12px; color: #555; text-decoration: underline; }
.ssc-qa-done { color: #1a7f37; font-weight: 700; padding: 4px 6px; }

/* ===== Megamenüü redisain (Piret 21.07: "harali ja pläss" -> kompaktne, peakategooriad värviga) ===== */
@media (min-width: 782px) {
    .ssc-mega {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%);
        width: max-content;
        max-width: min(1160px, 96vw);
        border: 1px solid #e6e6e6;
        border-top: 3px solid #c41230 !important;
        border-radius: 0 0 12px 12px;
        padding: 22px 26px !important;
        box-shadow: 0 16px 38px rgba(0,0,0,.18) !important;
    }
    .ssc-has-mega:hover > .ssc-mega {
        display: flex;
        gap: 4px;
        justify-content: flex-start;
    }
    .ssc-mega-col {
        min-width: 150px !important;
        max-width: 200px !important;
        padding: 0 18px !important;
        border-right: 1px solid #f2f2f2;
    }
    .ssc-mega-col:first-child { padding-left: 4px !important; }
    .ssc-mega-col:last-child { border-right: none; padding-right: 4px !important; }
    /* Peakategooriad brändipunasega + selge eraldusjoon */
    .ssc-mega-col h4,
    .ssc-mega-col h4 a {
        color: #c41230 !important;
        font-size: 13.5px !important;
    }
    .ssc-mega-col h4 {
        border-bottom: 2px solid #f3d3d8 !important;
        padding-bottom: 7px !important;
        margin-bottom: 10px !important;
    }
    .ssc-mega-col h4 a:hover { text-decoration: underline; }
    /* Alamlingid kompaktselt */
    .ssc-mega-col a {
        font-size: 13px !important;
        padding: 3px 0 !important;
        line-height: 1.45 !important;
    }
    .ssc-mega-col > a:hover {
        color: #c41230 !important;
        padding-left: 3px !important;
    }
    .ssc-mega-highlight {
        color: #c41230 !important;
        font-weight: 700 !important;
        margin-top: 10px !important;
    }
}

/* SEO-tekst esilehe lõpus v3: iga küsimus eraldi hall kaart, valged vahed (Piret 21.07) */
.ssc-seo-section { padding-top: 30px; padding-bottom: 44px; }
.ssc-seo-card { display: flex; flex-direction: column; gap: 0; }
.ssc-seo-block {
    background: #f7f7f8;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 22px 28px;
    margin-bottom: 14px;
}
.ssc-seo-body { display: flex; flex-direction: column; }
.ssc-seo-block h2 { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: #1a1a1a; }
.ssc-seo-block h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px;
    padding-left: 12px;
    border-left: 3px solid #c41230;
    line-height: 1.35;
}
.ssc-seo-block h3:not(:first-child) { margin-top: 18px; }
.ssc-seo-block p { font-size: 14px; line-height: 1.7; color: #555; margin: 0 0 10px; }
.ssc-seo-block p:last-child { margin-bottom: 0; }
.ssc-seo-block a { color: #c41230; }
.ssc-seo-block ul, .ssc-seo-block ol { margin: 0 0 10px; padding-left: 24px; color: #555; font-size: 14px; }
.ssc-seo-more summary {
    cursor: pointer;
    color: #c41230;
    font-weight: 700;
    font-size: 14px;
    margin: 0 0 14px;
    list-style: none;
    display: inline-block;
}
.ssc-seo-more summary::-webkit-details-marker { display: none; }
.ssc-seo-more summary::after { content: ' ▾'; }
.ssc-seo-more[open] summary::after { content: ' ▴'; }

/* Instagrami sektsioon */
.ssc-ig-section { padding-top: 8px; padding-bottom: 24px; }
.ssc-ig-section h2 { margin-bottom: 14px; }

/* Korviloendur: peidus kui 0 (fragment uuendab kohe) */
.ssc-cart-badge-empty { display: none !important; }

/* Tiili hover: saadaval suurused (vana poe stiil) */
.wp-block-woocommerce-product-image,
.wc-block-components-product-image { position: relative; }
.ssc-hover-sizes {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: rgba(255,255,255,.85);
    opacity: 0;
    transition: opacity .15s;
    pointer-events: none;
    text-align: center;
    padding: 12px;
}
li.wp-block-post:hover .ssc-hover-sizes,
li.wc-block-product:hover .ssc-hover-sizes,
.wc-block-grid__product:hover .ssc-hover-sizes,
.wp-block-woocommerce-product-image:hover .ssc-hover-sizes,
.wc-block-components-product-image:hover .ssc-hover-sizes {
    opacity: 1;
}
.ssc-hover-sizes strong { color: #c41230; font-size: 15px; font-weight: 700; }
.ssc-hover-sizes span { color: #c41230; font-size: 14px; }
@media (hover: none) { .ssc-hover-sizes { display: none; } }

/* Megamenüü hover-viivituse tugi (JS lisab klassi; menüü püsib lahti kuni hiir kohale jõuab) */
@media (min-width: 782px) {
    .ssc-has-mega.ssc-mega-open > .ssc-mega { display: flex; }
}

/* ===== MOBIILIPARANDUSED (Piret 22.07) ===== */
@media (max-width: 781px) {
    /* 1. Hero bannerid täislaiuseks. NB: html-prefiks = kõrgem spetsiifilisus kui critical-css
       (see prindib HILJEM head'i ja võidaks muidu järjekorraga) */
    html body.home .ssc-hero,
    html body.home .wp-block-woocommerce-product-collection,
    html body.home .ssc-section-wrap,
    html body.home .ssc-categories-strip,
    html body.home .ssc-trust-bar {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    html body.home .ssc-hero {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    html body.home .ssc-hero-main, html body.home .ssc-hero-side, html body.home .ssc-hero-card {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
    }
    html body.home .ssc-hero-side {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    html body.home .ssc-hero img, html body.home .ssc-banner-full img { width: 100%; height: auto; display: block; }
    /* 2.+3. Tootegrid 2 veergu mobiilis (poole lühem leht, blogi lähemal) */
    ul.wc-block-product-template {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 22px 10px !important;
    }
    ul.wc-block-product-template > li { width: auto !important; margin: 0 !important; }
}
/* Viimase toote ja footeri vahe (Piret: nupp footeri vastas kinni) */
.wp-block-woocommerce-product-collection { padding-bottom: 34px; }

/* Toote topeltkirjeldus: peida Kirjeldus-tab (sama tekst on juba ülal lühikirjelduses) */
body:not(.ssc-has-description).single-product li.description_tab,
body:not(.ssc-has-description).single-product .woocommerce-Tabs-panel--description { display: none !important; }
/* NB 14.08.2026: kui tootel on PARIS eraldi kirjeldus (mitte luhikirjelduse koopia),
   lisab ssc-product-description.php body-klassi .ssc-has-description ja see reegel
   EI RAKENDU -> WooCommerce saab sakke ise juhtida (aktiivne sakk jaab oigeks). */

/* ===== Toote-sildid (Piret 22.07): soodus = punane ring protsendiga, UUS = tumesinine ring ===== */
/* WC enda valge "ALLAHINDLUS" silt maha (ssc-badge-sale asendab protsendiga) */
.wc-block-components-product-sale-badge,
.wp-block-woocommerce-product-sale-badge,
span.onsale {
    display: none !important;
}
.ssc-cat-badge.ssc-badge-sale,
.ssc-cat-badge.ssc-badge-new {
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    width: 46px;
    height: 46px;
    padding: 0 !important;
    color: #fff !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.ssc-cat-badge.ssc-badge-sale {
    background: #c41230 !important;
    font-size: 13px !important;
}
.ssc-cat-badge.ssc-badge-new {
    background: #1d2a4a !important;
    font-size: 12px !important;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* Sildid paremale (Piret 22.07) */
.ssc-cat-badges {
    left: auto !important;
    right: 10px !important;
    align-items: flex-end;
}

/* Parempoolsete menüüde (Kingitused, Soodusmüük) paneel OTSE menüüpunkti all
   (ankurdatud punkti külge, laieneb vasakule; Piret 22.07 v2) */
@media (min-width: 782px) {
    .ssc-menu > li.ssc-has-mega:nth-last-child(-n+2) {
        position: relative !important;
    }
    .ssc-menu > li.ssc-has-mega:nth-last-child(-n+2) > .ssc-mega {
        left: auto !important;
        right: 0 !important;
        transform: none !important;
    }
}

/* ===== Ostukorv puhtamaks (Piret 22.07: "liiga jooneline ja ebaselge") ===== */
/* Päiserida (TOODE/KOKKU) maha — vähem jooni */
.wc-block-cart-items__header { display: none !important; }
/* Tabel plokkideks, read kaartideks */
table.wc-block-cart-items { display: block !important; border: 0 !important; }
table.wc-block-cart-items tbody { display: block !important; }
tr.wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 4px 16px;
    align-items: start;
    background: #f7f7f8;
    border: 1px solid #ececec !important;
    border-radius: 12px;
    padding: 16px !important;
    margin-bottom: 14px;
}
/* WC mobiili-CSS annab product-lahtrile grid-column 2/4 -> hind lykatakse
   implitsiitsesse 4. veergu rea servast valja (mobiilis aar peidus).
   Pinnime lahtrid ise oigetesse veergudesse. */
tr.wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2 / 3 !important; }
tr.wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 3 !important;
    grid-row: 1 !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
tr.wc-block-cart-items__row .wc-block-cart-item__total .wc-block-components-sale-badge { white-space: normal; text-align: right; }
.wc-block-cart-items__row td {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}
.wc-block-cart-item__image { grid-row: span 2; }
.wc-block-cart-item__image img { border-radius: 8px; width: 92px; height: auto; }
.wc-block-cart-item__total { text-align: right; font-weight: 700; }
.wc-block-cart-item__product .wc-block-components-product-name {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 15px;
    text-decoration: none;
}
.wc-block-cart-item__product .wc-block-components-product-metadata { color: #777; font-size: 13px; }
/* Koguse valija pehmemaks */
.wc-block-components-quantity-selector {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
}
.wc-block-components-quantity-selector::after { display: none !important; }
/* Kokkuvõtte kast halliks kaardiks */
.wc-block-cart__sidebar .wp-block-woocommerce-cart-totals-block,
.wc-block-cart__sidebar .wp-block-woocommerce-cart-order-summary-block {
    background: #f7f7f8;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 22px 22px 18px;
}
.wc-block-cart__totals-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    border: 0 !important;
    text-transform: none !important;
    padding: 0 0 10px !important;
}
.wc-block-cart__sidebar .wc-block-components-totals-item,
.wc-block-cart__sidebar .wc-block-components-panel {
    border: 0 !important;
}
.wc-block-cart__sidebar .wc-block-components-totals-wrapper {
    border-top: 1px solid #e5e5e5 !important;
    padding: 10px 0 !important;
}
.wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-cart__sidebar .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-size: 19px !important;
    font-weight: 700 !important;
}
.wc-block-cart__submit-button {
    border-radius: 10px !important;
    font-weight: 700 !important;
    padding: 14px !important;
}
@media (max-width: 781px) {
    tr.wc-block-cart-items__row { grid-template-columns: 72px minmax(0, 1fr) auto; padding: 12px !important; }
    .wc-block-cart-item__image img { width: 72px; }
}

/* Ostukorvi kokkuvõtte tekstid suuremaks (Piret 22.07: tarneaadress "maru väike") */
.wc-block-cart__sidebar .wc-block-components-totals-item__label,
.wc-block-cart__sidebar .wc-block-components-totals-item__value {
    font-size: 15px !important;
}
.wc-block-cart__sidebar .wc-block-components-totals-shipping__via,
.wc-block-cart__sidebar .wc-block-components-shipping-address,
.wc-block-cart__sidebar .wc-block-components-totals-shipping-address,
.wc-block-cart__sidebar .wc-block-components-totals-shipping__change-address__link,
.wc-block-cart__sidebar .wc-block-components-shipping-calculator-address,
.wc-block-cart__sidebar .wc-block-components-totals-item__description {
    font-size: 13.5px !important;
    color: #444 !important;
    line-height: 1.5 !important;
}

/* "Tulen ise järele" rippmenüü: linnad bold+tume, poenimed tumedamaks (Piret 22.07) */
.ssc-dd-separator {
    color: #1a1a1a !important;
    font-weight: 700 !important;
    font-size: 12.5px !important;
    background: #f0f0f0 !important;
}
.ssc-dd-item {
    color: #1a1a1a !important;
    font-weight: 500 !important;
}

/* Kassa tingimuste-rida loetavamaks (Piret 22.07) */
.ssc-terms-block label,
.ssc-terms-block label span {
    font-size: 14.5px !important;
    font-weight: 700 !important;
    color: #333 !important;
    line-height: 1.5 !important;
}

/* === Minu konto: logini/registreerimise nupud brändipunaseks + sotsiaal-login === */
.woocommerce-account button.woocommerce-form-login__submit,
.woocommerce-account button.woocommerce-form-register__submit,
.woocommerce-account .woocommerce-Button{background:#c41230 !important;border-color:#c41230 !important;color:#fff !important;border-radius:6px}
.woocommerce-account button.woocommerce-form-login__submit:hover,
.woocommerce-account button.woocommerce-form-register__submit:hover{background:#a30e27 !important}
.ssc-social-login{margin-top:18px;padding-top:14px;border-top:1px solid #eee}
.ssc-social-sep{display:block;text-align:center;color:#888;font-size:13px;margin-bottom:10px}

/* === Minu konto sisevaade (D-038): kompaktne kulgmenuu + sisu === */
html body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation){display:flex;gap:36px;align-items:flex-start;max-width:1100px;margin-left:auto;margin-right:auto;margin-bottom:70px}
html body .woocommerce-MyAccount-navigation{flex:0 0 250px;background:#f7f7f8;border-radius:12px;padding:12px}
html body .woocommerce-MyAccount-navigation ul{list-style:none;margin:0;padding:0}
html body .woocommerce-MyAccount-navigation li{margin:0 !important;padding:0 !important;border:0}
html body .woocommerce-MyAccount-navigation li a{display:block;padding:11px 14px;border-radius:8px;color:#333;text-decoration:none;font-size:15px;line-height:1.3}
html body .woocommerce-MyAccount-navigation li a:hover{background:#fff;color:#c41230}
html body .woocommerce-MyAccount-navigation li.is-active a{background:#fff;color:#c41230;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.07)}
html body .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:8px !important;border-top:1px solid #e7e7ea}
html body .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout a{color:#888;font-size:14px}
html body .woocommerce-MyAccount-content{flex:1;min-width:0;font-size:15.5px;line-height:1.65}
html body .woocommerce-MyAccount-content>p:first-of-type{font-size:16.5px}
html body .woocommerce-MyAccount-content a{color:#c41230}
html body .woocommerce-MyAccount-content table.shop_table{border:0;border-collapse:collapse;width:100%}
html body .woocommerce-MyAccount-content table.shop_table th{background:#f7f7f8;padding:11px 12px;font-size:13.5px;text-transform:uppercase;letter-spacing:.02em;color:#555;border:0}
html body .woocommerce-MyAccount-content table.shop_table td{padding:13px 12px;border:0;border-bottom:1px solid #eee;font-size:15px}
html body .woocommerce-MyAccount-content .woocommerce-Addresses .woocommerce-Address,
html body .woocommerce-MyAccount-content .woocommerce-Address{background:#f7f7f8;border-radius:12px;padding:20px 22px}
html body .woocommerce-MyAccount-content .woocommerce-Address address{font-style:normal;line-height:1.7}
html body .woocommerce-MyAccount-content h2,html body .woocommerce-MyAccount-content h3{font-weight:700}
@media (max-width:781px){
 html body.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation){display:block}
 html body .woocommerce-MyAccount-navigation{flex:none;margin-bottom:22px;padding:8px}
 html body .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:4px}
 html body .woocommerce-MyAccount-navigation li a{padding:8px 12px;font-size:14px;white-space:nowrap}
 html body .woocommerce-MyAccount-navigation li.woocommerce-MyAccount-navigation-link--customer-logout{margin-top:0 !important;border-top:0}
}

/* === Infolehed (D-039): laius, tüpograafia, video, galerii, TOC, CF7 vorm === */
html body.ssc-infoleht .entry-content > :where(:not(.alignfull)){max-width:1020px;margin-left:auto;margin-right:auto}
html body.ssc-infoleht .entry-content{padding-bottom:70px}
html body.ssc-infoleht .entry-content p,html body.ssc-infoleht .entry-content li{font-size:16.5px;line-height:1.75;color:#333}
html body.ssc-infoleht .entry-content h2,html body.ssc-infoleht .entry-content h2.has-medium-font-size{font-size:27px;font-weight:700;line-height:1.25;margin:44px auto 14px;color:#181818}
html body.ssc-infoleht .entry-content h3,html body.ssc-infoleht .entry-content h3.has-normal-font-size{font-size:20px;font-weight:700;line-height:1.3;margin:30px auto 10px;color:#181818}
html body.ssc-infoleht .entry-content h2 strong,html body.ssc-infoleht .entry-content h3 strong{font-weight:700}
html body.ssc-infoleht .entry-content ul{margin:14px auto 20px;padding-left:26px}
html body.ssc-infoleht .entry-content li{margin:6px 0}
html body.ssc-infoleht .entry-content a{color:#c41230}
/* veerud: pilt ja tekst lahku */
html body.ssc-infoleht .wp-block-columns{gap:48px;margin:38px auto;align-items:center}
html body.ssc-infoleht .wp-block-column figure{margin:0}
html body.ssc-infoleht .wp-block-image img{border-radius:12px;height:auto}
/* YouTube mõistlikuks */
html body.ssc-infoleht .wp-block-embed{margin:30px auto;max-width:780px}
html body.ssc-infoleht .wp-block-embed__wrapper iframe{width:100%;aspect-ratio:16/9;height:auto;border-radius:12px}
/* video-plokk */
html body.ssc-infoleht .wp-block-video{max-width:400px;margin:0 auto}
html body.ssc-infoleht .wp-block-video video{width:100%;border-radius:12px}
/* galerii ruudustik */
html body.ssc-infoleht .gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:10px 0}
html body.ssc-infoleht .gallery .gallery-item{margin:0}
html body.ssc-infoleht .gallery .gallery-icon{margin:0}
html body.ssc-infoleht .gallery img{width:100%;height:auto;border-radius:8px;display:block}
/* sisukord */
html body.ssc-infoleht .simpletoc{background:#f7f7f8;border-radius:12px;padding:20px 24px 20px 42px;max-width:660px;margin:0 auto 34px;list-style:disc}
html body.ssc-infoleht .simpletoc li{margin:5px 0;font-size:15px}
html body.ssc-infoleht .simpletoc a{color:#333;text-decoration:none}
html body.ssc-infoleht .simpletoc a:hover{color:#c41230;text-decoration:underline}
html body.ssc-infoleht .simpletoc ul{margin:4px 0 0;padding-left:20px}
/* punane nupp-link (hulgimüüjale CTA) */
html body .ssc-btn-red{display:inline-block;background:#c41230;color:#fff !important;padding:13px 26px;border-radius:8px;font-weight:700;text-decoration:none;font-size:16px;margin-top:6px}
html body .ssc-btn-red:hover{background:#a30e27}
/* CF7 vorm */
html body .wpcf7{background:#f7f7f8;border-radius:14px;padding:30px 32px;max-width:760px;margin:24px auto 40px}
html body .wpcf7 form p{margin:0 0 14px}
html body .wpcf7 label{font-size:14.5px;font-weight:600;color:#333}
html body .wpcf7 input[type=text],html body .wpcf7 input[type=email],html body .wpcf7 input[type=tel],html body .wpcf7 textarea{width:100%;padding:11px 14px;border:1px solid #ddd;border-radius:8px;font-size:15.5px;background:#fff;margin-top:5px;box-sizing:border-box}
html body .wpcf7 input:focus,html body .wpcf7 textarea:focus{border-color:#c41230;outline:none;box-shadow:0 0 0 3px rgba(196,18,48,.08)}
html body .wpcf7 textarea{min-height:120px;resize:vertical}
html body .wpcf7 .ssc-cf7-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}
html body .wpcf7 .ssc-cf7-quiz input{max-width:140px}
html body .wpcf7 input[type=submit],html body .wpcf7 .wpcf7-submit{background:#c41230;color:#fff;border:0;border-radius:8px;padding:13px 30px;font-size:16px;font-weight:700;cursor:pointer}
html body .wpcf7 .wpcf7-submit:hover{background:#a30e27}
html body .wpcf7 .wpcf7-not-valid{border-color:#d63637 !important}
html body .wpcf7 .wpcf7-not-valid-tip{color:#d63637;font-size:13px;margin-top:4px}
html body .wpcf7 .wpcf7-response-output{border:0;background:#fff;border-radius:8px;padding:14px 16px;margin:10px 0 0;font-size:15px}
@media (max-width:781px){
 html body .wpcf7 .ssc-cf7-grid{grid-template-columns:1fr}
 html body.ssc-infoleht .gallery{grid-template-columns:repeat(3,1fr)}
 html body.ssc-infoleht .wp-block-columns{gap:20px}
 html body .wpcf7{padding:22px 18px}
}

/* infolehe video+vorm kitsamaks (critical-css 900px ülekirjutus) */
html body.ssc-infoleht .entry-content .wp-block-embed{max-width:780px !important;margin-left:auto !important;margin-right:auto !important}
html body.ssc-infoleht .entry-content .wpcf7{max-width:760px !important;margin-left:auto !important;margin-right:auto !important}
html body.ssc-infoleht .entry-content .wp-block-video{max-width:400px !important;margin-left:auto !important;margin-right:auto !important}

/* infolehe pohisisu laiemaks (900 -> 1020), video/vorm/TOC jaavad kitsaks */
html body.ssc-infoleht .entry-content > :where(:not(.alignfull):not(.wp-block-embed):not(.wpcf7):not(.wp-block-video):not(.simpletoc)){max-width:1020px !important}

/* sisukorra-kast kitsamaks (critical-css ylekirjutus) */
html body.ssc-infoleht .entry-content .simpletoc{max-width:680px !important;margin-left:auto !important;margin-right:auto !important}

/* Tehtud tood: veerud lahti -> tekst ja galerii taislaiuses */
html body.ssc-infoleht .entry-content .wp-block-columns:has(.gallery){display:block !important}
html body.ssc-infoleht .entry-content .wp-block-columns:has(.gallery) .wp-block-column{flex-basis:100% !important;width:100%}
html body.ssc-infoleht .entry-content .gallery{grid-template-columns:repeat(4,1fr) !important;gap:14px !important;margin:22px 0 10px !important}
html body.ssc-infoleht .entry-content .gallery img{aspect-ratio:1/1;object-fit:cover}
/* esimene pealkiri = lehe tiitel */
html body.ssc-infoleht .entry-content > h2:first-child{font-size:34px;margin-top:6px}
html body.ssc-infoleht .ssc-hero-img img{width:100%;border-radius:14px}
@media (max-width:781px){
 html body.ssc-infoleht .entry-content .gallery{grid-template-columns:repeat(2,1fr) !important}
 html body.ssc-infoleht .entry-content > h2:first-child{font-size:26px}
}

/* === Kategoorialehe filtripaneel + kirjelduse akordion (D-043) === */
html body .ssc-cat-layout{gap:40px;align-items:flex-start;margin-top:10px}
html body .ssc-cat-sidebar{position:sticky;top:20px}
html body .ssc-cat-sidebar h3{font-size:16px;font-weight:700;margin:22px 0 10px;color:#181818}
html body .ssc-subcats h3{margin-top:0}
html body .ssc-subcats ul{list-style:none;margin:0;padding:0}
html body .ssc-subcats li{margin:0;padding:0}
html body .ssc-subcats li a{display:block;padding:6px 8px;border-radius:6px;color:#333;text-decoration:none;font-size:14.5px}
html body .ssc-subcats li a span{color:#999;font-size:12.5px}
html body .ssc-subcats li a:hover{background:#f7f7f8;color:#c41230}
html body .ssc-subcats li.on a{color:#c41230;font-weight:700;background:#f7f7f8}
html body .ssc-subcats-back{display:block;font-size:13.5px;color:#777;text-decoration:none;margin:0 0 8px 2px}
html body .ssc-subcats-back:hover{color:#c41230}
html body .ssc-cat-sidebar .wc-block-attribute-filter li,html body .ssc-cat-sidebar .wc-block-stock-filter li{font-size:14.5px}
html body .ssc-cat-sidebar .wc-block-components-price-slider__range-input-wrapper{margin-top:6px}
html body .ssc-cat-sidebar > div{border-bottom:1px solid #eee;padding-bottom:16px;margin-bottom:4px}
html body .ssc-cat-sidebar > div:last-child{border-bottom:0}
/* kirjelduse akordion */
html body .ssc-cat-desc{font-size:15.5px;line-height:1.7;color:#444;max-width:1020px !important}
html body .ssc-cat-desc.ssc-collapsed{max-height:150px;overflow:hidden;position:relative}
html body .ssc-cat-desc.ssc-collapsed::after{content:'';position:absolute;left:0;right:0;bottom:0;height:60px;background:linear-gradient(transparent,#fff)}
html body .ssc-desc-toggle{background:none;border:0;color:#c41230;font-weight:700;font-size:14.5px;cursor:pointer;padding:6px 0 14px;text-decoration:underline}
/* mobiil */
html body .ssc-filters-toggle{display:none}
@media (max-width:781px){
 html body .ssc-cat-layout{display:block}
 html body .ssc-cat-sidebar{display:none;position:static;flex-basis:auto !important;width:100%}
 html body .ssc-cat-sidebar.ssc-open{display:block;background:#f7f7f8;border-radius:12px;padding:16px}
 html body .ssc-filters-toggle{display:inline-block;background:#fff;border:1.5px solid #c41230;color:#c41230;font-weight:700;border-radius:8px;padding:9px 20px;font-size:15px;margin:4px 0 14px;cursor:pointer}
}

/* customizeri topelt-kirjeldus peitu (meil on term-description ylal) */
html body div.ssc-cat-desc:not(.wp-block-term-description){display:none !important}
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filters h3{font-size:16px;margin:18px 0 8px}

/* === Lehenumbrid nupudena (D-044) === */
html body .wp-block-query-pagination{justify-content:center;gap:8px;margin:34px 0 10px}
html body .wp-block-query-pagination-numbers{display:flex;gap:8px}
html body .wp-block-query-pagination .page-numbers,
html body .wp-block-query-pagination-previous,
html body .wp-block-query-pagination-next{display:inline-flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 10px;border:1.5px solid #ddd;border-radius:9px;color:#333;text-decoration:none;font-size:15px;background:#fff}
html body .wp-block-query-pagination .page-numbers:hover,
html body .wp-block-query-pagination-previous:hover,
html body .wp-block-query-pagination-next:hover{border-color:#c41230;color:#c41230}
html body .wp-block-query-pagination .page-numbers.current{background:#c41230;border-color:#c41230;color:#fff;font-weight:700}
html body .wp-block-query-pagination .page-numbers.dots{border:0;min-width:auto}

/* infoleht-postituse (pakendivaba) pealkiri korralikuks */
html body.ssc-infoleht h1.wp-block-post-title{font-size:34px !important;font-weight:700 !important;line-height:1.25;margin:12px auto 18px;max-width:1020px;color:#181818}
@media (max-width:781px){html body.ssc-infoleht h1.wp-block-post-title{font-size:25px !important}}

/* kirjeldus VAIKIMISI kokku volditud (SEO tekst DOM-is, JS lisab Loe rohkem nupu) */
html body .wp-block-term-description.ssc-cat-desc{max-height:150px;overflow:hidden;position:relative}
html body .wp-block-term-description.ssc-cat-desc::after{content:'';position:absolute;left:0;right:0;bottom:0;height:60px;background:linear-gradient(transparent,#fff)}
html body .wp-block-term-description.ssc-cat-desc.ssc-open{max-height:none}
html body .wp-block-term-description.ssc-cat-desc.ssc-open::after{display:none}
/* filtrite disain: hinna-slider + sisendid */
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filters{border:0}
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-price input[type=text],
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-price input[type=number]{width:74px;padding:7px 8px;border:1.5px solid #ddd;border-radius:8px;font-size:13.5px;text-align:center;background:#fff}
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-price input:focus{border-color:#c41230;outline:none}
html body .ssc-cat-sidebar input[type=range]{accent-color:#c41230}
html body .ssc-cat-sidebar .wc-block-product-filter-price-slider__range{--track-background:linear-gradient(90deg,#eee var(--low),#c41230 var(--low),#c41230 var(--high),#eee var(--high)) !important}
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-checkbox-list li{margin:4px 0}
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-checkbox-list input[type=checkbox]{width:17px;height:17px;accent-color:#c41230;border-radius:4px}
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-checkbox-list label{font-size:14.5px;color:#333;cursor:pointer}
html body .ssc-cat-sidebar .wc-block-product-filter-checkbox-list__show-more button,
html body .ssc-cat-sidebar .wp-block-woocommerce-product-filter-active button{font-size:13.5px;color:#c41230}

/* Loe rohkem = PARIS NUPP, teksti all keskel */
html body .ssc-desc-toggle{display:block;margin:14px auto 24px;padding:10px 28px;border:1.5px solid #c41230;color:#c41230;background:#fff;border-radius:8px;font-weight:700;font-size:14.5px;cursor:pointer;text-decoration:none;width:auto}
html body .ssc-desc-toggle:hover{background:#c41230;color:#fff}
/* kirjelduse loigud pehmete hallide kaartidena (nagu esilehe SEO-tekst) */
html body .wp-block-term-description.ssc-cat-desc p{background:#f7f7f8;border-radius:10px;padding:14px 18px;margin:0 0 10px;font-size:15.5px;line-height:1.65;color:#333}
html body .wp-block-term-description.ssc-cat-desc p strong{color:#181818}
html body .wp-block-term-description.ssc-cat-desc h2,
html body .wp-block-term-description.ssc-cat-desc h3{font-size:19px;font-weight:700;margin:18px 0 8px;color:#181818}
html body .wp-block-term-description.ssc-cat-desc ul{background:#f7f7f8;border-radius:10px;padding:14px 18px 14px 36px;margin:0 0 10px}

/* varvifiltrite kastikesed */
html body .ssc-color-dot{display:inline-block;width:14px;height:14px;border-radius:4px;margin-right:7px;vertical-align:-2px;border:1px solid rgba(0,0,0,.18);flex-shrink:0}
html body .ssc-color-mix{background:conic-gradient(#d32f2f,#f78c1e,#f6d32d,#2f8f46,#2563c9,#a86bc9,#d32f2f)}

/* 2026-07-23: vanast blogist imporditud media-text plokid (alignfull) venisid
   taislaiusesse (1265px, negatiivsed veerised) -> hiigeltuhikud. Hoia sisulaiuses. */
body.single-post .entry-content .wp-block-media-text {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 28px;
    align-items: center !important;
}
body.single-post .entry-content .wp-block-media-text .wp-block-media-text__media img {
    width: 100% !important;
    height: auto !important;
}
@media (max-width: 781px) {
    body.single-post .entry-content .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }
}

/* Meie poed: kaart responsive */
.ssc-poed-kaart { margin: 32px 0 0; }
.ssc-poed-kaart iframe { width: 100%; max-width: 780px; height: 480px; border: 0; border-radius: 8px; }

/* Meie poed: linnad pealkirjadena, poed kaartidena */
body.ssc-infoleht .ssc-poed-list h2 { margin: 36px 0 14px; font-size: 26px; border-bottom: 2px solid #c41230; padding-bottom: 6px; }
body.ssc-infoleht .ssc-poed-list p { background: #f7f7f7; border-radius: 8px; padding: 12px 16px; margin: 0 0 10px; line-height: 1.55; }
body.ssc-infoleht .ssc-poed-list p strong { display: block; margin-bottom: 2px; }

/* 2026-07-24: postituse pealkiri oli 13px hall rida - tee PARIS pealkirjaks */
body.single-post h1.wp-block-post-title {
    font-size: 34px !important;
    font-weight: 700 !important;
    color: #1d1d1d !important;
    line-height: 1.25 !important;
    margin: 10px 0 18px !important;
}
body.single-post .wp-block-post-featured-image img {
    max-height: 460px;
    object-fit: cover;
    border-radius: 8px;
}
/* media-text plokid samasse veergu kui ylejaanud sisu */
body.single-post .entry-content .wp-block-media-text {
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 2026-07-24: ajakirja-stiil (Kaubamaja/Weekendi muster): kitsas 720px veerg, rahulikum kiri */
body.single-post h1.wp-block-post-title { font-size: 30px !important; max-width: 900px; margin-left: auto !important; margin-right: auto !important; }
body.single-post .wp-block-post-featured-image { max-width: 900px; margin: 0 auto 6px; }
body.single-post .wp-block-post-featured-image img { max-height: 380px; }
body.single-post .entry-content h1 { font-size: 26px !important; }
body.single-post .entry-content h2 { font-size: 22px; }
body.single-post .entry-content h3 { font-size: 19px !important; }
body.single-post .entry-content p, body.single-post .entry-content li { font-size: 16px; line-height: 1.7; }
/* vanad jargmise-postituse tekstilingid + kommentaarid peitu */
body.single-post .wp-block-post-navigation-link, body.single-post .wp-block-comments { display: none !important; }
/* Loe ka kaardid */
body.single-post .entry-content > .ssc-loeka, .ssc-loeka { max-width: 980px !important; margin: 48px auto 16px; }
.ssc-loeka h2 { font-size: 22px; margin: 0 0 16px; }
.ssc-loeka-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ssc-loeka-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #f7f7f7; border-radius: 10px; overflow: hidden; transition: box-shadow .15s; }
.ssc-loeka-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.ssc-loeka-img { display: block; aspect-ratio: 16/10; background-size: cover; background-position: center; }
.ssc-loeka-title { font-weight: 700; font-size: 15.5px; line-height: 1.4; padding: 12px 14px 4px; }
.ssc-loeka-more { color: #c41230; font-weight: 600; font-size: 14px; padding: 0 14px 14px; margin-top: auto; }
@media (max-width: 781px) { .ssc-loeka-grid { grid-template-columns: 1fr; } }

.ssc-loeka-excerpt { font-size: 13.5px; color: #555; line-height: 1.5; padding: 0 14px 10px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

body.ssc-infoleht .ssc-poed-list p strong { font-weight: 700 !important; font-size: 16.5px; }
body.ssc-infoleht .ssc-poed-list p a { color: #c41230; text-decoration: none; font-weight: 600; }

/* meie-poed: nimed KINDLALT rasvased, klassist soltumata */
.ssc-poed-list p strong { font-weight: 700 !important; font-size: 16.5px; display: block; margin-bottom: 2px; }
.ssc-poed-list p a { color: #c41230; text-decoration: none; font-weight: 600; }
.ssc-poed-list h2 { font-weight: 700; }

/* 2026-08-14 (Piret: "miks pildid nii suured et katavad terve ekraani")
   Vanast blogist tulnud portreepildid on 683x1024 ja renderdusid täissuuruses ->
   1024px kõrgust ehk pea terve ekraan. Piirame KÕRGUST, laius kohaneb ise.
   `.is-resized` jäetakse rahule (seal on autori teadlik käsitsi mõõt). */
.single-post .entry-content .wp-block-image:not(.is-resized) img,
.single-post .wp-block-post-content .wp-block-image:not(.is-resized) img {
    max-height: 560px;
    width: auto;
    height: auto;
    max-width: 100%;
}
.single-post .entry-content .wp-block-image:not(.is-resized),
.single-post .wp-block-post-content .wp-block-image:not(.is-resized) {
    text-align: center;
}
/* Pilt+tekst kõrvuti plokid: hoia pilt mõistlikus kõrguses ka kitsal ekraanil */
@media (max-width: 781px) {
    body.single-post .entry-content .wp-block-media-text .wp-block-media-text__media img {
        max-height: 460px;
        width: auto !important;
        margin-inline: auto;
    }
}
