/* ===== GOOGLE FONTS & IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* ===== DESIGN SYSTEM & TOKENS ===== */
:root {
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
    
    /* Dark / Modern Color Palette */
    --bg-dark: #0f172a;
    --bg-darker: #090d16;
    --bg-card: #1e293b;
    --bg-card-hover: #2a374e;
    --bg-light: #f8fafc;
    
    /* Primary Accent Gradients */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-glow: rgba(99, 102, 241, 0.35);
    
    /* Secondary & Functional Colors */
    --accent-emerald: #10b981;
    --accent-amber: #f59e0b;
    --accent-rose: #f43f5e;
    --accent-cyan: #06b6d4;
    
    /* Text Colors */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --text-dark-muted: #64748b;
    
    /* Borders & Glassmorphism */
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(30, 41, 59, 0.75);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(16px);
    
    /* Shadows & Radii */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 25px var(--accent-glow);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== RESET & BASE STYLES ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-darker);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ===== TOP BANNER ===== */
.top-bar {
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #db2777);
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.top-bar span.tag {
    background: rgba(255, 255, 255, 0.25);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== HEADER & NAVIGATION ===== */
.app-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: white;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-glow);
}

.logo span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header Search */
.header-search {
    flex: 1;
    max-width: 450px;
    position: relative;
}

.header-search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 0.65rem 1rem 0.65rem 2.8rem;
    color: white;
    font-size: 0.9rem;
    transition: var(--transition);
}

.header-search input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.09);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.header-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.header-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.header-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.cart-toggle-btn {
    position: relative;
    background: var(--primary-gradient);
    border: none;
    color: white;
    box-shadow: var(--shadow-glow);
}

.cart-toggle-btn:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-2px);
}

.cart-badge {
    background: var(--accent-rose);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-dark);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 4rem 2rem;
    margin: 1.5rem 2rem 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95)), 
                radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.25) 0%, transparent 50%);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    z-index: 2;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.2rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero h1 span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 540px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.85rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-badge-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transform: rotate(-2deg);
    transition: var(--transition);
}

.hero-badge-card:hover {
    transform: rotate(0deg) scale(1.03);
}

.hero-emoji {
    font-size: 4.5rem;
    display: block;
    margin-bottom: 0.8rem;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.3));
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    flex: 1;
}

/* Controls Bar (Filter + Search + Sort) */
.controls-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    box-shadow: var(--shadow-card);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.category-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.category-pill.active {
    background: var(--primary-gradient);
    color: white;
    border-color: transparent;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
}

.filter-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.sort-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.88rem;
    outline: none;
    cursor: pointer;
}

.sort-select option {
    background: var(--bg-card);
    color: white;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.8rem;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 5;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-sale { background: var(--accent-rose); color: white; }
.badge-new { background: var(--accent-emerald); color: white; }
.badge-hot { background: var(--accent-amber); color: black; }

.product-image-box {
    aspect-ratio: 4/3;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    position: relative;
    transition: var(--transition);
    user-select: none;
}

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

.quick-view-btn {
    position: absolute;
    bottom: 0.8rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translateY(0);
}

.product-info {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-category-tag {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.product-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.rating-box {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--accent-amber);
    margin-bottom: 0.8rem;
}

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

.product-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-bottom {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.price-box {
    display: flex;
    flex-direction: column;
}

.current-price {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: white;
}

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

.add-cart-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: white;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.add-cart-btn:hover {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
    transform: scale(1.08);
}

/* ===== PRODUCT DETAILS MODAL ===== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 1.5rem;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-container {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-card);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-backdrop.active .modal-container {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2.5rem;
}

.modal-img-box {
    aspect-ratio: 1/1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6.5rem;
}

.modal-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.modal-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.color-picker {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0;
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-dot.selected {
    border-color: white;
    transform: scale(1.2);
}

/* ===== CART SIDE DRAWER ===== */
.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -450px;
    width: 440px;
    max-width: 100vw;
    height: 100%;
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    z-index: 310;
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}

.cart-drawer.active {
    right: 0;
}

.cart-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-header h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.cart-items-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
}

.cart-item-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.cart-item-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.6rem;
}

.qty-btn {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.qty-btn:hover, .qty-btn:active {
    background: var(--primary);
    color: white;
}

.cart-item-remove {
    background: rgba(244, 63, 94, 0.1);
    border: none;
    color: var(--accent-rose);
    cursor: pointer;
    font-size: 1rem;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-remove:hover, .cart-item-remove:active {
    background: var(--accent-rose);
    color: white;
}

.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(15, 23, 42, 0.5);
}

.coupon-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.coupon-box input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.8rem;
    color: white;
    font-size: 0.85rem;
}

.coupon-box button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.cart-summary-line.total {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: white;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border-color);
}

.checkout-btn {
    width: 100%;
    margin-top: 1.2rem;
    padding: 0.9rem;
    font-size: 1rem;
}

/* ===== CHECKOUT SECTION ===== */
.checkout-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 3rem;
    display: none;
    box-shadow: var(--shadow-card);
}

.checkout-section.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.checkout-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.form-group input, .form-group select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: white;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.order-summary-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.8rem;
}

.order-summary-box h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--border-color);
}

.order-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.order-item-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* ===== FOOTER ===== */
.app-footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border-color);
    margin-top: 4rem;
    padding: 3rem 2rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h5 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.85rem;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.85rem 1.4rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    font-weight: 500;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== MOBILE NAVIGATION DRAWER & EXPANDED UTILITIES ===== */
.mobile-menu-btn, .mobile-search-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-color);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-btn:hover, .mobile-search-toggle:hover {
    background: rgba(255, 255, 255, 0.18);
}

.nav-drawer-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 290;
    opacity: 0; pointer-events: none;
    transition: var(--transition);
}

.nav-drawer-overlay.active {
    opacity: 1; pointer-events: auto;
}

.nav-drawer {
    position: fixed;
    top: 0; left: -320px;
    width: 300px; max-width: 85vw; height: 100%;
    background: var(--bg-card);
    border-right: 1px solid var(--glass-border);
    z-index: 295;
    padding: 1.8rem 1.4rem;
    display: flex; flex-direction: column;
    gap: 1.5rem;
    transition: left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
}

.nav-drawer.active {
    left: 0;
}

.nav-drawer-header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 1rem; border-bottom: 1px solid var(--border-color);
}

.nav-drawer-links {
    list-style: none; display: flex; flex-direction: column; gap: 0.75rem;
}

.nav-drawer-links a {
    display: flex; align-items: center; gap: 0.8rem;
    padding: 0.8rem 1.1rem; border-radius: var(--radius-md);
    color: var(--text-main); font-weight: 500; font-size: 0.95rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
}

.nav-drawer-links a:hover, .nav-drawer-links a:active {
    background: var(--primary-gradient);
    color: white; border-color: transparent;
}

/* Mobile Search Bar Wrapper */
.mobile-search-bar {
    display: none;
    width: 100%;
    padding: 0.6rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid var(--border-color);
}

.mobile-search-bar .header-search {
    display: block;
    max-width: 100%;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
    }
    
    .hero-visual {
        display: none;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn, .mobile-search-toggle {
        display: flex;
    }

    .header-search {
        display: none;
    }

    .mobile-search-bar.active {
        display: block;
        animation: fadeIn 0.25s ease;
    }

    .app-header {
        padding: 0.75rem 1rem;
        gap: 0.8rem;
    }

    .header-actions {
        gap: 0.6rem;
    }

    .header-btn span:not(.cart-badge) {
        display: none;
    }

    .header-btn {
        padding: 0.6rem 0.85rem;
        min-height: 44px;
    }

    .main-container {
        padding: 0 1rem;
        margin: 1rem auto;
    }

    .hero {
        margin: 0.5rem 0 1.5rem;
        padding: 2.2rem 1.25rem;
        border-radius: var(--radius-md);
    }

    .hero h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
        margin-bottom: 0.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .hero-actions .btn-primary, .hero-actions .btn-secondary {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
    }

    .controls-bar {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .category-pills {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 0.2rem 0 0.5rem;
        width: 100%;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-snap-type: x mandatory;
    }

    .category-pills::-webkit-scrollbar {
        display: none;
    }

    .category-pill {
        flex-shrink: 0;
        white-space: nowrap;
        scroll-snap-align: start;
        padding: 0.6rem 1.2rem;
        min-height: 42px;
    }

    .sort-select {
        width: 100%;
        padding: 0.75rem 1rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        padding: 1.5rem 1.25rem 2rem;
        gap: 1.2rem;
    }

    .modal-backdrop {
        padding: 0;
        align-items: flex-end;
    }

    .modal-container {
        border-radius: 24px 24px 0 0;
        max-height: 88vh;
        width: 100%;
        margin: 0;
    }

    .modal-img-box {
        font-size: 4.5rem;
        height: 180px;
    }

    .modal-close-btn {
        top: 0.8rem;
        right: 0.8rem;
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        background: rgba(255, 255, 255, 0.15);
    }

    .product-card:hover .quick-view-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .quick-view-btn {
        opacity: 1;
        transform: translateY(0);
        bottom: 0.6rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.78rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

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

    .checkout-section {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .checkout-title {
        font-size: 1.4rem;
    }

    .form-group input, .form-group select {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 480px) {
    .cart-drawer {
        width: 100%;
        right: -100%;
    }

    .toast-container {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }

    .toast {
        width: 100%;
        justify-content: center;
    }

    .top-bar {
        font-size: 0.78rem;
        padding: 0.4rem 0.6rem;
    }

    .top-bar span.tag {
        font-size: 0.7rem;
        padding: 0.1rem 0.4rem;
    }
}