/* =========================================================
   01. PREMENNÉ (Zlúčené všetky :root bloky)
   ========================================================= */
:root {
    /* Hlavné farby */
    --primary-color: #F39200; /* = manuál žltá; #F49D1A zakázaná (docs/dizajn/README.md#zakázaná-žltá) */
    --surface-red: #E53012;
    --surface-smoke: #F5F5F5;
    --surface-dark: #343332;
    --surface-green: #65B32E; /* = manuál „zelenina" */
    --surface-yellow: #F39200;

    /* Text a pozadia */
    --text-primary: #343332;
    --text-secondary: #858584;
    --text-white: #FFF;
    --color-green-100: #EFF7EA;
    --popup-bg: #49484733;
    --border-primary: #D6D6D6;

    /* Sekundárne farby */
    --yellow: #FC0;
    --blue-200: #EFF9FE;
    --yelow-100: #FEF4E5;
    --gray-100: #EAEAEA;

    /* Cart UI špecifické premenné */
    --cart-primary: #72b23a;
    --cart-primary-hover: #f39200;
    --cart-bg: #ffffff;
    --cart-border: #d1d5db;
    --cart-text: #1f2937;
    --cart-disabled: #f3f4f6;
    --cart-height: 48px; 
    
    /* Animácie */
    --transition-fast: 0.25s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================================
   02. ZÁKLADNÝ RESET A GLOBÁLNE ŠTÝLY
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* PRIDANÉ SEM */
}



/* Fonty sú dohintované (AFDKO otfautohint, 2026-09-16) — bez hintov písmená na Windows „plávali".
   Originál + postup: docs/fonts-backup/volte-2026-09-16/. ?v= = cache-buster samotných fontov. */
@font-face {
    font-family: "VolteSemibold";
    src: url('../fonts/VolteRoundedSemibold/font.woff2?v=20260917') format('woff2'),
         url('../fonts/VolteRoundedSemibold/font.woff?v=20260917') format('woff');
}

@font-face {
    font-family: "VolteRegular";
    src: url('../fonts/VolteRoundedRegular/font.woff2?v=20260917') format('woff2'),
         url('../fonts/VolteRoundedRegular/font.woff?v=20260917') format('woff');
}

body {
    font-family: 'VolteRegular', sans-serif;
    color: var(--text-primary);
    /* Navbar je pod 1280px position:fixed → obsah potrebuje horný odstup = jeho výška.
       Výška sa MERIA DYNAMICKY (navbarPosition.js → --navbar-bottom na <html>), takže
       odstup sedí na mobile (1 riadok), tablete (2 riadky) aj s info bannerom — nie je
       natvrdo. Fallback platí len do spustenia JS; per-breakpoint, aby bol blízko reality. */
    padding-top: var(--navbar-bottom, 110px);
}

@media (min-width: 768px) {
    body {
        padding-top: var(--navbar-bottom, 147px);
    }
}

@media (min-width: 1280px) {
    /* Desktop: navbar je position:sticky → je v normálnom toku, žiadny odstup netreba. */
    body {
        padding-top: 0;
    }
}

body.popupIsActive,
body.no-scroll {
    overflow: hidden !important;
}

h1, h2, h3, h4, h5, h6, strong, b {
    font-family: 'VolteSemibold', 'sans-serif';
}

ul {
    list-style: none;
}

address {
    font-style: normal;
}

:target {
    scroll-margin-top: 88px;
}

/* =========================================================
   03. ODKAZY A TYPOGRAFICKÉ UTILITY
   ========================================================= */
a {
    color: currentColor;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

.linkNoUnderline,
.linkUnderlineHover {
    text-decoration: none;
}

.linkUnderlineHover:hover {
    text-decoration: underline;
}

.linkIcon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.linkIcon svg {
    fill: currentColor;
}

.textSmall { font-size: 12px; }
.textSecondary { color: var(--text-secondary); }
.textLeft { text-align: left; }
.w100 { width: 100%; }
.dBlock { display: block; }
.listUnstyled { padding-left: 0; margin-bottom: 0; }

/* Medzery (Margins) */
.mb4 { margin-bottom: 4px; }
.mb8 { margin-bottom: 8px; }
.mb10 { margin-bottom: 10px; }
.mb48 { margin-bottom: 48px; }
.mb-1 { margin-bottom: 5px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }
.mb-5 { margin-bottom: 40px; }
.ml-1 { margin-left: 5px; }

/* =========================================================
   04. FORMULÁRE A INPUTY
   ========================================================= */
.input {
    background-color: white;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    border: 2px solid transparent;
    outline: 3px solid transparent;
    transition: 0.3s;
}

.input:focus {
    border: 2px solid var(--primary-color);
    outline: 3px solid rgba(243, 146, 0, 0.30);
}

input, textarea {
    font-family: 'VolteRegular', sans-serif;
    resize: none;
}



.inputWrappMain,
.phoneInputWrapp {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.inputWrappMain label,
.phoneInputWrapp label {
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    font-family: 'VolteSemibold', 'sans-serif';
}

.inputWrappMain p.error,
.phoneInputWrapp p.error {
    color: var(--surface-red);
    margin-top: 3px;
    width: fit-content;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 4px;
}

.inputWrappMain p.error svg,
.phoneInputWrapp p.error svg {
    width: 16px;
    height: 16px;
    min-width: 12px;
    flex-shrink: 0;
}

.inputWrappMain .inputWrapp,
.inputWrappMain .inputFile,
.phoneInputWrapp .inputFull {
    background-color: var(--text-white);
    border: 1px solid var(--text-secondary);
    border-radius: 8px;
    width: 100%;
    padding: 8px 12px;
    outline: 2px solid transparent;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.3s;
}

.inputWrappMain .inputWrapp.error,
.phoneInputWrapp .inputFull.error {
    border: 1px solid var(--surface-red);
}

.inputWrappMain .inputWrapp.inputWrappLg {
    padding-top: 13px;
    padding-bottom: 13px;
}

.phoneInputWrapp .inputFull {
    padding: 0px 12px;
}

.inputWrappMain .inputWrapp input::placeholder,
.phoneInputWrapp .inputFull input::placeholder,
.inputWrappMain .inputWrapp textarea::placeholder {
    color: var(--border-primary);
}

.inputWrappMain .inputWrapp input,
.phoneInputWrapp .inputFull input,
.inputWrappMain .inputWrapp textarea {
    color: var(--text-primary);
    background-color: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    width: 100%;
}

.inputWrappMain .inputWrapp textarea {
    min-height: 100px;
}

.inputWrappMain .inputWrapp textarea.rows {
    min-height: 0;
}

.inputWrappMain .inputWrapp:focus-within {
    border: 1px solid var(--primary-color);
    outline: 2px solid rgba(243, 146, 0, 0.30);
}

.inputWrappMain .inputFile {
    overflow: hidden;
    font-size: 16px;
}

.inputWrappMain .inputFile::file-selector-button {
    padding: 8px 12px;
    margin: -8px -12px;
    margin-inline-end: 12px;
    background-color: var(--primary-color);
    color: white;
    pointer-events: none;
    border: 0 solid inherit;
    border-inline-end-width: 1px;
    border-radius: 0;
    font-family: 'VolteSemibold', 'sans-serif';
    transition: 0.3s ease;
}

.inputWrappPassword .showPassword { display: none; }
.inputWrappPassword:not(.show) .showPassword { display: block; }
.inputWrappPassword:not(.show) .hidePassword { display: none; }

/* Checkboxy a Radiá */
.checkboxWrapp { position: relative; }
.checkboxWrapp a { color: var(--text-primary); }
.checkboxWrapp p, .checkboxWrapp label { margin-top: 1px; }

.checkboxWrapp label {
    display: flex;
    gap: 6px;
    font-size: 14px;
    line-height: 140%;
}

.checkboxWrapp .checkbox {
    position: relative;
    margin-top: 3px;
    background-color: var(--text-white);
    color: var(--text-white);
    border: 1px solid var(--text-secondary);
    width: 15.75px;
    height: 15.75px;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
}

.checkboxWrapp .checkbox .iconChecked,
.checkboxWrapp .checkbox .iconIndeterminate {
    display: none;
}

.checkboxWrapp input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkboxWrapp.checked .checkbox,
.checkboxWrapp input[type="checkbox"]:checked ~ label .checkbox {
    background-color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.checkboxWrapp.checked .checkbox .iconChecked,
.checkboxWrapp input[type="checkbox"]:checked ~ label .checkbox .iconChecked {
    display: block;
}

.checkboxWrapp.indeterminate .checkbox .iconIndeterminate {
    display: block;
}

.radioCheckWrapp {
    display: flex;
    gap: 6px;
    align-items: center;
    font-size: 16px;
    line-height: 140%;
}

.radioCheckWrapp .radioCheck {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background-color: white;
    border: 1px solid var(--border-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.radioCheckWrapp .radioCheck .radio {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    display: none;
    border-radius: 999px;
}

.radioCheckWrapp.checked .radioCheck { border: 1px solid var(--primary-color); }
.radioCheckWrapp.checked .radioCheck .radio { display: block; }

/* Switch Toggle */
.form-switch { position: relative; }
.form-switch input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.form-switch-label {
    display: flex;
    align-items: center;
    width: 36px;
    height: 22px;
    padding: 3px;
    border-radius: 999px;
    cursor: pointer;
    justify-content: flex-start;
    background-color: var(--border-primary);
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: left center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
    transition: background-position .15s
}

.form-switch-label .ball {
    width: 16px;
    height: 16px;
    background-color: white;
    border-radius: 999px;
    transition: 0.2s ease;
}

.form-switch input:checked ~ .form-switch-label {
    background-position: right center;
    background-color: var(--surface-yellow);
}

/* =========================================================
   05. TLAČIDLÁ A IKONY
   ========================================================= */
button { border: 0; }

.primary-btn {
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-family: 'VolteSemibold', 'sans-serif';
    padding: 15px 24px;
    border-radius: 8px;
    width: fit-content;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

a.primary-btn {
    display: block;
    text-decoration: none;
}

.primary-btn a { text-decoration: none; }
.primary-btn:hover { background-color: var(--surface-yellow); }
.primary-btn.danger { background-color: var(--surface-red); }

.terciary-btn {
    color: var(--text-primary);
    text-decoration: underline;
}

.buttonText {
    border: 0;
    background-color: transparent;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
a.btn-icon { display: flex; }
.btn-icon-left { justify-content: flex-start; text-align: left; }

.bgIcon {
    display: inline-block;
    background-repeat: no-repeat;
}

.bgIconChevronLeft {
    width: 6px;
    height: 10px;
    background-size: 6px 10px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Icon' d='M5 1L1 5L5 9' stroke='%23343332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

.bgIconChevronRight {
    width: 6px;
    height: 10px;
    background-size: 6px 10px;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg width='6' height='10' viewBox='0 0 6 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath id='Icon' d='M1 9L5 5L1 1' stroke='%23343332' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
}

/* =========================================================
   06. INDIKÁTORY STAVU SKLADU (.ball)
   ========================================================= */
.ball {
    background-color: var(--surface-green); /* Default */
}

/* Základné rozmery bodky pre vyhľadávanie a produkty */ 
.homeWrapp .secondSide section .product .title .status .ball,
.productListWrapperTemplate .product .title .status .ball,
.specificProductSection .productMain .stock .ball,
.desc .stock .ball,
.desc .status .ball {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

/* Zelená - Skladom */
.homeWrapp .secondSide section .product .title .status.inStock .ball,
.productListWrapperTemplate .product .title .status.inStock .ball,
.specificProductSection .productMain .stock.inStock .ball,
.desc .stock.inStock .ball {
    background-color: var(--surface-green);
}

/* Červená - Vypredané / Nedostupné */
.homeWrapp .secondSide section .product .title .status.outStock .ball,
.productListWrapperTemplate .product .title .status.outStock .ball,
.specificProductSection .productMain .stock.outStock .ball,
.desc .stock.outStock .ball {
    background-color: var(--surface-red);
}

/* Žltá - Na objednávku / OZ */
.homeWrapp .secondSide section .product .title .status.onOrder .ball,
.productListWrapperTemplate .product .title .status.onOrder .ball,
.specificProductSection .productMain .stock.onOrder .ball,
.desc .stock.onOrder .ball {
    background-color: var(--surface-yellow);
}

.desc .stock, 
.desc .status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desc .stock p, 
.desc .status p {
    margin: 0;
    line-height: 1;
}

.desc .ball {
    flex-shrink: 0;
}

/* =========================================================
   07. MODERN CART UI (Košík a vstupy množstva)
   ========================================================= */

:root {
    /* 1. Definujeme JEDNU veľkosť a tvar pre celý web */
    --cart-height: 40px; 
    --cart-pill-radius: 999px; /* Zaručí dokonalú pilulku navždy */
}

.modern-product-counter-wrapper {
    position: relative;
    min-height: var(--cart-height);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.is-hidden { display: none !important; }

.in-cart-state, 
.initial-state {
    width: 100%;
    animation: stateFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modern-cart-btn {
    position: relative;
    background-color: var(--cart-primary);
    color: white;
    border: none;
    border-radius: var(--cart-pill-radius);
    height: var(--cart-height);
    font-weight: 600;
    font-size: 14px; /* Zjednotená veľkosť písma */
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px; /* Zjednotená medzera medzi ikonou a textom */
    width: 100%;
    max-width: 160px; /* Aby nebolo tlačidlo zbytočne roztiahnuté cez celú obrazovku */
    margin: 0 auto;
    padding: 0 20px;
}

/* Ikonka v tlačidle má fixnú veľkosť */
.modern-cart-btn img {
    width: 18px;
    height: auto;
}

@media (hover: hover) {
    .modern-cart-btn:hover {
        background-color: var(--cart-primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 6px 12px -2px rgba(243, 146, 0, 0.3);
    }
}

.modern-cart-btn:active {
    transform: scale(0.97);
}

/* Počítadlo (+ / -) */
.modern-amount {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    height: var(--cart-height);
    border: 1px solid var(--cart-border);
    border-radius: var(--cart-pill-radius);
    background-color: var(--cart-bg);
    overflow: hidden; /* Extrémne dôležité: zabraňuje hover efektu tlačitiel presahovať mimo oblých rohov */
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
    max-width: 130px; /* Ideálna fixná šírka, aby čísla neskákali */
    margin: 0 auto;
}

.modern-amount:focus-within {
    border-color: var(--cart-primary-hover);
    box-shadow: 0 0 0 3px rgba(243, 146, 0, 0.15);
}

.btn-modern-counter {
    background-color: transparent;
    border: none;
    width: 36px;
    flex: 0 0 auto;     /* KRITICKÉ: tlačidlá +/- sa nikdy nezmenšujú → vždy klikateľné,
                           aj keď je číslo/jednotka dlhé (predtým ich autoGrow stláčal) */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    -webkit-tap-highlight-color: transparent; /* len naša oranžová výplň, žiadny natívny sivý box */
}

.btn-modern-counter img {
    width: 14px;
    height: auto;
    transition: filter var(--transition-fast);
}

@media (hover: hover) {
    .btn-modern-counter:hover {
        background-color: var(--cart-primary-hover);
    }

    .btn-modern-counter:hover img {
        filter: brightness(0) invert(1);
    }
}

/* Touch/click feedback (mobil + tablet, kde hover nefunguje): rovnaká oranžová výplň
   + biela ikona ako pri hoveri — aby ťuknutie na +/- dalo jasnú odozvu naprieč eshopom. */
.btn-modern-counter:active {
    background-color: var(--cart-primary-hover);
}

.btn-modern-counter:active img {
    filter: brightness(0) invert(1);
}

.amountWrappInput {
    flex: 1;
    min-width: 0;        /* dovolí stredu skrátiť obsah namiesto tlačenia tlačidiel */
    overflow: hidden;    /* veľké číslo sa oreže, nerozbije layout */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    padding: 0 4px;
    border-left: 1px solid var(--cart-border);
    border-right: 1px solid var(--cart-border);
}

.amountWrappUnit {
    font-size: 11px;     /* zmenšené (bolo 13px) — jednotka nesmie kradnúť miesto číslu/tlačidlám */
    font-weight: 600;
    color: #6b7280;
    cursor: text;
    display: flex;
    align-items: center;
    flex: 0 0 auto;      /* bolo flex:1 (brala pol stredu) — teraz len podľa obsahu */
    white-space: nowrap;
    height: 100%;
}

/* Zlúčené pravidlá pre AutoGrow Input, aby sa zachovala finálna kaskáda */
.autoGrowInput {
    position: absolute;
    left: 0;
    appearance: none;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0 3px;
    background: transparent;
    font-weight: 600;
    font-size: 14px; 
    text-align: center;
    color: var(--text-primary);
    outline: none;
    -moz-appearance: textfield;
}
.autoGrowInput::-webkit-outer-spin-button,
.autoGrowInput::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.autoGrow {
    position: relative;
    flex: 1;
    text-align: right;
}

.autoGrowText {
    display: inline-block;
    padding: 0 3px;
    font-size: inherit;
    opacity: 0;
    width: 100%;
    height: 100%;
    max-width: 50px;
}

/* Počítadlo .modern-amount: zóna čísla NESMIE diktovať šírku celého počítadla.
   Bez min-width:0 si autoGrow vynúti šírku podľa obsahu → +/- tlačidlá sa stláčajú
   (stránka košíka) a v minikošíku sa rozšíri counter a tlačí názov produktu.
   min-width:0 ho udrží vo fixnej zóne (zvyšok po tlačidlách + jednotke); dlhé číslo
   sa oreže (overflow na .amountWrappInput), layout ostáva stabilný. */
.modern-amount .autoGrow {
    min-width: 0;
}

/* Starší košík / Klasický input Wrapper */
.amountWrapp {
    height: var(--cart-height, 40px); /* Zladenie s výškou košíka */
    display: flex;
    justify-content: space-between;
    padding: 0;
    border: 1px solid var(--border-primary);
    border-radius: 999px; /* TOTO BOLO 8px - teraz to bude dokonalá pilulka */
    text-align: center;
    overflow: hidden; /* Extrémne dôležité pre oblé rohy pri hoveri */
    background-color: var(--cart-bg, #ffffff);
    width: 100%;
    max-width: 130px; /* Zamedzí roztiahnutiu na celú bunku */
    margin: 0 auto;
}

.amountWrapp .amountWrappInput {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
}

.amountWrapp .btn-counter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 100%;
    border: 0;
    cursor: pointer;
    background-color: transparent;
    transition: background-color 0.2s ease;
}

@media (hover: hover) {
    .amountWrapp .btn-counter:hover {
        background-color: var(--cart-primary-hover, #f39200);
    }
}

.amountWrapp .btn-counter:active {
    background-color: var(--cart-primary-hover, #f39200); /* Touch feedback ako pri hoveri */
}

.amountWrapp .btn-counter:active img {
    filter: brightness(0) invert(1);
}

.result .controlls .btn-add-to-cart span {
    display: none;
}

/* Výnimky pre Minikošík (Dropdown) */
.cartList .actions {
    display: flex;
    align-items: center;
    gap: 12px;
    --cart-height: 32px; 
}

.cartList .actions .modern-amount { max-width: 110px; margin: 0; }
.cartList .actions .autoGrowInput { font-size: 13px; }
.cartList .actions .amountWrappUnit { font-size: 12px; }
.cartList .actions .btn-modern-counter { width: 28px; }
.cartList .actions .btn-modern-counter img { width: 12px; }


.checkout-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Loading Stavy & AJAX Zámky */
.is-loading,
.is-ajax-loading .modern-cart-btn,
.is-ajax-loading .cart {
    pointer-events: none;
    cursor: not-allowed;
}

body.is-ajax-loading {
    pointer-events: none !important;
    cursor: wait !important;
}

body.is-ajax-loading .is-loading { opacity: 0.7; }
.modern-cart-btn.is-loading { opacity: 0.8; }

.modern-cart-btn.is-loading img,
.modern-cart-btn.is-loading span {
    visibility: hidden; 
}

.modern-cart-btn.is-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin-top: -12px;
    margin-left: -12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: cart-button-spin 0.6s linear infinite;
    visibility: visible;
}

.js-cart-ui-sync.is-recalculating .modern-amount {
    opacity: 0.6;
    pointer-events: none;
    background-image: linear-gradient(45deg, rgba(0,0,0,0.02) 25%, transparent 25%, transparent 50%, rgba(0,0,0,0.02) 50%, rgba(0,0,0,0.02) 75%, transparent 75%, transparent);
    background-size: 1rem 1rem;
    animation: progressBg 1s linear infinite;
}

/* =========================================================
   08. POPUPY, TOOLTIPY A ODZNAKY (Badges)
   ========================================================= */
.bodyBackdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 199;
    background-color: var(--popup-bg);
    visibility: hidden;
    opacity: 0;
}

body:has(.searchResultsWrappShow) .bodyBackdrop {
    opacity: 1;
    visibility: visible;
}

.modern-cart-popup {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    animation: popupFadeIn 0.3s var(--transition-bounce) forwards;
}

.modern-cart-popup.is-success { background: var(--cart-primary); color: white; }
.modern-cart-popup.is-danger { background: #ef4444; color: white; }
.modern-cart-popup.is-dark { background: rgba(31, 41, 55, 0.95); color: white; font-weight: 400; }

.modern-cart-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: transparent;
}

.modern-cart-popup.is-success::after { border-top-color: var(--cart-primary); }
.modern-cart-popup.is-danger::after { border-top-color: #ef4444; }
.modern-cart-popup.is-dark::after { border-top-color: rgba(31, 41, 55, 0.95); }
.modern-cart-popup.is-leaving { animation: popupFadeOut 0.2s ease-in forwards; }


/* === CART POPUPS === */
.cart-popup {
    position: fixed;
    transform: translateX(-50%);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    /* Nad obsahom/košíkom, ale POD delete/clear modálom (.cart-delete-modal-overlay = 1050),
       aby ho potvrdzovací modal prekryl a zašedil (predtým 999999 = nad všetkým). */
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.cart-popup.is-visible {
    opacity: 1;
}

.cart-popup--limit   { background-color: #EF4444; }
.cart-popup--success { background-color: #72b23a; }
.cart-popup--update  { background-color: #72b23a; }
.cart-popup--tooltip { background-color: #1f2937; }
.cart-popup--remove { background-color: #EF4444; }


.badges-stacked {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    pointer-events: none;
}

.searchResultsWrapp.modern-popup .badges-stacked {
    display: flex;
    flex-direction: row;
    gap: 4px;
    align-items: flex-start;
    pointer-events: none;
}

.badges-stacked .badge {
    pointer-events: auto; 
    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);
    margin: 0;
    position: relative !important;
    top: auto !important;
}

.badges-stacked .badge.last-ordered{
    background-color: #fce5c3;
    color: #a96600;
}

/* Tieto triedy sa aplikujú na obal inputu - napr. na .modern-product-counter-wrapper */

/* Spinner počas Debouncingu a ukladania */
.state-syncing .cart-item-count {
    opacity: 0.6;
    pointer-events: none;
    /* Doplň sem background-image so SVG spinnerom ak chceš točiť ikonu priamo v inpute */
}

/* Úspech */
.state-success .cart-item-count {
    border-color: #28a745 !important;
    color: #28a745;
    transition: all 0.3s ease;
}

/* Chyba / Limit skladu */
.state-error .cart-item-count {
    border-color: #dc3545 !important;
    background-color: #fff8f8;
}

/* Text inline chyby pridaný cez JS */
.inline-cart-feedback {
    position: absolute;
    bottom: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    color: #dc3545;
    white-space: nowrap;
    animation: fadeIn 0.3s ease;
}

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

.badges-stacked .badge.new { background-color: var(--surface-red); color: white; }
.badges-stacked .badge.tip { background-color: #ffc107; color: black; }
.badges-stacked .badge.discount { background-color: #f28900; color: white; }
.badges-stacked .badge.promo-qty { background-color: black; color: white; }


/* =========================================================================
   Obľúbené (srdiečko) — GLOBÁLNE moderné správanie (naprieč celým webom).
   Pozn.: pozícia/veľkosť sa rieši kontextovo v jednotlivých šablónach;
   tu sú len mikro-interakcie, ktoré NEMENIA rozmery → nerozbijú layout.
   ========================================================================= */
.favorite {
    transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
    -webkit-tap-highlight-color: transparent;
}
.favorite svg {
    display: block;
    transition: transform .18s ease, stroke .18s ease, fill .18s ease;
    overflow: visible;
}

/* Klik feedback: po pridaní do obľúbených sa (AJAX redraw) vykreslí .favoriteIconLike → pop */
.favoriteIconLike {
    transform-origin: center;
    animation: favHeartPop .32s cubic-bezier(.4, 1.5, .6, 1);
}
@keyframes favHeartPop {
    0%   { transform: scale(.5); }
    45%  { transform: scale(1.25); }
    72%  { transform: scale(.9); }
    100% { transform: scale(1); }
}

/* Stlačenie (všetky zariadenia) */
.favorite:active {
    transform: scale(.9);
}

/* Hover VÝLUČNE na desktope (presný ukazovateľ) — na dotyku sa neaktivuje */
@media (hover: hover) and (pointer: fine) {
    .favorite:hover {
        transform: scale(1.12);
        box-shadow: 0 4px 10px rgba(0, 0, 0, .22);
    }
    /* outline srdiečko sa pri hoveri „naladí" do brand červenej */
    .favorite:hover svg path {
        stroke: var(--surface-red);
    }
}


/* --- DELETE CONFIRMATION MODAL --- */
.cart-delete-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInOverlay 0.2s forwards;
}

.cart-delete-modal {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    max-width: 320px;
    width: 90%;
    transform: scale(0.95);
    animation: popInModal 0.2s 0.1s forwards;
}

.cart-delete-modal h4 {
    margin: 0 0 10px;
    font-size: 18px;
    color: var(--text-primary, #222);
}

.cart-delete-modal p {
    margin: 0 0 20px;
    font-size: 14px;
    color: #666;
}

.cart-delete-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.cart-delete-modal-btn {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.cart-delete-modal-btn.btn-cancel {
    background: #f1f5f9;
    color: #475569;
}
.cart-delete-modal-btn.btn-cancel:hover {
    background: #e2e8f0;
}

.cart-delete-modal-btn.btn-confirm {
    background: #ef4444;
    color: #fff;
}
.cart-delete-modal-btn.btn-confirm:hover {
    background: #dc2626;
}

@keyframes popInModal {
    to { transform: scale(1); opacity: 1; }
}

/* =========================================================
   09. OSTATNÉ KOMPONENTY (Zoznamy, Flash správy...)
   ========================================================= */
.products-list .products-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border-primary);
}

.products-list .products-item .products-item__left,
.products-list .products-item .products-item__right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.products-list .products-item .products-item__right { gap: 30px; }

.products-list .products-item .products-item__image {
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 4px;
    border: 1px solid var(--border-primary);
}

.products-list .products-item .products-item__image img { display: block; width: 100%; }

.products-list .products-item .products-item__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.products-list .products-item .products-item__info a { text-decoration: none; }
.products-list .products-item .products-item__info a:hover { text-decoration: underline; }

.loadMoreSection .loadMoreWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    justify-content: center;
}

.loadMoreSection .loadMoreWrapper .primary-btn {
    display: flex;
    align-items: center;
    gap: 10px;
}

.loadMoreSection .loadMoreWrapper .primary-btn svg { min-width: 12px; min-height: 24px; }
.loadMoreSection .loadMoreWrapper .pagesWrapp { display: flex; align-items: center; gap: 8px; }
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages { display: flex; align-items: center; gap: 6px; }

/* Pilulkové strany + šípky — zhoda s .c-pill jazykom (biela, radius 999, border-primary) */
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages p,
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages .page-arrow {
    min-width: 40px;
    height: 40px;
    padding: 0 6px;
    border: 1px solid var(--border-primary);
    border-radius: 999px;
    background: #fff;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

/* odkaz vyplní celú plochu pilulky → klik je celý okrúhly cieľ */
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages p a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: inherit;
}

.loadMoreSection .loadMoreWrapper .pagesWrapp .pages .page-arrow svg { display: block; }

/* aktívna strana = brand orange */
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages p.selected {
    background: #F39200;
    border-color: #F39200;
    color: #fff;
    cursor: default;
}

/* ellipsis „…" — bez pilulky */
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages p.dots {
    min-width: auto;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--text-secondary);
    font-weight: 400;
    cursor: default;
}

/* hover len na zariadeniach s myšou (touch gotcha — viď CLAUDE.md) */
@media (hover: hover) and (pointer: fine) {
    .loadMoreSection .loadMoreWrapper .pagesWrapp .pages p:not(.selected):not(.dots):hover,
    .loadMoreSection .loadMoreWrapper .pagesWrapp .pages .page-arrow:hover {
        background: rgba(243, 146, 0, 0.08);
        border-color: rgba(243, 146, 0, 0.4);
    }
}

/* touch odozva (mimo @media hover) */
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages p:not(.selected):not(.dots):active,
.loadMoreSection .loadMoreWrapper .pagesWrapp .pages .page-arrow:active {
    background: rgba(243, 146, 0, 0.12);
    border-color: rgba(243, 146, 0, 0.5);
}

/* ==========================================================================
   Breadcrumbs (omrvinky) — globálne, jednotné naprieč eshopom
   ========================================================================== */
.history {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 14px;
    line-height: 1.4;
}

.history a {
    color: var(--text-secondary);
    text-decoration: none;
}

.history a:hover { color: #C47500; text-decoration: underline; }

.history .sep {
    flex: 0 0 auto;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1;
}

.history .is-current {
    color: var(--text-primary);
    font-weight: 600;
}

.tabs .tabContent.hidden { display: none !important; }

.flashMessage {
    background-color: var(--blue-200);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 4px;
    width: 100%;
    margin: 15px 0;
}

.flashMessage button {
    border: 0;
    margin-left: auto;
    background-color: transparent;
    cursor: pointer;
    font-size: 20px;
}

.flashMessage svg { min-width: 12px; min-height: 12px; }
.flashMessage.flashMessagedanger { background-color: var(--yelow-100); }
.flashMessage.flashMessagesuccess { background-color: #D0E8C0; }
.flashMessage.flashMessagesuccess svg,
.flashMessage.flashMessagesuccess i { fill: var(--surface-green); color: var(--surface-green); }

.grayBox {
    padding: 32px;
    border-radius: 16px;
    background-color: var(--surface-smoke);
}

/* =========================================================
   10. KEYFRAMES (Animácie)
   ========================================================= */
@keyframes stateFadeIn {
    from { opacity: 0; transform: scale(0.92) translateY(3px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes progressBg {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

@keyframes popupFadeIn {
    from { opacity: 0; transform: translate(-50%, 8px) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes popupFadeOut {
    from { opacity: 1; transform: translate(-50%, 0) scale(1); }
    to { opacity: 0; transform: translate(-50%, 4px) scale(0.95); }
}

@keyframes cart-button-spin {
    to { transform: rotate(360deg); }
}

@keyframes popup-slide-up {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}


@media screen and (max-width: 767px) {
   .searchResultsWrapp.modern-popup .badges-stacked{
        display: flex;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
        pointer-events: none;
    }
}



/* =========================================================
   11. VÝZVA PRE NEPRIHLÁSENÉHO (.guest-notice)
   Markup: Common/guestNotice.latte (výpis, detail produktu, košík).
   Tlačidlá `.reg-btn` sa reuse-ujú z auth.css (načítava sa globálne).
   ========================================================= */
.guest-notice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin: 0 0 20px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid rgba(243, 146, 0, 0.4);
    border-radius: 16px;
}

.guest-notice__text {
    flex: 1 1 320px;
    min-width: 0;
}

.guest-notice__text strong {
    display: block;
    margin-bottom: 4px;
    font-family: 'VolteSemibold', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
}

.guest-notice__text p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.guest-notice__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex-shrink: 0;
}

/* Detail produktu: zvislý box na mieste nákupného stĺpca, tlačidlá na celú šírku */
.guest-notice--box {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 22px 24px;
    background: #fff8ee;
}

.guest-notice--box .guest-notice__text { flex: 0 0 auto; }
.guest-notice--box .guest-notice__text strong { font-size: 17px; }
.guest-notice--box .guest-notice__actions .reg-btn { flex: 1 1 0; }

/* Mobil: tlačidlá na celú šírku — palec ich trafí spoľahlivejšie. */
@media (max-width: 575px) {
    .guest-notice__actions {
        width: 100%;
    }

    .guest-notice__actions .reg-btn {
        flex: 1 1 100%;
    }
}
