/* ============================================================
   Tech Dad Workshop — Design System
   Premium dark theme with red accents
   ============================================================ */

/* --- Custom Properties --- */
:root {
    --red: #e60000;
    --red-hover: #ff1a1a;
    --red-glow: rgba(230, 0, 0, 0.15);
    --red-glow-strong: rgba(230, 0, 0, 0.3);
    --dark: #0a0a0a;
    --surface: #101010;
    --card: #151515;
    --card-hover: #1a1a1a;
    --border: #1e1e1e;
    --border-light: #2a2a2a;
    --text: #f0f0f0;
    --text-secondary: #999;
    --text-muted: #555;
    --success: #28a745;
    --info: #007bff;
    --warning: #ffcc00;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-pill: 30px;
    --shadow: 0 8px 32px rgba(0,0,0,0.4);
    --shadow-hover: 0 16px 48px rgba(0,0,0,0.6);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --header-height: 70px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--dark);
    color: var(--text);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--red); }

/* --- Selection --- */
::selection { background: var(--red); color: #fff; }

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 500;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: var(--header-height);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.5); }

.logo { height: 75px; transition: transform 0.2s; }
.logo:hover { transform: scale(1.05); }

.cart-trigger {
    position: absolute;
    right: 24px;
    font-size: 1.3rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 10px;
    transition: color var(--transition);
}
.cart-trigger:hover { color: var(--red); }

.cart-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    pointer-events: none;
    transition: transform 0.3s;
}
.cart-badge.bump {
    animation: cartBump 0.4s ease;
}

@keyframes cartBump {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    text-align: center;
    padding: 80px 24px 60px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 120%, rgba(230,0,0,0.08) 0%, transparent 60%),
                linear-gradient(180deg, #111 0%, var(--dark) 100%);
}

.hero__glow {
    position: absolute;
    bottom: -40%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(230,0,0,0.12) 0%, transparent 70%);
    pointer-events: none;
    animation: heroGlowPulse 4s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
    50%      { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero__content { position: relative; z-index: 1; }

.hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #fff 30%, var(--red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-secondary);
    font-weight: 300;
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ============================================================
   TOOLBAR — Search + Filters
   ============================================================ */
.toolbar {
    position: sticky;
    top: var(--header-height);
    z-index: 400;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
}

.toolbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Search */
.search-wrap {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color var(--transition);
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-pill);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}
.search-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
.search-input:focus + .search-icon,
.search-wrap:focus-within .search-icon { color: var(--red); }

.search-input::placeholder { color: var(--text-muted); }

/* Filters */
.filter-bar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transition: all var(--transition);
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--red);
    color: var(--text);
    background: rgba(230, 0, 0, 0.05);
}
.filter-btn.active {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
    box-shadow: 0 4px 12px rgba(230,0,0,0.3);
}

.sort-select {
    background: var(--surface);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    transition: all var(--transition);
}
.sort-select:hover, .sort-select:focus {
    border-color: var(--red);
    color: var(--text);
}

/* Product count */
.product-count {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* ============================================================
   CATALOG — Product Grid
   ============================================================ */
.catalog {
    max-width: 1240px;
    margin: 0 auto;
    padding: 32px 24px 80px;
    min-height: 50vh;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 28px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 3.5rem;
    margin-bottom: 16px;
    opacity: 0.4;
}
.empty-state p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.product-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
    position: relative;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(24px);
}
.product-card.visible {
    opacity: 1;
    transform: translateY(0);
}
.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(230, 0, 0, 0.4);
    box-shadow: var(--shadow-hover), 0 0 40px var(--red-glow);
}

.product-card__image-wrap {
    position: relative;
    overflow: hidden;
    background: #000;
}

.product-card__image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.5s ease;
}
.product-card:hover .product-card__image {
    transform: scale(1.05);
}

/* Badges */
.badge {
    position: absolute;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    box-shadow: 0 3px 8px rgba(0,0,0,0.35);
}
.badge--stock {
    top: 12px;
    left: 12px;
    background: var(--success);
    color: #fff;
}
.badge--demand {
    top: 12px;
    left: 12px;
    background: var(--info);
    color: #fff;
}
.badge--new {
    top: 12px;
    right: 12px;
    background: var(--red);
    color: #fff;
}
.badge--popular {
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b00, #e60000);
    color: #fff;
}

/* Card body */
.product-card__body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.product-card__title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__teaser {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 300;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.product-card__colors {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.15);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.color-dot--dual {
    background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
}

.color-dot--triple {
    background: linear-gradient(120deg, var(--c1) 33.3%, var(--c2) 33.3% 66.6%, var(--c3) 66.6%);
}

.product-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-card__price {
    color: var(--red);
    font-weight: 800;
    font-size: 1.3rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all var(--transition);
    text-decoration: none;
}

.btn--primary {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 15px var(--red-glow-strong);
}
.btn--primary:hover {
    background: var(--red-hover);
    box-shadow: 0 6px 20px var(--red-glow-strong);
    transform: translateY(-1px);
}

.btn--secondary {
    background: #222;
    color: var(--text);
}
.btn--secondary:hover {
    background: #2a2a2a;
}

.btn--ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
}
.btn--ghost:hover {
    border-color: var(--red);
    color: var(--text);
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.82rem;
    border-radius: 8px;
}

.btn--full { width: 100%; }

.btn--lg {
    padding: 15px 24px;
    font-size: 1rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================================
   FORM INPUTS
   ============================================================ */
.form-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    display: block;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 13px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    margin-bottom: 14px;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23999' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

/* ============================================================
   PRODUCT MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    overflow-y: auto;
    padding: 20px;
}
.modal.open { display: block; }

.modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: fadeIn 0.2s ease;
}

.modal__content {
    position: relative;
    background: var(--card);
    margin: 4vh auto;
    padding: 32px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 620px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
    animation: slideUp 0.3s ease;
    z-index: 1001;
}

.modal__gallery-main {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 12px;
    background: #000;
    cursor: zoom-in;
    transition: opacity 0.2s;
}

.modal__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 20px;
}
.modal__thumbs::-webkit-scrollbar { height: 4px; }
.modal__thumbs::-webkit-scrollbar-thumb { background: #333; border-radius: 2px; }

.thumb-item {
    width: 64px;
    height: 64px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 8px;
    border: 2px solid transparent;
    opacity: 0.5;
    transition: all 0.2s;
    flex-shrink: 0;
}
.thumb-item:hover { opacity: 0.8; }
.thumb-item.active { opacity: 1; border-color: var(--red); }

.modal__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.modal__desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 16px;
    line-height: 1.7;
    white-space: pre-line;
}

.modal__price {
    color: var(--red);
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

/* Color swatches */
.swatch-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    margin-top: 6px;
}

.swatch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    padding: 8px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.82rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.swatch:hover { background: #222; }
.swatch.active { border-color: var(--red); background: #1a1a1a; }
.swatch .dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.swatch .dot--dual {
    background: linear-gradient(135deg, var(--c1) 50%, var(--c2) 50%);
}

.swatch .dot--triple {
    background: linear-gradient(120deg, var(--c1) 33.3%, var(--c2) 33.3% 66.6%, var(--c3) 66.6%);
}

/* Quantity */
.qty-wrap {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 16px;
    margin-top: 6px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qty-btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty-btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty-btn:hover { background: #222; border-color: var(--red); }

.qty-display {
    width: 50px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 1rem;
}

.modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.modal__actions .btn { flex: 1; }
.modal__actions .btn--primary { flex: 2; }

/* ============================================================
   CART DRAWER
   ============================================================ */
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    height: 100dvh;
    background: var(--card);
    z-index: 2000;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    border-left: 1px solid var(--border);
}
.cart-drawer.open { right: 0; }

.cart-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
    flex-shrink: 0;
}
.cart-header h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 6px;
    transition: color 0.2s;
}
.cart-close:hover { color: var(--red); }

/* Step indicator */
.cart-steps {
    display: flex;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--surface);
}

.cart-step {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    transition: color var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.cart-step.active { color: var(--red); }
.cart-step.completed { color: var(--success); }

.cart-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #222;
    font-size: 0.7rem;
    margin-right: 5px;
    vertical-align: middle;
    transition: all var(--transition);
}
.cart-step.active .cart-step__number {
    background: var(--red);
    color: #fff;
}
.cart-step.completed .cart-step__number {
    background: var(--success);
    color: #fff;
}

/* Cart body */
.cart-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* Cart items */
.cart-item {
    background: var(--surface);
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid var(--border);
    transition: border-color 0.2s;
}
.cart-item:hover { border-color: var(--border-light); }

.cart-item__image {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #000;
}

.cart-item__info { flex-grow: 1; min-width: 0; }
.cart-item__title {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cart-item__meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.cart-item__right {
    text-align: right;
    flex-shrink: 0;
}
.cart-item__price {
    color: var(--red);
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.cart-item__remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 2px;
    transition: color 0.2s;
}
.cart-item__remove:hover { color: var(--red); }

/* Cart item qty controls */
.cart-item__qty {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 6px;
}
.cart-item__qty button {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
    border: 1px solid var(--border);
    background: #1a1a1a;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.cart-item__qty button:first-child { border-radius: 5px 0 0 5px; }
.cart-item__qty button:last-child { border-radius: 0 5px 5px 0; }
.cart-item__qty button:hover { background: #222; border-color: var(--red); }
.cart-item__qty span {
    width: 32px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    background: #1a1a1a;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Cart empty */
.cart-empty {
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}
.cart-empty i {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.3;
}
.cart-empty p { font-weight: 300; }

/* Cart totals */
.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    margin-top: 8px;
}
.cart-total-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}
.cart-total-value {
    font-size: 1.4rem;
    color: var(--red);
    font-weight: 800;
}

/* Cart footer */
.cart-footer {
    padding: 16px 24px 20px;
    border-top: 1px solid var(--border);
    background: var(--surface);
    flex-shrink: 0;
}

.cart-footer .btn { margin-bottom: 8px; }
.cart-footer .btn:last-child { margin-bottom: 0; }

/* Checkout step content */
.step-content { animation: fadeIn 0.25s ease; }

/* Delivery toggle */
.delivery-toggle {
    display: flex;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 14px;
    margin-top: 6px;
    border: 1px solid var(--border);
}
.delivery-option {
    flex: 1;
    padding: 12px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    background: var(--surface);
    color: var(--text-muted);
    transition: all 0.2s;
    border: none;
    font-family: 'Poppins', sans-serif;
}
.delivery-option.active {
    background: var(--red);
    color: #fff;
}
.delivery-option:hover:not(.active) {
    background: #1a1a1a;
    color: var(--text);
}

/* Order summary in step 3 */
.order-summary {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid var(--border);
    margin-bottom: 12px;
}
.order-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
}
.order-summary__row:not(:last-child) {
    border-bottom: 1px solid var(--border);
}
.order-summary__label { color: var(--text-secondary); }
.order-summary__value { font-weight: 600; }

.order-ref {
    text-align: center;
    padding: 16px;
    background: rgba(230, 0, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(230, 0, 0, 0.15);
    margin-bottom: 16px;
}
.order-ref__label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.order-ref__code {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--red);
    font-family: monospace;
    letter-spacing: 2px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
}

.footer__logo {
    height: 40px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer__brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 300;
    max-width: 320px;
}

.footer__links h4,
.footer__social h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer__links a,
.footer__social a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.2s;
}
.footer__links a:hover,
.footer__social a:hover {
    color: var(--red);
}

.footer__bottom {
    border-top: 1px solid var(--border);
    text-align: center;
    padding: 20px 24px;
}
.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 300;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition);
    box-shadow: 0 4px 16px var(--red-glow-strong);
    display: flex;
    align-items: center;
    justify-content: center;
}
.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.back-to-top:hover {
    background: var(--red-hover);
    transform: translateY(-3px);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
    0%   { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Skeleton loader */
.skeleton {
    background: linear-gradient(90deg, var(--card) 25%, #1f1f1f 50%, var(--card) 75%);
    background-size: 400px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
.skeleton--card {
    height: 380px;
}

/* ============================================================
   LIGHTBOX (zoom image)
   ============================================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 60px rgba(0,0,0,0.6);
}

/* ============================================================
   UTILITY
   ============================================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .hero { padding: 50px 20px 40px; }
    .hero h1 { font-size: 1.8rem; }
    .hero p { font-size: 0.95rem; }

    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .product-card__image { height: 180px; }
    .product-card__body { padding: 14px; }
    .product-card__title { font-size: 0.9rem; }
    .product-card__price { font-size: 1.1rem; }
    .product-card__teaser { display: none; }

    .modal__content {
        margin: 10px auto;
        padding: 20px;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 92vh;
        overflow-y: auto;
        animation: slideUpMobile 0.3s ease;
    }

    .footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 20px 24px;
    }

    .cart-drawer { max-width: 100%; }

    .toolbar { padding: 12px 16px; }
    .filter-btn { padding: 7px 14px; font-size: 0.78rem; }
}

@keyframes slideUpMobile {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

@media (max-width: 400px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-card__image { height: 150px; }
    .badge { font-size: 0.6rem; padding: 4px 8px; }
    .btn--sm { padding: 8px 12px; font-size: 0.75rem; }
}
