/* ============================================
   LEGACY SHOP - Compact, Enjoyable, Intuitive
   ============================================ */

:root {
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Premium Color Palette */
    --color-bg: #FAFAF8;
    --color-white: #FFFFFF;
    --color-surface: #F7F6F3;
    --color-border: #E8E6E1;
    --color-border-light: #F0EEE9;

    --color-text: #1C1917;
    --color-text-secondary: #57534E;
    --color-text-muted: #A8A29E;

    /* Gold Premium Accents */
    --color-primary: #C9A227;
    --color-primary-hover: #B8860B;
    --color-primary-light: #FDF8E8;
    --color-primary-dark: #8B6914;

    --color-success: #059669;
    --color-success-light: #D1FAE5;
    --color-warning: #D97706;
    --color-warning-light: #FEF3C7;
    --color-error: #DC2626;
    --color-error-light: #FEE2E2;

    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #C9A227 0%, #E6C24A 50%, #D4AF37 100%);
    --gradient-warm: linear-gradient(135deg, #D97706 0%, #DC2626 100%);
    --gradient-cool: linear-gradient(135deg, #0891B2 0%, #0284C7 100%);
    --gradient-hero: linear-gradient(135deg, #1C1917 0%, #292524 50%, #44403C 100%);
    --gradient-gold: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);

    /* Compact Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.06), 0 2px 4px -1px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);

    /* Transitions */
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;

    /* Layout */
    --header-height: 56px;
    --container-max: 1280px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: 0.9rem; line-height: 1.5; color: var(--color-text); background: var(--color-bg); min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
svg { display: inline-block; vertical-align: middle; flex-shrink: 0; width: 1em; height: 1em; }
input, select, textarea { font: inherit; }

/* Icon sizes */
.header-btn svg { width: 20px; height: 20px; }
.nav-link svg { width: 16px; height: 16px; }
.filter-chip svg { width: 14px; height: 14px; }
.sort-btn svg { width: 12px; height: 12px; }
.quick-btn svg { width: 14px; height: 14px; }
.add-cart-overlay svg { width: 14px; height: 14px; }
.btn svg { width: 16px; height: 16px; }
.section-title svg { width: 24px; height: 24px; }
.section-link svg { width: 14px; height: 14px; }
.stars svg { width: 10px; height: 10px; }
.toast-icon svg { width: 18px; height: 18px; }

/* ============================================
   HEADER - Compact & Clean
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-border-light);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
    height: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
}

.nav-link:hover, .nav-link.active {
    background: var(--color-surface);
    color: var(--color-primary);
}

.search-box {
    flex: 1;
    max-width: 320px;
    margin-left: auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.45rem 0.75rem 0.45rem 2.25rem;
    background: var(--color-surface);
    border: 1.5px solid transparent;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    color: var(--color-text);
    transition: all var(--duration-fast) ease;
}

.search-input:focus {
    outline: none;
    background: var(--color-white);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon svg {
    width: 16px;
    height: 16px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.header-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    transition: all var(--duration-fast) ease;
}

.header-btn:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.header-btn.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.header-btn svg { width: 20px; height: 20px; }

.cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.6rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-10) 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.section-title svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.section-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link svg {
    width: 14px;
    height: 14px;
}

.section-link:hover { text-decoration: underline; }

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) ease;
}

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

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

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-border);
}

.btn-ghost {
    color: var(--color-text-secondary);
}

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

.btn-sm {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
}

.btn svg { width: 16px; height: 16px; }

/* ============================================
   PRODUCT GRID - Compact Cards
   ============================================ */

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

@media (min-width: 480px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .products-grid { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); } }
@media (min-width: 1100px) { .products-grid { grid-template-columns: repeat(6, 1fr); } }

.product-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--duration-normal) var(--ease-smooth);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.product-img-wrap {
    position: relative;
    aspect-ratio: 1;
    background: var(--color-surface);
    overflow: hidden;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s var(--ease-smooth);
}

.product-card:hover .product-img { transform: scale(1.08); }

.product-badges {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    display: flex;
    gap: 4px;
}

.badge {
    padding: 2px 6px;
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 4px;
}

.badge-sale { background: var(--color-error); color: white; }
.badge-new { background: var(--gradient-primary); color: white; }
.badge-hot { background: var(--gradient-warm); color: white; }

.quick-actions {
    position: absolute;
    top: var(--space-2);
    right: var(--space-2);
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0;
    transform: translateX(8px);
    transition: all var(--duration-normal) var(--ease-smooth);
}

.product-card:hover .quick-actions {
    opacity: 1;
    transform: translateX(0);
}

.quick-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-fast) ease;
}

.quick-btn:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.quick-btn.liked {
    color: var(--color-error);
    background: var(--color-error-light);
}
.quick-btn.liked:hover {
    background: var(--color-error);
    color: white;
}
.quick-btn svg { width: 14px; height: 14px; }

.add-cart-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-2);
    background: var(--gradient-primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    opacity: 0;
    transform: translateY(100%);
    transition: all var(--duration-normal) var(--ease-bounce);
    border: none;
    cursor: pointer;
    width: 100%;
}

.add-cart-overlay.in-cart {
    background: var(--color-success);
}

.product-card:hover .add-cart-overlay {
    opacity: 1;
    transform: translateY(0);
}

.add-cart-overlay svg { width: 14px; height: 14px; }

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s var(--ease-bounce);
    max-width: 320px;
}

.toast.success { border-left: 4px solid var(--color-success); }
.toast.error { border-left: 4px solid var(--color-error); }
.toast.info { border-left: 4px solid var(--color-primary); }

.toast-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon { color: var(--color-success); }
.toast.error .toast-icon { color: var(--color-error); }
.toast.info .toast-icon { color: var(--color-primary); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
}

.toast-message {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.toast-close {
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 4px;
}

.toast-close:hover { color: var(--color-text); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.toast.removing {
    animation: slideOut 0.3s var(--ease-smooth) forwards;
}

/* Header badges */
.badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--color-error);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-count:empty, .badge-count[data-count="0"] {
    display: none;
}

.product-info { padding: var(--space-2); }

.product-brand {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.product-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-1);
    min-height: 2em;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: var(--space-1);
}

.stars { display: flex; gap: 1px; color: var(--color-primary); }
.stars svg { width: 10px; height: 10px; }
.rating-text { font-size: 0.65rem; color: var(--color-text-muted); }

.product-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-now {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-text);
}

.price-was {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-sale { color: var(--color-error); }

/* Stock Availability Styles */
.product-stock {
    margin-top: var(--space-1);
}

.stock-low {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-warning);
}

.badge-soldout {
    background: var(--color-text-muted);
    color: white;
}

.add-cart-overlay.sold-out {
    background: var(--color-text-muted);
    cursor: not-allowed;
}

.add-cart-overlay.sold-out:hover {
    background: var(--color-text-muted);
    transform: none;
}

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

.hero {
    background: var(--gradient-hero);
    color: white;
    padding: var(--space-12) 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-1) var(--space-3);
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.hero-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: var(--space-6);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

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

.hero .btn-secondary {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    color: white;
}

/* ============================================
   CATEGORY PILLS
   ============================================ */

.categories-scroll {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: var(--space-2) 0;
    -webkit-overflow-scrolling: touch;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-pill {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: all var(--duration-fast) ease;
}

.category-pill:hover, .category-pill.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.category-pill svg { width: 16px; height: 16px; }

/* ============================================
   FILTER BAR
   ============================================ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-sm);
    overflow-x: auto;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.35rem 0.65rem;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    white-space: nowrap;
    transition: all var(--duration-fast) ease;
}

.filter-chip:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.filter-chip.active {
    background: var(--color-primary);
    color: white;
}

.filter-chip svg { width: 12px; height: 12px; }

.filter-divider {
    width: 1px;
    height: 20px;
    background: var(--color-border);
    flex-shrink: 0;
}

.sort-dropdown {
    position: relative;
    margin-left: auto;
}

.sort-btn {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: 0.35rem 0.65rem;
    background: var(--color-surface);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

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

.sort-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border-light);
    padding: var(--space-1);
    z-index: 50;
}

.sort-option {
    display: block;
    width: 100%;
    padding: var(--space-2) var(--space-3);
    font-size: 0.8rem;
    color: var(--color-text-secondary);
    border-radius: var(--radius-sm);
    text-align: left;
    transition: all var(--duration-fast) ease;
    cursor: pointer;
}

.sort-option:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.sort-option.active {
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-weight: 500;
}

/* ============================================
   CART & CHECKOUT
   ============================================ */

.cart-layout {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 900px) {
    .cart-layout {
        grid-template-columns: 1fr 340px;
    }
}

.cart-items {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
}

.cart-item {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.cart-item:last-child { border-bottom: none; }

.cart-item-img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    background: var(--color-surface);
}

.cart-item-details { flex: 1; }

.cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.cart-item-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.cart-item-price {
    font-weight: 700;
    color: var(--color-text);
}

.qty-control {
    display: inline-flex;
    align-items: center;
    background: var(--color-surface);
    border-radius: var(--radius-md);
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
}

.qty-btn:hover { color: var(--color-primary); }
.qty-btn svg { width: 14px; height: 14px; }

.qty-value {
    width: 32px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-summary {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    height: fit-content;
    position: sticky;
    top: calc(var(--header-height) + var(--space-4));
}

.summary-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: 0.85rem;
}

.summary-row.total {
    font-weight: 700;
    font-size: 1rem;
    padding-top: var(--space-3);
    margin-top: var(--space-3);
    border-top: 1px solid var(--color-border);
}

.promo-input {
    display: flex;
    gap: var(--space-2);
    margin: var(--space-4) 0;
}

.promo-input input {
    flex: 1;
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.8rem;
}

.checkout-btn {
    width: 100%;
    margin-top: var(--space-4);
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    transition: all var(--duration-fast) ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

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

.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-10) 0 var(--space-6);
    margin-top: var(--space-12);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-brand .logo {
    margin-bottom: var(--space-3);
}

.footer-text {
    font-size: 0.8rem;
    opacity: 0.7;
    line-height: 1.6;
}

.footer-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-link {
    font-size: 0.8rem;
    opacity: 0.7;
    transition: opacity var(--duration-fast) ease;
}

.footer-link:hover { opacity: 1; }

.footer-bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.5;
}

/* App Download Section */
.app-download {
    margin-top: var(--space-4);
}

.app-download-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-3);
    opacity: 0.9;
}

.app-store-buttons {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.app-store-btn {
    display: block;
    transition: all var(--duration-fast) ease;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.app-store-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.app-store-icon,
.play-store-icon {
    height: 40px;
    width: auto;
    display: block;
}

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

.page-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
}

.page-subtitle {
    font-size: 1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Page */
.contact-grid {
    display: grid;
    gap: var(--space-6);
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

.contact-form-section .card,
.contact-info-section .card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.contact-info-item {
    display: flex;
    gap: var(--space-4);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info-item h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.contact-info-item p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* FAQ Page */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-section {
    margin-bottom: var(--space-8);
}

.faq-section-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-primary-light);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.faq-item {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    text-align: left;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
}

.faq-question:hover {
    background: var(--color-surface);
}

.faq-question.active {
    color: var(--color-primary);
}

.faq-question svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: transform var(--duration-normal) ease;
}

.faq-question.active svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-4) var(--space-4);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.faq-cta {
    text-align: center;
    padding: var(--space-8);
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    margin-top: var(--space-8);
}

.faq-cta p {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

/* Info Pages (Shipping, Returns) */
.info-page-content {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.info-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-sm);
}

.info-card.highlight {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.info-card.highlight h2 {
    color: white;
}

.info-card.highlight p {
    opacity: 0.9;
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-4);
}

.info-card-icon svg {
    width: 30px;
    height: 30px;
}

.info-card h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-4);
}

.info-card p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-list {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
}

.info-list li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.info-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Shipping Table */
.shipping-table {
    overflow-x: auto;
    margin-top: var(--space-4);
}

.shipping-table table {
    width: 100%;
    border-collapse: collapse;
}

.shipping-table th,
.shipping-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.85rem;
}

.shipping-table th {
    font-weight: 600;
    color: var(--color-text);
    background: var(--color-surface);
}

.shipping-table td {
    color: var(--color-text-secondary);
}

.shipping-table tr:last-child td {
    border-bottom: none;
}

/* Steps List */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-4);
}

.step {
    display: flex;
    gap: var(--space-4);
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.step p {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin: 0;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-sm);
}

.legal-section {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-3);
}

.legal-section p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: var(--space-3) 0;
}

.legal-section ul li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Card Title */
.card .card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.mt-4 { margin-top: var(--space-4); }
.mb-4 { margin-bottom: var(--space-4); }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }

/* ============================================
   ANIMATIONS
   ============================================ */

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

.animate-in {
    animation: fadeInUp 0.4s var(--ease-smooth) backwards;
}

/* ============================================
   SMART SEARCH STYLES
   ============================================ */

.search-container {
    position: relative;
    margin-bottom: var(--space-4);
}

.search-input-wrap {
    position: relative;
    max-width: 100%;
}

.search-input-wrap svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    width: 18px;
    height: 18px;
}

.search-input-lg {
    width: 100%;
    padding: 0.75rem 2.5rem 0.75rem 2.75rem;
    background: var(--color-white);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    transition: all var(--duration-fast) ease;
}

.search-input-lg:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px var(--color-primary-light);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: 50%;
}

.search-clear:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.search-clear svg {
    position: static;
    transform: none;
    width: 14px;
    height: 14px;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border-light);
    z-index: 50;
    max-height: 400px;
    overflow-y: auto;
}

.search-section {
    padding: var(--space-2) var(--space-3);
}

.search-section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--space-2);
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: background var(--duration-fast) ease;
    width: 100%;
    text-align: left;
}

.search-suggestion:hover, .search-suggestion.active {
    background: var(--color-surface);
}

.search-suggestion-icon {
    width: 20px;
    height: 20px;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-suggestion-icon svg {
    width: 16px;
    height: 16px;
}

.search-suggestion-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-surface);
}

.search-suggestion-info {
    flex: 1;
    min-width: 0;
}

.search-suggestion-name {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.search-suggestion-brand {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: block;
}

.search-suggestion-price {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
}

.search-highlight {
    background: var(--color-warning-light);
    color: var(--color-text);
    padding: 0 2px;
    border-radius: 2px;
}

.search-no-results {
    padding: var(--space-6);
    text-align: center;
    color: var(--color-text-muted);
}

/* ============================================
   GLOBAL SEARCH DROPDOWN
   ============================================ */

.global-search-input-wrap {
    position: relative;
    width: 100%;
}

.search-clear-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    border-radius: 50%;
    transition: all var(--duration-fast) ease;
    z-index: 2;
}

.search-clear-btn:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.search-clear-btn svg {
    width: 12px;
    height: 12px;
}

.search-spinner {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--color-primary);
    z-index: 2;
}

.search-spinner svg {
    width: 18px;
    height: 18px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.05);
    z-index: 200;
    max-height: 480px;
    overflow-y: auto;
    overflow-x: hidden;
}

.global-search-dropdown::-webkit-scrollbar {
    width: 6px;
}

.global-search-dropdown::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 3px;
}

.global-search-dropdown::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 3px;
}

.global-search-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Dropdown animation */
.dropdown-enter {
    animation: dropdownIn 0.2s var(--ease-smooth);
}

.dropdown-leave {
    animation: dropdownOut 0.15s var(--ease-smooth);
}

@keyframes dropdownIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes dropdownOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-8px);
    }
}

.search-dropdown-section {
    padding: var(--space-2) 0;
    border-bottom: 1px solid var(--color-border-light);
}

.search-dropdown-section:last-child {
    border-bottom: none;
}

.search-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-2) var(--space-3);
}

.search-section-title {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.search-section-link {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: color var(--duration-fast) ease;
}

.search-section-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.search-section-clear {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--duration-fast) ease;
}

.search-section-clear:hover {
    color: var(--color-error);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background var(--duration-fast) ease;
    text-decoration: none;
    color: inherit;
}

.search-result-item:hover,
.search-result-item.active {
    background: var(--color-surface);
}

.search-result-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-result-icon svg {
    width: 16px;
    height: 16px;
}

.search-result-icon.trending {
    color: var(--color-primary);
}

.search-result-icon.campaign {
    color: var(--color-warning);
}

.search-result-icon.page {
    color: var(--color-text-secondary);
}

.search-result-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--color-surface);
    flex-shrink: 0;
}

.search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.search-result-name {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-brand,
.search-result-meta {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.search-result-text {
    font-size: 0.85rem;
    color: var(--color-text);
}

.search-result-price {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    flex-shrink: 0;
}

.search-result-badge {
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 2px 6px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

.badge-product {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

.badge-campaign {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.badge-page {
    background: var(--color-surface);
    color: var(--color-text-secondary);
}

.search-highlight {
    background: var(--color-warning-light);
    color: var(--color-text);
    padding: 0 2px;
    border-radius: 2px;
}

.global-search-dropdown .search-no-results {
    padding: var(--space-8) var(--space-4);
    text-align: center;
    color: var(--color-text-muted);
}

.global-search-dropdown .search-no-results svg {
    width: 48px;
    height: 48px;
    margin: 0 auto var(--space-3);
    opacity: 0.5;
}

.global-search-dropdown .search-no-results p {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: var(--space-1);
}

.global-search-dropdown .search-no-results span {
    font-size: 0.8rem;
}

/* Hide elements initially with x-cloak */
[x-cloak] {
    display: none !important;
}

/* Mobile: Full-screen search overlay */
@media (max-width: 639px) {
    .search-box {
        position: static;
    }

    .global-search-dropdown {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        max-height: none;
        border-radius: 0;
        z-index: 150;
        background: var(--color-bg);
    }

    .search-result-item {
        padding: var(--space-3);
    }

    .search-result-badge {
        display: none;
    }

    .search-result-img {
        width: 48px;
        height: 48px;
    }
}

/* ============================================
   ACTIVE FILTERS
   ============================================ */

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
}

.active-filter button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    transition: background var(--duration-fast) ease;
}

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

.active-filter button svg {
    width: 10px;
    height: 10px;
}

.clear-all-btn {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding: 4px 10px;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) ease;
}

.clear-all-btn:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

/* ============================================
   FILTER BAR ENHANCEMENTS
   ============================================ */

.filter-chips {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.filter-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-left: auto;
}

.results-count {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Mobile adjustments */
@media (max-width: 639px) {
    .nav-links { display: none; }
    .search-box { max-width: none; }
    .hero { padding: var(--space-8) 0; }
    .hero-title { font-size: 1.75rem; }
    .add-cart-overlay { opacity: 1; transform: translateY(0); }
    .quick-actions { opacity: 1; transform: translateX(0); }
    .filter-bar { flex-wrap: wrap; }
    .filter-chips { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: var(--space-2); }
    .filter-actions { width: 100%; justify-content: space-between; }
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */

.auth-container {
    min-height: calc(100vh - var(--header-height) - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.auth-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-8);
    width: 100%;
    max-width: 400px;
}

.auth-card-wide {
    max-width: 520px;
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-6);
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.auth-footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border-light);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.auth-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.auth-link {
    color: var(--color-primary);
    font-weight: 500;
    transition: color var(--duration-fast) ease;
}

.auth-link:hover {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.auth-divider {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    margin-bottom: var(--space-4);
}

.alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: var(--color-error-light);
    color: var(--color-error);
    border: 1px solid var(--color-error);
}

.alert-success {
    background: var(--color-success-light);
    color: var(--color-success);
    border: 1px solid var(--color-success);
}

.alert-info {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

.info-banner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--color-primary-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.info-banner svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-1);
}

.btn-block {
    width: 100%;
}

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

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

.mt-2 {
    margin-top: var(--space-2);
}

/* ============================================
   ACCOUNT PAGE
   ============================================ */

.account-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
}

.account-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-6);
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    color: white;
    margin-bottom: var(--space-6);
}

.account-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.avatar-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.8;
}

.account-info {
    flex: 1;
}

.account-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-1);
}

.account-role {
    font-size: 0.9rem;
    opacity: 0.9;
}

.logout-form {
    margin-left: auto;
}

.logout-form .btn {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.logout-form .btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.account-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .account-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.account-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
}

.card-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border-light);
}

.card-title svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
}

.info-value {
    font-size: 0.9rem;
    color: var(--color-text);
}

/* ============================================
   STATUS BADGES
   ============================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-active {
    background: var(--color-success-light);
    color: var(--color-success);
}

.status-pending {
    background: var(--color-warning-light);
    color: var(--color-warning);
}

.status-disabled {
    background: var(--color-error-light);
    color: var(--color-error);
}

.tier-badge {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-transform: capitalize;
}

/* ============================================
   QR CODE DISPLAY
   ============================================ */

.qr-code-container {
    margin-top: var(--space-2);
}

.qr-code-box {
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    text-align: center;
}

.qr-code-text {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--color-primary);
    word-break: break-all;
}

.qr-hint {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: var(--space-2);
    text-align: center;
}

/* ============================================
   ACTION BUTTONS GRID
   ============================================ */

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    color: var(--color-text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all var(--duration-fast) ease;
}

.action-btn svg {
    width: 24px;
    height: 24px;
}

.action-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
}

/* Mobile adjustments for auth */
@media (max-width: 639px) {
    .auth-card {
        padding: var(--space-6);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
    }

    .logout-form {
        margin-left: 0;
        margin-top: var(--space-3);
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   PRODUCT DETAIL PAGE - Enhanced
   ============================================ */

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
}

@media (min-width: 768px) {
    .product-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .product-detail-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: var(--space-10);
    }
}

/* Product Info Section */
.product-info-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.product-brand-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

@media (min-width: 768px) {
    .product-title {
        font-size: 2rem;
    }
}

.product-description {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Price Section */
.product-price-section {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.price-current {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text);
}

.price-current.price-sale {
    color: var(--color-error);
}

.price-original {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.price-discount {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-white);
    background: var(--color-error);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

/* Stock Warning */
.stock-warning {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-warning);
    padding: var(--space-2) var(--space-3);
    background: var(--color-warning-light);
    border-radius: var(--radius-md);
}

.stock-warning svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--space-3);
}

.btn-cart {
    flex: 1;
}

.btn-in-cart {
    background: var(--color-success) !important;
}

.btn-wishlist {
    flex-shrink: 0;
}

.btn-favorited {
    background: var(--color-error-light) !important;
    color: var(--color-error) !important;
    border-color: var(--color-error) !important;
}

/* Trust Signals */
.trust-signals {
    padding: var(--space-4);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: 0.85rem;
    color: var(--color-text);
}

.trust-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 18px;
    height: 18px;
}

.trust-icon-shipping { color: var(--color-success); }
.trust-icon-secure { color: var(--color-primary); }
.trust-icon-returns { color: var(--color-warning); }

/* ============================================
   IMAGE GALLERY WITH ZOOM
   ============================================ */

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.gallery-main {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 1;
    cursor: zoom-in;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s var(--ease-smooth);
}

.gallery-main:hover .gallery-main-img {
    transform: scale(1.02);
}

/* Zoom Overlay - Shows zoomed image on hover */
.zoom-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--color-white);
    background-repeat: no-repeat;
    z-index: 10;
    pointer-events: none;
    cursor: zoom-in;
}

/* Hide zoom on touch devices */
@media (hover: none) {
    .zoom-overlay {
        display: none !important;
    }
}

/* Zoom Hint */
.zoom-hint {
    position: absolute;
    bottom: var(--space-3);
    left: var(--space-3);
    width: 36px;
    height: 36px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--color-text-secondary);
    opacity: 0.9;
    transition: all var(--duration-fast) ease;
    pointer-events: none;
}

.zoom-hint svg {
    width: 18px;
    height: 18px;
}

/* Lightbox trigger button */
.lightbox-trigger {
    position: absolute;
    bottom: var(--space-3);
    right: var(--space-3);
    width: 40px;
    height: 40px;
    background: var(--color-white);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    z-index: 15;
}

.lightbox-trigger:hover {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.lightbox-trigger svg {
    width: 20px;
    height: 20px;
}

/* Thumbnail Strip */
.gallery-thumbs {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding: var(--space-1);
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-track {
    background: var(--color-surface);
    border-radius: 2px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 2px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-fast) ease;
    background: var(--color-surface);
    padding: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.gallery-thumb:hover {
    border-color: var(--color-border);
}

.gallery-thumb:hover img {
    transform: scale(1.1);
}

.gallery-thumb.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px var(--color-primary-light);
}

@media (min-width: 768px) {
    .gallery-thumb {
        width: 80px;
        height: 80px;
    }
}

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

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.lightbox-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: var(--radius-full);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) ease;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox-prev {
    left: var(--space-4);
}

.lightbox-next {
    right: var(--space-4);
}

.lightbox-counter {
    position: absolute;
    bottom: var(--space-4);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ============================================
   INTERACTIVE RATING
   ============================================ */

.product-rating-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.rating-display {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.rating-stars-interactive {
    display: flex;
    gap: 2px;
}

.rating-star {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
    color: var(--color-border);
    transition: all var(--duration-fast) ease;
}

.rating-star svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    transition: all var(--duration-fast) ease;
}

.rating-star.filled {
    color: var(--color-primary);
}

.rating-star.filled svg {
    fill: currentColor;
}

.rating-star:hover {
    transform: scale(1.2);
}

.rating-star.hover {
    color: var(--color-primary);
}

.rating-star.hover svg {
    fill: currentColor;
    filter: drop-shadow(0 0 4px rgba(201, 162, 39, 0.5));
}

.rating-score {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
}

.rating-count {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}

.rating-hint {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
}

.rating-thanks {
    font-size: 0.8rem;
    color: var(--color-success);
    font-weight: 500;
}

/* Mobile adjustments for product detail */
@media (max-width: 767px) {
    .product-gallery {
        flex-direction: column;
    }

    .gallery-thumbs {
        order: 1;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-nav svg {
        width: 20px;
        height: 20px;
    }

    .rating-star svg {
        width: 28px;
        height: 28px;
    }
}
