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

:root {
    --primary: #1a1a1a;
    --secondary: #ffffff;
    --accent: #404040;
    --light-grey: #f5f5f5;
    --mid-grey: #808080;
    --dark-grey: #2a2a2a;
    --text: #1a1a1a;
    --border: #e0e0e0;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --sale-red: #dc2626;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.2);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary: #ffffff;
    --secondary: #1a1a1a;
    --accent: #a0a0a0;
    --light-grey: #2a2a2a;
    --mid-grey: #808080;
    --dark-grey: #f5f5f5;
    --text: #ffffff;
    --border: #404040;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    background: var(--secondary);
    line-height: 1.6;
    transition: background var(--transition-normal), color var(--transition-normal);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== PROMO BANNER ===== */
.promo-banner {
    background: linear-gradient(90deg, #dc2626, #b91c1c);
    color: white;
    padding: 0.75rem 0;
    text-align: center;
    font-size: 0.9rem;
    position: relative;
    z-index: 101;
}

.promo-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.promo-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.promo-banner-close:hover {
    opacity: 1;
}

.countdown-timer {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.countdown-item {
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    min-width: 40px;
}

/* ===== NAVBAR ===== */
.navbar {
    background: var(--primary);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary);
    letter-spacing: 3px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-image {
    width: 48px;
    height: 48px;
    object-fit: cover;
    display: inline-block;
    border-radius: 50%;
}

.logo-text {
    display: inline-block;
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 2px solid var(--border);
    border-radius: 50px;
    background: var(--secondary);
    color: var(--text);
    font-size: 0.95rem;
    transition: all var(--transition-normal);
}

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

.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--secondary);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

/* Search Results Dropdown */
.search-results {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.search-results.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--border);
}

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

.search-result-item:hover {
    background: var(--light-grey);
}

.search-result-image {
    width: 60px;
    height: 60px;
    background: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.search-result-price {
    color: var(--mid-grey);
    font-size: 0.9rem;
}

.search-no-results {
    padding: 2rem;
    text-align: center;
    color: var(--mid-grey);
}

/* Nav Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-normal);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--mid-grey);
}

/* Cart Icon with Badge */
.cart-icon-wrapper {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--sale-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

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

/* Cart Preview Dropdown */
.cart-preview {
    position: absolute;
    top: calc(100% + 15px);
    right: -20px;
    width: 350px;
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-normal);
}

.cart-preview.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.cart-preview::before {
    content: '';
    position: absolute;
    top: -10px;
    right: 30px;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-left: 2px solid var(--border);
    border-top: 2px solid var(--border);
    transform: rotate(45deg);
}

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

.cart-preview-title {
    font-weight: 600;
    color: var(--primary);
}

.cart-preview-items {
    max-height: 300px;
    overflow-y: auto;
    padding: 0.5rem;
}

.cart-preview-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.cart-preview-item:hover {
    background: var(--light-grey);
}

.cart-preview-image {
    width: 60px;
    height: 60px;
    background: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-preview-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-preview-options {
    font-size: 0.8rem;
    color: var(--mid-grey);
}

.cart-preview-price {
    font-weight: 600;
    color: var(--primary);
}

.cart-preview-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.cart-preview-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cart-preview-empty {
    padding: 2rem;
    text-align: center;
    color: var(--mid-grey);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--secondary);
    color: var(--primary);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--dark-grey) 100%);
    color: var(--secondary);
    padding: 8rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.03)" stroke-width="0.5"/></svg>');
    background-size: 100px 100px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

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

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    color: var(--mid-grey);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all var(--transition-normal);
    border: 2px solid var(--primary);
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    left: 100%;
}

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

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

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

.btn-secondary:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
    background: var(--light-grey);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.9rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '/';
    margin-left: 0.5rem;
    color: var(--mid-grey);
}

.breadcrumb-list a {
    color: var(--mid-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list li:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* ===== SECTIONS ===== */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== SALES SECTION ===== */
.sales-section {
    padding: 5rem 0;
    background: var(--light-grey);
}

.sales-grid, .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--secondary);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-sm);
}

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

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    background: var(--light-grey);
    overflow: hidden;
}

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

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

/* Image Zoom Overlay */
.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

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

.zoom-icon {
    color: white;
    font-size: 2rem;
}

/* Sale Badge */
.sale-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--sale-red);
    color: white;
    padding: 0.4rem 1rem;
    font-weight: bold;
    font-size: 0.85rem;
    text-transform: uppercase;
    border-radius: 20px;
    animation: shake 2s infinite;
}

@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(-5deg); }
    20% { transform: rotate(5deg); }
    30% { transform: rotate(0deg); }
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
    z-index: 2;
}

.wishlist-btn:hover {
    transform: scale(1.1);
    background: #fee2e2;
}

.wishlist-btn.active {
    background: #fee2e2;
}

.wishlist-btn.active svg {
    fill: var(--sale-red);
    stroke: var(--sale-red);
}

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--primary);
    color: var(--secondary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0;
    transition: all var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.quick-view-btn:hover {
    background: var(--accent);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-category {
    color: var(--mid-grey);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.3;
}

/* Rating Stars */
.product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: #fbbf24;
    font-size: 0.9rem;
}

.star.empty {
    color: var(--border);
}

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

/* Product Price */
.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

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

.price-original {
    text-decoration: line-through;
    color: var(--mid-grey);
    font-size: 1rem;
}

.price-discount {
    background: var(--sale-red);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--light-grey) 25%, #e0e0e0 50%, var(--light-grey) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--secondary);
    border-radius: 16px;
    overflow: hidden;
}

.skeleton-image {
    height: 280px;
}

.skeleton-text {
    height: 16px;
    margin: 0.5rem 0;
}

.skeleton-text.short {
    width: 60%;
}

/* ===== PRODUCTS PAGE ===== */
.products-hero {
    background: var(--primary);
    color: var(--secondary);
    padding: 5rem 0;
    text-align: center;
}

.products-hero h1 {
    font-size: 3.5rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.products-hero p {
    color: var(--mid-grey);
    font-size: 1.2rem;
}

.products-section {
    padding: 4rem 0;
    background: var(--light-grey);
}

/* Filters Bar */
.filters-bar {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
}

.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: var(--light-grey);
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text);
}

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

.filter-btn.active {
    background: var(--primary);
    color: var(--secondary);
}

/* Sort Dropdown */
.sort-select {
    padding: 0.6rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--secondary);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color var(--transition-fast);
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Price Range */
.price-range {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-input {
    width: 100px;
    padding: 0.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

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

/* Results Count */
.results-count {
    color: var(--mid-grey);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--secondary);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border-radius: 20px;
    animation: slideUp 0.4s ease;
    box-shadow: var(--shadow-xl);
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--sale-red);
    transform: rotate(90deg);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 2rem;
}

.modal-image-section {
    position: relative;
}

.modal-image {
    width: 100%;
    height: 450px;
    background: var(--light-grey);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

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

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.thumbnail {
    width: 70px;
    height: 70px;
    background: var(--light-grey);
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}

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

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

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-product-name {
    font-size: 2rem;
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.modal-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-price .price-current {
    font-size: 2rem;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.share-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

/* Size Guide Link */
.size-guide-link {
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.85rem;
    cursor: pointer;
    background: none;
    border: none;
}

.size-guide-link:hover {
    color: var(--accent);
}

.option-group {
    margin: 0.5rem 0;
}

.option-label {
    display: block;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.size-options, .color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn, .color-btn {
    padding: 0.75rem 1.25rem;
    background: var(--secondary);
    border: 2px solid var(--border);
    cursor: pointer;
    font-weight: 600;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    border-radius: 8px;
}

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

.size-btn.selected, .color-btn.selected {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.color-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.error-message {
    color: var(--error);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    font-weight: 600;
}

.modal-add-cart {
    margin-top: auto;
    padding: 1rem;
}

/* ===== SIZE GUIDE MODAL ===== */
.size-guide-modal {
    max-width: 600px;
}

.size-guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.size-guide-table th,
.size-guide-table td {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
}

.size-guide-table th {
    background: var(--light-grey);
    font-weight: 600;
}

.size-guide-table tr:hover {
    background: var(--light-grey);
}

/* ===== FEATURES SECTION ===== */
.features {
    background: var(--secondary);
    padding: 5rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border: 2px solid var(--border);
    border-radius: 16px;
    transition: all var(--transition-normal);
    background: var(--secondary);
}

.feature-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--light-grey);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--secondary);
    transform: scale(1.1);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.feature-card p {
    color: var(--mid-grey);
    font-size: 0.95rem;
}

/* ===== NEWSLETTER ===== */
.newsletter-section {
    background: var(--primary);
    color: var(--secondary);
    padding: 5rem 0;
    text-align: center;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.newsletter-content p {
    color: var(--mid-grey);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-input {
    flex: 1;
    min-width: 250px;
    padding: 1rem 1.5rem;
    border: 2px solid var(--secondary);
    border-radius: 50px;
    background: transparent;
    color: var(--secondary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.newsletter-input::placeholder {
    color: var(--mid-grey);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255,255,255,0.1);
}

/* ===== RECENTLY VIEWED ===== */
.recently-viewed {
    padding: 4rem 0;
    background: var(--light-grey);
    border-top: 1px solid var(--border);
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    padding: 4rem 0;
    background: var(--secondary);
}

/* ===== CART PAGE ===== */
.cart-section {
    padding: 4rem 0;
    min-height: 60vh;
}

.cart-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.cart-items {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.cart-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition-fast);
    border-radius: 12px;
}

.cart-item:hover {
    background: var(--light-grey);
}

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

.cart-item-image {
    width: 120px;
    height: 120px;
    background: var(--light-grey);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

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

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

.cart-item-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.cart-item-category {
    color: var(--mid-grey);
    font-size: 0.85rem;
    text-transform: uppercase;
}

.cart-item-options {
    color: var(--mid-grey);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.cart-item-price {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 0.75rem;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-grey);
    padding: 0.4rem;
    border-radius: 25px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 2px solid var(--primary);
    background: var(--secondary);
    color: var(--primary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 50%;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity {
    padding: 0 1rem;
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

.remove-btn {
    background: none;
    border: none;
    color: var(--mid-grey);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: color var(--transition-fast);
}

.remove-btn:hover {
    color: var(--sale-red);
}

.empty-cart {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--mid-grey);
}

.empty-cart-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-cart p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cart-summary {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.cart-summary h2 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.summary-row.total {
    font-size: 1.3rem;
    font-weight: bold;
    color: var(--primary);
    border-bottom: none;
    padding-top: 1.5rem;
}

.promo-code {
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.promo-code-label {
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: block;
}

.promo-code-input {
    display: flex;
    gap: 0.5rem;
}

.promo-code-input input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 0.9rem;
}

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

/* ===== CHECKOUT PAGE ===== */
.checkout-section {
    padding: 4rem 0;
}

.checkout-section h1 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.checkout-form {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.form-section-number {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all var(--transition-fast);
    background: var(--secondary);
    color: var(--text);
}

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

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

.checkout-summary {
    background: var(--secondary);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.checkout-summary h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.checkout-item-info {
    flex: 1;
}

.checkout-item-name {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.checkout-item-qty {
    color: var(--mid-grey);
    font-size: 0.85rem;
}

.checkout-item-price {
    font-weight: bold;
    color: var(--primary);
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: var(--border);
    margin: 1rem 0;
}

/* Payment Methods */
.payment-methods {
    margin-top: 1.5rem;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--primary);
}

.payment-method.selected {
    border-color: var(--primary);
    background: var(--light-grey);
}

.payment-method input {
    width: 20px;
    height: 20px;
}

.payment-method-icon {
    font-size: 1.5rem;
}

.payment-method-info {
    flex: 1;
}

.payment-method-name {
    font-weight: 600;
}

.payment-method-desc {
    font-size: 0.85rem;
    color: var(--mid-grey);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background: var(--primary);
    color: var(--secondary);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 300px;
    max-width: 400px;
    animation: toastSlideIn 0.4s ease;
    position: relative;
    overflow: hidden;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
    color: var(--primary);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.toast.removing {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-icon {
    font-size: 1.3rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    opacity: 0.9;
}

.toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.toast-close:hover {
    opacity: 1;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    animation: toastProgress 3s linear forwards;
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--secondary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.footer-section li {
    margin-bottom: 0.75rem;
}

.footer-section a {
    color: var(--mid-grey);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--accent);
    padding-top: 2rem;
    text-align: center;
    color: var(--mid-grey);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .cart-content,
    .checkout-content {
        grid-template-columns: 1fr;
    }
    
    .cart-summary,
    .checkout-summary {
        position: static;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
    }
    
    .modal-image {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
    }
    
    .search-container {
        order: 3;
        max-width: 100%;
        width: 100%;
        margin-top: 1rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--accent);
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .filters-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .category-filters {
        justify-content: center;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .cart-item-actions {
        flex-direction: row;
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-input {
        width: 100%;
    }
    
    .cart-preview {
        width: 100%;
        right: 0;
        left: 0;
        border-radius: 16px 16px 0 0;
        position: fixed;
        bottom: 0;
        top: auto;
        max-height: 70vh;
    }
    
    .cart-preview::before {
        display: none;
    }
    
    .toast-container {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 20px;
    }
    
    .toast {
        min-width: auto;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .logo-text {
        display: none;
    }
    
    .hero {
        padding: 5rem 0;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .sales-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-image-wrapper {
        height: 350px;
    }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }
.sr-only { position: absolute; left: -10000px; }

/* ===== DELIVERY SERVICE OPTIONS ===== */
#delivery-options .payment-method {
    cursor: pointer;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}
#delivery-options .payment-method:hover {
    border-color: var(--primary);
}
#delivery-options .payment-method.selected {
    border-color: var(--primary);
    background: var(--light-grey);
}
#delivery-options .payment-method input[type="radio"] {
    accent-color: var(--primary);
}
