/* ============ DESIGN TOKENS — STEJNÉ JAKO HLAVNÍ STRÁNKA ============ */
:root {
    --primary: #2563EB;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --primary-subtle: rgba(37, 99, 235, 0.08);
    --white: #ffffff;
    --off-white: #f8fafc;
    --light-gray: #e2e8f0;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --success: #059669;
    --warning: #d97706;
    --error: #dc2626;

    /* Logo proportions (totožné s index.html) */
    --nav-logo-size: 2.6rem;
    --nav-logo-e-height: 1.78rem;
    --nav-logo-e-line-height: 0.37rem;
    --nav-logo-e-top-width: 1.13rem;
    --nav-logo-e-mid-width: 0.7rem;
    --nav-logo-e-bot-width: 1.13rem;
    --nav-logo-e-move-from: 0.1px;
    --nav-logo-e-move-to: 0.26rem;
    --nav-logo-e-vertical: -0.05rem;
    --nav-logo-r-gap: 0.18rem;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--dark);
    background: var(--off-white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: 'Space Grotesk', sans-serif; line-height: 1.15; color: var(--dark); letter-spacing: -0.02em; }

.gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.eshop-container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }

/* ============ NAVBAR — KOPIE Z INDEX.HTML ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 4rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(15,23,42,0.06);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.navbar.scrolled {
    padding: 1rem 4rem;
    box-shadow: 0 4px 30px rgba(37, 99, 235, 0.1);
}

/* Animated RERIO logo */
.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 45px;
}
.nav-logo .nav-letter {
    font-family: 'Space Grotesk', sans-serif;
    font-size: var(--nav-logo-size);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.nav-logo .nav-letter-e {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    height: var(--nav-logo-e-height);
    margin: 0 0.08rem;
    transform: translateY(var(--nav-logo-e-vertical));
}
.nav-logo .nav-letter-r-second {
    margin-left: var(--nav-logo-r-gap);
}
.nav-logo .nav-letter-e .nav-e-line {
    height: var(--nav-logo-e-line-height);
    background: var(--primary);
    animation: eLineSlide 2.5s ease-in-out infinite;
}
.nav-logo .nav-letter-e .nav-e-line-top { width: var(--nav-logo-e-top-width); animation-delay: 0s; }
.nav-logo .nav-letter-e .nav-e-line-mid { width: var(--nav-logo-e-mid-width); animation-delay: 0.25s; }
.nav-logo .nav-letter-e .nav-e-line-bot { width: var(--nav-logo-e-bot-width); animation-delay: 0.5s; }

@keyframes eLineSlide {
    0%, 100% { transform: translateX(var(--nav-logo-e-move-from)); }
    50%      { transform: translateX(var(--nav-logo-e-move-to)); }
}

.nav-shop-tag {
    margin-left: 0.8rem;
    padding: 4px 10px;
    background: var(--primary-subtle);
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 999px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    justify-content: center;
    flex: 1;
}
.nav-links a {
    color: var(--gray);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}
.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::before,
.nav-links a.active::before { transform: scaleX(1); transform-origin: left; }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.nav-icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    color: var(--dark-secondary);
    border: 2px solid transparent;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
    background: transparent;
}
.nav-icon-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}
.nav-icon-btn svg { width: 20px; height: 20px; stroke-width: 2; }
.nav-cart-badge {
    position: absolute;
    top: 4px; right: 4px;
    background: var(--primary);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 999px;
    display: grid; place-items: center;
    padding: 0 5px;
    box-shadow: 0 4px 10px var(--primary-glow);
}
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary);
    color: var(--white) !important;
    padding: 0.65rem 1.3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 2px solid var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease;
}
.nav-cta:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--primary-glow);
    color: var(--white) !important;
}
.nav-cta-ghost {
    background: transparent;
    color: var(--primary) !important;
}
.nav-cta-ghost:hover {
    background: var(--primary);
    color: var(--white) !important;
}

/* ============ MAIN ============ */
.eshop-main {
    flex: 1;
    padding: 130px 0 5rem;
}

/* ============ DEMO BANNER ============ */
.demo-banner {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    margin-bottom: 2rem;
    font-size: 0.92rem;
    border: 1px solid #fcd34d;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.08);
}
.demo-banner svg { width: 22px; height: 22px; flex-shrink: 0; stroke: #b45309; stroke-width: 2; fill: none; }

/* ============ PAGE HEADER ============ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.2rem;
}
.section-label::before, .section-label::after {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--primary);
    opacity: 0.5;
}
.page-header h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 700;
    margin-bottom: 0.8rem;
}
.page-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============ ALERTS ============ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.alert-success { background: rgba(5,150,105,0.1); color: var(--success); border: 1px solid rgba(5,150,105,0.25); }
.alert-error { background: rgba(220,38,38,0.1); color: var(--error); border: 1px solid rgba(220,38,38,0.25); }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.9rem 1.6rem;
    background: var(--primary);
    color: var(--white) !important;
    border: 2px solid var(--primary);
    border-radius: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    letter-spacing: 0.3px;
}
.btn:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px var(--primary-glow);
}
.btn-secondary {
    background: var(--white);
    color: var(--dark) !important;
    border-color: var(--light-gray);
}
.btn-secondary:hover {
    background: var(--white);
    color: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(37,99,235,0.15);
}
.btn-danger { background: var(--error); border-color: var(--error); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: var(--white) !important; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.82rem; border-width: 2px; }
.btn-block { width: 100%; }

/* ============ CATALOG LAYOUT ============ */
.catalog {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: start;
}
.sidebar {
    background: var(--white);
    border-radius: 16px;
    padding: 1.75rem;
    position: sticky;
    top: 110px;
    border: 1px solid var(--light-gray);
    box-shadow: 0 4px 20px rgba(15,23,42,0.04);
}
.sidebar h3 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}
.sidebar ul { list-style: none; margin-bottom: 1.8rem; }
.sidebar ul li { margin-bottom: 0.35rem; }
.sidebar ul li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    color: var(--dark-secondary);
    font-weight: 500;
    font-size: 0.92rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.sidebar ul li a:hover {
    background: var(--primary-subtle);
    color: var(--primary);
}
.sidebar ul li a.active {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 6px 18px var(--primary-glow);
}
.sidebar ul li a.active::after {
    content: '→';
    font-weight: 700;
}
.price-range {
    display: flex; gap: 0.5rem; align-items: center;
    margin-bottom: 1rem;
}
.price-range input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-size: 0.85rem;
    font-family: inherit;
    transition: border-color 0.2s;
}
.price-range input:focus { outline: none; border-color: var(--primary); }

/* ============ PRODUCT GRID ============ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.product-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
    will-change: transform;
}
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(37,99,235,0) 0%, rgba(37,99,235,0.5) 50%, rgba(59,130,246,0) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15,23,42,0.12);
    border-color: rgba(37,99,235,0.3);
}
.product-card:hover::before { opacity: 1; }

.product-image {
    aspect-ratio: 4/3;
    background: var(--off-white);
    overflow: hidden;
    position: relative;
}
.product-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22,1,0.36,1);
}
.product-card:hover .product-image img { transform: scale(1.08); }

.product-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15,23,42,0.25) 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.product-card:hover .product-image::after { opacity: 1; }

.product-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--primary);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 999px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: 0 6px 16px var(--primary-glow);
}
.product-badge.sale { background: var(--error); box-shadow: 0 6px 16px rgba(220,38,38,0.3); }

.product-body { padding: 1.4rem 1.5rem; flex: 1; display: flex; flex-direction: column; }
.product-cat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}
.product-name {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}
.product-card:hover .product-name { color: var(--primary); }
.product-desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 1rem; flex: 1; line-height: 1.6; }
.product-specs {
    display: flex; flex-wrap: wrap; gap: 0.4rem;
    margin-bottom: 1.2rem;
}
.product-specs span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.7rem;
    padding: 4px 10px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.product-price-row {
    display: flex; justify-content: space-between; align-items: flex-end; gap: 0.5rem;
    border-top: 1px dashed var(--light-gray);
    padding-top: 1rem;
    margin-top: auto;
}
.product-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    line-height: 1;
}
.product-price-old {
    display: block;
    font-size: 0.85rem;
    text-decoration: line-through;
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 2px;
}
.product-cart-icon {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--primary-subtle);
    color: var(--primary);
    transition: all 0.3s ease;
}
.product-card:hover .product-cart-icon { background: var(--primary); color: var(--white); transform: scale(1.05); }
.product-cart-icon svg { width: 18px; height: 18px; stroke-width: 2; }

/* ============ PRODUCT DETAIL ============ */
.product-detail {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.gallery-main {
    aspect-ratio: 4/3;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--light-gray);
    box-shadow: 0 10px 40px rgba(15,23,42,0.06);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.gallery-thumbs { display: flex; gap: 0.7rem; margin-top: 1.2rem; flex-wrap: wrap; }
.gallery-thumb {
    width: 88px; height: 88px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--light-gray);
    transition: all 0.3s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--primary-light); transform: translateY(-2px); }
.gallery-thumb.active { border-color: var(--primary); box-shadow: 0 6px 18px var(--primary-glow); }

.detail-cat {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--primary);
    margin-bottom: 0.7rem;
    font-weight: 700;
}
.detail-info h1 { font-size: 2.4rem; margin-bottom: 0.8rem; line-height: 1.1; }
.detail-rating { margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.stars { color: #f59e0b; font-size: 1.1rem; letter-spacing: 1px; }
.detail-desc { font-size: 1.05rem; color: var(--gray); margin-bottom: 1.8rem; line-height: 1.75; }

.detail-price-block {
    background: linear-gradient(135deg, var(--white) 0%, var(--off-white) 100%);
    border: 1px solid var(--light-gray);
    border-radius: 18px;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    position: relative;
    overflow: hidden;
}
.detail-price-block::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}
.detail-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    position: relative;
}
.detail-price-old {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: var(--gray);
    margin-left: 12px;
    font-weight: 500;
}
.detail-vat { font-size: 0.85rem; color: var(--gray); margin-top: 0.5rem; margin-bottom: 1.3rem; position: relative; }
.stock-status { font-size: 0.92rem; margin-bottom: 1.2rem; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; position: relative; }
.stock-status.in { color: var(--success); }
.stock-status.out { color: var(--error); }
.stock-status::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
}
.stock-status.in::before { background: var(--success); box-shadow: 0 0 0 4px rgba(5,150,105,0.2); }
.stock-status.out::before { background: var(--error); box-shadow: 0 0 0 4px rgba(220,38,38,0.2); }

.qty-row { display: flex; gap: 0.7rem; align-items: stretch; position: relative; }
.qty-input {
    width: 100px;
    padding: 0.9rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 1rem;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    transition: border-color 0.2s;
}
.qty-input:focus { outline: none; border-color: var(--primary); }

.specs-table {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
}
.specs-table dl { margin: 0; }
.specs-table > dl > div {
    display: flex;
    justify-content: space-between;
    padding: 0.95rem 1.4rem;
    border-bottom: 1px solid var(--light-gray);
}
.specs-table > dl > div:last-child { border-bottom: 0; }
.specs-table dt {
    font-size: 0.78rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}
.specs-table dd {
    font-weight: 700;
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
    text-align: right;
}

.detail-long {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.85;
}
.detail-long h2 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.detail-long p { color: var(--dark-secondary); }

/* ============ REVIEWS ============ */
.reviews-section {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 18px;
    border: 1px solid var(--light-gray);
}
.reviews-section h2 { font-size: 1.5rem; margin-bottom: 1.5rem; }
.review {
    padding: 1.4rem 0;
    border-bottom: 1px dashed var(--light-gray);
}
.review:last-child { border-bottom: 0; }
.review-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.6rem; }
.review-author { font-weight: 700; font-family: 'Space Grotesk', sans-serif; }
.review-date { font-size: 0.8rem; color: var(--gray); }
.review-comment { color: var(--dark-secondary); line-height: 1.7; }

.review-form {
    background: var(--off-white);
    padding: 1.8rem;
    border-radius: 14px;
    margin-top: 2rem;
    border: 1px solid var(--light-gray);
}
.review-form h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.rating-input {
    display: flex; gap: 0.3rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
    margin-bottom: 1rem;
}
.rating-input input { display: none; }
.rating-input label {
    font-size: 2rem;
    color: var(--light-gray);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}
.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label { color: #f59e0b; }

/* ============ FORMS ============ */
.form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 18px;
    border: 1px solid var(--light-gray);
}
.field { margin-bottom: 1.2rem; }
.field label {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: var(--dark-secondary);
    letter-spacing: 0.3px;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--light-gray);
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
    color: var(--dark);
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-subtle);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ============ CART ============ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}
.cart-list {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--light-gray);
    overflow: hidden;
}
.cart-row {
    display: grid;
    grid-template-columns: 100px 1fr 130px 140px 40px;
    gap: 1.2rem;
    align-items: center;
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--light-gray);
    transition: background 0.2s;
}
.cart-row:last-child { border-bottom: 0; }
.cart-row:hover { background: var(--off-white); }
.cart-row img { width: 100px; height: 75px; object-fit: cover; border-radius: 10px; }
.cart-name {
    font-weight: 600;
    color: var(--dark);
    font-family: 'Space Grotesk', sans-serif;
}
.cart-name:hover { color: var(--primary); }
.cart-meta { font-size: 0.82rem; color: var(--gray); margin-top: 3px; font-family: 'Space Grotesk', sans-serif; }
.cart-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
    font-size: 1.05rem;
}
.cart-qty input {
    width: 70px;
    text-align: center;
    padding: 0.55rem;
    border: 2px solid var(--light-gray);
    border-radius: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    transition: border-color 0.2s;
}
.cart-qty input:focus { outline: none; border-color: var(--primary); }
.cart-remove {
    color: var(--gray);
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 1.3rem;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}
.cart-remove:hover { color: var(--error); background: rgba(220,38,38,0.08); }
.cart-actions {
    padding: 1rem 1.5rem;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    background: var(--off-white);
}

.summary-card {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 18px;
    border: 1px solid var(--light-gray);
    position: sticky;
    top: 110px;
    box-shadow: 0 10px 40px rgba(15,23,42,0.06);
}
.summary-card h3 { font-size: 1.2rem; margin-bottom: 1rem; }
.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    color: var(--dark-secondary);
}
.summary-row strong { font-family: 'Space Grotesk', sans-serif; color: var(--dark); }
.summary-total {
    border-top: 2px solid var(--light-gray);
    padding-top: 1.1rem;
    margin-top: 0.6rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
}
.summary-total strong { color: var(--primary); font-size: 1.5rem; }
.summary-hint { font-size: 0.8rem; color: var(--gray); padding: 0.5rem 0; }

.empty-state {
    background: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 18px;
    border: 1px solid var(--light-gray);
}
.empty-state-icon {
    width: 80px; height: 80px;
    margin: 0 auto 1.5rem;
    display: grid;
    place-items: center;
    background: var(--primary-subtle);
    border-radius: 50%;
    color: var(--primary);
}
.empty-state-icon svg { width: 38px; height: 38px; stroke-width: 2; }
.empty-state h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.empty-state p { color: var(--gray); margin-bottom: 1.5rem; }

/* ============ CHECKOUT ============ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}
.checkout-section {
    background: var(--white);
    padding: 1.8rem;
    border-radius: 18px;
    border: 1px solid var(--light-gray);
    margin-bottom: 1.5rem;
}
.checkout-section h2 {
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}
.checkout-section h2 .step-num {
    width: 32px; height: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
}
.radio-group { display: grid; gap: 0.7rem; }
.radio-option {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.2rem;
    border: 2px solid var(--light-gray);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}
.radio-option:hover { border-color: var(--primary-light); }
.radio-option input { margin: 0; accent-color: var(--primary); }
.radio-option:has(input:checked) {
    border-color: var(--primary);
    background: var(--primary-subtle);
}
.radio-content { flex: 1; }
.radio-content strong { display: block; font-weight: 600; color: var(--dark); }
.radio-content small { font-size: 0.82rem; color: var(--gray); }
.radio-price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--dark);
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    margin-top: auto;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 20%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    padding: 4rem 2rem 2.5rem;
    position: relative;
}
.footer .nav-logo { height: 36px; }
.footer .nav-logo .nav-letter { color: var(--white); font-size: 2.1rem; }
.footer .nav-logo .nav-letter-e {
    height: 1.45rem;
    margin: 0 0.08rem;
}
.footer .nav-logo .nav-letter-e .nav-e-line { background: var(--white); height: 0.3rem; }
.footer .nav-logo .nav-letter-e .nav-e-line-top { width: 0.92rem; }
.footer .nav-logo .nav-letter-e .nav-e-line-mid { width: 0.56rem; }
.footer .nav-logo .nav-letter-e .nav-e-line-bot { width: 0.92rem; }
.footer h4 {
    color: var(--white);
    font-size: 0.92rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 0.6rem; font-size: 0.9rem; }
.footer ul li a { color: rgba(255,255,255,0.7); transition: color 0.3s; }
.footer ul li a:hover { color: var(--primary-light); }
.footer-tagline { margin-top: 1rem; line-height: 1.7; font-size: 0.9rem; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0;
    font-size: 0.85rem;
    text-align: center;
}

/* ============ REVEAL ANIMATIONS (jako index.html) ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.stagger-1.visible { transition-delay: 0.05s; }
.stagger-2.visible { transition-delay: 0.12s; }
.stagger-3.visible { transition-delay: 0.19s; }
.stagger-4.visible { transition-delay: 0.26s; }
.stagger-5.visible { transition-delay: 0.33s; }
.stagger-6.visible { transition-delay: 0.4s; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .navbar { padding: 1rem 2rem; }
    .nav-links { gap: 1.5rem; }
}
@media (max-width: 880px) {
    .navbar { padding: 1rem 1.5rem; }
    .nav-links { display: none; }
    .catalog { grid-template-columns: 1fr; }
    .sidebar { position: static; }
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-row { grid-template-columns: 80px 1fr 100px; row-gap: 0.6rem; }
    .cart-row > :nth-child(4) { grid-column: 1 / -1; text-align: right; }
    .cart-row > :nth-child(5) { grid-column: 1 / -1; text-align: right; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; padding: 3rem 1.5rem 2rem; }
    .eshop-main { padding-top: 110px; }
    .nav-shop-tag { display: none; }
}
@media (max-width: 600px) {
    .eshop-container { padding: 0 1.2rem; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .detail-info h1 { font-size: 1.8rem; }
    .detail-price { font-size: 2rem; }
    .page-header h1 { font-size: 2rem; }
}
