/* ==========================================================================
   HNEDOBUTÉ.SK — redizajnová vrstva
   ==========================================================================

   Koncept: „skúšobňa". Pneumatika je obuv auta a rozmer je jeho veľkosť.
   Web je preto postavený ako štúdio: veľmi tmavá studená plocha, na nej
   vystrihnutá pneumatika ako exponát, a čisto biele karty, do ktorých
   produktová fotka s bielym pozadím zapadne bez viditeľného švu.

   Farby: petrolejová čerň + biela + svetelná tyrkysová + pálená oranžová
   ako signál. V sieti sesterských e-shopov sa táto kombinácia nenachádza.

   Obrázky sú výrezy pneumatík s alfa kanálom (assets/img/pneu/*.webp),
   takže pri zmene farieb sa nemusia generovať znova.

   Táto vrstva sa načítava ako posledná a nič v pôvodnej téme neprepisuje
   natrvalo. Reverzia = odstrániť enqueue 'hnedobute-redesign' vo functions.php.
   ========================================================================== */

/* ==========================================================================
   1. TOKENY
   ========================================================================== */

:root {
    /* Plochy */
    --hb-ink: #0B1F26;          /* hlavná tmavá plocha */
    --hb-ink-2: #061419;        /* hlbšia tmavá, pásy a pätička */
    --hb-ink-3: #13323B;        /* nadvihnutá tmavá, karty na tmavom */
    --hb-surface: #FFFFFF;      /* karty, produktové fotky doň zapadnú */
    --hb-wash: #EDF2F4;         /* studená výplň sekcie */
    --hb-wash-2: #F6F9FA;       /* jemnejšia výplň */
    --hb-line: #D8E1E4;
    --hb-line-soft: #E7EDEF;
    --hb-line-dark: rgba(234, 243, 245, .16);

    /* Farby */
    --hb-brand: #0E7490;        /* značka, odkazy, hlavné tlačidlo */
    --hb-brand-dark: #0A5568;
    --hb-beam: #22D3EE;         /* akcent, funguje iba na tmavom */
    --hb-signal: #C2410C;       /* výpredaj a zľavy, nič iné */

    /* Text */
    --text-primary: #10222A;
    --text-secondary: #45585F;
    --text-muted: #5B6E75;
    --text-on-dark: #EAF3F5;
    --text-on-dark-soft: rgba(234, 243, 245, .70);

    /* Mapovanie na tokeny pôvodnej témy, aby ju nasledoval aj nedotknutý kód */
    --primary: #0E7490;
    --primary-dark: #0A5568;
    --primary-light: #0F8CAB;
    --primary-rgb: 14, 116, 144;
    --primary-shadow-hover: rgba(14, 116, 144, .28);

    --secondary: #0B1F26;
    --secondary-dark: #061419;
    --secondary-light: #13323B;
    --secondary-rgb: 11, 31, 38;
    --secondary-dark-rgb: 6, 20, 25;

    --accent: #0E7490;
    --accent-dark: #0A5568;
    --accent-light: #22D3EE;
    --accent-rgb: 14, 116, 144;

    --white: #FFFFFF;
    --gray-50: #F6F9FA;
    --gray-100: #EDF2F4;
    --gray-200: #E7EDEF;
    --gray-300: #D8E1E4;
    --gray-400: #AEBEC3;
    --gray-500: #7E9199;
    --gray-600: #5B6E75;
    --gray-700: #45585F;
    --gray-800: #23383F;
    --black: #06141A;

    --success: #0F766E;
    --warning: #B45309;
    --error: #B42318;
    --info: #0E7490;
    --info-rgb: 14, 116, 144;

    --season-summer: #B45309;

    --font-primary: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Familjen Grotesk', 'Manrope', -apple-system, 'Segoe UI', sans-serif;

    /* Ostré hrany, prístrojový pocit */
    --radius-sm: 2px;
    --radius-md: 3px;
    --radius-lg: 4px;
    --radius-xl: 6px;
    --radius-2xl: 8px;
    --radius-full: 9999px;

    --shadow-sm: none;
    --shadow-md: 0 1px 0 rgba(11, 31, 38, .07);
    --shadow-lg: 0 2px 0 rgba(11, 31, 38, .08);
    --shadow-xl: 0 3px 0 rgba(11, 31, 38, .08);
    --shadow-card: inset 0 0 0 1px #D8E1E4;

    /* Hlavička je tmavá, kritické CSS v header.php si to berie odtiaľto */
    --header-bg: #0B1F26;
}

/* ==========================================================================
   2. TYPOGRAFIA
   ========================================================================== */

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: var(--hb-surface);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4,
.section-title, .hero-title, .page-title,
.product_title, .season-card-title, .stat-number {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.08;
    color: var(--text-primary);
}

/* Rozmery a ceny sú údaj, musia byť pod sebou zarovnané */
.price, .amount, .woocommerce-Price-amount,
.stat-number, .hb-size, .hb-num, .hb-count, .hb-dia {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

a { color: var(--hb-brand); }
a:hover { color: var(--hb-brand-dark); }
::selection { background: var(--hb-brand); color: #fff; }

a:focus-visible, button:focus-visible,
select:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--hb-brand);
    outline-offset: 2px;
    border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   3. TLAČIDLÁ
   ========================================================================== */

.btn, .button, .wp-element-button,
.tire-search-submit, .single_add_to_cart_button,
.checkout-button, .nav-sale-btn, .pf-submit, .pf-reset, .wc-backward {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0;
    border-radius: var(--radius-md);
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.btn-primary, .woocommerce .button.alt,
.tire-search-submit, .single_add_to_cart_button, .checkout-button,
.woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce input.button.alt, .woocommerce #respond input#submit.alt,
.product-card-cart .button, .woocommerce .products a.button,
.pf-submit {
    background: var(--hb-brand) !important;
    background-image: none !important;
    color: #fff !important;
    border: 2px solid var(--hb-brand) !important;
    box-shadow: none !important;
    text-shadow: none;
}

.btn-primary:hover, .woocommerce .button.alt:hover,
.tire-search-submit:hover, .single_add_to_cart_button:hover,
.checkout-button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .product-card-cart .button:hover,
.woocommerce .products a.button:hover, .pf-submit:hover {
    background: var(--hb-ink) !important;
    border-color: var(--hb-ink) !important;
    color: #fff !important;
    transform: none !important;
}

.btn-outline, .btn-secondary, .wc-backward, .return-to-shop .button,
.woocommerce .button:not(.alt):not(.add_to_cart_button):not(.single_add_to_cart_button):not(.checkout-button) {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--hb-ink);
    border-radius: var(--radius-md);
}
.btn-outline:hover, .btn-secondary:hover, .wc-backward:hover, .return-to-shop .button:hover,
.woocommerce .button:not(.alt):not(.add_to_cart_button):not(.single_add_to_cart_button):not(.checkout-button):hover {
    background: var(--hb-ink);
    color: #fff;
}

/* ==========================================================================
   4. HLAVIČKA
   ========================================================================== */

.top-bar {
    background: var(--hb-ink-2);
    color: var(--text-on-dark-soft);
    border-bottom: 1px solid var(--hb-line-dark);
}
.top-bar a { color: var(--text-on-dark-soft); }
.top-bar a:hover { color: #fff; }
.top-bar-info span, .top-bar-info a { font-size: 13px; }

.site-header {
    background: var(--hb-ink);
    border-bottom: 1px solid var(--hb-line-dark);
    box-shadow: none;
}

.site-title, .site-title-link {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-on-dark);
}

.nav-menu > li > a,
.main-navigation .nav-menu > li > a {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-on-dark);
    border-radius: 0;
    border-bottom: 3px solid transparent;
    background: transparent !important;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a {
    color: var(--hb-beam);
    border-bottom-color: var(--hb-beam);
    background: transparent !important;
}

.nav-sale-btn {
    background: var(--hb-signal) !important;
    color: #fff !important;
    border: 2px solid var(--hb-signal) !important;
    border-radius: var(--radius-md) !important;
}
.nav-sale-btn:hover {
    background: #fff !important;
    border-color: #fff !important;
    color: var(--hb-ink) !important;
}

.header-action-btn {
    background: transparent !important;
    color: var(--text-on-dark) !important;
    border: 1px solid var(--hb-line-dark) !important;
    border-radius: var(--radius-md) !important;
}
.header-action-btn:hover {
    background: var(--hb-ink-3) !important;
    border-color: var(--hb-beam) !important;
    color: var(--hb-beam) !important;
}
.mini-cart-trigger {
    background: var(--hb-brand) !important;
    color: #fff !important;
    border: 2px solid var(--hb-brand) !important;
    border-radius: var(--radius-md) !important;
}
.mini-cart-trigger:hover {
    background: var(--hb-beam) !important;
    border-color: var(--hb-beam) !important;
    color: var(--hb-ink) !important;
}
.cart-count {
    background: var(--hb-beam);
    color: var(--hb-ink);
    border-radius: 2px;
    font-weight: 800;
}
.mobile-menu-toggle { color: var(--text-on-dark); }

.dropdown-menu, .sub-menu {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 28px rgba(11, 31, 38, .16);
}
.dropdown-menu a, .sub-menu a { color: var(--text-primary); }

/* ==========================================================================
   5. HERO — štúdio: tmavá plocha, vľavo hľadanie, vpravo exponát
   ========================================================================== */

.hero-section {
    position: relative;
    background: var(--hb-ink);
    background-image:
        radial-gradient(90% 120% at 76% 42%, #16404C 0%, rgba(22, 64, 76, 0) 62%),
        linear-gradient(180deg, var(--hb-ink) 0%, var(--hb-ink-2) 100%);
    border-bottom: 4px solid var(--hb-brand);
    overflow: hidden;
}
.hero-background, .hero-overlay { display: none !important; }
.hero-section::after { content: none; }

.hero-section > .container,
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* jemná mriežka, aby tmavá plocha nebola mŕtva */
.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(234, 243, 245, .045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(234, 243, 245, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    pointer-events: none;
    z-index: 0;
}

.hero-content {
    text-align: left;
    max-width: 700px;
    padding: 76px 0 70px;
}

.hb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .10em;
    text-transform: uppercase;
    color: var(--hb-beam);
    background: rgba(34, 211, 238, .10);
    border: 1px solid rgba(34, 211, 238, .34);
    border-radius: 2px;
    padding: 7px 12px;
    margin-bottom: 22px;
}

.hero-title {
    color: #fff;
    font-size: clamp(36px, 5.4vw, 64px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    max-width: 16ch;
}
.hero-title em {
    font-style: normal;
    color: var(--hb-beam);
}
.hero-subtitle {
    color: var(--text-on-dark-soft);
    font-size: 17px;
    line-height: 1.55;
    max-width: 54ch;
    margin: 0 0 30px;
}

/* exponát vpravo: rad výrezov, ktoré sa prekrývajú */
.hb-hero-art {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}
.hb-hero-art img {
    display: block;
    height: clamp(230px, 30vw, 400px);
    width: auto;
    margin-left: -7%;
    filter: drop-shadow(0 26px 34px rgba(0, 0, 0, .55));
}
.hb-hero-art img:first-child { margin-left: 0; }
.hb-hero-art img:nth-child(1) { height: clamp(180px, 23vw, 300px); opacity: .55; }
.hb-hero-art img:nth-child(2) { height: clamp(210px, 27vw, 350px); opacity: .8; }
.hb-hero-art img:nth-child(3) { height: clamp(250px, 33vw, 430px); }

/* vyhľadávač rozmeru */
.tire-search-wrapper {
    background: var(--hb-surface);
    border: none;
    border-top: 4px solid var(--hb-beam);
    border-radius: var(--radius-md);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .38);
    padding: 20px 22px 22px;
    max-width: 760px;
}
.pf-form-homepage .pf-fields {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
/* päť polí v troch stĺpcoch nechávalo prázdnu bunku priamo v strede hero */
.pf-form-homepage .pf-field { grid-column: span 2; }
.pf-form-homepage .pf-field:nth-child(n+4) { grid-column: span 3; }

.pf-select,
.tire-search-wrapper select {
    width: 100%;
    border: 2px solid var(--hb-line) !important;
    border-radius: var(--radius-md) !important;
    background-color: #fff !important;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    height: 48px;
    padding: 0 12px;
}
.pf-select:focus,
.tire-search-wrapper select:focus {
    border-color: var(--hb-brand) !important;
    box-shadow: none !important;
}
.pf-form-homepage .pf-submit {
    margin-top: 12px;
    height: 48px;
    padding: 0 24px;
}

/* pás faktov pod hero */
.stats-bar {
    background: var(--hb-ink-2);
    border-top: none;
}
.stats-grid { gap: 0; }
.stat-item {
    border-right: 1px solid var(--hb-line-dark);
    padding: 24px 16px;
}
.stat-item:last-child { border-right: none; }
.stat-number {
    color: var(--hb-beam);
    font-weight: 700;
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -0.02em;
}
.stat-label {
    color: var(--text-on-dark-soft);
    font-family: var(--font-primary);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* ==========================================================================
   6. SEKCIE
   ========================================================================== */

.section { padding: 68px 0; }
.section-gray { background: var(--hb-wash); }
.section-dark { background: var(--hb-ink); color: var(--text-on-dark); }
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: var(--text-on-dark-soft); }
.section-accent { background: var(--hb-brand); color: #fff; }
.section-accent .section-title, .section-accent .section-subtitle { color: #fff; }

.section-header { margin-bottom: 34px; }
.section-title {
    font-size: clamp(26px, 3.2vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
}
.section-subtitle {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    max-width: 60ch;
}

/* --- Najčastejšie veľkosti --- */
.hb-sizes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.hb-size-card {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding: 18px 18px 16px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-bottom: 3px solid var(--hb-brand);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: border-color .15s, background .15s, transform .15s;
}
.hb-size-card:hover {
    background: var(--hb-ink);
    border-color: var(--hb-ink);
    border-bottom-color: var(--hb-beam);
}
.hb-size {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.hb-size-card span:not(.hb-size) {
    font-size: 12.5px;
    color: var(--text-muted);
}
.hb-size-card:hover .hb-size { color: #fff; }
.hb-size-card:hover span:not(.hb-size) { color: var(--hb-beam); }

/* --- Sezónne karty s výrezom --- */
.season-tires-grid { gap: 16px; }
.season-card {
    position: relative;
    min-height: 270px;
    border-radius: var(--radius-md);
    border: none;
    overflow: hidden;
    background: var(--hb-ink);
    color: var(--text-on-dark);
    padding: 26px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;      /* téma mala flex-end, text sa lepil doprava */
    justify-content: flex-end;
    text-align: left;
    text-decoration: none;
    box-shadow: none;
    transition: box-shadow .15s ease;
}
.season-card:hover { transform: none; box-shadow: inset 0 0 0 2px var(--hb-beam); }
.season-card-bg, .season-card-icon { display: none !important; }
.season-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(11, 31, 38, 0) 34%, rgba(6, 20, 25, .90) 78%);
    z-index: 1;
}
.season-card::after { content: none; }
.season-card > * { position: relative; z-index: 2; }
.season-card.season-winter { background: #10303C; }
.season-card.season-summer { background: #1C3A34; }
.season-card.season-allseason { background: #172E3D; }

/* výrez sedí vpravo hore a presahuje mimo karty */
.hb-card-art {
    position: absolute;
    top: -14%;
    right: -16%;
    height: 118%;
    width: auto;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .45));
}

.season-card-title {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px;
    letter-spacing: -0.02em;
}
.season-card-text {
    color: #fff;
    font-size: 14.5px;
    line-height: 1.5;
    max-width: 30ch;
}
.hb-season-count {
    display: inline-block;
    align-self: flex-start;
    margin-top: 14px;
    padding: 6px 11px;
    background: var(--hb-beam);
    border-radius: 2px;
    font-family: var(--font-heading);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 13px;
    color: var(--hb-ink);
}

/* --- Typy vozidiel --- */
.hb-types {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.hb-type-card {
    position: relative;
    display: block;
    min-height: 210px;
    padding: 20px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    transition: border-color .15s ease;
}
.hb-type-card:hover { border-color: var(--hb-brand); }
.hb-type-card img {
    position: absolute;
    right: -4%;
    bottom: -6%;
    height: 78%;
    width: auto;
    opacity: .96;
}
.hb-type-name {
    display: block;
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.hb-type-card .hb-count {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    color: var(--text-muted);
}

/* --- Značky ako mriežka dlaždíc --- */
.brands-section { background: var(--hb-wash); }
.hb-brands, .brands-slider {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
}
.hb-brand, .brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 14px 10px 12px;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-primary);
    text-decoration: none;
    text-align: center;
    transition: border-color .15s ease;
}
.hb-brand img {
    height: 72px;
    width: auto;
    margin-bottom: 6px;
}
.hb-brand .hb-count {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 12px;
    color: var(--text-muted);
}
.hb-brand:hover, .brand-item:hover {
    border-color: var(--hb-brand);
    color: var(--hb-brand-dark);
}
.hb-brand-all {
    justify-content: center;
    background: var(--hb-ink);
    border-color: var(--hb-ink);
    color: #fff;
}
.hb-brand-all:hover { background: var(--hb-brand); border-color: var(--hb-brand); color: #fff; }
.brand-name { font-family: var(--font-heading); font-weight: 700; }

/* --- Ako to prebieha --- */
.hb-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--hb-line-dark);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.hb-step {
    padding: 28px 26px;
    border-right: 1px solid var(--hb-line-dark);
}
.hb-step:last-child { border-right: none; }
.hb-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 2px;
    background: var(--hb-beam);
    color: var(--hb-ink);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
}
.hb-step h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
}
.hb-step p {
    color: var(--text-on-dark-soft);
    font-size: 14.5px;
    line-height: 1.6;
    margin: 0;
}

/* --- Ako sa číta rozmer (vlastný nákres) --- */
.hb-spec {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.hb-spec-figure {
    background: var(--hb-ink);
    border-radius: var(--radius-md);
    padding: 26px;
}
.hb-spec-figure svg { display: block; width: 100%; height: auto; }
.hb-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
}
.hb-spec-list li {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 13px 0;
    border-bottom: 1px solid var(--hb-line);
}
.hb-spec-list li:last-child { border-bottom: none; }
.hb-spec-key {
    font-family: var(--font-heading);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 20px;
    color: var(--hb-brand);
    letter-spacing: -0.02em;
}
.hb-spec-val strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 15px;
    color: var(--text-primary);
}
.hb-spec-val span {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-secondary);
}

/* --- Info dlaždice --- */
.hb-info {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
    overflow: hidden;
}
.hb-info > div {
    padding: 24px;
    border-right: 1px solid var(--hb-line);
}
.hb-info > div:last-child { border-right: none; }
.hb-info h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 6px;
}
.hb-info p {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}
.hb-info b { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   7. PRODUKTOVÉ KARTY
   ========================================================================== */

ul.products li.product, .product-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}
.product-card-inner, ul.products li.product > .product-inner {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
    box-shadow: none;
    overflow: hidden;
    transition: border-color .15s ease;
}
.product-card:hover .product-card-inner,
ul.products li.product:hover > .product-inner {
    border-color: var(--hb-brand);
    transform: none;
    box-shadow: none;
}
/* produktová fotka má biele pozadie, takže karta musí byť tiež biela,
   inak z každej karty vytŕča svetlý obdĺžnik */
.product-card-image,
.woocommerce ul.products li.product a img {
    background: #fff;
}
.woocommerce ul.products li.product .price,
.product-card-price .price, .product-card-price .amount {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.woocommerce ul.products li.product .price del { color: var(--text-muted); font-weight: 500; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--hb-signal); }

.badge, .sale-badge-title, .onsale {
    background: var(--hb-signal) !important;
    color: #fff !important;
    border-radius: 2px !important;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* na dotykových zariadeniach nebola na karte žiadna akcia, lebo sa
   zobrazovala až pri :hover */
@media (hover: none) {
    .product-card-actions {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        pointer-events: auto !important;
        position: static !important;
    }
}

/* ==========================================================================
   8. OBCHOD, DETAIL, KOŠÍK
   ========================================================================== */

.shop-header, .page-header, .woocommerce-products-header, .archive-header {
    background: var(--hb-ink);
    border-bottom: 4px solid var(--hb-brand);
    border-radius: var(--radius-md);
    padding: 26px 28px;
    margin-bottom: 20px;
}
.shop-title, .page-header h1, .woocommerce-products-header h1, .page-title {
    color: #fff;
    font-size: clamp(26px, 3.6vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
}
.shop-description, .page-header p, .woocommerce-products-header p {
    color: var(--text-on-dark-soft);
    margin: 10px 0 0;
}
.shop-description a { color: var(--hb-beam); }

.breadcrumbs { color: var(--text-muted); font-size: 13px; }
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--hb-brand); }

/* filtračný pás — snippet ho farbil auto365 červenou */
.shop-filter-bar {
    background: var(--hb-surface) !important;
    border: 1px solid var(--hb-line) !important;
    border-radius: var(--radius-md) !important;
}
.filter-bar-header {
    background: var(--hb-wash) !important;
    border-bottom: 1px solid var(--hb-line) !important;
}
.filter-bar-label { color: var(--text-primary) !important; }
.filter-bar-label svg { color: var(--hb-brand) !important; }
.pf-form-archive .pf-select { border-color: var(--hb-line) !important; color: var(--text-primary) !important; }
.pf-form-archive .pf-select:focus { border-color: var(--hb-brand) !important; }
.pf-form-archive .pf-submit { background: var(--hb-brand) !important; }
.pf-form-archive .pf-reset { color: var(--text-secondary) !important; border-color: var(--hb-line) !important; }

.shop-controls { color: var(--text-secondary); }
.woocommerce-result-count { color: var(--text-muted); font-size: 14px; }
.woocommerce-ordering select {
    border: 2px solid var(--hb-line) !important;
    border-radius: var(--radius-md) !important;
    background: #fff;
    font-weight: 600;
    padding: 8px 12px;
}

.woocommerce-pagination a, .woocommerce-pagination span {
    border: 1px solid var(--hb-line) !important;
    border-radius: var(--radius-md) !important;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary) !important;
}
.woocommerce-pagination .current {
    background: var(--hb-ink) !important;
    border-color: var(--hb-ink) !important;
    color: #fff !important;
}

.product_title {
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 700;
    letter-spacing: -0.025em;
}
.woocommerce div.product .summary .price,
.woocommerce div.product p.price {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}
.woocommerce div.product div.images img { background: #fff; }
.woocommerce-tabs ul.tabs { border-bottom: 2px solid var(--hb-ink); }
.woocommerce-tabs ul.tabs li a {
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 0;
}
.woocommerce-tabs ul.tabs li.active a {
    border-bottom: 3px solid var(--hb-brand);
    color: var(--text-primary);
}

.tire-specs-section { margin-top: 32px; }
.tire-specs-grid, .tire-specs-section .tire-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}
.tire-spec-card, .tire-specs-section > div > div {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
}
.stock-status {
    font-family: var(--font-heading);
    font-weight: 700;
}
.stock-status.in-stock { color: var(--success); }
.stock-status.low-stock { color: var(--hb-signal); }
.stock-status.out-of-stock { color: var(--text-muted); }

.woocommerce-message, .woocommerce-info {
    background: var(--hb-wash);
    border-top: 3px solid var(--hb-brand);
    border-radius: var(--radius-md);
    color: var(--text-primary);
}
.woocommerce-error {
    background: #FDF2F0;
    border-top: 3px solid var(--error);
    border-radius: var(--radius-md);
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea {
    border: 2px solid var(--hb-line) !important;
    border-radius: var(--radius-md) !important;
    background: #fff;
}
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row select:focus {
    border-color: var(--hb-brand) !important;
    box-shadow: none !important;
}

.cart-empty, .woocommerce-cart .cart-empty {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-primary);
}
.hb-empty-help { margin-top: 26px; }
.hb-empty-help h2 {
    font-family: var(--font-heading);
    font-size: 19px;
    margin: 0 0 14px;
}
.cart_totals, .cart-totals, .woocommerce-checkout-review-order {
    background: var(--hb-wash);
    border: 1px solid var(--hb-line);
    border-radius: var(--radius-md);
}
.quantity .qty-btn {
    background: var(--hb-wash);
    border: 1px solid var(--hb-line);
    color: var(--text-primary);
}
.quantity .qty-btn:hover { background: var(--hb-ink); color: #fff; border-color: var(--hb-ink); }

/* ==========================================================================
   9. PÄTIČKA
   ========================================================================== */

.site-footer { background: var(--hb-ink); color: var(--text-on-dark-soft); }
.footer-main { border-bottom: 1px solid var(--hb-line-dark); }
.footer-site-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}
.footer-description, .footer-about p { color: var(--text-on-dark-soft); max-width: 44ch; }
.footer-widget-title {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--hb-line-dark);
}
.footer-menu a, .footer-contact-list a, .footer-contact-list span { color: var(--text-on-dark-soft); }
.footer-menu a:hover, .footer-contact-list a:hover { color: var(--hb-beam); }
.footer-bottom { background: var(--hb-ink-2); }
.copyright { color: rgba(234, 243, 245, .52); }
.social-link {
    border: 1px solid var(--hb-line-dark);
    border-radius: var(--radius-md);
    color: var(--text-on-dark-soft);
}
.social-link:hover { background: var(--hb-brand); border-color: var(--hb-brand); color: #fff; }

/* logo je svetlé, hlavička aj pätička sú tmavé, invertovať ho netreba */
.footer-logo img, .site-footer .custom-logo { opacity: .92; }

.hb-pay {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.hb-pay span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    border: 1px solid var(--hb-line-dark);
    border-radius: 2px;
    font-size: 12.5px;
    color: var(--text-on-dark-soft);
}

/* výpredaj v mobilnom menu */
.mobile-sale-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    background: var(--hb-signal);
    border: 2px solid var(--hb-signal);
    color: #fff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    text-decoration: none;
}
.mobile-sale-btn:hover { background: var(--hb-ink); border-color: var(--hb-ink); }
.mobile-menu { background: var(--hb-surface); }
.mobile-nav-menu a { color: var(--text-primary); }
.mobile-menu-header { border-bottom: 1px solid var(--hb-line); }
.mobile-menu-title { font-family: var(--font-heading); font-weight: 700; }

/* ==========================================================================
   10. RESPONZIVITA
   ========================================================================== */

@media (max-width: 1280px) {
    .hb-brands, .brands-slider { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1440px) and (min-width: 1281px) {
    .hb-brand img { height: 62px; }
}

@media (max-width: 1100px) {
    .hb-info { grid-template-columns: repeat(2, 1fr); }
    .hb-info > div:nth-child(2) { border-right: none; }
    .hb-info > div:nth-child(1), .hb-info > div:nth-child(2) { border-bottom: 1px solid var(--hb-line); }
    .hb-hero-art { opacity: .38; right: -140px; }
    .hb-spec { grid-template-columns: 1fr; gap: 26px; }
    .hb-types { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .hb-sizes { grid-template-columns: repeat(2, 1fr); }
    .pf-form-homepage .pf-fields { grid-template-columns: repeat(2, 1fr); }
    .pf-form-homepage .pf-field,
    .pf-form-homepage .pf-field:nth-child(n+4) { grid-column: auto; }
}

@media (max-width: 860px) {
    .hb-hero-art { display: none; }
    .hero-content { padding: 48px 0 42px; max-width: 100%; }
    .hb-steps { grid-template-columns: 1fr; }
    .hb-step { border-right: none; border-bottom: 1px solid var(--hb-line-dark); }
    .hb-step:last-child { border-bottom: none; }
    .season-card { min-height: 220px; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--hb-line-dark); }
    .hb-brands, .brands-slider { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .section { padding: 44px 0; }
    .hero-title { font-size: clamp(29px, 8.4vw, 40px); max-width: 100%; }
    .tire-search-wrapper { padding: 16px; }
    .hb-info { grid-template-columns: 1fr; }
    .hb-info > div { border-right: none; border-bottom: 1px solid var(--hb-line); }
    .hb-info > div:last-child { border-bottom: none; }
    .season-card-title { font-size: 25px; }
    .hb-spec-list li { grid-template-columns: 62px 1fr; gap: 12px; }
    .shop-header, .page-header { padding: 18px 18px; }

    /* logo bolo také široké, že tlačidlo menu vypadlo mimo obrazovku */
    .site-branding img,
    .site-branding .custom-logo {
        max-height: 34px;
        max-width: 168px;
        width: auto;
        height: auto;
    }
    .header-inner { gap: 10px; }
    .header-actions { gap: 6px; flex: 0 0 auto; }
    .mini-cart-trigger { padding: 0 10px; }
}

@media (max-width: 460px) {
    .hb-brands, .brands-slider { grid-template-columns: repeat(2, 1fr); }
    .hb-types { grid-template-columns: 1fr; }
    /* päť polí pod sebou robilo z hero takmer tisíc pixelov, kým sa niečo stalo */
    .pf-form-homepage .pf-fields { grid-template-columns: repeat(2, 1fr); }
    .pf-form-homepage .pf-field:nth-child(5) { grid-column: span 2; }
    .pf-select, .tire-search-wrapper select { font-size: 14px; padding: 0 8px; height: 46px; }
}

@media (max-width: 420px) {
    .site-branding img,
    .site-branding .custom-logo { max-width: 146px; }
    .hb-sizes { grid-template-columns: 1fr; }
}

/* ==========================================================================
   11. POISTKY
   ========================================================================== */

/* Téma dávala sekciám opacity:0 a odkrývala ich až IntersectionObserverom.
   Ak observer nenabehne, sekcia ostane neviditeľná. */
.fade-in-up,
.stagger-children,
.stagger-children > *,
.season-tires-grid,
.section-header,
.benefits-grid,
.categories-grid,
.brands-slider {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* .featured-products-section bola v pôvodnej téme tmavá s bielym textom */
.featured-products-section {
    background: var(--hb-surface) !important;
    color: var(--text-primary) !important;
}
.featured-products-section::before,
.featured-products-section::after { display: none !important; }
.featured-products-section .section-title { color: var(--text-primary); }
.featured-products-section .section-subtitle { color: var(--text-secondary); }
.featured-products-section.section-gray { background: var(--hb-wash) !important; }

/* sezónne karty si z main.css ťahali mäkký tieň a zdvih pri hoveri,
   čo je v koncepte bez tieňov jediné také miesto na stránke */
.season-card, .season-card:hover {
    box-shadow: none;
}
.season-card:hover { box-shadow: inset 0 0 0 2px var(--hb-beam); }

/* EU štítok a sezónne bodky mali auto365 oranžovú zadrátovanú v woocommerce.css */
.card-season-dot.season-summer::before,
.grade-grip, .tire-eu-grip { background: var(--warning) !important; }
.card-eu-grip svg { color: var(--warning) !important; }

/* --------------------------------------------------------------------------
   12. KONTRAST
   Namerané na živom webe: drobné popisky bežali na --gray-400 (#AEBEC3),
   čo je na bielej 1,9:1, a indexové odznaky mali farby, na ktorých biely
   text nedosiahol 4,5:1. Všetko nižšie je preverené výpočtom.
   -------------------------------------------------------------------------- */

.tire-size-label,
.tire-detail-label,
.tire-index-desc,
.tire-eu-desc,
.promise-text span,
.product-sku,
.product-meta-custom,
.product-meta-custom a,
.product-meta-custom strong,
.product-meta-custom span,
.woocommerce-price-suffix,
.woocommerce-mini-cart__empty-message,
.tire-specs-section h3,
.tire-spec-card h3 {
    color: var(--text-muted) !important;   /* 5,34:1 na bielej */
}

/* biely text na týchto odznakoch mal 3,7:1 a 3,9:1 */
.tire-index-load { background: var(--hb-brand) !important; }      /* 5,36:1 */
.tire-index-speed { background: #B42318 !important; }             /* 6,06:1 */

.mini-cart-dropdown {
    background: var(--hb-surface);
    border: 1px solid var(--hb-line);
    color: var(--text-primary);
}
.mini-cart-header { background: var(--hb-ink); border-bottom: none; }
.mini-cart-header h4 { color: #fff; font-family: var(--font-heading); }
.mini-cart-close { color: var(--text-on-dark); }

/* tlačidlo súhlasu s cookies malo biely text na #61A229 = 3,13:1 */
.cli-plugin-button,
.wt-cli-element.cli-plugin-button,
#wt-cli-accept-all-btn,
#wt-cli-accept-btn {
    background-color: #3F6B1B !important;   /* biely text 6,13:1 */
    color: #fff !important;
}
