/* ========================================
   EKASPEEK - Premium Design System
   Modern E-commerce for Gifts & Keepsakes
   ======================================== */

/* Premium Brand Color Palette */
:root {
    /* Brand Colors - Deep Navy & Gold Theme */
    --primary-color: #1b3a6b;           /* Deep Navy - Uy tín, chuyên nghiệp */
    --primary-light: #2d5299;           /* Royal Blue - hover states */
    --secondary-color: #c4943e;         /* Antique Gold - Sang trọng, ấm áp */
    --secondary-light: #ddb96a;         /* Light Gold - điểm nhấn mềm */
    --accent-color: #e8651a;            /* Vibrant Amber - CTA & giá nổi bật */
    --accent-light: #f08040;            /* Light Amber */

    /* Neutrals - Warm Ivory */
    --text-primary: #1a1c2e;            /* Deep navy-black */
    --text-secondary: #5c607a;          /* Muted slate */
    --text-tertiary: #8b8ea5;           /* Light muted slate */
    --bg-primary: #ffffff;              /* White */
    --bg-secondary: #f8f6f2;            /* Warm ivory */
    --bg-tertiary: #f0ede6;             /* Light cream */
    --border-color: #ddd9d0;            /* Warm border */
    --border-light: #eae7e0;            /* Light warm border */
    --light-bg: #f0ede6;                /* Alias for bg-tertiary */

    /* Feedback Colors */
    --success-color: #1e8449;           /* Forest green */
    --warning-color: #d4a017;           /* Gold-amber */
    --error-color: #c0392b;             /* Deep red */
    --info-color: #2471a3;              /* Steel blue */

    /* Shadows - Navy-tinted multi-layered */
    --shadow-sm: 0 1px 2px 0 rgba(27, 58, 107, 0.07);
    --shadow-md: 0 4px 6px -1px rgba(27, 58, 107, 0.12), 0 2px 4px -1px rgba(27, 58, 107, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(27, 58, 107, 0.12), 0 4px 6px -2px rgba(27, 58, 107, 0.06);
    --shadow-xl: 0 20px 25px -5px rgba(27, 58, 107, 0.12), 0 10px 10px -5px rgba(27, 58, 107, 0.05);
    --shadow-2xl: 0 25px 50px -12px rgba(27, 58, 107, 0.22);

    /* Spacing - Generous Apple-style */
    --spacing-xs: 0.5rem;    /* 8px */
    --spacing-sm: 1rem;      /* 16px */
    --spacing-md: 1.5rem;    /* 24px */
    --spacing-lg: 2rem;      /* 32px */
    --spacing-xl: 3rem;      /* 48px */
    --spacing-2xl: 4rem;     /* 64px */
    --spacing-3xl: 6rem;     /* 96px */

    /* Typography Scale */
    --font-xs: 0.75rem;      /* 12px */
    --font-sm: 0.875rem;     /* 14px */
    --font-base: 1rem;       /* 16px */
    --font-lg: 1.125rem;     /* 18px */
    --font-xl: 1.25rem;      /* 20px */
    --font-2xl: 1.5rem;      /* 24px */
    --font-3xl: 1.875rem;    /* 30px */
    --font-4xl: 2.25rem;     /* 36px */
    --font-5xl: 3rem;        /* 48px */
    --font-6xl: 3.75rem;     /* 60px */

    /* Border Radius */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Container */
    --max-width: 1280px;
}

/* ==================== RESET & BASE ==================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--secondary-color);
}

/* ==================== LAYOUT ==================== */

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

/* ==================== HEADER ==================== */

.site-header {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(196, 148, 62, 0.18);
    padding: var(--spacing-sm) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: var(--font-2xl);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    transition: opacity var(--transition-base);
}

.site-logo:hover {
    opacity: 0.75;
    color: var(--primary-color);
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: var(--spacing-xs);
    align-items: center;
}

.main-nav a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--font-sm);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.cart-icon:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--accent-light), var(--accent-color));
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border-radius: var(--radius-full);
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-xs);
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(232, 101, 26, 0.45);
}

/* ==================== BANNER CAROUSEL ==================== */

.banner-carousel {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: var(--primary-color);
}

.banner-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
    pointer-events: auto;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-slide a.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-slide a.banner-link img {
    cursor: pointer;
}

/* Navigation arrows */
.banner-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.banner-nav:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.banner-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.banner-prev {
    left: 20px;
}

.banner-next {
    right: 20px;
}

/* Indicators */
.banner-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.banner-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* Fallback hero section (when no banners) */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--spacing-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(196, 148, 62, 0.15), transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: var(--font-6xl);
    margin-bottom: var(--spacing-md);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero p {
    font-size: var(--font-xl);
    margin-bottom: var(--spacing-xl);
    opacity: 0.9;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .banner-carousel {
        height: 400px;
    }

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

    .banner-prev {
        left: 10px;
    }

    .banner-next {
        right: 10px;
    }

    .banner-indicators {
        bottom: 15px;
    }

    .banner-indicator {
        width: 10px;
        height: 10px;
    }

    .banner-indicator.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .banner-carousel {
        height: 300px;
    }

    .banner-nav {
        width: 36px;
        height: 36px;
    }

    .banner-indicators {
        bottom: 10px;
        gap: 8px;
    }

    .banner-indicator {
        width: 8px;
        height: 8px;
    }

    .banner-indicator.active {
        width: 20px;
    }
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    letter-spacing: -0.01em;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
    color: white;
    box-shadow: 0 4px 14px rgba(196, 148, 62, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 148, 62, 0.55);
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, var(--success-color), #166534);
    color: white;
    box-shadow: 0 4px 14px rgba(30, 132, 73, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 132, 73, 0.45);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==================== SECTIONS ==================== */

.products-section {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    font-size: var(--font-5xl);
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

/* ==================== PRODUCT GRID ==================== */

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.product-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(196, 148, 62, 0.35);
}

.product-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="280" viewBox="0 0 300 280"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23fafbfc;stop-opacity:1" /><stop offset="100%" style="stop-color:%23f6f8fa;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23grad)" width="300" height="280"/><g fill="%23d4af37" opacity="0.15"><circle cx="150" cy="100" r="40"/><path d="M110 140 L190 140 L190 160 L110 160 Z" rx="4"/><rect x="120" y="170" width="60" height="8" rx="4"/></g><text x="150" y="230" font-family="SF Pro Display,-apple-system,sans-serif" font-size="16" font-weight="600" fill="%238b949e" text-anchor="middle" letter-spacing="-0.02em">ekaspeek</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: transform var(--transition-slow), opacity var(--transition-base);
}

/* Product grid hover effect for multi-images */
.product-image-container {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.product-image-primary {
    position: relative;
    z-index: 1;
}

.product-image-hover {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
}

.product-card:hover .product-image-hover {
    opacity: 1;
}

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

.product-info {
    padding: var(--spacing-lg);
}

.product-brand {
    font-size: var(--font-xs);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-xs);
}

.product-name {
    font-size: var(--font-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    letter-spacing: -0.02em;
    line-height: 1.3;
}

.product-description {
    font-size: var(--font-sm);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.product-price {
    font-size: var(--font-3xl);
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

/* ==================== PRODUCT DETAIL ==================== */

.product-detail {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-2xl);
    background: white;
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
}

.product-detail-image {
    width: 100%;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="600" viewBox="0 0 600 600"><defs><linearGradient id="grad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23fafbfc;stop-opacity:1" /><stop offset="100%" style="stop-color:%23f6f8fa;stop-opacity:1" /></linearGradient></defs><rect fill="url(%23grad2)" width="600" height="600"/><g fill="%23d4af37" opacity="0.15"><circle cx="300" cy="220" r="80"/><path d="M220 320 L380 320 L380 360 L220 360 Z" rx="8"/><rect x="240" y="380" width="120" height="16" rx="8"/><rect x="260" y="410" width="80" height="12" rx="6"/></g><text x="300" y="520" font-family="SF Pro Display,-apple-system,sans-serif" font-size="32" font-weight="700" fill="%238b949e" text-anchor="middle" letter-spacing="-0.03em">ekaspeek</text></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/* Product Image Carousel */
.product-image-carousel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.carousel-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    aspect-ratio: 1;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-arrow:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-arrow:disabled:hover {
    transform: translateY(-50%);
}

.carousel-counter {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: var(--font-sm);
    font-weight: 600;
}

.carousel-thumbnails {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.carousel-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.carousel-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-thumbnails::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.carousel-thumbnails::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.carousel-thumbnail {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all var(--transition-base);
    background: var(--light-bg);
}

.carousel-thumbnail:hover {
    border-color: var(--border-color);
    transform: scale(1.05);
}

.carousel-thumbnail.active {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 1px var(--secondary-color);
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-info h1 {
    font-size: var(--font-5xl);
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.product-detail-brand {
    font-size: var(--font-sm);
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-lg);
}

.product-detail-price {
    font-size: var(--font-5xl);
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.03em;
}

.product-detail-description {
    line-height: 1.8;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
    font-size: var(--font-base);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.quantity-selector label {
    font-weight: 600;
    color: var(--text-primary);
}

.quantity-selector input {
    width: 100px;
    padding: var(--spacing-sm);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-lg);
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-base);
}

.quantity-selector input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(196, 148, 62, 0.15);
}

/* ==================== CART ==================== */

.cart-section {
    padding: var(--spacing-3xl) 0;
    min-height: 60vh;
    background: var(--bg-secondary);
}

.cart-empty {
    text-align: center;
    padding: var(--spacing-3xl) 0;
}

.cart-empty-icon {
    font-size: 6rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.2;
}

.cart-items {
    background: white;
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.cart-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
    transition: background-color var(--transition-base);
}

.cart-item:hover {
    background-color: var(--bg-secondary);
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-secondary) 100%);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><rect fill="%23fafbfc" width="120" height="120"/><g fill="%23d4af37" opacity="0.2"><circle cx="60" cy="50" r="20"/><rect x="45" y="75" width="30" height="6" rx="3"/></g></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.cart-item-info h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--primary-color);
    font-size: var(--font-lg);
    font-weight: 600;
}

.cart-item-price {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: var(--spacing-sm);
    font-size: var(--font-xl);
}

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

.cart-item-quantity input {
    width: 70px;
    padding: var(--spacing-xs);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    transition: all var(--transition-base);
}

.cart-item-quantity input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.cart-item-remove {
    color: var(--error-color);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--error-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: var(--font-sm);
}

.cart-item-remove:hover {
    background-color: var(--error-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cart-summary {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-xl);
    max-width: 450px;
    margin-left: auto;
    box-shadow: var(--shadow-lg);
}

.cart-summary h2 {
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    font-size: var(--font-2xl);
    font-weight: 700;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
    font-size: var(--font-base);
    color: var(--text-secondary);
}

.cart-summary-total {
    font-size: var(--font-3xl);
    font-weight: 700;
    margin-top: var(--spacing-md);
    color: var(--primary-color);
}

.cart-summary-total span:last-child {
    color: var(--accent-color);
}

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

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

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: var(--spacing-md);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--bg-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(196, 148, 62, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

/* ==================== CONTENT PAGES ==================== */

.content-page {
    padding: var(--spacing-3xl) 0;
    background: var(--bg-secondary);
}

.content-page h1 {
    font-size: var(--font-5xl);
    margin-bottom: var(--spacing-xl);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.content-page h2 {
    font-size: var(--font-3xl);
    margin-top: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.content-page h3 {
    font-size: var(--font-xl);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    color: var(--primary-color);
    font-weight: 600;
}

.content-page p {
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: var(--font-base);
}

.content-page ul,
.content-page ol {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-xl);
}

.content-page li {
    margin-bottom: var(--spacing-sm);
    line-height: 1.8;
    color: var(--text-secondary);
}

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

.site-footer {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
    margin-top: var(--spacing-3xl);
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(196, 148, 62, 0.12), transparent 60%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: var(--spacing-md);
    font-size: var(--font-xl);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.footer-section p {
    opacity: 0.9;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.footer-section a:hover {
    color: white;
    transform: translateX(4px);
    display: inline-block;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: var(--font-sm);
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

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

.alert {
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    margin-bottom: var(--spacing-lg);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    animation: slideDown 0.3s ease;
}

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

.alert-success {
    background-color: #e8f5ee;
    border: 2px solid #a8d5b8;
    color: #1e5c35;
}

.alert-error {
    background-color: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.alert-info {
    background-color: #dbeafe;
    border: 2px solid #93c5fd;
    color: #1e40af;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 1024px) {
    :root {
        --font-6xl: 2.5rem;
        --font-5xl: 2rem;
        --spacing-3xl: 4rem;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }
}

@media (max-width: 768px) {
    :root {
        --font-6xl: 2rem;
        --font-5xl: 1.75rem;
        --font-4xl: 1.5rem;
        --spacing-3xl: 3rem;
        --spacing-2xl: 2rem;
    }

    .header-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xs);
    }

    .hero {
        padding: var(--spacing-2xl) 0;
    }

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

    .cart-item {
        grid-template-columns: 100px 1fr;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    :root {
        --font-6xl: 1.75rem;
        --font-5xl: 1.5rem;
        --spacing-lg: 1rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

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

    .cart-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cart-item-image {
        margin: 0 auto;
    }
}

/* ==================== UTILITY CLASSES ==================== */

.text-center {
    text-align: center;
}

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mt-4 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }
.mb-4 { margin-bottom: var(--spacing-xl); }

.hidden {
    display: none;
}
