/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }

/* --- Navbar --- */
nav {
    background: transparent; /* Makes it blend with hero */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; /* Changed to fixed */
    top: 0;
    left: 0;
    width: 100%; /* Full width */
    z-index: 1000;
    box-sizing: border-box; /* Include padding in width */
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}
/* Scrolled state for navbar */
nav.scrolled {
    background: var(--bg-cream);
    border-bottom: 1px solid rgba(197, 160, 101, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
nav .logo { 
    font-size: 1.8rem;
    color: var(--white); /* White on hero */
}
nav.scrolled .logo {
    color: var(--text-dark); /* Dark on scroll */
}

/* Nav Right Side Wrapper */
.nav-right-side {
    display: flex;
    align-items: center;
}
.nav-links { display: flex; align-items: center; }
.nav-links .user-greeting { font-size: 0.9rem; margin-right: 15px; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container {
    position: relative;
    cursor: pointer;
    margin-left: 15px;
    color: var(--white); /* White on hero */
}
nav.scrolled .cart-icon-container {
    color: var(--text-dark); /* Dark on scroll */
}
.cart-count {
    position: absolute; top: -5px; right: -10px; background: var(--gold-accent);
    color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px;
    font-size: 0.7rem; font-weight: bold; display: flex;
    justify-content: center; align-items: center;
}
.nav-btn {
    text-decoration: none; color: var(--white); border: 1px solid var(--white);
    padding: 6px 15px; border-radius: 30px; font-size: 0.9rem;
    transition: 0.3s; margin-left: 10px; cursor: pointer; background: transparent;
}
nav.scrolled .nav-btn {
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }

#admin-link { display: none; }

/* --- HAMBURGER MENU --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-left: 15px;
}
.hamburger-menu span {
    width: 100%;
    height: 3px;
    background-color: var(--white); /* White on hero */
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}
nav.scrolled .hamburger-menu span {
    background-color: var(--text-dark); /* Dark on scroll */
}
/* Hamburger animation */
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- MOBILE NAV MENU --- */
.mobile-nav-menu {
    display: none;
    position: fixed;
    top: 65px; /* Height of navbar */
    left: 0;
    width: 100%;
    height: calc(100vh - 65px);
    background: var(--bg-cream);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
.mobile-nav-menu.active {
    display: flex;
    transform: translateX(0);
}
.mobile-nav-menu a, .mobile-nav-menu button {
    font-size: 1.2rem;
    padding: 15px 0;
    width: 80%;
    text-align: center;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.mobile-nav-menu .nav-btn {
    margin-top: 15px;
    margin-left: 0;
    color: var(--text-dark); /* Ensure correct color */
    border: 1px solid var(--text-dark); /* Ensure correct color */
}
.mobile-nav-menu .nav-btn:hover {
    background: var(--text-dark);
    color: var(--white);
}
#mobile-admin-link { display: none; }

/* --- Hero Section --- */
.hero {
    height: 85vh; /* Taller hero */
    min-height: 500px;
    /* --- THIS IS THE UPDATED LINE --- */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg');
    /* --- END OF UPDATE --- */
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--white);
    padding: 20px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    letter-spacing: 1px;
}
.hero-btn {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--white);
    padding: 12px 30px;
    border-radius: 30px;
    transition: 0.3s;
}
.hero-btn:hover {
    background: var(--gold-accent);
    color: var(--white);
}

/* --- Promise/Quotes Section --- */
.our-promise {
    background: var(--text-dark);
    color: var(--bg-cream);
    text-align: center;
}
.promise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.promise-item {
    padding: 20px;
}
.promise-item i {
    font-size: 2.5rem;
    color: var(--gold-accent);
    margin-bottom: 15px;
}
.promise-item h3 {
    color: var(--white);
    margin-bottom: 10px;
}
.promise-item p {
    font-size: 0.9rem;
    line-height: 1.7;
}

/* --- Store (Product Grid) --- */
#products {
    background: var(--bg-cream);
}
.page-header {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.img-container { width: 100%; height: 250px; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }
.card-body .price { display: block; font-size: 1.5rem; font-weight: bold; margin-bottom: 10px; color: var(--gold-accent); }
.btn-buy {
    background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0;
    width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase;
    font-size: 0.8rem; letter-spacing: 1px;
}

/* --- Testimonials Section --- */
.testimonials {
    background: var(--bg-cream);
    border-top: 1px solid #eee;
    text-align: center;
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}
.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.testimonial-card p.quote {
    font-style: italic;
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 20px;
}
.testimonial-card p.author {
    font-weight: 700;
    color: var(--text-dark);
}
.stars {
    color: var(--gold-accent);
    margin-bottom: 15px;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: var(--bg-cream);
    padding: 60px 5%;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #444;
}
.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}
.footer-col p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #ccc;
}
.footer-col a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: 0.3s;
}
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a {
    display: inline-block;
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
    transition: 0.3s;
}
.social-icons a:hover { color: var(--gold-accent); }
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    font-size: 0.8rem;
    color: #aaa;
}


/* --- Modals (Login, Checkout) --- */
.modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); z-index: 2000;
    justify-content: center; align-items: center;
}
.modal-content {
    background: var(--bg-cream); padding: 2rem; border-radius: 10px;
    width: 90%; max-width: 450px; text-align: left;
    max-height: 90vh; overflow-y: auto;
}
.close-btn { float: right; cursor: pointer; font-size: 1.5rem; }
.auth-toggle { display: flex; justify-content: space-around; margin-bottom: 20px; border-bottom: 1px solid #ddd; }
.auth-toggle span { padding: 10px 20px; cursor: pointer; font-weight: bold; color: #aaa; }
.auth-toggle span.active { color: var(--text-dark); border-bottom: 2px solid var(--gold-accent); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.input-field {
    width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc;
    border-radius: 4px; background: #fdfdfd; box-sizing: border-box;
}
textarea.input-field { height: 80px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.error-msg { color: var(--danger); font-size: 0.8rem; text-align: center; }

/* --- Cart Sidebar --- */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: none; z-index: 1500;
}
.cart-sidebar {
    position: fixed; top: 0; right: -100%; width: 350px; height: 100%;
    background: var(--bg-cream); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1600; display: flex; flex-direction: column;
    padding: 20px; box-sizing: border-box; box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.cart-sidebar.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px 0; }
.cart-footer { border-top: 1px solid #ddd; padding-top: 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px; margin-bottom: 10px; border-radius: 5px; }
.cart-item h4 { font-size: 1rem; margin-bottom: 2px; }
.cart-item-weight { font-size: 0.9rem; color: var(--gold-accent); font-weight: bold; }
.remove-btn { color: var(--danger); cursor: pointer; font-size: 1.2rem; font-weight: bold; }
.total-price { font-size: 1.2rem; font-weight: bold; margin-bottom: 15px; display: flex; justify-content: space-between; }

/* --- Profile & Admin Page --- */
.page-container {
    padding-top: 100px; /* Offset for fixed navbar */
}
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; box-shadow: var(--shadow); }
.order-table th, .order-table td,
.admin-product-table th, .admin-product-table td {
    padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd;
    font-size: 0.9rem;
}
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.status-select { padding: 5px; border-radius: 4px; border: 1px solid #ccc; }
.btn-edit { background: var(--gold-accent); color: white; padding: 5px 10px; border: none; border-radius: 4px; cursor: pointer; margin-right: 5px; }
.btn-delete { background: var(--danger); color: white; padding: 5px 10px; border: none; border-radius: 4px; cursor: pointer; }

/* --- Responsive --- */
@media (max-width: 768px) {
    /* Hide desktop nav, show hamburger */
    .nav-links {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }

    /* Navbar padding */
    nav { padding: 1rem 5%; }
    
    /* Hero */
    .hero h1 { font-size: 2.5rem; }
    .hero p { font-size: 1rem; }

    /* Grids */
    .promise-grid, .testimonial-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-sidebar { width: 85%; }
    .grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-tab { padding: 10px; font-size: 0.9rem; }
    
    /* Responsive tables */
    .table-wrapper {
        overflow-x: auto;
    }

    .page-container {
        padding-top: 70px; /* Adjust for navbar */
    }
}

/* --- Product Card Select Dropdown --- */
.product-select-wrapper {
    display: flex;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.product-select-label {
    padding: 10px;
    background: #f1f1f1;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--text-dark);
}
.product-select {
    flex-grow: 1;
    padding: 10px;
    border: none;
    background: white;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
}

/* --- Admin Variant Form --- */
#variants-container {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}
.variant-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.variant-input-group .input-field {
    margin-bottom: 0;
}
.variant-input-group .btn-delete {
    height: 40px;
    width: 40px;
    padding: 0;
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }

/* --- CRITICAL FIX: Page Container Offset --- */
.page-container {
    padding-top: 100px; 
}

/* --- LOADING ANIMATION (NEW) --- */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-cream);
    z-index: 3000; /* Highest priority */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-icon {
    font-size: 4rem;
    color: var(--text-dark);
    /* The Pounding Animation */
    animation: pound 0.8s infinite ease-in-out;
    transform-origin: bottom center;
}

.loader-text {
    margin-top: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--gold-accent);
    letter-spacing: 1px;
    animation: pulse 1.5s infinite;
}

/* Pestle Pounding Keyframes */
@keyframes pound {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(-15deg); /* Lift up and tilt */
    }
    50% { 
        transform: translateY(0) rotate(0deg) scale(0.9); /* Hit the bottom */
    }
    75% { 
        transform: translateY(-5px) rotate(5deg); /* Slight rebound */
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* --- Navbar --- */
nav {
    background: transparent; /* Makes it blend with hero */
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out;
    border-bottom: 1px solid transparent;
}

/* Scrolled state (Solid Background) */
nav.scrolled {
    background: var(--bg-cream);
    border-bottom: 1px solid rgba(197, 160, 101, 0.2);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

nav .logo { font-size: 1.8rem; color: var(--white); }
nav.scrolled .logo { color: var(--text-dark); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; }

.nav-links .user-greeting { font-size: 0.9rem; margin-right: 15px; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container {
    position: relative; cursor: pointer; margin-left: 15px; color: var(--white);
}
nav.scrolled .cart-icon-container { color: var(--text-dark); }

.cart-count {
    position: absolute; top: -5px; right: -10px; background: var(--gold-accent);
    color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px;
    font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center;
}

.nav-btn {
    text-decoration: none; color: var(--white); border: 1px solid var(--white);
    padding: 6px 15px; border-radius: 30px; font-size: 0.9rem;
    transition: 0.3s; margin-left: 10px; cursor: pointer; background: transparent;
}
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }

#admin-link { display: none; }

/* --- HAMBURGER MENU --- */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    cursor: pointer;
    margin-left: 15px;
}
.hamburger-menu span {
    width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s;
}
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }

.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- MOBILE MENU --- */
.mobile-nav-menu {
    display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px);
    background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center;
    padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s;
}
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button {
    font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center;
    color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1);
}
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero Section --- */
.hero {
    height: 85vh; min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg');
    background-size: cover; background-position: center;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; color: var(--white); padding: 20px;
}
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn {
    font-weight: 700; color: var(--text-dark); background: var(--white);
    padding: 12px 30px; border-radius: 30px; transition: 0.3s;
}
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Promise Section --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }

/* --- Products --- */
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.img-container { width: 100%; height: 250px; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }
.btn-buy {
    background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0;
    width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase;
}

/* --- OUT OF STOCK STYLES --- */
.card.out-of-stock {
    opacity: 0.7;
    filter: grayscale(0.8);
}
.card.out-of-stock .img-container {
    position: relative;
}
.card.out-of-stock .img-container::after {
    content: "OUT OF STOCK";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}
.btn-buy:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

/* --- Testimonials --- */
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }

/* --- Footer --- */
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin/Profile Tables --- */
.admin-tabs { 
    display: flex; 
    justify-content: center; 
    margin-bottom: 30px; 
    margin-top: 70px; /* Added spacing fix */
}
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .grid, .form-grid { grid-template-columns: 1fr; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}

/* --- Misc Components --- */
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }

/* --- Admin Checkbox --- */
.checkbox-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}
.checkbox-wrapper input {
    width: auto;
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
}
.checkbox-wrapper label {
    font-weight: bold;
    cursor: pointer;
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }

/* --- CRITICAL FIX: Page Container Offset --- */
.page-container {
    padding-top: 100px; 
}

/* --- LOADING ANIMATION --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-cream); z-index: 3000; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite ease-in-out; transform-origin: bottom center; }
.loader-text { margin-top: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold-accent); letter-spacing: 1px; animation: pulse 1.5s infinite; }
@keyframes pound { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-15px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0deg) scale(0.9); } 75% { transform: translateY(-5px) rotate(5deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Navbar --- */
nav {
    background: transparent; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
nav .logo { font-size: 1.8rem; color: var(--white); }
nav.scrolled .logo { color: var(--text-dark); }
.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; }
.nav-links .user-greeting { font-size: 0.9rem; margin-right: 15px; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }
.cart-icon-container { position: relative; cursor: pointer; margin-left: 15px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }
.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; margin-left: 10px; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.img-container { width: 100%; height: 250px; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; }
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin/Profile Components --- */
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }

/* --- NEW: Admin Insights Stats --- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #eee;
}
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid, .grid, .form-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }

/* --- CRITICAL FIX: Page Container Offset --- */
.page-container {
    padding-top: 100px; 
}

/* --- LOADING ANIMATION --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-cream); z-index: 3000; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite ease-in-out; transform-origin: bottom center; }
.loader-text { margin-top: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold-accent); letter-spacing: 1px; animation: pulse 1.5s infinite; }
@keyframes pound { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-15px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0deg) scale(0.9); } 75% { transform: translateY(-5px) rotate(5deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Navbar --- */
nav {
    background: transparent; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
nav .logo { font-size: 1.8rem; color: var(--white); }
nav.scrolled .logo { color: var(--text-dark); }
.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; }
.nav-links .user-greeting { font-size: 0.9rem; margin-right: 15px; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }
.cart-icon-container { position: relative; cursor: pointer; margin-left: 15px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }
.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; margin-left: 10px; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }

/* NEW: Category Title */
.category-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--text-dark);
    margin: 40px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold-accent);
    display: inline-block;
}

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.img-container { width: 100%; height: 250px; }
.card img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; }
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin/Profile Components --- */
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }

/* --- NEW: Admin Insights Stats --- */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid #eee;
}
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid, .grid, .form-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }

/* --- CRITICAL FIX: Page Container Offset --- */
.page-container {
    padding-top: 100px; 
}

/* --- LOADING ANIMATION --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-cream); z-index: 3000; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite ease-in-out; transform-origin: bottom center; }
.loader-text { margin-top: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold-accent); letter-spacing: 1px; animation: pulse 1.5s infinite; }
@keyframes pound { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-15px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0deg) scale(0.9); } 75% { transform: translateY(-5px) rotate(5deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Navbar --- */
nav {
    background: transparent; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
nav .logo { font-size: 1.8rem; color: var(--white); }
nav.scrolled .logo { color: var(--text-dark); }
.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; }
.nav-links .user-greeting { font-size: 0.9rem; margin-right: 15px; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }
.cart-icon-container { position: relative; cursor: pointer; margin-left: 15px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }
.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; margin-left: 10px; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.category-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }

/* --- NEW: Image Slider Styles --- */
.img-container { 
    width: 100%; 
    height: 250px; 
    position: relative; /* For arrow positioning */
}
.img-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    scrollbar-width: none; /* Firefox */
    scroll-behavior: smooth;
}
.img-slider::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}
.img-slider img { 
    flex: 0 0 100%; /* Each image takes full width */
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    scroll-snap-align: start;
}
/* Slider Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.3s;
}
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin/Profile Components --- */
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid, .grid, .form-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
    --success: #27ae60;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }

/* --- CRITICAL FIX: Page Container Offset --- */
.page-container {
    padding-top: 100px; 
}

/* --- LOADING ANIMATION --- */
.loader-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-cream); z-index: 3000; display: flex;
    flex-direction: column; justify-content: center; align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite ease-in-out; transform-origin: bottom center; }
.loader-text { margin-top: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold-accent); letter-spacing: 1px; animation: pulse 1.5s infinite; }
@keyframes pound { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-15px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0deg) scale(0.9); } 75% { transform: translateY(-5px) rotate(5deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* --- Navbar --- */
nav {
    background: transparent; padding: 1rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
nav .logo { font-size: 1.8rem; color: var(--white); }
nav.scrolled .logo { color: var(--text-dark); }
.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; }
.nav-links .user-greeting { font-size: 0.9rem; margin-right: 15px; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }
.cart-icon-container { position: relative; cursor: pointer; margin-left: 15px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }
.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; margin-left: 10px; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.category-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }

/* --- Image Slider Styles --- */
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin/Profile Components --- */
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

/* --- NEW: Coupon Styles --- */
.coupon-section {
    margin: 20px 0;
    padding: 15px;
    background: #fdfdfd;
    border: 1px dashed var(--gold-accent);
    border-radius: 5px;
}
.coupon-input-group {
    display: flex;
    gap: 10px;
}
.coupon-input-group input {
    margin-bottom: 0;
    flex-grow: 1;
    text-transform: uppercase;
}
.coupon-msg {
    font-size: 0.8rem;
    margin-top: 5px;
    font-weight: bold;
}
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }

/* Pricing Summary in Checkout */
.pricing-summary {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #555;
}
.summary-row.total {
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px solid #ddd;
    padding-top: 10px;
    margin-top: 10px;
    color: var(--text-dark);
}
.summary-row.discount {
    color: var(--success);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid, .grid, .form-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&family=Kaushan+Script&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
    --success: #27ae60;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LOGO & TAGLINE --- */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; 
    color: var(--white);
    line-height: 1;
}
.tagline {
    font-family: 'Kaushan Script', cursive; /* Handwritten style */
    font-size: 0.9rem;
    color: var(--gold-accent);
    margin-left: 2px;
}
/* Navbar Scrolled State overrides */
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .tagline { color: var(--danger); /* Make it pop on white */ }


a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }
.page-container { padding-top: 100px; }

/* --- Navbar --- */
nav {
    background: transparent; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 20px; } /* Added gap */

/* Navigation Links Style */
.nav-link-item {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-link-item::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--gold-accent); transition: width 0.3s;
}
.nav-link-item:hover::after { width: 100%; }
nav.scrolled .nav-link-item { color: var(--text-dark); }

.nav-links .user-greeting { font-size: 0.9rem; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container { position: relative; cursor: pointer; margin-left: 20px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.category-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }

/* --- Image Slider Styles --- */
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* --- Product Buttons & Click Effect --- */
.card-body { padding: 15px; text-align: center; }
.btn-buy { 
    background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; 
    width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; 
    transition: transform 0.1s, background-color 0.2s;
}
/* Click Effect */
.btn-buy:active {
    transform: scale(0.95);
}
.btn-buy.added {
    background-color: var(--success);
    color: white;
}

.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }

/* --- Testimonials --- */
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin Components --- */
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }
.coupon-section { margin: 20px 0; padding: 15px; background: #fdfdfd; border: 1px dashed var(--gold-accent); border-radius: 5px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { margin-bottom: 0; flex-grow: 1; text-transform: uppercase; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.pricing-summary { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; color: var(--text-dark); }
.summary-row.discount { color: var(--success); }

/* Loader */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-cream); z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease-out, visibility 0.5s; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite ease-in-out; transform-origin: bottom center; }
.loader-text { margin-top: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold-accent); letter-spacing: 1px; animation: pulse 1.5s infinite; }
@keyframes pound { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-15px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0deg) scale(0.9); } 75% { transform: translateY(-5px) rotate(5deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid, .grid, .form-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}
/* --- Global "South Sutra" Theme --- */
/* --- NEW: Full Screen Image Modal --- */
.image-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); /* Dark overlay */
    z-index: 5000; /* On top of everything */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease-out;
}

.image-modal-content {
    max-width: 90%;
    max-height: 70vh;
    object-fit: contain;
    border: 2px solid var(--gold-accent);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.image-modal-desc {
    color: var(--bg-cream);
    margin-top: 20px;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
}

.image-modal-close:hover {
    color: var(--gold-accent);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LOGO & TAGLINE --- */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; 
    color: var(--white);
    line-height: 1;
}
.tagline {
    font-family: 'Kaushan Script', cursive; /* Handwritten style */
    font-size: 0.9rem;
    color: var(--gold-accent);
    margin-left: 2px;
}
/* Navbar Scrolled State overrides */
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .tagline { color: var(--danger); /* Make it pop on white */ }


a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }
.page-container { padding-top: 100px; }

/* --- Navbar --- */
nav {
    background: transparent; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 20px; } /* Added gap */

/* Navigation Links Style */
.nav-link-item {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}
.nav-link-item::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--gold-accent); transition: width 0.3s;
}
.nav-link-item:hover::after { width: 100%; }
nav.scrolled .nav-link-item { color: var(--text-dark); }

.nav-links .user-greeting { font-size: 0.9rem; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container { position: relative; cursor: pointer; margin-left: 20px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }
#mobile-admin-link { display: none; }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.category-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }

/* --- Image Slider Styles --- */
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

/* --- Product Buttons & Click Effect --- */
.card-body { padding: 15px; text-align: center; }
.btn-buy { 
    background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; 
    width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; 
    transition: transform 0.1s, background-color 0.2s;
}
/* Click Effect */
.btn-buy:active {
    transform: scale(0.95);
}
.btn-buy.added {
    background-color: var(--success);
    color: white;
}

.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }

/* --- Testimonials --- */
.testimonials { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 1200px; margin: 0 auto; }
.testimonial-card { background: var(--white); padding: 30px; border-radius: 8px; box-shadow: var(--shadow); }
.testimonial-card p.quote { font-style: italic; color: #555; margin-bottom: 20px; }
.testimonial-card p.author { font-weight: 700; color: var(--text-dark); }
.stars { color: var(--gold-accent); margin-bottom: 15px; }
footer { background: var(--text-dark); color: var(--bg-cream); padding: 60px 5%; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 40px; max-width: 1200px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid #444; }
.footer-col h4 { color: var(--white); margin-bottom: 20px; font-family: 'Playfair Display', serif; }
.footer-col a { display: block; color: #ccc; margin-bottom: 10px; transition: 0.3s; }
.footer-col a:hover { color: var(--gold-accent); }
.social-icons a { display: inline-block; font-size: 1.5rem; margin-right: 15px; color: var(--white); }
.footer-bottom { text-align: center; padding-top: 30px; font-size: 0.8rem; color: #aaa; }

/* --- Admin Components --- */
.admin-tabs { display: flex; justify-content: center; margin-bottom: 30px; margin-top: 70px; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-container { background: white; padding: 2rem; border-radius: 8px; box-shadow: var(--shadow); margin-bottom: 30px; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td, .admin-product-table th, .admin-product-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th, .admin-product-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }
.coupon-section { margin: 20px 0; padding: 15px; background: #fdfdfd; border: 1px dashed var(--gold-accent); border-radius: 5px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { margin-bottom: 0; flex-grow: 1; text-transform: uppercase; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.pricing-summary { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; color: var(--text-dark); }
.summary-row.discount { color: var(--success); }

/* Loader */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-cream); z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease-out, visibility 0.5s; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite ease-in-out; transform-origin: bottom center; }
.loader-text { margin-top: 20px; font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: bold; color: var(--gold-accent); letter-spacing: 1px; animation: pulse 1.5s infinite; }
@keyframes pound { 0%, 100% { transform: translateY(0) rotate(0deg); } 25% { transform: translateY(-15px) rotate(-15deg); } 50% { transform: translateY(0) rotate(0deg) scale(0.9); } 75% { transform: translateY(-5px) rotate(5deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger-menu { display: flex; }
    nav { padding: 1rem 5%; }
    .hero h1 { font-size: 2.5rem; }
    .promise-grid, .testimonial-grid, .footer-grid, .grid, .form-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; }
    .table-wrapper { overflow-x: auto; }
    .page-container { padding-top: 70px; }
}
/* ... (Keep all existing styles) ... */

/* --- My Orders Page Styles --- */
.order-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}
.order-card:hover { transform: translateY(-2px); }

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}
.order-id { font-weight: bold; color: var(--text-dark); }
.order-date { color: #777; font-size: 0.9rem; }

.order-body {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.order-items-list {
    flex: 2;
    min-width: 300px;
}
.order-item-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
.order-meta {
    flex: 1;
    min-width: 200px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 5px;
}

.status-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}
.status-Pending { background: #fff3cd; color: #856404; }
.status-Paid { background: #d1ecf1; color: #0c5460; }
.status-Shipped { background: #d4edda; color: #155724; }
.status-Delivered { background: #c3e6cb; color: #155724; }

.track-btn {
    display: inline-block;
    background: #7b1fa2; /* Shiprocket Purple */
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 10px;
    font-weight: bold;
    transition: 0.3s;
}
.track-btn:hover { background: #4a148c; color: white; }
.track-btn i { margin-right: 5px; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .order-body { flex-direction: column; }
    .order-header { flex-direction: column; align-items: flex-start; gap: 5px; }
}
/* ... (Keep all existing styles) ... */

/* --- NEW: Legal Pages Styling --- */
.legal-container {
    max-width: 800px; /* Narrower for readability */
    margin: 0 auto;
    padding: 120px 20px 60px; /* Top padding to clear fixed navbar */
}

.legal-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-dark);
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: #888;
    font-style: italic;
    margin-bottom: 50px;
    display: block;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-top: 50px;
    margin-bottom: 20px;
    color: var(--text-dark);
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 10px;
    display: inline-block;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-dark);
    font-weight: 700;
}

.legal-content p {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

.legal-content li {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 8px;
    list-style-type: disc;
}

.legal-content a {
    color: var(--danger);
    text-decoration: underline;
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&family=Kaushan+Script&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
    --success: #27ae60;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- LOGO & TAGLINE --- */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo { 
    font-family: 'Playfair Display', serif; 
    font-size: 1.8rem; 
    color: var(--white);
    line-height: 1;
}
.tagline {
    font-family: 'Kaushan Script', cursive; /* Handwritten style */
    font-size: 0.9rem;
    color: var(--gold-accent);
    margin-left: 2px;
}
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .tagline { color: var(--danger); }

a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }
.page-container { padding-top: 100px; }

/* --- Navbar --- */
nav {
    background: transparent; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 20px; } 

.nav-link-item {
    color: var(--white); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative;
}
.nav-link-item::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background-color: var(--gold-accent); transition: width 0.3s;
}
.nav-link-item:hover::after { width: 100%; }
nav.scrolled .nav-link-item { color: var(--text-dark); }

.nav-links .user-greeting { font-size: 0.9rem; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container { position: relative; cursor: pointer; margin-left: 20px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://www.tastingtable.com/img/gallery/tips-you-need-when-cooking-with-spices/l-intro-1670951341.jpg'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Sections --- */
.our-promise { background: var(--text-dark); color: var(--bg-cream); text-align: center; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1200px; margin: 0 auto; }
.promise-item i { font-size: 2.5rem; color: var(--gold-accent); margin-bottom: 15px; }
.promise-item h3 { color: var(--white); margin-bottom: 10px; }
#products { background: var(--bg-cream); }
.page-header { text-align: center; font-size: 2.5rem; margin-bottom: 30px; }
.category-title { font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark); margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }

/* --- Image Slider Styles --- */
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; }
.slider-next { right: 10px; }

.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: transform 0.1s, background 0.2s; }
.btn-buy:active { transform: scale(0.95); }
.btn-buy.added { background-color: var(--success); }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }

/* --- Cart & Modals --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 1500; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 350px; height: 100%; background: var(--bg-cream); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1600; display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.cart-sidebar.active { right: 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px; margin-bottom: 10px; border-radius: 5px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px 0; }
.cart-footer { border-top: 1px solid #ddd; padding-top: 20px; }
.remove-btn { color: var(--danger); cursor: pointer; }
.total-price { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: var(--bg-cream); padding: 2rem; border-radius: 10px; width: 90%; max-width: 450px; text-align: left; max-height: 90vh; overflow-y: auto; }
.close-btn { float: right; cursor: pointer; font-size: 1.5rem; }

/* --- Checkout Specifics --- */
.coupon-section { margin: 20px 0; padding: 15px; background: #fdfdfd; border: 1px dashed var(--gold-accent); border-radius: 5px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { margin-bottom: 0; flex-grow: 1; text-transform: uppercase; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.pricing-summary { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; color: var(--text-dark); }
.summary-row.discount { color: var(--success); }
.input-field { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- NEW: QR Payment Styles --- */
.qr-payment-container {
    text-align: center;
    background: white;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin: 15px 0;
}
.qr-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 10px;
}
.upi-id-text {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 5px 0;
    padding: 5px;
    background: #eee;
    border-radius: 4px;
    display: inline-block;
}

/* --- Image Modal --- */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 5000; flex-direction: column; justify-content: center; align-items: center; }
.image-modal.active { display: flex; }
.image-modal-content { max-width: 90%; max-height: 70vh; object-fit: contain; border: 2px solid var(--gold-accent); }
.image-modal-desc { color: var(--bg-cream); margin-top: 20px; font-size: 1.1rem; text-align: center; max-width: 600px; font-family: 'Playfair Display', serif; }
.image-modal-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 3rem; cursor: pointer; }

/* --- Loader --- */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-cream); z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite; }
@keyframes pound { 0%,100%{transform:translateY(0) rotate(0deg);} 25%{transform:translateY(-15px) rotate(-15deg);} 50%{transform:translateY(0) scale(0.9);} 75%{transform:translateY(-5px) rotate(5deg);} }

/* --- Admin --- */
.admin-tabs { display: flex; justify-content: center; margin: 70px 0 30px 0; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; } .tab-content.active { display: block; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th { background: var(--text-dark); color: white; }

@media (max-width: 768px) {
    .nav-links { display: none; } .hamburger-menu { display: flex; }
    .grid, .form-grid, .footer-grid, .promise-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; } .table-wrapper { overflow-x: auto; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&family=Kaushan+Script&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
    --success: #27ae60;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }
.page-container { padding-top: 100px; }
.category-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark);
    margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block;
}

/* --- Navbar --- */
nav {
    background: transparent; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.logo-container { display: flex; flex-direction: column; align-items: flex-start; }
.logo { font-size: 1.8rem; color: var(--white); line-height: 1; }
.tagline { font-family: 'Kaushan Script', cursive; font-size: 0.9rem; color: var(--gold-accent); margin-left: 2px; }
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .tagline { color: var(--danger); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link-item { color: var(--white); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
nav.scrolled .nav-link-item { color: var(--text-dark); }
.nav-link-item::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--gold-accent); transition: width 0.3s; }
.nav-link-item:hover::after { width: 100%; }

.nav-links .user-greeting { font-size: 0.9rem; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container { position: relative; cursor: pointer; margin-left: 20px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Mobile Menu --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Products --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; } .slider-next { right: 10px; }

.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: transform 0.1s, background 0.2s; }
.btn-buy:active { transform: scale(0.95); }
.btn-buy.added { background-color: var(--success); }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }

/* --- Cart & Modals --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 1500; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 350px; height: 100%; background: var(--bg-cream); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1600; display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.cart-sidebar.active { right: 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px; margin-bottom: 10px; border-radius: 5px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px 0; }
.cart-footer { border-top: 1px solid #ddd; padding-top: 20px; }
.remove-btn { color: var(--danger); cursor: pointer; }
.total-price { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: var(--bg-cream); padding: 2rem; border-radius: 10px; width: 90%; max-width: 450px; text-align: left; max-height: 90vh; overflow-y: auto; }
.close-btn { float: right; cursor: pointer; font-size: 1.5rem; }

/* --- Checkout Specifics --- */
.coupon-section { margin: 20px 0; padding: 15px; background: #fdfdfd; border: 1px dashed var(--gold-accent); border-radius: 5px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { margin-bottom: 0; flex-grow: 1; text-transform: uppercase; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.pricing-summary { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; color: var(--text-dark); }
.summary-row.discount { color: var(--success); }
.input-field { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- Manual Payment UI --- */
.qr-payment-container { text-align: center; background: white; padding: 15px; border: 1px solid #ddd; border-radius: 8px; margin: 15px 0; }
.qr-image { width: 150px; height: 150px; object-fit: contain; margin-bottom: 10px; }
.upi-id-text { font-size: 1.1rem; font-weight: bold; color: var(--text-dark); margin: 5px 0; padding: 5px; background: #eee; border-radius: 4px; display: inline-block; }

/* --- Image Modal --- */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 5000; flex-direction: column; justify-content: center; align-items: center; }
.image-modal.active { display: flex; }
.image-modal-content { max-width: 90%; max-height: 70vh; object-fit: contain; border: 2px solid var(--gold-accent); }
.image-modal-desc { color: var(--bg-cream); margin-top: 20px; font-size: 1.1rem; text-align: center; max-width: 600px; font-family: 'Playfair Display', serif; }
.image-modal-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 3rem; cursor: pointer; }

/* --- Loader --- */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-cream); z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite; }
@keyframes pound { 0%,100%{transform:translateY(0) rotate(0deg);} 25%{transform:translateY(-15px) rotate(-15deg);} 50%{transform:translateY(0) scale(0.9);} 75%{transform:translateY(-5px) rotate(5deg);} }

/* --- Admin --- */
.admin-tabs { display: flex; justify-content: center; margin: 70px 0 30px 0; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; } .tab-content.active { display: block; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

/* NEW: Form Button Style (Ensures visibility in admin panel) */
.form-btn {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    width: 100%;
    margin-bottom: 15px;
    transition: background 0.3s;
}
.form-btn:hover { background-color: #ddd; }

@media (max-width: 768px) {
    .nav-links { display: none; } .hamburger-menu { display: flex; }
    .grid, .form-grid, .footer-grid, .promise-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; } .table-wrapper { overflow-x: auto; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&family=Kaushan+Script&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
    --success: #27ae60;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }
.page-container { padding-top: 100px; }
.category-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark);
    margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block;
}

/* --- Navbar --- */
nav {
    background: transparent; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.logo-container { display: flex; flex-direction: column; align-items: flex-start; }
.logo { font-size: 1.8rem; color: var(--white); line-height: 1; }
.tagline { font-family: 'Kaushan Script', cursive; font-size: 0.9rem; color: var(--gold-accent); margin-left: 2px; }
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .tagline { color: var(--danger); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link-item { color: var(--white); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
nav.scrolled .nav-link-item { color: var(--text-dark); }
.nav-link-item::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--gold-accent); transition: width 0.3s; }
.nav-link-item:hover::after { width: 100%; }

.nav-links .user-greeting { font-size: 0.9rem; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container { position: relative; cursor: pointer; margin-left: 20px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Products --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; } .slider-next { right: 10px; }

.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: transform 0.1s, background 0.2s; }
.btn-buy:active { transform: scale(0.95); }
.btn-buy.added { background-color: var(--success); }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }

/* --- Cart & Modals --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 1500; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 350px; height: 100%; background: var(--bg-cream); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1600; display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.cart-sidebar.active { right: 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px; margin-bottom: 10px; border-radius: 5px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px 0; }
.cart-footer { border-top: 1px solid #ddd; padding-top: 20px; }
.remove-btn { color: var(--danger); cursor: pointer; }
.total-price { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: var(--bg-cream); padding: 2rem; border-radius: 10px; width: 90%; max-width: 450px; text-align: left; max-height: 90vh; overflow-y: auto; }
.close-btn { float: right; cursor: pointer; font-size: 1.5rem; }

/* --- Checkout Specifics --- */
.coupon-section { margin: 20px 0; padding: 15px; background: #fdfdfd; border: 1px dashed var(--gold-accent); border-radius: 5px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { margin-bottom: 0; flex-grow: 1; text-transform: uppercase; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.pricing-summary { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; color: var(--text-dark); }
.summary-row.discount { color: var(--success); }
.input-field { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- Manual Payment UI --- */
.qr-payment-container { text-align: center; background: white; padding: 15px; border: 1px solid #ddd; border-radius: 8px; margin: 15px 0; }
.qr-image { width: 150px; height: 150px; object-fit: contain; margin-bottom: 10px; }
.upi-id-text { font-size: 1.1rem; font-weight: bold; color: var(--text-dark); margin: 5px 0; padding: 5px; background: #eee; border-radius: 4px; display: inline-block; }

/* --- Image Modal --- */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 5000; flex-direction: column; justify-content: center; align-items: center; }
.image-modal.active { display: flex; }
.image-modal-content { max-width: 90%; max-height: 70vh; object-fit: contain; border: 2px solid var(--gold-accent); }
.image-modal-desc { color: var(--bg-cream); margin-top: 20px; font-size: 1.1rem; text-align: center; max-width: 600px; font-family: 'Playfair Display', serif; }
.image-modal-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 3rem; cursor: pointer; }

/* --- Loader --- */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-cream); z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite; }
@keyframes pound { 0%,100%{transform:translateY(0) rotate(0deg);} 25%{transform:translateY(-15px) rotate(-15deg);} 50%{transform:translateY(0) scale(0.9);} 75%{transform:translateY(-5px) rotate(5deg);} }

/* --- Admin --- */
.admin-tabs { display: flex; justify-content: center; margin: 70px 0 30px 0; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; } .tab-content.active { display: block; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

.form-btn { background-color: #eee; color: #333; border: 1px solid #ccc; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-weight: bold; width: 100%; margin-bottom: 15px; transition: background 0.3s; }
.form-btn:hover { background-color: #ddd; }

/* --- NEW: Video Section --- */
.video-section { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; }
.video-card { background: white; padding: 15px; border-radius: 8px; box-shadow: var(--shadow); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 4px; margin-bottom: 15px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-desc { font-size: 1rem; color: #555; line-height: 1.6; }

@media (max-width: 768px) {
    .nav-links { display: none; } .hamburger-menu { display: flex; }
    .grid, .form-grid, .footer-grid, .promise-grid, .video-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; } .table-wrapper { overflow-x: auto; }
}
/* --- Global "South Sutra" Theme --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700&family=Lato:wght@300;400;700&family=Kaushan+Script&display=swap');

:root {
    --bg-cream: #F9F7F2;
    --text-dark: #1A2E27;
    --gold-accent: #C5A065;
    --white: #FFFFFF;
    --danger: #d35400;
    --shadow: 0 10px 30px rgba(26, 46, 39, 0.08);
    --success: #27ae60;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, .logo { font-family: 'Playfair Display', serif; }
a { color: var(--gold-accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.page-section { padding: 60px 20px; }
.page-container { padding-top: 100px; }
.category-title {
    font-family: 'Playfair Display', serif; font-size: 2rem; color: var(--text-dark);
    margin: 40px 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid var(--gold-accent); display: inline-block;
}

/* --- Navbar --- */
nav {
    background: transparent; padding: 0.8rem 5%; display: flex; justify-content: space-between; align-items: center;
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-sizing: border-box;
    transition: background 0.3s ease-in-out, border 0.3s ease-in-out; border-bottom: 1px solid transparent;
}
nav.scrolled { background: var(--bg-cream); border-bottom: 1px solid rgba(197, 160, 101, 0.2); box-shadow: 0 2px 10px rgba(0,0,0,0.05); }

.logo-container { display: flex; flex-direction: column; align-items: flex-start; }
.logo { font-size: 1.8rem; color: var(--white); line-height: 1; }
.tagline { font-family: 'Kaushan Script', cursive; font-size: 0.9rem; color: var(--gold-accent); margin-left: 2px; }
nav.scrolled .logo { color: var(--text-dark); }
nav.scrolled .tagline { color: var(--danger); }

.nav-right-side { display: flex; align-items: center; }
.nav-links { display: flex; align-items: center; gap: 20px; }

.nav-link-item { color: var(--white); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.5px; position: relative; }
nav.scrolled .nav-link-item { color: var(--text-dark); }
.nav-link-item::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--gold-accent); transition: width 0.3s; }
.nav-link-item:hover::after { width: 100%; }

.nav-links .user-greeting { font-size: 0.9rem; font-weight: bold; color: var(--white); }
nav.scrolled .nav-links .user-greeting { color: var(--text-dark); }

.cart-icon-container { position: relative; cursor: pointer; margin-left: 20px; color: var(--white); }
nav.scrolled .cart-icon-container { color: var(--text-dark); }
.cart-count { position: absolute; top: -5px; right: -10px; background: var(--gold-accent); color: var(--text-dark); border-radius: 50%; width: 18px; height: 18px; font-size: 0.7rem; font-weight: bold; display: flex; justify-content: center; align-items: center; }

.nav-btn { text-decoration: none; color: var(--white); border: 1px solid var(--white); padding: 6px 15px; border-radius: 30px; font-size: 0.9rem; transition: 0.3s; cursor: pointer; background: transparent; }
nav.scrolled .nav-btn { color: var(--text-dark); border: 1px solid var(--text-dark); }
.nav-btn:hover { background: var(--white); color: var(--text-dark); }
nav.scrolled .nav-btn:hover { background: var(--text-dark); color: var(--white); }
#admin-link { display: none; }

/* --- Hamburger --- */
.hamburger-menu { display: none; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 15px; }
.hamburger-menu span { width: 100%; height: 3px; background-color: var(--white); border-radius: 5px; transition: 0.3s; }
nav.scrolled .hamburger-menu span { background-color: var(--text-dark); }
.hamburger-menu.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* --- Mobile Menu --- */
.mobile-nav-menu { display: none; position: fixed; top: 65px; left: 0; width: 100%; height: calc(100vh - 65px); background: var(--bg-cream); z-index: 999; flex-direction: column; align-items: center; padding-top: 30px; transform: translateX(-100%); transition: transform 0.3s; }
.mobile-nav-menu.active { display: flex; transform: translateX(0); }
.mobile-nav-menu a, .mobile-nav-menu button { font-size: 1.2rem; padding: 15px 0; width: 80%; text-align: center; color: var(--text-dark); border-bottom: 1px solid rgba(0,0,0,0.1); }
.mobile-nav-menu .nav-btn { margin-top: 15px; margin-left: 0; color: var(--text-dark); border: 1px solid var(--text-dark); }

/* --- Hero --- */
.hero { height: 85vh; min-height: 500px; background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1596040033229-a9821ebd058d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80'); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; color: var(--white); padding: 20px; }
.hero h1 { font-size: 3.5rem; margin-bottom: 10px; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; letter-spacing: 1px; }
.hero-btn { font-weight: 700; color: var(--text-dark); background: var(--white); padding: 12px 30px; border-radius: 30px; transition: 0.3s; }
.hero-btn:hover { background: var(--gold-accent); color: var(--white); }

/* --- Products --- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.card { background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); transition: 0.3s; }
.img-container { width: 100%; height: 250px; position: relative; }
.img-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; height: 100%; scrollbar-width: none; scroll-behavior: smooth; }
.img-slider::-webkit-scrollbar { display: none; }
.img-slider img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; cursor: zoom-in; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; border: none; border-radius: 50%; width: 30px; height: 30px; cursor: pointer; display: flex; justify-content: center; align-items: center; z-index: 10; opacity: 0; transition: opacity 0.3s; }
.img-container:hover .slider-arrow { opacity: 1; }
.slider-prev { left: 10px; } .slider-next { right: 10px; }

.card-body { padding: 15px; text-align: center; }
.btn-buy { background-color: var(--text-dark); color: var(--white); border: none; padding: 10px 0; width: 100%; font-weight: bold; cursor: pointer; text-transform: uppercase; transition: transform 0.1s, background 0.2s; }
.btn-buy:active { transform: scale(0.95); }
.btn-buy.added { background-color: var(--success); }
.card.out-of-stock { opacity: 0.7; filter: grayscale(0.8); }
.card.out-of-stock .img-container::after { content: "OUT OF STOCK"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(0,0,0,0.7); color: white; padding: 8px 15px; border-radius: 4px; font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; white-space: nowrap; z-index: 20;}
.btn-buy:disabled { background-color: #ccc; cursor: not-allowed; color: #666; }

/* --- Cart & Modals --- */
.cart-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 1500; }
.cart-sidebar { position: fixed; top: 0; right: -100%; width: 350px; height: 100%; background: var(--bg-cream); transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1); z-index: 1600; display: flex; flex-direction: column; padding: 20px; box-sizing: border-box; box-shadow: -5px 0 20px rgba(0,0,0,0.1); }
.cart-sidebar.active { right: 0; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: white; padding: 10px; margin-bottom: 10px; border-radius: 5px; }
.cart-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-items { flex-grow: 1; overflow-y: auto; padding: 20px 0; }
.cart-footer { border-top: 1px solid #ddd; padding-top: 20px; }
.remove-btn { color: var(--danger); cursor: pointer; }
.total-price { display: flex; justify-content: space-between; font-weight: bold; font-size: 1.2rem; margin-bottom: 15px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: var(--bg-cream); padding: 2rem; border-radius: 10px; width: 90%; max-width: 450px; text-align: left; max-height: 90vh; overflow-y: auto; }
.close-btn { float: right; cursor: pointer; font-size: 1.5rem; }

/* --- Checkout Specifics --- */
.coupon-section { margin: 20px 0; padding: 15px; background: #fdfdfd; border: 1px dashed var(--gold-accent); border-radius: 5px; }
.coupon-input-group { display: flex; gap: 10px; }
.coupon-input-group input { margin-bottom: 0; flex-grow: 1; text-transform: uppercase; }
.coupon-msg { font-size: 0.8rem; margin-top: 5px; font-weight: bold; }
.coupon-msg.success { color: var(--success); }
.coupon-msg.error { color: var(--danger); }
.pricing-summary { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; }
.summary-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 5px; color: #555; }
.summary-row.total { font-weight: bold; font-size: 1.2rem; border-top: 1px solid #ddd; padding-top: 10px; margin-top: 10px; color: var(--text-dark); }
.summary-row.discount { color: var(--success); }
.input-field { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; box-sizing: border-box; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* --- Manual Payment UI --- */
.qr-payment-container { text-align: center; background: white; padding: 15px; border: 1px solid #ddd; border-radius: 8px; margin: 15px 0; }
.qr-image { width: 150px; height: 150px; object-fit: contain; margin-bottom: 10px; }
.upi-id-text { font-size: 1.1rem; font-weight: bold; color: var(--text-dark); margin: 5px 0; padding: 5px; background: #eee; border-radius: 4px; display: inline-block; }

/* --- Image Modal --- */
.image-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 5000; flex-direction: column; justify-content: center; align-items: center; }
.image-modal.active { display: flex; }
.image-modal-content { max-width: 90%; max-height: 70vh; object-fit: contain; border: 2px solid var(--gold-accent); }
.image-modal-desc { color: var(--bg-cream); margin-top: 20px; font-size: 1.1rem; text-align: center; max-width: 600px; font-family: 'Playfair Display', serif; }
.image-modal-close { position: absolute; top: 20px; right: 30px; color: var(--white); font-size: 3rem; cursor: pointer; }

/* --- Loader --- */
.loader-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--bg-cream); z-index: 3000; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s; }
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-icon { font-size: 4rem; color: var(--text-dark); animation: pound 0.8s infinite; }
@keyframes pound { 0%,100%{transform:translateY(0) rotate(0deg);} 25%{transform:translateY(-15px) rotate(-15deg);} 50%{transform:translateY(0) scale(0.9);} 75%{transform:translateY(-5px) rotate(5deg);} }

/* --- Admin --- */
.admin-tabs { display: flex; justify-content: center; margin: 70px 0 30px 0; }
.admin-tab { padding: 10px 20px; cursor: pointer; font-weight: bold; border-bottom: 3px solid transparent; }
.admin-tab.active { color: var(--gold-accent); border-bottom-color: var(--gold-accent); }
.tab-content { display: none; } .tab-content.active { display: block; }
.order-table, .admin-product-table { width: 100%; border-collapse: collapse; background: white; }
.order-table th, .order-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #ddd; }
.order-table th { background: var(--text-dark); color: white; }
.product-select-wrapper { display: flex; margin-bottom: 15px; border: 1px solid #ddd; border-radius: 4px; }
.product-select-label { padding: 10px; background: #f1f1f1; font-weight: bold; }
.product-select { flex-grow: 1; padding: 10px; border: none; background: white; cursor: pointer; }
#variants-container { margin-top: 20px; padding-top: 20px; border-top: 1px solid #eee; }
.variant-input-group { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.variant-input-group .input-field { margin-bottom: 0; }
.checkbox-wrapper { display: flex; align-items: center; margin-bottom: 15px; }
.checkbox-wrapper input { width: auto; margin-right: 10px; transform: scale(1.2); cursor: pointer; }
.checkbox-wrapper label { font-weight: bold; cursor: pointer; }
.dashboard-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 20px; border-radius: 8px; box-shadow: var(--shadow); text-align: center; border: 1px solid #eee; }
.stat-card h3 { font-size: 1rem; color: #666; margin-bottom: 5px; font-family: 'Lato', sans-serif; }
.stat-card p { font-size: 2.5rem; font-weight: bold; color: var(--gold-accent); margin: 0; line-height: 1; }

.form-btn { background-color: #eee; color: #333; border: 1px solid #ccc; padding: 8px 15px; border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-weight: bold; width: 100%; margin-bottom: 15px; transition: background 0.3s; }
.form-btn:hover { background-color: #ddd; }

/* --- NEW: Video Section --- */
.video-section { background: var(--bg-cream); border-top: 1px solid #eee; text-align: center; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; max-width: 1000px; margin: 0 auto; }
.video-card { background: white; padding: 15px; border-radius: 8px; box-shadow: var(--shadow); }
.video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 4px; margin-bottom: 15px; }
.video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-desc { font-size: 1rem; color: #555; line-height: 1.6; }

/* --- NEW: Blog Styling --- */
.blog-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 120px 20px 60px; /* Offset fixed header */
    color: #444;
}
.blog-header {
    text-align: center;
    margin-bottom: 50px;
}
.blog-header h1 {
    font-size: 3rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}
.blog-header p {
    font-family: 'Kaushan Script', cursive;
    color: var(--gold-accent);
    font-size: 1.2rem;
}
.blog-content h2 {
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 15px;
    border-left: 4px solid var(--gold-accent);
    padding-left: 15px;
}
.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
.blog-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}
.blog-content ul li {
    background: #fff;
    padding: 15px;
    border-left: 3px solid #ddd;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.blog-content ul li strong {
    color: var(--danger);
}
.blog-tags {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}
.tag {
    display: inline-block;
    background: #eee;
    color: #555;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-right: 5px;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    .nav-links { display: none; } .hamburger-menu { display: flex; }
    .grid, .form-grid, .footer-grid, .promise-grid, .video-grid { grid-template-columns: 1fr; }
    .cart-sidebar { width: 85%; } .table-wrapper { overflow-x: auto; }
}

/* ... (Keep previous styles) ... */

/* --- IMPROVED: Manual Payment UI --- */
.qr-payment-container {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Horizontally Center */
    justify-content: center;  /* Vertically Center */
    background: #fdfdfd;
    padding: 20px;
    border: 2px dashed var(--gold-accent); /* Distinct look */
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.02);
}

.qr-title {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.qr-image {
    width: 180px;      /* Fixed width */
    height: 180px;     /* Fixed height */
    object-fit: contain;
    background: white;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
}

.upi-id-wrapper {
    text-align: center;
}

.upi-label {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 4px;
    display: block;
}

.upi-id-text {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-dark);
    background: #eef;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #ccd;
    font-family: monospace; /* Makes ID easier to read */
    letter-spacing: 0.5px;
    user-select: all; /* Easy copy-paste */
    display: inline-block;
}

/* ... (Keep remaining styles) ... */