.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;
}

.global-loader.loaded {
    opacity: 0;
    pointer-events: none;
}

.advanced-spinner {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
}

.spinner-outer,
.spinner-inner {
    position: absolute;
    border-radius: 50%;
    border-style: solid;
    border-color: transparent;
}

.spinner-outer {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-width: 3px;
    border-top-color: #ffffff;
    animation: spin 1.5s linear infinite;
}

.spinner-inner {
    top: 15px;
    left: 15px;
    width: 90px;
    height: 90px;
    border-width: 3px;
    border-right-color: #fbbf24;
    animation: spin 1s linear infinite reverse;
}

.spinner-core {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.spinner-core::before,
.spinner-core::after {
    display: none !important;
    content: none !important;
}

#loaderLogo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

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

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.loading-subtext {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

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

:root {
    --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-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-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    height: 100%;
}

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: 20px;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
    width: 100%;
    box-sizing: border-box;
}

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

.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);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 0;
    height: 70px;
}

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

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
}

/* ===== HAMBURGER MENU - LEFT SIDE ===== */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
    z-index: 2001;
    position: relative;
    order: 1;
}

.hamburger-menu span {
    width: 28px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== LOGO - CENTER ===== */
.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    order: 2;
    cursor: pointer;
}

/* Logo container - FORCE left alignment with 10px shift */
.logo {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
}

/* Parent nav container - also force left */
.nav {
    justify-content: space-between !important;
}

/* Logo image - Desktop: 120px */
.logo img {
    height: 140px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    margin-right: auto;
}

/* Mobile/Android: 80px */
@media (max-width: 768px) {
    .logo img {
        height: 85px !important;
    }
}

/* Tablet: 100px */
@media (min-width: 769px) and (max-width: 1024px) {
    .logo img {
        height: 120px !important;
    }
}

/* Hide business name text */
.logo h2,
.logo span,
.logo i {
    display: none !important;
}

/* ===== NAV CONTROLS - RIGHT SIDE ===== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-left: auto;
    order: 3;
}

/* ===== SEARCH ICON ===== */
.search-icon {
    cursor: pointer;
    padding: 0.7rem;
    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;
    flex-shrink: 0;
}

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

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

/* ===== CART ICON ===== */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.7rem;
    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;
    flex-shrink: 0;
    z-index: 100;
}

.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.3rem;
    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);
}

/* ===== SEARCH BAR ===== */
.search-bar {
    position: relative; /* Changed from fixed; now in flow */
    top: auto; /* Remove fixed top */
    left: auto;
    right: auto;
    background: rgba(255, 255, 255, 0.98); /* Keep semi-transparent */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08); /* Lighter shadow for persistence */
    z-index: 100; /* Lower than header's 1000 */
    max-height: none; /* Always expanded */
    overflow: visible;
    transition: none; /* Remove transitions for instant display */
    padding: 1rem 0; /* Fixed padding */
    border-bottom: 1px solid var(--border-color); /* Subtle separator */
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

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

.search-container input {
    padding: 1rem 3rem 1rem 1.5rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-xl);
    font-size: 1rem;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    background: rgba(248, 250, 252, 0.8);
    width: 100%;
}

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

.search-close {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}

.search-close {
    position: absolute; /* Absolute positioning inside relative container */
    right: 16.75rem; /* Increased from 0.25rem to shift cross button further left (closer to text) */
    top: 43%;
    transform: translateY(-50%);
    background: rgba(239, 68, 68, 0.1);
    border: none;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* Initially hidden */
    pointer-events: none; /* Disable interaction when hidden */
    z-index: 10; /* Above input */
}

.search-container input:focus + .search-close,
.search-container input:not(:placeholder-shown) + .search-close {
    opacity: 1; /* Show on focus or when text entered */
    pointer-events: auto; /* Enable interaction */
}

.input-wrapper input:focus + .search-close,
.input-wrapper input:not(:placeholder-shown) + .search-close {
    opacity: 1;
    pointer-events: auto;
}

.search-close:hover {
    background: rgba(239, 68, 68, 0.2);
}

.search-close i {
    font-size: 1.2rem;
    color: var(--error-color);
}

@media (max-width: 768px) {
    body {
        padding-top: 125px; /* Compact for mobile */
    }
    
    .search-bar {
        padding: 0.75rem 0;
    }
    
    .search-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .search-container input {
        padding: 0.75rem 2.5rem 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .search-close {
        width: 1.75rem;
        height: 1.75rem;
        right: 0.25rem;
    }
    
    .search-close i {
        font-size: 1.1rem;
    }
}

/* ===== SEARCH RESULTS ===== */
.search-results {
    max-width: 800px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.search-result-item {
    padding: 1rem;
    border-radius: var(--radius-lg);
    background: rgba(248, 250, 252, 0.8);
    margin-bottom: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: translateX(5px);
}

.search-result-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.search-result-info h4 {
    margin: 0 0 0.3rem 0;
    font-size: 1rem;
    color: var(--text-primary);
    font-family: var(--font-accent);
}

.search-result-info p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ===== MENU PANEL ===== */
.mobile-menu-panel {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    max-width: 500px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1999;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-sizing: border-box;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.08);
}

.mobile-menu-panel.open {
    left: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 0;
    max-width: 100%;
}

.mobile-menu-section {
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

/* ===== MENU BUTTONS ===== */
.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    gap: 1rem;
}

.mobile-menu-button:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

.mobile-menu-button i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.mobile-menu-button i:first-child {
    flex: 1;
}

.mobile-menu-button i:last-child {
    margin-left: auto;
}

.mobile-menu-button.expanded i:last-child {
    transform: rotate(180deg);
}

/* ===== SUBMENU ===== */
.mobile-submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 250, 252, 0.6);
}

.mobile-submenu.expanded {
    max-height: 800px;
}

.mobile-submenu-item {
    padding: 1rem 1.5rem;
    padding-left: 3rem;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    font-family: var(--font-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-submenu-item:hover {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    padding-left: 4rem;
}

.mobile-submenu-item i {
    font-size: 1rem;
    min-width: 20px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body {
        padding-top: 115px; /* Header 65px + search ~50px (compact, no gap) */
    }
    
    .header {
        height: 65px;
    }

    .nav {
        padding: 0 1rem;
        height: 65px;
    }

    .nav-controls {
        gap: 0.6rem;
    }

    .cart-icon {
        padding: 0.6rem;
    }

    .cart-icon i {
        font-size: 1.2rem;
    }

    .logo {
        font-size: 1.2rem; /* Smaller orange text */
    }

    .logo img {
        height: 35px;
    }

    .search-bar {
        padding: 0.5rem 0; /* Tighter vertical */
    }
    
    .search-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .search-container input {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 44px; /* Touch-friendly */
    }
    
    .search-close {
        padding: 0.6rem;
        min-width: 44px;
        min-height: 44px;
    }
    
    .search-close i {
        font-size: 1.1rem;
    }
    
    .search-results {
        margin-top: 0.25rem;
        padding: 0 1rem;
        max-height: 300px; /* Shorter for mobile */
    }
    
    .search-result-item {
        padding: 0.875rem;
        gap: 0.75rem;
    }
    
    .search-result-item i {
        font-size: 1.25rem;
    }
    
    .search-result-info h4 {
        font-size: 0.95rem;
    }
    
    .search-result-info p {
        font-size: 0.8rem;
    }
    
    /* Hero flush after search */
    .hero {
        margin-top: 0;
        padding-top: 1.5rem;
    }
    
    /* Mobile menu (if needed) */
    .mobile-menu-panel {
        top: 65px;
        height: calc(100vh - 65px - 50px); /* Account for search height */
    }
}

@media (min-width: 769px) {
    body {
        padding-top: 70px;
    }
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, var(--primary-color) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.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.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease-out 0.2s both;
    font-weight: 400;
    letter-spacing: 0.01em;
}



.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);
}

/* Categories Section Container */
.categories {
    padding: 1rem 0;
    background: var(--background-primary);
    width: 100%;
}

/* Section Title (Explore Our Categories) */
.section-title {
    font-family: var(--font-accent);
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    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;
}

/* Categories Grid - Horizontal Scroll Layout */
.categories-grid {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

/* Custom Scrollbar Styling */
.categories-grid::-webkit-scrollbar {
    height: 6px;
}

.categories-grid::-webkit-scrollbar-track {
    background: transparent;
}

.categories-grid::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
}

.categories-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Category Card Base Styles */
.category-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-width: 140px;
    max-width: 140px;
    height: 140px;
    padding: 1.5rem 1rem;
    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;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    scroll-snap-align: start;
    box-sizing: border-box;
}

/* Category Card Hover Background Effect */
.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;
    pointer-events: none;
    z-index: 1;
}

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

/* Category Card Hover Effect */
.category-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
    border-color: var(--primary-color);
}

/* Category Icon Styles */
.category-card i {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    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 Title Styles */
.category-card h4 {
    font-family: var(--font-accent);
    color: var(--text-primary);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

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

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

/* Tablet & Medium Screens (769px - 1199px) */
@media (min-width: 769px) {
    .categories-grid {
        gap: 1.8rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .category-card {
        min-width: 160px;
        max-width: 160px;
        height: 160px;
        padding: 2rem 1.5rem;
    }

    .category-card i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .category-card h4 {
        font-size: 1.1rem;
    }

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

/* Desktop & Large Screens (1200px+) */
@media (min-width: 1200px) {
    .categories-grid {
        justify-content: center;
        gap: 2rem;
    }

    .category-card {
        min-width: 180px;
        max-width: 180px;
        height: 180px;
        padding: 2.5rem 2rem;
    }

    .category-card i {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }

    .category-card h4 {
        font-size: 1.2rem;
        font-weight: 700;
    }

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

/* Mobile Only (max-width: 768px) */
@media (max-width: 768px) {
    .categories {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 1.5rem;
    }

    .categories-grid {
        gap: 1rem;
        padding: 1rem 0;
    }

    .category-card {
        min-width: 120px;
        max-width: 120px;
        height: 120px;
        padding: 1rem 0.8rem;
    }

    .category-card i {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    .category-card h4 {
        font-size: 0.9rem;
    }
}

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

.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 SECTION ===== */
.contact {
    padding: 1.5rem 0;
    background: var(--background-primary);
    position: relative;
    width: 100%;
}

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

.contact-info {
    padding: 1.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;
    width: 100%;
    box-sizing: border-box;
}

.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;
    width: 100%;
}

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

.contact-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* GREEN WHATSAPP & BLUE TELEGRAM */
.contact-item i.fa-whatsapp {
    color: #25D366 !important;
}

.contact-item i.fa-telegram {
    color: #0088cc !important;
}

/* ===== CART SIDEBAR ===== */
.cart-sidebar {
    font-family: var(--font-primary);
    position: fixed;
    right: -420px;
    top: 0;
    width: 420px;
    max-width: 100%;
    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);
    box-sizing: border-box;
}

.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);
    flex-shrink: 0;
}

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

.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);
    background: none;
    border: none;
}

.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;
}

.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;
}

.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);
    flex-shrink: 0;
}

.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);
    flex-shrink: 0;
}

/* ===== MENU BUTTON WITH LABEL ===== */
.menu-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 600;
    flex: 1;
}

.menu-label i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.5rem;
    background: none;
    border: none;
    font-family: var(--font-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    gap: 1rem;
}

.mobile-menu-button:hover {
    background: rgba(99, 102, 241, 0.05);
    color: var(--primary-color);
}

.mobile-menu-button:hover .menu-label {
    color: var(--primary-color);
}

.mobile-menu-button i:last-child {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-menu-button.expanded i:last-child {
    transform: rotate(180deg);
}

.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);
}

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

.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);
    box-sizing: border-box;
}

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

.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: 2501;
    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;
    padding: 0;
}

.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);
}

/* ===== FOOTER ===== */
/* ===== FOOTER - FORCE 4 COLUMNS ON MOBILE ===== */
.footer {
    font-family: var(--font-primary);
    background: linear-gradient(135deg, #1e293b, #334155);
    color: white;
    padding: 2.5rem 0 1.5rem;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.8rem;
}

/* FORCE 4 columns on ALL screen sizes */
.footer-content {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.footer-section {
    min-width: 0; /* Prevent overflow */
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-accent);
    margin-bottom: 0.8rem;
    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;
    font-size: 0.75rem;
    line-height: 1.3;
}

.footer-section p {
    color: #94a3b8;
    line-height: 1.4;
    font-size: 0.7rem;
}

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

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

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

/* Tablet - Keep 4 columns, slightly larger text */
@media (min-width: 481px) and (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        gap: 1.5rem !important;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.8rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* Desktop - Keep 4 columns, larger text */
@media (min-width: 769px) {
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        gap: 3rem !important;
        margin-bottom: 3rem;
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .footer-section a {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
        padding: 0.5rem 0;
    }
    
    .footer-section a:hover {
        padding-left: 1rem;
        transform: translateX(5px);
    }
    
    .footer-bottom {
        font-size: 0.95rem;
        padding-top: 2rem;
    }
}

/* Remove any conflicting styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* ===== SLIDER ===== */
.slider {
    margin-top: 20px;
    padding: 0;
    background: transparent;
    width: 100%;
}

.slider .container {
    padding: 0 !important;
}

#sliderWrapper {
    position: relative;
    overflow: hidden;
    height: 400px;
    border-radius: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background: transparent;
    clip-path: inset(0 round 1rem);
    width: 100%;
}

.slider-slide {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    overflow: hidden;
    background: transparent;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity;
    pointer-events: none;
    z-index: 0;
}

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

.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.slider-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.6);
}

.slider-nav.left {
    left: 12px;
}

.slider-nav.right {
    right: 12px;
}

/* ===== HOW TO PAY ===== */
.how-to-pay {
    padding: 1.5rem 0;
    margin: var(--spacing-2xl) 0;
    background: var(--background-primary);
    width: 100%;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

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

    .header {
        height: 70px;
        padding: 0;
    }

    .nav {
        height: 70px;
        padding: 0.75rem 12px;
    }

    .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;
    }

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

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

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

    .modal-body {
        padding: 1.5rem;
    }

    #sliderWrapper {
        height: 250px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .container {
        padding: 0 12px;
    }

    .mobile-menu-panel {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    .container {
        padding: 0 10px;
    }

    .header {
        height: 70px;
    }

    .nav {
        height: 70px;
        padding: 0.5rem 10px;
    }

    .logo h2 {
        font-size: 1rem;
    }

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

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

    #sliderWrapper {
        height: 200px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

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

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

button:focus-visible,
.cta-button: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);
}

section {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ===== BOTTOM NAVIGATION ===== */
body {
    padding-bottom: 90px;
}

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0.5rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    transition: transform 0.3s ease;
}

.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    opacity: 0.3;
}

.bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    color: #64748b;
    font-size: 0.72rem;
    padding: 0.5rem 0.6rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    max-width: 90px;
    font-weight: 500;
    position: relative;
    border-radius: 12px;
}

.bottom-nav .nav-item i {
    font-size: 1.4rem;
    display: block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-nav .nav-item span {
    display: block;
    text-align: center;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.bottom-nav .nav-item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.bottom-nav .nav-item:hover i {
    transform: translateY(-3px) scale(1.1);
}

.bottom-nav .nav-item.active {
    color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.bottom-nav .nav-item.active i {
    transform: scale(1.15);
}

.bottom-nav .nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px 10px 0 0;
}

/* Category Modal */
.category-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.category-sheet {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.sheet-header h3 {
    font-size: 1.4rem;
    color: #333;
    margin: 0;
}

.close-sheet {
    background: #f3f4f6;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-sheet:hover {
    background: #e5e7eb;
    transform: rotate(90deg);
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
    color: inherit;
}

.category-option:hover {
    background: #f3f4f6;
    border-color: #667eea;
    transform: translateX(5px);
}

.category-option i {
    font-size: 2rem;
    color: #667eea;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    flex-shrink: 0;
}

.category-option div h4 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
    color: #333;
}

.category-option div p {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

@media (max-width: 768px) {
    .bottom-nav {
        padding: 0.5rem 0.25rem 0.65rem 0.25rem;
    }

    .bottom-nav .nav-item {
        font-size: 0.68rem;
        padding: 0.4rem 0.4rem;
        max-width: 80px;
    }

    .bottom-nav .nav-item i {
        font-size: 1.3rem;
    }

    .category-modal.active {
        align-items: flex-end;
    }
    
    .category-sheet {
        width: 100%;
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 1.5rem;
        max-height: 70vh;
    }

    .scroll-to-top {
        bottom: 90px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
}

/* ========== 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;
}

/* Close button */
.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 header */
.product-detail-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  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 price in modal */
.product-detail-price {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  padding: 0.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 sections */
.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: 1rem;
  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;
}

/* Features list */
.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: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Modal action buttons */
.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;
}

/* Responsive modal */
@media (max-width: 768px) {
  .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) {
  .modal-content {
    width: 98%;
    margin: 2% auto;
  }
}

/* ========== FEATURED PRODUCTS SECTION - ENHANCED 3D ========== */
.featured-products-section {
  padding: 1rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  width: 100%;
}

.featured-products-section h2 {
  font-family: var(--font-accent);
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  padding: 0 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.featured-products-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .featured-products-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    padding: 0 2rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .featured-products-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

.featured-product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.07),
    0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  transform-style: preserve-3d;
}

.featured-product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(16, 185, 129, 0.03) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.featured-product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 
    0 12px 24px rgba(0, 0, 0, 0.1),
    0 20px 40px -5px rgba(59, 130, 246, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

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

.featured-product-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  padding: 0.75rem;
  transition: transform 0.4s ease;
  position: relative;
  z-index: 2;
}

.featured-product-card:hover img {
  transform: scale(1.08) translateZ(10px);
}

@media (min-width: 768px) {
  .featured-product-card img {
    height: 160px;
    padding: 1rem;
  }
}

.featured-product-details {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 2;
  background: white;
}

.featured-product-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
  
  /* Standard line-clamp (future support, no prefix needed) */
  line-clamp: 2;
  
  /* WebKit prefix for current browsers (requires box display) */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
}

.featured-product-card:hover .featured-product-title {
  color: #3b82f6;
}

@media (min-width: 768px) {
  .featured-product-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
  }
}

.featured-product-price {
  margin-bottom: 0.75rem;
}

.featured-product-actions {
  margin-top: auto;
  display: flex;
  gap: 0.4rem;
}

.featured-product-actions button {
  flex: 1;
  padding: 0.5rem 0.3rem;
  border-radius: 6px;
  border: none;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.featured-product-actions button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.featured-product-actions button:hover::before {
  width: 300px;
  height: 300px;
}

@media (min-width: 768px) {
  .featured-product-actions button {
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
  }
}

.featured-product-actions .btn-view {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.featured-product-actions .btn-view:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.featured-product-actions .btn-add {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.featured-product-actions .btn-add:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.featured-product-actions button:active {
  transform: translateY(0);
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.featured-product-card.loading {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Phone - Hide company/about section, center columns with left-aligned text */
@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: repeat(3, 1fr) !important;
        justify-content: center; /* Center the columns as a group */
        justify-items: start; /* Left-align content within each column */
        gap: 0.8rem !important;
        margin-bottom: 1rem;
    }
    
    /* Hide the first footer-section (company name and about) */
    .footer-content > .footer-section:nth-child(1) {
        display: none;
    }
    
    .footer-section {
        /* No text-align: center; - defaults to left alignment */
        min-width: 0; /* Ensure no overflow in narrow columns */
    }
    
    .footer-section h3,
    .footer-section h4 {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
        text-align: left; /* Explicit left start for headings */
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.65rem;
        line-height: 1.3;
        text-align: left; /* Left-align paragraphs and links */
    }
    
    .footer-section a {
        margin-bottom: 0.3rem; /* Left-flush margin */
        padding: 0.2rem 0; /* Keep padding for hover effect */
        display: block; /* Full width but left-starting text */
    }
    
    .footer-section a:hover {
        padding-left: 0.2rem;
        transform: translateX(1px); /* Subtle shift on hover, starts from left */
    }
    
    .footer-bottom {
        font-size: 0.65rem;
        padding-top: 0.8rem;
        text-align: center; /* Keep bottom copyright centered */
    }
    
    .footer .container {
        padding: 0 0.5rem;
        /* Remove flex if not needed; margin: 0 auto handles horizontal centering */
    }
}

/* Sitemap Styles */
.sitemap {
    padding: 4rem 0;
    background: var(--bg-secondary, #f8fafc);
}

.sitemap-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.sitemap-column {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl, 12px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.sitemap-column h2 {
    color: var(--primary-color, #6366f1);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.sitemap-column h2 i {
    font-size: 1.2rem;
    width: 20px;
}

.sitemap-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-column li {
    margin-bottom: 0.8rem;
}

.sitemap-column a {
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    font-weight: 500;
}

.sitemap-column a:hover {
    color: var(--primary-color, #6366f1);
}

.sitemap-column a i {
    font-size: 0.9rem;
    width: 16px;
    color: var(--primary-color, #6366f1);
}

.sitemap-footer-note {
    text-align: center;
    padding: 1rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: var(--radius-lg, 8px);
    color: var(--text-secondary, #64748b);
}

/* Mobile: Stack Columns */
@media (max-width: 768px) {
    .sitemap-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .sitemap-column {
        padding: 1.5rem;
    }
}

/* Instagram Gradient Icon */
.contact-item i.fa-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
