/* Rcaffe.cz - Design podle rcaffe.cz (Warehouse theme) */

:root {
    --bg: #fffdfd;
    --paper: #ffffff;
    --cream: #faf8f5;
    --light: #f7f7f7;

    --text: #1a1a1a;
    --text-secondary: #523d3d;
    --text-light: #6c6c6c;
    --text-muted: #999999;

    --primary: #6c1b1b;       /* burgundy red */
    --primary-dark: #4a1212;
    --primary-light: #8a2828;

    --accent: #dc0202;        /* promo red */
    --accent-dark: #b00000;
    --accent-pink: #ba0041;   /* sale */

    --success: #3a9a56;
    --warn: #ff9a52;
    --error: #d91a1a;

    --border: #e6e6e6;
    --border-dark: #cccccc;

    --coffee: #523d3d;
    --espresso: #2c1810;
    --milk: #f5f0eb;
    --gold: #c19b2e;

    --shadow: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: calc(14px * var(--fs, 1));
    color: var(--text);
    background: var(--bg);
    line-height: 1.5;
    letter-spacing: -0.2px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    font-weight: 700;
    line-height: 1.25;
}

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

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

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ HEADER ============ */

.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
}

/* Top bar with social + account links */
.topbar {
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    font-size: calc(12px * var(--fs, 1));
    padding: 8px 0;
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-links {
    display: flex;
    gap: 6px;
    list-style: none;
}
.social-links a {
    display: inline-flex;
    width: 26px;
    height: 26px;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    color: var(--text-light);
    font-size: calc(12px * var(--fs, 1));
    transition: all .2s;
}
.social-links a:hover {
    background: var(--primary);
    color: white;
}

.topbar-links {
    display: flex;
    gap: 20px;
    list-style: none;
}
.topbar-links a {
    color: var(--text-light);
    font-weight: 500;
}
.topbar-links a:hover { color: var(--primary); }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-light);
}
.currency-selector { font-weight: 600; }

/* Main header: logo + search + cart */
.header-main {
    padding: 22px 0;
}

.header-main .container {
    display: flex;
    align-items: center;
    gap: 40px;
    justify-content: space-between;
}

.logo {
    font-family: 'Montserrat', serif;
    font-size: calc(44px * var(--fs, 1));
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1.5px;
    line-height: 1;
    flex-shrink: 0;
    min-width: 180px;
}
.logo img {
    max-height: 80px !important;
    width: auto;
    display: block;
}
.logo-r { color: var(--accent); }
.logo-text { color: var(--text); }
.logo-dot { color: var(--accent); font-size: calc(28px * var(--fs, 1)); }
.logo small {
    display: block;
    font-size: calc(10px * var(--fs, 1));
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 2px;
}

.search-form {
    flex: 1;
    display: flex;
    max-width: 720px;
    border: 2px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color .15s;
    background: white;
}
.search-form:focus-within { border-color: var(--primary); }
.search-form input {
    flex: 1;
    border: none;
    padding: 11px 16px;
    font-size: calc(13px * var(--fs, 1));
    background: transparent;
    outline: none;
    font-family: inherit;
}
.search-form button {
    border: none;
    background: var(--primary);
    color: white;
    padding: 0 22px;
    cursor: pointer;
    font-size: calc(14px * var(--fs, 1));
    transition: background .15s;
    font-weight: 600;
}
.search-form button:hover { background: var(--primary-dark); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--light);
    border-radius: 50%;
    color: var(--text);
    font-size: calc(18px * var(--fs, 1));
    transition: all .2s;
}
.header-icon:hover { background: var(--primary); color: white; }

.cart-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ecebe8;          /* neutrální šedá místo černé */
    color: var(--text);
    border: 1px solid #dcd9d4;
    padding: 10px 18px;
    border-radius: 4px;
    position: relative;
    transition: background .2s, border-color .2s, color .2s;
    font-weight: 600;
    font-size: calc(13px * var(--fs, 1));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-btn:hover { background: #e2e0dc; border-color: #c9c5be; color: var(--text); }
.cart-icon { font-size: calc(18px * var(--fs, 1)); }
.cart-badge {
    background: var(--accent);
    color: white;
    font-size: calc(11px * var(--fs, 1));
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    min-width: 20px;
    text-align: center;
}

/* Main navigation */
.main-nav {
    background: var(--paper);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.main-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}
.main-nav > .container > ul > li {
    position: relative;
}
.main-nav a {
    display: block;
    padding: 14px 18px;
    color: var(--text);
    font-size: calc(12px * var(--fs, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all .15s;
    border-bottom: 3px solid transparent;
}
.main-nav a:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-more .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    display: none;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    z-index: 50;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
}
.nav-more:hover .dropdown { display: flex; }
.nav-more .dropdown li { width: 100%; }
.nav-more .dropdown a {
    padding: 11px 18px;
    font-size: calc(12px * var(--fs, 1));
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
}
.nav-more .dropdown a:hover {
    background: var(--cream);
    color: var(--primary);
    border-bottom-color: var(--border);
    border-left-color: var(--primary);
}

/* ============ HERO ============ */

.hero {
    background: var(--cream);
    padding: 60px 0;
    overflow: hidden;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero::before {
    content: "";
    position: absolute;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cellipse cx='50' cy='50' rx='25' ry='40' fill='%236c1b1b' opacity='0.05'/%3E%3Cline x1='50' y1='10' x2='50' y2='90' stroke='%236c1b1b' stroke-width='1' opacity='0.05'/%3E%3C/svg%3E") center/contain no-repeat;
    width: 600px; height: 600px;
    right: -150px; top: -100px;
    pointer-events: none;
}
.hero .container {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}
.hero-text h1 {
    font-size: calc(48px * var(--fs, 1));
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--text);
    font-weight: 800;
    letter-spacing: -1.5px;
}
.hero-text h1 em {
    color: var(--primary);
    font-style: normal;
    font-weight: 800;
}
.hero-text p {
    font-size: calc(16px * var(--fs, 1));
    color: var(--text-secondary);
    margin-bottom: 28px;
    max-width: 500px;
    line-height: 1.6;
}
.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    position: relative;
}
.hero-image .badge {
    background: var(--accent);
    color: white;
    display: inline-block;
    padding: 8px 18px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(12px * var(--fs, 1));
    letter-spacing: 1px;
    transform: rotate(-3deg);
    margin-bottom: 16px;
    border-radius: 2px;
}
.hero-image .visual {
    font-size: calc(180px * var(--fs, 1));
    line-height: 1;
    color: var(--primary);
    opacity: 0.85;
}

/* ============ BUTTONS ============ */

.btn {
    display: inline-block;
    padding: 11px 22px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: calc(12px * var(--fs, 1));
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .15s;
    font-family: inherit;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: white;
}
.btn-primary:hover { background: var(--primary-dark); color: white; }
.btn-accent {
    background: var(--accent);
    color: white;
}
.btn-accent:hover { background: var(--accent-dark); color: white; }
.btn-outline {
    background: transparent;
    border-color: var(--text);
    color: var(--text);
}
.btn-outline:hover { background: var(--text); color: white; }
.btn-dark {
    background: var(--text);
    color: white;
}
.btn-dark:hover { background: var(--primary); color: white; }
.btn-lg { padding: 14px 32px; font-size: calc(14px * var(--fs, 1)); }
.btn-sm { padding: 6px 14px; font-size: calc(11px * var(--fs, 1)); }
.btn-block { display: block; width: 100%; }

/* ============ SECTIONS ============ */

section { padding: 60px 0; }

.section-header {
    text-align: center;
    margin-bottom: 36px;
}
.section-header .eyebrow {
    color: var(--accent);
    font-size: calc(12px * var(--fs, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    display: block;
}
.section-header h2 {
    font-size: calc(32px * var(--fs, 1));
    margin-bottom: 8px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--primary);
    margin: 12px auto 0;
}
.section-header p {
    color: var(--text-light);
    font-size: calc(14px * var(--fs, 1));
    max-width: 600px;
    margin: 0 auto;
}

/* ============ CATEGORY GRID ============ */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.cat-card {
    background: white;
    border-radius: 4px;
    padding: 28px 18px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all .2s;
    color: var(--text);
    display: block;
    position: relative;
}
.cat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    color: var(--text);
}
.cat-card:hover h3 { color: var(--primary); }
.cat-card .cat-icon {
    font-size: calc(40px * var(--fs, 1));
    margin-bottom: 12px;
    color: var(--primary);
    line-height: 1;
}
.cat-card h3 {
    font-size: calc(14px * var(--fs, 1));
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: color .15s;
    line-height: 1.2;
}
.cat-card span {
    color: var(--text-muted);
    font-size: calc(11px * var(--fs, 1));
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============ PRODUCT GRID ============ */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.product-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all .25s;
    position: relative;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.product-image {
    aspect-ratio: 1;
    background: transparent;
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
    transition: transform .4s;
    mix-blend-mode: multiply;
}
.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--accent);
    color: white;
    padding: 3px 10px;
    border-radius: 2px;
    font-size: calc(10px * var(--fs, 1));
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}
.product-badge.sale { background: var(--accent-pink); }

.product-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.product-card .product-name {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(13px * var(--fs, 1));
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    min-height: 36px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .15s;
}
.product-card:hover .product-name { color: var(--primary); }

.product-catchline-card {
    font-size: calc(11px * var(--fs, 1));
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    font-size: calc(11px * var(--fs, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.product-price {
    font-size: calc(20px * var(--fs, 1));
    font-weight: 800;
    color: var(--accent);
    margin-top: 4px;
    line-height: 1;
}
.product-price small {
    font-size: calc(12px * var(--fs, 1));
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 6px;
    font-weight: 400;
}

.product-card-buttons {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.product-card-buttons .btn { flex: 1; padding: 9px; font-size: calc(11px * var(--fs, 1)); }

/* ============ PRODUCT DETAIL ============ */

.product-detail {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    padding-top: 20px;
}

.product-gallery .main-image {
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    aspect-ratio: 1;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 32px;
}
.product-gallery .main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.product-gallery .thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.product-gallery .thumbs img {
    width: 70px;
    height: 70px;
    border-radius: 4px;
    border: 1px solid var(--border);
    object-fit: contain;
    background: white;
    padding: 6px;
    cursor: pointer;
    transition: border-color .15s;
}
.product-gallery .thumbs img.active,
.product-gallery .thumbs img:hover {
    border-color: var(--primary);
}

.product-info h1 {
    font-size: calc(28px * var(--fs, 1));
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.product-catchline {
    font-size: calc(16px * var(--fs, 1));
    font-style: italic;
    color: var(--text-muted);
    margin: 6px 0 16px;
    line-height: 1.5;
}
.product-info .sku {
    color: var(--text-muted);
    font-size: calc(12px * var(--fs, 1));
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.product-info .price {
    font-size: calc(36px * var(--fs, 1));
    font-weight: 800;
    color: var(--accent);
    margin: 16px 0;
    line-height: 1;
}
.product-info .price small {
    font-size: calc(18px * var(--fs, 1));
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 10px;
    font-weight: 400;
}
.short-desc {
    font-size: calc(14px * var(--fs, 1));
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.short-desc p { margin-bottom: 8px; }

.add-to-cart-form {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
}
.quantity-input {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: white;
}
.quantity-input button {
    background: white;
    border: none;
    padding: 9px 14px;
    cursor: pointer;
    font-size: calc(16px * var(--fs, 1));
    color: var(--text);
    transition: background .15s;
}
.quantity-input button:hover { background: var(--cream); }
.quantity-input input {
    width: 56px;
    border: none;
    text-align: center;
    font-size: calc(14px * var(--fs, 1));
    font-weight: 600;
    outline: none;
    font-family: inherit;
}

.product-meta-table {
    background: var(--cream);
    border-radius: 4px;
    padding: 18px;
    margin-bottom: 20px;
    border-left: 3px solid var(--primary);
}
.product-meta-table dl {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 8px;
    font-size: calc(13px * var(--fs, 1));
}
.product-meta-table dt {
    color: var(--text-light);
    text-transform: uppercase;
    font-size: calc(11px * var(--fs, 1));
    letter-spacing: 0.5px;
    font-weight: 600;
}
.product-meta-table dd { font-weight: 600; }

.product-description {
    line-height: 1.7;
    color: var(--text);
    font-size: calc(14px * var(--fs, 1));
}
.product-description h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: calc(18px * var(--fs, 1));
}
.product-description p { margin-bottom: 12px; }
.product-description ul, .product-description ol { padding-left: 22px; margin-bottom: 12px; }
.product-description img { border-radius: 4px; margin: 12px 0; }
.product-description a { color: var(--accent); }

/* ============ CART ============ */

.cart-page {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}
.cart-items {
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 20px;
}
.cart-item {
    display: grid;
    grid-template-columns: 70px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-image {
    width: 70px;
    height: 70px;
    background: var(--cream);
    border-radius: 4px;
    padding: 6px;
    object-fit: contain;
}
.cart-item-info h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: calc(13px * var(--fs, 1));
    margin-bottom: 4px;
    font-weight: 600;
}
.cart-item-info p { font-size: calc(12px * var(--fs, 1)); color: var(--text-light); }
.cart-item-price { font-weight: 700; font-size: calc(16px * var(--fs, 1)); color: var(--accent); }
.cart-item-remove {
    color: var(--error);
    font-size: calc(16px * var(--fs, 1));
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.cart-summary {
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    border-top: 3px solid var(--primary);
    padding: 22px;
    position: sticky;
    top: 20px;
}
.cart-summary h3 {
    margin-bottom: 16px;
    font-size: calc(18px * var(--fs, 1));
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: calc(13px * var(--fs, 1));
}
.summary-row.total {
    font-size: calc(18px * var(--fs, 1));
    font-weight: 800;
    color: var(--accent);
    border-top: 2px solid var(--text);
    margin-top: 10px;
    padding-top: 12px;
}
.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.cart-empty .icon { font-size: calc(70px * var(--fs, 1)); margin-bottom: 16px; opacity: .3; color: var(--primary); }

/* ============ CHECKOUT ============ */

.checkout-page {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 24px;
    align-items: start;
}
.checkout-form {
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 28px;
}
.form-group {
    margin-bottom: 16px;
}
.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: calc(12px * var(--fs, 1));
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    font-size: calc(14px * var(--fs, 1));
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    background: white;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.checkout-form h3 {
    font-size: calc(16px * var(--fs, 1));
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.checkout-form h3:not(:first-child) { margin-top: 28px; }

.shipping-method, .payment-method {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 14px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all .15s;
}
.shipping-method:hover,
.payment-method:hover { border-color: var(--primary); }
.shipping-method:has(input:checked),
.payment-method:has(input:checked) {
    border-color: var(--primary);
    background: var(--cream);
    border-left: 3px solid var(--primary);
}

/* ============ PAGE LAYOUTS ============ */

.breadcrumbs {
    padding: 12px 0;
    font-size: calc(12px * var(--fs, 1));
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.breadcrumbs a { color: var(--text-light); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs span { margin: 0 8px; }

.page-header {
    background: var(--cream);
    padding: 32px 0;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}
.page-header h1 {
    font-size: calc(32px * var(--fs, 1));
    margin-bottom: 6px;
    font-weight: 800;
    letter-spacing: -0.5px;
}
.page-header p {
    color: var(--text-light);
    max-width: 700px;
    font-size: calc(13px * var(--fs, 1));
}

/* ============ TOOLBAR ============ */

.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: calc(13px * var(--fs, 1));
}
.toolbar select {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: inherit;
    font-size: calc(12px * var(--fs, 1));
    background: white;
}

/* ============ FLASH ============ */

.flash {
    padding: 12px 18px;
    border-radius: 4px;
    margin: 12px 0;
    font-weight: 500;
    font-size: calc(13px * var(--fs, 1));
    border-left: 3px solid;
}
.flash-success { background: #e8f5e9; color: #1f6e2c; border-color: var(--success); }
.flash-error { background: #fdecea; color: #8a0000; border-color: var(--error); }
.flash-info { background: var(--cream); color: var(--primary); border-color: var(--primary); }

/* ============ FEATURES ============ */

.features {
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}
.feature {
    text-align: center;
    padding: 16px;
}
.feature-icon {
    font-size: calc(36px * var(--fs, 1));
    margin-bottom: 10px;
    color: var(--primary);
    line-height: 1;
}
.feature h3 {
    font-size: calc(14px * var(--fs, 1));
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.feature p { color: var(--text-light); font-size: calc(12px * var(--fs, 1)); }

/* ============ STATIC PAGES ============ */

.content-page {
    max-width: 820px;
    margin: 32px auto;
    padding: 36px;
    background: white;
    border-radius: 4px;
    border: 1px solid var(--border);
}
.content-page h1 { margin-bottom: 20px; font-size: calc(32px * var(--fs, 1)); }
.content-page h2 { margin: 28px 0 14px; font-size: calc(22px * var(--fs, 1)); color: var(--primary); }
.content-page p { margin-bottom: 14px; color: var(--text); font-size: calc(14px * var(--fs, 1)); line-height: 1.7; }
.content-page ul, .content-page ol { padding-left: 22px; margin-bottom: 14px; }
.content-page li { margin-bottom: 4px; font-size: calc(14px * var(--fs, 1)); }

/* ============ FOOTER ============ */

.site-footer {
    background: var(--primary-dark);
    color: white;
    padding: 50px 0 20px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-col h4 {
    color: white;
    font-size: calc(14px * var(--fs, 1));
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-col p {
    color: rgba(255,255,255,0.75);
    font-size: calc(13px * var(--fs, 1));
    margin-bottom: 6px;
    line-height: 1.6;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col ul a {
    color: rgba(255,255,255,0.75);
    font-size: calc(13px * var(--fs, 1));
    transition: color .15s;
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: calc(12px * var(--fs, 1));
}

/* ============ RESPONSIVE ============ */

/* ============ HAMBURGER ============ */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    padding: 8px;
    flex-shrink: 0;
}
.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* sticky header shadow */
.site-header.scrolled { box-shadow: 0 2px 12px rgba(0,0,0,.08); }

/* ============ RESPONSIVE ============ */

/* — 1100px: категорії 6 карт — */
@media (max-width: 1100px) {
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .category-grid .cat-card:nth-child(n+7) { display: none; }
}

/* — 980px tablet landscape — */
@media (max-width: 980px) {
    .hero .container { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1 { font-size: calc(34px * var(--fs, 1)); }
    .hero-image { display: none; }
    .product-detail { grid-template-columns: 1fr; }
    .product-detail .product-gallery { max-width: 480px; margin: 0 auto; }
    .cart-page, .checkout-page { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* — 768px tablet portrait — */
@media (max-width: 768px) {
    /* Nav → hamburger */
    .nav-hamburger { display: flex; }
    #nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 3px solid var(--primary);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 200;
        padding: 8px 0;
    }
    #nav-menu.open { display: flex; }
    #nav-menu > li > a { padding: 13px 20px; font-size: calc(13px * var(--fs, 1)); border-bottom: 1px solid var(--border); }
    #nav-menu > li:last-child > a { border-bottom: none; }
    .nav-more .dropdown {
        position: static;
        display: flex !important;
        flex-direction: column;
        box-shadow: none;
        border: none;
        border-top: none;
        background: var(--cream);
        min-width: unset;
    }
    .nav-more .dropdown a { padding: 10px 32px; font-size: calc(12px * var(--fs, 1)); }
    .main-nav .container { position: relative; display: flex; align-items: center; justify-content: flex-end; padding: 8px 24px; }

    /* Header */
    .header-main .container { flex-wrap: wrap; gap: 10px; }
    .search-form { order: 3; width: 100%; }
    .logo { min-width: unset; font-size: calc(34px * var(--fs, 1)); }

    /* Topbar */
    .topbar { display: none; }

    /* Category grid 4 karty */
    .category-grid { grid-template-columns: repeat(2, 1fr); }
    .category-grid .cat-card:nth-child(n+5) { display: none; }

    /* Products */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .section-header h2 { font-size: calc(24px * var(--fs, 1)); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }

    /* Cart */
    .cart-item { grid-template-columns: 60px 1fr; gap: 10px; }
    .cart-item-price, .cart-item-remove { grid-column: 2; }
}

/* — 480px mobile — */
@media (max-width: 480px) {
    .container { padding: 0 16px; }

    /* Logo */
    .logo { font-size: calc(28px * var(--fs, 1)); }
    .logo img { max-height: 52px !important; }

    /* Header actions */
    .cart-label { display: none; }
    .cart-btn { padding: 10px 14px; }

    /* Hero */
    .hero { padding: 40px 0; }
    .hero-text h1 { font-size: calc(26px * var(--fs, 1)); }
    .hero-buttons { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Category grid 2 karty */
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid .cat-card:nth-child(n+3) { display: none; }
    .cat-card { padding: 20px 12px; }
    .cat-icon { font-size: calc(28px * var(--fs, 1)); }
    .cat-card h3 { font-size: calc(12px * var(--fs, 1)); }

    /* Products single column */
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .product-card .product-name { font-size: calc(12px * var(--fs, 1)); }

    /* Sections */
    section { padding: 40px 0; }

    /* Footer */
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .features-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feature { padding: 20px 12px; }

    /* Breadcrumbs */
    .breadcrumbs { font-size: calc(11px * var(--fs, 1)); }

    /* Article home cards */
    .articles-home-grid { grid-template-columns: 1fr; }

    /* Forms */
    .btn-lg { padding: 13px 20px; font-size: calc(13px * var(--fs, 1)); }
}

/* ============ PAGINATION ============ */

.pagination {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 32px 0;
}
.pagination a, .pagination span {
    padding: 7px 12px;
    border-radius: 4px;
    border: 1px solid var(--border);
    color: var(--text);
    background: white;
    font-size: calc(13px * var(--fs, 1));
    font-weight: 600;
}
.pagination a:hover { background: var(--cream); color: var(--primary); border-color: var(--primary); }
.pagination .active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============ EMPTY STATE ============ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}
.empty-state .icon { font-size: calc(70px * var(--fs, 1)); margin-bottom: 16px; opacity: .3; color: var(--primary); }
.empty-state h2 { margin-bottom: 10px; color: var(--text); font-size: calc(24px * var(--fs, 1)); }

/* ============ LIGHTBOX ============ */

.main-image { position: relative; }
.lightbox-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,.45);
    color: white;
    border: none;
    border-radius: 6px;
    width: 34px;
    height: 34px;
    font-size: calc(13px * var(--fs, 1));
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity .2s;
}
.main-image:hover .lightbox-trigger { opacity: 1; }

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    user-select: none;
    touch-action: none;   /* gesta (pinch/posun/swipe) řídí JS galerie */
    overscroll-behavior: contain;
}
.lightbox.active { display: flex; }
.lightbox-inner img { will-change: transform; transform-origin: center center; -webkit-user-drag: none; }
.lightbox.zoomed .lightbox-inner img { cursor: grab; }
.lightbox.zoomed .lightbox-prev, .lightbox.zoomed .lightbox-next, .lightbox.zoomed .lightbox-counter { opacity: 0; pointer-events: none; }
@media (max-width: 600px) {
    .lightbox-inner, .lightbox-inner img { max-width: 100vw; max-height: 86vh; }
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,.1);
    border: none;
    color: white;
    font-size: calc(32px * var(--fs, 1));
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .8;
    transition: background .15s, opacity .15s;
    z-index: 2;
}
.lightbox-close:hover { opacity: 1; background: rgba(255,255,255,.2); }

/* Prev / Next arrows */
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: white;
    font-size: calc(42px * var(--fs, 1));
    line-height: 1;
    width: 52px;
    height: 72px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: .7;
    transition: background .15s, opacity .15s;
    z-index: 2;
    padding: 0;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; background: rgba(255,255,255,.25); }

/* Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.65);
    font-size: calc(13px * var(--fs, 1));
    font-weight: 600;
    letter-spacing: .5px;
    pointer-events: none;
}

.lightbox-inner {
    max-width: calc(100vw - 120px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-inner img {
    max-width: calc(100vw - 120px);
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    mix-blend-mode: normal;
    transition: opacity .2s;
}

/* Mobile: full width arrows */
@media (max-width: 600px) {
    .lightbox-prev { left: 8px; width: 40px; height: 60px; font-size: calc(32px * var(--fs, 1)); }
    .lightbox-next { right: 8px; width: 40px; height: 60px; font-size: calc(32px * var(--fs, 1)); }
    .lightbox-inner { max-width: calc(100vw - 96px); }
    .lightbox-inner img { max-width: calc(100vw - 96px); }
}

/* ============ ARTICLES – HOME SECTION ============ */

.articles-home-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 900px) { .articles-home-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .articles-home-grid { grid-template-columns: 1fr; } }

.article-home-card {
    background: white;
    border-radius: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow .2s, border-color .2s, transform .2s;
}
.article-home-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
    transform: translateY(-3px);
}
.article-home-img {
    aspect-ratio: 16/9;
    overflow: hidden;
}
.article-home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.article-home-card:hover .article-home-img img { transform: scale(1.05); }
.article-home-body {
    padding: 22px 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.article-home-eyebrow {
    font-size: calc(11px * var(--fs, 1));
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--primary);
    font-weight: 600;
}
.article-home-card h3 {
    font-size: calc(16px * var(--fs, 1));
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}
.article-home-card p {
    font-size: calc(13px * var(--fs, 1));
    color: var(--text-muted);
    line-height: 1.6;
    flex: 1;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-home-more {
    font-size: calc(13px * var(--fs, 1));
    font-weight: 600;
    color: var(--primary);
    margin-top: 4px;
}

/* ============ ARTICLES LIST PAGE ============ */

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 820px;
}
.article-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
    align-items: start;
}
@media (max-width: 640px) { .article-row { grid-template-columns: 1fr; } }
.article-row-img {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
}
.article-row-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
}
.article-row:hover .article-row-img img { transform: scale(1.04); }
.article-row-body { display: flex; flex-direction: column; gap: 10px; }

/* Article hero image */
.article-hero-img {
    margin: 28px 0 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/7;
}
.article-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-card {
    border-bottom: 1px solid var(--border);
    padding-bottom: 32px;
}
.article-card-meta {
    display: flex;
    gap: 16px;
    font-size: calc(12px * var(--fs, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 10px;
}
.article-card-title {
    font-size: calc(22px * var(--fs, 1));
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}
.article-card-title a {
    color: var(--text);
    text-decoration: none;
}
.article-card-title a:hover { color: var(--primary); }
.article-card-perex {
    font-size: calc(15px * var(--fs, 1));
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 16px;
}
.article-read-more {
    font-size: calc(14px * var(--fs, 1));
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.article-read-more:hover { text-decoration: underline; }

/* ============ ARTICLE DETAIL PAGE ============ */

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 48px;
    align-items: start;
    margin-top: 32px;
}
@media (max-width: 860px) { .article-layout { grid-template-columns: 1fr; } }

.article-header { margin-bottom: 36px; }
.article-meta {
    display: flex;
    gap: 16px;
    font-size: calc(12px * var(--fs, 1));
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 14px;
}
.article-header h1 {
    font-size: calc(32px * var(--fs, 1));
    line-height: 1.25;
    margin: 0 0 16px;
}
.article-perex {
    font-size: calc(17px * var(--fs, 1));
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
    border-left: 3px solid var(--primary);
    padding-left: 20px;
}

.article-body {
    font-size: calc(15px * var(--fs, 1));
    line-height: 1.85;
    color: var(--text);
}
.article-body h2 {
    font-size: calc(22px * var(--fs, 1));
    font-weight: 700;
    margin: 36px 0 14px;
    color: var(--espresso);
}
.article-body p { margin: 0 0 18px; }
.article-body ul, .article-body ol { margin: 0 0 18px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--espresso); }

.article-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }

.article-sidebar { position: sticky; top: 100px; }
.article-sidebar h3 {
    font-size: calc(16px * var(--fs, 1));
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}
.sidebar-articles { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.sidebar-article {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    padding: 12px;
    background: var(--milk);
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color .15s;
}
.sidebar-article:hover { border-color: var(--primary); }
.sidebar-article-date { font-size: calc(11px * var(--fs, 1)); color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; }
.sidebar-article-title { font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--text); line-height: 1.4; }

.sidebar-cta {
    background: var(--espresso);
    color: var(--cream);
    border-radius: 8px;
    padding: 20px;
}
.sidebar-cta h4 { font-size: calc(15px * var(--fs, 1)); color: white; margin: 0 0 8px; }
.sidebar-cta p { font-size: calc(13px * var(--fs, 1)); color: rgba(245,230,211,.8); margin: 0 0 14px; }


/* Hlavní menu: vždy jeden řádek, písmo a mezery se zmenšují s šířkou okna
   (--nav-fit doladí JS v main.js, kdyby se dlouhé názvy kategorií nevešly) */
@media (min-width: 769px) {
    .main-nav > .container > ul {
        flex-wrap: nowrap;
        justify-content: space-between;
    }
    .main-nav > .container > ul > li { flex: 0 1 auto; min-width: 0; }
    .main-nav > .container > ul > li > a {
        white-space: nowrap;
        font-size: calc(clamp(9px, 0.95vw, 12px) * var(--nav-fit, 1) * var(--fs, 1));
        padding: 14px calc(clamp(4px, 1.1vw, 18px) * var(--nav-fit, 1));
        letter-spacing: calc(clamp(0px, 0.04vw, 0.5px) * var(--nav-fit, 1));
    }
    .nav-more .dropdown { left: auto; right: 0; }
}

/* ============ Zákaznický účet ============ */
.account-box {
    max-width: 520px;
    margin: 32px auto 64px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: clamp(20px, 4vw, 36px);
}
.account-box h1 { margin-bottom: 20px; font-size: calc(clamp(24px, 4vw, 32px) * var(--fs, 1)); }
.account-box hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.account-links { margin-top: 14px; font-size: calc(14px * var(--fs, 1)); }
.account-form .form-group { margin-bottom: 14px; }
.account-form h3 { margin: 24px 0 12px; }
.account-form input:not([type=checkbox]), .account-form select, .account-form textarea { width: 100%; }
.account-form .form-row { display: flex; flex-wrap: wrap; gap: 0 16px; }
.account-form .form-row > .form-group { flex: 1 1 200px; min-width: 0; }
.check-line { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; font-size: calc(14px * var(--fs, 1)); cursor: pointer; }
.check-line input { margin-top: 3px; flex-shrink: 0; }

.account-page { display: flex; flex-wrap: wrap; gap: 32px; margin: 24px 0 64px; align-items: flex-start; }
.account-nav {
    flex: 1 1 220px; max-width: 280px;
    display: flex; flex-direction: column;
    background: var(--milk, #faf8f5); border-radius: 12px; overflow: hidden;
}
.account-hello { padding: 18px; font-weight: 700; border-bottom: 1px solid var(--border); }
.account-hello small { display: block; font-weight: 400; color: var(--text-light); font-size: calc(13px * var(--fs, 1)); overflow-wrap: anywhere; }
.account-nav a { padding: 12px 18px; color: var(--text); border-left: 3px solid transparent; }
.account-nav a.active, .account-nav a:hover { border-left-color: var(--primary); color: var(--primary); background: white; }
.account-main { flex: 3 1 420px; min-width: 0; }
.account-main h1 { margin-bottom: 20px; font-size: calc(clamp(24px, 4vw, 32px) * var(--fs, 1)); }
.account-orders { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.account-order {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
    padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text);
}
.account-order:last-child { border-bottom: none; }
.account-order:hover { background: var(--milk, #faf8f5); }
.ao-num { flex: 1 1 160px; }
.ao-num small { display: block; color: var(--text-light); font-size: calc(13px * var(--fs, 1)); }
.ao-status { flex: 1 1 160px; font-size: calc(14px * var(--fs, 1)); font-weight: 600; }
.ao-total { flex: 0 0 auto; font-weight: 700; margin-left: auto; }
@media (max-width: 640px) {
    .account-nav { max-width: none; flex-basis: 100%; flex-direction: row; flex-wrap: wrap; }
    .account-hello { flex-basis: 100%; }
    .account-nav a { flex: 1 1 auto; text-align: center; border-left: none; border-bottom: 3px solid transparent; }
    .account-nav a.active { border-bottom-color: var(--primary); }
}

/* ============ Texty stránek ============ */
.legal-page h2 { margin-top: 32px; }
.legal-page h3 { margin-top: 20px; font-size: calc(17px * var(--fs, 1)); }
.legal-company { border-collapse: collapse; margin: 12px 0 20px; width: 100%; max-width: 640px; }
.legal-company th, .legal-company td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.legal-company th { font-weight: 600; width: 45%; }

/* ============ Množstevní ceny ============ */
.price-tiers { background: var(--milk, #faf8f5); border: 1px dashed var(--gold, #c9a227); border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; max-width: 360px; }
.price-tiers table { width: 100%; margin-top: 6px; font-size: calc(14px * var(--fs, 1)); }
.price-tiers td { padding: 3px 0; }
.price-tiers td:last-child { text-align: right; }

/* ============ Patička – novinky ============ */
.footer-newsletter { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.footer-newsletter input[type=email] { flex: 1 1 160px; min-width: 0; padding: 8px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: inherit; }
.footer-newsletter input[type=email]::placeholder { color: rgba(255,255,255,.6); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.site-footer a { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.1); color: white; font-size: calc(16px * var(--fs, 1));
}
.footer-social a:hover { background: var(--primary); }
@media (max-width: 480px) {
    .footer-col h4 { font-size: calc(13px * var(--fs, 1)); }
    .footer-col p, .footer-col ul a { font-size: calc(13px * var(--fs, 1)); }
    .footer-newsletter button { flex: 1 1 100%; }
}
.footer-col p a { color: rgba(255,255,255,.9); text-decoration: underline; text-underline-offset: 2px; }
.footer-col p a:hover { color: white; }

/* Mobil: vyhledávání v řádku s menu (vlevo), košík vpravo nahoře */
.search-form--nav { display: none; }
@media (max-width: 768px) {
    .header-main .container { flex-wrap: nowrap; }
    .header-main .search-form:not(.search-form--nav) { display: none; }
    .header-actions { margin-left: auto; }
    .main-nav .container { justify-content: space-between; gap: 10px; padding: 8px 16px; }
    .search-form--nav { display: flex; flex: 1 1 auto; min-width: 0; max-width: none; order: 0; width: auto; }
    .search-form--nav input { min-width: 0; padding: 9px 12px; font-size: calc(14px * var(--fs, 1)); }
    .search-form--nav button { padding: 0 14px; }
    .main-nav .nav-hamburger { flex-shrink: 0; order: 1; }
}
.about-lead { font-size: calc(17px * var(--fs, 1)); line-height: 1.7; background: var(--milk, #faf8f5); border-left: 4px solid var(--primary); padding: 16px 20px; border-radius: 8px; margin-bottom: 24px; }

/* Nákupní tlačítka (Do košíku, Objednat) – světle zelená */
.btn-buy {
    background: #4ade80; color: #052e16; border: 1px solid #22c55e;
    font-weight: 700;
}
.btn-buy:hover, .btn-buy:focus-visible { background: #22c55e; color: #052e16; border-color: #16a34a; }
.btn-buy:active { background: #16a34a; color: white; }

/* Okénko po přidání do košíku */
.cart-popup { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 16px; }
.cart-popup.open { display: flex; }
.cart-popup-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.cart-popup-box {
    position: relative; width: 100%; max-width: 420px; background: white; border-radius: 14px;
    padding: 22px 20px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); animation: cpIn .18s ease-out;
}
@keyframes cpIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.cart-popup-x { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: calc(26px * var(--fs, 1)); line-height: 1; cursor: pointer; color: var(--text-light); padding: 4px 8px; }
.cart-popup-title { font-weight: 700; font-size: calc(18px * var(--fs, 1)); color: #15803d; margin-bottom: 14px; }
.cart-popup-item { display: flex; gap: 12px; align-items: center; }
.cart-popup-item img { width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: #faf8f5; flex-shrink: 0; }
.cart-popup-item strong { display: block; font-size: calc(15px * var(--fs, 1)); overflow-wrap: anywhere; }
.cart-popup-item small { display: block; color: var(--text-light); margin-top: 4px; font-size: calc(13px * var(--fs, 1)); }
.cp-free { margin: 14px 0 0; font-size: calc(13px * var(--fs, 1)); color: var(--text-light); }
.cart-popup-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cart-popup-actions .btn { flex: 1 1 150px; justify-content: center; text-align: center; }
.cart-popup-actions .btn-outline { border-color: var(--border); color: var(--text); }
body.cart-popup-lock { overflow: hidden; }
@media (max-width: 480px) {
    .cart-popup { align-items: flex-end; padding: 0; }
    .cart-popup-box { max-width: none; border-radius: 16px 16px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
    .cart-popup-actions { flex-direction: column-reverse; }
    .cart-popup-actions .btn { flex: 0 0 auto; width: 100%; min-height: 48px; }
}

/* Spodní menu na mobilu (zapíná se v Nastavení) */
.bottom-nav { display: none; }
@media (max-width: 768px) {
    .bottom-nav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
        background: white; border-top: 1px solid var(--border); box-shadow: 0 -4px 16px rgba(0,0,0,.06);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .bottom-nav a, .bottom-nav button {
        flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
        gap: 3px; padding: 8px 2px 7px; border: none; background: none; color: var(--text-light);
        font: inherit; font-size: calc(11px * var(--fs, 1)); font-weight: 600; cursor: pointer; position: relative; text-decoration: none;
    }
    .bottom-nav i { font-size: calc(19px * var(--fs, 1)); }
    .bottom-nav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .bottom-nav .active { color: var(--primary); }
    .bn-badge {
        position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px;
        border-radius: 999px; background: #22c55e; color: #052e16; font-size: calc(11px * var(--fs, 1)); line-height: 18px; text-align: center;
    }
    body:has(.bottom-nav) { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
}

/* Košík: koš místo křížku */
.cart-item-remove {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 8px; color: var(--text-light);
    font-size: calc(16px * var(--fs, 1)); text-decoration: none;
}
.cart-item-remove:hover, .cart-item-remove:focus-visible { color: var(--error, #b91c1c); background: #fef2f2; }
@media (max-width: 768px) {
    .cart-item { position: relative; }
    .cart-item-info { padding-right: 40px; min-width: 0; }
    .cart-item-remove { position: absolute; top: 10px; right: 0; grid-column: auto; }
}

/* Boční panel kategorií (zprava) */
.side-drawer { position: fixed; inset: 0; z-index: 950; visibility: hidden; pointer-events: none; }
.side-drawer.open { visibility: visible; pointer-events: auto; }
.side-drawer-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.side-drawer.open .side-drawer-backdrop { opacity: 1; }
.side-drawer-panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(86vw, 360px);
    background: white; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s ease; box-shadow: -8px 0 30px rgba(0,0,0,.2);
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
}
.side-drawer.open .side-drawer-panel { transform: none; }
.side-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 3px solid var(--primary); }
.side-drawer-head strong { font-size: calc(18px * var(--fs, 1)); }
.side-drawer-x { border: none; background: none; font-size: calc(30px * var(--fs, 1)); line-height: 1; cursor: pointer; color: var(--text); padding: 0 6px; }
.side-drawer-body { overflow-y: auto; flex: 1; }
.sd-list { list-style: none; margin: 0; padding: 0; }
.sd-list > li > a, .sd-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--text);
    font-weight: 700; font-size: calc(13px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .3px; cursor: pointer; list-style: none;
}
.sd-list summary::-webkit-details-marker { display: none; }
.sd-list details[open] summary i { transform: rotate(180deg); }
.sd-list details ul { list-style: none; margin: 0; padding: 0; background: var(--cream, #faf8f5); }
.sd-list details ul a { display: block; padding: 12px 18px 12px 32px; border-bottom: 1px solid var(--border); color: var(--text); font-size: calc(13px * var(--fs, 1)); }
.sd-secondary > li > a { font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--text-light); }
body.drawer-lock { overflow: hidden; }
@media (min-width: 769px) { .side-drawer { display: none; } }
@media (max-width: 768px) { .bottom-nav { z-index: 960; } .bottom-nav [aria-expanded="true"] { color: var(--primary); } }
.currency-selector { display: inline-flex; gap: 2px; }
.currency-selector a { padding: 2px 8px; border-radius: 4px; color: inherit; text-decoration: none; opacity: .7; }
.currency-selector a.active { opacity: 1; font-weight: 700; background: rgba(0,0,0,.06); }

/* Filtry kategorie */
.filters { margin: 0 0 16px; border: 1px solid var(--border); border-radius: 10px; background: white; }
.filters summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
.filters summary::-webkit-details-marker { display: none; }
.filters-on { background: #dcfce7; color: #166534; border-radius: 999px; padding: 2px 8px; font-size: calc(11px * var(--fs, 1)); }
.filters-form { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; padding: 4px 16px 16px; }
.ff { display: flex; flex-direction: column; gap: 4px; font-size: calc(12px * var(--fs, 1)); color: var(--text-light); flex: 1 1 140px; min-width: 0; }
.ff input, .ff select { padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; font-size: calc(14px * var(--fs, 1)); color: var(--text); width: 100%; background: white; }
.ff-check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: calc(14px * var(--fs, 1)); flex: 0 0 auto; padding-bottom: 10px; }
.ff-check input { width: auto; }
.ff-actions { display: flex; gap: 8px; flex: 1 1 100%; flex-wrap: wrap; }

/* Oblíbené a hlídač */
.fav-form { margin: 10px 0 0; }
.fav-btn { border: none; background: none; color: var(--text-light); cursor: pointer; font: inherit; font-size: calc(14px * var(--fs, 1)); padding: 6px 0; display: inline-flex; gap: 8px; align-items: center; }
.fav-btn.on, .fav-btn:hover { color: #be123c; }
.stock-alert { margin: 16px 0; padding: 14px 16px; border: 1px dashed #b45309; border-radius: 10px; background: #fffbeb; font-size: calc(14px * var(--fs, 1)); }
.sa-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sa-row input[type=email] { flex: 1 1 180px; min-width: 0; padding: 9px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.account-order { position: relative; }
.ao-num { color: var(--text); text-decoration: none; }
.ao-reorder { flex: 0 0 auto; margin: 0; }

/* Hodnocení */
.stars { --r: 0; display: inline-block; font-size: calc(16px * var(--fs, 1)); line-height: 1; letter-spacing: 2px;
    background: linear-gradient(90deg, #f59e0b calc(var(--r) / 5 * 100%), #d4d4d8 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars::before { content: "★★★★★"; }
.rating-sum { display: inline-flex; gap: 6px; align-items: center; color: var(--text-light); font-size: calc(14px * var(--fs, 1)); margin: -6px 0 10px; text-decoration: none; }
.reviews { margin: 60px 0; }
.reviews h2 small { font-size: calc(15px * var(--fs, 1)); color: var(--text-light); font-weight: 500; }
.review { border-bottom: 1px solid var(--border); padding: 14px 0; }
.review-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.review-head small { color: var(--text-light); }
.verified { color: #15803d; font-size: calc(12px * var(--fs, 1)); font-weight: 600; }
.review p { margin: 6px 0 0; }
.review-reply { background: var(--milk, #faf8f5); padding: 8px 12px; border-radius: 8px; font-size: calc(14px * var(--fs, 1)); }
.review-form { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; max-width: 560px; }
.review-form textarea { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
.review-form .btn { align-self: flex-start; }
.star-input { border: none; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input legend { font-size: calc(13px * var(--fs, 1)); color: var(--text-light); margin-bottom: 4px; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: calc(30px * var(--fs, 1)); color: #d4d4d8; cursor: pointer; padding: 0 2px; line-height: 1; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--primary); border-radius: 4px; }
.muted { color: var(--text-light); }
.interests { border: none; padding: 0; margin: 8px 0 14px; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.interests legend { font-weight: 600; margin-bottom: 4px; }

/* Cookie lišta */
.cookie-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 990; max-width: 720px; margin: 0 auto;
    background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18);
    padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { flex: 1 1 280px; margin: 0; font-size: calc(13px * var(--fs, 1)); }
.cookie-actions { display: flex; gap: 8px; flex: 1 1 220px; }
.cookie-actions .btn { flex: 1 1 0; justify-content: center; }
@media (max-width: 768px) { body:has(.bottom-nav) .cookie-bar { bottom: calc(70px + env(safe-area-inset-bottom)); } }

/* Poukazy, body */
.gift-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 20px 0 30px; }
.gift-values { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 100%; }
.gift-values legend { font-weight: 700; margin-bottom: 8px; }
.gift-value input { position: absolute; opacity: 0; }
.gift-value span { display: inline-block; padding: 14px 20px; border: 2px solid var(--border); border-radius: 12px; font-weight: 700; font-size: calc(18px * var(--fs, 1)); cursor: pointer; }
.gift-value input:checked + span { border-color: #22c55e; background: #f0fdf4; }
.gift-value input:focus-visible + span { outline: 2px solid var(--primary); }
.points-line { margin: 10px 0; }
.points-box { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 12px 16px; margin-bottom: 18px; }
.points-box small { color: var(--text-light); }
.points-box ul { margin: 6px 0 0; padding-left: 18px; font-size: calc(13px * var(--fs, 1)); }

/* Předplatné */
.sub-box { margin: 14px 0; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 10px; }
.sub-box summary { cursor: pointer; padding: 12px 14px; font-weight: 700; color: #166534; }
.sub-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; padding: 0 14px 14px; }
.sub-item { border: 1px solid var(--border); border-radius: 12px; padding: 14px 0 0; margin-bottom: 12px; }
.sub-item.paused { opacity: .7; }
.sub-head { display: flex; gap: 12px; align-items: center; padding: 0 14px 10px; }
.sub-head img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #faf8f5; flex-shrink: 0; }
.sub-head small { display: block; color: var(--text-light); margin-top: 2px; }

/* Varianty balení */
.variant-picker { margin: 4px 0 18px; }
.vp-title { font-weight: 700; margin-bottom: 8px; font-size: calc(14px * var(--fs, 1)); }
.vp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.vp-opt {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-width: 92px; flex: 1 1 92px; max-width: 140px; padding: 10px 8px; border: 2px solid var(--border); border-radius: 12px;
    color: var(--text); text-decoration: none; background: white; text-align: center; line-height: 1.2;
}
.vp-opt strong { font-size: calc(15px * var(--fs, 1)); }
.vp-opt span { font-size: calc(13px * var(--fs, 1)); font-weight: 600; color: var(--accent, var(--primary)); }
.vp-opt small { font-size: calc(11px * var(--fs, 1)); color: var(--text-light); }
.vp-opt:hover { border-color: #86efac; }
.vp-opt.on { border-color: #22c55e; background: #f0fdf4; box-shadow: 0 0 0 1px #22c55e inset; }
.vp-opt.out { opacity: .65; }
.vp-opt.out small::after { content: " · na objednávku"; }
.variant-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.variant-chips span { font-size: calc(11px * var(--fs, 1)); padding: 1px 6px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-light); }
.product-price .from { font-size: calc(12px * var(--fs, 1)); font-weight: 500; color: var(--text-light); }

/* Pokladna: souhlas s podmínkami textem pod tlačítkem */
.checkout-consent { margin: 12px 0 0; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.5; color: var(--text-light); text-align: center; }
.checkout-consent a { color: inherit; text-decoration: underline; }

/* Ověření věku 18+ (alkohol) */
.age-gate { position: fixed; inset: 0; z-index: 10050; background: rgba(26, 18, 14, .78); display: flex; align-items: center; justify-content: center;
    padding: 16px; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.age-gate[hidden] { display: none; }
.age-gate-box { background: #fff; border-radius: 14px; max-width: 440px; width: 100%; padding: 28px 24px 24px; text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.35); max-height: calc(100vh - 32px); overflow-y: auto; }
.age-gate-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: var(--primary); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: calc(20px * var(--fs, 1)); }
.age-gate-box h2 { font-size: calc(22px * var(--fs, 1)); margin: 0 0 10px; }
.age-gate-box p { font-size: calc(14.5px * var(--fs, 1)); line-height: 1.55; color: var(--text-light); margin: 0 0 10px; }
.age-gate-q { color: var(--text) !important; }
.age-gate-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.age-gate-btns .btn { flex: 1 1 150px; }
.age-gate-no { background: #ecebe8; color: var(--text); border: 1px solid #dcd9d4; }
.age-gate-deny { margin-top: 14px !important; color: #8a0000 !important; }
body.age-lock { overflow: hidden; }

/* Lišta: admin přihlášený jako zákazník */
.imp-bar { position: sticky; top: 0; z-index: 10040; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px;
    padding: 8px 14px; background: #1e3a8a; color: #fff; font-size: calc(13.5px * var(--fs, 1)); text-align: center; }
.imp-bar strong { color: #fde68a; }
.imp-end { background: #fff; color: #1e3a8a; font-weight: 700; padding: 4px 12px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.imp-end:hover { background: #fde68a; color: #1e3a8a; text-decoration: none; }

/* Akce a balíčky */
.promo-note { color: #15803d; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; margin: 2px 0; }
.promo-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px;
    padding: 12px 16px; border-radius: 10px; background: #fffbeb; border: 1px solid #fde68a; font-size: calc(14px * var(--fs, 1)); }
.promo-hint.is-ready { background: #ecfdf5; border-color: #86efac; }
.promo-hint form { margin: 0; }
.promo-box { margin: 18px 0; padding: 16px; border-radius: 12px; border: 2px solid #fde68a; background: #fffdf5; }
.promo-box.bundle { border-color: #c7d2fe; background: #f8f9ff; }
.promo-box-head { font-size: calc(15px * var(--fs, 1)); margin-bottom: 6px; }
.promo-box-desc { font-size: calc(14px * var(--fs, 1)); line-height: 1.5; margin: 0 0 8px; }
.promo-box-small { font-size: calc(12px * var(--fs, 1)); color: var(--text-light); margin: 0; }
.bundle-items { list-style: none; padding: 0; margin: 8px 0 10px; display: flex; flex-direction: column; gap: 6px; }
.bundle-items li { display: flex; align-items: center; gap: 10px; font-size: calc(13.5px * var(--fs, 1)); min-width: 0; }
.bundle-items img { width: 40px; height: 40px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--border); flex: 0 0 40px; }
.bundle-items a { color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.bundle-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.bundle-price s { color: var(--text-light); }
.bundle-price strong { font-size: calc(20px * var(--fs, 1)); color: var(--primary); }
.bundle-save { background: #15803d; color: #fff; font-size: calc(12px * var(--fs, 1)); font-weight: 700; padding: 2px 8px; border-radius: 999px; }

/* Přepínač jazyka CZ / EN */
.lang-switch { display: inline-flex; gap: 2px; margin-right: 10px; font-weight: 600; }
.lang-switch a { padding: 2px 8px; border-radius: 4px; color: inherit; text-decoration: none; opacity: .7; }
.lang-switch a.active { opacity: 1; background: rgba(0,0,0,.08); }
.lang-switch a:hover { opacity: 1; }
.lang-switch-lg a { padding: 6px 14px; font-size: calc(14px * var(--fs, 1)); border: 1px solid var(--border); }
.lang-switch-lg a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.sd-lang { padding: 14px 18px; }
.footer-bottom .lang-switch { margin-top: 10px; }
.footer-bottom .lang-switch-lg a { border-color: rgba(255,255,255,.3); }

/* Pokladna – tlačítko Objednat: běžná velikost, na mobilu přes celou šířku */
.checkout-submit { display: block; margin: 20px 0 0 auto; min-width: 180px; }
@media (max-width: 600px) { .checkout-submit { width: 100%; margin-left: 0; } }

/* Hodnocení: vlastní oddělený blok pod popisem */
.reviews { margin: 48px 0; padding: 28px clamp(16px, 4vw, 32px); background: var(--milk, #faf8f5); border: 1px solid var(--border); border-radius: 14px; }
.reviews > h2 { margin: 0 0 8px; padding-bottom: 14px; border-bottom: 2px solid var(--primary); }
.reviews .review:last-of-type { border-bottom: none; }
.reviews .review-reply { background: #fff; }

/* Patička / mobilní menu: jazyk + měna vedle sebe */
.footer-switches, .sd-lang { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.footer-switches .lang-switch, .sd-lang .lang-switch { margin-right: 0; }

/* ===== Značkové akcenty RED · BLACK · GOLD ===== */
:root { --brand-red: #dc0202; --brand-stripe: linear-gradient(90deg, var(--brand-red) 0 33.34%, var(--espresso) 33.34% 66.67%, var(--gold) 66.67% 100%); }
/* tenký pruh červená–černá–zlatá nad hlavičkou a patičkou */
.site-header { border-top: 4px solid; border-image: var(--brand-stripe) 1; }
.site-footer { border-top: 4px solid; border-image: var(--brand-stripe) 1; }
/* menu: červené podtržení při najetí */
.main-nav a:hover, .main-nav a:focus-visible { color: var(--brand-red); border-bottom-color: var(--brand-red); }
/* karty produktů: červená linka nahoře při najetí */
.product-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--brand-red); transform: scaleX(0); transform-origin: left; transition: transform .25s; z-index: 2; }
.product-card:hover::before { transform: scaleX(1); }
/* nadpis hodnocení s červeným podtržením */
.reviews > h2 { border-bottom-color: var(--brand-red); }
/* aktivní jazyk/měna ve značkové červené */
.lang-switch-lg a.active { background: var(--brand-red); border-color: var(--brand-red); }
@media (prefers-reduced-motion: reduce) { .product-card::before { transition: none; } }

/* Karty produktů: cena, sklad a tlačítka vždy dole → stejné výšky a tlačítka v jedné řadě */
.product-card .product-catchline-card { min-height: calc(1.4em * 2); }
.product-card .product-body > .product-price { margin-top: auto; padding-top: 6px; }

/* Hvězdičky pod názvem: karta produktu */
.card-rating { display: inline-flex; align-items: center; gap: 5px; font-size: calc(11px * var(--fs, 1)); color: var(--text-muted); text-decoration: none; line-height: 1; }
.card-rating .stars { font-size: calc(13px * var(--fs, 1)); letter-spacing: 1px; }
.rating-empty { font-size: calc(13px * var(--fs, 1)); }

/* ===== Popis produktu: karta, čitelná šířka textu, parametry jako tabulka vpravo ===== */
.pd-section { margin: 48px 0; padding: clamp(20px, 3vw, 32px); background: var(--paper); border: 1px solid var(--border); border-radius: 14px; }
.pd-section > h2 { margin: 0 0 20px; padding-bottom: 14px; border-bottom: 2px solid var(--brand-red, #dc0202); }
.pd-section .product-description { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; align-items: start; font-size: calc(15px * var(--fs, 1)); line-height: 1.7; color: var(--text-secondary, #523d3d); }
@media (min-width: 900px) { .pd-section .product-description:has(.pd-specs) { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); } }
.pd-section .pd-main, .pd-section .product-description > p { max-width: 72ch; }
.pd-section .product-description h3 { font-size: calc(17px * var(--fs, 1)); margin: 22px 0 10px; color: var(--text); }
.pd-section .pd-main > h3:first-child, .pd-section .pd-specs > h3:first-child { margin-top: 0; }
.pd-section .pd-main ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.pd-section .pd-main ul li { position: relative; padding-left: 28px; }
.pd-section .pd-main ul li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 16px; border-radius: 50%;
    background: var(--brand-red, #dc0202) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }
.pd-specs { background: var(--cream, #faf8f5); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
@media (min-width: 900px) { .pd-specs { position: sticky; top: 90px; } }
.spec-list { margin: 0; display: grid; }
.spec-list > div { display: grid; grid-template-columns: minmax(90px, 42%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border-dark, #ccc); }
.spec-list > div:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-list dt { color: var(--text-light); font-size: calc(13px * var(--fs, 1)); }
.spec-list dd { margin: 0; font-weight: 600; color: var(--text); font-size: calc(14px * var(--fs, 1)); overflow-wrap: anywhere; }

/* Karty produktů: čitelnější texty a oddělení částí */
.product-card .product-catchline-card { color: var(--text-secondary, #523d3d); font-style: normal; font-size: calc(12.5px * var(--fs, 1)); line-height: 1.45; min-height: calc(1.45em * 2); }
.variant-chips span { color: var(--text); background: var(--cream, #faf8f5); border-color: var(--border-dark, #ccc); font-weight: 500; }
.card-rating { color: var(--text-light); }
.product-card .product-body > .product-price { border-top: 1px solid var(--border); padding-top: 12px; margin-top: auto; }
.product-price small.from { text-decoration: none; margin: 0 4px 0 0; color: var(--text-light); font-weight: 500; }

/* Pokladna: nákup na firmu */
.company-toggle { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--cream, #faf8f5); cursor: pointer; flex-wrap: wrap; }
#company-section { padding: 4px 0 10px; }
.ico-row { display: flex; gap: 8px; }
.ico-row input { flex: 1; min-width: 0; }
.ico-row .btn { flex: 0 0 auto; white-space: nowrap; }

/* Stránka objednávky: online platba */
.gw-pay-box { margin: 28px 0; padding: 22px; border-radius: 12px; background: var(--milk); text-align: center; }
.gw-pay-box h3 { margin-bottom: 8px; }
.gw-pay-box .gw-note { font-size: calc(13px * var(--fs, 1)); color: var(--text-light); margin-top: 10px; }

/* Množstevní sleva: aktivní řádek, úspora, živý přepočet */
.price-tiers td { padding: 5px 6px; }
.price-tiers td:first-child { padding-left: 8px; }
.price-tiers td:nth-child(2) { text-align: right; white-space: nowrap; }
.price-tiers td.pt-save { color: #15803d; font-weight: 700; white-space: nowrap; width: 1%; }
.price-tiers tr.on td { background: #fff; }
.price-tiers tr.on td:first-child { box-shadow: inset 3px 0 0 var(--gold, #c9a227); border-radius: 6px 0 0 6px; font-weight: 700; }
.price-tiers tr.on td:last-child { border-radius: 0 6px 6px 0; }
.pt-live { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #e5dccb; font-size: calc(14px * var(--fs, 1)); line-height: 1.5; }
.pt-live .pt-ok { color: #15803d; font-weight: 600; white-space: nowrap; }
.pt-live .pt-hint { color: #92400e; }
.cart-tier-hint { margin: 4px 0 0; color: #92400e; font-size: calc(13px * var(--fs, 1)); }

/* Chuťový profil kávy (tečky 1–5) */
.taste-profile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 0 0 16px; padding: 12px 14px;
    border: 1px solid var(--border); border-radius: 10px; background: var(--milk, #faf8f5); max-width: 420px; }
.taste-profile div { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.taste-profile dt { font-size: calc(13px * var(--fs, 1)); color: var(--text-light); }
.taste-profile dd { margin: 0; }
.taste-dots { display: inline-flex; gap: 4px; }
.taste-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e7dfd3; display: inline-block; }
.taste-dots i.on { background: #5c2018; }
.taste-dots.sm i { width: 7px; height: 7px; gap: 3px; }
.card-intensity { display: flex; align-items: center; gap: 6px; font-size: calc(11.5px * var(--fs, 1)); color: var(--text-light); margin: 2px 0 4px; }
/* Filtr podle chuti v kategorii */
.taste-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 14px; }
.taste-chips-l { font-weight: 600; margin-right: 4px; }
.taste-chips a { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none;
    font-size: calc(13.5px * var(--fs, 1)); background: #fff; }
.taste-chips a:hover { border-color: #5c2018; }
.taste-chips a.on { background: #5c2018; border-color: #5c2018; color: #fff; }
/* Ochutnávková sada */
.sample-set { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px dashed #c8a27a;
    border-radius: 12px; background: #fdf8f0; }
.sample-set-img img { width: 72px; height: 72px; object-fit: contain; border-radius: 8px; background: #fff; display: block; }
.sample-set-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sample-set-text span { font-size: calc(13.5px * var(--fs, 1)); color: var(--text-light); }
.sample-set-name { color: var(--text); text-decoration: none; font-size: calc(14px * var(--fs, 1)); }
.sample-set-buy { flex: 0 0 auto; }
@media (max-width: 600px) {
    .sample-set { flex-wrap: wrap; }
    .sample-set-img img { width: 56px; height: 56px; }
    .sample-set-text { flex: 1 1 calc(100% - 80px); }
    .sample-set-buy, .sample-set-buy .btn { width: 100%; }
    .taste-profile { grid-template-columns: 1fr 1fr; gap: 6px 12px; }
}

/* Pokladna – pole a volby v pružných sloupcích (2–3 vedle sebe, na mobilu pod sebou) */
.checkout-form .co-row { display: flex; flex-wrap: wrap; gap: 0 12px; }
.checkout-form .co-row > .form-group { flex: 1 1 180px; min-width: 0; }
.checkout-form .co-row > .co-wide { flex: 2 1 240px; }
.checkout-form .co-row > .co-narrow { flex: .6 1 110px; }
.checkout-form .co-options { display: flex; flex-wrap: wrap; gap: 8px; }
.checkout-form .co-options > .shipping-method,
.checkout-form .co-options > .payment-method { flex: 1 1 220px; min-width: 0; margin-bottom: 0; }
.checkout-form .co-options > [hidden] { display: none; }
.checkout-form #packeta-section, .checkout-form .company-toggle { margin-top: 14px; }
.checkout-form #address-section > h3 { margin-top: 28px; }
/* Pokladna – Doprava a Platba každá ve vlastním okně */
.checkout-form .co-box { margin: 28px 0 4px; padding: 18px 18px 14px; background: var(--cream, #faf8f5); border: 1px solid var(--border); border-radius: 10px; }
.checkout-form .co-box > h3 { margin-top: 0; }
.checkout-form .co-box .shipping-method, .checkout-form .co-box .payment-method { background: #fff; }
.checkout-form .co-box .shipping-method:has(input:checked), .checkout-form .co-box .payment-method:has(input:checked) { background: #fff; box-shadow: 0 0 0 1px var(--primary); }
@media (max-width: 600px) { .checkout-form .co-box { margin-left: -6px; margin-right: -6px; padding: 14px 12px 10px; } }
