/* =========================================================================
   PlotyGabiony — storefront theme (dark + orange), zladené s referenčným
   dizajnom ploty-gabiony.xandraone.com. Cieli na nové template triedy.
   Fonty: Space Grotesk (UI), Instrument Serif (nadpisy/ceny).
   ========================================================================= */

@font-face {
    font-family: 'Space Grotesk';
    src: url('/assets/fonts/SpaceGrotesk-Variable.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Serif';
    src: url('/assets/fonts/InstrumentSerif-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Instrument Serif';
    src: url('/assets/fonts/InstrumentSerif-Italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg:        #0a0a0a;
    --bg-elev:   #161616;
    --bg-card:   #1a1a1a;
    --bg-card-2: #202020;
    --text:      #f4f4f4;
    --text-dim:  #a3a3a3;
    --text-mut:  #6f6f6f;
    --primary:   #ff4d00;
    --primary-h: #e64500;
    --on-primary:#ffffff;
    --success:   #34c759;
    --border:    rgba(255, 255, 255, 0.10);
    --border-2:  rgba(255, 255, 255, 0.16);
    --radius:    8px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --maxw:      1280px;
    --font-ui:   'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Instrument Serif', Georgia, 'Times New Roman', serif;
    --shadow:    0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ─── Light téma (prepínateľná cez html[data-theme="light"]) ─────────────── */
html[data-theme="light"] {
    --bg:        #f4f5f7;
    --bg-elev:   #ffffff;
    --bg-card:   #ffffff;
    --bg-card-2: #eef0f3;
    --text:      #16181d;
    --text-dim:  #4a4f59;
    --text-mut:  #858b96;
    --border:    rgba(0, 0, 0, 0.10);
    --border-2:  rgba(0, 0, 0, 0.18);
    --shadow:    0 10px 30px rgba(0, 0, 0, 0.10);
}
/* svetlé prepisy pre tvrdo-tmavé plochy */
html[data-theme="light"] .topbar { background: #16181d; }
/* Pás ostáva tmavý aj v light téme → text musí byť svetlý (inak tmavý --text-dim splynie s pozadím). */
html[data-theme="light"] .topbar__item { color: rgba(255, 255, 255, 0.82); }
html[data-theme="light"] .site-header { background: #ffffff; }
html[data-theme="light"] .site-footer, html[data-theme="light"] footer { background: #eef0f3; }
html[data-theme="light"] .admin-sidebar { background: #ffffff; }
html[data-theme="light"] .hero, html[data-theme="light"] .page-hero,
html[data-theme="light"] .admin-login { background: radial-gradient(120% 90% at 50% -10%, #ffe9dd 0%, var(--bg) 55%); }
html[data-theme="light"] .trace-block, html[data-theme="light"] .admin-logo small { color: var(--text-dim); }
html[data-theme="light"] .product-detail__gallery, html[data-theme="light"] .product-card__image-link { background: #eef0f3; }
/* accent hero ostáva oranžový aj v light (biely text naň sedí) — inak ho .page-hero override prepíše na svetlo */
html[data-theme="light"] .page-hero--accent { background: var(--primary); }

/* theme toggle button */
.theme-toggle { background: transparent; border: 1px solid var(--border-2); color: var(--text-dim); width: 38px; height: 38px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; transition: all .15s ease; }
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle .theme-toggle__sun { display: inline; }
html[data-theme="light"] .theme-toggle .theme-toggle__moon { display: none; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--text); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.12; letter-spacing: .2px; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: 1.5rem; }

p { margin: 0 0 1rem; color: var(--text-dim); }
strong { color: var(--text); }
small { color: var(--text-mut); }

::selection { background: var(--primary); color: #fff; }

/* ─── Layout ─────────────────────────────────────────────────────────────── */

#main-content { min-height: 60vh; }

#main-content > div,
.page-eshop, .page-cart, .page-account, .page-wishlist, .page-compare,
.product-detail-page, .page-static {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 24px 64px;
}
.product-detail { max-width: var(--maxw); margin: 0 auto; }

/* ─── Buttons ────────────────────────────────────────────────────────────── */

.btn, button[type="submit"], .add-to-cart-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-ui); font-size: .98rem; font-weight: 600; line-height: 1;
    padding: 14px 28px; border-radius: var(--radius); border: 1px solid transparent;
    background: var(--primary); color: var(--on-primary); cursor: pointer;
    transition: background .15s ease, transform .05s ease, border-color .15s ease;
    text-align: center;
}
.btn:hover, button[type="submit"]:hover, .add-to-cart-btn:hover { background: var(--primary-h); color: #fff; }
.btn:active, .add-to-cart-btn:active { transform: translateY(1px); }

.btn--ghost, .btn--secondary, .btn--outline {
    background: transparent; color: var(--text); border-color: var(--border-2);
}
.btn--ghost:hover, .btn--secondary:hover, .btn--outline:hover {
    background: rgba(255,77,0,.10); color: var(--primary); border-color: var(--primary);
}
.btn--danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn--danger:hover { background: #b91c1c; color: #fff; border-color: #b91c1c; }
.btn--danger-outline { background: transparent; color: #ef4444; border-color: #ef4444; }
html[data-theme="light"] .btn--danger-outline { color: #c81e1e; border-color: #d64545; }
.btn--danger-outline:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn--block { display: flex; width: 100%; }
.btn--large { padding: 16px 36px; font-size: 1.05rem; }
.btn--disabled, .btn:disabled, button:disabled {
    background: var(--bg-card-2); color: var(--text-mut); cursor: not-allowed; border-color: transparent;
}

/* malé ikonové toggle (wishlist/compare) */
.icon-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: transparent; color: var(--text-dim);
    border: 1px solid var(--border-2); border-radius: var(--radius);
    padding: 8px 12px; font-family: var(--font-ui); font-size: .85rem; cursor: pointer;
    transition: all .15s ease;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); background: rgba(255,77,0,.08); }
.icon-btn.is-active { color: var(--primary); border-color: var(--primary); background: rgba(255,77,0,.08); }

/* ─── Top marquee bar ────────────────────────────────────────────────────── */

.topbar { background: #000; overflow: hidden; border-bottom: 1px solid var(--border); }
.topbar__track { display: inline-flex; align-items: center; white-space: nowrap; padding: 8px 0; animation: marquee 32s linear infinite; }
.topbar__item { color: var(--text-dim); font-size: .8rem; letter-spacing: .3px; padding: 0 14px; }
.topbar__star { color: var(--primary); font-size: .7rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─── Header ──────────────────────────────────────────────────────────────── */

.site-header {
    background: var(--bg); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.header-main { max-width: var(--maxw); margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header-nav { display: flex; gap: 26px; }
.header-icons { display: flex; align-items: center; gap: 6px; }
.site-brand { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: .3px; }
.site-brand__primary { color: var(--text); }
.site-brand__accent { color: var(--primary); }
.header-nav a { color: var(--text-dim); font-weight: 500; }
.header-nav a:hover { color: var(--primary); }
.header-icon { position: relative; color: var(--text-dim); display: inline-flex; padding: 8px; border-radius: 50%; }
.header-icon:hover { color: var(--primary); background: rgba(255,255,255,.05); }
.icon-count {
    position: absolute; top: -2px; right: -2px;
    background: var(--primary); color: #fff; font-size: .68rem; font-weight: 600;
    min-width: 17px; height: 17px; border-radius: 9px; display: flex;
    align-items: center; justify-content: center; padding: 0 4px; font-family: var(--font-ui);
}
.search-toggle { background: transparent; border: 0; color: var(--text-dim); cursor: pointer; }
.search-toggle:hover { color: var(--primary); }

/* search bar */
.header-search-bar { background: var(--bg-elev); border-bottom: 1px solid var(--border); }
.header-search-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
    display: flex; gap: 10px; position: relative;
}
#header-search-input {
    flex: 1; background: #fff; color: #111; border: 0; border-radius: var(--radius);
    padding: 13px 16px; font-family: var(--font-ui); font-size: 1rem;
}
.search-close { background: var(--primary); color: #fff; border: 0; border-radius: var(--radius); width: 46px; font-size: 1.2rem; cursor: pointer; }
.search-results-dropdown {
    position: absolute; top: calc(100% + 6px); left: 24px; right: 24px;
    background: var(--bg-card); border: 1px solid var(--border-2); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; z-index: 120;
}
.search-result-item { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: var(--bg-card-2); }
.search-result-price { color: var(--primary); font-weight: 600; white-space: nowrap; }
.search-result-empty { padding: 14px 16px; color: var(--text-mut); }

/* ─── Hero / sekcie ──────────────────────────────────────────────────────── */

.hero, .page-hero, .home-hero {
    text-align: center; padding: 80px 24px 64px;
    background: radial-gradient(120% 90% at 50% -10%, #1c1208 0%, var(--bg) 55%);
    border-bottom: 1px solid var(--border);
}
.hero h1, .page-hero h1 { margin-bottom: 18px; }
.hero p { max-width: 640px; margin: 0 auto 28px; font-size: 1.1rem; }
.hero em, h1 em, h2 em { color: var(--primary); font-style: italic; }

.section-title, .home h2 { text-align: center; margin-bottom: 32px; }

/* inner page hero (o-nas, akcie, kalkulacka, kontakt) */
.page-static, .page-akcie, .page-onas, .page-kalkulacka { max-width: var(--maxw); margin: 0 auto; padding: 0 24px 64px; }
.page-hero--inner { padding: 56px 24px 40px; margin: 0 -24px 8px; }
.page-hero--inner h1 { margin-bottom: 14px; }
.page-hero--inner p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.section { padding: 36px 0; border-bottom: 1px solid var(--border); }
.section:last-of-type { border-bottom: 0; }
.section > h2 { margin-bottom: 18px; }

/* právne stránky (obchodné podmienky, GDPR, reklamácie) — užšia prose šírka */
.page-static.page-legal { max-width: 840px; }
.page-legal .section { padding: 28px 0; }
.page-legal .section > h2 { font-size: 1.25rem; margin-bottom: 12px; }
.page-legal .section p { line-height: 1.7; color: var(--text-dim); margin-bottom: 12px; }
.page-legal .section p:last-child { margin-bottom: 0; }
.page-legal .section p strong, .page-legal .legal-list li strong { color: var(--text); }
.page-legal .legal-list { margin: 4px 0 12px; padding-left: 22px; }
.page-legal .legal-list li { margin-bottom: 9px; color: var(--text-dim); line-height: 1.6; }
.page-legal .legal-list li:last-child { margin-bottom: 0; }
.page-legal .info-table { margin: 6px 0 4px; }
.page-legal .cta-banner { margin-top: 8px; }

/* feature grid (o-nas, home) */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 22px; text-align: center; }
.feature-card__icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,77,0,.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.feature-card h3 { font-family: var(--font-ui); font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { margin: 0; font-size: .92rem; }

/* recenzie zákazníkov */
.section-lead { color: var(--text-mut); margin: -6px 0 22px; max-width: 640px; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.testimonial-card__stars { color: var(--primary); letter-spacing: 2px; font-size: 1.05rem; }
.testimonial-card blockquote { margin: 0; font-size: .98rem; line-height: 1.6; color: var(--text-dim); }
.testimonial-card figcaption { display: flex; flex-direction: column; margin-top: auto; }
.testimonial-card figcaption strong { font-family: var(--font-ui); }
.testimonial-card figcaption span { color: var(--text-mut); font-size: .85rem; }

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq-item > summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-ui); font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: '+'; color: var(--primary); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq-item[open] > summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 22px 20px; color: var(--text-dim); line-height: 1.7; }
.faq-item__body p { margin: 0; }

/* info tabuľka (doprava) */
.info-table { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin: 18px 0; max-width: 640px; }
.info-table__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.info-table__row:last-child { border-bottom: none; }
.info-table__row span { color: var(--text-dim); }

/* oranžový CTA banner */
.cta-banner { background: var(--primary); border-radius: var(--radius-xl); padding: 48px 32px; text-align: center; margin: 48px 0 16px; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.92); max-width: 620px; margin: 0 auto 24px; }
.cta-banner__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: #f1f1f1; color: var(--primary-h); }
.btn--outline-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

/* fence-calc iframe embed (legacy) */
.fence-calc { max-width: 920px; margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.fence-calc iframe { display: block; width: 100%; min-height: 840px; border: 0; background: #fff; }
.page-hero--accent { background: var(--primary); }
.page-hero--accent h1, .page-hero--accent p { color: #fff; }
.page-hero--accent em { color: #fff; }

/* kalkulačky — rozcestník (plán 043) */
.calc-choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 860px; margin: 0 auto; }
.calc-choice__card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 28px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s, box-shadow .15s; }
.calc-choice__card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
.calc-choice__card--primary { border-color: var(--primary); }
.calc-choice__icon { font-size: 2.6rem; line-height: 1; }
.calc-choice__card h2 { font-family: var(--font-head); margin: 0; font-size: 1.4rem; }
.calc-choice__card p { margin: 0; color: var(--text-dim); font-size: .94rem; }
.calc-choice__card .btn { margin-top: 8px; }
.calc-choice__badge { position: absolute; top: 14px; right: 14px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .4px; }

/* kalkulačka — výpočtové iframe plátno (náhrada .fence-calc) */
.calculator-embed { max-width: var(--maxw); margin: 0 auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.calculator-embed iframe { display: block; width: 100%; min-height: 840px; border: 0; background: #fff; }
.page-hero__eyebrow { margin: 0 0 6px; }
.page-hero__eyebrow a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }
.page-hero__eyebrow a:hover { color: #fff; text-decoration: underline; }
.calc-unavailable { max-width: 640px; margin: 0 auto; text-align: center; padding: 40px 24px; border: 1px dashed var(--border); border-radius: var(--radius-lg); color: var(--text-dim); }

/* kalkulačka (legacy quick-calc) */
.calc-card { max-width: 560px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; }
.calc-card input[type="range"] { width: 100%; accent-color: var(--primary); }
.calc-result { text-align: center; margin: 24px 0 10px; padding: 20px; background: var(--bg-card-2); border-radius: var(--radius); }
.calc-result__label { color: var(--text-mut); font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.calc-price { font-family: var(--font-head); color: var(--primary); font-size: 2.2rem; margin-top: 6px; }
.calc-price span { font-size: 1.4rem; }
.calc-note { font-size: .85rem; color: var(--text-mut); text-align: center; }

/* hero stats */
.hero-stats { display: flex; gap: 40px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.hero-stat__num { font-family: var(--font-head); font-size: 2.2rem; color: var(--text); }
.hero-stat__label { color: var(--text-mut); font-size: .85rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,77,0,.12); color: var(--primary); border: 1px solid rgba(255,77,0,.3); border-radius: 999px; padding: 7px 16px; font-size: .82rem; margin-bottom: 22px; }

/* home page */
.page-home .section, .page-home .features-row, .page-home .cta-banner { max-width: var(--maxw); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.page-home .section { border-bottom: 0; padding-top: 56px; padding-bottom: 28px; }
.page-home .features-row { padding: 28px 24px 56px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-label { display: inline-block; color: var(--primary); font-size: .78rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.section-head p { margin-top: 6px; }
.text-center { text-align: center; margin-top: 28px; }

/* ─── Produktová mriežka + karty ─────────────────────────────────────────── */

.product-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px; margin-top: 8px;
}
.product-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow); }
.product-card__image-link { position: relative; display: block; aspect-ratio: 4 / 3; background: #f4f4f4; }
.product-card__image-link img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder { width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #ececec, #ececec 12px, #e2e2e2 12px, #e2e2e2 24px); }
.product-card__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-card__name { font-family: var(--font-head); font-size: 1.25rem; margin: 0; line-height: 1.15; }
.product-card__name a { color: var(--text); }
.product-card__name a:hover { color: var(--primary); }
.product-card__price, .product-card .price { font-weight: 600; color: var(--primary); font-size: 1.15rem; font-family: var(--font-head); }
.price--original { color: var(--text-mut); text-decoration: line-through; font-size: .95rem; margin-left: 8px; font-family: var(--font-ui); font-weight: 400; }
.product-card .add-to-cart-btn { margin-top: auto; }
.product-card__actions { display: flex; gap: 8px; }
.product-card__actions .icon-btn { flex: 1; justify-content: center; }

.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; font-family: var(--font-ui); }
.badge--out { background: #333; color: #fff; }
.badge--featured { background: var(--primary); color: #fff; }
.badge--sale { background: #e63946; color: #fff; }
.price--sale { color: var(--primary); }

.product-count { color: var(--text-mut); font-size: .9rem; }
.no-products { color: var(--text-dim); padding: 40px 0; }

/* ─── Eshop layout (sidebar + main) ──────────────────────────────────────── */

.eshop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.eshop-sidebar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; position: sticky; top: 90px; }
.eshop-sidebar h2, .eshop-sidebar h3 { font-size: 1.1rem; margin-bottom: 14px; }
.category-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.category-list a { display: block; padding: 9px 12px; border-radius: var(--radius); color: var(--text-dim); }
.category-list a:hover, .category-list a.active { background: rgba(255,77,0,.10); color: var(--primary); }
.eshop-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 8px; }

/* kategória-dlaždice (/produkty) */
.eshop-hero { margin-bottom: 0; }
.cat-tiles-section { padding: 8px 0 44px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.cat-tile { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; transition: transform .18s ease, border-color .18s ease; }
.cat-tile:hover { transform: translateY(-4px); border-color: var(--primary); }
.cat-tile__icon { width: 46px; height: 46px; border-radius: var(--radius); background: rgba(255,77,0,.12); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 14px; }
.cat-tile h3 { font-family: var(--font-ui); font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.cat-tile p { margin: 0; font-size: .88rem; color: var(--text-dim); }
.cat-tile--accent { background: var(--primary); border-color: var(--primary); }
.cat-tile--accent:hover { background: var(--primary-h); }
.cat-tile--accent .cat-tile__icon { background: rgba(255,255,255,.2); color: #fff; }
.cat-tile--accent h3 { color: #fff; }
.cat-tile--accent p { color: rgba(255,255,255,.9); }

/* ─── Detail produktu ────────────────────────────────────────────────────── */

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 40px 24px; }
.product-detail__gallery { background: #f4f4f4; border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.product-detail__gallery .product-main-image { max-height: 460px; width: 100%; object-fit: contain; }
.product-thumbs { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; width: 100%; }
.product-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm, 8px); overflow: hidden; cursor: pointer; background: #fff; transition: border-color .15s; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumb:hover { border-color: rgba(255,77,0,.5); }
.product-thumb.is-active { border-color: var(--primary); }
.product-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 10px; }
.product-sku { color: var(--text-mut); font-size: .85rem; margin-bottom: 14px; }
.product-price { font-family: var(--font-head); color: var(--primary); font-size: 2.4rem; margin: 6px 0 16px; }
.product-stock { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.product-stock--in { background: rgba(52,199,89,.12); color: var(--success); }
.product-stock--out { background: rgba(255,77,0,.12); color: var(--primary); }
.product-short-desc { color: var(--text-dim); margin-bottom: 22px; }
.product-variations { margin-bottom: 18px; }
.product-variations select, .qty-input, #qty-input, .cart-qty-input, input[type="number"], select[name="variation_id"] {
    background: var(--bg-card-2); color: var(--text); border: 1px solid var(--border-2);
    border-radius: var(--radius); padding: 11px 12px; font-family: var(--font-ui); font-size: 1rem;
}
.product-add-to-cart { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.product-add-to-cart .qty-input, #qty-input { width: 84px; text-align: center; }
.product-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── Košík ──────────────────────────────────────────────────────────────── */

.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
.cart-empty { text-align: center; padding: 60px 0; }
.free-shipping-bar { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; }
.free-shipping-bar__msg { margin: 0 0 10px; color: var(--text-dim); font-size: .92rem; }
.free-shipping-bar__msg--done { color: var(--success); }
.free-shipping-bar__track { height: 6px; background: var(--bg-card-2); border-radius: 999px; overflow: hidden; }
.free-shipping-bar__fill { height: 100%; background: var(--primary); }
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table thead th { text-align: left; color: var(--text-mut); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.cart-item td { padding: 16px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item__name { color: var(--text); font-weight: 500; }
.cart-item__sku { display: block; color: var(--text-mut); font-size: .78rem; margin-top: 2px; }
.cart-qty-input { width: 72px; text-align: center; }
.cart-remove-btn { background: transparent; border: 1px solid var(--border-2); color: var(--text-dim); width: 34px; height: 34px; border-radius: var(--radius); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.cart-remove-btn:hover { border-color: var(--primary); color: var(--primary); }
.cart-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: sticky; top: 90px; }
.cart-summary h3 { margin-bottom: 16px; }
.cart-summary__row { display: flex; justify-content: space-between; padding: 8px 0; color: var(--text-dim); }
.cart-summary__row--total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 14px; color: var(--text); font-size: 1.2rem; font-weight: 600; }
.cart-summary__row--total span:last-child { color: var(--primary); font-family: var(--font-head); }
.cart-summary__row--discount span:last-child { color: #34c759; }
.cart-summary .btn { margin-top: 14px; }
.cart-coupon { margin: 12px 0; padding: 12px 0; border-top: 1px dashed var(--border); }
.cart-coupon__form { display: flex; gap: 8px; }
.cart-coupon__form input { flex: 1; min-width: 0; }
.cart-coupon__form .btn { margin-top: 0; white-space: nowrap; }
.cart-coupon__applied { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #34c759; }
.cart-coupon__remove { background: none; border: none; color: var(--text-mut); cursor: pointer; text-decoration: underline; font-size: .85rem; }
.cart-coupon__remove:hover { color: var(--primary); }
.cart-coupon__msg { margin: 0 0 10px; font-size: .88rem; }
.cart-coupon__msg--ok { color: #34c759; }
.cart-coupon__msg--err { color: #ff6b6b; }

/* ─── Formuláre / auth / checkout ────────────────────────────────────────── */

.auth-box, .checkout-fields, .account-content, .quote-form {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
}
.page-login, .page-account.page-login { max-width: 460px; }
.form-group { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-group label, label { color: var(--text-dim); font-size: .88rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
input[type="text"], input[type="email"], input[type="password"], input[type="tel"], input[type="search"], textarea, select {
    background: var(--bg-card-2); color: var(--text); border: 1px solid var(--border-2);
    border-radius: var(--radius); padding: 12px 14px; font-family: var(--font-ui); font-size: 1rem; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--primary); }
.form-errors, .checkout-errors, #login-errors, #register-errors { background: rgba(255,77,0,.10); border: 1px solid rgba(255,77,0,.4); color: #ffb59a; border-radius: var(--radius); padding: 12px 14px; margin-bottom: 16px; }
.auth-alt { color: var(--text-dim); margin-top: 16px; }
.checkout-grid, .checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }

/* kontakt */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; }
.contact-info { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.contact-info h3 { font-family: var(--font-ui); font-size: .9rem; text-transform: uppercase; letter-spacing: .5px; margin: 24px 0 12px; color: var(--text); }
.contact-list { list-style: none; margin: 16px 0 0; padding: 0; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; color: var(--text-dim); }
.contact-list__icon { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; background: rgba(255,77,0,.1); border-radius: 50%; }
.contact-social { display: flex; gap: 10px; }
.contact-social a { padding: 8px 14px; border: 1px solid var(--border-2); border-radius: var(--radius); font-size: .88rem; }
.contact-social a:hover { border-color: var(--primary); }
.gdpr-note { font-size: .82rem; color: var(--text-mut); }

/* ─── Účet ───────────────────────────────────────────────────────────────── */

.account-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.account-nav { display: flex; flex-direction: column; gap: 4px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; }
.account-nav a { padding: 10px 14px; border-radius: var(--radius); color: var(--text-dim); }
.account-nav a:hover { background: rgba(255,77,0,.10); color: var(--primary); }

/* ─── Tabuľky (objednávky, faktúry, porovnanie, admin) ───────────────────── */

.orders-table, .admin-table, .compare-table { width: 100%; border-collapse: collapse; }
.orders-table th, .admin-table th, .compare-table th { text-align: left; color: var(--text-mut); font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; padding: 12px; border-bottom: 1px solid var(--border); }
.orders-table td, .admin-table td, .compare-table td { padding: 14px 12px; border-bottom: 1px solid var(--border); color: var(--text-dim); }
.compare-table th a { color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer, footer.wp-block-template-part, footer {
    background: #0c0c0c; border-top: 1px solid var(--border); color: var(--text-dim);
    margin-top: 64px;
}
.site-footer .footer-inner, footer .footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px 24px 36px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-col--brand .footer-brand { font-family: var(--font-head); font-size: 1.5rem; display: inline-block; margin-bottom: 14px; }
.footer-contact { list-style: none; margin: 0; padding: 0; }
.footer-contact li { color: var(--text-dim); padding: 3px 0; font-size: .92rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; }
.site-footer h3, footer h3, footer h4 { color: var(--text); font-family: var(--font-ui); font-size: .82rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 14px; }
.site-footer a, footer a { color: var(--text-dim); display: inline-block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover, footer a:hover { color: var(--primary); }
.footer-copyright { text-align: center; color: var(--text-mut); border-top: 1px solid var(--border); margin-top: 40px; padding-top: 24px; font-size: .85rem; }
/* Jednotný footer bar (storefront + admin + login + setup) */
.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 18px 24px; font-size: .8rem; color: var(--text-mut); border-top: 1px solid var(--border); }
.footer-copy { opacity: .9; }
.footer-meta { display: inline-flex; align-items: center; gap: 14px; }
.footer-version { opacity: .6; font-variant-numeric: tabular-nums; cursor: help; }
.powered-by { display: inline-flex; align-items: center; gap: 6px; color: var(--text-mut); padding: 0; white-space: nowrap; }
.powered-by:hover { color: var(--text); }
.powered-by img { height: 18px; width: auto; display: block; }

/* floating help button */
.help-fab {
    position: fixed; bottom: 22px; right: 22px; z-index: 200;
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff !important; font-weight: 600; font-size: .9rem;
    padding: 12px 18px; border-radius: 999px; box-shadow: var(--shadow);
    transition: background .15s ease, transform .15s ease;
}
.help-fab:hover { background: var(--primary-h); color: #fff !important; transform: translateY(-2px); }

/* chatbot widget */
.chatbot {
    position: fixed; bottom: 84px; right: 22px; z-index: 250;
    width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: calc(100vh - 130px);
    background: var(--bg-card); border: 1px solid var(--border-2); border-radius: var(--radius-lg);
    box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
    opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.chatbot.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chatbot__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--primary); color: #fff; }
.chatbot__title { display: flex; align-items: center; gap: 10px; font-size: .9rem; line-height: 1.25; }
.chatbot__avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.chatbot__status { font-size: .72rem; opacity: .9; }
.chatbot__min { background: transparent; border: 0; color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.chatbot__messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.chat-message { display: flex; gap: 8px; max-width: 85%; }
.chat-message.user { align-self: flex-end; flex-direction: row-reverse; }
.message-avatar { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--bg-card-2); display: flex; align-items: center; justify-content: center; font-size: .9rem; }
.message-content { background: var(--bg-card-2); border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; }
.chat-message.user .message-content { background: var(--primary); border-color: var(--primary); color: #fff; }
.message-content p { margin: 0; font-size: .9rem; color: inherit; }
.message-content a { color: var(--primary); }
.chat-message.user .message-content a { color: #fff; text-decoration: underline; }
.message-time { font-size: .68rem; color: var(--text-mut); margin-top: 3px; display: block; }
.chat-quick-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.quick-action { background: transparent; border: 1px solid var(--border-2); color: var(--text-dim); border-radius: 999px; padding: 7px 12px; font-size: .8rem; cursor: pointer; transition: all .15s ease; }
.quick-action:hover { border-color: var(--primary); color: var(--primary); }
.chatbot__input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); }
.chatbot__input input { flex: 1; background: var(--bg-card-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 10px 14px; color: var(--text); }
.chatbot__input button { background: var(--primary); color: #fff; border: 0; width: 42px; border-radius: 50%; cursor: pointer; font-size: .9rem; }
.chatbot__input button:hover { background: var(--primary-h); }
.typing-indicator { display: flex; gap: 4px; padding: 10px 14px; }
.typing-indicator span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-mut); animation: typing 1s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }

.nav-toggle { display: none; }
@media (max-width: 980px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .nav-toggle { display: inline-flex; }
    /* hamburger vľavo: hamburger + logo zostanú vľavo, ikony vpravo */
    .site-brand { margin-right: auto; }
    /* Navigácia ako rozbaľovacie menu pod hlavičkou */
    .header-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0;
        background: var(--bg-elev); border-top: 1px solid var(--border);
        box-shadow: var(--shadow); padding: 6px 0; z-index: 60;
    }
    .header-nav.is-open { display: flex; }
    .header-nav a { padding: 13px 24px; }
    .header-nav a:hover { background: rgba(255,77,0,.08); color: var(--primary); }
}
/* Úzke obrazovky — stesnenie hlavičky, skrytie menej dôležitých ikon */
@media (max-width: 560px) {
    .header-main { padding: 12px 14px; gap: 10px; }
    .site-brand { font-size: 1.2rem; }
    .header-icons { gap: 1px; }
    .header-icon { padding: 6px; }
    .compare-icon { display: none; }
}
@media (max-width: 400px) {
    .wishlist-icon { display: none; }
}

/* ─── Toast / notifikácie ────────────────────────────────────────────────── */

.toast {
    position: fixed; bottom: 24px; right: 24px; z-index: 9999;
    background: var(--bg-card-2); color: var(--text); border: 1px solid var(--border-2);
    border-left: 3px solid var(--primary); border-radius: var(--radius);
    padding: 14px 18px; box-shadow: var(--shadow); display: flex; gap: 14px; align-items: center;
    transform: translateY(20px); opacity: 0; transition: all .25s ease;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left-color: var(--success); }
.toast-close { background: transparent; border: 0; color: var(--text-mut); cursor: pointer; font-size: 1.1rem; }

/* breadcrumbs */
.breadcrumb, .breadcrumbs { color: var(--text-mut); font-size: .85rem; padding: 16px 0; }
.breadcrumb a, .breadcrumbs a { color: var(--text-dim); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .eshop-layout, .cart-layout, .product-detail, .account-layout, .checkout-grid, .checkout-layout, .contact-layout { grid-template-columns: 1fr; }
    /* deti collapsed gridov musia môcť zúžiť pod šírku obsahu (inak tabuľka roztiahne stĺpec nad obrazovku) */
    .eshop-layout > *, .cart-layout > *, .product-detail > *, .account-layout > *, .checkout-grid > *, .checkout-layout > *, .contact-layout > * { min-width: 0; }
    .cart-table, .orders-table, .compare-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .cart-summary { position: static; }
    .form-row { grid-template-columns: 1fr; }

    /* Kategórie ako kompaktný horizontálny pruh namiesto dlhého zvislého zoznamu nad produktmi */
    .eshop-sidebar { position: static; padding: 10px 12px; }
    .eshop-sidebar h3 { display: none; }
    .category-list { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 0; margin: 0; }
    .category-list li { flex: 0 0 auto; }
    .category-list li a { display: block; white-space: nowrap; padding: 8px 14px; border: 1px solid var(--border-2); border-radius: 999px; font-size: .88rem; }
    .category-list li a.active { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
    /* /produkty/ už má dlaždice kategórií → vedľajší zoznam je nadbytočný */
    .cat-tiles-section ~ .eshop-layout .eshop-sidebar { display: none; }
}

/* Pätička na mobile — kompaktná: brand navrchu, menu sekcie v 2 stĺpcoch */
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; text-align: center; }
    .footer-col--brand { grid-column: 1 / -1; }
    .site-footer .footer-inner, footer .footer-inner { padding: 34px 18px 24px; }
    .footer-col--brand .footer-brand { font-size: 1.6rem; margin-bottom: 10px; }
    .footer-contact li { padding: 2px 0; }
    .footer-menu li { padding: 3px 0; }
    .site-footer h4, footer h4 { margin-bottom: 8px; }
    .footer-copyright { margin-top: 22px; padding-top: 18px; }
}

/* ── Lead-capture okno pre nového návštevníka (plán 024) ───────────────────── */
.lead-popup { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.62); padding: 20px; }
.lead-popup.is-open { display: flex; animation: leadFade .25s ease; }
@keyframes leadFade { from { opacity: 0; } to { opacity: 1; } }
.lead-popup__box { position: relative; background: var(--bg-card, #141414); color: var(--text); border: 1px solid var(--border-2); border-radius: 14px; max-width: 420px; width: 100%; padding: 34px 28px 26px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lead-popup__close { position: absolute; top: 8px; right: 14px; background: none; border: none; color: var(--text-dim); font-size: 26px; line-height: 1; cursor: pointer; }
.lead-popup__close:hover { color: var(--primary); }
.lead-popup__title { margin: 0 0 8px; font-size: 1.5rem; color: var(--primary); }
.lead-popup__text { color: var(--text-dim); margin: 0 0 18px; line-height: 1.5; }
.lead-popup__form { display: flex; gap: 8px; flex-wrap: wrap; }
.lead-popup__form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--bg-card-2, #1c1c1c); color: var(--text); }
.lead-popup__form .btn { white-space: nowrap; }
.lead-popup__msg { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.lead-popup__msg--ok { color: #16a34a; }
.lead-popup__msg--err { color: #dc2626; }
.lead-popup__note { color: var(--text-mut); font-size: 12px; margin: 14px 0 0; }
@media (max-width: 480px) { .lead-popup__form { flex-direction: column; } .lead-popup__form .btn { width: 100%; } }

/* ── Heslo: toggle Zobraziť/Skryť + živý checklist podmienok (plán 036) ────── */
.pwd-field { position: relative; }
.pwd-field input { width: 100%; padding-right: 2.75rem; }
.pwd-toggle {
    position: absolute; top: 50%; right: .4rem; transform: translateY(-50%);
    background: none; border: 0; cursor: pointer; padding: .25rem; line-height: 0;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text-mut, #8a8a8a);
}
.pwd-toggle:hover { color: var(--brand-accent, #4a90d9); }
.pwd-toggle svg { display: block; }
.pwd-rules { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pwd-rules li { font-size: .82rem; color: var(--text-dim); display: flex; align-items: center; gap: 7px; transition: color .15s ease; }
.pwd-rules__mark { width: 14px; height: 14px; border: 1px solid var(--border-2, #333); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .6rem; flex: none; transition: all .15s ease; }
.pwd-rules li.is-met { color: var(--success, #34c759); }
.pwd-rules li.is-met .pwd-rules__mark { background: var(--success, #34c759); border-color: var(--success, #34c759); color: #fff; }
.pwd-rules li.is-met .pwd-rules__mark::before { content: "✓"; }
