/* ============================================
   King Khandesh - Main Stylesheet
   Modern, Clean, Professional eCommerce Design
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #F4D03F;
    --primary-dark: #D4AC0D;
    --secondary-color: #27AE60;
    --secondary-dark: #1E8449;
    --accent-color: #E67E22;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --text-muted: #95A5A6;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-cream: #FEF9E7;
    --border-color: #E5E8E8;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-white);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    display: block !important;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* Responsive Logo */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 40px;
        max-width: 120px;
    }
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: none; /* Hide old icon */
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.logo-tagline {
    font-size: 11px;
    color: var(--secondary-color);
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-list a {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 8px 0;
}

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

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

.nav-list a:hover,
.nav-list a.active {
    color: var(--secondary-color);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 18px;
    position: relative;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

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

/* User Menu */
.user-menu {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.user-menu:hover .dropdown-menu,
.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--text-dark);
    font-size: 14px;
    transition: var(--transition);
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
}

.dropdown-menu a.hidden {
    display: none;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    font-size: 22px;
    color: var(--text-dark);
}

/* Search Modal */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    z-index: 1002;
    transform: translateY(-100%);
    transition: var(--transition);
}

.search-modal.show {
    transform: translateY(0);
}

.search-container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-container input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 16px;
    transition: var(--transition);
}

.search-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-close {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-light);
}

.search-results {
    max-width: 700px;
    margin: 20px auto 0;
    max-height: 400px;
    overflow-y: auto;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-white) 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-title .highlight {
    color: var(--secondary-color);
    position: relative;
}

.hero-description {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-features {
    display: flex;
    gap: 25px;
    margin-bottom: 35px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.hero-features .feature i {
    color: var(--secondary-color);
    font-size: 16px;
}

.hero-cta {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    gap: 50px;
}

.stat {
    text-align: left;
}

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Image */
.hero-image {
    position: relative;
    perspective: 1000px;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    transform-style: preserve-3d;
    animation: heroFloat 8s ease-in-out infinite;
}

.hero-img {
    max-height: 450px;
    width: auto;
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 10px 20px rgba(0,0,0,0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
    border: 3px solid rgba(255,255,255,0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.7;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.hero-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255,255,255,0.1) 0%, 
        rgba(255,255,255,0) 50%, 
        rgba(255,255,255,0.1) 100%);
    border-radius: 17px;
    pointer-events: none;
}

.hero-img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 
        0 35px 70px rgba(0,0,0,0.2),
        0 15px 30px rgba(0,0,0,0.15),
        inset 0 1px 0 rgba(255,255,255,0.3);
    border-color: rgba(255,255,255,0.2);
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0) rotateX(0) rotateY(0); 
    }
    25% { 
        transform: translateY(-15px) rotateX(2deg) rotateY(1deg); 
    }
    50% { 
        transform: translateY(-25px) rotateX(0) rotateY(0); 
    }
    75% { 
        transform: translateY(-15px) rotateX(-2deg) rotateY(-1deg); 
    }
}

@keyframes borderGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 0.8; transform: scale(1.02); }
}

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

.floating-badge {
    position: absolute;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 25px;
    box-shadow: 
        0 10px 25px rgba(0,0,0,0.1),
        0 5px 10px rgba(0,0,0,0.05),
        inset 0 1px 0 rgba(255,255,255,0.5);
    border: 2px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    white-space: nowrap;
}

.floating-badge::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    border-radius: 31px;
    z-index: -1;
    opacity: 0.8;
    animation: borderGlow 3s ease-in-out infinite alternate;
}

.floating-badge i {
    color: var(--accent-color);
    font-size: 16px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.floating-badge span {
    color: var(--text-dark);
    text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.badge-1 {
    top: 10px;
    right: 10px;
    animation: floatBadge1 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 10px;
    left: 10px;
    animation: floatBadge2 5s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-badge:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.15),
        0 8px 15px rgba(0,0,0,0.08),
        inset 0 1px 0 rgba(255,255,255,0.7);
    border-color: rgba(255,255,255,0.5);
}

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

@keyframes floatBadge1 {
    0%, 100% { 
        transform: translateY(0) rotate(-2deg) scale(1); 
    }
    25% { 
        transform: translateY(-8px) rotate(1deg) scale(1.02); 
    }
    50% { 
        transform: translateY(-12px) rotate(0deg) scale(1); 
    }
    75% { 
        transform: translateY(-8px) rotate(-1deg) scale(1.02); 
    }
}

@keyframes floatBadge2 {
    0%, 100% { 
        transform: translateY(0) rotate(2deg) scale(1); 
    }
    33% { 
        transform: translateY(-10px) rotate(-1deg) scale(1.03); 
    }
    66% { 
        transform: translateY(-15px) rotate(0deg) scale(1); 
    }
}

.hero-waves {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-waves svg {
    width: 100%;
    height: auto;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border-color: var(--border-color);
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.btn-white {
    background: white;
    color: var(--secondary-color);
    border-color: white;
}

.btn-white:hover {
    background: transparent;
    color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-small {
    padding: 8px 18px;
    font-size: 13px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   SECTION COMMON STYLES
   ============================================ */
.section-padding {
    padding: 100px 0;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto;
}

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

.mt-4 {
    margin-top: 40px;
}

/* ============================================
   CATEGORIES
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

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

.category-image {
    height: 200px;
    overflow: hidden;
}

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

/* Special handling for SVG images */
.category-image img[src$=".svg"] {
    object-fit: contain;
    background: #f8f9fa;
    padding: 10px;
}

/* Fallback: Use CSS background for category images */
.category-image.classic {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B4513;
    text-align: center;
    font-weight: bold;
}

.category-image.spicy {
    background: linear-gradient(135deg, #FF4500 0%, #DC143C 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    font-weight: bold;
}

.category-image.premium {
    background: linear-gradient(135deg, #4A0080 0%, #FF1493 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    font-weight: bold;
}

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

.category-content {
    padding: 25px;
    text-align: center;
}

.category-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.category-content p {
    font-size: 14px;
    color: var(--text-light);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.product-wishlist {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

.product-wishlist:hover,
.product-wishlist.active {
    background: #ff4757;
    color: white;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
    background: var(--bg-light);
}

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

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

.product-quick-view {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-quick-view {
    opacity: 1;
}

.product-quick-view .btn {
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .product-quick-view .btn {
    transform: translateY(0);
}

.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--secondary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

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

.price-current {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
}

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

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
}

.product-rating i {
    color: var(--primary-color);
}

.product-rating span {
    color: var(--text-light);
}

.product-weights {
    margin-bottom: 15px;
}

.weight-label {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
    display: block;
}

.weight-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.weight-option {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.weight-option:hover,
.weight-option.active {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions .btn {
    flex: 1;
    padding: 12px;
}

/* Offer Banner */
.offer-banner {
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    padding: 80px 0;
    color: white;
}

.offer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

.offer-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.offer-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.offer-desc {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 30px;
}

.offer-desc strong {
    background: var(--primary-color);
    color: var(--text-dark);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
}

.offer-image img {
    max-height: 250px;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.2));
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 40px 25px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: var(--secondary-color);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Reviews Section */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.review-card {
    background: var(--bg-white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.review-rating {
    display: flex;
    gap: 3px;
    margin-bottom: 20px;
}

.review-rating i {
    color: var(--primary-color);
    font-size: 14px;
}

.review-text {
    font-size: 15px;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 25px;
    font-style: italic;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary-color);
}

.author-info h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 3px;
}

.author-info span {
    font-size: 13px;
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    background: var(--bg-cream);
    padding: 80px 0;
}

.newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.newsletter-text h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
}

.newsletter-text p {
    font-size: 16px;
    color: var(--text-light);
}

.newsletter-form {
    display: flex;
    gap: 15px;
    flex: 1;
    max-width: 500px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 25px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.newsletter-form .btn {
    padding: 16px 35px;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white !important;
    padding: 80px 0 30px;
}

.footer * {
    color: inherit;
}

.footer a {
    color: rgba(255,255,255,0.7);
}

.footer a:hover {
    color: var(--primary-color);
}

.footer h4 {
    color: white !important;
}

.footer p {
    color: rgba(255,255,255,0.7) !important;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 50px;
    margin-bottom: 60px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 20px;
    background: rgba(255,255,255,0.9);
    padding: 10px 15px;
    border-radius: 12px;
    width: fit-content;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
    background: rgba(255,255,255,0.1);
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
}

.footer-logo i {
    color: var(--primary-color);
    display: none; /* Hide old icon */
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.7);
    margin-bottom: 25px;
}

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

.social-link {
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    transition: var(--transition);
}

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

.footer-links h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white !important;
}

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

.footer-links ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.7) !important;
    transition: var(--transition);
    display: block;
}

.footer-links ul li a:hover {
    padding-left: 5px;
}

.footer-contact h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 25px;
    color: white !important;
}

.footer-contact p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-contact p i {
    color: var(--primary-color);
    margin-top: 3px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
}

.footer-bottom i {
    color: #ff4757;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    padding: 20px;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
}

.modal-large {
    max-width: 900px;
}

/* Quick View Modal Layout */
.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.quick-view-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quick-view-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.quick-view-info h2 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.quick-view-info .product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: var(--primary-dark);
    margin-bottom: 12px;
}

.quick-view-info .product-rating span {
    color: var(--text-light);
    font-size: 13px;
}

.quick-view-info .product-price {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.quick-view-info .price-current {
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
}

.quick-view-info .price-original {
    font-size: 17px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.quick-view-info .discount-badge {
    background: #ff4757;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.weight-selection {
    margin-bottom: 16px;
}

.weight-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.weight-selection .weight-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.weight-selection .weight-option {
    padding: 7px 14px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    background: white;
}

.weight-selection .weight-option.active,
.weight-selection .weight-option:hover {
    border-color: var(--secondary-color);
    background: var(--secondary-color);
    color: white;
}

.quick-view-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.quantity-selector button {
    width: 38px;
    height: 42px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-selector button:hover {
    background: var(--secondary-color);
    color: white;
}

.quantity-selector input {
    width: 52px;
    height: 42px;
    text-align: center;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
}

@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
    .quick-view-image {
        max-height: 260px;
    }
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-dark);
    z-index: 10;
    transition: var(--transition);
}

.modal-close:hover {
    background: #ff4757;
    color: white;
}

.modal-body {
    padding: 40px;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--bg-white);
    padding: 16px 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    transform: translateX(120%);
    transition: var(--transition);
}

.toast.show {
    transform: translateX(0);
}

.toast-success {
    border-left: 4px solid var(--secondary-color);
}

.toast-error {
    border-left: 4px solid #ff4757;
}

.toast i {
    font-size: 20px;
}

.toast-success i {
    color: var(--secondary-color);
}

.toast-error i {
    color: #ff4757;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .categories-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reviews-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .offer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .offer-image {
        display: none;
    }
    
    .newsletter-content {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        padding: 20px;
        box-shadow: var(--shadow-md);
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.show {
        transform: translateY(0);
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 25px;
    }
    
    .stat {
        text-align: center;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .categories-grid,
    .features-grid,
    .products-grid,
    .reviews-slider {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact p {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    
    .modal-content {
        margin: 10px;
    }
    
    .modal-body {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .logo-main {
        font-size: 20px;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .icon-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
}

/* Utility Classes */
.hidden {
    display: none !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-width: 0;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8e8 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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