/**
 * Digital Marketplace - Premium Design System
 * Modern, clean, conversion-optimized styling
 */

/* ========================================
   CSS VARIABLES - DESIGN TOKENS
   ======================================== */
:root {
    /* Primary Colors - Indigo/Violet gradient theme */
    --primary-50: #eef2ff;
    --primary-100: #e0e7ff;
    --primary-200: #c7d2fe;
    --primary-300: #a5b4fc;
    --primary-400: #818cf8;
    --primary-500: #6366f1;
    --primary-600: #4f46e5;
    --primary-700: #4338ca;
    --primary-800: #3730a3;
    --primary-900: #312e81;
    
    /* Secondary Colors */
    --secondary-500: #8b5cf6;
    --secondary-600: #7c3aed;
    
    /* Semantic Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;
    
    /* Neutral Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    /* Background Colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;
    
    /* Text Colors */
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-tertiary: #9ca3af;
    --text-inverse: #ffffff;
    
    /* Border Colors */
    --border-light: #e5e7eb;
    --border-medium: #d1d5db;
    --border-dark: #9ca3af;
    
    /* Shadow System */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Spacing System */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    --radius-full: 9999px;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
    
    /* Z-index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

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

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

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

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

a:hover {
    color: var(--primary-700);
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--space-4);
    color: var(--text-secondary);
}

.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.text-gradient {
    background: linear-gradient(135deg, var(--primary-500), var(--secondary-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   NOTIFICATION BAR
   ======================================== */
.notification-bar {
    background: linear-gradient(90deg, var(--primary-600), var(--secondary-600));
    color: white;
    padding: var(--space-3) 0;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.notification-bar a {
    color: white;
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: var(--space-4) 0;
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    padding: var(--space-3) 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.navbar-brand:hover {
    color: var(--primary-600);
}

.navbar-brand i {
    color: var(--primary-500);
    font-size: 1.75rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-600);
    background: var(--primary-50);
}

.dropdown-menu {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2);
    min-width: 220px;
    margin-top: var(--space-2);
}

.dropdown-item {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background: var(--primary-50);
    color: var(--primary-600);
}

.dropdown-item i {
    color: var(--primary-500);
}

/* Cart Badge */
.cart-icon {
    position: relative;
    padding: var(--space-2);
}

.cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
    color: white;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
    color: white;
    box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--secondary-600), var(--secondary-600));
    color: white;
    transform: translateY(-2px);
}

.btn-outline-primary {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-200);
}

.btn-outline-primary:hover {
    background: var(--primary-50);
    border-color: var(--primary-500);
    color: var(--primary-700);
}

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

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

.btn-dark {
    background: var(--gray-900);
    color: white;
}

.btn-dark:hover {
    background: var(--gray-800);
    color: white;
}

.btn-light {
    background: white;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.btn-light:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-md);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: all var(--transition-base);
}

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

.card-body {
    padding: var(--space-6);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-light);
    background: transparent;
}

/* ========================================
   PRODUCT CARDS
   ======================================== */
.product-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.product-badges {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-1) var(--space-3);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    border-radius: var(--radius-full);
}

.badge-featured {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.badge-bestseller {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-new {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.badge-sale {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.product-content {
    padding: var(--space-5);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary-500);
    margin-bottom: var(--space-2);
}

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

.product-title a {
    color: inherit;
}

.product-title a:hover {
    color: var(--primary-600);
}

.product-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.rating-stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

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

.product-sales {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

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

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

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

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

.price-discount {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-light);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-md);
}

.btn-add-cart {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--primary-50);
    color: var(--primary-600);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-add-cart:hover {
    background: var(--primary-500);
    color: white;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    padding: var(--space-24) 0;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-600) 50%, var(--primary-700) 100%);
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: var(--space-12);
    margin-top: var(--space-12);
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

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

.hero-stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Search */
.hero-search {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-2);
    display: flex;
    gap: var(--space-2);
    box-shadow: var(--shadow-2xl);
    max-width: 600px;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: var(--space-4) var(--space-6);
    font-size: 1rem;
    outline: none;
    background: transparent;
}

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

.hero-search button {
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-xl);
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: var(--space-24) 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-16);
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-bg {
    background: var(--bg-secondary);
}

.section-dark {
    background: var(--bg-dark);
}

.section-dark .section-title,
.section-dark .section-subtitle {
    color: white;
}

.section-dark .section-subtitle {
    opacity: 0.7;
}

/* ========================================
   CATEGORY CARDS
   ======================================== */
.category-card {
    display: block;
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

.category-card:hover .category-image {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
}

.category-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-1);
}

.category-count {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-card {
    background: white;
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: #fbbf24;
    margin-bottom: var(--space-4);
}

.testimonial-text {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.testimonial-name {
    font-weight: 600;
    color: var(--text-primary);
}

.testimonial-role {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

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

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.footer-brand i {
    color: var(--primary-400);
}

.footer-description {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-6);
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

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

.footer-social a:hover {
    background: var(--primary-500);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: white;
    padding-left: var(--space-2);
}

.footer-newsletter {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.footer-newsletter-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-2);
}

.footer-newsletter-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-4);
}

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

.footer-copyright {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-payment {
    display: flex;
    gap: var(--space-3);
}

.footer-payment i {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumbs {
    background: var(--bg-secondary);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--border-light);
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    font-size: 0.875rem;
}

.breadcrumbs-list li {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.breadcrumbs-list a {
    color: var(--text-secondary);
}

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

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

.breadcrumbs-separator {
    color: var(--text-tertiary);
}

/* ========================================
   FORMS
   ======================================== */
.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.form-control,
.form-select {
    padding: var(--space-3) var(--space-4);
    font-size: 0.9375rem;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    background: white;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px var(--primary-100);
    outline: none;
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.input-group {
    display: flex;
    gap: var(--space-2);
}

/* ========================================
   FILTERS & SEARCH
   ======================================== */
.filter-bar {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-6);
}

.filter-row {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-12);
}

.page-link {
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--space-4);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.page-link:hover {
    background: var(--primary-50);
    border-color: var(--primary-200);
    color: var(--primary-600);
}

.page-item.active .page-link {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   ALERTS
   ======================================== */
.alert {
    padding: var(--space-4) var(--space-6);
    border-radius: var(--radius-xl);
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: var(--danger-light);
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

.alert-info {
    background: var(--info-light);
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */
.product-detail {
    padding: var(--space-12) 0;
}

.product-gallery {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-gallery-main {
    aspect-ratio: 16/10;
    overflow: hidden;
}

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

.product-gallery-thumbs {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-4);
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--primary-500);
}

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

.product-info-header {
    margin-bottom: var(--space-6);
}

.product-info-category {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-2);
}

.product-info-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.product-info-meta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
}

.product-info-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-xl);
}

.price-main {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.price-old {
    font-size: 1.25rem;
    color: var(--text-tertiary);
    text-decoration: line-through;
}

.price-save {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

/* License Options */
.license-options {
    margin-bottom: var(--space-6);
}

.license-option {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-5);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-3);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.license-option:hover {
    border-color: var(--primary-300);
}

.license-option.active {
    border-color: var(--primary-500);
    background: var(--primary-50);
}

.license-option input {
    margin-top: var(--space-1);
}

.license-option-content {
    flex: 1;
}

.license-option-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.license-option-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

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

/* Product Actions */
.product-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.product-actions .btn {
    flex: 1;
    padding: var(--space-4) var(--space-6);
}

/* Product Tabs */
.product-tabs {
    margin-top: var(--space-12);
}

.nav-tabs {
    border-bottom: 2px solid var(--border-light);
    gap: var(--space-6);
}

.nav-tabs .nav-link {
    padding: var(--space-4) 0;
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    background: transparent;
}

.nav-tabs .nav-link:hover {
    color: var(--primary-600);
    background: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary-600);
    border-bottom-color: var(--primary-500);
    background: transparent;
}

.tab-content {
    padding: var(--space-8) 0;
}

/* ========================================
   CART PAGE
   ======================================== */
.cart-item {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-6);
    background: white;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-4);
}

.cart-item-image {
    width: 120px;
    height: 90px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.cart-item-category {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: var(--space-2);
}

.cart-item-license {
    font-size: 0.8125rem;
    color: var(--primary-600);
    background: var(--primary-50);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    display: inline-block;
}

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

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

.cart-summary {
    background: white;
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-light);
    padding: var(--space-6);
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-6);
}

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

.cart-summary-row:last-of-type {
    border-bottom: none;
    padding-top: var(--space-4);
    margin-top: var(--space-2);
}

.cart-summary-total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
   WHATSAPP FLOAT BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: var(--z-fixed);
    background: #25d366;
    color: white;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-fast);
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: white;
}

.whatsapp-float i {
    font-size: 1.5rem;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

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

.d-flex { display: flex; }
.d-block { display: block; }
.d-none { display: none; }

.flex-wrap { flex-wrap: wrap; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }

/* Grid System */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(var(--space-4) * -1);
}

.col {
    flex: 1;
    padding: 0 var(--space-4);
}

.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 var(--space-4); }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 var(--space-4); }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 var(--space-4); }
    .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 var(--space-4); }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 var(--space-4); }
    .col-md-8 { flex: 0 0 66.667%; max-width: 66.667%; padding: 0 var(--space-4); }
}

@media (min-width: 1024px) {
    .col-lg-2 { flex: 0 0 16.667%; max-width: 16.667%; padding: 0 var(--space-4); }
    .col-lg-3 { flex: 0 0 25%; max-width: 25%; padding: 0 var(--space-4); }
    .col-lg-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 var(--space-4); }
    .col-lg-6 { flex: 0 0 50%; max-width: 50%; padding: 0 var(--space-4); }
    .col-lg-8 { flex: 0 0 66.667%; max-width: 66.667%; padding: 0 var(--space-4); }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        gap: var(--space-8);
    }
}

@media (max-width: 768px) {
    :root {
        --space-24: 4rem;
        --space-20: 3rem;
        --space-16: 2.5rem;
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-6);
    }
    
    .hero-stat-value {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .product-info-title {
        font-size: 1.5rem;
    }
    
    .price-main {
        font-size: 1.75rem;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 160px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        padding: var(--space-2) var(--space-4);
    }
    
    .whatsapp-float span {
        display: none;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

.animate-slide-in {
    animation: slideIn 0.5s ease forwards;
}

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

/* ========================================
   SCROLLBAR STYLING
   ======================================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ========================================
   SELECTION STYLING
   ======================================== */
::selection {
    background: var(--primary-200);
    color: var(--primary-900);
}
