/* ============================================
   SYDEN E-COMMERCE - DESIGN SYSTEM
   ============================================ */

/* CSS Variables - Copper & Slate Palette */
:root {
    /* Primary Colors */
    --primary: #B87333;
    --primary-dark: #8B5A2B;
    --primary-light: #D4A574;
    
    /* Secondary Colors */
    --secondary: #2F3640;
    --secondary-light: #4A5568;
    
    /* Background Colors */
    --bg-primary: #F5F0EB;
    --bg-secondary: #FFFFFF;
    --bg-dark: #2F3640;
    
    /* Text Colors */
    --text-primary: #2F3640;
    --text-secondary: #6B7280;
    --text-light: #9CA3AF;
    --text-white: #FFFFFF;
    
    /* Accent Colors */
    --accent-success: #10B981;
    --accent-warning: #F59E0B;
    --accent-error: #EF4444;
    --accent-info: #3B82F6;
    
    /* Border & Shadow */
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

ul {
    list-style: none;
}

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

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-white);
    padding: var(--space-sm) 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ============================================
   HEADER
   ============================================ */
.header {
    background: var(--bg-secondary);
    padding: var(--space-md) 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: var(--space-md) var(--space-xl);
    padding-right: 50px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(184, 115, 51, 0.1);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--text-white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast);
}

.search-btn:hover {
    background: var(--primary-dark);
}

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

.action-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
    position: relative;
}

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

.action-btn svg {
    stroke: currentColor;
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-error);
    color: var(--text-white);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-sm) 0;
}

.nav-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-slider {
    position: relative;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    padding: 0 var(--space-2xl);
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-md);
}

.hero-title {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    max-width: 450px;
}

.hero-btn {
    background: var(--primary);
    color: var(--text-white);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.hero-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.hero-dots {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-sm);
    z-index: 10;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.hero-dot.active {
    background: var(--primary);
    width: 30px;
    border-radius: var(--radius-full);
}

/* ============================================
   SECTIONS COMMON
   ============================================ */
section {
    padding: var(--space-3xl) 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    text-align: center;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories {
    background: var(--bg-secondary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-xl);
}

.category-card {
    text-align: center;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.category-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-md);
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 3px solid var(--bg-primary);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    border-color: var(--primary);
    transform: scale(1.05);
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

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

/* ============================================
   DEALS SECTION
   ============================================ */
.deals {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-light) 100%);
    color: var(--text-white);
}

.deals .section-title {
    color: var(--text-white);
    text-align: left;
    margin-bottom: 0;
}

.deals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.countdown {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-size: 0.9rem;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.15);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    text-align: center;
    min-width: 60px;
}

.countdown-item span {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.countdown-item small {
    font-size: 0.7rem;
    opacity: 0.8;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */
.products {
    background: var(--bg-primary);
}

.products-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.filter-tabs {
    display: flex;
    gap: var(--space-sm);
}

.filter-tab {
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all var(--transition-fast);
}

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

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.products-footer {
    text-align: center;
    margin-top: var(--space-2xl);
}

.load-more-btn {
    background: var(--bg-secondary);
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: var(--space-md) var(--space-2xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.load-more-btn:hover {
    background: var(--primary);
    color: var(--text-white);
}

/* ============================================
   PRODUCT CARD
   ============================================ */
.product-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    background: var(--accent-error);
    color: var(--text-white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 2;
}

.product-badge.new {
    background: var(--accent-success);
}

.product-badge.bestseller {
    background: var(--accent-warning);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-primary);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.product-actions {
    position: absolute;
    bottom: -60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    transition: bottom var(--transition-base);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.action-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.action-icon:hover {
    background: var(--primary);
    color: var(--text-white);
}

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

.product-category {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-xs);
}

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

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

.stars {
    color: var(--accent-warning);
    font-size: 0.9rem;
}

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

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

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

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

.discount {
    font-size: 0.8rem;
    color: var(--accent-success);
    font-weight: 600;
}

/* ============================================
   FEATURES BANNER
   ============================================ */
.features-banner {
    background: var(--bg-secondary);
    padding: var(--space-2xl) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}

.feature-item:hover {
    background: var(--bg-primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: var(--space-3xl) 0;
}

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

.newsletter h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: var(--space-sm);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-xl);
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: var(--space-sm);
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form input {
    flex: 1;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    outline: none;
}

.newsletter-form button {
    background: var(--secondary);
    color: var(--text-white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: background var(--transition-fast);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background: var(--secondary-light);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: var(--space-3xl) 0 var(--space-xl);
}

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

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--primary-light);
}

.footer-section p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.footer-section ul li {
    margin-bottom: var(--space-sm);
}

.footer-section ul li a {
    color: var(--text-light);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
    color: var(--primary-light);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.payment-methods span {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   CART SIDEBAR
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: right var(--transition-slow);
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
}

.cart-sidebar.open {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

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

.cart-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.close-cart {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.close-cart:hover {
    background: var(--bg-primary);
    color: var(--accent-error);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-lg);
}

.empty-cart {
    text-align: center;
    padding: var(--space-3xl) var(--space-lg);
    color: var(--text-light);
}

.empty-cart svg {
    margin-bottom: var(--space-md);
    opacity: 0.5;
}

.empty-cart p {
    margin-bottom: var(--space-lg);
}

.continue-shopping {
    background: var(--primary);
    color: var(--text-white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: background var(--transition-fast);
}

.continue-shopping:hover {
    background: var(--primary-dark);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-primary);
    flex-shrink: 0;
}

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

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

.cart-item-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.qty-btn:hover {
    background: var(--bg-primary);
    border-color: var(--primary);
}

.remove-item {
    color: var(--text-light);
    transition: color var(--transition-fast);
    margin-left: auto;
}

.remove-item:hover {
    color: var(--accent-error);
}

.cart-footer {
    padding: var(--space-lg);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    font-size: 1.1rem;
}

.total-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.checkout-btn {
    width: 100%;
    background: var(--primary);
    color: var(--text-white);
    padding: var(--space-md);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    padding: var(--space-md);
}

.modal.open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal.open .modal-content {
    transform: scale(1);
}

.product-modal-content {
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    z-index: 10;
    transition: all var(--transition-fast);
}

.close-modal:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.modal-header {
    padding: var(--space-2xl) var(--space-2xl) var(--space-md);
    text-align: center;
}

.modal-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-xs);
}

.modal-header p {
    color: var(--text-secondary);
}

.login-form {
    padding: 0 var(--space-2xl) var(--space-xl);
}

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

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

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

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.login-btn {
    width: 100%;
    background: var(--primary);
    color: var(--text-white);
    padding: var(--space-md);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    transition: background var(--transition-fast);
}

.login-btn:hover {
    background: var(--primary-dark);
}

.form-divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
    color: var(--text-light);
    font-size: 0.85rem;
}

.form-divider::before,
.form-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.form-divider span {
    padding: 0 var(--space-md);
}

.otp-btn {
    width: 100%;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: var(--space-md);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.otp-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.modal-footer {
    padding: var(--space-lg) var(--space-2xl);
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.modal-footer a {
    color: var(--primary);
    font-weight: 600;
}

/* Product Modal Body */
.product-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    padding: var(--space-2xl);
}

.product-modal-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-primary);
}

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

.product-modal-info h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.product-modal-info .product-price {
    margin-bottom: var(--space-lg);
}

.product-modal-info .current-price {
    font-size: 1.75rem;
}

.product-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.product-options {
    margin-bottom: var(--space-xl);
}

.option-label {
    font-weight: 600;
    margin-bottom: var(--space-sm);
    display: block;
}

.size-options,
.color-options {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.size-option,
.color-option {
    min-width: 50px;
    padding: var(--space-sm) var(--space-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.size-option:hover,
.size-option.active,
.color-option:hover,
.color-option.active {
    border-color: var(--primary);
    color: var(--primary);
}

.color-option {
    width: 40px;
    height: 40px;
    min-width: auto;
    padding: 0;
    border-radius: var(--radius-full);
}

.add-to-cart-btn {
    width: 100%;
    background: var(--primary);
    color: var(--text-white);
    padding: var(--space-md);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    transition: background var(--transition-fast);
}

.add-to-cart-btn:hover {
    background: var(--primary-dark);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-modal-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }
    
    .search-bar {
        order: 3;
        max-width: 100%;
        width: 100%;
    }
    
    .hero {
        height: auto;
        padding: var(--space-2xl) 0;
    }
    
    .hero-slide {
        flex-direction: column;
        text-align: center;
        position: relative;
        opacity: 1;
        visibility: visible;
        padding: var(--space-xl);
    }
    
    .hero-slide:not(:first-child) {
        display: none;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-desc {
        margin: 0 auto var(--space-xl);
    }
    
    .hero-image {
        margin-top: var(--space-xl);
    }
    
    .hero-image img {
        max-height: 250px;
    }
    
    .hero-dots {
        display: none;
    }
    
    .nav-list {
        gap: var(--space-md);
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .deals-header {
        flex-direction: column;
        text-align: center;
    }
    
    .deals .section-title {
        text-align: center;
    }
    
    .products-header {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .cart-sidebar {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.75rem;
    }
    
    .header-actions span {
        display: none;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
    
    .countdown-item {
        min-width: 50px;
        padding: var(--space-xs) var(--space-sm);
    }
    
    .countdown-item span {
        font-size: 1.25rem;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}