/* ===== INTIMURA — Premium German Intimate Shop ===== */
/* Clean light theme inspired by Amorelie.de / modern e-commerce */

/* ===== PROMO TICKER ===== */
.promo-ticker {
    background: var(--primary);
    color: rgba(255,255,255,0.9);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
}
.promo-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 28s linear infinite;
    will-change: transform;
}
.promo-ticker-track span {
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0 16px;
    flex-shrink: 0;
}
.promo-dot {
    width: 4px;
    height: 4px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    padding: 0 !important;
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.promo-ticker:hover .promo-ticker-track {
    animation-play-state: paused;
}

/* ===== BRANDS ROW ===== */
.brands-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}
.brand-logo {
    opacity: 0.35;
    transition: opacity 0.2s;
    color: var(--text);
}
.brand-logo:hover {
    opacity: 0.7;
}
html.dark .brand-logo {
    color: var(--text);
    opacity: 0.3;
}
html.dark .brand-logo:hover {
    opacity: 0.6;
}
html.dark .brand-logo img,
html.dark .brands-row img.brand-logo {
    filter: invert(1) grayscale(1);
}
@media (max-width: 480px) {
    .brands-row { gap: 20px 24px; }
    .brand-logo { height: 18px !important; }
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
    --primary: #1A1A1A;
    --primary-hover: #333;
    --accent: #C8102E;
    --accent-hover: #A00D24;
    --accent-soft: rgba(200,16,46,0.08);
    --bg: #FFFFFF;
    --bg-alt: #F7F7F8;
    --bg-warm: #FAF9F7;
    --surface: #F2F2F3;
    --surface-hover: #E8E8EA;
    --card: #FFFFFF;
    --card-hover: #FAFAFA;
    --border: #E5E5E7;
    --border-light: #F0F0F2;
    --text: #1A1A1A;
    --text-secondary: #6B6B6B;
    --text-muted: #9CA3AF;
    --success: #16A34A;
    --sale: #DC2626;
    --sale-bg: #FEF2F2;
    --warning: #F59E0B;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --radius-pill: 100px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.1);
    --transition: 0.2s ease;
    --transition-slow: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

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

/* ===== HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    flex-shrink: 0;
}

.logo:hover { color: var(--text); opacity: 0.8; }

.nav { display: flex; align-items: center; gap: 4px; }

.nav a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    transition: all var(--transition);
}

.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface); }

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

.lang-switch {
    display: flex;
    background: var(--surface);
    border-radius: var(--radius-pill);
    padding: 2px;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-pill);
    font-size: 0.76rem;
    font-weight: 600;
    transition: all var(--transition);
}

.lang-btn.active { background: var(--primary); color: white; }

.cart-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-pill);
    color: white;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.86rem;
    font-weight: 500;
}

.cart-btn:hover { background: var(--primary-hover); color: white; }
.cart-btn svg { width: 18px; height: 18px; }

.cart-count {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: white;
    font-size: 0.62rem;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.cart-count.show { display: flex; }

.burger { display: none; cursor: pointer; padding: 10px; background: none; border: none; flex-direction: column; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 72px 0 56px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('/static/img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.85;
    z-index: -2;
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,250,247,0.15) 0%, rgba(255,250,247,0.45) 60%, var(--bg-warm) 100%);
    z-index: -1;
}
html.dark .hero::before { opacity: 0.7; }
html.dark .hero::after {
    background: linear-gradient(180deg, rgba(15,15,20,0.2) 0%, rgba(15,15,20,0.5) 60%, var(--bg-warm) 100%);
}
.hero > .container { position: relative; z-index: 1; }

.hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #e11d48 0%, #be185d 100%);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 24px;
    box-shadow: 0 6px 18px rgba(225, 29, 72, 0.32);
}
.hero-badge svg { stroke: #fff; }
html.dark .hero-badge { color: #fff; }

.hero-badge svg {
    animation: truck-drive 2.6s ease-in-out infinite;
    transform-origin: center;
}
@keyframes truck-drive {
    0%   { transform: translateX(0) rotate(0deg); }
    15%  { transform: translateX(-2px) rotate(-1.5deg); }
    50%  { transform: translateX(3px) rotate(1deg); }
    85%  { transform: translateX(-1px) rotate(-0.5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

.hero-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #e63946;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.hero-highlight svg {
    flex-shrink: 0;
    stroke: #e63946;
}
@media (max-width: 480px) {
    .hero-highlight { white-space: normal; }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    color: var(--text);
}

.hero p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); color: white; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover { background: var(--surface); border-color: var(--text); color: var(--text); }

.btn-sm { padding: 9px 18px; font-size: 0.82rem; }

.btn-cart {
    background: var(--primary);
    color: white;
    width: 100%;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
}

.btn-cart:hover { background: var(--primary-hover); color: white; }

/* Cart quantity control in product cards */
.cart-qty-control {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: var(--primary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    height: 42px;
}

.cart-qty-control .cart-qty-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    flex-shrink: 0;
}

.cart-qty-control .cart-qty-btn:hover {
    background: rgba(255,255,255,0.15);
}

.cart-qty-control .cart-qty-value {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
    min-width: 32px;
    text-align: center;
    user-select: none;
}

.btn-danger { background: var(--sale); color: white; }
.btn-success { background: var(--success); color: white; }

/* "Choose size" button in product card (replaces add-to-cart when variants exist) */
.btn-cart-choose {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}
.btn-cart-choose:hover { background: var(--primary); color: white; }

/* ===== VARIANT PICKER (product detail page) ===== */
.variant-picker { margin: 20px 0 16px; }
.variant-picker-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.variant-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    min-width: 52px;
    justify-content: center;
}
.variant-pill:hover { border-color: var(--primary); color: var(--primary); }
.variant-pill.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}
.variant-delta {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.85;
    color: var(--success);
}
.variant-pill.active .variant-delta { color: rgba(255,255,255,0.92); }
.variant-delta-minus { color: var(--sale); }
.variant-pill.active .variant-delta-minus { color: rgba(255,255,255,0.85); }

/* Cart item: variant badge */
.cart-item-variant {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    vertical-align: middle;
}

/* ===== SECTIONS ===== */
.section { padding: 72px 0; }

.section-header { text-align: center; margin-bottom: 44px; }

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p { color: var(--text-secondary); font-size: 0.95rem; }

/* ===== CATEGORIES ===== */
.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.category-card {
    position: relative;
    padding: 44px 28px;
    border-radius: var(--radius-lg);
    text-align: center;
    overflow: hidden;
    transition: all var(--transition-slow);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid var(--border);
    background: white;
}

.category-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }

.category-icon {
    width: 64px; height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.category-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}

.category-card p { color: var(--text-secondary); font-size: 0.88rem; }

@media (max-width: 640px) {
    .category-card { padding: 20px 10px; }
    .category-icon { width: 44px; height: 44px; margin-bottom: 10px; }
    .category-icon svg { width: 22px; height: 22px; }
    .category-card h3 { font-size: 0.9rem; font-family: inherit; font-weight: 600; line-height: 1.2; word-break: break-word; hyphens: auto; }
}

/* ===== PRODUCT GRID ===== */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.product-card {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
}

.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border); }

.product-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== CAROUSEL (product card) ===== */
.product-image .carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
.product-image .carousel-track::-webkit-scrollbar { display: none; }
.product-image .carousel-track img {
    min-width: 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    object-fit: cover;
    flex-shrink: 0;
}
.product-image .carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 2;
    padding: 4px 8px;
    background: rgba(255,255,255,0.85);
    border-radius: 20px;
    backdrop-filter: blur(4px);
}
.product-image .carousel-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s, width 0.2s;
    cursor: pointer;
}
.product-image .carousel-dots .dot.active {
    background: #222;
    width: 16px;
    border-radius: 3px;
}

/* ===== GALLERY (product detail page) ===== */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.gallery-main {
    aspect-ratio: 1/1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-alt);
    position: relative;
}
.gallery-main img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity 0.2s;
}
.gallery-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.gallery-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--bg-alt);
    transition: border-color 0.15s;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb.active { border-color: var(--accent, #e11d48); }
.gallery-thumb:hover { border-color: var(--border); }
.gallery-thumb.active:hover { border-color: var(--accent, #e11d48); }

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
}

.product-image-placeholder.women { background: #FDF2F5; }
.product-image-placeholder.men { background: #F0F4FF; }

/* Product silhouette shapes */
.product-image-placeholder .product-silhouette {
    width: 35%;
    height: 55%;
    border-radius: 50px 50px 30px 30px;
    opacity: 0.18;
}

.product-image-placeholder.women .product-silhouette { background: linear-gradient(180deg, #E8456B 0%, #C2185B 100%); }
.product-image-placeholder.men .product-silhouette { background: linear-gradient(180deg, #3B5998 0%, #1A237E 100%); }

.sale-badge {
    position: absolute;
    top: 10px; left: 10px;
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}

.product-info { padding: 16px; }

.product-category-tag {
    display: inline-block;
    padding: 3px 9px;
    background: var(--surface);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    text-transform: capitalize;
}

.product-name {
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-name a { color: inherit; }
.product-name a:hover { color: var(--accent); }

.product-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price-current { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.price-old { font-size: 0.84rem; color: var(--text-muted); text-decoration: line-through; }
.price-sale { color: var(--accent) !important; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.feature-card {
    text-align: center;
    padding: 32px 18px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.feature-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }

.feature-icon {
    width: 48px; height: 48px;
    margin: 0 auto 14px;
    background: var(--surface);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg { width: 22px; height: 22px; stroke: var(--text); fill: none; stroke-width: 1.5; }
.feature-card h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.feature-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== CATALOG ===== */
.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 36px 0 72px; }

.sidebar { position: sticky; top: 92px; height: fit-content; }

.filter-group { margin-bottom: 24px; }

.filter-group h3 {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    padding-left: 4px;
}

.filter-option {
    display: block;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 500;
}

.filter-option:hover { background: var(--surface); color: var(--text); }
.filter-option.active { background: var(--primary); color: white; }

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.sort-bar span { color: var(--text-muted); font-size: 0.84rem; }

.sort-select {
    background: transparent;
    color: var(--text);
    border: none;
    padding: 6px 4px;
    font-size: 0.84rem;
    font-family: inherit;
    cursor: pointer;
    font-weight: 500;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236B6B6B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 18px;
}

/* ===== PRODUCT DETAIL ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 44px 0 72px; }

.product-detail-image {
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.product-detail-image .product-image-placeholder { border-radius: var(--radius-lg); }

.product-detail-info h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.3;
}

.product-detail-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.product-detail-price .price-current { font-size: 1.8rem; }
.product-detail-price .price-old { font-size: 1.1rem; }

.product-detail-desc { color: var(--text-secondary); line-height: 1.8; margin-bottom: 24px; font-size: 0.94rem; }

.product-meta {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    background: var(--bg-alt);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.product-meta-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 18px;
    font-size: 0.86rem;
    border-bottom: 1px solid var(--border-light);
}

.product-meta-item:last-child { border-bottom: none; }
.product-meta-item span:first-child { color: var(--text-secondary); }

.qty-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

.qty-btn {
    width: 38px; height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    font-size: 1rem;
    transition: all var(--transition);
}

.qty-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.qty-value { font-size: 1rem; font-weight: 600; min-width: 28px; text-align: center; }

/* ===== CART ===== */
.cart-page { padding: 44px 0 72px; }
.cart-page h1 { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; margin-bottom: 28px; }

.cart-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }

.cart-item {
    display: grid;
    grid-template-columns: 64px 1fr auto auto auto;
    align-items: center;
    gap: 18px;
    padding: 16px 18px;
    background: white;
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.cart-item-image { width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--bg-alt); display: flex; align-items: center; justify-content: center; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-price { font-weight: 600; }
.cart-item-remove { cursor: pointer; color: var(--text-muted); background: none; border: none; padding: 6px; border-radius: 50%; transition: all var(--transition); }
.cart-item-remove:hover { color: var(--accent); background: var(--accent-soft); }

.cart-summary { padding: 22px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border-light); }
.cart-summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.9rem; color: var(--text-secondary); }
.cart-summary-total { border-top: 1px solid var(--border); margin-top: 10px; padding-top: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); }

.cart-empty { text-align: center; padding: 72px 20px; }
.cart-empty svg { width: 56px; height: 56px; stroke: var(--text-muted); margin-bottom: 16px; }
.cart-empty h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 8px; }
.cart-empty p { color: var(--text-secondary); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; padding: 44px 0 72px; }
.checkout-form h2 { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 22px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }

.form-input {
    width: 100%;
    padding: 12px 14px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,26,26,0.06); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: white;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0.88rem;
    font-weight: 500;
}

.payment-option:hover { border-color: var(--primary); }
.payment-option.selected { border-color: var(--primary); background: var(--bg-alt); }
.payment-option input[type="radio"] { display: none; }

.payment-radio {
    width: 18px; height: 18px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.payment-option.selected .payment-radio { border-color: var(--primary); }
.payment-option.selected .payment-radio::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

.checkout-sidebar { position: sticky; top: 92px; }
.checkout-order-summary { padding: 22px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--border-light); }
.checkout-order-summary h3 { font-size: 1rem; font-weight: 600; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }

/* ===== ORDER SUCCESS ===== */
.order-success { text-align: center; padding: 88px 20px; }
.order-success-icon { width: 80px; height: 80px; background: rgba(22,163,74,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.order-success-icon svg { width: 36px; height: 36px; stroke: var(--success); stroke-width: 2.5; }
.order-success h1 { font-family: 'Playfair Display', serif; font-size: 1.7rem; margin-bottom: 10px; }
.order-success p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 28px; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 52px 0 20px; }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 32px; }
.footer-brand .logo { margin-bottom: 12px; display: inline-block; }
.footer-brand p { color: var(--text-secondary); font-size: 0.86rem; line-height: 1.6; max-width: 280px; }

.footer-col h4 { font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-secondary); padding: 4px 0; font-size: 0.86rem; }
.footer-col a:hover { color: var(--text); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 18px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-muted); }

.payment-icons { display: flex; gap: 6px; }
.payment-icon { padding: 5px 12px; background: white; border: 1px solid var(--border); border-radius: 6px; font-size: 0.76rem; font-weight: 600; color: var(--text-secondary); }

/* ===== 404 ===== */
.page-404 { text-align: center; padding: 100px 20px; }
.page-404 h1 { font-family: 'Playfair Display', serif; font-size: 6rem; font-weight: 700; color: var(--text); line-height: 1; margin-bottom: 10px; }
.page-404 h2 { font-size: 1.3rem; margin-bottom: 8px; }
.page-404 p { color: var(--text-secondary); margin-bottom: 24px; }

/* ===== MOBILE NAV ===== */
.mobile-nav { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); z-index: 999; display: none; flex-direction: column; padding: 76px 28px 28px; overflow-y: auto; }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 14px 0 4px; }
.mobile-nav-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); padding: 10px 0 6px; }
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 1.1rem; padding: 14px 0; color: var(--text); border-bottom: 1px solid var(--border-light); font-weight: 500; }
.mobile-nav-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text); font-size: 1.8rem; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.mobile-nav-close:hover { background: var(--surface); }

/* ===== TOAST ===== */
.toast { position: fixed; bottom: 20px; right: 20px; padding: 12px 24px; background: var(--primary); color: white; border-radius: var(--radius-pill); font-weight: 600; font-size: 0.88rem; box-shadow: var(--shadow-lg); transform: translateY(70px); opacity: 0; transition: all 0.3s ease; z-index: 2000; }
.toast.show { transform: translateY(0); opacity: 1; }

/* ===== AGE VERIFICATION ===== */
.age-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.age-overlay.hidden { display: none; }
html.age-ok .age-overlay { display: none; }

.age-box { text-align: center; padding: 44px 36px; background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); max-width: 420px; width: 90%; box-shadow: var(--shadow-lg); }
.age-box .logo { font-size: 1.6rem; margin-bottom: 24px; display: block; }
.age-box h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin-bottom: 10px; }
.age-box p { color: var(--text-secondary); margin-bottom: 24px; font-size: 0.92rem; }
.age-buttons { display: flex; gap: 10px; justify-content: center; }

/* ===== RELATED ===== */
.related-section { padding: 44px 0 72px; border-top: 1px solid var(--border-light); margin-top: 44px; }
.related-section h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 20px; }

/* ===== UTILS ===== */
.text-center { text-align: center; }
.mt-4 { margin-top: 24px; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ===== THEME TOGGLE BUTTON ===== */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover { background: var(--border); }
.theme-icon-dark { display: none; }

/* ===== DARK THEME ===== */
html.dark {
    --primary: #F0F0F0;
    --primary-hover: #D4D4D4;
    --accent: #EF4444;
    --accent-hover: #DC2626;
    --accent-soft: rgba(239,68,68,0.12);
    --bg: #0F0F14;
    --bg-alt: #161620;
    --bg-warm: #12121A;
    --surface: #1C1C28;
    --surface-hover: #24243A;
    --card: #1A1A26;
    --card-hover: #222234;
    --border: #2A2A3C;
    --border-light: #222234;
    --text: #EAEAF0;
    --text-secondary: #9898A8;
    --text-muted: #6A6A7E;
    --success: #22C55E;
    --sale: #EF4444;
    --sale-bg: rgba(239,68,68,0.1);
}

html.dark .header {
    background: rgba(15,15,20,0.9);
    border-bottom-color: var(--border);
}

html.dark .theme-icon-light { display: none; }
html.dark .theme-icon-dark { display: block; }
html.dark .theme-toggle { border-color: var(--border); background: var(--surface); }
html.dark .theme-toggle svg { stroke: var(--text); }

html.dark .product-card { background: var(--card); border-color: var(--border); }
html.dark .product-image-placeholder.women { background: #1E1520; }
html.dark .product-image-placeholder.men { background: #151520; }
html.dark .category-card { background: var(--card); border-color: var(--border); }
html.dark .feature-card { background: var(--card); border-color: var(--border); }
html.dark .form-input { background: var(--surface); border-color: var(--border); color: var(--text); }
html.dark .sort-select { color: var(--text); }
html.dark .cart-btn { background: var(--text); color: var(--bg); }
html.dark .btn-primary { background: var(--text); color: var(--bg); }
html.dark .btn-primary:hover { background: #D4D4D4; color: var(--bg); }
html.dark .btn-outline { border-color: var(--border); color: var(--text); }
html.dark .btn-cart { background: var(--text); color: var(--bg); }
html.dark .btn-cart:hover { background: #D4D4D4; color: var(--bg); }
html.dark .cart-qty-control { background: var(--text); color: var(--bg); }
html.dark .cart-qty-control .cart-qty-btn { color: var(--bg); }
html.dark .cart-qty-control .cart-qty-value { color: var(--bg); }
html.dark .payment-option { background: var(--surface); border-color: var(--border); }
html.dark .age-overlay { background: rgba(0,0,0,0.95); }
html.dark .age-box { background: var(--card); border-color: var(--border); }
html.dark .mobile-nav { background: rgba(15,15,20,0.97); }
html.dark .footer { background: var(--surface); border-top-color: var(--border); }
html.dark .lang-btn.active { background: var(--text); color: var(--bg); }

/* Brands section with background image */
.brands-section{
    position: relative;
    background-image: linear-gradient(rgba(20,10,20,0.55), rgba(40,15,30,0.6)), url('/static/img/brands-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}
.brands-section .brand-logo text{ fill: #ffffff !important; }
.brands-section .brands-row{ filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35)); }
html.dark .brands-section{
    background-image: linear-gradient(rgba(10,5,10,0.7), rgba(30,10,20,0.75)), url('/static/img/brands-bg.jpg');
}

/* Mobile cart item layout — prevent qty/price overlap */
@media (max-width: 640px){
    .cart-item{
        grid-template-columns: 56px 1fr auto;
        grid-template-areas:
            'img name remove'
            'img qty price';
        gap: 6px 12px;
        padding: 12px 14px;
    }
    .cart-item-image{ grid-area: img; width: 56px; height: 56px; align-self: start; }
    .cart-item-name{ grid-area: name; align-self: center; line-height: 1.3; }
    .cart-item-remove{ grid-area: remove; align-self: start; }
    .cart-item .qty-selector{ grid-area: qty; margin-bottom: 0; }
    .cart-item-price{ grid-area: price; align-self: center; text-align: right; }
}
