/* ===== CSS RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary-color: #6213ac;
    --primary-dark: #460781;
    --primary-light: #ab87ccbe;
    --secondary-color: #3B82F6;
    --secondary-dark: #2563EB;
    --accent-color: #8B5CF6;
    --accent-dark: #7C3AED;
    
    /* Neutral Colors */
    --dark-color: #1F2937;
    --text-color: #374151;
    --text-light: #6B7280;
    --light-color: #F9FAFB;
    --white-color: #FFFFFF;
    --border-color: #E5E7EB;
    
    /* Background Colors */
    --bg-light: #F9FAFB;
    --bg-section: #F3F4F6;
    --bg-card: #FFFFFF;
    
    /* Status Colors */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --error-color: #EF4444;
    --info-color: #3B82F6;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Spacing - Mobile First */
    --section-padding: 3rem 1rem;
    --container-padding: 0 1rem;
    
    /* Font Sizes - Mobile First */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px; /* Adjusted for mobile */
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
    -webkit-tap-highlight-color: transparent;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

/* Mobile-first font sizes */
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5 { font-size: var(--text-base); }
h6 { font-size: var(--text-sm); }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

/* ===== LAYOUT & CONTAINER ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: var(--text-3xl);
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    font-size: var(--text-base);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.section-footer {
    text-align: center;
    margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: var(--text-base);
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    gap: 0.5rem;
    outline: none;
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--dark-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== HEADER & NAVIGATION ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 1rem;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1001;
}

/* Desktop Navigation */
.nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

.cart-icon-container {
    position: relative;
    cursor: pointer;
}

.cart-icon {
    font-size: var(--text-xl);
    transition: color var(--transition-fast);
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: var(--text-xs);
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile Menu Toggle */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 100%;
    height: 3px;
    background-color: var(--dark-color);
    border-radius: 10px;
    transition: 0.3s;
}

.hamburger.active span:first-child {
    transform: translateY(9px) rotate(45deg);
    background-color: var(--primary-color);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
    background-color: var(--primary-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for mobile */
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* Changed from fixed for mobile performance */
    color: var(--white-color);
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 70px; /* Header height */
}

.hero-content {
    max-width: 100%;
    text-align: center;
    margin: 0 auto;
    padding: 1rem;
}

.hero-title {
    font-size: var(--text-4xl);
    color: var(--white-color);
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--white-color);
    animation: bounce 2s infinite;
}

.hero-scroll-indicator span {
    font-size: var(--text-sm);
    opacity: 0.8;
}

.hero-scroll-indicator i {
    font-size: var(--text-xl);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(225, 29, 72, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
    }
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.product-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    align-items: center;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
}

.product-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.product-info {
    padding: 1.25rem;
}

.product-name {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem;
    font-size: var(--text-sm);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--border-color);
}

/* ===== CATEGORIES SECTION ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.category-card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    opacity: 0;
    transform: translateY(20px);
    border: 2px solid transparent;
}

.category-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.category-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.category-icon i {
    font-size: var(--text-2xl);
    color: var(--primary-color);
}

.category-name {
    font-size: var(--text-lg);
    margin-bottom: 0.5rem;
}

.category-desc {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 500;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    min-height: 36px;
}

.filter-btn:hover,
.filter-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.about-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    order: 2;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-normal);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    order: 1;
}

.about-text h3 {
    margin-top: 1.5rem;
    color: var(--primary-color);
}

.about-text h3:first-child {
    margin-top: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-number {
    display: block;
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    margin-bottom: 0.25rem;
    font-size: var(--text-base);
}

.author-info p {
    font-size: var(--text-sm);
    color: var(--text-light);
    margin: 0;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background-color: var(--bg-card);
    border: 2px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    min-height: 40px;
}

.slider-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white-color);
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background-color: var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.slider-dot.active {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.contact-form-container {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark-color);
    font-size: var(--text-sm);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    transition: border-color var(--transition-fast);
    background-color: var(--white-color);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: var(--error-color);
    font-size: var(--text-sm);
    margin-top: 0.25rem;
    display: none;
}

.form-success {
    background-color: var(--success-color);
    color: var(--white-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    display: none;
}

.contact-info {
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 45px;
    height: 45px;
    background-color: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: var(--text-lg);
    color: var(--primary-color);
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    font-size: var(--text-base);
}

.contact-details p {
    margin: 0;
    color: var(--text-light);
    font-size: var(--text-sm);
}

.social-links {
    margin-top: 2rem;
}

.social-links h4 {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: var(--bg-card);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== NEWSLETTER SECTION ===== */
.newsletter-section {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white-color);
    text-align: center;
    padding: 2rem 1rem;
}

.newsletter-content h2 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: var(--text-2xl);
}

.newsletter-content p {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    opacity: 0.9;
    font-size: var(--text-base);
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.newsletter-input-group input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Poppins', sans-serif;
    font-size: var(--text-base);
    min-height: 48px;
}

.newsletter-input-group input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.newsletter-success {
    background-color: var(--white-color);
    color: var(--success-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    display: none;
    margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: var(--white-color);
    padding: 2rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-logo .logo {
    color: var(--white-color);
    font-size: var(--text-2xl);
    margin-bottom: 0.5rem;
    display: block;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer-links h4,
.footer-payment h4 {
    color: var(--white-color);
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
    font-size: var(--text-sm);
}

.footer-links a:hover {
    color: var(--white-color);
}

.payment-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    flex-wrap: wrap;
}

.payment-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: var(--text-sm);
}

/* ===== CART PANEL ===== */
.cart-panel,
.checkout-panel,
.payment-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-card);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-panel.open,
.checkout-panel.open,
.payment-panel.open {
    transform: translateX(0);
}

.cart-header,
.checkout-header,
.payment-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bg-card);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
}

.cart-header h3,
.checkout-header h3,
.payment-header h3 {
    margin: 0;
    font-size: var(--text-xl);
}

.close-cart,
.close-checkout,
.close-payment {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    border-radius: var(--radius-full);
}

.close-cart:hover,
.close-checkout:hover,
.close-payment:hover {
    color: var(--error-color);
    background-color: var(--bg-light);
}

.cart-body,
.checkout-body,
.payment-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    -webkit-overflow-scrolling: touch;
}

.empty-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 1.5rem;
}

.empty-cart-inner {
    max-width: 300px;
}

.empty-cart-icon {
    font-size: 3rem;
    color: var(--border-color);
    margin-bottom: 1rem;
}

.empty-cart-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.empty-cart-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: var(--text-sm);
}

.cart-items {
    display: none;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
    min-width: 0; /* Prevent flex item overflow */
}

.cart-item-name {
    font-size: var(--text-base);
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cart-item-size,
.cart-item-color {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-full);
    background-color: var(--bg-light);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    min-width: 28px;
}

.quantity-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.quantity-display {
    min-width: 30px;
    text-align: center;
    font-weight: 500;
    font-size: var(--text-sm);
}

.remove-item {
    background: none;
    border: none;
    color: var(--error-color);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: color var(--transition-fast);
    padding: 0.25rem 0.5rem;
}

.remove-item:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.cart-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-card);
    display: none;
    flex-shrink: 0;
}

.cart-totals {
    margin-bottom: 1.25rem;
}

.cart-subtotal,
.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
}

.cart-total {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.checkout-btn,
.continue-btn {
    width: 100%;
    margin-bottom: 0.75rem;
}

/* ===== CHECKOUT PANEL ===== */
.order-items {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.order-items h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: var(--text-lg);
}

.order-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-image {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.order-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-details {
    flex: 1;
    min-width: 0;
}

.order-item-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.order-item-variants {
    font-size: var(--text-xs);
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.order-item-price-qty {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
}

.order-item-price {
    font-weight: 600;
    color: var(--primary-color);
}

.order-items-summary {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.items-count,
.items-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: var(--text-sm);
}

.items-total {
    font-weight: 600;
    color: var(--primary-color);
}

.address-form {
    margin-bottom: 1.5rem;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.address-type {
    margin-bottom: 1.25rem;
}

.address-type-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.address-type-btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
    text-align: center;
}

.address-type-btn:hover,
.address-type-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.order-summary {
    background-color: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

.order-summary h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: var(--text-lg);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: var(--text-sm);
}

.summary-item.total {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
    border-top: 2px solid var(--border-color);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.checkout-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.checkout-footer .btn {
    width: 100%;
}

.back-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== PAYMENT PANEL ===== */
.payment-methods {
    margin-bottom: 1.5rem;
}

.payment-methods h4 {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-option:hover,
.payment-option.active {
    border-color: var(--primary-color);
    background-color: rgba(98, 19, 172, 0.05);
}

.payment-icon {
    width: 40px;
    height: 40px;
    background-color: var(--white-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    color: var(--primary-color);
    flex-shrink: 0;
}

.payment-details h5 {
    margin: 0 0 0.25rem;
    font-size: var(--text-base);
}

.payment-details p {
    margin: 0;
    font-size: var(--text-xs);
    color: var(--text-light);
}

.payment-details-section {
    margin-bottom: 1.5rem;
}

.payment-method-details {
    display: none;
}

.payment-method-details.active {
    display: block;
}

.qr-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
}

.qr-header {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.qr-sub {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

.qr-box {
    width: 200px;
    height: 200px;
    background-color: var(--white-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 0 auto 1rem;
    box-shadow: var(--shadow-md);
}

.qr-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.receiver {
    margin-bottom: 0.25rem;
    font-size: var(--text-sm);
}

.upi-id {
    background-color: var(--white-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-family: monospace;
    font-size: var(--text-sm);
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    word-break: break-all;
}

.quick-pay {
    margin: 1rem 0;
}

#quickPayBtn {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.qr-amount {
    background-color: var(--white-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
    border: 2px solid var(--primary-light);
    display: flex;
    justify-content: space-between;
}

.cod-info {
    text-align: center;
    padding: 1.5rem;
}

.cod-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.cod-info h5 {
    margin-bottom: 0.5rem;
    font-size: var(--text-lg);
}

.cod-terms {
    text-align: left;
    margin: 1.25rem 0;
}

.cod-terms p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: var(--text-sm);
}

.cod-terms i {
    color: var(--success-color);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.order-summary-payment {
    background-color: var(--bg-light);
    padding: 1.25rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

.order-summary-payment h5 {
    margin-bottom: 1rem;
    font-size: var(--text-lg);
}

.order-summary-payment .summary-item {
    font-size: var(--text-sm);
}

.payment-footer {
    padding: 1.25rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
}

.payment-security {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--text-sm);
    color: var(--success-color);
}

.back-to-address {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 800px;
    max-height: 90vh;
    max-height: 90dvh;
    background-color: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: var(--text-xl);
}

.close-modal {
    background: none;
    border: none;
    font-size: var(--text-2xl);
    color: var(--text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
    border-radius: var(--radius-full);
}

.close-modal:hover {
    color: var(--error-color);
    background-color: var(--bg-light);
}

.modal-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.modal-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background-color: var(--bg-light);
    max-height: 300px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.modal-price {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary-color);
}

.modal-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: var(--text-base);
}

.modal-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.size-options h4,
.color-options h4,
.quantity-selector h4 {
    margin-bottom: 0.75rem;
    font-size: var(--text-base);
}

.size-buttons,
.color-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.size-btn {
    padding: 0.5rem 1rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    min-width: 50px;
    text-align: center;
}

.size-btn:hover,
.size-btn.selected {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.color-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 3px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.color-btn:hover,
.color-btn.selected {
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.quantity-selector {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-control .quantity-btn {
    width: 40px;
    height: 40px;
    font-size: var(--text-lg);
    min-width: 40px;
}

.quantity-input {
    width: 60px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: var(--text-lg);
    font-weight: 600;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: auto;
}

.modal-actions .btn {
    width: 100%;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    padding-bottom: env(safe-area-inset-bottom); /* Safe area for notches */
}

.mobile-nav-list {
    display: flex;
    list-style: none;
    width: 100%;
}

.mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0;
    color: var(--text-light);
    transition: all var(--transition-fast);
    position: relative;
    min-height: 56px; /* Minimum touch target */
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item i {
    font-size: var(--text-xl);
    margin-bottom: 0.25rem;
}

.mobile-nav-item span {
    font-size: var(--text-xs);
    font-weight: 500;
}

.mobile-cart-count {
    position: absolute;
    top: 0.25rem;
    right: calc(50% - 1.5rem);
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.6rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 5rem; /* Above mobile nav */
    right: 1rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 998;
    box-shadow: var(--shadow-md);
    font-size: var(--text-xl);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Notification */
.notification {
    position: fixed;
    bottom: 5rem; /* Above mobile nav */
    left: 1rem;
    right: 1rem;
    background-color: #10B981;
    color: white;
    padding: 15px 20px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2000;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    max-width: 100%;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.notification i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.notification p {
    margin: 0;
    flex: 1;
    min-width: 0;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* ===== PAYMENT PROCESSING OVERLAY ===== */
.payment-processing {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 1rem;
}

.processing-content {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: var(--radius-xl);
    text-align: center;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow-xl);
}

.processing-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.processing-content h4 {
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-size: var(--text-xl);
}

.processing-content p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.processing-note {
    color: var(--text-light);
    font-size: var(--text-sm);
    margin-top: 1rem;
}

/* ===== MOBILE NAVIGATION FIXES ===== */
/* Mobile Menu Styles */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-list {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--white-color);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        z-index: 999;
        height: calc(100vh - 70px);
        height: calc(100dvh - 70px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0;
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-list li:last-child {
        border-bottom: none;
        margin-top: auto;
        padding-top: 1rem;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        font-size: var(--text-lg);
        color: var(--dark-color);
        width: 100%;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .cart-icon-container {
        margin-top: 1rem;
        padding: 1rem 0;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
    :root {
        --section-padding: 4rem 2rem;
        --container-padding: 0 2rem;
    }
    
    h1 { font-size: var(--text-4xl); }
    h2 { font-size: var(--text-3xl); }
    h3 { font-size: var(--text-2xl); }
    h4 { font-size: var(--text-xl); }
    h5 { font-size: var(--text-lg); }
    
    .section-title {
        font-size: var(--text-4xl);
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: 1;
    }
    
    .about-text {
        order: 2;
    }
    
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .newsletter-input-group {
        flex-direction: row;
    }
    
    .modal-body {
        grid-template-columns: 1fr 1fr;
    }
    
    .modal-actions {
        flex-direction: row;
    }
    
    .form-group-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .payment-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .checkout-footer {
        flex-direction: row;
    }
    
    .payment-footer {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
    
    .back-to-top {
        bottom: 2rem;
        right: 2rem;
    }
    
    .notification {
        bottom: 2rem;
        left: auto;
        right: 2rem;
        max-width: 300px;
    }
    
    .notification-content {
        justify-content: flex-start;
        text-align: left;
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    :root {
        --section-padding: 5rem 0;
    }
    
    h1 { font-size: var(--text-5xl); }
    h2 { font-size: var(--text-4xl); }
    
    .hamburger {
        display: none;
    }
    
    .nav-list {
        position: static;
        flex-direction: row;
        padding: 0;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        height: auto;
        overflow: visible;
        align-items: center;
    }
    
    .nav-list li {
        width: auto;
        border-bottom: none;
    }
    
    .nav-list li:last-child {
        margin-top: 0;
        padding-top: 0;
    }
    
    .nav-link {
        padding: 0.5rem 0;
        font-size: var(--text-base);
        display: inline-block;
        width: auto;
    }
    
    .nav-link.active::after {
        display: block;
    }
    
    .cart-icon-container {
        margin-top: 0;
        padding: 0;
    }
    
    .mobile-bottom-nav {
        display: none;
    }
    
    .hero {
        background-attachment: fixed;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
    
    .category-card {
        padding: 2rem;
    }
    
    .category-icon {
        width: 80px;
        height: 80px;
    }
    
    .category-icon i {
        font-size: var(--text-3xl);
    }
    
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
    h1 { font-size: var(--text-6xl); }
    h2 { font-size: var(--text-5xl); }
    
    .hero-title {
        font-size: var(--text-6xl);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Small Mobile Styles (480px and down) */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem 1rem;
        --container-padding: 0 0.75rem;
    }
    
    h1 { font-size: var(--text-2xl); }
    h2 { font-size: var(--text-xl); }
    h3 { font-size: var(--text-lg); }
    
    .hero-title {
        font-size: var(--text-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-base);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .product-image {
        height: 300px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .product-actions .btn {
        width: 100%;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1.25rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-number {
        font-size: var(--text-xl);
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: var(--text-sm);
    }
    
    .cart-panel,
    .checkout-panel,
    .payment-panel {
        max-width: 100%;
    }
    
    .modal {
        width: 100%;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        border-radius: 0;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .qr-box {
        width: 150px;
        height: 150px;
    }
}

/* Very Small Mobile Styles (360px and down) */
@media (max-width: 360px) {
    .hero-title {
        font-size: var(--text-2xl);
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .contact-form-container,
    .contact-info {
        padding: 1rem;
    }
    
    .footer-content,
    .footer-bottom {
        padding: 1rem;
    }
    
    .notification {
        padding: 10px 15px;
    }
    
    .notification-content {
        gap: 5px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    :root {
        --dark-color: #F9FAFB;
        --text-color: #E5E7EB;
        --text-light: #9CA3AF;
        --light-color: #111827;
        --bg-light: #1F2937;
        --bg-section: #374151;
        --bg-card: #1F2937;
        --border-color: #374151;
        --white-color: #111827;
    }
    
    .hero {
        background-blend-mode: overlay;
    }
    
    .logo,
    .footer-logo .logo {
        color: var(--primary-light);
    }
    
    .filter-btn {
        background-color: var(--bg-section);
    }
    
    .modal-image,
    .qr-box,
    .cod-info,
    .payment-processing .processing-content,
    .cart-panel,
    .checkout-panel,
    .payment-panel,
    .modal {
        background-color: var(--bg-card);
    }
    
    .notification {
        background-color: var(--success-color);
        color: var(--dark-color);
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea,
    .newsletter-input-group input {
        background-color: var(--bg-light);
        color: var(--text-color);
        border-color: var(--border-color);
    }
    
    .testimonials-content::before {
        color: var(--primary-color);
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .nav-link:hover,
    .product-card:hover,
    .category-card:hover,
    .filter-btn:hover,
    .slider-btn:hover,
    .social-icon:hover,
    .payment-option:hover,
    .size-btn:hover,
    .color-btn:hover,
    .quantity-btn:hover,
    .remove-item:hover,
    .back-to-top:hover,
    .address-type-btn:hover {
        transform: none;
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
    
    .about-image:hover img {
        transform: none;
    }
    
    /* Increase touch targets for mobile */
    .btn,
    .nav-link,
    .filter-btn,
    .size-btn,
    .color-btn,
    .quantity-btn {
        min-height: 44px;
    }
    
    .mobile-nav-item {
        min-height: 60px;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .mobile-bottom-nav,
    .back-to-top,
    .hero-scroll-indicator,
    .notification,
    .modal-overlay,
    .payment-processing,
    .cart-panel,
    .checkout-panel,
    .payment-panel {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    .btn {
        border: 1px solid #000;
    }
}