/* =========================================
   1. HLAVNÝ LAYOUT A KONTAJNERY
   ========================================= */
.specificProductSection {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    width: 100%;
}

.specificProductSection .sectionHead {
    margin-top: 30px;
    margin-bottom: 30px;
}

.specificProductSection .productMain {
    display: flex;
    flex-direction: column; /* Mobile first: fotka a text pod sebou */
    gap: 24px;
    width: 100%;
}

/* Pravý stĺpec = jednotný tok: názov → nákupný panel → zľava → špecifikácie → dostupnosť.
   Poradie sa líši mobil vs desktop cez `order` (mobil = nákupný box dole, desktop = hore). */
.specificProductSection .productRight {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}
.specificProductSection .productRight .basicData { order: 0; }
.specificProductSection .productRight .productInfo { order: 2; }
.specificProductSection .productRight .buyColumn  { order: 3; } /* mobil: nákupný box dole */

.specificProductSection .productMain .basicData {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.infoStockDetail {
    margin-left: 5px;
}

.specificProductSection .productMain .data {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 30px;
}

.specificProductSection .productMain .data a {
    color: var(--text-primary);
}

.specificProductSection .productMain .data .list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.specificProductSection .productMain .data .list .item {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-primary);
}

.specificProductSection .productMain .data .title {
    font-family: 'VolteSemibold', 'sans-serif';
    font-size: 18px;
    margin-bottom: 6px;
}

/* =========================================
   2. TYPOGRAFIA A NÁZVY (Desktop / Mobile)
   ========================================= */
.specificProductSection .mobile-title {  
    display: block;
    text-align: center;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);  
}

.specificProductSection .desktop-title {
    display: none;
}

.specificProductSection .categoryPath {
    font-family: 'VolteRegular', 'sans-serif'; 
    font-size: small;
}

.specificProductSection .productMain .productInfo .brand {
    color: var(--text-primary);
    height: fit-content;
    width: fit-content;
    margin-bottom: 16px;
}

.specificProductSection .productMain .productInfo .desc {
    margin-bottom: 8px;
}

/* =========================================
   3. OBRÁZKY PRODUKTU NA DETAILE
   ========================================= */
.specificProductSection .productMain .prodImgWrapp {
    position: relative;
}

.specificProductSection .imageWrapp {
    width: 100%; 
    max-width: 280px;
    aspect-ratio: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    background-color: white;
}

.specificProductSection .imageWrapp img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.specificProductSection .imageWrapp:hover .favoriteIcon,
.specificProductSection .imageWrapp .favoriteIcon.active {
    display: flex;
}

.specificProductSection .imageWrapp .favoriteIcon {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 7px;
    align-items: center;
    justify-content: center;
    background-color: white;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    cursor: pointer;
    display: none;
}

/* =========================================
   4. ODZNAKY, STAVY A OBĽÚBENÉ (Detail)
   ========================================= */
.specificProductSection .productState {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 10;
}

.specificProductSection .productState > * {
    pointer-events: auto;
}

.specificProductSection .productDetailBadges {
    display: flex;
    align-items: center; 
    gap: clamp(10px, 10vw, 150px);
}

.specificProductSection .productStatus {
    display: flex;
    align-items: center;
    gap: 6px;
}

.productStatus .statusContent {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Odznaky */
.product-labels-overlay {
    position: absolute;
    top: 1px;
    left: 1px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.specificProductSection .productMain .productInfo .badges {
    display: flex;
    gap: 4px;
    align-items: center;
}

.product-labels-overlay .badge,
.specificProductSection .productMain .productInfo .badges .badge {
    border-radius: 4px;
    padding: 3px 6px;
    font-size: 13px;
    font-family: 'VolteSemibold', 'sans-serif';
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-labels-overlay .badge.discount,
.specificProductSection .productMain .productInfo .badges .badge.discount {
    color: var(--text-white);
    background-color: var(--surface-yellow);
}

.product-labels-overlay .badge.new,
.specificProductSection .productMain .productInfo .badges .badge.new {
    color: var(--text-white);
    background-color: var(--surface-red);
}

.product-labels-overlay .badge.tip,
.specificProductSection .productMain .productInfo .badges .badge.tip {
    color: var(--text-white);
    background-color: var(--surface-green);
}

.specificProductSection .productMain .productInfo .badges .badge.sale {
    color: var(--text-white);
    background-color: var(--surface-dark);
}

/* Množstevné akcie (2+1, 3+1…) — rovnaké farby ako na kartách (basic.css) */
.product-labels-overlay .badge.promo-qty,
.specificProductSection .productMain .productInfo .badges .badge.promo-qty {
    color: var(--text-white);
    background-color: #000;
}

/* Často kupované — rovnaké farby ako na kartách (basic.css) */
.product-labels-overlay .badge.last-ordered,
.specificProductSection .productMain .productInfo .badges .badge.last-ordered {
    color: #a96600;
    background-color: #fce5c3;
}

/* Obľúbené (Srdiečko) */
.specificProductSection .favorite-overlay {
    position: absolute;
    right: 10px;
    z-index: 10;
}

.specificProductSection .productMain .favorite-overlay .addTofavoriteWrapp {
    position: relative;
    right: auto;
    margin: 0; padding: 0;
    display: flex;
}

.favorite-overlay .addTofavoriteWrapp,
.favorite-overlay .favorite,
.favorite-overlay a, 
.specificProductSection .productMain .favorite-overlay .favorite {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0; padding: 0;
}

.favorite-overlay a, 
.specificProductSection .productMain .favorite-overlay .favorite {
    width: 36px; height: 36px;
    background-color: white;
    border-radius: 50%;
    text-decoration: none;
    color: #e74c3c;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s ease;
}

.favorite-overlay a:hover,
.specificProductSection .productMain .favorite-overlay .favorite:hover {
    background-color: #f9f9f9;
}

.favorite-overlay p {
    display: none;
}

.specificProductSection .favoriteDetailWrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin: 10px 0;
}

.specificProductSection .favoriteDetailWrapper p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.specificProductSection .productMain .basicData .favoriteDetailWrapper .addTofavoriteWrapp {
    position: relative;
    top: 0; right: 0;
    display: inline-block;
    vertical-align: middle;
    z-index: 1;
}

.specificProductSection .productMain .basicData .addTofavoriteWrapp a {
    font-size: 20px;
    opacity: 80%;
}

/* Upozornenia a sklad */
.specificProductSection .productMain .stock {
    align-items: center;
    display: flex;
}

.specificProductSection .productMain .productInfo .warning,
.specificProductSection .warning {
    background-color: var(--yelow-100);
    padding: 5px 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    margin-bottom: 10px;
    margin-top: 10px;
}

.specificProductSection .warning svg {
    min-width: 12px;
    min-height: 12px;
}

/* =========================================
   5. INFORMAČNÝ GRID A VLASTNOSTI
   ========================================= */
.productInfoGrid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 25px 0;
}

.productInfoGrid .infoRow {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: start;
    gap: 16px;
    font-size: 16px;
}

.productInfoGrid .infoRow .infoLabel {
    color: var(--text-secondary, #666);
    font-family: 'VolteRegular', 'sans-serif';
}

.productInfoGrid .infoRow .infoValue {
    color: var(--text-primary, #333);
    font-family: 'VolteSemibold', 'sans-serif';
    line-height: 1.4;
}

.productInfoGrid .infoRow .infoValue.statusContent {
    display: flex;
    align-items: center;
    gap: 8px;
}

.specificProductSection .countryContent {
    display: flex;
    align-items: center;
    gap: 6px;
}

.specificProductSection .flag {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid #e5e5e5;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.03);
}

/* Atribúty a zloženie */
.product-attributes {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    font-family: sans-serif;
    font-size: 15px;
}

.attribute-row {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.attribute-row:last-child {
    border-bottom: none;
}

.attribute-row:nth-child(even) {
    background-color: #f9f9f9;
}

.attribute-name {
    flex: 0 0 35%;
    padding: 15px;
    font-weight: 600;
    color: #333;
    background-color: #f1f5f9;
    border-right: 1px solid #e0e0e0;
}

.attribute-value {
    flex: 1;
    padding: 15px;
    color: #555;
    line-height: 1.6;
}

.ingredients-box {
    background-color: #f8fafc;
    border-left: 4px solid #fbbd08;
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    margin: 15px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.ingredients-text {
    font-family: sans-serif;
    color: #475569;
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* =========================================
   6. CENA A PREPÍNAČ JEDNOTIEK
   ========================================= */
.specificProductSection .orderWrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    /* kompaktná, kontrolovaná medzera — košík hneď vedľa ceny, žiadna diera v strede */
    gap: 16px clamp(20px, 4vw, 44px);
    background-color: #eef9f0;
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 10px;
 
    max-width: 100%;
}

/* Cena a košík VEDĽA seba na všetkých šírkach (kompaktné, bez stackovania pod seba).
   Cena sa môže zúžiť, ale nerastie do šírky → košík sa neodtláča doprava. */
.specificProductSection .pricingWrapp {
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    min-width: 0;
}


.specificProductSection .section-title {
    font-family: 'VolteSemibold', 'sans-serif';
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin: 0 0 10px;
}

/* Hierarchia ceny: zľava → veľká finálna cena → s DPH → (footnote) vedľajšia cena/kg.
   Vedľajšiu cenu posúvame na koniec cez order, bez zásahu do šablóny. */
.specificProductSection .specialPrice {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.specificProductSection .secondaryPriceDetail {
    order: 5;
    width: 100%;
    margin: 10px 0 0;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Produkt bez prepočtovej (vedľajšej) ceny → prázdny blok neukazuj (žiadna stray linka) */
.specificProductSection .secondaryPriceDetail:not(:has(div)) {
    display: none;
}

.specificProductSection .secondaryPriceDetail .priceOld {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.secondaryPriceDetail .info-vat,
.secondaryPriceDetail .info-no-vat {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.specificProductSection .discount-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    background-color: var(--surface-yellow); 
    color: white;
    border-radius: 6px;
    padding: 4px 10px;
    width: fit-content;
}

.specificProductSection .discount-badge {
    font-size: 13px;
    font-weight: 700;
}

.specificProductSection .discount-wrapper .priceOld {
    font-size: 13px;
    font-weight: 700;
    text-decoration: line-through;
}

.specificProductSection .priceFinal {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-top: 2px;
}

.specificProductSection .priceFinal .price-big {
    font-family: 'VolteSemibold', 'sans-serif';
    font-size: 26px; 
    line-height: 1;
    color: #000;
}

.specificProductSection .priceFinal .price-unit {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.specificProductSection .taxPrice {
    font-size: 14px;
    color: #666;
}

/* JS prepínanie cien a Switcher */
#priceUnit:not(.secondUnit) .secondUnitPrice,
#priceUnit.secondUnit .mainUnitPrice {
    display: none !important;
}

.specificProductSection .productMain .switcherWrapp span {
    font-size: 14px;
    line-height: 140%;
}

.specificProductSection .productMain .switcherWrapp .switcher {
    display: flex;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--border-primary);
}

.specificProductSection .productMain .switcherWrapp .switcher .switch {
    position: relative;
    cursor: pointer;
    height: 22px;
    background-color: transparent;
}

.specificProductSection .productMain .switcherWrapp .switcher p {
    padding: 0 6px;
}

.specificProductSection .productMain .switcherWrapp .switcher .switch .lineBottom {
    width: 100%;
    border-radius: 999px;
    background-color: var(--primary-color);
    height: 3px;
    position: absolute;
    bottom: -5px;
    display: none;
}

.specificProductSection .productMain .switcherWrapp .switcher .switch.selected p,
.specificProductSection .productMain .switcherWrapp .switcher .switch.active p {
    font-family: 'VolteSemibold', 'sans-serif';
}

.specificProductSection .productMain .switcherWrapp .switcher .switch.selected .lineBottom,
.specificProductSection .productMain .switcherWrapp .switcher .switch.active .lineBottom {
    display: block;
}

/* Prepínač jednotiek (Toggle) */
.unit-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.unit-toggle {
    position: relative;
    display: inline-flex;
    width: 76px;
    height: 28px;
    background-color: #e4e4e7;
    border-radius: 14px;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.unit-toggle-checkbox {
    display: none;
}

.unit-toggle-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #71717a;
}

.unit-toggle-slider::before {
    content: "";
    position: absolute;
    height: 24px;
    width: 36px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.unit-toggle-checkbox:checked + .unit-toggle-slider::before {
    transform: translateX(36px);
}

.toggle-opt {
    z-index: 1;
    width: 50%;
    text-align: center;
    transition: color 0.25s;
}

.opt-ks { color: #18181b; } 
.opt-kg { color: #71717a; } 

.unit-toggle-checkbox:checked + .unit-toggle-slider .opt-ks { color: #71717a; }
.unit-toggle-checkbox:checked + .unit-toggle-slider .opt-kg { color: #18181b; }

/* =========================================
   7. NÁKUPNÝ KOŠÍK A PREPOČTY (DETAIL PRODUKTU)
   ========================================= */

/* Obalenie košíka rešpektuje globálne nastavenia z hlavného CSS,
   odstránili sme lokálne farby, ktoré prebíjali zelenú na hoveri! */
.specificProductSection .main-cart-control {
    width: 100%;
    max-width: 320px; 
}



.specificProductSection .cart-interaction-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
}

.specificProductSection .main-cart-control > form {
    margin: 0;
    width: 100%;
}

/* --- NOVÝ PILULKOVÝ DIZAJN PRE POMOCNÉ POČÍTADLO (HELPER) --- */
.specificProductSection .helper-ks-box {
    margin-top: 4px;
    width: 100%;
    max-width: 130px; /* ZAROVNANÉ NA VLAS PRESNE S .modern-amount */
    display: flex;
    justify-content: flex-start; /* Alebo center, ak to chceš mať na stred */
}

.specificProductSection .helper-input-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px; /* Tesnejšie medzery */
    
    /* Zmenšená výška, aby to bol naozaj len "drobný pomocník" oproti 40px košíku */
    height: 28px; 
    padding: 0 8px; 
    
    background-color: var(--cart-disabled, #f3f4f6);
    border: 1px solid var(--cart-border, #d1d5db);
    border-radius: var(--cart-pill-radius, 999px); 
    box-sizing: border-box; 
    
    width: 100%; /* Vyplní dostupných 130px */
    color: #6b7280;
    transition: all var(--transition-fast, 0.25s ease);
    white-space: nowrap; 
}

.specificProductSection .helper-input-group:focus-within {
    border-color: var(--cart-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
    background-color: var(--cart-bg, #ffffff);
}

.specificProductSection .helper-prefix {
    font-weight: 500;
    color: #9ca3af; /* Svetlejšia sivá, aby to nekričalo */
    font-size: 11px; /* Miniatúrne písmo */
}

.specificProductSection .helper-ks-input {
    width: 32px; /* Úplne úzky input pre čísla */
    padding: 0;
    border: none;
    background: transparent;
    text-align: right;
    color: var(--cart-text, #1f2937);
    font-weight: 700;
    font-size: 12px; /* Menšie ako v košíku */
    outline: none;
}

/* Skrytie natívnych šípok vo webkit a firefox pre helper */
.specificProductSection .helper-ks-input::-webkit-outer-spin-button,
.specificProductSection .helper-ks-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.specificProductSection .helper-ks-input[type=number] {
    -moz-appearance: textfield;
}

.specificProductSection .helper-unit-label {
    margin: 0;
    font-weight: 600;
    color: #4b5563;
    font-size: 11px; /* Miniatúrne písmo */
    cursor: pointer;
}

.specificProductSection .packageConversion,
.specificProductSection .productDescription {
    display: flex;
    margin-top: 7px;
}

/* VIZUÁL READ-ONLY HELPERA — len informačný prepočet, nie ovládací prvok.
   Prerušovaný okraj signalizuje „vypočítaná hodnota", bez faded/disabled dojmu. */
.specificProductSection .helper-input-group.is-locked {
    opacity: 1;
    cursor: default;
    background-color: #fff;
    border: 1px dashed var(--border-primary, #d1d5db);
    color: #6b7280;
}

.specificProductSection .helper-input-group.is-locked:focus-within {
    box-shadow: none;
    border-color: var(--border-primary, #d1d5db);
    background-color: #fff;
}

.specificProductSection .helper-input-group.is-locked * {
    cursor: default;
    pointer-events: none;
}

/* =========================================
   8. ZÁLOŽKY (TABS)
   ========================================= */
.tabs {
    width: 100%;
}

.tabs-scroll-container {
    position: relative;
    width: 100%;
    background: #f3f3f3;
    border-radius: 6px;
    overflow: hidden;
}

.tabs__nav {
    display: flex;
    padding: 5px;
    gap: 5px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
    padding-right: 50px; 
}

.tabs__nav::-webkit-scrollbar {
    display: none;
}

.tabs-scroll-container::after {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 60px; height: 100%;
    background: linear-gradient(to right, rgba(243, 243, 243, 0), #f3f3f3);
    pointer-events: none;
    z-index: 2;
}

.tabs .tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    color: #555;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tabs .tab:hover {
    background: rgba(0,0,0,0.05);
}

.tabs .tab.active {
    background: white;
    color: orange;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tabs__content {
    padding: 20px 0;
}

.tab-contents {
    display: none;
    line-height: 1.6;
}

.tab-contents.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   9. KARTIČKY PRODUKTOV (GRID, TABY, PODOBNÉ PRODUKTY)
   ========================================= */
.product-cards-grid .list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 20px;
    padding: 20px 0;
}
/* =========================================
   10. BANNER A SPODNÉ SEKCIE
   ========================================= */
.specificProductSection .mainBanner {
    width: 100%;
    aspect-ratio: 4 / 1;
    height: 254px;
    border-radius: 12px;
    background: #D9D9D9;
    overflow: hidden;
    margin-top: 52px;
    margin-bottom: 40px;
}

.specificProductSection .mainBanner img {
    height: 100%;
}

.specificProductSection .similarProducts {
    display: flex;
    width: 100%;
    flex-direction: column;
    margin-bottom: 62px;
}

.specificProductSection .similarProducts .sectionTitle {
    font-size: 26px;
    margin-bottom: 32px;
}

/* =========================================
   11. RESPONZÍVNY DIZAJN (MEDIA QUERIES)
   ========================================= */

@media screen and (min-width: 768px) {
    /* Tablet + desktop: 2 stĺpce — obrázok vľavo, jednotný pravý stĺpec (productRight) */
    .specificProductSection .productMain {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
    }
    .specificProductSection .productMain .prodImgWrapp {
        flex: 0 0 40%;
        max-width: 360px;
    }
    .specificProductSection .productRight {
        flex: 1 1 0;
        gap: 18px;
    }
    /* nákupný box hore, hneď pod názvom */
    .specificProductSection .productRight .buyColumn { order: 1; }
    /* cenový box = kompaktná karta (cena vľavo + Prepočet/košík vedľa), zarovnaná vľavo pod názvom */
    .specificProductSection .buyColumn .orderWrap {
        max-width: 100%;
        flex-wrap: nowrap;
        justify-content: space-around;
        align-items: center;
        gap: 24px;
        margin: 0;
    }
    .specificProductSection .imageWrapp {
        max-width: 100%;
    }
    .specificProductSection .mobile-title {
        display: none;
    }
    .specificProductSection .desktop-title {
        display: block;
        font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    }
    .tabs-scroll-container::after {
        display: none;
    }
    .tabs__nav {
        padding-right: 5px;
        overflow-x: visible;
        justify-content: flex-start;
    }
}

/* Prázdny nákupný box (klient bez cien / neprihlásený) sa skryje. */
.specificProductSection .productRight .buyColumn:not(:has(.orderWrap, .warning)) {
    display: none;
}

/* Desktop: väčší obrázok + výrazne zväčšený Cenový prehľad (cena, Prepočet, Do košíka) */
@media screen and (min-width: 1025px) {
    .specificProductSection .productMain {
        gap: 40px;
    }
    .specificProductSection .productMain .prodImgWrapp {
        flex: 0 0 360px;
        max-width: 360px;
    }

    /* --- Mierne zväčšený nákupný box (umiernene) --- */
    .specificProductSection .buyColumn { --cart-height: 48px; } /* výška tlačidiel */
    .specificProductSection .buyColumn .orderWrap { padding: 20px 26px; gap: 28px; }

    /* Cena */
    .specificProductSection .buyColumn .priceFinal .price-big { font-size: 34px; }
    .specificProductSection .buyColumn .priceFinal .price-unit { font-size: 20px; }
    .specificProductSection .buyColumn .taxPrice { font-size: 15px; }
    .specificProductSection .buyColumn .secondaryPriceDetail { font-size: 14px; }
    .specificProductSection .buyColumn .discount-badge,
    .specificProductSection .buyColumn .discount-wrapper .priceOld { font-size: 15px; }

    /* Nákupný blok má pevnú šírku → „Do košíka" ju vyplní (dlhšie než Prepočet 200px). */
    .specificProductSection .buyColumn .cart-interaction-box { width: 300px; }

    /* Do košíka — dlhé (ruší globálny max-width:160px) */
    .specificProductSection .buyColumn .modern-cart-btn { font-size: 16px; max-width: none; }
    .specificProductSection .buyColumn .modern-cart-btn img { width: 20px; }
    .specificProductSection .buyColumn .main-cart-control { max-width: none; }

    /* Počítadlo (input) = rovnaká veľkosť ako Prepočet (200×40) a zarovnané doľava
       (margin:0 ruší globálne margin:0 auto, ktoré ho centrovalo). */
    .specificProductSection .buyColumn .modern-amount { max-width: 200px; height: 40px; margin: 0; }

    /* Prepočet (helper) */
    .specificProductSection .buyColumn .helper-ks-box { max-width: 200px; }
    .specificProductSection .buyColumn .helper-input-group { height: 40px; padding: 0 14px; gap: 6px; }
    .specificProductSection .buyColumn .helper-prefix { font-size: 14px; }
    .specificProductSection .buyColumn .helper-ks-input { width: 48px; font-size: 16px; }
    .specificProductSection .buyColumn .helper-unit-label { font-size: 13px; }

    /* Odstup pod dostupnosťou — len desktop */
    .specificProductSection .stock { margin-bottom: 24px; }
}

@media screen and (max-width: 1368px) {
    /* Ponechané len logické zmenšenia šípok, odstránené zmeny inputov */
    .specificProductSection .btnRemovePackageCount { width: 7px; height: 2px; }
    .specificProductSection .btnAddPackageCount { width: 7px; height: 7px; }
}

@media screen and (max-width: 1280px) {
    .specificProductSection { padding-left: 16px; padding-right: 16px; }
    .specificProductSection .sectionHead { margin-top: 5px; margin-bottom: 15px; }
}

@media screen and (max-width: 1024px) {
    .specificProductSection .helper-input-group { align-items: center; }
    .specificProductSection .priceFinal .price-big { font-size: 24px; }
    .specificProductSection .addToCartWrapp { min-width: auto; }
    .specificProductSection .helper-ks-input { 
        font-size: 12px !important; 
        padding-left: 2px; 
    }
    .specificProductSection .helper-unit-label { 
        padding: 0 4px; 
        font-size: 11px !important; 
    }
    .specificProductSection .discount-wrapper { flex-direction: row; align-items: center; }
    .specificProductSection .priceWrapp { width: 100%; }
    .product-cards-grid .product .priceWrapp { width: 100%; }
}

@media screen and (max-width: 768px) {
    /* Mobil/tablet: cena a košík ostávajú VEDĽA seba — šetrí výšku, netreba skrolovať */
    .specificProductSection .orderWrap {
        align-items: center;
        justify-content: flex-start;
        padding: 16px;
        gap: 12px 16px;
    }
    .specificProductSection .addToCartWrapp { flex: 0 0 auto; }
    .specificProductSection .cart-interaction-box { align-items: center; gap: 8px; }
    .specificProductSection .main-cart-control { max-width: none; }
    .specificProductSection .modern-cart-flex { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
    .specificProductSection .helper-ks-box {
        justify-content: center;
        align-self: center;
        max-width: 150px;
        margin-top: 0;
    }
    .specificProductSection .discount-badge { font-size: 12px; }
    .specificProductSection .priceFinal .price-big { font-size: 22px; }
    .specificProductSection .priceFinal .price-unit { font-size: 15px; }
    .specificProductSection .taxPrice,
    .specificProductSection .secondaryPriceDetail { font-size: 13px; }
    .specificProductSection .list { grid-template-columns: repeat(3, 1fr); }
}

@media screen and (max-width: 767px) {
    .specificProductSection .productMain .imageWrapp img { height: 100%; }
    .specificProductSection .similarProducts { margin-bottom: 100px; }

    /* Overlap karta na mobile = celý pravý stĺpec (predtým .productInfo, teraz je vnorený) */
    .specificProductSection .productMain .productRight {
        margin-top: -25px;
        position: relative;
        z-index: 11;
        background-color: white;
        border-radius: 12px 12px 0 0;
    }
    .specificProductSection .discount-wrapper { flex-direction: row; align-items: center; gap: 6px; width: fit-content; }

    /* Cenový box vyššie (menšia medzera) + zelený box na PLNÚ šírku contentu, so space-between a paddingom (nenalepený) */
    .specificProductSection .productMain { gap: 16px; }
    .specificProductSection .buyColumn .orderWrap {
        width: 100%;
        box-sizing: border-box;
        justify-content: space-around;
        align-items: center;
        padding: 16px 18px;
    }

    .specificProductSection .list { grid-template-columns: repeat(2, 1fr); }
    
    /* Úpravy Grid kartičiek na mobile */
    .product-cards-grid .list { 
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; 
        padding: 10px 0;
    }
    .product-cards-grid .product { padding: 10px; }
    .product-cards-grid .product .image { height: 90px; }
    .product-cards-grid .product .image img { max-height: 100%; }
    .product-cards-grid .product .title h3 { font-size: 13px; }
    .product-cards-grid .product .price h3 { font-size: 16px; }
    
    .product-cards-grid .product .addToCartWrapp,
    .product-cards-grid .product form {
        gap: 5px;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 600px) {
    .attribute-row { flex-direction: column; }
    .attribute-name { border-right: none; border-bottom: 1px solid #e0e0e0; padding-bottom: 10px; }
}

@media screen and (max-width: 500px) {
    .specificProductSection .mainBanner { margin: 32px 0; }
    .productInfoGrid { gap: 8px; }
    .productInfoGrid .infoRow { grid-template-columns: 120px 1fr; gap: 8px; }
    
    /* Úplne malý displej - Grid pod sebou */
    .product-cards-grid .list { 
        grid-template-columns: repeat(2, 1fr); 
    }
}