/* ================================================
   ActiveFit - Sports Apparel E-commerce
   Modern, Dynamic Design with Athletic Aesthetics
   ================================================ */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors */
    --primary-green: #00A676;
    --primary-green-dark: #008B62;
    --primary-green-light: #00B87C;
    
    /* Accent Colors */
    --accent-orange: #FF6B35;
    --accent-orange-dark: #FF5722;
    
    /* Neutral Colors */
    --dark-gray: #2B3A42;
    --medium-gray: #4A4A4A;
    --light-gray: #999999;
    --border-gray: #E0E0E0;
    --bg-light: #F5F5F5;
    --bg-white: #FFFFFF;
    
    /* Text Colors */
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Bebas Neue', 'Oswald', sans-serif;
    --font-secondary: 'Montserrat', 'Inter', sans-serif;
    --font-display: 'Oswald', 'Montserrat', sans-serif;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Layout */
    --max-width: 1400px;
    --header-height: 80px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-primary);
    background: 
        linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0,166,118,0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,107,53,0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* ===== Container ===== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* ===== Navigation Bar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    height: var(--header-height);
    border-bottom: 1px solid rgba(0,166,118,0.1);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-green);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.nav-brand i {
    font-size: 32px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: var(--transition-normal);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.sale-link {
    color: var(--accent-orange);
    font-weight: 600;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-actions button {
    font-size: 20px;
    color: var(--text-primary);
    position: relative;
}

.nav-actions button:hover {
    color: var(--primary-green);
}

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--accent-orange);
    color: white;
    font-size: 11px;
    font-weight: 600;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--header-height);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(0,0,0,0.70) 0%, rgba(0,0,0,0.40) 50%, rgba(0,0,0,0.60) 100%),
        url('https://images.unsplash.com/photo-1445384763658-0400939829cd?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.2) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-label {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--primary-green-light);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(48px, 8vw, 86px);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 2px 4px 20px rgba(0,0,0,0.8);
    letter-spacing: 1px;
}

.hero-title .highlight {
    color: var(--primary-green-light);
    font-weight: 400;
}

.hero-description {
    font-family: var(--font-primary);
    font-size: clamp(16px, 2vw, 19px);
    max-width: 580px;
    margin: 0 auto 40px;
    opacity: 0.95;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 18px 44px;
    font-family: var(--font-secondary);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50px;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-primary {
    background: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 16px rgba(255,107,53,0.3);
}

.btn-primary:hover {
    background: var(--accent-orange-dark);
    box-shadow: 0 6px 24px rgba(255,107,53,0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-green);
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--dark-gray);
    font-size: 18px;
    box-shadow: var(--shadow-md);
}

.btn-icon:hover {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1);
}

/* ===== Category Section ===== */
.category-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecef 100%);
    position: relative;
    overflow: hidden;
}

.category-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?w=1920&h=1080&fit=crop&q=80&opacity=0.03');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    pointer-events: none;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.category-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    height: 480px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    border: 2px solid rgba(255,255,255,0.3);
}

.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(0,166,118,0.1) 0%, transparent 50%, rgba(255,107,53,0.1) 100%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

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

.category-card.featured {
    grid-column: span 1;
}

.category-image {
    width: 100%;
    height: 100%;
    position: relative;
}

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

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

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    color: white;
}

.category-overlay h3 {
    font-family: var(--font-heading);
    font-size: 38px;
    font-weight: 400;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.sale-badge {
    display: inline-block;
    background: var(--accent-orange);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition-fast);
}

.category-link:hover {
    gap: 12px;
    color: var(--primary-green-light);
}

/* ===== Products Section ===== */
.products-section {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(245,247,250,0.95) 100%),
        url('https://images.unsplash.com/photo-1461896836934-ffe607ba8211?w=1920&h=1080&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(0,166,118,0.02) 50px,
        rgba(0,166,118,0.02) 100px
    );
    pointer-events: none;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 24px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-secondary);
    margin-top: 12px;
    letter-spacing: 0.5px;
    font-weight: 400;
}

.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 11px 26px;
    border-radius: 50px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 13px;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 2px solid transparent;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.filter-btn:hover {
    background: var(--primary-green);
    color: white;
}

.filter-btn.active {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green-dark);
}

/* ===== Products Grid ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.product-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.5);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.product-image-wrapper {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 3/4;
}

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

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

.product-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: var(--primary-green);
    color: white;
}

.badge-sale {
    background: var(--accent-orange);
    color: white;
}

.badge-bestseller {
    background: var(--dark-gray);
    color: white;
}

.product-overlay {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 0;
    transform: translateX(20px);
    transition: var(--transition-normal);
}

.product-card:hover .product-overlay {
    opacity: 1;
    transform: translateX(0);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-family: var(--font-secondary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-green);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.product-name {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
    color: #FFC107;
    font-size: 14px;
}

.rating-count {
    color: var(--text-tertiary);
    font-size: 13px;
    margin-left: 4px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-current {
    font-family: var(--font-secondary);
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-green);
    letter-spacing: 0.5px;
}

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

/* ===== Features Section ===== */
.features-section {
    padding: 80px 0;
    background: 
        linear-gradient(135deg, rgba(0,166,118,0.05) 0%, rgba(0,139,98,0.08) 100%),
        url('https://images.unsplash.com/photo-1571902943202-507ec2618e8f?w=1920&h=600&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(245,247,250,0.92) 100%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.feature-card {
    text-align: center;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: var(--transition-normal);
    border: 1px solid rgba(255,255,255,0.8);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-green-light), var(--primary-green));
    color: white;
    font-size: 28px;
    border-radius: 50%;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.feature-description {
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== Newsletter Section ===== */
.newsletter-section {
    padding: 100px 0;
    background: 
        linear-gradient(135deg, rgba(0,166,118,0.93) 0%, rgba(0,139,98,0.95) 50%, rgba(43,58,66,0.93) 100%),
        url('https://images.unsplash.com/photo-1517836357463-d25dfeac3438?w=1920&h=800&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255,107,53,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.newsletter-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.newsletter-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.newsletter-description {
    font-family: var(--font-primary);
    font-size: 17px;
    margin-bottom: 36px;
    opacity: 0.95;
    letter-spacing: 0.3px;
    line-height: 1.7;
}

.newsletter-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 16px 24px;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 50px;
    font-size: 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.newsletter-input::placeholder {
    color: rgba(255,255,255,0.7);
}

.newsletter-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255,255,255,0.2);
}

/* ===== Footer ===== */
.footer {
    background: 
        linear-gradient(135deg, rgba(43,58,66,0.98) 0%, rgba(35,47,54,1) 100%),
        url('https://images.unsplash.com/photo-1519311965067-36d3e5f33d39?w=1920&h=600&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 60px 0 24px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(43,58,66,0.95) 0%, rgba(35,47,54,0.98) 100%);
    pointer-events: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    color: var(--primary-green-light);
    margin-bottom: 20px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-brand i {
    font-size: 32px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.7;
    opacity: 0.8;
    margin-bottom: 24px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-heading {
    font-family: var(--font-secondary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    opacity: 0.8;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-green-light);
    padding-left: 4px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    opacity: 0.8;
}

.payment-methods {
    display: flex;
    gap: 16px;
    font-size: 28px;
}

/* ===== Developer Credit ===== */
.developer-credit {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.developer-credit p {
    margin-bottom: 6px;
    line-height: 1.5;
}

.developer-credit p:last-child {
    margin-bottom: 0;
}

.developer-credit a {
    color: var(--primary-green-light);
    font-weight: 600;
    transition: var(--transition-fast);
}

.developer-credit a:hover {
    color: var(--accent-orange);
    text-decoration: underline;
}

.developer-credit .authorship {
    font-size: 13px;
    opacity: 0.75;
    font-style: italic;
}

/* ===== Shopping Cart Sidebar ===== */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 420px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

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

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--border-gray);
}

.cart-header h3 {
    font-size: 24px;
    font-weight: 700;
}

.cart-close {
    font-size: 24px;
    color: var(--text-secondary);
}

.cart-close:hover {
    color: var(--text-primary);
}

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

.empty-cart {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-tertiary);
}

.empty-cart i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    margin-bottom: 16px;
}

.cart-item-image {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

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

.cart-item-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-green);
    font-weight: 600;
    margin-bottom: 8px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: var(--primary-green);
    color: white;
}

.cart-footer {
    padding: 24px;
    border-top: 1px solid var(--border-gray);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.total-price {
    color: var(--primary-green);
}

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 280px;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: 32px 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-normal);
        align-items: flex-start;
        gap: 24px;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-background {
        background-position: center center;
        background-attachment: scroll;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 24px;
    }
    
    .nav-brand i {
        font-size: 28px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-name {
        font-size: 16px;
    }
    
    .price-current {
        font-size: 20px;
    }
}

/* ===== Decorative Elements ===== */
.section-header::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green), var(--accent-orange));
    border-radius: 2px;
}

.section-header {
    position: relative;
    padding-top: 20px;
}

/* Geometric Background Patterns */
.products-section .container {
    position: relative;
    z-index: 1;
}

/* Newsletter Content Enhancement */
.newsletter-content {
    position: relative;
    z-index: 1;
}

/* Category Section Enhancements */
.category-section .container {
    position: relative;
    z-index: 1;
}

/* Features Grid Enhancement */
.features-grid {
    position: relative;
    z-index: 1;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.product-card,
.category-card,
.feature-card {
    animation: fadeInUp 0.6s ease forwards;
}

/* Floating decoration animation */
.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    pointer-events: none;
}

/* Additional visual enhancement for hero */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(to right, rgba(0,0,0,0.15) 0%, transparent 40%, rgba(0,0,0,0.1) 100%),
        linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== Utility Classes ===== */
.hidden {
    display: none !important;
}

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

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }