body.type-product #header {
    border: none;
    margin-bottom: 10px;
}

body.type-product p {
    color: #000000;
}

@media (min-width: 768px){
body.type-product #header {
    box-shadow: 
        0 15px 6px 13px rgba(70, 131, 92, 0.05),
        0 14px 4px -12px rgba(128, 128, 128, 0.03);
    position: relative;
}
body.type-product .row.product-top {
    margin-top: 30px;
}
}

body.type-product .row.product-top .p-detail-inner-header.is-rearranged {
    width: 100%;
    clear: both; /* Pro případ, že Shoptet na starších šablonách používá floaty */
    float: none;
    max-width: 100%;
}

body.type-product .row.product-top .p-detail-inner-header.is-rearranged .stars-link.show-ratings {
    display: none !important;
}

body.type-product .row.product-top {
    display: flex;
    flex-wrap: wrap;
}

body.type-product .p-detail-inner-header.is-rearranged {
    display: flex;
    flex-wrap: wrap;
}

body.type-product .p-detail-inner-header.is-rearranged h1 {
    width: 100%;
    font-size: 32px;
    font-weight: 500;
    margin-top: 10px;
}

body.type-product .custom-meta-row{
    display: flex;
    justify-content: space-between;
    width: 100%;
}

/* --- HLAVNÍ KONTEJNER --- */
body.type-product .breadcrumbs-wrapper .navigation-home-icon-wrapper {
    position: relative;
    display: block; 
    line-height: 1.5; 
}

/* --- IKONA DOMEČKU (Předřazená před celé drobečky) --- */
body.type-product #navigation-first .navigation-home-icon::before {
    display: inline-block;
    vertical-align: middle;
    background-color: #2066AC !important;
}

@media (min-width: 768px) {
    body.type-product .breadcrumbs>span>a,body.type-product .breadcrumbs>span>span {
        padding: 10px 0px;
    }
    body.type-product .navigation-home-icon-wrapper #navigation-first a {
    padding-left: 15px; 
}

/* --- IKONA DOMEČKU (Předřazená před celé drobečky) --- */
body.type-product .navigation-home-icon-wrapper::before {
    top: 2px !important; 
    transform: none !important;
    margin: 0 !important;
}
body.type-product .breadcrumbs-wrapper .navigation-home-icon-wrapper {
    padding-left: 24px; 
}
}

/* --- JEDNOTLIVÉ POLOŽKY DROBEČKŮ --- */
body.type-product .breadcrumbs span {
    display: inline; /* Vrátíme standardní řádkový tok textu */
    color: #000000;
    font-size: 14px;
    font-weight: 550;
    white-space: normal; /* Povolí přirozené zalamování textu */
}

/* Odkazy uvnitř drobečků */
body.type-product .breadcrumbs a,
body.type-product .breadcrumbs a span {
    color: #2066AC !important;
    text-decoration: underline;
    display: inline;
}

/* --- ODDĚLOVACÍ ŠIPKY / LOMÍTKA --- */
body.type-product .breadcrumbs .navigation-bullet {
    color: #787878;
    display: inline-block;
    vertical-align: baseline; 
    position: relative;
    top: 0px; 
    line-height: 1.5; 
    padding: 10px 5px; 
    margin: 0;
}
/* Mobilní responzivita: Na malých displejích skočí pod sebe */
@media (max-width: 767px) {
    body.type-product .custom-product-features {
        flex-direction: column;
        gap: 12px;
    }

body.type-product .breadcrumbs .navigation-bullet {
    padding: 10px 0px;
}
body.type-product .breadcrumbs a span {
    padding-left: 5px;
}
body.type-product .breadcrumbs-wrapper {
margin-bottom: 10px;
}
body.type-product .content-wrapper.container .row>div:not(.custom-product-features) {
    padding-left: 0;
    padding-right: 0;
}
body.type-product .custom-product-features {
    padding-left: 15px !important;
    padding-right: 15px !important;
}
}

body.type-product #ratingTab p[data-testid="textCommentNotice"] {
    display: none !important;
}

body.type-product .star::before {
    font-size: 16px;
    line-height: 10px;
}

body.type-product .stars-label.starsLabel--productDetail,
body.type-product .stars-label.starsLabel--productDetail span a {
    font-size: 14px;
    color: #07427E;
}
body.type-product .stars-label.starsLabel--productDetail span a:hover {
    text-decoration: none !important;
    color: #07427E;
}

body.type-product .stars-label.starsLabel--productDetail span {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
}

body.type-product .p-detail .add-to-cart .quantity {
    border: none !important;
}

body.type-product .btn.add-to-cart-button:before {
    display: none !important;
}

body.type-product .btn.add-to-cart-button {
    font-size: 20px;
    font-weight: 700;
    background-color: var(--primary-gold);
    border: none;
    border-radius: var(--primary-radius);
}
body.type-product .btn.add-to-cart-button:hover {
    background-color: var(--primary-gold-hover);
    border: none;
}

body.type-product .add-to-cart .quantity button, body.type-product .add-to-cart .quantity .amount {
    font-size: 20px !important;
}

body.type-product .add-to-cart .quantity {
    min-height: 46px;
}

/**
* Product Feature
*/
/* Hlavní kontejner pro vlastnosti */
body.type-product .custom-product-features {
    display: flex;
    gap: 20px; /* Mezera mezi sloupci */
    width: 100%;
    margin-top: 0px;
    margin-bottom: 25px;
    padding: 15px;
    background-color: #F7F4ED; /* Volitelné: jemné pozadí pod boxíky */
    border-radius: var(--primary-radius);
}

/* Jednotlivé sloupce */
body.type-product .custom-product-features .feature-item {
    display: flex;
    flex-direction: column; /* Štítek nahoře, hodnota dole */
    flex: 1; /* Každý sloupec bude mít stejnou šířku */
}

/* Horní šedý text (Země původu, Dodavatel...) */
body.type-product .custom-product-features .feature-label {
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

/* Spodní tmavý text (Německo, Čajová zahrada...) */
body.type-product .custom-product-features .feature-value {
    font-size: 16px;
    font-weight: 600;
    color: #1D7139;
}


body.type-product .col-xs-12.col-lg-6.p-info-wrapper .add-to-cart {
    justify-content: space-between;
}

@media (min-width: 768px){
body.type-product .col-xs-12.col-lg-6.p-info-wrapper {
    padding-left: 0px;
    display: flex;
    flex-direction: column;
}

body.type-product .breadcrumbs-wrapper {
    order: 1;
}

body.type-product .col-xs-12.col-lg-6.p-info-wrapper .p-detail-inner-header.is-rearranged{
    order: 2;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .custom-product-features{
    order: 3;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .p-short-description{
    order: 4;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .availability-value{
    order: 5;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .p-final-price-wrapper{
    order: 6;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .custom-price-shipping-block {
    order: 7;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .detail-parameters{
    order: 8;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .add-to-cart{
    order: 9;
}

body.type-product .col-xs-12.col-lg-6.p-info-wrapper .productCardDescr{
    order: 10;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .social-buttons-wrapper{
    order: 11;
}
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .p-short-description{
    border-bottom: 1px solid #46835C;
}

@media(min-width: 768px){
body.type-product .p-info-wrapper .p-final-price-wrapper {
    margin-bottom: 0px;
}
}

body.type-product td:has(.hidden-split-parameter) {
    padding: 0 !important;
}

/* ==========================================================================
   ZAČÁTEK: VLASTNÍ DROPDOWN PRO VARIANTY (náhrada nativního <select>)
   Důvod: iOS/Safari na <option> ignoruje stylování (např. font-weight),
   nativní select proto nejde vizuálně odlišit (viz zrnková varianta).
   Nativní <select> necháváme funkční (kvůli Shoptet logice cena/dostupnost),
   jen ho vizuálně schováme - vlastní UI nad ním vytváří detail.js
   (funkce initCustomVariantSelects).

   ODEBRÁNÍ: smazat celý tento blok (do značky KONEC) + smazat funkci
   initCustomVariantSelects (a její volání) v src/footer/detail.js.
   ========================================================================== */
body.type-product .variant-list select.custom-variant-select-native {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Základní šířka - JS (sizeToLongestOption) ji podle potřeby zvětší, ať se
   vejde i nejdelší varianta; nikdy se ale nezmenší/nezvětší podle aktuálně
   zvolené položky, protože se počítá vždy ze všech options najednou. */
body.type-product .custom-variant-select {
    position: relative;
    width: auto;
    min-width: 220px;
}

body.type-product .custom-variant-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: var(--primary-radius);
    background: #fff;
    font: inherit;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
}

body.type-product .custom-variant-select__trigger::after {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid #1A1A1A;
    border-bottom: 2px solid #1A1A1A;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
}

body.type-product .custom-variant-select.is-open .custom-variant-select__trigger::after {
    transform: rotate(225deg);
    margin-top: 4px;
}

body.type-product .custom-variant-select__list {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
    margin: 0;
    padding: 4px 0;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: var(--primary-radius);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 240px;
    overflow-y: auto;
    box-sizing: border-box;
}

body.type-product .custom-variant-select.is-open .custom-variant-select__list {
    display: block;
}

body.type-product .custom-variant-select__option {
    padding: 8px 12px;
    cursor: pointer;
}

body.type-product .custom-variant-select__option:hover {
    background: #F2F2F2;
}

body.type-product .custom-variant-select__option.is-active {
    background: #E6F2EA;
}

body.type-product .custom-variant-select__option.is-highlighted {
    font-weight: 700;
}

body.type-product .custom-variant-select__label.is-highlighted {
    font-weight: 700;
}
/* KONEC: VLASTNÍ DROPDOWN PRO VARIANTY - viz poznámka k odebrání výše */

body.type-product .col-xs-12.col-lg-6.p-info-wrapper .availability-value{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .detail-parameters:not(:has(.variant-list)){
    display: none !important;
}
body.type-product .col-xs-12.col-lg-6.p-info-wrapper .detail-parameters:has(.variant-list) tr:has(.delivery-time){
    display: none !important;
}

/* Úprava hlavního kontejneru dostupnosti */
body.type-product .availability-value.is-rearranged-shipping {
    display: flex;
    flex-wrap: wrap;       /* Pokud se text nevejde na mobilu, skočí na další řádek */
    align-items: center;
    gap: 10px;             /* Mezera mezi Skladem / Termínem / Dopravou */
    margin-bottom: 15px;   /* Mezera od add-to-cart boxu */
}

/* Stylování nově přesunutého odkazu */
body.type-product .availability-value.is-rearranged-shipping .shipping-options {
    color: #2066AC;        /* Tvoje zelená barva z Figmy */
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    margin-left: 5px;      /* Optické oddělení od textu před ním */
    transition: color 0.2s ease;
}

body.type-product .availability-value.is-rearranged-shipping .shipping-options:hover {
    color: #1e713a;        /* Tmavší zelená při najetí myší */
    text-decoration: none;
}

body.type-product .availability-value .custom-availability-combined,
body.type-product .availability-value .custom-availability-combined span {
    text-transform: lowercase !important;
    font-size: 14px;
    
}
body.type-product .availability-value .custom-availability-combined .availability-status {
    font-weight: 500;
     color: #46835C;
}
body.type-product .availability-value .custom-availability-combined .availability-text {
    font-weight: 400;
     color: #46835C;
}

body.type-product .availability-status span[data-original-title="Skladem."]::before {
content: "";
display: inline-block;
width: 13px;
height: 10px;
background-color: #46835C;
mask-image: url('/user/documents/svg/check.svg');
-webkit-mask-image: url('/user/documents/svg/check.svg');
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
mask-position: bottom right;
-webkit-mask-position: bottom right;
mask-size: contain;
-webkit-mask-size: contain;
z-index: 1;
margin-right: 5px;
}

body.type-product .show-tooltip.acronym[data-original-title] {
    border: none !important;
}

body.type-product .custom-availability-combined:not(:has(.availability-status span[data-original-title="Skladem."])) .availability-text {
    display: none;
}

body.type-product .product-top .shipping-options {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px; /* Tímto nastavíš přesnou mezeru mezi ikonou a textem */
}

body.type-product .product-top .shipping-options::before {
    content: "";
    width: 18px;
    height: 18px;
    /* Změna z absolute na inline-block / block, aby fungoval flexbox a gap */
    display: inline-block; 
    flex-shrink: 0; /* Pojistka, aby se ikona nezdeformovala, pokud bude málo místa */
    background-color: #000000;
    mask-image: url('/user/documents/svg/delivery_car.svg');
    -webkit-mask-image: url('/user/documents/svg/delivery_car.svg');
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center; /* Změněno na center pro lepší zarovnání ve flexboxu */
    -webkit-mask-position: center;
    mask-size: contain;
    -webkit-mask-size: contain;
    top: 0px !important;
}

body.type-product .products.products-block {
    justify-content: space-between;
}
body.type-product .p-final-price-wrapper .price-standard span {
    font-size: 20px;
    font-weight: 500;
    color: #787878;
    margin-bottom: 10px;
}
body.type-product .p-final-price-wrapper .price-final-holder .pr-list-unit {
    display: none !important;
}
body.type-product .p-final-price-wrapper .price-final-holder,
body.type-product .p-final-price-wrapper .price-final-holder span {
    font-size: 40px;
    font-weight: 600;
}

/* Hlavní nově přidaný kontejner */
body.type-product .custom-price-shipping-block {
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
}

/* Obal pro sloučené ceny */
body.type-product .custom-combined-prices {
    display: flex;
    flex-wrap: wrap; /* Kdyby to bylo na mobilu moc dlouhé, ať to bezpečně odřádkuje */
    align-items: center; 
    gap: 8px; /* Mezera mezi jednotlivými bloky */
    margin-bottom: 5px; /* Odskok od textu o dopravě zdarma */
}

/* Pojistka, aby Shoptet bloky nevyváděly hlouposti */
body.type-product .custom-combined-prices .price-additional,
body.type-product .custom-combined-prices .price-measure {
    display: block; 
    margin: 0;
    padding: 0;
}
body.type-product .custom-price-shipping-block .custom-combined-prices span{
    font-size: 12px;
    color: #787878;
}

/* Formátování oddělovacího svislítka */
body.type-product .custom-combined-prices .price-separator {
    color: #787878;
    font-weight: normal;
}

/* Oddělovač cen */
body.type-product .custom-price-shipping-block .price-separator {
    color: #787878;
    padding: 0 4px;
}

/* Element pro informaci o Dopravě zdarma */
body.type-product .custom-price-shipping-block .custom-free-shipping-info {
    font-size: 14px;
    font-weight: 700;
    color: #000000; 
    display: inline-flex;
    align-items: center;
    border-radius: var(--primary-radius);
    padding: 5px 10px;
    background-color: #E6F2EA;
}

/* Společný základ pro desktop i mobil */
body.type-product .p-image-wrapper {
    position: relative; /* Nutné pro správné ukotvení absolutního pozicování */
}

body.type-product .p-image-wrapper .flags-default {
    position: absolute;
    top: 15px; /* Vzdálenost od horního okraje obrázku */
    display: flex;
    flex-direction: column; /* Štítky budou seřazené pod sebou */
    gap: 6px; /* Mezera mezi štítky pod sebou */
    z-index: 10; /* Aby štítky nepřekryl obrázek */
    pointer-events: none; /* Kdyby štítek zasahoval do fotky, půjde přes něj kliknout na lupu */
}

body.type-product .p-image-wrapper .flags-default .flag {
    margin: 0 0 5px 0 !important; /* Vynulování Shoptet defaultních marginů do stran */
    display: inline-block;
    width: max-content; /* Štítek se roztáhne jen podle délky textu */
}

/* --- DESKTOP (Počítače a tablety) --- */
@media (min-width: 768px) {
    body.type-product .p-image-wrapper .flags-default {
        right: 20px; /* Umístění v pravém horním rohu */
        left: auto;
        align-items: flex-end; /* Text štítků bude zarovnaný doprava */
    }
}

/* --- MOBILNÍ TELEFONY --- */
@media (max-width: 767px) {
    body.type-product .p-image-wrapper .flags-default {
        left: 15px; /* Umístění v levém horním rohu */
        right: auto;
        align-items: flex-start; /* Text štítků bude zarovnaný doleva */
    }

    body.type-product .col-xs-12.col-lg-6.p-info-wrapper {
        display: flex;
        flex-direction: column;
    }

    body.type-product .p-short-description {
        order: 1;
    }
    body.type-product .availability-value.is-rearranged-shipping {
        order: 2;
    }
    body.type-product .custom-price-shipping-block {
        order: 3;
    }
    body.type-product .custom-combined-prices {
        display: none !important;
    }
    body.type-product .p-final-price-wrapper {
        order: 4;
    }
        body.type-product .detail-parameters {
        order: 5;
    }
        body.type-product .add-to-cart {
        order: 6;
    }

        body.type-product .productCardDescr {
        order: 7;
    }
        body.type-product .social-buttons-wrapper {
        order: 8;
    }
}

/* Obal celé navigace */
body.type-product .shp-tabs-holder {
    background-color: #EFE9DD;
    margin-top: 15px;
}

/* Hlavní flex kontejner (UL) */
body.type-product .shp-tabs.p-detail-tabs {
    display: flex;
    width: 100%;
    height: 80px;
    margin: 0 auto;
    padding: 0; /* Pojistka proti nativnímu odsazení Shoptetu */
    background-color: #EFE9DD;
}

/* Jednotlivé záložky (LI) */
body.type-product .shp-tabs.p-detail-tabs li {
    flex: 1 1 25%; /* Donutí je mít všechny stejnou šířku bez ohledu na obsah */
    display: flex; /* Vnitřní flex pro vycentrování textu */
    align-items: center;
    justify-content: center;
    border-top: none;
}

/* Samotné odkazy v záložkách (A) */
body.type-product .shp-tabs.p-detail-tabs li a,
body.type-product .shp-tabs.p-detail-tabs li.active a {
    background-color: transparent; /* Necháme prosvítat barvu z holderu */
    border: none;
    font-size: 20px;
    text-align: center;
    width: 100%;
    padding: 0; /* Lehká vnitřní mezera, aby se texty na mobilu nelepily */
    color: #1A1A1A;
}

@media (min-width: 768px){
/* Příprava pro pozicování linky */
body.type-product .shp-tabs.p-detail-tabs li {
    position: relative;
}

/* Vytvoření linky na pravé straně pro všechny li kromě posledního */
body.type-product .shp-tabs.p-detail-tabs li:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%); /* Perfektní vertikální vycentrování */
    width: 1px;                /* Tloušťka linky */
    height: 60px;              /* Výška linky – uprav si podle sebe */
    background-color: #46835C;  /* Barva linky */
}
body.type-product .gallery-arrows {
    display: none !important;
}
}

@media (max-width: 767px) {
   body.type-product .shp-tabs-holder {
        padding: 0;
    }
    body.type-product .shp-tabs.p-detail-tabs {
    flex-wrap: wrap;
}
body.type-product .price-additional, body.type-product .price-measure {
    display: none !important;
}
body.type-product .shp-tabs.p-detail-tabs {
    height: 120px;
}
}

body.type-product .custom-availability-combined:has(.availability-text) [data-original-title="Skladem."]::after {
content: ",";
}

body.type-product .browse-p .p-all{
    display: none !important;
}

@media (max-width: 767px) {
    body.type-product .p-final-price-wrapper .custom-mobile-price-box .price-save {
        display: none !important;
    }
    /* Hlavní kontejner proměníme ve flexbox s distribucí do krajů */
    body.type-product .p-final-price-wrapper {
        display: flex !important;
        justify-content: space-between;
        align-items: center; /* Vycentruje cenu a quantity vertikálně na střed */
        width: 100%;
        gap: 15px;
        margin-bottom: 15px;
    }

    /* Nový obal na ceny – uspořádá ceny pod sebe nebo vedle sebe */
    body.type-product .custom-mobile-price-box {
        display: flex;
        flex-direction: column; /* Stará cena nahoře, nová velká dole */
        align-items: flex-start;
    }

    /* Pokud je tam i sleva, chceme ji vedle původní ceny */
    body.type-product .custom-mobile-price-box .price-standard {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 16px; /* Zmenšíme původní cenu, ať nepřekáží té hlavní */
        margin: 0;
    }

    body.type-product .custom-mobile-price-box .price-save {
        display: inline-block;
        font-size: 12px;
        background-color: #E6F2EA; /* Jemné zelené pozadí pro štítek slevy */
        color: #46835C;
        padding: 2px 6px;
        border-radius: 4px;
        font-weight: 700;
    }

    body.type-product .custom-mobile-price-box .price-final {
        margin: 0;
    }

    /* Shoptet element množství posuneme doprava */
    body.type-product .p-final-price-wrapper .quantity {
        margin: 0 !important; /* Vynulujeme Shoptet okraje */
        flex-shrink: 0; /* Zabrání zúžení tlačítka na malých mobilech */
        padding-right: 0px;
        height: 100% !important;
    }

    body.type-product .p-final-price-wrapper .price-standard span {
    font-size: 16px;
    font-weight: 500;
    color: #787878;
    margin-bottom: 0px;
}

body.type-product .p-final-price-wrapper .price-final-holder,
body.type-product .p-final-price-wrapper .price-final-holder span {
    font-size: 28px;
    font-weight: 600;
}
body.type-product .btn.add-to-cart-button {
    width: 100%;
}

body.type-product .col-xs-12.col-lg-6.p-info-wrapper .availability-value {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}
body.type-product .availability-value.is-rearranged-shipping .shipping-options {
    margin-left: 0;
}
}

@media (max-width: 767px) {
/* MOBILE SLIDER */

 body.type-product .ms-slide {
max-width: calc(100% - 45px);
margin-right: 0px;
border-radius: 20px;
overflow: hidden;
flex-shrink: 0;
margin-left: 15px;
max-height: 345px;
    
  }
body.type-product .col-xs-12.col-lg-6.p-image-wrapper{
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
    max-width: calc(100% + 40px);
}
body.type-product .p-thumbnails-wrapper{
display:none;
}

body.type-product .flags-default .flag{
box-shadow: 2px 2px 12px #00000026;
}
body.type-product .gallery-arrows {
  display: flex;
  position: absolute;
  justify-content: space-between;
  width: 100%;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 2;
  padding: 0 15px;
  box-sizing: border-box;
  pointer-events: none;
  
}

body.type-product .gallery-arrow--prev,
body.type-product .gallery-arrow--next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  cursor: pointer;
  border: 1.5px solid #46835C !important;
  border-radius: 50%;
  background: #fff;
  pointer-events: all;
}
body.type-product .p-detail-inner .p-image {
height:345px;
border-radius:0px;
}

 body.type-product .mobile-slider-active {
    overflow: hidden;
    position: relative;
  }

  body.type-product .ms-track {
    display: flex;
    transition: transform 0.35s ease;
    will-change: transform;
  }

body.type-product .ms-slide img {
height: 345px;
width: 100%;
object-fit: cover;
/*scale: 1.3;*/
display: block;
  }

  body.type-product .ms-dots {
display: flex;
justify-content: center;
gap: 6px;
margin-top: 10px;
margin-bottom: 20px;
  }

body.type-product .ms-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: #D9D9D9;
cursor: pointer;
transition: background 0.2s;
}

body.type-product .ms-dot.active {
background: #46835C;
}

}

body.type-product .p-image{
margin-bottom:20px;
}

body.type-product .p-thumbnails-inner div a{
overflow:hidden;

}

body.type-product .gallery-arrows {
display: flex;
position: absolute;
gap: 10px;
margin-top: 10px;
bottom: 160px;
z-index: 2;
left: 0px;
}

body.type-product .gallery-arrow {
display: inline-flex;
align-items: center;
justify-content: center;
width: 50px;
height: 50px;
cursor: pointer;
border: 1px solid #ccc;
border-radius: var(--primary-radius);
background:#fff;
}

body.type-product .gallery-arrow--prev::before,
body.type-product .gallery-arrow--next::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    background-image: url("/user/documents/svg/gallery_arrow.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

body.type-product .gallery-arrow--prev::before {
    transform: rotate(180deg);
}

body.type-product .gallery-arrow--next {
    margin-left: auto;
}

/* Skrytí šipek, pokud nemají kam pokračovat */
body.type-product .gallery-arrow.disabled {
    display: none !important;
}

body.type-product .products-related-header {
    font-family: 'PlayfairDisplay', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #000000;
}

@media(max-width: 767px){
    body.type-product .products-related-header {
    font-size: 28px;
}
}

@media (min-width: 768px) {
/* Nastavení hlavního kontejneru s produkty */
body.type-product .products-block{
display: grid;
grid-template-columns: repeat(auto-fill, 250px);
justify-content: end;
/* Zarovná celou mřížku k pravému kraji */
gap: 25px;
/* Tady si nastav, jak moc je chceš od sebe roztáhnout */
}
body.type-product .products-block .product{
float: none;
width: 250px;
margin: 0;
}
}

@media (min-width: 1440px) {
/* Nastavení hlavního kontejneru s produkty */
body.type-product .products-block {
display: grid;
grid-template-columns: repeat(auto-fill, 290px);
justify-content: end;
/* Zarovná celou mřížku k pravému kraji */
gap: 50px;
/* Tady si nastav, jak moc je chceš od sebe roztáhnout */
}
body.type-product .products-block .product {
float: none;
width: 290px;
margin: 0;
}
}



@media (min-width: 768px) {
    /* 1. Hlavní kontejnery roztáhneme na plnou šířku a vypneme absolutní pozicování Shoptetu */
    body.type-product .p-thumbnails,
    body.type-product .p-thumbnails-inner {
        width: 100% !important;
        position: static !important;
    }

    /* 2. Zacílíme na bezejmenný div, který drží samotné náhledy.
       nowrap + overflow-x: auto = původní Shoptet chování (jeden řádek, dá se posouvat),
       jen místo Shoptet šipek (viz bod 5) se posouvá běžným scrollem/tažením. */
    body.type-product .p-thumbnails-inner > div {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        width: 100% !important;
        gap: 0px; /* Mezera mezi jednotlivými náhledy */
        justify-content: flex-start !important; /* Řadit fotky zleva, volné místo nechat vpravo */
        scrollbar-width: none; /* Firefox - schová posuvník, scroll dál funguje */
        -ms-overflow-style: none; /* starší Edge/IE */
    }

    /* Chrome/Safari/Edge (Chromium) - schová posuvník stejného kontejneru */
    body.type-product .p-thumbnails-inner > div::-webkit-scrollbar {
        display: none;
    }

    /* 3. Zafixování šířky náhledu na formát 4 fotek vedle sebe.
       Zůstává i s víc než 4 fotkami - vidět je jich naráz pořád 4, zbytek se odscrolluje. */
    body.type-product .p-thumbnails-inner > div a.p-thumbnail,
    body.type-product .p-thumbnails-inner > div a.show360image {
        /* Vypočítá šířku přesně pro 4 sloupce s odečtením mezer (3x 10px = 30px) */
        flex: 0 0 calc((100% - 50px) / 4) !important;
        max-width: calc((100% - 50px) / 4) !important;
        height: auto; /* Výška se dopočítá podle šířky */
        aspect-ratio: 1 / 1; /* Udělá z náhledu dokonalý čtverec */
        display: block;
        margin-right: 10px;
        margin-bottom: 10px;
    }

    /* 4. Přinutíme obrázky uvnitř náhledů vyplnit celý prostor */
    body.type-product .p-thumbnails-inner > div a img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover; /* Obrázek se ořízne tak, aby vyplnil celý čtverec a nedeformoval se */
    }

    /* 5. Vlastní vzhled nativních Shoptet šipek (.thumbnail-prev/.thumbnail-next) -
       bílý kroužek s SVG ikonou, stejný vizuální styl jako .gallery-arrow u
       hlavního obrázku. Viditelnost (scale 0 -> 1 přes .overflow-prev/.overflow-next)
       necháváme na Shoptet CSS + initThumbnailStripArrows v detail.js, jen
       kombinujeme jejich transform: scale(...) s vlastním translateY pro
       svislé centrování (přepisujeme Shoptet margin-top: -10px trik). */
    body.type-product .p-thumbnails .thumbnail-prev,
    body.type-product .p-thumbnails .thumbnail-next {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-top: 0;
        border: 1px solid #ddd;
        border-radius: var(--primary-radius);
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        transform: translateY(-50%) scale(0);
        transition: transform 0.3s ease-out, border-color 0.2s ease;
    }

    body.type-product .p-thumbnails.overflow-prev .thumbnail-prev,
    body.type-product .p-thumbnails.overflow-next .thumbnail-next {
        transform: translateY(-50%) scale(1);
    }

    /* Malý odstup od okraje pruhu náhledů, ať kroužek nesedí nalepený na hraně */
    body.type-product .p-thumbnails .thumbnail-prev {
        left: 8px;
    }
    body.type-product .p-thumbnails .thumbnail-next {
        right: 8px;
    }

    body.type-product .p-thumbnails .thumbnail-prev:hover,
    body.type-product .p-thumbnails .thumbnail-next:hover {
        border-color: var(--primary-gold);
    }

    /* Vlastní SVG šipka místo Shoptet icon fontu (stejná ikona jako .gallery-arrow) */
    body.type-product .p-thumbnails .thumbnail-prev::before,
    body.type-product .p-thumbnails .thumbnail-next::before {
        content: "";
        display: block;
        width: 18px;
        height: 18px;
        background-image: url("/user/documents/svg/gallery_arrow.svg");
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
    }

    body.type-product .p-thumbnails .thumbnail-prev::before {
        transform: rotate(180deg);
    }

    /* OPRAVA PŘEKRÝVÁNÍ GALERIE - jen position/float, výšku už neřešíme.
       Shoptet nativně počítá s pevnou height: 100px (viz default_style.css) pro
       starý "posuvný" mechanismus (left). My teď máme jeden scrollovatelný řádek
       (bod 2), takže height se má dopočítat sama podle obsahu (auto) - height:100%
       tady dřív dělalo z .p-thumbnails obří box (100 % vysokého rodiče), kvůli
       čemuž šipky pozicované na top:50% končily hluboko pod viditelným řádkem. */
    body.type-product .p-thumbnails,
    body.type-product .p-thumbnails-wrapper,
    body.type-product .p-thumbnails-inner {
        height: auto !important;
        max-height: none !important;
        position: relative !important;
        float: none !important;
    }
    
    /* Clearfix proti vytečení obsahu u starých šablon */
    body.type-product .p-thumbnails-wrapper::after {
        content: "";
        display: table;
        clear: both;
    }
    
    body.type-product .p-thumbnails-wrapper + div {
        clear: both !important;
    }
}




/* ==========================================================================
   KOMPLETNÍ ROZVRŽENÍ PRODUKTOVÝCH TABŮ (Popis, Parametry, Značka, Recenze)
   ========================================================================== */

/* Mobilní zobrazení - vše se řadí pod sebe */
body.type-product .custom-unwrapped-tabs {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

/* --- STYLOVÁNÍ PARAMETRŮ --- */

/* Celý společný box (kontejner) parametrů a značky má šedé pozadí */
body.type-product .custom-parameters-holder,
body.type-product .custom-brand-holder,
body.type-product .rating-box-left {
    background-color: #F7F4ED;
    padding: 20px;
    border-radius: 4px;
}

/* Stejná výška pozadí u parametrů a značky — holder vyplní celou grid buňku */
body.type-product #custom-sec-parameters,
body.type-product #manufacturerDescription {
    display: flex;
    flex-direction: column;
}
body.type-product #custom-sec-parameters .custom-parameters-holder,
body.type-product #manufacturerDescription .custom-brand-holder {
    flex: 1;
    box-sizing: border-box;
}

/* Jednotlivé řádky parametrů uvnitř boxu */
body.type-product .custom-param-item {
    margin-bottom: 12px; /* Menší mezera mezi parametry pod sebou */
}
body.type-product .custom-param-item:last-child {
    margin-bottom: 0; /* Poslední parametr nemá spodní mezeru */
}

/* Label (název parametru) */
body.type-product .custom-param-label {
    display: block;
    font-weight: bold;
    margin-bottom: 2px; /* Těsná mezera k textu pod ním */
    font-size: 16px;
    color: #000000;
    font-weight: 400;
}

/* Samotný obsah/hodnota parametru (nyní průhledný, barvu řeší celý box) */
body.type-product .custom-param-content {
    background-color: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}
body.type-product .custom-param-content,
body.type-product .custom-param-content span,
body.type-product .custom-param-content a {
    font-size: 20px;
    color: #1D7139;
    font-weight: 600;
}

/* --- STYLOVÁNÍ ZNAČKY / VÝROBCE --- */

/* Centrování loga výrobce uvnitř šedého boxu */
body.type-product .custom-brand-logo-centered {
    text-align: center;
    margin-bottom: 20px;
}
body.type-product .custom-brand-logo-centered img {
    max-height: 60px; /* Ochrana, aby logo nebylo obří */
    width: auto;
    display: inline-block;
}

/* --- PC VERZE (Grid rozvržení od 768px výše) --- */
@media (min-width: 768px) {
    body.type-product .custom-unwrapped-tabs {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 40px 30px; /* Vertikální mezera 40px, horizontální mezi sloupci 30px */
    }

    /* 1. Popis produktu -> přes celou šířku (100 %) */
    body.type-product .custom-unwrapped-tabs > #description {
        grid-column: 1 / -1 !important;
    }

    /* 2. Parametry -> levá polovina (50 %) */
    body.type-product .custom-unwrapped-tabs > #custom-sec-parameters {
        grid-column: 1 / 2 !important;
    }

    /* 3. Značka -> pravá polovina (50 % - vedle parametrů) */
    body.type-product .custom-unwrapped-tabs > #manufacturerDescription {
        grid-column: 2 / 3 !important;
    }

    /* 4. Recenze / Hodnocení -> přes celou šířku dole (100 %) */
    body.type-product .custom-unwrapped-tabs > #ratingTab {
        grid-column: 1 / -1 !important;
    }

    body.type-product #description {
    margin-top: 30px;
    }
}

body.type-product .custom-unwrapped-tabs .product-text h3 {
    margin-top: 0px !important;
}

body.type-product .custom-unwrapped-tabs h3,
body.type-product .custom-unwrapped-tabs h2 {
    font-family: 'PlayfairDisplay', sans-serif;
    font-size: 32px;
    font-weight: 500;
    color: #1A1A1A;
}


/* Kontejner pro oba boxy vedle sebe na detailu produktu */
body.type-product .rating-layout-container {
    display: flex;
    gap: 30px; 
    align-items: flex-start; /* Levý box se nebude natahovat podle pravého */
    width: 100%;
}

/* Nastavení šířek boxů */
body.type-product .rating-box-left {
    flex: 0 0 25%;
    max-width: 25%;
}

body.type-product .rating-box-right {
    flex: 0 0 65%;
    max-width: 65%;
}

/* Řazení prvků v levém sloupci pod sebou */
body.type-product .rating-box-left .add-comment {
    margin: 15px 0;
}
body.type-product .rating-box-left .votes {
    margin-top: 15px;
}

/* Nový čistý vizuál recenzí v pravém sloupci */
body.type-product .rating-box-right .vote-wrap {
    padding-bottom: 20px;
    margin: 0;
    border: none;
    
}

/* 1. Řádek: Název/Jméno */
body.type-product .vote-author-name {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

/* 2. Řádek: Hvězdičky a datum */
body.type-product .vote-meta-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0px;
    font-size: 16px;
    color: #707070;
}

body.type-product .vote-time {
        font-size: 16px;
    color: #707070;
}

/* Vynucení inline zobrazení u překopírovaných hvězdiček */
body.type-product .vote-meta-row .stars {
    display: inline-flex;
}

/* Mobilní zobrazení - boxy spadnou pod sebe */
@media (max-width: 768px) {
    body.type-product .rating-layout-container {
        flex-direction: column;
    }
    body.type-product .rating-box-left, 
    body.type-product .rating-box-right {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }
}

body.type-product #ratingWrapper .btn-secondary {
    padding: 10px;
    width: 100%;
    font-size: 20px;
    font-weight: 700;
        border-radius: var(--primary-radius);
    background-color: #46835C;
    color: #fff;
    border: 1px solid #46835C;
}

body.type-product #ratingWrapper .btn-secondary:hover {
    background-color: #fff;
    color: #46835C;
}


body.type-product #ratingWrapper span.rate-average {
    font-family: 'PlayfairDisplay', sans-serif;
    font-size: 60px;
    font-weight: 600;
}

body.type-product #ratingWrapper .rate-average-inner {
    align-items: center;
}

body.type-product #ratingWrapper .rate-bar {
    background-color: #46835C;
}

body.type-product #ratingWrapper .rate-average-inner .stars .star.star-on:before {
    font-size: 25px;
}


@media (max-width: 767px) {
    body.type-product .shp-tabs.p-detail-tabs li {
        flex: 1 1 50%;
    }
body.type-product #p-detail-tabs.custom-reordered-tabs li.shp-tab:nth-child(1):after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%); /* Perfektní vertikální vycentrování */
    width: 1px;                /* Tloušťka linky */
    height: 85%;              /* Výška linky – uprav si podle sebe */
    background-color: #46835C;  /* Barva linky */
}

body.type-product #p-detail-tabs.custom-reordered-tabs li.shp-tab:nth-child(4):after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Perfektní vertikální vycentrování */
    width: 90%;                /* Tloušťka linky */
    height: 1px;              /* Výška linky – uprav si podle sebe */
    background-color: #46835C;  /* Barva linky */
    margin: 0 auto;
}
}

body.type-product .benefitBanner__item:has(section.skin-section) {
    display: none !important;
}



/* Skin card - přesunuto do body-1.css (viz .skin-simple-row), aby
   platilo na všech stránkách, ne jen na detailu produktu */


/*Popis produktu*/
/* ─── HLAVNÍ SEKCE A VNITŘNÍ STRUKTURA ─────────────────── */
body.type-product .product-row {
    display: flex;
    flex-direction: row;
    align-items: center; /* Obrázek už nemusí být stejně vysoký jako text, jen vystředěný vedle něj */
    gap: 40px;
    margin-bottom: 30px;
    width: 100%;
}

body.type-product .product-text {
    flex: 1;
    text-align: justify;
}

body.type-product .product-image {
    flex: 1;
    display: flex;
}

body.type-product .product-image img {
    width: 100%;
    height: auto; /* Přirozená výška podle poměru stran - box pak přesně kopíruje fotku */
    object-fit: contain;
    object-position: center; /* Střed obrázku zůstane vždy viditelný */
    border-radius: var(--primary-radius) !important;
}

/* ─── RESPONSIVITA PRO MOBILY A TABLETY ────────────────── */
@media (max-width: 767px) {
    body.type-product .product-row {
        flex-direction: column-reverse; /* Na mobilu obrázek nahoře, text dole */
        gap: 20px;
    }
    
    body.type-product .product-text {
        text-align: left;
    }
    
    body.type-product .product-image {
        width: 100%;
        height: 300px; /* Na mobilu drží pěkný fixní tvar, aby z obrázku nebyla nudle */
    }
}

body.type-product .description-inner {
    padding: 0px;
}

body.type-product .custom-product-features a {
    text-decoration: underline;
}

body.type-product .custom-product-features a:hover {
    text-decoration: none;
}

@media (max-width: 767px) {
    body.type-product .benefitBanner::after {
        top: -150px;
        right: 0px;
        height: 150px;
        width: 150px;
    }

body.type-product .benefitBanner::before {
        top: -30px !important;
        bottom: -60px;
}
body.type-product .custom-brand-logo-centered img {
    max-height: 40px;
}

}

body.type-product .stars-wrapper:not(:has(.star-on)) {
    visibility: hidden;
}

body.type-product:has(.variant-list):not(:has(.variant-list.variant-selected)) .p-code,
body.type-product:has(.variant-list):not(:has(.variant-list.variant-selected)) .price-separator,
body.type-product .detail-parameters tr:not(.variant-list) {
    display: none !important;
}