:root {
    /* Premium FMCG Theme (Deep Green & Gold) */
    --bg-color: #fffdf5; /* Warm cream background */
    --text-color: #1a2a1a; /* Dark green/black for text */
    --text-muted: #4a5c4a;
    --primary: #0a361e; /* Deep Forest Green */
    --primary-hover: #134e2c;
    --secondary: #ffffff;
    --secondary-text: #0a361e;
    --accent: #fdb913; /* Golden Yellow */
    --accent-dark: #cc9100;
    --danger: #b30000; /* Rich Red for buttons/alerts */
    --card-bg: rgba(255, 255, 255, 0.98);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border: rgba(10, 54, 30, 0.15);
    --shadow-3d: 0 15px 30px rgba(10, 54, 30, 0.08), inset 0 2px 0 rgba(255,255,255,1);
    --shadow-hover-3d: 0 25px 50px rgba(10, 54, 30, 0.15), inset 0 2px 0 rgba(255,255,255,1);
    --glass-blur: blur(20px);
    
    /* Typography */
    --font-sans: 'Nunito', sans-serif;
    --font-heading: 'Poppins', sans-serif;
}

* {
html, body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar (Glassmorphism) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-text-btn {
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.2s ease;
    cursor: pointer;
}

.nav-text-btn:hover {
    color: var(--primary);
}

.highlight-btn {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.highlight-btn:hover {
    background: var(--primary-hover);
}

/* Hover Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown:hover .dropdown-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    border: 1px solid var(--border);
    z-index: 1000;
}

.dropdown-menu a {
    color: var(--text-color);
    padding: 0.5rem;
    border-radius: 6px;
    transition: background 0.2s ease;
    font-size: 0.95rem;
}

.dropdown-menu a:hover {
    background: rgba(255, 122, 0, 0.1);
    color: var(--primary);
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
}

.mobile-only {
    display: none;
}

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

.cart-btn {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: white;
    box-shadow: 0 10px 20px rgba(255, 122, 0, 0.3), inset 0 2px 0 rgba(255,255,255,0.2);
    border-bottom: 4px solid #cc6200;
    transform: perspective(1px) translateZ(0);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px rgba(255, 122, 0, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    border-bottom-width: 2px;
    margin-top: 2px;
}

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

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

/* Hero Visual & Animations */
.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.hero-slider {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 550px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Attractive background circle to anchor the images */
.hero-slider::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,122,0,0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.9) translateY(30px);
    animation: slideFade 12s infinite cubic-bezier(0.4, 0, 0.2, 1);
    mix-blend-mode: multiply; /* Removes white background from JPEG images */
    will-change: transform, opacity;
}

.hero-slider .slide:nth-child(1) { animation-delay: 0s; }
.hero-slider .slide:nth-child(2) { animation-delay: 4s; }
.hero-slider .slide:nth-child(3) { animation-delay: 8s; }

@keyframes slideFade {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    5% { opacity: 1; transform: scale(1.05) translateY(0); }
    28% { opacity: 1; transform: scale(1.05) translateY(0); }
    33% { opacity: 0; transform: scale(1.1) translateY(-20px); }
    100% { opacity: 0; transform: scale(1.1) translateY(-20px); }
}

.hero-blob {
    position: absolute;
    width: 450px;
    height: 450px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    filter: blur(60px);
    opacity: 0.15;
    animation: blob-bounce 8s infinite alternate ease-in-out;
    z-index: -1;
}

@keyframes blob-bounce {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, -20px); }
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-3d);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(-5deg);
    box-shadow: var(--shadow-hover-3d);
}

.glass-card i {
    font-size: 1.5rem;
    color: var(--primary);
}

.floating-card {
    position: absolute;
    animation: float 6s infinite ease-in-out;
}

.card-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

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

/* Common Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
}

/* Brands Section */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.brand-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: var(--shadow-3d);
    transform-style: preserve-3d;
}

.brand-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: var(--shadow-hover-3d);
    border-color: var(--primary);
}

/* Products Section */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-3d);
    transform: perspective(1000px);
}

.product-card:hover {
    transform: translateY(-15px) rotateX(5deg);
    box-shadow: var(--shadow-hover-3d);
}

.product-image {
    width: 100%;
    height: 250px;
    background-size: cover;
    background-position: center;
}

.placeholder-img-1 { background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%); }
.placeholder-img-2 { background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%); }
.placeholder-img-3 { background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%); }
.placeholder-img-4 { background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%); }

[data-theme="dark"] .placeholder-img-1,
[data-theme="dark"] .placeholder-img-2,
[data-theme="dark"] .placeholder-img-3,
[data-theme="dark"] .placeholder-img-4 {
    filter: brightness(0.7);
}

.product-info {
    padding: 1.5rem;
}

.category {
    font-size: 0.8rem;
    color: var(--primary);
    text-transform: capitalize;
    font-weight: 600;
    letter-spacing: 1px;
}

.product-info h3 {
    margin: 0.5rem 0 1rem 0;
    font-size: 1.25rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    font-size: 1.25rem;
}

.add-to-cart {
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.add-to-cart:hover {
    background: var(--primary-hover);
    transform: scale(1.1);
}

/* Mega Footer */
.mega-footer {
    background: #ffffff;
    color: #333333;
    padding-top: 0;
    font-family: var(--font-sans);
    border-top: 1px solid var(--border);
}

.newsletter-section {
    background: var(--primary);
    padding: 3rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: center;
    color: white;
}

.newsletter-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    border: none;
    width: 250px;
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: #1e293b;
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
}

.massive-grid {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.footer-links h3 {
    font-family: var(--font-heading);
    color: #111111;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    text-transform: capitalize;
    white-space: nowrap;
}

.footer-links h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #555555;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.contact-section p {
    color: #555555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-section i {
    color: var(--primary);
    width: 20px;
}

.cert-list {
    margin-top: 1rem;
}

.cert-list li {
    color: #555555;
    font-size: 0.9rem;
}

.footer-bottom-bar {
    background: #f8fafc;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
}

.bottom-brand h2 {
    font-family: var(--font-heading);
    color: #111111;
    font-size: 2rem;
    letter-spacing: 2px;
}

.tagline {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0.5rem 0 1.5rem 0;
}

.bottom-links {
    margin-bottom: 1.5rem;
    color: #666666;
}

.bottom-links a {
    color: #555555;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

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

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    color: #555555;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

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

.copyright {
    color: #888888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    .hero-title { font-size: 2.5rem; }
    
    .mobile-only { display: block; }
    
    .nav-links { 
        display: flex; 
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        gap: 1.5rem;
        transition: right 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .newsletter-form { flex-direction: column; width: 100%; }
    .newsletter-form input { width: 100%; }
    
    /* Global Overrides for Mobile */
    .hero {
        padding-top: 120px !important;
        flex-direction: column !important;
        display: flex;
    }
    .hero-content h1 span {
        font-size: 3rem !important;
    }
    .hero-content h1 {
        font-size: 2.5rem !important;
    }
    .hero-visual {
        margin-top: 2rem;
    }
    
    .nav-actions {
        display: flex !important;
    }
    
    .nav-actions > *:not(.mobile-only) {
        display: none !important;
    }
    
    .shop-sidebar {
        flex: 1 1 100% !important;
        max-width: 100% !important;
        position: static !important;
        margin-bottom: 2rem;
    }
    
    /* Fix for sub-headers/banners on mobile across all pages */
    section[style*="padding: 160px"] {
        padding: 180px 1rem 3rem !important;
    }
    
    section[style*="padding: 160px"] h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        word-wrap: break-word;
    }
}

/* ========================================================= */
/*                   ADMIN PANEL STYLES                      */
/* ========================================================= */

.admin-container {
    display: flex;
    min-height: calc(100vh - 130px);
    background: #f4f7f6;
    margin-top: 130px; 
}

.admin-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid var(--border);
    padding: 1.5rem 1rem;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: sticky;
    top: 130px;
    height: calc(100vh - 130px);
    overflow-y: auto;
}

.admin-sidebar-header {
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.admin-sidebar h3 {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 1rem 0 0.5rem 1rem;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.admin-nav-item:hover, .admin-nav-item.active {
    background: var(--primary-light, #e6f0eb);
    color: var(--primary);
}

.admin-nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.admin-main {
    flex-grow: 1;
    padding: 2rem;
    max-width: calc(100% - 260px);
    overflow-x: hidden;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-color);
    margin: 0;
}

.admin-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    margin-bottom: 1.5rem;
}

@media (max-width: 992px) {
    .admin-container {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
    }
    .admin-main {
        max-width: 100%;
        padding: 1.5rem;
    }
}

/* --- Mobile Responsive CSS --- */
@media (max-width: 768px) {
    /* Navbar & Header */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background: white;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 1000;
        align-items: flex-start;
        gap: 1.5rem;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-container {
        padding: 1rem;
        justify-content: space-between;
    }
    .nav-actions {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    .mobile-only {
        display: block !important;
    }
    
    /* Hero Section */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 4rem 1rem 2rem;
        margin-top: 80px;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content {
        margin-bottom: 2rem;
    }
    .hero-image {
        display: none;
    }

    /* Grids */
    .massive-grid, .products-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .newsletter-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    .newsletter-form {
        flex-direction: column;
        width: 100%;
    }
    .newsletter-form input {
        width: 100%;
    }
    
    /* Admin View specific mobile fixes */
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .admin-header form {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    #kycForm {
        grid-template-columns: 1fr !important;
    }
    #kycForm > div {
        grid-column: span 1 !important;
    }
}

