/* ===== LOADING SCREEN & FONT LOADING ANIMATION ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Global Loading Screen */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #6366f1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.global-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

/* Advanced Loading Spinner */
.advanced-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.spinner-outer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: outerSpin 1.5s linear infinite;
}

.spinner-inner {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 90px;
    height: 90px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-right: 3px solid #fbbf24;
    border-radius: 50%;
    animation: innerSpin 1s linear infinite reverse;
}

.spinner-core {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ffffff, #f8fafc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: corePulse 2s ease-in-out infinite;
}

.spinner-core::after {
    content: '⚡';
    font-size: 2rem;
    animation: iconRotate 2s ease-in-out infinite;
}

@keyframes outerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes innerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes iconRotate {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.loading-text {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    animation: textPulse 2s ease-in-out infinite;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    animation: subtextFade 3s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes subtextFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Font Loading States */
.fonts-loading * {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.fonts-loaded .global-loader {
    opacity: 0;
    visibility: hidden;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --background-primary: #ffffff;
    --background-secondary: #f8fafc;
    --border-color: #e2e8f0;
    
    /* Font Variables */
    --font-primary: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    overflow-x: hidden;
    padding-top: 80px;
    font-weight: 400;
    letter-spacing: -0.01em;
}

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

/* ===== ENHANCED HEADER WITH SCROLL HIDE ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.hidden {
    transform: translateY(-100%);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo img {
  height: 40px;          /* Fixed height for consistent sizing */
  width: auto;           /* Maintains aspect ratio */
  display: inline-block; /* Enables vertical-align (was block, ignored it) */
  vertical-align: middle; /* Now works: Centers vertically in line/parent */
  max-width: 100%;       /* Responsive: Scales down on small screens */
  object-fit: contain;   /* Fits image without distortion */
  flex-shrink: 0;        /* Prevents flex compression in parent */
  transition: opacity 0.3s ease; /* Optional: Smooth hover effects */
}


.logo h2 {
    font-family: var(--font-accent);
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo h2:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.logo h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.logo h2:hover::after {
    width: 100%;
}

@keyframes glow {
    from { text-shadow: 0 0 5px rgba(99, 102, 241, 0.3); }
    to { text-shadow: 0 0 20px rgba(99, 102, 241, 0.6); }
}


/* Enhanced navigation styles */
.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* FIND THIS - Around line 380-400 */
.nav-links a {
    font-family: var(--font-primary);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}

/* ADD THIS NEW RULE RIGHT AFTER .nav-links a */
.nav-links a i {
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.15);
}


.nav-links a:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-links a.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    font-weight: 600;
}

/* Mobile navigation styles */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    transition: all 0.3s ease;
    border-radius: var(--radius-md);
}

.mobile-nav-toggle:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* ===== FIXED CART ICON ===== */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.875rem;
    border-radius: var(--radius-xl);
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-icon:hover {
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

.cart-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: var(--font-accent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.cart-count:hover {
    transform: scale(1.1);
}

/* ===== FIXED PRODUCT CARD WITH OVERFLOW CONTAINMENT ===== */
.product-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden; /* FIXED: Contains all content within the card */
    min-width: 300px;
    max-width: 380px;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* FIXED: Remove scale to prevent text overflow */
.product-card:hover {
    transform: translateY(-12px); /* Only use translateY, no scale */
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
}

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

/* ===== PERFECT 1:1 PRODUCT IMAGES - FIXED ===== */
.product-icon {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: var(--radius-xl);
    border: 3px solid var(--border-color);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-card .product-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: calc(var(--radius-xl) - 3px) !important;
    transition: all 0.3s ease;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    display: block !important;
    opacity: 1 !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

/* Placeholder icon when no image is available */
.product-icon .placeholder-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-size: 3.5rem;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.product-icon .emoji-icon {
    font-size: 4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: calc(var(--radius-xl) - 3px);
    z-index: 1;
}

/* Enhanced hover effects */
.product-card:hover .product-icon {
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
}

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

.product-card:hover .product-icon .emoji-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Force override any conflicting styles */
.product-icon img[src] {
    max-width: none !important;
    max-height: none !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .product-icon {
        height: 0;
        padding-bottom: 100%;
    }
    
    .product-icon .placeholder-icon,
    .product-icon .emoji-icon,
    .product-card .product-icon img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* ===== TEXT OVERFLOW FIXES ===== */
.product-card .product-title,
.product-card .product-description,
.product-card .product-price,
.product-card .product-features,
.product-card .product-actions {
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Specific fix for long feature text */
.product-features li {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Fix for button text overflow */
.product-actions button {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== TYPOGRAPHY IMPROVEMENTS ===== */
.product-title {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.product-description {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1rem;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-accent);
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 3.5rem;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    position: relative;
    animation: fadeInUp 0.6s ease-out both;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* ===== ENHANCED HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--primary-color) 100%);
    color: white;
    padding: 5rem 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"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

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

.hero-content h1 {
    font-family: var(--font-accent);
    font-size: 3.75rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out;
    line-height: 1.1;
}

.hero-content p {
    font-family: var(--font-primary);
    font-size: 1.35rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 3rem 0;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature {
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
    font-size: 0.95rem;
}

.feature:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    color: #fbbf24;
}

.feature i {
    color: #fbbf24;
    font-size: 1.2rem;
}

.cta-button {
    font-family: var(--font-accent);
    display: inline-block;
    background: linear-gradient(135deg, white, #f8fafc);
    color: var(--primary-color);
    padding: 1.25rem 2.75rem;
    text-decoration: none;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
}

/* ===== ENHANCED BUTTON STYLES ===== */
.btn-primary,
.btn-instant-buy,
.btn-secondary {
    font-family: var(--font-accent);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #5b21b6);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
}

.btn-instant-buy {
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    border: none;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    margin-left: 0.5rem;
}

.btn-instant-buy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-instant-buy:hover::before {
    width: 300px;
    height: 300px;
}

.btn-instant-buy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.btn-secondary {
    background: rgba(241, 245, 249, 0.8);
    color: var(--text-secondary);
    border: 1px solid rgba(226, 232, 240, 0.8);
    padding: 1rem 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(226, 232, 240, 0.8);
    border-color: rgba(203, 213, 225, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ===== PRODUCTS GRID ===== */
.products {
    padding: 5rem 0;
    background: var(--background-primary);
    position: relative;
}

.products::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="1" fill="rgba(99,102,241,0.03)"/></svg>');
    opacity: 0.5;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.products-grid > * {
    animation: fadeInUp 0.6s ease-out both;
}

.products-grid > *:nth-child(1) { animation-delay: 0.1s; }
.products-grid > *:nth-child(2) { animation-delay: 0.2s; }
.products-grid > *:nth-child(3) { animation-delay: 0.3s; }
.products-grid > *:nth-child(4) { animation-delay: 0.4s; }

.product-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.current-price {
    font-family: var(--font-accent);
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success-color), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.original-price {
    font-family: var(--font-primary);
    font-size: 1.15rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.discount-badge {
    font-family: var(--font-accent);
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
    letter-spacing: 0.02em;
}

.product-features {
    margin-bottom: 2rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.95rem;
}

.product-features li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

.product-features i {
    color: var(--success-color);
    font-size: 1rem;
    width: 16px;
}

.product-actions {
    display: flex;
    gap: 1rem;
}

/* ===== FIXED MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    overflow: auto;
    padding: 20px;
}

.modal-content {
    font-family: var(--font-primary);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--radius-2xl);
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: calc(90vh - 100px);
    flex: 1;
    text-align: left;
}

/* ===== FIXED CLOSE BUTTON SIZE ===== */
.close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2001;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-weight: 400;
}

.close:hover {
    color: var(--error-color);
    background: rgba(254, 242, 242, 0.95);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.2);
}

/* Product details styling in modal */
.product-detail-header {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.product-detail-icon {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-title {
    font-family: var(--font-accent);
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.product-detail-description {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.7;
}

.product-detail-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.6);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.product-detail-price .current-price {
    font-family: var(--font-accent);
    font-size: 2.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--success-color), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-detail-price .original-price {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    color: var(--text-muted);
    text-decoration: line-through;
    font-weight: 500;
}

.product-detail-price .discount-badge {
    font-family: var(--font-accent);
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.product-detail-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.4);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--primary-color);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(241, 245, 249, 0.6);
}

.product-detail-section h4 {
    font-family: var(--font-accent);
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: -0.025em;
}

.product-detail-section h4 i {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features-list li {
    font-family: var(--font-primary);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.6;
    transition: all 0.2s ease;
}

.product-features-list li:hover {
    transform: translateX(5px);
    color: #1f2937;
}

.product-features-list li i {
    background: linear-gradient(135deg, var(--success-color), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.product-detail-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
    padding: 2rem 0 0 0;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    flex-wrap: wrap;
}

.modal-btn-primary {
    font-family: var(--font-accent);
    background: linear-gradient(135deg, var(--success-color), #047857);
    color: white;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: var(--radius-xl);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    letter-spacing: -0.01em;
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #065f46);
}

.modal-btn-instant {
    font-family: var(--font-accent);
    flex: 1;
    background: linear-gradient(135deg, var(--warning-color), #d97706);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ===== FIXED CART SIDEBAR ===== */
.cart-sidebar {
    font-family: var(--font-primary);
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: -8px 0 40px rgba(0,0,0,0.1);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border-left: 1px solid rgba(241, 245, 249, 0.8);
}

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

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 250, 252, 0.6);
}

.cart-header h3 {
    font-family: var(--font-accent);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.close-cart {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: var(--radius-md);
}

.close-cart:hover {
    color: var(--error-color);
    background: rgba(254, 242, 242, 0.8);
}

.cart-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    transition: all 0.3s ease;
}

.cart-item:hover {
    background: rgba(248, 250, 252, 0.6);
}

.cart-item-info {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cart-item-title {
    font-family: var(--font-accent);
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.4;
}

.cart-item-price {
    font-family: var(--font-accent);
    background: linear-gradient(135deg, var(--success-color), #047857);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.1rem;
}

.cart-item-meta {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-item {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.remove-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(10px);
}

.cart-total {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.checkout-btn {
    font-family: var(--font-accent);
    width: 100%;
    background: linear-gradient(135deg, var(--success-color), #047857);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: var(--radius-xl);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    letter-spacing: -0.01em;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #065f46);
}

/* ===== CATEGORY CARDS ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.category-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.category-card:hover i {
    transform: scale(1.1) rotate(5deg);
    color: var(--secondary-color);
}

.category-card h4 {
    font-family: var(--font-accent);
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.category-card:hover h4 {
    color: var(--primary-color);
}

.category-card p {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* ===== CONTACT & ABOUT SECTIONS ===== */
.about {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--background-secondary) 0%, #f1f5f9 100%);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.about-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-card i {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.about-card:hover i {
    transform: scale(1.2);
}

.about-card h3 {
    font-family: var(--font-accent);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.about-card p {
    font-family: var(--font-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 400;
}

.contact {
    padding: 5rem 0;
    background: var(--background-primary);
    position: relative;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.contact-info {
    padding: 2.5rem;
}

.contact-item {
    font-family: var(--font-primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.contact-item i {
    transition: transform 0.3s ease;
    font-size: 1.5rem;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(5deg);
}

.contact-form {
    background: rgba(248, 250, 252, 0.6);
    backdrop-filter: blur(20px);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    font-family: var(--font-primary);
    padding: 1rem 1.2rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-weight: 400;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.contact-form button {
    font-family: var(--font-accent);
    background: linear-gradient(135deg, var(--primary-color), #5b21b6);
    color: white;
    border: none;
    padding: 1.2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    letter-spacing: -0.01em;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #5b21b6, #4c1d95);
}

/* Footer */
.footer {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

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

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-accent);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-section a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    border-radius: var(--radius-sm);
    font-weight: 400;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 1rem;
}

.footer-bottom {
    border-top: 1px solid rgba(51, 65, 85, 0.8);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
        flex-direction: column;
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav-links.mobile-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1rem;
        gap: 0.75rem;
    }

    .nav-links a i {
        font-size: 1.3rem;
        min-width: 24px;
        text-align: center;
    }

    .nav {
        position: relative;
    }

    .product-card {
        min-width: 250px;
    }

    .hero-content h1 {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .feature {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

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

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

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .close {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
}


@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .current-price {
        font-size: 1.875rem;
    }

    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
}

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

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

/* Loading Animation */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
}

.spinner {
    border: 4px solid rgba(243, 244, 246, 0.3);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Enhanced Focus States */
button:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.checkout-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Smooth page transitions */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

