@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
    --border-radius: 12px;
    --shadow-strong: 0 15px 30px rgba(0, 0, 0, 0.12);
    --dark: #333333;
    --primary: #667eea;
    --success: #28a745;
    --text-primary: #333333;
    --text-secondary: #666666;
    --surface-light: #f8f9fa;
    --border: #dee2e6;
    
    /* Optimized responsive variables for smaller content */
    --container-padding: clamp(0.75rem, 3vw, 1.5rem);
    --card-padding: clamp(1rem, 3vw, 2rem);
    --grid-gap: clamp(0.75rem, 2.5vw, 2rem);
    --border-radius-sm: clamp(6px, 1.5vw, 10px);
    --border-radius-md: clamp(10px, 2.5vw, 16px);
    --border-radius-lg: clamp(12px, 3vw, 20px);
    
    /* Header optimization */
    --header-height: clamp(60px, 12vw, 70px);
    --header-padding: clamp(0.5rem, 1.5vw, 0.75rem);
    --nav-gap: clamp(0.5rem, 1.5vw, 1rem);
    
    /* Content optimization */
    --hero-min-height: clamp(60vh, 70vh, 80vh);
    --section-padding: clamp(2.5rem, 6vw, 4rem);
    --card-margin: clamp(0.75rem, 2vw, 1.5rem);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #ffffff;
    font-family: "Montserrat", sans-serif;
    color: #333333;
    line-height: 1.5;
    overflow-x: hidden;
    font-size: clamp(13px, 2.2vw, 15px);
}

/* =================== OPTIMIZED HEADER STYLES =================== */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.3s ease;
    height: var(--header-height);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--header-padding) var(--container-padding);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: clamp(0.5px, 0.3vw, 1px);
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
}

.logo-image {
    width: clamp(28px, 6vw, 36px);
    height: clamp(28px, 6vw, 36px);
    object-fit: contain;
    display: block;
}

.logo-text { margin-left: 2px; }

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

.logo:hover {
    transform: translateY(-1px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--nav-gap);
    align-items: center;
}

.nav-link {
    color: #333333;
    text-decoration: none;
    font-weight: 400;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
    padding: clamp(0.3rem, 1.2vw, 0.4rem) clamp(0.6rem, 1.5vw, 0.8rem);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.nav-link i {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
}

#profileNavLink {
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    color: #667eea;
    font-weight: 500;
}

#profileNavLink:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.25);
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 70%;
}

.nav-link:hover,
.nav-link.active {
    color: #667eea;
    font-weight: 500;
    background-color: rgba(102, 126, 234, 0.08);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1.5vw, 0.8rem);
}

.cart-btn, .user-btn, .logout-btn, .shop-btn {
    position: relative;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--border-radius-sm);
    width: clamp(38px, 9vw, 42px);
    height: clamp(38px, 9vw, 42px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cart-btn:hover, .user-btn:hover, .logout-btn:hover, .shop-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
}

.logout-btn {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.logout-btn:hover {
    background: rgba(220, 53, 69, 0.15);
    box-shadow: 0 3px 12px rgba(220, 53, 69, 0.25);
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    font-size: clamp(0.6rem, 1.8vw, 0.7rem);
    border-radius: 50%;
    width: clamp(16px, 3.5vw, 18px);
    height: clamp(16px, 3.5vw, 18px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

.mobile-toggle {
    display: none;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--border-radius-sm);
    width: clamp(38px, 9vw, 42px);
    height: clamp(38px, 9vw, 42px);
    align-items: center;
    justify-content: center;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.shop-btn {
    display: none; /* hide shop button on desktop */
}

.mobile-toggle:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(102, 126, 234, 0.25);
}

/* =================== OPTIMIZED MAIN CONTENT =================== */
.main-content {
    margin-top: var(--header-height);
}

.page {
    display: none;
    min-height: calc(100vh - var(--header-height));
    animation: fadeInUp 0.5s ease;
}

.page.active {
    display: block !important;
}

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

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

/* =================== OPTIMIZED HERO SECTION =================== */
.hero {
    position: relative;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    overflow: hidden;
    margin: clamp(8px, 2.5vw, 12px);
    border-radius: var(--border-radius-lg);
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.95) 0%, 
        rgba(118, 75, 162, 0.95) 25%,
        rgba(240, 147, 251, 0.95) 50%,
        rgba(245, 87, 108, 0.95) 75%,
        rgba(102, 126, 234, 0.95) 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 1;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.floating-pill {
    position: absolute;
    width: clamp(30px, 6vw, 45px);
    height: clamp(30px, 6vw, 45px);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.floating-pill:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 8s;
}

.floating-pill:nth-child(2) {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
    animation-duration: 10s;
}

.floating-pill:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
    animation-duration: 7s;
}

.floating-pill:nth-child(4) {
    top: 40%;
    right: 30%;
    animation-delay: 6s;
    animation-duration: 9s;
}
/* 🌟 Enhanced Footer Styles */
.footer {
    background: transparent;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    border-top: 2px solid #e2e8f0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6366f1, transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

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

.footer-info {
    max-width: 320px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-logo:hover {
    color: #6366f1;
    transform: scale(1.02);
}

.footer-logo i {
    margin-right: 0.6rem;
    font-size: 2rem;    /* Bigger logo icon */
}

.footer-social h4 {
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-social h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.social-link {
    width: 55px;
    height: 55px;
    border-radius: 100%;
    background: #f3f4f6;
    color: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    position: relative;   /* Needed for ::before shimmer */
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.25);
}

.social-link:hover::before {
    left: 100%;
}

/* 🎨 Platform-specific hover colors */
.social-link[href*="wa.me"]:hover {
    background: #25d366;   /* WhatsApp Green */
    color: #fff;
}

.social-link[href*="instagram.com"]:hover {
    background: radial-gradient(circle at 30% 107%, 
                #fdf497 0%, #fdf497 5%, #fd5949 45%, 
                #d6249f 60%, #285AEB 90%);
    color: #fff;
}

.social-link[href*="mailto:"]:hover {
    background: #0072c6;   /* Outlook/Email Blue */
    color: #fff;
}

.social-link[href*="tel:"]:hover {
    background: #0f9d8a;   /* Phone Teal */
    color: #fff;
}


.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-links a {
    color: #475569;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    border-radius: 6px;
    position: relative;
}

.contact-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

.contact-links a:hover {
    color: #6366f1;
    padding-left: 1rem;
}

.contact-links a:hover::before {
    width: 20px;
}

.contact-links a i {
    font-size: 1.5rem;  /* Increases the icon size */
}

.footer-bottom {
    text-align: center;
    padding-top: 2.5rem;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.95rem;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-info {
        max-width: none;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Utility */
.justify-center {
    justify-content: center;
}

/* Mini Cart Sidebar */
.mini-cart {
    position: fixed;
    top: var(--header-height);
    right: 0;
    width: min(360px, 92vw);
    height: calc(100vh - var(--header-height));
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.08);
    box-shadow: -8px 0 25px rgba(0,0,0,0.08);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1100;
    display: flex;
    flex-direction: column;
}
.mini-cart.show { transform: translateX(0); }
.mini-cart-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 1rem; border-bottom: 1px solid rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
}
.mini-cart-title { font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.mini-cart-close { background: none; border: none; font-size: 1.4rem; cursor: pointer; opacity: 0.7; }
.mini-cart-items { flex: 1; overflow-y: auto; padding: 0.75rem; }
.mini-cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 0.6rem; align-items: center; padding: 0.5rem 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.mini-cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; background: #f0f0f0; }
.mini-cart-item-title { font-weight: 600; font-size: 0.9rem; }
.mini-cart-item-meta { color: #666; font-size: 0.8rem; }
.mini-cart-qty { display: flex; align-items: center; gap: 0.4rem; }
.mini-cart-qty button { width: 22px; height: 22px; border-radius: 50%; border: none; background: #667eea; color: #fff; cursor: pointer; }
.mini-cart-footer { padding: 0.75rem 1rem; border-top: 1px solid rgba(0,0,0,0.08); background: #fff; }
.mini-cart-total { display: flex; justify-content: space-between; font-weight: 700; margin-bottom: 0.6rem; }
.mini-cart-actions { display: flex; gap: 0.5rem; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        opacity: 0.6;
    }
    25% { 
        transform: translateY(-15px) rotate(90deg); 
        opacity: 0.9;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg); 
        opacity: 0.7;
    }
    75% { 
        transform: translateY(-15px) rotate(270deg); 
        opacity: 0.9;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: clamp(500px, 75vw, 700px);
    margin: 0 auto;
    color: #333;
    padding: clamp(2rem, 4vw, 3rem);
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius-lg);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}



.hero h1 {
    font-size: clamp(2rem, 6.5vw, 4rem);
    font-weight: 800;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-transform: uppercase;
    letter-spacing: clamp(0.5px, 0.3vw, 2px);
    line-height: 1.1;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textScroll 8s ease-in-out infinite;
}

.hero h1::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textScroll 8s ease-in-out infinite reverse;
    opacity: 0.3;
    filter: blur(1px);
}

/* Individual word scrolling effect */
.hero h1 span {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: wordScroll 4s ease-in-out infinite;
    transition: all 0.3s ease;
    cursor: default;
}

.hero h1 span:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    filter: brightness(1.2);
}

.hero h1 span:nth-child(2) {
    animation-delay: 0.5s;
}

.hero h1 span:nth-child(3) {
    animation-delay: 1s;
}

.hero h1 span:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes textScroll {
    0% { 
        background-position: 0% 50%; 
    }
    25% { 
        background-position: 100% 50%; 
    }
    50% { 
        background-position: 100% 100%; 
    }
    75% { 
        background-position: 50% 100%; 
    }
    100% { 
        background-position: 0% 50%; 
    }
}

@keyframes wordScroll {
    0% { 
        background-position: 0% 50%; 
        transform: translateY(0);
    }
    25% { 
        background-position: 100% 50%; 
        transform: translateY(-2px);
    }
    50% { 
        background-position: 100% 100%; 
        transform: translateY(0);
    }
    75% { 
        background-position: 50% 100%; 
        transform: translateY(2px);
    }
    100% { 
        background-position: 0% 50%; 
        transform: translateY(0);
    }
}

.hero p {
    font-size: clamp(0.9rem, 3.5vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
    word-spacing: clamp(0.5px, 0.3vw, 2px);
    font-weight: 500;
    line-height: 1.3;
    position: relative;
    background: linear-gradient(135deg, #555 0%, #777 50%, #999 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textScroll 6s ease-in-out infinite;
}

.hero-buttons {
    display: flex;
    gap: clamp(0.75rem, 3vw, 1.5rem);
    justify-content: center;
    flex-wrap: wrap;
}

/* =================== OPTIMIZED BUTTON STYLES =================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.4rem, 1.5vw, 0.6rem);
    padding: clamp(10px, 2.5vw, 12px) clamp(16px, 4vw, 24px);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: clamp(0.85rem, 2.2vw, 0.9rem);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: clamp(130px, 25vw, 160px);
    font-family: "Montserrat", sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    color: #333333;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.08);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
    border-color: rgba(102, 126, 234, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: black;
    border: 2px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.15);
}

/* =================== OPTIMIZED FEATURES SECTION =================== */
.features {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    position: relative;
    margin-top: clamp(15px, 4vw, 25px);
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23667eea" opacity="0.025"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: 100% 80px;
    background-repeat: no-repeat;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: clamp(0.6rem, 1.8vw, 0.8rem);
    letter-spacing: clamp(0.5px, 0.3vw, 1.5px);
    word-spacing: clamp(1px, 0.3vw, 2px);
    color: #333333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: clamp(50px, 12vw, 65px);
    height: clamp(2px, 0.8vw, 3px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: #666666;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 500;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(250px, 35vw, 320px), 1fr));
    gap: var(--grid-gap);
    margin-top: clamp(2.5rem, 6vw, 3.5rem);
}

.feature-card {
    padding: var(--card-padding);
    border-radius: var(--border-radius-md);
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.06),
        0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.08), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 45px rgba(102, 126, 234, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: clamp(2rem, 5vw, 3rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
    transition: all 0.3s ease;
    display: block;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(3deg);
}

.feature-card h3 {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #333333;
    margin-bottom: clamp(0.6rem, 1.8vw, 0.8rem);
    line-height: 1.3;
}

.feature-card p {
    font-weight: 400;
    color: #666666;
    line-height: 1.5;
    font-size: clamp(0.85rem, 2.2vw, 0.95rem);
}

/* =================== OPTIMIZED PRODUCTS SECTION =================== */
.products {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 25vw, 240px), 1fr));
    gap: clamp(0.8rem, 2vw, 1.2rem);
    margin-top: clamp(1.5rem, 4vw, 2rem);
}

.product-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border-radius: var(--border-radius-md);
    padding: clamp(0.6rem, 1.8vw, 1rem);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.06),
        0 1px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(102, 126, 234, 0.08);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: clamp(140px, 30vw, 180px);
}

.product-card:active {
    transform: translateY(-4px) scale(0.98);
    transition: all 0.1s ease;
}

.product-description {
    transition: all 0.3s ease;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.04) 0%, rgba(118, 75, 162, 0.04) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.product-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 
        0 20px 45px rgba(102, 126, 234, 0.12),
        0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

.product-image-container {
    position: relative;
    height: clamp(120px, 25vw, 150px);
    overflow: hidden;
    border-radius: var(--border-radius);
    background: linear-gradient(145deg, #f0f0f0 0%, #ffffff 100%);
    margin-bottom: clamp(0.6rem, 1.8vw, 0.8rem);
}

/* Sale badge */
.sale-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--danger-gradient);
    color: #fff;
    padding: 2px 6px;
    font-size: 0.7rem;
    border-radius: 6px;
    z-index: 3;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: clamp(8px, 2.5vw, 12px);
    transition: all 0.3s ease;
}

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

.product-info {
    text-align: center;
    position: relative;
    z-index: 2;
}

.product-category {
    color: #667eea;
    font-size: clamp(0.6rem, 1.5vw, 0.7rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: clamp(0.3px, 0.15vw, 0.6px);
    margin-bottom: clamp(0.2rem, 0.6vw, 0.3rem);
    background: rgba(102, 126, 234, 0.08);
    padding: clamp(0.1rem, 0.3vw, 0.15rem) clamp(0.4rem, 1vw, 0.5rem);
    border-radius: clamp(8px, 2vw, 12px);
    display: inline-block;
}

.product-title {
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    font-weight: 700;
    color: #333333;
    margin-bottom: clamp(0.3rem, 0.8vw, 0.4rem);
    line-height: 1.2;
}

.product-price {
    font-weight: 700;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
}

.product-price .price-old {
    color: #999;
    -webkit-text-fill-color: initial;
    background: none;
    text-decoration: line-through;
    margin-right: 6px;
}

.product-price .price-new {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.product-actions {
    display: flex;
    gap: clamp(0.4rem, 1.2vw, 0.6rem);
    justify-content: center;
    margin-top: clamp(0.5rem, 1.5vw, 0.8rem);
}

/* =================== ENHANCED CART STYLES =================== */
.cart-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    align-items: center;
    gap: clamp(0.25rem, 1vw, 0.4rem);
    padding: clamp(0.3rem, 1vw, 0.5rem) 0;
    background: transparent;
    border-radius: 0;
    margin-bottom: 0;
    transition: none;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    min-height: clamp(36px, 9vw, 52px);
}

.cart-item::before {
    content: none;
}

.cart-item:hover::before {
    transform: scaleY(1);
}

.cart-item:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: clamp(36px, 10vw, 52px);
    height: clamp(36px, 10vw, 52px);
    object-fit: cover;
    border-radius: var(--border-radius);
    background: #f0f0f0;
    padding: clamp(3px, 1vw, 5px);
}

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

.cart-item-info h3 {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    font-weight: 500;
    color: #333333;
    margin-bottom: clamp(0.15rem, 0.5vw, 0.25rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info p {
    color: #666666;
    margin-bottom: clamp(0.2rem, 0.8vw, 0.4rem);
    font-size: clamp(0.65rem, 1.6vw, 0.75rem);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: clamp(0.25rem, 0.8vw, 0.5rem);
    background: rgba(102, 126, 234, 0.08);
    padding: clamp(0.25rem, 0.8vw, 0.4rem) clamp(0.5rem, 1.6vw, 0.8rem);
    border-radius: clamp(10px, 2.5vw, 14px);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.quantity-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    width: clamp(20px, 4.5vw, 22px);
    height: clamp(20px, 4.5vw, 22px);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: clamp(0.65rem, 1.6vw, 0.75rem);
}

/* compact total and remove button */
.cart-line-total {
    font-weight: 700;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    background: var(--success-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Optional: show old vs new price in cart item info when discounted (reuse styling) */
.cart-item-info .price-old { text-decoration: line-through; color: #999; margin-right: 6px; }
.cart-item-info .price-new { color: #28a745; font-weight: 700; }

.cart-remove-btn {
    background: var(--danger-gradient);
    border: none;
    width: clamp(24px, 5vw, 26px);
    height: clamp(24px, 5vw, 26px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cart-remove-btn i { color: #fff; font-size: clamp(0.9rem, 2.2vw, 1rem); }

.cart-remove-btn:hover { transform: scale(1.05); }

.quantity-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* =================== ENHANCED FORM STYLES =================== */
.form-container {
    max-width: clamp(500px, 80vw, 600px);
    margin: clamp(3rem, 8vw, 4rem) auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    padding: clamp(2.5rem, 6vw, 3.5rem);
    border-radius: var(--border-radius-lg);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 5px 20px rgba(102, 126, 234, 0.1);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.form-group {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: clamp(0.6rem, 1.5vw, 0.75rem);
    font-weight: 600;
    color: #333333;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.auth-form .form-label {
    color: #333333;
}

.auth-form h3 {
    color: #333333;
}

.auth-form p {
    color: #333333;
}

.form-input {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.25rem) clamp(1.2rem, 3vw, 1.5rem);
    background: white;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #333333;
    transition: all 0.3s ease;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-input:focus {

    /* remove outer ring to avoid double border */
    box-shadow: 0 5px 14px rgba(102, 126, 234, 0.15);
}

.form-input::placeholder {
    color: #999999;
    font-weight: 400;
}

/* =================== ENHANCED SHOP PAGE =================== */
#shop {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 50%, #ffffff 100%);
    min-height: 100vh;
}

#shop .container > div {
    padding: clamp(4rem, 10vw, 6rem) 0 !important;
}

#shop .section-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

#shop .section-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* =================== ENHANCED PROFILE/LOGIN SECTIONS =================== */
#login, #signup, #checkout {
    background: linear-gradient(135deg, #f8faff 0%, #ffffff 50%, #f0f4ff 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

#login::before, #signup::before, #checkout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="%23667eea" opacity="0.1"/><circle cx="80" cy="40" r="3" fill="%23764ba2" opacity="0.1"/><circle cx="40" cy="80" r="2" fill="%23f093fb" opacity="0.1"/></svg>');
    background-size: clamp(150px, 30vw, 200px) clamp(150px, 30vw, 200px);
    animation: backgroundFloat 20s linear infinite;
}

@keyframes backgroundFloat {
    0% { background-position: 0 0; }
    100% { background-position: 200px 200px; }
}

#login .form-container, #signup .form-container, #checkout .form-container {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.1),
        0 10px 30px rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(102, 126, 234, 0.1);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
}

/* =================== ENHANCED CART PAGE =================== */
#cart {
    background: linear-gradient(180deg, #ffffff 0%, #f8faff 100%);
    min-height: 100vh;
}

.cart-summary {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    border-radius: var(--border-radius-sm) !important;
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.06),
        0 4px 12px rgba(102, 126, 234, 0.1) !important;
    position: relative;
    overflow: hidden;
    padding: clamp(0.45rem, 1.5vw, 0.7rem) !important;
    margin-top: clamp(0.5rem, 1.5vw, 0.8rem) !important;
}

.cart-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.cart-summary h3 {
    color: #333333 !important;
    font-weight: 700 !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: clamp(0.95rem, 2.2vw, 1.1rem) !important;
    margin-bottom: clamp(0.5rem, 2vw, 0.8rem) !important;
}

/* Cart section title styling */
#cart .section-title {
    font-size: clamp(1.2rem, 3.5vw, 1.4rem);
    margin-bottom: clamp(0.8rem, 2vw, 1rem);
}

/* =================== MOBILE TOGGLE BUTTON =================== */
.mobile-toggle {
    display: none;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: var(--border-radius-sm);
    width: clamp(45px, 10vw, 50px);
    height: clamp(45px, 10vw, 50px);
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}


/* =================== ENHANCED ANIMATIONS =================== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.feature-card:nth-child(odd) {
    animation: slideInFromLeft 0.8s ease forwards;
}

.feature-card:nth-child(even) {
    animation: slideInFromRight 0.8s ease forwards;
}

.product-card {
    animation: slideInFromBottom 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }

/* =================== ENHANCED SCROLLBAR =================== */
::-webkit-scrollbar {
    width: clamp(6px, 1.5vw, 8px);
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

/* =================== ENHANCED RESPONSIVE DESIGN =================== */
@media (max-width: 1200px) {
    .container {
        max-width: 95%;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .hero {
        min-height: 75vh;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.show {
        display: flex;
    }
    
    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
    
    @media (max-width: 768px) {
        .nav-menu {
            display: none; /* hide by default */
            flex-direction: column;
            background: #fff;
            position: absolute;
            top: 70px; /* below header */
            right: 0;
            width: 200px;
            padding: 1rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
    
        .nav-menu.active {
            display: flex; /* show when toggled */
        }
    
        .mobile-toggle {
            display: block; /* show hamburger on mobile */
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }
        
        .shop-btn {
            display: flex; /* show shop button on mobile */
        }
    }
    .hero {
        min-height: 70vh;
        margin: 5px;
        border-radius: 15px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        text-align: center;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .product-card {
        min-height: clamp(120px, 25vw, 150px);
        padding: clamp(0.5rem, 1.5vw, 0.8rem);
    }
    
    .product-image-container {
        height: clamp(80px, 20vw, 100px);
        margin-bottom: clamp(0.4rem, 1.2vw, 0.6rem);
    }
    
    .product-title {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        margin-bottom: clamp(0.2rem, 0.6vw, 0.3rem);
    }
    
    .product-price {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
    }
    
    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: clamp(0.4rem, 1vw, 0.6rem);
        min-height: clamp(40px, 10vw, 60px);
    }
    
    .cart-item-image {
        width: 65px;
        height: 65px;
    }
    
    .profile-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 1rem;
        --card-padding: 1.5rem;
        --grid-gap: 1rem;
    }
    
    .hero {
        margin: 3px;
        border-radius: 12px;
        min-height: 60vh;
    }
    
    .features-grid,
    .products-grid {
        gap: 1rem;
    }
    
    .feature-card,
    .product-card {
        border-radius: 15px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .product-card {
        min-height: clamp(100px, 22vw, 130px);
        padding: clamp(0.4rem, 1.2vw, 0.6rem);
    }
    
    .product-image-container {
        height: clamp(70px, 18vw, 90px);
        margin-bottom: clamp(0.3rem, 1vw, 0.5rem);
    }
    
    .product-title {
        font-size: clamp(0.65rem, 1.6vw, 0.75rem);
        margin-bottom: clamp(0.15rem, 0.5vw, 0.25rem);
    }
    
    .product-price {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    }
    
    .form-container {
        border-radius: 15px;
        margin: 2rem auto;
    }
    
    .cart-item {
        border-radius: 15px;
        padding: clamp(0.3rem, 0.8vw, 0.5rem);
        min-height: clamp(35px, 8vw, 50px);
    }
    
    .cart-item-image {
        width: 55px;
        height: 55px;
    }
    
    .cart-item-info h3 {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        margin-bottom: clamp(0.15rem, 0.5vw, 0.25rem);
    }
    
    .cart-item-info p {
        font-size: clamp(0.6rem, 1.5vw, 0.7rem);
        margin-bottom: clamp(0.2rem, 0.8vw, 0.4rem);
    }
    
    .floating-pill {
        width: 30px;
        height: 30px;
    }
    
    .profile-card {
        border-radius: 15px;
    }
}

@media (max-width: 360px) {
    :root {
        --container-padding: 0.75rem;
        --card-padding: 1rem;
        --grid-gap: 0.75rem;
    }
    
    .nav-container {
        padding: 0.75rem 1rem;
        display: flex;
    justify-content: space-between;
    align-items: center;
    }
    
    .hero {
        margin: 2px;
        border-radius: 10px;
    }
    
    .btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* =================== ENHANCED GRID LAYOUTS =================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(200px, 30vw, 250px), 1fr));
    gap: var(--grid-gap);
    margin-top: clamp(2rem, 6vw, 3rem);
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8faff 100%);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--card-padding);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(300px, 45vw, 400px), 1fr));
    gap: var(--grid-gap);
    margin-top: clamp(2rem, 6vw, 3rem);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(280px, 40vw, 300px), 1fr));
    gap: var(--grid-gap);
    margin-top: clamp(2rem, 6vw, 3rem);
}

.about-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--card-padding);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.contact-info {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--card-padding);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.contact-info h3 {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    color: #333333;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    padding: clamp(0.75rem, 2vw, 1rem);
    background: rgba(102, 126, 234, 0.05);
    border-radius: clamp(8px, 2vw, 10px);
}

.contact-item i {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    color: #667eea;
}

.contact-form {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-md);
    padding: var(--card-padding);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* =================== UTILITY CLASSES =================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.w-full { width: 100%; }

/* =================== ENHANCED PAGE CONTENT STYLES =================== */
.shop-content, .about-content, .contact-content {
    padding: clamp(3rem, 8vw, 4rem) 0;
}

.cart-summary-title {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    color: #333333;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
}

.cart-summary-value {
    font-weight: 600;
    color: #333333;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.cart-summary-total {
    display: flex;
    justify-content: space-between;
    padding: clamp(0.75rem, 2vw, 1rem) 0;
    font-size: clamp(1.1rem, 3vw, 1.25rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    border-top: 2px solid rgba(102, 126, 234, 0.2);
    padding-top: clamp(0.75rem, 2vw, 1rem);
}

.cart-total-amount {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* =================== AUTH FORM ENHANCEMENTS =================== */
.auth-content {
    padding: clamp(3rem, 8vw, 4rem) 0;
    text-align: center;
}

.auth-form {
    max-width: clamp(400px, 80vw, 500px);
    margin: clamp(2rem, 6vw, 3rem) auto;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: clamp(2rem, 6vw, 3rem);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: #333333;
}

#signupForm {
    background: white;
    color: #333333;
    display: none;
}

#signupForm.show {
    display: block;
}

.auth-title {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 600;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    color: #333333;
}

.auth-form .btn-secondary {
    margin-top: clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1.2rem, 3vw, 1.5rem);
    transition: all 0.3s ease;
}

.auth-form .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.auth-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(6px, 1.5vw, 8px);
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    display: inline-block;
    margin-top: clamp(0.4rem, 1vw, 0.5rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.auth-link:hover {
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* =================== CHECKOUT FORM ENHANCEMENTS =================== */
.checkout-form {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    border-radius: var(--border-radius-md);
    margin-top: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.checkout-title {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    color: #333333;
    text-align: center;
}

.checkout-buttons {
    display: flex;
    gap: clamp(0.5rem, 1.5vw, 0.8rem);
    justify-content: space-between;
    margin-top: clamp(1rem, 3vw, 1.5rem);
}

.checkout-buttons .btn {
    flex: 1;
}
/* =================== WELCOME POPUP SYSTEM =================== */
.welcome-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.5s ease;
    padding: clamp(1rem, 4vw, 2rem);
}

.welcome-popup.show {
    display: flex;
}

.welcome-content {
    background: white;
    border-radius: clamp(15px, 4vw, 25px);
    max-width: clamp(400px, 85vw, 500px);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideInUp 0.6s ease;
    position: relative;
}

.welcome-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(1.5rem, 4vw, 2rem) clamp(1.5rem, 4vw, 2rem) clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(15px, 4vw, 25px) clamp(15px, 4vw, 25px) 0 0;
    position: relative;
}

.welcome-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 700;
    text-align: center;
}

.welcome-close {
    position: absolute;
    top: clamp(0.75rem, 2vw, 1rem);
    right: clamp(0.75rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: clamp(35px, 8vw, 40px);
    height: clamp(35px, 8vw, 40px);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.welcome-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.welcome-body {
    padding: clamp(1.5rem, 4vw, 2rem);
    text-align: center;
}

.welcome-icon {
    font-size: clamp(3rem, 8vw, 4rem);
    color: #667eea;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    animation: pulse 2s ease-in-out infinite;
}

.welcome-body h3 {
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    font-weight: 600;
    color: #333333;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.welcome-body p {
    color: #666666;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    line-height: 1.6;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.welcome-features {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(1.5rem, 4vw, 2rem) 0;
    text-align: left;
}

.welcome-features li {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1.5vw, 0.75rem);
    padding: clamp(0.6rem, 1.5vw, 0.75rem) 0;
    color: #333333;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.welcome-features li i {
    color: #11998e;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: bold;
}

.welcome-actions {
    display: flex;
    gap: clamp(0.75rem, 2vw, 1rem);
    justify-content: center;
    flex-wrap: wrap;
}

.welcome-actions .btn {
    min-width: clamp(120px, 25vw, 150px);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.2rem);
}

.developer-btn {
  display: inline-block;
  padding: 10px 18px;
  background: #2E8B57; /* Green theme */
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.developer-btn:hover {
  background: #246b45; /* Darker green on hover */
}

/* =================== PROFILE PAGE SYSTEM =================== */
.profile-content {
    padding: clamp(3rem, 8vw, 4rem) 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* half / half */
    gap: clamp(1.5rem, 4vw, 2rem);
    margin-top: clamp(2rem, 6vw, 3rem);
}

.profile-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: clamp(15px, 4vw, 20px);
    padding: clamp(2rem, 5vw, 2.5rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 3vw, 1.5rem);
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
    padding-bottom: clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: clamp(60px, 15vw, 80px);
    height: clamp(60px, 15vw, 80px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.profile-info h3 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    font-weight: 600;
    color: #333333;
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
}

.profile-info p {
    color: #666666;
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
    font-size: clamp(1rem, 2.5vw, 1.1rem);
}

.profile-role {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    border-radius: clamp(15px, 4vw, 20px);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    font-weight: 600;
}

.profile-details {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 4vw, 2rem);
}

.profile-section h4 {
    font-size: clamp(1.2rem, 3vw, 1.3rem);
    font-weight: 600;
    color: #333333;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
}

.profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.6rem, 1.5vw, 0.75rem) 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-item:last-child {
    border-bottom: none;
}

.profile-label {
    color: #666666;
    font-weight: 500;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.profile-status {
    padding: clamp(0.2rem, 0.5vw, 0.25rem) clamp(0.6rem, 1.5vw, 0.75rem);
    border-radius: clamp(12px, 3vw, 15px);
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    font-weight: 600;
}

.profile-status.active {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.profile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.profile-actions .btn {
    padding: clamp(0.6rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    text-align: center;
}

.profile-actions .btn:last-child {
    grid-column: 1 / -1;
    margin-top: clamp(0.4rem, 1vw, 0.5rem);
}

.profile-activity {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 2vw, 1rem);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 2vw, 1rem);
    padding: clamp(0.75rem, 2vw, 1rem);
    background: rgba(102, 126, 234, 0.05);
    border-radius: clamp(12px, 3vw, 15px);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.activity-item i {
    color: #667eea;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.activity-content {
    display: flex;
    flex-direction: column;
}

.activity-text {
    font-weight: 500;
    color: #333333;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.activity-time {
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    color: #666666;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 3vw, 1.5rem);
}

.stat-item {
    text-align: center;
    padding: clamp(1rem, 3vw, 1.5rem);
    background: rgba(102, 126, 234, 0.05);
    border-radius: clamp(12px, 3vw, 15px);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.stat-number {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
}

.stat-label {
    color: #666666;
    font-weight: 500;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* =================== ORDER TRACKING SYSTEM =================== */
.order-tracking-overview {
    margin-top: clamp(0.75rem, 2vw, 1rem);
}

.order-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    gap: 1rem;
}

.order-tracking-header h3 {
    margin: 0;
    font-size: clamp(1.2rem, 3vw, 1.3rem);
}

.refresh-btn {
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    background: var(--primary);
    color: white;
    border: none;
    border-radius: clamp(6px, 1.5vw, 8px);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 0.5rem);
    white-space: nowrap;
}

.refresh-btn:hover {
    background: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn:hover i {
    transform: rotate(180deg);
}

.order-stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(100px, 20vw, 120px), 1fr));
    gap: clamp(0.5rem, 1.5vw, 0.8rem);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.order-stat-item {
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1.2vw, 0.8rem);
    padding: clamp(0.5rem, 1.5vw, 0.8rem);
    border-radius: clamp(8px, 2vw, 10px);
    border: 1px solid;
    transition: all 0.3s ease;
}

.order-stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.order-stat-item.pending {
    background: #fff3cd;
    border-color: #ffeaa7;
}

.order-stat-item.received {
    background: #d1edff;
    border-color: #b3d9ff;
}

.order-stat-item.delivered {
    background: #d4edda;
    border-color: #c3e6cb;
}

.order-stat-item.total {
    background: #e2e3e5;
    border-color: #d6d8db;
}

.stat-icon {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    opacity: 0.8;
}

.stat-content .stat-number {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    font-weight: 700;
    margin-bottom: clamp(0.15rem, 0.4vw, 0.2rem);
}

.stat-content .stat-label {
    font-size: clamp(0.7rem, 1.8vw, 0.8rem);
    opacity: 0.8;
}

.order-list-section h4 {
    color: var(--text-secondary);
    margin-bottom: clamp(0.6rem, 1.5vw, 0.8rem);
    padding-bottom: clamp(0.3rem, 0.8vw, 0.4rem);
    border-bottom: 2px solid var(--border);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.order-list {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 1.5vw, 0.8rem);
}

.order-item {
    border: 1px solid var(--border);
    border-radius: clamp(8px, 2vw, 10px);
    padding: clamp(0.5rem, 1.5vw, 0.8rem);
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.order-item:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.order-item.pending {
    border-left: 4px solid #ffc107;
}

.order-item.received {
    border-left: 4px solid #17a2b8;
}

.order-item.delivered {
    border-left: 4px solid #28a745;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    gap: 1rem;
}

.order-id {
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: clamp(0.4rem, 1vw, 0.5rem);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.order-status {
    padding: clamp(0.2rem, 0.5vw, 0.25rem) clamp(0.6rem, 1.5vw, 0.75rem);
    border-radius: clamp(12px, 3vw, 15px);
    font-size: clamp(0.75rem, 2vw, 0.8rem);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: clamp(0.2rem, 0.5vw, 0.25rem);
    white-space: nowrap;
}

.order-status.pending {
    background: #fff3cd;
    color: #856404;
}

.order-status.received {
    background: #d1edff;
    color: #0c5460;
}

.order-status.delivered {
    background: #d4edda;
    color: #155724;
}

.order-details {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: center;
}

.order-info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.4rem, 1vw, 0.5rem);
}

.order-actions {
    display: flex;
    gap: clamp(0.4rem, 1vw, 0.5rem);
    flex-wrap: wrap;
}

.btn-sm {
    padding: clamp(0.4rem, 1vw, 0.5rem) clamp(0.75rem, 2vw, 1rem);
    font-size: clamp(0.75rem, 2vw, 0.8rem);
}

.total-amount {
    color: var(--success);
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.no-orders-message {
    text-align: center;
    padding: clamp(1.5rem, 4vw, 2rem);
    color: var(--text-secondary);
}

.no-orders-message i {
    font-size: clamp(2.5rem, 6vw, 3rem);
    margin-bottom: clamp(0.75rem, 2vw, 1rem);
    opacity: 0.5;
}

.no-orders-message h4 {
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
    color: var(--text-secondary);
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
}

/* =================== MODAL SYSTEM =================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: clamp(1rem, 4vw, 2rem);
}

.modal-content {
    background: white;
    border-radius: clamp(12px, 3vw, 15px);
    padding: clamp(1.5rem, 4vw, 2rem);
    max-width: clamp(500px, 85vw, 600px);
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.order-items-modal h3,
.order-details-modal h3 {
    color: var(--primary);
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
    text-align: center;
    font-size: clamp(1.3rem, 3.5vw, 1.5rem);
}

.order-items-list {
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.order-item-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.75rem, 2vw, 1rem);
    border: 1px solid var(--border);
    border-radius: clamp(6px, 1.5vw, 8px);
    margin-bottom: clamp(0.4rem, 1vw, 0.5rem);
    background: #f8f9fa;
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: clamp(0.2rem, 0.5vw, 0.25rem);
}

.item-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.item-category {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: var(--text-secondary);
}

.item-price {
    color: var(--success);
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.item-quantity {
    font-weight: 600;
    color: var(--primary);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

.order-summary {
    background: var(--surface-light);
    padding: clamp(0.5rem, 1.5vw, 0.8rem);
    border-radius: clamp(6px, 1.5vw, 8px);
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
    text-align: center;
}

.total-items,
.total-amount {
    font-weight: 600;
    margin-bottom: clamp(0.3rem, 0.8vw, 0.4rem);
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.total-amount {
    color: var(--success);
    font-size: clamp(0.9rem, 2.2vw, 1rem);
}

.order-details-info {
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: clamp(0.4rem, 1.2vw, 0.6rem) 0;
    border-bottom: 1px solid var(--border);
}

.detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.detail-value {
    color: var(--text-primary);
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.status-pending {
    color: #856404;
    font-weight: 600;
}

.status-received {
    color: #0c5460;
    font-weight: 600;
}

.status-delivered {
    color: #155724;
    font-weight: 600;
}

.order-items-preview h4 {
    margin-bottom: clamp(0.6rem, 1.5vw, 0.8rem);
    color: var(--text-secondary);
    font-size: clamp(1rem, 2.2vw, 1.1rem);
}

.items-preview {
    margin-bottom: clamp(0.8rem, 2.5vw, 1.2rem);
}

.item-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.4rem, 1.2vw, 0.6rem);
    border: 1px solid var(--border);
    border-radius: clamp(6px, 1.5vw, 8px);
    margin-bottom: clamp(0.3rem, 0.8vw, 0.4rem);
    background: #f8f9fa;
}

.item-preview .item-name {
    flex: 1;
    font-weight: 500;
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

.item-preview .item-quantity {
    margin: 0 clamp(0.5rem, 1.5vw, 0.8rem);
    color: var(--text-secondary);
    font-size: clamp(0.75rem, 1.8vw, 0.8rem);
}

.item-preview .item-price {
    font-weight: 600;
    color: var(--success);
    font-size: clamp(0.8rem, 2.2vw, 0.9rem);
}

/* =================== LOADING AND ANIMATIONS =================== */
.loading {
    display: inline-block;
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
    border: 3px solid rgba(102, 126, 234, 0.3);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

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

/* =================== PAGE VISIBILITY SYSTEM =================== */
.page {
    display: none;
    min-height: calc(100vh - var(--header-height));
    animation: fadeIn 0.5s ease;
}

.page.active {
    display: block !important;
}

#home, #shop, #cart, #login, #profile {
    display: none;
}

#home.active, #shop.active, #cart.active, #login.active, #profile.active {
    display: block;
}

#login.page:not(.active) {
    display: none !important;
}

#login.page.active {
    display: block !important;
}

#profile.page:not(.active) {
    display: none !important;
}

#profile.page.active {
    display: block !important;
}

/* =================== RESPONSIVE BREAKPOINTS =================== */
@media (max-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: clamp(1rem, 3vw, 1.5rem);
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: clamp(0.75rem, 2vw, 1rem);
    }
    
    .profile-actions {
        grid-template-columns: 1fr;
    }
    
    .profile-card {
        padding: clamp(1.5rem, 4vw, 2rem);
    }
    
    .order-tracking-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .refresh-btn {
        align-self: center;
        justify-self: center;
    }
    
    .order-stats-summary {
        grid-template-columns: 1fr 1fr;
    }
    
    .order-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .order-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .order-actions {
        justify-content: center;
    }
    
    .welcome-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .welcome-actions .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .profile-content {
        padding: clamp(2rem, 6vw, 3rem) 0;
    }
    
    .profile-card {
        padding: clamp(1rem, 3vw, 1.5rem);
        border-radius: clamp(12px, 3vw, 15px);
    }
    
    .profile-avatar {
        width: clamp(50px, 12vw, 60px);
        height: clamp(50px, 12vw, 60px);
        font-size: clamp(1.2rem, 3vw, 1.5rem);
    }
    
    .profile-info h3 {
        font-size: clamp(1.3rem, 3.5vw, 1.5rem);
    }
    
    .modal-content {
        padding: clamp(1rem, 3vw, 1.5rem);
        border-radius: clamp(10px, 2.5vw, 12px);
    }
    
    .welcome-content {
        border-radius: clamp(12px, 3vw, 15px);
    }
    
    .welcome-header {
        border-radius: clamp(12px, 3vw, 15px) clamp(12px, 3vw, 15px) 0 0;
    }
}

/* =================== NOTIFICATION SYSTEM =================== */
.notification {
    position: fixed;
    top: clamp(90px, 20vw, 100px);
    right: clamp(1rem, 4vw, 2rem);
    background: white;
    border-radius: clamp(10px, 2.5vw, 15px);
    padding: clamp(1rem, 3vw, 1.5rem);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    max-width: clamp(300px, 80vw, 400px);
    z-index: 1001;
    animation: slideInRight 0.5s ease;
    transition: all 0.3s ease;
}

.notification.success {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #d4edda 0%, #ffffff 100%);
}

.notification.error {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #f8d7da 0%, #ffffff 100%);
}

.notification.warning {
    border-left-color: #ffc107;
    background: linear-gradient(135deg, #fff3cd 0%, #ffffff 100%);
}

.notification.info {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #d1ecf1 0%, #ffffff 100%);
}

.notification.hide {
    animation: slideOutRight 0.5s ease forwards;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(0.5rem, 1.5vw, 0.75rem);
}

.notification-title {
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #333333;
    margin: 0;
}

.notification-close {
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    padding: 0;
    width: clamp(20px, 5vw, 24px);
    height: clamp(20px, 5vw, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
}

.notification-message {
    color: #555555;
    line-height: 1.5;
    font-size: clamp(0.85rem, 2vw, 0.9rem);
    margin: 0;
}

/* =================== ENHANCED UTILITIES =================== */
.glass-effect {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-alt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =================== FOCUS STATES =================== */
button:focus, 
.btn:focus, 
.nav-link:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}
/* Inputs use border + shadow for focus ring (avoid double border) */
.form-input:focus { outline: none; }

/* =================== HOVER EFFECTS =================== */
.nav-link, .btn, .product-card, .feature-card, .cart-item, .stat-card {
    will-change: transform;
}

/* =================== DARK MODE SUPPORT =================== */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a2e;
        --bg-secondary: #16213e;
        --text-primary: #ffffff;
        --text-secondary: #b8c5d6;
        --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
        --warning-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
        --danger-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
        --primary: #667eea;
        --success: #28a745;
        --surface-light: #2a2a3e;
        --border: #404040;
    }
    
    /* Uncomment below to enable dark mode */
    /*
    body {
        background-color: var(--bg-primary);
        color: var(--text-primary);
    }
    
    .feature-card,
    .product-card,
    .cart-item,
    .stat-card,
    .form-container,
    .profile-card,
    .modal-content,
    .welcome-content {
        background: var(--bg-secondary);
        color: var(--text-primary);
        border-color: var(--border);
    }
    
    .welcome-body {
        background: var(--bg-secondary);
    }
    
    .welcome-body h3,
    .welcome-body p,
    .welcome-features li {
        color: var(--text-primary);
    }
    */
}

/* =================== PRINT STYLES =================== */
@media print {
    .header,
    .nav-actions,
    .floating-elements,
    .hero-buttons,
    .welcome-popup,
    .notification,
    .modal-overlay {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: #333333 !important;
    }
    
    .page {
        display: block !important;
    }
    
    .main-content {
        margin-top: 0;
    }
    
    .profile-card,
    .order-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

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

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* =================== HIGH CONTRAST MODE =================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --success: #008000;
        --warning: #ff8c00;
        --danger: #ff0000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .profile-card, 
    .product-card, 
    .feature-card,
    .order-item,
    .modal-content {
        border: 2px solid #000000;
    }
}

/* =================== LOADING STATES =================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: clamp(50px, 12vw, 60px);
    height: clamp(50px, 12vw, 60px);
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
}

.loading-text {
    margin-top: clamp(1rem, 3vw, 1.5rem);
    color: #333333;
    font-weight: 600;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    text-align: center;
}

/* =================== FINAL MOBILE OPTIMIZATIONS =================== */
@media (max-width: 320px) {
    .welcome-close {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .profile-avatar {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .order-stats-summary {
        grid-template-columns: 1fr;
    }
    
    .order-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .welcome-actions .btn {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
    }
    
    /* Ultra-compact hero section */
    .hero {
        padding: clamp(1.5rem, 5vw, 2rem) 0;
    }
    
    .hero-content h1 {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
        margin-bottom: clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .hero-content p {
        font-size: clamp(0.8rem, 2.2vw, 0.9rem);
        margin-bottom: clamp(0.8rem, 2.5vw, 1rem);
        line-height: 1.3;
    }
    
    .hero-buttons {
        gap: clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .hero-buttons .btn {
        padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(0.8rem, 2.5vw, 1rem);
        font-size: clamp(0.75rem, 2.2vw, 0.8rem);
        min-width: clamp(100px, 30vw, 120px);
    }
    
    /* Ultra-compact features */
    .features {
        padding: clamp(2rem, 5vw, 2.5rem) 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 1.8rem);
        margin-bottom: clamp(0.8rem, 2.5vw, 1rem);
    }
    
    .features-grid {
        gap: clamp(0.8rem, 2.5vw, 1rem);
        margin-top: clamp(1rem, 3vw, 1.5rem);
    }
    
    .feature-card {
        padding: clamp(0.8rem, 2.5vw, 1rem);
        min-height: clamp(100px, 25vw, 120px);
    }
    
    .feature-card h3 {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        margin-bottom: clamp(0.4rem, 1.2vw, 0.6rem);
    }
    
    .feature-card p {
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
        line-height: 1.3;
    }
    
    /* Ultra-compact products */
    .products {
        padding: clamp(2rem, 5vw, 2.5rem) 0;
    }
    
    .products-grid {
        gap: clamp(0.8rem, 2.5vw, 1rem);
        margin-top: clamp(1rem, 3vw, 1.5rem);
    }
    
    .product-card {
        padding: clamp(0.8rem, 2.5vw, 1rem);
        min-height: clamp(180px, 45vw, 220px);
    }
    
    .product-card h3 {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        margin-bottom: clamp(0.4rem, 1.2vw, 0.6rem);
    }
    
    .product-card .price {
        font-size: clamp(1rem, 2.8vw, 1.1rem);
        padding: clamp(0.3rem, 1vw, 0.5rem) clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .product-card .description {
        font-size: clamp(0.75rem, 2.2vw, 0.85rem);
        line-height: 1.3;
        margin-top: clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .product-actions {
        gap: clamp(0.4rem, 1.2vw, 0.6rem);
        margin-top: clamp(0.6rem, 2vw, 0.8rem);
    }
    
    .product-actions .btn {
        padding: clamp(0.5rem, 1.5vw, 0.7rem) clamp(0.8rem, 2.5vw, 1rem);
        font-size: clamp(0.75rem, 2.2vw, 0.8rem);
        min-width: clamp(80px, 25vw, 100px);
    }
}

/* =================== LANDSCAPE ORIENTATION OPTIMIZATIONS =================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: clamp(1.5rem, 4vw, 2.5rem) 0;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: clamp(0.5rem, 1.5vw, 0.8rem);
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: clamp(1rem, 2.5vw, 1.2rem);
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: clamp(0.8rem, 2vw, 1rem);
    }
    
    .features,
    .products {
        padding: clamp(2rem, 4vw, 3rem) 0;
    }
    
    .section-title {
        font-size: clamp(1.5rem, 4vw, 2rem);
        margin-bottom: clamp(0.8rem, 2vw, 1.2rem);
    }
    
    .features-grid,
    .products-grid {
        gap: clamp(1rem, 2.5vw, 1.5rem);
        margin-top: clamp(1rem, 2.5vw, 1.5rem);
    }
}

/* =================== HIGH DPI DISPLAY OPTIMIZATIONS =================== */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn,
    .product-card,
    .feature-card {
        border-width: 0.5px;
    }
    
    .hero::before {
        background-size: 200% 200px;
    }
}

/* =================== PRINT STYLES =================== */
@media print {
    .hero-buttons,
    .product-actions {
        display: none !important;
    }
    
    .hero,
    .features,
    .products {
        padding: 1rem 0;
    }
    
    .feature-card,
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    .section-title {
        color: #000 !important;
        text-shadow: none !important;
    }
}

/* =================== REDUCED MOTION PREFERENCES =================== */
@media (prefers-reduced-motion: reduce) {
    .btn,
    .feature-card,
    .product-card {
        transition: none !important;
        animation: none !important;
    }
    
    .btn:hover,
    .feature-card:hover,
    .product-card:hover {
        transform: none !important;
    }
    
    .hero::before {
        animation: none !important;
    }
}

/* =================== HIGH CONTRAST MODE =================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0000ff;
        --success: #008000;
        --warning: #ff8c00;
        --danger: #ff0000;
        --text-primary: #000000;
        --text-secondary: #333333;
        --border: #000000;
    }
    
    .btn {
        border: 2px solid currentColor;
    }
    
    .profile-card, 
    .product-card, 
    .feature-card,
    .order-item,
    .modal-content {
        border: 2px solid #000000;
    }
    
    .hero-content h1 {
        text-shadow: 2px 2px 0 #000;
    }
}