 /* ==========================================
   CSS VARIABLES & RESET
   ========================================== */
:root {
    /* Colors - Light Mode */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #e8e8ed;
    --bg-card: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --border-color: #d2d2d7;
    --border-light: #e5e5ea;
    
    /* Accent Colors */
    --accent-blue: #0071e3;
    --accent-blue-hover: #0077ed;
    --accent-blue-light: #e3f0ff;
    --accent-purple: #6e3bff;
    --accent-green: #34c759;
    --accent-orange: #ff9500;
    --accent-red: #ff3b30;
    
    /* Social Colors */
    --whatsapp: #25d366;
    --whatsapp-dark: #20bd5a;
    --instagram: #e4405f;
    --instagram-dark: #d0344e;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 100px;
    --section-padding-mobile: 60px;
    --grid-gap: 24px;
    --card-radius: 16px;
    --btn-radius: 12px;
    --modal-radius: 24px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.10);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition-base: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    --transition-slow: 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-blur: 20px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --bg-primary: #000000;
    --bg-secondary: #1c1c1e;
    --bg-tertiary: #2c2c2e;
    --bg-card: #1c1c1e;
    --text-primary: #f5f5f7;
    --text-secondary: #98989d;
    --text-tertiary: #6e6e73;
    --border-color: #38383a;
    --border-light: #2c2c2e;
    --accent-blue: #2997ff;
    --accent-blue-hover: #40a9ff;
    --accent-blue-light: #1a2634;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
    --glass-bg: rgba(28, 28, 30, 0.7);
    --glass-border: rgba(56, 56, 58, 0.5);
}

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

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

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

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

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

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

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

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

/* ==========================================
   SCROLLBAR
   ========================================== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-light);
    transition: background var(--transition-base), border-color var(--transition-base);
}

[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(0, 0, 0, 0.95);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--accent-blue);
}

.logo svg {
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

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

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 18px;
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.theme-toggle .fa-sun { display: none; }
[data-theme="dark"] .theme-toggle .fa-moon { display: none; }
[data-theme="dark"] .theme-toggle .fa-sun { display: inline; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.badge-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -3px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 22px);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-subtitle strong {
    color: var(--text-primary);
}

.hero-search {
    max-width: 560px;
    margin: 0 auto 40px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border-radius: 16px;
    border: 2px solid var(--border-light);
    transition: all var(--transition-fast);
    overflow: hidden;
}

.search-wrapper:focus-within {
    border-color: var(--accent-blue);
    background: var(--bg-primary);
    box-shadow: 0 0 0 4px var(--accent-blue-light);
}

.search-icon {
    position: absolute;
    left: 16px;
    color: var(--text-tertiary);
    font-size: 16px;
    pointer-events: none;
}

.search-input {
    flex: 1;
    padding: 16px 44px 16px 48px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-clear {
    position: absolute;
    right: 12px;
    width: 32px;
    height: 32px;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-tertiary);
    transition: all var(--transition-fast);
}

.search-clear:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.search-clear.visible {
    display: flex;
}

.search-stats {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-tertiary);
}

.search-stats span {
    font-weight: 600;
    color: var(--text-primary);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--btn-radius);
    font-size: 16px;
    font-weight: 600;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

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

.btn-outline:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.btn-whatsapp {
    background: var(--whatsapp);
    color: #ffffff;
}
.btn-whatsapp:hover {
    background: var(--whatsapp-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.btn-instagram {
    background: var(--instagram);
    color: #ffffff;
}
.btn-instagram:hover {
    background: var(--instagram-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(228, 64, 95, 0.3);
}

.btn-copy, .btn-share {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-copy:hover, .btn-share:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

/* Hero Background Shapes */
.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    top: -200px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: -100px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-orange);
    top: 40%;
    left: 10%;
    animation: float 10s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* ==========================================
   STATS BAR
   ========================================== */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    padding: 32px 24px;
    text-align: center;
    border-right: 1px solid var(--border-light);
}

.stat-item:last-child {
    border-right: none;
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
}

/* ==========================================
   SECTION HEADERS
   ========================================== */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-label {
    display: inline-flex;
    padding: 6px 16px;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
}

/* Featured section background */
.featured-section {
    background: var(--bg-secondary);
}

/* Categories section */
.categories-section {
    background: var(--bg-primary);
}

/* ==========================================
   CATEGORIES GRID
   ========================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 28px 16px;
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    cursor: pointer;
    text-align: center;
}

.category-card:hover {
    background: var(--bg-card);
    border-color: var(--accent-blue);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hover);
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 22px;
    color: var(--accent-blue);
    background: var(--accent-blue-light);
    transition: all var(--transition-base);
}

.category-card:hover .category-icon {
    background: var(--accent-blue);
    color: #ffffff;
}

.category-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.category-count {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

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

/* ==========================================
   PRODUCT CARD
   ========================================== */
.product-card {
    background: var(--bg-card);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
    cursor: pointer;
    animation: fadeInUp 0.5s ease both;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: transparent;
}

.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--bg-secondary);
}

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

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

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.product-badge {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-featured {
    background: var(--accent-orange);
    color: #ffffff;
}

.badge-new {
    background: var(--accent-blue);
    color: #ffffff;
}

.badge-trending {
    background: var(--accent-purple);
    color: #ffffff;
}

.badge-status {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge-in-stock {
    background: rgba(52, 199, 89, 0.15);
    color: var(--accent-green);
}

.badge-out-of-stock {
    background: rgba(255, 59, 48, 0.15);
    color: var(--accent-red);
}

.badge-pre-order {
    background: rgba(255, 149, 0, 0.15);
    color: var(--accent-orange);
}

.product-card-fav {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-secondary);
    backdrop-filter: blur(10px);
    z-index: 2;
    transition: all var(--transition-fast);
    border: none;
}

.product-card-fav:hover {
    background: #ffffff;
    color: var(--accent-red);
}

.product-card-body {
    padding: 20px;
}

.product-card-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-brand {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.product-card-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px 16px;
    border-top: 1px solid var(--border-light);
}

.product-card-tags {
    display: flex;
    gap: 6px;
    overflow: hidden;
}

.product-tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-tertiary);
    white-space: nowrap;
}

.product-card-view {
    font-size: 13px;
    color: var(--accent-blue);
    font-weight: 600;
    white-space: nowrap;
}

/* ==========================================
   PRODUCTS TOOLBAR
   ========================================== */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    border: 1px solid var(--border-light);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-dropdown {
    position: relative;
    min-width: 180px;
}

.filter-dropdown select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-dropdown select:hover {
    border-color: var(--accent-blue);
}

.filter-dropdown select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px var(--accent-blue-light);
}

.filter-dropdown i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
    font-size: 12px;
}

.price-range-group {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.price-range-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.price-range-group label span {
    color: var(--text-primary);
}

.price-range-group input[type="range"] {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
}

.price-range-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-blue);
    cursor: pointer;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.active-filters {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    background: var(--accent-blue-light);
    color: var(--accent-blue);
    transition: all var(--transition-fast);
}

.filter-chip:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.filter-chip i {
    font-size: 11px;
}

/* ==========================================
   LOAD MORE
   ========================================== */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}

/* ==========================================
   PRODUCT MODAL
   ========================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border-radius: var(--modal-radius);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-base);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 18px;
    z-index: 10;
    transition: all var(--transition-fast);
}

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

.modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.modal-gallery {
    position: relative;
}

.modal-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: var(--bg-secondary);
    margin-bottom: 12px;
}

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

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

.modal-thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.modal-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    background: var(--bg-secondary);
}

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

.modal-thumb.active {
    border-color: var(--accent-blue);
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    display: inline-flex;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

.badge-category {
    background: var(--accent-blue-light);
    color: var(--accent-blue);
}

.badge-brand {
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.badge-status {
    background: rgba(52, 199, 89, 0.15);
    color: var(--accent-green);
}

.modal-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.modal-id {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-tertiary);
}

.modal-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-blue);
    letter-spacing: -1px;
}

.modal-description {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 12px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.spec-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.modal-tag {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
}

.modal-actions .btn {
    justify-content: center;
    font-size: 14px;
    padding: 12px 16px;
}

.modal-actions .btn:last-child {
    grid-column: 1 / -1;
}

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    animation: slideInRight 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    min-width: 280px;
}

.toast i {
    font-size: 18px;
}

.toast.success i { color: var(--accent-green); }
.toast.error i { color: var(--accent-red); }
.toast.info i { color: var(--accent-blue); }

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

/* ==========================================
   BACK TO TOP
   ========================================== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 999;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: all var(--transition-base);
}

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

.back-to-top:hover {
    background: var(--accent-blue);
    color: #ffffff;
    border-color: var(--accent-blue);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
    font-size: 18px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 320px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    transition: all var(--transition-fast);
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
}

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

.product-card:nth-child(1) { animation-delay: 0.00s; }
.product-card:nth-child(2) { animation-delay: 0.05s; }
.product-card:nth-child(3) { animation-delay: 0.10s; }
.product-card:nth-child(4) { animation-delay: 0.15s; }
.product-card:nth-child(5) { animation-delay: 0.20s; }
.product-card:nth-child(6) { animation-delay: 0.25s; }
.product-card:nth-child(7) { animation-delay: 0.30s; }
.product-card:nth-child(8) { animation-delay: 0.35s; }
.product-card:nth-child(9) { animation-delay: 0.40s; }
.product-card:nth-child(10) { animation-delay: 0.45s; }

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .modal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-main-image {
        aspect-ratio: 16/9;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar-inner {
        height: 56px;
    }
    
    .nav-links {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 4px;
        padding: 16px;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-light);
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition-base);
    }
    
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .section {
        padding: var(--section-padding-mobile) 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item:nth-child(2) {
        border-right: none;
    }
    
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) {
        border-bottom: 1px solid var(--border-light);
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
    }
    
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
    }
    
    .filter-group {
        flex-direction: column;
    }
    
    .filter-dropdown {
        min-width: unset;
    }
    
    .price-range-group {
        min-width: unset;
    }
    
    .modal-content {
        padding: 20px;
        max-height: 95vh;
        border-radius: 16px;
    }
    
    .modal-actions {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-actions .btn:last-child {
        grid-column: 1 / -1;
    }
    
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-thumb {
        width: 48px;
        height: 48px;
    }
    
    .modal-specs {
        grid-template-columns: 1fr;
    }
}
