/* ============================================================
   Visiony Store – editorial / high-contrast styl
   Inspirace: bold e-commerce (obří kondenzovaná typografie,
   ostré hrany, tenké linky). Akcent: modrá visiony #205A8D.
   ============================================================ */

:root {
    --ink: #0e1216;             /* téměř černá */
    --ink-80: #2a313a;
    --blue: #205a8d;
    --blue-dark: #17456e;
    --blue-tint: #eaf1f7;
    --bg: #ffffff;
    --surface: #f2f4f6;
    --border: #e2e6ea;
    --border-dark: #0e1216;
    --text: #0e1216;
    --text-soft: #6a737d;
    --success: #1e8e5a;
    --success-bg: #e7f5ee;
    --danger: #c4382a;
    --danger-bg: #fbeae8;
    --info-bg: #eaf1f7;

    --font-display: 'Anton', Impact, 'Arial Narrow', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

main.container { min-height: 62vh; padding-bottom: 5rem; }

a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #f2b705;
    outline-offset: 2px;
}

/* Obří editorial nadpisy */
h1, .display {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 1.2rem; }

h2 {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin: 1.6rem 0 1rem;
    color: var(--ink);
}
h3 { font-weight: 700; }

/* Malé uppercase popisky sekcí */
.section-label, .section-title {
    font-family: var(--font-display);
    font-weight: 400;
    text-transform: uppercase;
    font-size: 1.7rem;
    letter-spacing: 0.02em;
    margin: 4.5rem 0 0;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--ink);
}

.page-title { margin: 3rem 0 2rem; }

/* ---------- Hlavička ---------- */

.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.45rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: var(--ink);
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}
.logo .reg { font-size: 0.65rem; vertical-align: super; color: var(--blue); }
.logo img { height: 30px; width: auto; display: block; }

.main-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.main-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.15s, color 0.15s;
}
.main-nav a:hover { border-bottom-color: var(--ink); }
.main-nav .nav-active { border-bottom-color: var(--blue); color: var(--blue); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }

.header-link {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.header-link:hover { color: var(--blue); }

.cart-link { position: relative; color: var(--ink); display: inline-flex; padding: 0.2rem; }
.cart-link:hover { color: var(--blue); }
.cart-icon { width: 22px; height: 22px; }

.cart-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding: 0 4px;
}

/* ---------- Tlačítka ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.65rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
    background: var(--bg);
    border: 1px solid var(--ink);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

.btn-lg { padding: 0.9rem 2.2rem; font-size: 0.8rem; }
.btn-sm { padding: 0.3rem 0.8rem; font-size: 0.68rem; letter-spacing: 0.08em; }
.btn-block { width: 100%; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-arrow { width: 18px; height: 12px; }

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: var(--text-soft);
    padding: 0.3rem;
}
.btn-icon:hover { color: var(--danger); }

/* ---------- Karty ---------- */

.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: 1.8rem 2rem;
    margin-bottom: 1.5rem;
}
.card h2:first-of-type { margin-top: 0; }

/* ---------- Hero ---------- */

.hero-editorial {
    background: var(--ink);
    color: #fff;
    position: relative;
    overflow: hidden;
    /* full-bleed přes celou šířku okna i uvnitř .container */
    width: 100vw;
    margin: 0 0 1rem calc(50% - 50vw);
}
.hero-editorial .hero-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 5.5rem 1.5rem 5rem;
    position: relative;
    z-index: 1;
}
.hero-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #9fb6c9;
    margin: 0 0 1.2rem;
}
.hero-editorial h1 {
    color: #fff;
    font-size: clamp(3rem, 9vw, 6.5rem);
    letter-spacing: 0.005em;
    margin: 0 0 1.4rem;
}
.hero-editorial h1 .accent { color: var(--blue); -webkit-text-stroke: 0; }
.hero-tagline {
    font-size: 1.02rem;
    color: #b9c2cb;
    margin: 0 0 2.4rem;
    max-width: 30rem;
}
.hero-editorial .btn { border-color: #fff; background: #fff; color: var(--ink); }
.hero-editorial .btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Hero s fotkou jako menším výřezem vpravo, plynule splývajícím do tmavé */
.hero-photo { background-color: var(--ink); }
.hero-photo .hero-inner {
    position: relative;
    z-index: 2;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-photo-side {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    max-width: 560px;
    z-index: 0;
    overflow: hidden;
}
.hero-photo-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 42%;
    display: block;
}
.hero-photo-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #0e1216 0%, rgba(14, 18, 22, 0.55) 38%, rgba(14, 18, 22, 0) 78%);
}

/* Tlačítko v hero – kompaktní */
.hero-cta { padding: 0.62rem 1.4rem; font-size: 0.72rem; width: auto; max-width: 100%; white-space: nowrap; }

/* ---------- Kategorie (dlaždice) ---------- */

.category-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 2rem 0;
}
.category-tile {
    background: var(--bg);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
.category-tile-image {
    position: relative;
    aspect-ratio: 1;
    min-height: 0;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 10px;
}
.category-tile-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s;
}
.category-tile:hover .category-tile-image img { transform: scale(1.025); }
.category-tile-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 1.1rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    border-top: 1px solid var(--border);
}
.category-tile-label svg { width: 18px; height: 12px; transition: transform 0.2s; }
.category-tile:hover .category-tile-label { color: var(--blue); }
.category-tile:hover .category-tile-label svg { transform: translateX(4px); }

/* ---------- Produkty ---------- */

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    margin: 2rem 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    background: var(--bg);
    padding: 1.2rem;
    transition: background 0.15s;
}
.product-card:hover { background: var(--surface); }
.product-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.product-image {
    position: relative;
    aspect-ratio: 1;
    min-height: 0;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1rem;
    padding: 10px;
}
.product-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    object-position: center;
    transition: transform 0.3s;
}
.product-card:hover .product-image img { transform: scale(1.015); }
.image-placeholder { width: 34%; color: #c6ced5; }

.product-name {
    margin: 0 0 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.45;
}
.product-price { margin: 0; font-weight: 600; font-size: 0.95rem; color: var(--ink-80); }

.product-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    flex-wrap: wrap;
    row-gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.9rem;
}
.add-to-cart-mini { margin: 0; }
.add-to-cart-mini .btn { gap: 0.4rem; padding: 0.34rem 0.7rem; }
.cart-mini-icon { width: 15px; height: 15px; }
.product-soldout-note {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-soft);
}

.badge {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    background: var(--blue);
    color: #fff;
}
.badge-soldout { background: var(--ink); }
td .badge, .cart-product .badge {
    position: static;
    display: inline-block;
    margin-left: 0.5rem;
    background: var(--blue-tint);
    color: var(--blue);
}

/* Detail produktu */

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin: 2.5rem 0;
}
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }

.product-detail-image {
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--border);
    overflow: hidden;
    padding: 12px;
}
.product-detail-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Galerie produktu – náhledy pod hlavní fotkou */
.product-detail-gallery { display: flex; flex-direction: column; gap: 0.7rem; }
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 0.5rem;
}
.gallery-thumb {
    aspect-ratio: 1;
    padding: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; display: block; }
.gallery-thumb:hover { border-color: var(--text-soft); }
.gallery-thumb.active { border-color: var(--ink); border-width: 2px; }

.product-detail-info h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.product-detail-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0.4rem 0 1.4rem;
}
.product-meta {
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.product-description { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }

.add-to-cart-form { display: flex; gap: 1rem; align-items: stretch; flex-wrap: wrap; margin: 1.6rem 0; }
.variant-select { flex: 1 0 100%; }
.variant-select .field-legend { display: block; margin-bottom: 0.5rem; }

.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--ink); }
.qty-btn {
    width: 40px;
    height: 100%;
    min-height: 44px;
    font-size: 1.1rem;
    background: var(--bg);
    border: none;
    cursor: pointer;
    color: var(--ink);
}
.qty-btn:hover { background: var(--ink); color: #fff; }
.qty-control .qty-input {
    width: 54px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    height: 44px;
}
.qty-control .qty-input:focus { outline: none; }

.breadcrumbs {
    margin-top: 2.2rem;
    color: var(--text-soft);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--blue); }

/* ---------- Filtry ---------- */

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 0 0.5rem;
}

.category-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.5rem 0 1rem; }
.pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--ink);
    padding: 0.38rem 1rem;
    border: 1px solid var(--border-dark);
    background: var(--bg);
    transition: all 0.15s;
}
.pill:hover { background: var(--ink); color: #fff; }
.pill-active { background: var(--ink); color: #fff; }

.search-form { display: flex; gap: 0.5rem; }

/* ---------- Formuláře ---------- */

.input {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text);
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 0;
    background: var(--bg);
    width: 100%;
    transition: border-color 0.15s;
}
.input:focus { outline: none; border-color: var(--ink); }
.input-sm { padding: 0.3rem 0.6rem; width: auto; }

select.input { appearance: auto; }
textarea.input { resize: vertical; }

.field { display: block; margin-bottom: 1.1rem; }
.field > span {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
}
.field-row { display: flex; gap: 1rem; }
.field-row .field { flex: 1; }
.field-zip { flex: 0 0 130px; }
.field-hint { color: var(--text-soft); font-size: 0.86rem; }

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 1.1rem 0;
    font-weight: 600;
    font-size: 0.9rem;
}
.checkbox-field input { width: 17px; height: 17px; accent-color: var(--blue); }

.radio-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: 1px solid var(--border);
    padding: 0.8rem 1.1rem;
    margin-bottom: 0.6rem;
    cursor: pointer;
    background: var(--bg);
    transition: border-color 0.15s, background 0.15s;
}
.radio-card:hover { border-color: var(--ink); }
.radio-card:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.radio-card input { accent-color: var(--blue); width: 16px; height: 16px; }
.radio-card-label { font-weight: 600; flex: 1; font-size: 0.92rem; }
.radio-card-price { font-weight: 700; color: var(--blue); font-size: 0.92rem; }

.form-actions { display: flex; gap: 1rem; margin-top: 1.6rem; }
.form-thumb { max-width: 110px; border: 1px solid var(--border); display: block; margin: 0.4rem 0; }

/* Fieldsety ve formuláři (galerie, další kategorie) */
fieldset.field { border: none; padding: 0; margin: 0 0 1.1rem; min-inline-size: 0; }
.field-legend {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink);
}

/* Výběr dalších kategorií */
.checkbox-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0 0.5rem; }
.checkbox-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid var(--border);
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    user-select: none;
}
.checkbox-pill input { accent-color: var(--blue); }
.checkbox-pill:has(input:checked) { border-color: var(--ink); background: var(--blue-tint); }
.checkbox-grid-scroll {
    max-height: 220px;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid var(--border);
    margin-top: 0.3rem;
}

/* Editace galerie v adminu */
.gallery-edit { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 0.4rem 0 0.7rem; }
.gallery-edit-item { display: flex; flex-direction: column; gap: 0.3rem; align-items: center; font-size: 0.72rem; }
.gallery-edit-item img { width: 84px; height: 84px; object-fit: cover; border: 1px solid var(--border); display: block; }
.gallery-del { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--text-soft); cursor: pointer; }
.gallery-del input { accent-color: var(--danger); }

/* ---------- Flash zprávy ---------- */

.flash {
    margin: 1.2rem 0;
    padding: 0.8rem 1.2rem;
    background: var(--success-bg);
    color: var(--success);
    font-weight: 600;
    font-size: 0.92rem;
    border-left: 3px solid currentColor;
    transition: opacity 0.3s;
}
.flash-error { background: var(--danger-bg); color: var(--danger); }
.flash-info { background: var(--info-bg); color: var(--blue); }

/* ---------- Tabulky ---------- */

.data-table, .cart-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    background: var(--bg);
    border: 1px solid var(--border);
}
.data-table th, .cart-table th {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-soft);
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.data-table td, .cart-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-size: 0.92rem;
}
.data-table tr:last-child td, .cart-table tr:last-child td { border-bottom: none; }
.row-inactive { opacity: 0.45; }

.cell-thumb img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--border);
    display: block;
}
.cell-actions { white-space: nowrap; }
.cell-actions .btn, .cell-actions .inline-form { margin-right: 0.3rem; }
.inline-form { display: inline-block; }
.rename-form { display: flex; gap: 0.4rem; align-items: center; }

.stock-low { color: var(--danger); font-weight: 700; }
.stock-low-tag {
    display: inline-block;
    margin-left: 0.4rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.45rem;
    background: var(--danger-bg);
    color: var(--danger);
}

/* ---------- Košík a pokladna ---------- */

.cart-product a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cart-product a:hover { color: var(--blue); }
.cart-table .qty-input { width: 72px; }

.cart-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}
.cart-total { font-size: 1rem; }
.cart-total strong { font-size: 1.25rem; }
.cart-actions { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.empty-cart { text-align: center; padding: 4.5rem 0; }
.empty-state-icon { width: 80px; color: #c6ced5; }
.empty-cart p { font-size: 1.05rem; color: var(--text-soft); margin: 1rem 0 1.6rem; }
.empty-note { color: var(--text-soft); font-size: 0.98rem; padding: 1.2rem 0; }

.checkout-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 1.2rem;
}
@media (max-width: 820px) { .checkout-layout { grid-template-columns: 1fr; } }

.summary-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.summary-list li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.92rem;
}
.summary-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 0.9rem;
}
.summary-shipping { color: var(--text-soft); font-size: 0.86rem; }

/* ---------- Slevový kód v košíku ---------- */

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.5rem 0;
}
.discount-form { display: flex; gap: 0.5rem; align-items: center; margin: 0.5rem 0 1rem; }
.input-code {
    max-width: 150px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.discount-applied {
    background: var(--success-bg);
    border: 1px solid #bfe3cd;
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
    gap: 0.8rem;
}
.discount-tag { color: var(--success); font-size: 0.92rem; }

.cart-totals { min-width: 250px; margin-left: auto; }
.summary-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}
.summary-discount { color: var(--success); }

/* ---------- Kategorie: obrázek v adminu ---------- */

.cat-image-actions { display: flex; align-items: center; gap: 0.4rem; margin-top: 0.5rem; }
.cat-image-actions .input-sm { font-size: 0.78rem; max-width: 180px; }
.thumb-empty { color: var(--text-soft); }

.page-foot-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* ---------- Objednávka / platba ---------- */

.order-success { text-align: center; padding: 3.5rem 0 1.5rem; }
.success-icon { width: 64px; height: 64px; color: var(--success); margin-bottom: 0.6rem; }

.payment-card { background: var(--blue-tint); border-color: #cddcea; }
.payment-details { display: grid; grid-template-columns: auto 1fr; gap: 0.45rem 1.8rem; margin: 0; }
.payment-details dt {
    font-weight: 700;
    color: var(--text-soft);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    align-self: center;
}
.payment-details dd { margin: 0; font-size: 1rem; }

/* ---------- Časová osa objednávky ---------- */

.timeline {
    display: flex;
    margin: 1.8rem 0;
}
.timeline-step {
    flex: 1;
    position: relative;
    text-align: center;
    min-width: 0;
}
.timeline-step:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 14px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
}
.timeline-step.done:not(:first-child)::before { background: var(--blue); }

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
    color: #fff;
}
.timeline-dot svg { width: 13px; height: 13px; }
.timeline-step.done .timeline-dot { background: var(--blue); border-color: var(--blue); }
.timeline-step.current .timeline-dot {
    background: var(--ink);
    border-color: var(--ink);
    animation: timelinePulse 2.2s ease-out infinite;
}
@keyframes timelinePulse {
    0%   { box-shadow: 0 0 0 0 rgba(32, 90, 141, 0.35); }
    70%  { box-shadow: 0 0 0 10px rgba(32, 90, 141, 0); }
    100% { box-shadow: 0 0 0 0 rgba(32, 90, 141, 0); }
}

.timeline-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-soft);
}
.timeline-step.done .timeline-label { color: var(--ink); }
.timeline-step.current .timeline-label { color: var(--blue); }

.timeline-cancelled {
    margin: 1.8rem 0;
    padding: 0.8rem 1.2rem;
    background: #f1f2f4;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.92rem;
    border-left: 3px solid var(--text-soft);
}

.tracking-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--blue-tint);
    border-left: 3px solid var(--blue);
    padding: 0.9rem 1.2rem;
    margin: 1.2rem 0;
}
.tracking-box .tracking-number { font-weight: 700; }
.tracking-box .field-hint { margin: 0; }

/* ---------- Stavy objednávek ---------- */

.status {
    display: inline-block;
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.22rem 0.7rem;
    white-space: nowrap;
}
.status-new { background: #fdf3e0; color: #9a6a12; }
.status-paid { background: var(--success-bg); color: var(--success); }
.status-shipped { background: var(--blue-tint); color: var(--blue); }
.status-completed { background: #e9ecef; color: var(--ink); }
.status-cancelled { background: #f1f2f4; color: var(--text-soft); }
.status-pending { background: #fdf3e0; color: #9a6a12; }
.status-approved { background: var(--success-bg); color: var(--success); }
.status-rejected { background: var(--danger-bg); color: var(--danger); }
.status-closed { background: #e9ecef; color: var(--ink); }

.return-form { margin-top: 1rem; }
.return-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0 1.2rem;
}

/* ---------- Účet / taby ---------- */

.tab-nav {
    display: flex;
    gap: 0.2rem;
    border-bottom: 2px solid var(--ink);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.tab-nav a {
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    color: var(--text-soft);
    padding: 0.6rem 1.1rem;
}
.tab-nav a:hover { color: var(--ink); }
.tab-nav .tab-active { color: #fff; background: var(--ink); }
.tab-logout { margin-left: auto; color: var(--danger) !important; }

.auth-card { max-width: 430px; margin: 3.5rem auto; }
.auth-switch { text-align: center; margin-top: 1.4rem; font-size: 0.92rem; }

/* Nabídka založení účtu v pokladně */
.account-offer {
    border: 1px solid var(--border);
    border-left: 3px solid var(--blue);
    background: var(--surface);
    padding: 1rem 1.2rem;
    margin: 1.4rem 0;
}
.account-offer .checkbox-field { margin: 0; }
.account-offer .field { margin: 0.9rem 0 0; }

/* Výzva k registraci po objednávce (host) */
.account-cta { background: var(--blue-tint); border-color: #cddcea; }
.account-cta h2 { margin-top: 0; }

/* ---------- Patička ---------- */

.site-footer {
    position: relative;
    margin-top: 5rem;
    background: var(--ink);
    color: #aab4bd;
    border-top: 3px solid var(--blue);
}
.footer-inner { padding: clamp(2.8rem, 6vw, 4rem) 1.5rem 1.6rem; }
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(0, 1fr));
    gap: 2.5rem 3rem;
    align-items: start;
}
.footer-brand { max-width: 30rem; }
.footer-wordmark {
    font-family: var(--font-display);
    display: inline-flex;
    align-items: baseline;
    gap: 0.1em;
    font-size: 1.7rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #fff;
    line-height: 1;
}
.footer-wordmark .reg { font-size: 0.5rem; color: #73a5cc; }
.footer-logo { display: inline-block; }
.footer-logo img { height: 40px; width: auto; display: block; }
.footer-brand p {
    max-width: 34ch;
    margin: 1rem 0 1.2rem;
    color: #8c97a1;
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-main-link {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: #cfe1f0;
}
.footer-main-link:hover { color: #fff; }
.footer-main-link span { transition: transform 0.2s; }
.footer-main-link:hover span { transform: translate(3px, -3px); }

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
}
.footer-heading {
    margin: 0 0 0.5rem;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.footer-column a {
    color: #9faab4;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-column a:hover { color: #fff; }
.footer-contact > p:last-child {
    margin: 0.4rem 0 0;
    color: #737f8a;
    font-size: 0.82rem;
    line-height: 1.7;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem 2rem;
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    padding-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #6f7a84;
    font-size: 0.74rem;
    letter-spacing: 0.02em;
}
.site-footer a { color: #cfe1f0; }
.site-footer a:hover { color: #fff; }

/* ---------- Lišta se souhlasem s cookies ---------- */

.cookie-bar {
    position: fixed;
    left: 1.2rem;
    bottom: 1.2rem;
    z-index: 200;
    width: min(380px, calc(100% - 2.4rem));
    background: var(--ink);
    color: #d7dde2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 3px solid var(--blue);
    box-shadow: 0 12px 40px rgba(14, 18, 22, 0.45);
    padding: 1.2rem 1.3rem 1.3rem;
    animation: cookieUp 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.cookie-close {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    background: none;
    border: none;
    color: #8c97a1;
    cursor: pointer;
    font-size: 0.9rem;
    line-height: 1;
    padding: 0.45rem;
}
.cookie-close:hover { color: #fff; }
.cookie-title {
    display: block;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 0.4rem;
}
.cookie-text { margin: 0 0 1rem; font-size: 0.84rem; line-height: 1.6; color: #aab4bd; }
.cookie-text a { color: #cfe1f0; }
.cookie-bar-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-bar-actions .btn { flex: 1; }
.cookie-bar .btn { border-color: #fff; color: #fff; background: transparent; }
.cookie-bar .btn:hover { background: #fff; color: var(--ink); }
.cookie-bar .btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.cookie-bar .btn-primary:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cookie-bar-hide {
    transform: translateY(calc(100% + 1.4rem));
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}
@keyframes cookieUp {
    from { transform: translateY(calc(100% + 1.4rem)); opacity: 0; }
    to { transform: none; opacity: 1; }
}

/* Cookie lišta na mobilu: čistá spodní lišta přes celou šířku */
@media (max-width: 560px) {
    .cookie-bar {
        left: 0;
        right: 0;
        bottom: 0;
        width: auto;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 1rem 1.1rem 1.1rem;
    }
    .cookie-title { font-size: 0.95rem; }
    .cookie-text { font-size: 0.82rem; margin-bottom: 0.85rem; }
    .cookie-bar-actions .btn { flex: 1; padding: 0.62rem 0.5rem; }
}

/* Patička na tabletu/mobilu */
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.6rem; }
    .footer-brand { grid-column: 1 / -1; max-width: none; }
    .footer-brand p { max-width: 42ch; }
}

@media (max-width: 560px) {
    .footer-inner { padding: 2.4rem 1.3rem 1.4rem; }
    .footer-grid { gap: 1.7rem 1.4rem; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-wordmark { font-size: 1.5rem; }
    .footer-heading { font-size: 0.64rem; margin-bottom: 0.35rem; }
    .footer-column { gap: 0.5rem; font-size: 0.92rem; }
    .footer-bottom {
        flex-direction: column;
        gap: 0.35rem;
        align-items: flex-start;
        margin-top: 2rem;
    }
}

.text-center { text-align: center; }

/* ---------- Právní informace ---------- */

.legal-page { max-width: 900px; margin: 0 auto; }
.legal-page .page-title { border-bottom: 3px solid var(--ink); padding-bottom: 1rem; }
.legal-page h2 { margin-top: 2.5rem; }
.legal-page p, .legal-page li { max-width: 78ch; }
.legal-lead {
    font-size: 1.05rem;
    background: var(--blue-tint);
    border-left: 3px solid var(--blue);
    padding: 1rem 1.2rem;
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    font-size: 0.9rem;
}
.legal-table th, .legal-table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}
.legal-table th { background: var(--surface); }
.withdrawal-form {
    border: 2px solid var(--ink);
    padding: 1.5rem;
    margin: 1.2rem 0;
    background: #fff;
}
.legal-consents {
    border-top: 1px solid var(--border);
    margin-top: 1.5rem;
    padding-top: 0.3rem;
}
.legal-consents .checkbox-field { align-items: flex-start; font-weight: 500; line-height: 1.45; }
.legal-consents .checkbox-field input { flex: 0 0 auto; margin-top: 0.2rem; }
.checkout-final-total {
    margin-top: 0.8rem;
    border-top: 2px solid var(--ink);
    font-size: 1.05rem;
}
.checkout-final-total strong { color: var(--blue); font-size: 1.2rem; }
.product-legal-info {
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    padding-top: 0.4rem;
}
.product-legal-info h2 { font-size: 1.2rem; }
.product-compliance { border: 1px solid var(--border); padding: 1rem 1.2rem; margin: 1.2rem 0; }

@media (max-width: 680px) {
    .legal-table { display: block; overflow-x: auto; }
}

@media print {
    .site-header, .site-footer, .flash { display: none !important; }
    .legal-page { max-width: none; }
    main.container { padding: 0; }
}

/* ============================================================
   ADMINISTRACE – dashboard se sidebarem
   ============================================================ */

.admin-body { background: var(--surface); }

.admin-layout { display: flex; min-height: 100vh; }

.admin-sidebar {
    flex: 0 0 240px;
    background: var(--ink);
    color: #b9c2cb;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.admin-logo {
    font-family: var(--font-display);
    font-size: 1.25rem;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    padding: 1.4rem 1.5rem 1.2rem;
    border-bottom: 1px solid #2a313a;
    line-height: 1.2;
    display: block;
}
.admin-logo img { height: 26px; width: auto; display: block; margin-bottom: 0.45rem; }
.admin-logo small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--blue);
    margin-top: 0.2rem;
}

.admin-menu { flex: 1; padding: 1rem 0; overflow-y: auto; }
.admin-menu a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1.5rem;
    color: #9aa6b0;
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 600;
    border-left: 3px solid transparent;
    transition: background 0.15s, color 0.15s;
}
.admin-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.admin-menu .menu-active {
    color: #fff;
    background: rgba(32, 90, 141, 0.25);
    border-left-color: var(--blue);
}
.admin-menu svg { width: 18px; height: 18px; flex: none; }
.menu-count {
    margin-left: auto;
    background: var(--blue);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    min-width: 19px;
    height: 19px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    padding: 0 5px;
}

.admin-sidebar-foot { border-top: 1px solid #2a313a; padding: 1rem 0; }
.admin-sidebar-foot a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 1.5rem;
    color: #9aa6b0;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}
.admin-sidebar-foot a:hover { color: #fff; }
.admin-sidebar-foot svg { width: 16px; height: 16px; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.admin-crumb {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-soft);
}
.admin-user { font-size: 0.82rem; color: var(--text-soft); }
.admin-user strong { color: var(--ink); }

.admin-content { padding: 0.5rem 2rem 3rem; max-width: 1200px; width: 100%; }
.admin-content .page-title { margin: 1.6rem 0 1.4rem; font-size: 1.9rem; }
.admin-content .card { border: none; box-shadow: 0 1px 3px rgba(14, 18, 22, 0.06); }
.admin-content .data-table { border: none; box-shadow: 0 1px 3px rgba(14, 18, 22, 0.06); }

.page-head {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 1.6rem;
}
.page-head .page-title { margin: 0 !important; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 1rem;
    margin: 1.6rem 0 1.2rem;
}
.stat-card {
    background: var(--bg);
    border-radius: 0;
    box-shadow: 0 1px 3px rgba(14, 18, 22, 0.06);
    border-top: 3px solid var(--border);
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    color: var(--text);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
a.stat-card:hover { box-shadow: 0 4px 14px rgba(14, 18, 22, 0.12); }
.stat-value { font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: var(--ink); }
.stat-label {
    color: var(--text-soft);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stat-attention { border-top-color: var(--blue); }
.stat-attention .stat-value { color: var(--blue); }

.admin-form { max-width: 760px; }

/* Sloupcový graf (statistiky) */
.chart {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    height: 230px;
    padding-top: 1.4rem;
    margin: 1rem 0 0.5rem;
}
.chart-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    min-width: 0;
}
.chart-bar {
    width: 100%;
    max-width: 46px;
    background: var(--blue);
    transition: background 0.15s;
}
.chart-col:hover .chart-bar { background: var(--ink); }
.chart-value {
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-soft);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
}
.chart-label {
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-soft);
    margin-top: 0.45rem;
    white-space: nowrap;
}
@media (max-width: 700px) {
    .chart-value { display: none; }
    .chart-label { transform: rotate(-50deg); margin-top: 0.9rem; }
}

.admin-content .section-title {
    font-size: 1.15rem;
    margin-top: 2.2rem;
    padding-bottom: 0.5rem;
    border-bottom-width: 1px;
    border-bottom-color: var(--border);
}

/* ---------- Mobil ---------- */

@media (max-width: 900px) {
    .admin-layout { flex-direction: column; }
    .admin-sidebar { position: static; height: auto; flex: none; }
    .admin-menu { display: flex; flex-wrap: wrap; padding: 0.4rem; }
    .admin-menu a { border-left: none; padding: 0.5rem 0.9rem; }
    .admin-sidebar-foot { display: flex; gap: 0.5rem; padding: 0.4rem; }
    .admin-topbar, .admin-content { padding-left: 1.2rem; padding-right: 1.2rem; }
}

/* ============================================================
   ANIMACE
   ============================================================ */

/* --- Keyframes --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes heroNetFloat {
    0%, 100% { transform: translateY(-50%); }
    50%      { transform: translateY(calc(-50% - 14px)); }
}
@keyframes badgePop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.6); }
    65%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}
@keyframes cartShake {
    0%, 100% { transform: rotate(0); }
    25%      { transform: rotate(-9deg); }
    55%      { transform: rotate(7deg); }
    80%      { transform: rotate(-4deg); }
}
@keyframes qtyBump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.18); }
    100% { transform: scale(1); }
}
@keyframes barGrow {
    from { transform: scaleY(0); }
    to   { transform: scaleY(1); }
}
@keyframes flashIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: none; }
}

/* --- Vstup stránky --- */
main.container { animation: fadeIn 0.45s ease both; }

/* --- Hero: sekvenční nástup --- */
.hero-editorial .hero-kicker  { animation: fadeUp 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.05s both; }
.hero-editorial h1            { animation: fadeUp 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) 0.18s both; }
.hero-editorial .hero-tagline { animation: fadeUp 0.7s  cubic-bezier(0.2, 0.7, 0.3, 1) 0.34s both; }
.hero-editorial .btn          { animation: fadeUp 0.7s  cubic-bezier(0.2, 0.7, 0.3, 1) 0.48s both; }

/* --- Scroll reveal (třídy přidává JS) --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1);
    transition-delay: var(--d, 0s);
}
.reveal.in-view { opacity: 1; transform: none; }

/* --- Hlavička: stín po odskrolování --- */
.site-header { transition: box-shadow 0.25s ease; }
.site-header.scrolled { box-shadow: 0 4px 18px rgba(14, 18, 22, 0.09); }

/* --- Flash zprávy --- */
.flash {
    animation: flashIn 0.4s cubic-bezier(0.2, 0.7, 0.3, 1) both;
    transition: opacity 0.35s, transform 0.35s;
}

/* --- Košík: puls badge a zatřesení ikony --- */
.badge-pop { animation: badgePop 0.55s cubic-bezier(0.3, 1.4, 0.5, 1) 0.15s both; }
.cart-shake .cart-icon { animation: cartShake 0.5s ease both; }

/* --- Letící produkt do košíku --- */
.fly-ghost {
    position: fixed;
    z-index: 999;
    margin: 0;
    object-fit: cover;
    pointer-events: none;
    opacity: 0.95;
    transition: transform 0.68s cubic-bezier(0.45, -0.05, 0.25, 1), opacity 0.68s ease;
    will-change: transform, opacity;
}
.fly-dot { background: var(--blue); border-radius: 999px; }

/* --- Mikrointerakce --- */
.btn { transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s; }
.btn:active { transform: scale(0.96); }
.btn .btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

.qty-bump { animation: qtyBump 0.25s ease both; }

.pill { transition: background 0.15s, color 0.15s, transform 0.12s; }
.pill:active { transform: scale(0.95); }

/* --- Graf: sloupce vyrostou --- */
.chart-bar {
    transform-origin: bottom;
    animation: barGrow 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.chart-col:nth-child(1)  .chart-bar { animation-delay: 0.05s; }
.chart-col:nth-child(2)  .chart-bar { animation-delay: 0.10s; }
.chart-col:nth-child(3)  .chart-bar { animation-delay: 0.15s; }
.chart-col:nth-child(4)  .chart-bar { animation-delay: 0.20s; }
.chart-col:nth-child(5)  .chart-bar { animation-delay: 0.25s; }
.chart-col:nth-child(6)  .chart-bar { animation-delay: 0.30s; }
.chart-col:nth-child(7)  .chart-bar { animation-delay: 0.35s; }
.chart-col:nth-child(8)  .chart-bar { animation-delay: 0.40s; }
.chart-col:nth-child(9)  .chart-bar { animation-delay: 0.45s; }
.chart-col:nth-child(10) .chart-bar { animation-delay: 0.50s; }
.chart-col:nth-child(11) .chart-bar { animation-delay: 0.55s; }
.chart-col:nth-child(12) .chart-bar { animation-delay: 0.60s; }

/* --- Sidebar administrace --- */
.admin-menu a { transition: background 0.15s, color 0.15s, padding-left 0.15s; }
.admin-menu a:hover { padding-left: 1.7rem; }

/* --- Respekt k omezení pohybu --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
    .header-inner { gap: 1rem; }
    /* Na úzkém displeji fotku schováme, hero je čistě tmavý a vyvážený */
    .hero-editorial .hero-inner { padding: 3rem 1.5rem 2.6rem; }
    .hero-editorial h1 { font-size: clamp(2.3rem, 12vw, 3.4rem); margin-bottom: 1rem; }
    .hero-kicker { font-size: 0.66rem; letter-spacing: 0.18em; margin-bottom: 0.9rem; }
    .hero-tagline { font-size: 0.96rem; margin-bottom: 1.8rem; }
    .hero-photo-side { display: none; }
    .hero-photo .hero-inner { min-height: 0; }
    .field-row { flex-direction: column; gap: 0; }
    .field-zip { flex: 1; }
    .card { padding: 1.3rem 1.4rem; }

    /* Košík: každý produkt jako stručná karta s popisky */
    .cart-table { border: none; }
    .cart-table thead { display: none; }
    .cart-table tbody { display: block; }
    .cart-table tr {
        display: block;
        border: 1px solid var(--border);
        margin-bottom: 0.8rem;
        padding: 0.6rem 0.9rem;
    }
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        border: none;
        padding: 0.3rem 0;
    }
    .cart-table td[data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: var(--text-soft);
    }
    .cart-table td.cart-product { font-weight: 600; }
    .cart-table td.cart-remove-cell { justify-content: flex-end; padding-top: 0.4rem; }
    .cart-table .qty-input { width: 90px; }

    /* Slevový kód a součty pod sebou */
    .cart-summary-row { flex-direction: column; gap: 1rem; }
    .cart-totals { width: 100%; min-width: 0; margin-left: 0; }
    .input-code { max-width: none; flex: 1; }

    /* Admin (a ostatní) široké tabulky → vodorovné posouvání místo rozbití layoutu */
    .data-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .data-table .rename-form .input { min-width: 120px; }
    .cell-actions { white-space: nowrap; }
}
