/* ============================================
   CrispyChips - Complete Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --primary: #e67e22;
    --primary-dark: #d35400;
    --primary-light: #f39c12;
    --secondary: #27ae60;
    --secondary-dark: #219a52;
    --dark: #2c3e50;
    --dark-light: #34495e;
    --light: #ecf0f1;
    --lighter: #f8f9fa;
    --white: #ffffff;
    --gray: #95a5a6;
    --gray-light: #bdc3c7;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --info: #3498db;
    --shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.12);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--lighter);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Flash Messages
   ============================================ */
.flash-messages {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    width: 90%;
}

.flash-message {
    padding: 15px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.4s ease-out;
    box-shadow: var(--shadow-lg);
    font-weight: 500;
}

.flash-message.success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid var(--secondary);
}

.flash-message.error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid var(--danger);
}

.flash-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
    color: inherit;
}

.flash-close:hover {
    opacity: 1;
}

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

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.nav-logo span {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-logo .logo-icon {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--dark-light);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: rgba(230, 126, 34, 0.08);
}

.nav-cart {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.3s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1.3);
    }

    100% {
        transform: scale(1);
    }
}

.nav-auth {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-login {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--primary);
    border: 2px solid var(--primary);
    transition: var(--transition);
    font-size: 0.9rem;
}

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

.btn-signup {
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    background: var(--primary);
    color: white;
    border: 2px solid var(--primary);
    transition: var(--transition);
    font-size: 0.9rem;
}

.btn-signup:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.user-menu {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    background: rgba(230, 126, 34, 0.08);
    cursor: pointer;
    font-weight: 500;
    color: var(--dark);
    border: none;
    font-family: var(--font);
    font-size: 0.9rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    overflow: hidden;
    z-index: 1001;
}

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

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    font-size: 0.9rem;
    color: var(--dark-light);
    border-bottom: 1px solid var(--light);
}

.user-dropdown a:hover {
    background: var(--lighter);
    color: var(--primary);
}

.user-dropdown a:last-child {
    border-bottom: none;
    color: var(--danger);
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    padding: 5px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    background: linear-gradient(135deg, #fff5e6 0%, #ffecd2 50%, #fcb69f33 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 126, 34, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

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

.hero-text h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero-text h1 .highlight {
    color: var(--primary);
    position: relative;
}

.hero-text h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(230, 126, 34, 0.2);
    border-radius: 4px;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-emoji {
    font-size: 15rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 126, 34, 0.4);
}

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

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

.btn-success {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

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

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   Section Styling
   ============================================ */
.section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-header .section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--primary-light));
    border-radius: 2px;
    margin: 15px auto 0;
}

/* ============================================
   Categories
   ============================================ */
.categories {
    background: var(--white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.category-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #fff5e6, #ffecd2);
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.category-card.bhindi {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
}

.category-card.bhindi:hover {
    border-color: var(--secondary);
}

.category-card.combo {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
}

.category-emoji {
    font-size: 4rem;
    margin-bottom: 15px;
    display: block;
}

.category-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   Product Card
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
}

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

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

.product-image {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #fff5e6, #ffecd2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

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

.product-image .product-emoji {
    font-size: 5rem;
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 2;
}

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

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

.badge-category {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: var(--dark-light);
    z-index: 2;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.product-weight {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 12px;
}

.stars {
    color: var(--warning);
    font-size: 0.85rem;
}

.rating-text {
    font-size: 0.8rem;
    color: var(--gray);
}

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

.current-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.original-price {
    font-size: 1rem;
    color: var(--gray);
    text-decoration: line-through;
}

.discount-percent {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(39, 174, 96, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

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

.product-actions .btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

.btn-add-cart {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font);
    transition: var(--transition);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.3);
}

.btn-add-cart.added {
    background: var(--secondary);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--white);
}

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

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.testimonial-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.testimonial-stars {
    color: var(--warning);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--dark-light);
    margin-bottom: 20px;
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 600;
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-section p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section .btn {
    background: white;
    color: var(--primary);
    font-weight: 700;
}

.cta-section .btn:hover {
    background: var(--lighter);
    transform: translateY(-3px);
}

/* ============================================
   About Page
   ============================================ */
.about-hero {
    background: linear-gradient(135deg, #fff5e6, #ffecd2);
    padding: 60px 0;
    text-align: center;
}

.about-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 15px;
}

.about-hero p {
    color: var(--gray);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.about-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.about-text p {
    color: var(--dark-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.about-emoji {
    font-size: 12rem;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.value-card h3 {
    font-weight: 700;
    margin-bottom: 10px;
}

.value-card p {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ============================================
   Products Page Filter
   ============================================ */
.filter-bar {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-bar label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-light);
}

.filter-bar select,
.filter-bar input {
    padding: 10px 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

.filter-bar select:focus,
.filter-bar input:focus {
    border-color: var(--primary);
}

.filter-search {
    flex: 1;
    min-width: 200px;
}

/* ============================================
   Cart Page
   ============================================ */
.cart-page {
    padding: 40px 0 80px;
}

.cart-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 30px;
    align-items: start;
}

.cart-items {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
}

.cart-item:hover {
    background: var(--lighter);
}

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

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #fff5e6, #ffecd2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-image .item-emoji {
    font-size: 2.5rem;
}

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

.cart-item-details h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.cart-item-details .item-weight {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}

.cart-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}

.quantity-control {
    display: flex;
    align-items: center;
    gap: 0;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.qty-btn {
    background: var(--lighter);
    border: none;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-value {
    width: 40px;
    text-align: center;
    font-weight: 600;
    font-size: 0.95rem;
    background: white;
    border: none;
    border-left: 2px solid var(--light);
    border-right: 2px solid var(--light);
    height: 36px;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray);
    cursor: pointer;
    font-size: 1.3rem;
    padding: 5px;
    transition: var(--transition);
    border-radius: 50%;
}

.cart-item-remove:hover {
    color: var(--danger);
    background: rgba(231, 76, 60, 0.1);
}

/* Cart Summary */
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    position: sticky;
    top: 90px;
}

.cart-summary h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.summary-row.total {
    font-size: 1.2rem;
    font-weight: 800;
    padding-top: 15px;
    border-top: 2px solid var(--light);
    margin-top: 15px;
    color: var(--dark);
}

.summary-row .text-success {
    color: var(--secondary);
    font-weight: 600;
}

.free-delivery-note {
    background: rgba(39, 174, 96, 0.08);
    color: var(--secondary);
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin: 15px 0;
    text-align: center;
    font-weight: 500;
}

.cart-summary .btn {
    margin-top: 15px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.empty-cart-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-cart h2 {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.empty-cart p {
    color: var(--gray);
    margin-bottom: 25px;
}

/* ============================================
   Order / Checkout Page
   ============================================ */
.checkout-page {
    padding: 40px 0 80px;
}

.checkout-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.checkout-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
}

.form-section {
    margin-bottom: 25px;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-light);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-options {
    display: flex;
    gap: 15px;
}

.payment-option {
    flex: 1;
    padding: 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.payment-option:hover,
.payment-option.selected {
    border-color: var(--primary);
    background: rgba(230, 126, 34, 0.05);
}

.payment-option input {
    display: none;
}

.payment-icon {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.payment-label {
    font-weight: 600;
    font-size: 0.85rem;
}

/* Order Summary Sidebar */
.order-summary-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 25px;
    position: sticky;
    top: 90px;
}

.order-summary-sidebar h3 {
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

.order-item {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
}

.order-item:last-of-type {
    border-bottom: none;
}

.order-item-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #fff5e6, #ffecd2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    overflow: hidden;
}

.order-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.order-item-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
}

.order-item-info span {
    font-size: 0.8rem;
    color: var(--gray);
}

.order-item-total {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary);
    white-space: nowrap;
}

/* ============================================
   Order Success
   ============================================ */
.order-success {
    text-align: center;
    padding: 80px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.success-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: popIn 0.5s ease;
}

.order-success h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.order-number {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    background: rgba(230, 126, 34, 0.1);
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    margin: 15px 0 25px;
}

.order-success p {
    color: var(--gray);
    margin-bottom: 30px;
    line-height: 1.7;
}

.order-details-box {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    text-align: left;
    margin-bottom: 30px;
}

.order-details-box h3 {
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--dark);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--light);
}

.detail-row:last-child {
    border-bottom: none;
    font-weight: 700;
    font-size: 1.1rem;
    padding-top: 12px;
    margin-top: 5px;
    border-top: 2px solid var(--light);
}

/* ============================================
   My Orders
   ============================================ */
.orders-page {
    padding: 40px 0 80px;
}

.orders-page h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 30px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    overflow: hidden;
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: var(--lighter);
    flex-wrap: wrap;
    gap: 10px;
}

.order-card-header h3 {
    font-size: 1rem;
    font-weight: 700;
}

.order-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

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

.status-confirmed {
    background: #cce5ff;
    color: #004085;
}

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

.status-shipped {
    background: #d1ecf1;
    color: #0c5460;
}

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

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.order-card-body {
    padding: 20px;
}

.order-items-list {
    margin-bottom: 15px;
}

.order-list-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--light);
}

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

.order-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 2px solid var(--light);
}

.order-total {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
}

.order-date {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ============================================
   Auth Pages
   ============================================ */
.auth-page {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #fff5e6, #ffecd2);
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header .logo {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.auth-header h1 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 5px;
}

.auth-header p {
    color: var(--gray);
    font-size: 0.95rem;
}

.auth-form .form-group {
    margin-bottom: 18px;
}

.auth-form .form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark-light);
    margin-bottom: 6px;
    display: block;
}

.auth-form .form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    outline: none;
    transition: var(--transition);
}

.auth-form .form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 126, 34, 0.1);
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--gray);
}

.auth-link a {
    color: var(--primary);
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ============================================
   Admin Dashboard
   ============================================ */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    padding: 20px 0;
    flex-shrink: 0;
}

.admin-sidebar .sidebar-header {
    padding: 10px 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
}

.admin-sidebar .sidebar-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-light);
}

.admin-sidebar .sidebar-header p {
    font-size: 0.8rem;
    opacity: 0.6;
}

.admin-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
    background: rgba(255, 255, 255, 0.08);
    color: white;
    border-left-color: var(--primary);
}

.admin-content {
    flex: 1;
    padding: 30px;
    background: var(--lighter);
    overflow-y: auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.stat-card-icon.orange {
    background: rgba(230, 126, 34, 0.1);
}

.stat-card-icon.green {
    background: rgba(39, 174, 96, 0.1);
}

.stat-card-icon.blue {
    background: rgba(52, 152, 219, 0.1);
}

.stat-card-icon.purple {
    background: rgba(155, 89, 182, 0.1);
}

.stat-card-info h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-card-info p {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

/* Admin Table */
.admin-table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--light);
}

.admin-table-header h3 {
    font-weight: 700;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background: var(--lighter);
}

.admin-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--light);
    font-size: 0.9rem;
    vertical-align: middle;
}

.admin-table tr:hover {
    background: var(--lighter);
}

.admin-table .product-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    background: var(--lighter);
}

.table-actions {
    display: flex;
    gap: 8px;
}

.table-actions a,
.table-actions button {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-family: var(--font);
}

.btn-edit {
    background: rgba(52, 152, 219, 0.1);
    color: var(--info);
}

.btn-edit:hover {
    background: var(--info);
    color: white;
}

.btn-delete {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: white;
}

/* Admin Form */
.admin-form {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 30px;
    max-width: 700px;
}

.admin-form h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 15px;
}

.footer-brand p {
    line-height: 1.7;
    font-size: 0.9rem;
}

.footer h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 15px;
}

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

.footer ul li a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ============================================
   Admin Login
   ============================================ */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    padding: 20px;
}

.admin-login-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Responsive Design
   ============================================ */
/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        width: 200px;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-auth,
    .user-menu {
        display: none !important;
    }

    /* ✅ SHOW hamburger on mobile */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--dark);
        padding: 5px;
        line-height: 1;
        width: 40px;
        height: 40px;
        border-radius: var(--radius-sm);
        transition: var(--transition);
    }

    .mobile-toggle:hover {
        background: rgba(230, 126, 34, 0.08);
        color: var(--primary);
    }

    .nav-container {
        position: relative;
    }

    /* ✅ Mobile nav hidden by default */
    .mobile-nav {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 var(--radius) var(--radius);
        padding: 10px 15px 15px;
        z-index: 999;
        border-top: 2px solid var(--light);
    }

    /* ✅ Show when JS adds .show */
    .mobile-nav.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-nav a {
        display: block;
        padding: 12px 15px;
        border-radius: var(--radius-sm);
        font-weight: 500;
        color: var(--dark);
        font-size: 1rem;
        border-bottom: 1px solid var(--lighter);
        transition: var(--transition);
    }

    .mobile-nav a:last-of-type {
        border-bottom: none;
    }

    .mobile-nav a:hover {
        background: rgba(230, 126, 34, 0.08);
        color: var(--primary);
        padding-left: 20px;
    }

    .mobile-nav .mobile-auth {
        display: flex;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 2px solid var(--light);
    }

    .mobile-nav .mobile-auth a {
        flex: 1;
        text-align: center;
        border-bottom: none;
        padding: 10px;
    }

    .mobile-nav .mobile-auth a:hover {
        padding-left: 10px;
    }

    /* ===== Rest of mobile styles ===== */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-emoji {
        font-size: 8rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cart-layout {
        grid-template-columns: 1fr;
    }

    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-emoji {
        font-size: 6rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .payment-options {
        flex-direction: column;
    }

    .admin-sidebar {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px;
    }

    .cart-item {
        flex-wrap: wrap;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ✅ Desktop - hide mobile elements */
@media (min-width: 769px) {
    .mobile-nav {
        display: none !important;
    }

    .mobile-toggle {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 15px;
    }

    .section {
        padding: 50px 0;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .auth-card {
        padding: 25px;
    }

    .cart-item {
        gap: 12px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Animations & Transitions
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
}

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

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px);
    background: var(--primary-dark);
}

/* Toggle Switch (Admin) */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gray-light);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: white;
    bottom: 3px;
    left: 3px;
    transition: var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
    background: var(--secondary);
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(20px);
}

/* Admin Login Page specific overrides */
.admin-login-page .flash-messages {
    position: fixed;
    top: 20px;
}