/* =====================================================================
   Konfigurátor – nadstavba nad theme.css (žluto-černý Micronix systém)
   ===================================================================== */

/* Atribut `hidden` musí vždy schovat prvek – jinak ho přebije např.
   .loader { display:flex } (stejná specificita, autorský styl vyhrává). */
[hidden] { display: none !important; }

/* ---- Veřejný shell (header + main + footer) ---- */
body.site { background: var(--paper-2); }
.site-head {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 30;
    box-shadow: var(--shadow-sm);
}
.site-head__in {
    max-width: 1180px; margin: 0 auto; padding: 0 24px;
    height: 72px; display: flex; align-items: center; justify-content: space-between;
}
.site-brand { display: flex; align-items: center; gap: 12px; }
.site-brand img { display: block; }
.site-brand__sub {
    font-size: 12px; color: var(--muted); font-weight: 600;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding-left: 12px; border-left: 1px solid var(--line);
}
.site-nav { display: flex; gap: 6px; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 14px; border-radius: var(--r-md);
    color: var(--muted); font-weight: 600; font-size: 14px;
    transition: all var(--t-fast);
}
.site-nav a:hover { background: var(--paper-3); color: var(--ink); }
.site-nav a.active { background: var(--yellow); color: var(--ink); }

.site-main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 64px; }

/* ---- Hero ---- */
.hero { margin-bottom: 28px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--yellow); color: var(--ink);
    font-weight: 700; font-size: 12px; letter-spacing: .3px;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
    box-shadow: 0 2px 0 #d4c500;
}
.hero h1 { font-size: 34px; letter-spacing: -0.03em; margin: 0 0 8px; }
.hero__lead { color: var(--muted); max-width: 660px; font-size: 15.5px; margin: 0; }

/* ---- Konfigurátor karta ---- */
.config { padding: 26px; }
.dstep { margin-bottom: 22px; }
.dstep:last-child { margin-bottom: 0; }
.dstep__label {
    display: flex; align-items: center; gap: 9px;
    font-weight: 700; font-size: 12px; text-transform: uppercase;
    letter-spacing: .6px; color: var(--ink); margin-bottom: 12px;
}
.step-no {
    display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--ink); color: var(--yellow);
    font-size: 12px; font-weight: 700;
}

/* Typ vozidla – dlaždice */
.vehicle-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vchip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 18px; border: 1px solid var(--line-strong);
    background: var(--paper); border-radius: 999px;
    cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ink);
    transition: all var(--t-fast); box-shadow: var(--shadow-sm);
}
.vchip:hover { border-color: var(--ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.vchip.is-active {
    background: var(--yellow); border-color: var(--yellow); color: var(--ink);
    box-shadow: var(--shadow-md), var(--shadow-pop);
}
.vchip .material-symbols-rounded { font-size: 20px; }

/* Custom select */
.select { position: relative; max-width: 480px; }
.select select {
    width: 100%; appearance: none; background: var(--paper);
    border: 1px solid var(--line-strong); border-radius: var(--r-md);
    padding: 12px 42px 12px 14px; font-size: 14.5px; font-family: inherit;
    color: var(--ink); cursor: pointer; transition: all var(--t-fast);
    box-shadow: var(--shadow-sm);
}
.select select:focus { outline: none; border-color: var(--ink); box-shadow: var(--shadow-pop), var(--shadow-sm); }
.select select:disabled { cursor: default; color: var(--muted); opacity: .85; }

/* Krok, který se právě načítá – pole je hned vidět, jen jemně „dýchá" */
.dstep.is-loading .select { opacity: .7; }
.dstep.is-loading .dstep__name { animation: dstep-pulse 1s ease-in-out infinite; }
@keyframes dstep-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.select .material-symbols-rounded {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    pointer-events: none; color: var(--muted); font-size: 20px;
}

.config__bar {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.breadcrumb { font-size: 13.5px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.breadcrumb .sep { color: var(--line-strong); }

/* ---- Výsledky ---- */
.results { margin-top: 30px; }
.bat-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 18px;
}
.bat-card {
    position: relative; background: var(--paper); border: 1px solid var(--line);
    border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column;
    box-shadow: var(--shadow-sm); transition: transform var(--t-base), box-shadow var(--t-base);
}
.bat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.bat-card__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .4px;
    display: inline-flex; align-items: center; gap: 4px;
}
.badge--standard { background: var(--yellow); color: var(--ink); box-shadow: 0 2px 0 #d4c500; }
.badge--upgrade  { background: var(--ink); color: var(--yellow); }
.bat-card__img {
    height: 176px; display: flex; align-items: center; justify-content: center;
    padding: 18px; background: var(--paper); border-bottom: 1px solid var(--line);
}
.bat-card__img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.bat-card__img .material-symbols-rounded { font-size: 56px; color: var(--line-strong); }
.bat-card__body { padding: 16px 18px; display: flex; flex-direction: column; flex: 1; }
.bat-card__pn {
    font-size: 11px; color: var(--muted); font-weight: 700; letter-spacing: .6px;
    text-transform: uppercase;
}
.bat-card__name { font-weight: 700; font-size: 15px; margin: 3px 0 8px; line-height: 1.35; letter-spacing: -0.01em; }
.bat-card__name a { color: var(--ink); }
.bat-card__name a:hover { color: var(--muted); }
.bat-card__spec { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.bat-card__spec .tag { margin: 0; font-variant-numeric: tabular-nums; }
.bat-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

.avail { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.avail .material-symbols-rounded { font-size: 17px; }
.avail.in-stock { color: var(--good); }
.avail.on-request { color: var(--muted-2); }

.price-block {
    background: var(--yellow); border-radius: var(--r-md); padding: 12px 14px;
    box-shadow: 0 2px 0 #d4c500; display: flex; align-items: baseline;
    justify-content: space-between; gap: 8px;
}
.price-block .main { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price-block .net { font-size: 11.5px; font-weight: 600; opacity: .75; font-variant-numeric: tabular-nums; }
.price-none { color: var(--muted-2); font-style: italic; font-weight: 600; padding: 10px 0; }
.bat-card__cta { margin-top: 12px; display: flex; gap: 8px; }
.bat-card__cta .btn { flex: 1; justify-content: center; }
.bat-card__alt { font-size: 12px; color: var(--muted); margin-top: 8px; text-align: center; }

/* ---- Loader / empty ---- */
.loader { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 36px; color: var(--muted); font-weight: 500; }
.spinner {
    width: 18px; height: 18px; border: 3px solid var(--paper-3); border-top-color: var(--ink);
    border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
    .hero h1 { font-size: 26px; }
    .site-brand__sub { display: none; }
    .site-head__in { padding: 0 16px; height: 64px; }
    .site-main { padding: 24px 16px 48px; }
}
