/* =========================================================
   Smokefactory - redizajn 2026, krok 2: zoznamy produktov a detail produktu
   Vzhľad podľa Euforie, funkčnosť a markup podľa Smoke.
   Platí iba keď je na <body> trieda .sf-redesign.
   ========================================================= */
/* ---------- Karta produktu (kategórie, titulka, výsledky vyhľadávania, súvisiace) ---------- */
body.sf-redesign .product-list,
body.sf-redesign #discount-products .product-list {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    text-align: left;
    transition: border-color .2s, box-shadow .2s;
}
body.sf-redesign .product-list:hover,
body.sf-redesign #discount-products .product-list:hover {
    padding: 14px;
    border: 1px solid #cde8d6;
    box-shadow: 0 14px 30px -18px rgba(16, 60, 32, .45);
}
body.sf-redesign .product-list > a:first-child,
body.sf-redesign #discount-products .product-list > a:first-child {
    position: relative;
    display: block;
    margin-bottom: 12px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}
body.sf-redesign .product-list img,
body.sf-redesign #discount-products .product-list img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
    object-fit: contain;
    border-radius: 12px;
    transition: transform .25s ease;
}
body.sf-redesign .product-list:hover > a:first-child img,
body.sf-redesign #discount-products .product-list:hover > a:first-child img {
    transform: scale(1.04);
}
body.sf-redesign .product-list .product-tags,
body.sf-redesign #discount-products .product-list .product-tags {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
body.sf-redesign .product-list .product-tag,
body.sf-redesign #discount-products .product-list .product-tag {
    display: inline-block;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--sf-g);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}
body.sf-redesign .product-list a.name,
body.sf-redesign #discount-products .product-list a.name {
    padding: 0 0 10px;
    color: var(--sf-dark);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    transition: color .15s;
}
body.sf-redesign .product-list:hover a.name,
body.sf-redesign #discount-products .product-list:hover a.name {
    color: var(--sf-gd);
}
body.sf-redesign .product-list > .views-element-container,
body.sf-redesign #discount-products .product-list > .views-element-container {
    margin-top: auto;
}
body.sf-redesign .product-list .views-element-container .row,
body.sf-redesign #discount-products .product-list .views-element-container .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}
body.sf-redesign .product-list .views-element-container .row > div,
body.sf-redesign #discount-products .product-list .views-element-container .row > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
    width: 100%;
    max-width: 100%;
    padding: 0;
}
body.sf-redesign .product-list strong,
body.sf-redesign #discount-products .product-list strong {
    padding: 0;
    color: var(--sf-gd);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
body.sf-redesign .product-list small,
body.sf-redesign #discount-products .product-list small {
    display: inline;
    color: #8c8c8c;
    font-size: 14px;
    font-weight: 400;
}
body.sf-redesign .product-list small s,
body.sf-redesign #discount-products .product-list small s {
    color: #8c8c8c;
}
body.sf-redesign .product-list .stock,
body.sf-redesign #discount-products .product-list .stock {
    flex: 0 0 100%;
    margin-top: 4px;
    text-align: left;
}
body.sf-redesign .product-list .sklad-na-objednavku,
body.sf-redesign #discount-products .product-list .sklad-na-objednavku {
    padding: 4px 9px;
    border-radius: 8px;
    background: #fff6dc;
    color: #7a5c0c;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.3;
}
body.sf-redesign .product-list .not-available,
body.sf-redesign #discount-products .product-list .not-available {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 8px;
    background: #ececec;
    color: #5f6662;
    font-size: 12.5px;
    font-weight: 700;
}
body.sf-redesign .product-list .percentage,
body.sf-redesign #discount-products .product-list .percentage {
    top: 22px;
    right: 22px;
    width: auto;
    padding: 5px 9px;
    border-radius: 999px;
    background: #a22ec2;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

/* Nadpisy sekcií na titulke (Najnovšie produkty, Akciové produkty) */
body.sf-redesign h1.title-product,
body.sf-redesign h1.discount-product {
    margin: 0 0 20px;
    padding: 0;
    color: var(--sf-g);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    text-transform: none;
}
body.sf-redesign h1.title-product:before,
body.sf-redesign h1.title-product:after,
body.sf-redesign h1.discount-product:before,
body.sf-redesign h1.discount-product:after {
    display: none;
}

/* Mobil: 2 stĺpce kariet ako na Euforii */
@media (max-width: 767px) {
    body.sf-redesign .product-list,
    body.sf-redesign #discount-products .product-list {
        padding: 8px;
        border-radius: 14px;
    }
    body.sf-redesign .product-list:hover,
    body.sf-redesign #discount-products .product-list:hover {
        padding: 8px;
    }
    body.sf-redesign .product-list a.name,
    body.sf-redesign #discount-products .product-list a.name {
        font-size: 13.5px;
    }
    body.sf-redesign .product-list strong,
    body.sf-redesign #discount-products .product-list strong {
        font-size: 17px;
    }
    body.sf-redesign h1.title-product,
    body.sf-redesign h1.discount-product {
        font-size: 26px;
    }
}

/* ---------- Detail produktu ---------- */
body.sf-redesign .prod-detail {
    row-gap: 8px;
}
/* Galéria: obrázok v karte so zaoblením, náhľady v rade */
body.sf-redesign .prod-detail figure.gallery {
    margin-bottom: 0;
}
body.sf-redesign .prod-detail figure.gallery > a {
    display: block;
    padding: 16px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
}
body.sf-redesign .prod-detail figure.gallery > a img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    border-radius: 12px;
}
body.sf-redesign .prod-detail figure.gallery .thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
body.sf-redesign .prod-detail figure.gallery .thumbs a {
    display: block;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
}
body.sf-redesign .prod-detail figure.gallery .thumbs img {
    display: block;
    width: 72px;
    height: 72px;
    padding: 4px;
    object-fit: contain;
    background: #fff;
    border: 1.5px solid var(--sf-line);
    border-radius: 10px;
    transition: border-color .15s;
}
body.sf-redesign .prod-detail figure.gallery .thumbs a:hover img {
    border-color: #bfe3cb;
}

/* Názov */
body.sf-redesign .prod-detail h1 {
    padding: 4px 0 12px;
    color: var(--sf-dark);
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
}
@media (max-width: 767px) {
    body.sf-redesign .prod-detail h1 {
        font-size: 26px;
    }
}
body.sf-redesign .prod-detail .promo-label {
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff6dc;
    color: #7a5c0c;
}

/* Úvodný text */
body.sf-redesign .prod-detail .pt-3 {
    color: #3a423e;
    font-size: 16px;
    line-height: 1.6;
}
body.sf-redesign .prod-detail .pt-3 li::marker {
    color: var(--sf-g);
}

/* Varianty: zoznam v karte, cena zelená, tlačidlo zelené */
body.sf-redesign .prod-variations {
    margin: 12px 0 16px;
}
body.sf-redesign .prod-variations .views-element-container {
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: 14px;
}
body.sf-redesign .pricelist-item-wrapper {
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid var(--sf-line);
    transition: background-color .12s;
}
body.sf-redesign .pricelist-item-wrapper:last-child {
    border-bottom: 0;
}
body.sf-redesign .pricelist-item-wrapper:hover {
    background: var(--sf-gl);
}
body.sf-redesign .pricelist-item-wrapper .title-width {
    color: var(--sf-dark);
    font-weight: 600;
    line-height: 1.35;
}
body.sf-redesign .pricelist-item-wrapper .title-width small {
    color: var(--sf-muted);
    font-weight: 400;
}
body.sf-redesign .pricelist-item-wrapper .currentPrice {
    color: var(--sf-gd);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}
body.sf-redesign .pricelist-item-wrapper .price-width a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 6px;
    padding: 8px 16px;
    border-radius: 12px;
    background: var(--sf-g);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .15s;
}
body.sf-redesign .pricelist-item-wrapper .price-width a:hover {
    background: var(--sf-gd);
}
body.sf-redesign .pricelist-item-wrapper .price-width a:focus-visible {
    outline: 2px solid var(--sf-gd);
    outline-offset: 2px;
}

/* Produkt na objednávku: cena a tlačidlo Mám záujem */
body.sf-redesign .prod-variations .price {
    color: var(--sf-gd);
    font-size: 28px;
    font-weight: 800;
}
body.sf-redesign .prod-variations > a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 22px;
    border: 0;
    border-radius: 12px;
    background: var(--sf-g);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}
body.sf-redesign .prod-variations > a.button:hover {
    background: var(--sf-gd);
}

/* Kategórie a značky pod variantmi: jemné štítky */
body.sf-redesign .prod-detail .cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 4px 0 10px;
}
body.sf-redesign .prod-detail .cat-tags a {
    display: inline-block;
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--sf-soft);
    color: var(--sf-dark);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .12s, color .12s;
}
body.sf-redesign .prod-detail .cat-tags a:hover {
    background: var(--sf-gl);
    color: var(--sf-gd);
}
body.sf-redesign .prod-detail > .col-sm-6 > strong.title {
    display: block;
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 800;
}

/* Odporúčané produkty */
body.sf-redesign .prod-recom {
    margin-bottom: 24px;
    border-collapse: separate;
    border-spacing: 0;
}
body.sf-redesign .prod-recom td {
    padding: 10px 8px 10px 0;
    border-bottom: 1px solid var(--sf-line);
}
body.sf-redesign .prod-recom td img {
    border-radius: 8px;
}
body.sf-redesign .prod-recom td a.name {
    color: var(--sf-dark);
    font-weight: 600;
}
body.sf-redesign .prod-recom td a.name:hover {
    color: var(--sf-gd);
}
body.sf-redesign .prod-recom td.recom-price strong {
    color: var(--sf-gd);
    font-weight: 800;
}

/* Popis produktu */
body.sf-redesign .prod-detail .prod-desc {
    padding-top: 36px;
    color: #3a423e;
    font-size: 16px;
    line-height: 1.65;
}
body.sf-redesign .prod-detail .prod-desc h2,
body.sf-redesign .prod-detail .prod-desc h3 {
    color: var(--sf-dark);
    font-weight: 800;
}
body.sf-redesign .prod-detail .prod-desc li::marker {
    color: var(--sf-g);
}

/* Podobné produkty */
body.sf-redesign .page-type-produkt .related,
body.sf-redesign .related.center {
    text-align: left;
}
body.sf-redesign .related h2 {
    margin: 0 0 20px;
    color: var(--sf-g);
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    text-align: left;
    text-transform: none;
}
body.sf-redesign .related h2:before,
body.sf-redesign .related h2:after {
    display: none;
}

/* Titulka: nadpis v osi mriežky a tlačidlo ako na Euforii */
body.sf-redesign #product > h1.title-product,
body.sf-redesign #discount-products > h1.discount-product {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto 20px;
    padding: 0 12px;
}
body.sf-redesign #product a.button,
body.sf-redesign #discount-products a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 24px;
    border: 0;
    border-radius: 12px;
    background: var(--sf-g);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-transform: none;
    text-decoration: none;
    transition: background-color .15s;
}
body.sf-redesign #product a.button:hover,
body.sf-redesign #discount-products a.button:hover {
    background: var(--sf-gd);
    color: #fff;
}

/* ---------- Tlačidlá na kartách, zľavy ---------- */
body.sf-redesign .product-list .sf-card-cta {
    margin-top: 12px;
}
body.sf-redesign .product-list .sf-card-cta:empty {
    display: none;
}
body.sf-redesign .product-list .sf-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 8px 12px;
    border: 1.5px solid var(--sf-g);
    border-radius: 12px;
    background: var(--sf-g);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: background-color .15s, border-color .15s, color .15s;
}
body.sf-redesign .product-list .sf-btn:hover {
    background: var(--sf-gd);
    border-color: var(--sf-gd);
    color: #fff;
}
body.sf-redesign .product-list .sf-btn--ghost {
    background: #fff;
    color: var(--sf-gd);
}
body.sf-redesign .product-list .sf-btn--ghost:hover {
    background: var(--sf-g);
    border-color: var(--sf-g);
    color: #fff;
}
body.sf-redesign .product-list .sf-btn:focus-visible {
    outline: 2px solid var(--sf-gd);
    outline-offset: 2px;
}
body.sf-redesign .product-list .sf-btn__ico {
    flex: none;
}
/* Zľava: štítok na obrázku a cena ako na Euforii */
body.sf-redesign .product-list .product-tag.sf-sale-tag {
    background: #a22ec2;
    color: #fff;
}
body.sf-redesign .product-list.sf-onsale strong.priceList,
body.sf-redesign .product-list.sf-onsale strong {
    color: #a22ec2;
}
body.sf-redesign .product-list.sf-onsale small,
body.sf-redesign .product-list.sf-onsale small s {
    color: #8c8c8c;
}
body.sf-redesign .pricelist-item-wrapper .title-width .percentage {
    padding: 3px 8px;
    border-radius: 999px;
    background: #a22ec2;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
@media (max-width: 767px) {
    body.sf-redesign .product-list .sf-btn {
        min-height: 38px;
        padding: 7px 8px;
        font-size: 13px;
        border-radius: 10px;
    }
}

/* =========================================================
   Detail produktu v2: kompaktne varianty, lepiaca galeria,
   popis rozdeleny do kariet
   ========================================================= */

/* Dvojstlpec cez grid: galeria vlavo (lepi sa pri scrolle), info vpravo, popis na celu sirku */
@media (min-width: 768px) {
    body.sf-redesign .prod-detail {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 32px;
        align-items: start;
        margin-left: 0;
        margin-right: 0;
    }
    body.sf-redesign .prod-detail > figure.gallery,
    body.sf-redesign .prod-detail > .col-sm-6 {
        width: auto;
        max-width: none;
        flex: none;
        padding-left: 0;
        padding-right: 0;
    }
    body.sf-redesign .prod-detail > figure.gallery {
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
    }
    body.sf-redesign .prod-detail .sf-gallery-sticky {
        position: sticky;
        top: 150px;
    }
    body.sf-redesign .prod-detail > div.col-sm-6:not(.prod-desc) { grid-column: 2; grid-row: 1; }
    body.sf-redesign .prod-detail > .prod-desc { grid-column: 1 / -1; grid-row: 2; width: auto; max-width: none; padding-left: 0; padding-right: 0; }
    body.sf-redesign .prod-detail > .clearfix { display: none; }
}

/* Tesnejsi nadpis a uvodny text */
body.sf-redesign .prod-detail h1 { padding: 0 0 8px; }
body.sf-redesign .prod-detail .pt-3 { padding-top: 0 !important; margin-bottom: 4px; }

/* Varianty: jeden riadok = nazov + kod vlavo, cena a tlacidlo vpravo */
body.sf-redesign .pricelist-item-wrapper {
    margin: 0;
    padding: 12px 16px;
}
body.sf-redesign .pricelist-item-wrapper > .row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 16px;
    margin: 0;
}
body.sf-redesign .pricelist-item-wrapper .title-width {
    float: none;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 0;
    font-size: 15px;
}
body.sf-redesign .pricelist-item-wrapper .title-width small { display: block; margin-top: 2px; font-size: 12px; }
body.sf-redesign .pricelist-item-wrapper .price-width {
    float: none;
    flex: 0 0 auto;
    width: auto;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: right;
}
body.sf-redesign .pricelist-item-wrapper .price-width .price-wrapper { white-space: nowrap; }
body.sf-redesign .pricelist-item-wrapper .price-width .price-wrapper del { display: block; font-size: 13px; }
body.sf-redesign .pricelist-item-wrapper .price-width a {
    width: auto;
    margin: 0;
    white-space: nowrap;
}
@media (max-width: 575px) {
    body.sf-redesign .pricelist-item-wrapper > .row { flex-wrap: wrap; gap: 8px; }
    body.sf-redesign .pricelist-item-wrapper .title-width { flex-basis: 100%; }
    body.sf-redesign .pricelist-item-wrapper .price-width { width: 100%; justify-content: space-between; }
}

/* Popis produktu */
body.sf-redesign .prod-detail .prod-desc { padding-top: 40px; }
body.sf-redesign .prod-detail .prod-desc > h2 {
    margin: 0 0 14px;
    font-size: 28px;
    line-height: 1.2;
}
body.sf-redesign .prod-detail .prod-desc p { margin: 0 0 14px; max-width: 860px; }
body.sf-redesign .prod-detail .prod-desc ul,
body.sf-redesign .prod-detail .prod-desc ol { padding-left: 20px; margin: 0 0 14px; }
body.sf-redesign .prod-detail .prod-desc li { margin-bottom: 6px; }
body.sf-redesign .prod-detail .prod-desc img { max-width: 100%; height: auto; border-radius: 12px; }
body.sf-redesign .prod-detail .prod-desc blockquote {
    margin: 20px 0 0;
    padding: 16px 20px;
    background: var(--sf-gl);
    border-left: 4px solid var(--sf-g);
    border-radius: 0 12px 12px 0;
    color: var(--sf-dark);
}
body.sf-redesign .prod-detail .prod-desc blockquote p:last-child { margin-bottom: 0; }

/* Karty (vytvara ich js/sf-redesign-product.js z nadpisov H3) */
body.sf-redesign .sf-desc-grid {
    columns: 2;
    column-gap: 20px;
    margin-top: 22px;
}
body.sf-redesign .sf-desc-card {
    break-inside: avoid;
    margin: 0 0 20px;
    padding: 22px 24px 10px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
}
body.sf-redesign .sf-desc-card > h3 {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.3;
}
body.sf-redesign .sf-desc-card > h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--sf-g);
    vertical-align: middle;
}
@media (max-width: 991px) {
    body.sf-redesign .sf-desc-grid { columns: 1; }
}
