/* ==========================================
   EcoFresh Mart - Complete E-Commerce CSS
   Color Scheme: Fresh Green & Warm Orange
   ========================================== */

:root {
    --primary: #2d8a4e;
    --primary-dark: #1e6b37;
    --primary-darker: #155d2e;
    --primary-light: #e8f5e9;
    --primary-glow: rgba(45,138,78,0.15);
    --secondary: #ff6b35;
    --secondary-dark: #e55a2b;
    --secondary-light: #fff3e0;
    --secondary-glow: rgba(255,107,53,0.2);
    --accent: #4caf50;
    --accent-glow: rgba(76,175,80,0.15);
    --dark: #0f0f23;
    --dark-soft: #1a1a2e;
    --text: #1a1a2e;
    --text-light: #6b7280;
    --white: #ffffff;
    --light: #f3f4f6;
    --border: #e5e7eb;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --success: #10b981;
    --info: #3b82f6;
    /* 3D Depth Shadows */
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 2px 8px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1), 0 3px 10px rgba(0,0,0,0.06);
    --shadow-xl: 0 15px 50px rgba(0,0,0,0.12), 0 5px 18px rgba(0,0,0,0.06);
    --shadow-3d: 0 1px 0 rgba(255,255,255,0.3) inset, 0 -1px 0 rgba(0,0,0,0.08) inset;
    --shadow-glow-primary: 0 0 20px rgba(45,138,78,0.15), 0 0 40px rgba(45,138,78,0.05);
    --shadow-glow-secondary: 0 0 20px rgba(255,107,53,0.15), 0 0 40px rgba(255,107,53,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Glass */
    --glass-bg: rgba(255,255,255,0.7);
    --glass-bg-strong: rgba(255,255,255,0.85);
    --glass-border: rgba(255,255,255,0.4);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #2d8a4e, #1e6b37, #155d2e);
    --gradient-primary-light: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    --gradient-secondary: linear-gradient(135deg, #ff6b35, #e55a2b);
    --gradient-hero: linear-gradient(135deg, #1e6b37 0%, #2d8a4e 50%, #3da55e 100%);
    --gradient-dark: linear-gradient(135deg, #0f0f23, #1a1a2e);
    --gradient-gold: linear-gradient(135deg, #f59e0b, #d97706);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--text);
    line-height: 1.6;
}

/* Mobile First Base */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.col { flex: 1; padding: 0 10px; }

/* ===== TOP HEADER ===== */
.top-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 8px 0;
    font-size: 13px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.top-header .container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}
.top-header a { color: var(--white); text-decoration: none; margin-left: 15px; }

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo span { color: var(--secondary); }
.logo img { height: 40px; }

/* Search Bar */
.search-bar {
    flex: 1;
    max-width: 500px;
    position: relative;
}
.search-bar input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid var(--border);
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}
.search-bar input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.1);
}
.search-bar button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}
.search-bar button:hover { background: var(--primary-dark); }

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 20px;
}
.header-icons a {
    color: var(--text);
    text-decoration: none;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
    gap: 2px;
    transition: var(--transition);
}
.header-icons a:hover { color: var(--primary); }
.header-icons a i { font-size: 22px; }
.header-icons .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--secondary);
    color: var(--white);
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}
.mobile-search-toggle { display: none; }

/* ===== NAVIGATION ===== */
.main-nav {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 0;
}
.main-nav .container { display: flex; align-items: center; }
.nav-list {
    display: flex;
    list-style: none;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0;
}
.nav-list::-webkit-scrollbar { display: none; }
.nav-list li a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}
.nav-list li a:hover,
.nav-list li a.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-light);
}
.nav-list li a i { font-size: 16px; color: var(--secondary); }

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    margin: 20px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    min-height: 250px;
    display: flex;
    align-items: center;
}
.banner-slider {
    position: relative;
    width: 100%;
}
.banner-slide {
    display: none;
    padding: 40px;
    color: var(--white);
}
.banner-slide.active { display: block; }
.banner-slide h2 { font-size: 32px; margin-bottom: 10px; }
.banner-slide p { font-size: 16px; opacity: 0.9; margin-bottom: 20px; }
.banner-slide .btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: var(--white);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}
.banner-slide .btn:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(255,107,53,0.4); }
.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.banner-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}
.banner-dots span.active { background: var(--white); width: 25px; border-radius: 5px; }

/* ===== CATEGORY CARDS ===== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 25px 0 15px;
}
.section-title h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
}
.section-title a {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 25px;
}
.category-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    display: block;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}
.category-card .icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 24px;
    color: var(--primary);
    transition: var(--transition);
}
.category-card:hover .icon {
    background: var(--primary);
    color: var(--white);
}
.category-card h4 { font-size: 14px; font-weight: 600; }
.category-card p { font-size: 12px; color: var(--text-light); }

/* ===== PRODUCT CARDS ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}
.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-card .badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}
.badge-discount { background: var(--secondary); color: var(--white); }
.badge-best-seller { background: #ffd700; color: var(--dark); }
.badge-new { background: var(--primary); color: var(--white); }
.badge-cod { background: var(--info); color: var(--white); }
.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: var(--transition);
    z-index: 2;
    color: var(--text-light);
}
.product-card .wishlist-btn.active { color: var(--danger); }
.product-card .wishlist-btn:hover { transform: scale(1.1); }
.product-card .product-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--light);
}
.product-card .product-info { padding: 12px; }
.product-card .product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 40px;
}
.product-card .product-weight { font-size: 12px; color: var(--text-light); margin-bottom: 8px; }
.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.product-card .current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.product-card .old-price {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: line-through;
}
.product-card .add-to-cart {
    width: 100%;
    padding: 8px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.product-card .add-to-cart:hover { background: var(--primary-dark); }

/* Quantity Selector */
.qty-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
}
.qty-selector button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: var(--white);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}
.qty-selector button:first-child { border-radius: 5px 0 0 5px; }
.qty-selector button:last-child { border-radius: 0 5px 5px 0; }
.qty-selector button:hover { background: var(--primary-light); color: var(--primary); }
.qty-selector input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: 1px solid var(--border);
    border-left: none;
    border-right: none;
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: #e55a2b; transform: translateY(-2px); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #c82333; }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text);
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    box-shadow: var(--shadow-xs);
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(45, 138, 78, 0.1), var(--shadow-sm);
}
.form-control.error { border-color: var(--danger); }
textarea.form-control { min-height: 100px; resize: vertical; }
select.form-control { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center; }

/* ===== CARDS ===== */
.card {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow), var(--shadow-3d);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.5);
    transition: var(--transition);
}
.card:hover {
    box-shadow: var(--shadow-md), var(--shadow-3d);
}
.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    font-size: 16px;
    background: linear-gradient(180deg, rgba(255,255,255,0.8), transparent);
}
.card-body { padding: 20px; }
.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border);
}

/* ===== ALERTS ===== */
.alert {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== FOOTER ===== */
.site-footer {
    background: var(--dark);
    color: var(--white);
    padding: 40px 0 20px;
    margin-top: 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-col h4 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--secondary);
}
.footer-col p, .footer-col a {
    font-size: 13px;
    color: #aaa;
    text-decoration: none;
    display: block;
    margin-bottom: 8px;
    transition: var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: #666;
}

/* ===== MOBILE BOTTOM NAV ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 5px 0;
    border-top: 1px solid var(--border);
}
.mobile-bottom-nav .nav-items {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0 2px;
}
.mobile-bottom-nav .nav-items a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 9px;
    gap: 1px;
    padding: 4px 6px;
    transition: var(--transition);
    position: relative;
    min-width: 0;
    flex-shrink: 1;
}
.mobile-bottom-nav .nav-items a.active,
.mobile-bottom-nav .nav-items a:hover { color: var(--primary); }
.mobile-bottom-nav .nav-items a i { font-size: 18px; }
.mobile-bottom-nav .badge-mobile {
    position: absolute;
    top: 0;
    right: 5px;
    background: var(--secondary);
    color: var(--white);
    font-size: 9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== PRODUCT DETAIL PAGE ===== */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--white);
    border-radius: var(--radius);
    padding: 25px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}
.product-gallery {
    position: relative;
}
.product-gallery .main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.product-gallery .thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    overflow-x: auto;
}
.product-gallery .thumbnails img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}
.product-gallery .thumbnails img.active,
.product-gallery .thumbnails img:hover { border-color: var(--primary); }
.product-info-detail .product-name { font-size: 24px; margin-bottom: 10px; }
.product-info-detail .product-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
}
.product-info-detail .product-meta i { margin-right: 5px; }
.product-info-detail .price-section {
    background: var(--primary-light);
    padding: 15px;
    border-radius: var(--radius-sm);
    margin: 15px 0;
}
.product-info-detail .price-section .price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 8px 0;
}
.product-info-detail .price-section .price-row label {
    min-width: 80px;
    font-weight: 600;
}
.product-info-detail .cutting-options {
    margin: 15px 0;
}
.product-info-detail .cutting-options .option-btn {
    padding: 8px 16px;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: var(--white);
    cursor: pointer;
    margin: 5px;
    transition: var(--transition);
    font-size: 13px;
}
.product-info-detail .cutting-options .option-btn.active,
.product-info-detail .cutting-options .option-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ===== CART PAGE ===== */
.cart-page {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 20px;
    margin: 20px 0;
}
.cart-items { border-radius: var(--radius); overflow: hidden; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}
.cart-item:hover { background: var(--light); }
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-item .item-details { flex: 1; }
.cart-item .item-details h5 { font-size: 15px; margin-bottom: 4px; }
.cart-item .item-details p { font-size: 13px; color: var(--text-light); }
.cart-item .item-price { font-size: 16px; font-weight: 700; color: var(--primary); }
.cart-item .remove-btn {
    color: var(--danger);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 18px;
    transition: var(--transition);
}
.cart-item .remove-btn:hover { transform: scale(1.2); }
.cart-summary {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}
.cart-summary h4 { margin-bottom: 15px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}
.cart-summary .summary-row.total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    border-top: 2px solid var(--border);
    padding-top: 10px;
    margin-top: 10px;
}
.cart-summary .coupon-input {
    display: flex;
    gap: 8px;
    margin: 15px 0;
}
.cart-summary .coupon-input input { flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; }

/* ===== CHECKOUT ===== */
.checkout-page {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 20px;
    margin: 20px 0;
}
.checkout-section {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: var(--shadow);
}
.checkout-section h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    color: var(--primary);
}
.address-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.address-card:hover,
.address-card.selected { border-color: var(--primary); background: var(--primary-light); }
.address-card h5 { font-size: 14px; margin-bottom: 4px; }
.address-card p { font-size: 13px; color: var(--text-light); }
.payment-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.payment-options label:hover,
.payment-options input:checked + span + *,
.payment-options label:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }

/* ===== AUTH PAGES ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--white));
    padding: 20px;
}
.auth-box {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
    padding: 35px;
}
.auth-box .logo {
    text-align: center;
    font-size: 28px;
    margin-bottom: 25px;
    display: block;
}
.auth-box h3 { text-align: center; margin-bottom: 5px; }
.auth-box p { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 20px; }
.auth-box .divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: var(--text-light);
    font-size: 13px;
}
.auth-box .divider::before,
.auth-box .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}
.auth-box .divider::before { margin-right: 10px; }
.auth-box .divider::after { margin-left: 10px; }
.auth-box .social-login {
    display: flex;
    gap: 10px;
}
.auth-box .social-login .btn { flex: 1; justify-content: center; }
.auth-box .toggle-auth { text-align: center; margin-top: 15px; font-size: 14px; }
.auth-box .toggle-auth a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* ===== ORDER CARDS ===== */
.order-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.order-card:hover { box-shadow: var(--shadow-hover); }
.order-card .order-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.order-card .order-number { font-weight: 600; font-size: 14px; }
.order-card .order-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-preparing { background: #d6d8d9; color: #383d41; }
.status-out_for_delivery { background: #d4edda; color: #155724; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.order-card .order-items { font-size: 13px; color: var(--text-light); margin-bottom: 8px; }
.order-card .order-total { font-size: 16px; font-weight: 700; color: var(--primary); }
.order-card .order-date { font-size: 12px; color: var(--text-light); }
.order-card .order-actions { display: flex; gap: 8px; margin-top: 10px; }

/* ===== ORDER TRACKING ===== */
.tracking-timeline {
    position: relative;
    padding-left: 30px;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.tracking-item {
    position: relative;
    padding-bottom: 25px;
}
.tracking-item::before {
    content: '';
    position: absolute;
    left: -22px;
    top: 4px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--border);
    border: 2px solid var(--white);
}
.tracking-item.completed::before { background: var(--primary); }
.tracking-item.active::before { background: var(--secondary); box-shadow: 0 0 0 3px rgba(255,107,53,0.3); }
.tracking-item .time { font-size: 12px; color: var(--text-light); }
.tracking-item .desc { font-size: 14px; font-weight: 500; }

/* ===== ADMIN SIDEBAR ===== */
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 260px;
    background: var(--gradient-dark);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 4px 0 30px rgba(0,0,0,0.15);
}
.admin-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 10px;
}
.admin-sidebar .sidebar-header .logo { color: var(--white); font-size: 20px; display: flex; align-items: center; gap: 8px; }
.admin-sidebar .sidebar-header .logo span { color: var(--secondary); }
.admin-sidebar .sidebar-header small { color: rgba(255,255,255,0.4); font-size: 12px; display: block; margin-top: 4px; }
.admin-sidebar .nav-section { padding: 10px 0; }
.admin-sidebar .nav-section .section-title { padding: 8px 20px; font-size: 10px; text-transform: uppercase; color: rgba(255,255,255,0.3); letter-spacing: 1.5px; font-weight: 600; }
.admin-sidebar .nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    border-left: 3px solid transparent;
    margin: 2px 0;
}
.admin-sidebar .nav-item a:hover,
.admin-sidebar .nav-item a.active { background: rgba(255,255,255,0.06); color: var(--white); border-left-color: var(--secondary); }
.admin-sidebar .nav-item a i { width: 20px; text-align: center; font-size: 16px; }
.admin-sidebar .nav-item a.active i { color: var(--secondary); }
.admin-main {
    flex: 1;
    margin-left: 260px;
    padding: 20px 30px;
    background: var(--light);
    min-height: 100vh;
}
.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px !important;
    border-bottom: 1px solid var(--border);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm), var(--shadow-3d);
}
.admin-topbar h3 { font-size: 22px; background: var(--gradient-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.admin-topbar .admin-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-topbar .admin-profile img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 2px solid var(--white);
}

/* ===== STAT CARDS ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow), var(--shadow-3d);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-bounce);
    border: 1px solid rgba(255,255,255,0.5);
}
.stat-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-3d);
    transform: translateY(-3px);
}
.stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.stat-card .icon.green { background: var(--gradient-primary-light); color: var(--primary-dark); }
.stat-card .icon.orange { background: var(--secondary-light); color: var(--secondary-dark); }
.stat-card .icon.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1565c0; }
.stat-card .icon.red { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c62828; }
.stat-card .info h4 { font-size: 24px; font-weight: 700; }
.stat-card .info p { font-size: 13px; color: var(--text-light); }

/* ===== TABLES ===== */
.table-container { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table thead { background: var(--primary); color: var(--white); }
table th {
    padding: 12px 15px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}
table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
table tbody tr:hover { background: var(--light); }
table .product-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 5px; }
table .action-btns { display: flex; gap: 5px; }
table .action-btns a, table .action-btns button {
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: var(--transition);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .product-detail { grid-template-columns: 1fr; }
    .cart-page { grid-template-columns: 1fr; }
    .checkout-page { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .top-header { display: none; }
    .main-header { padding: 8px 0; position: sticky; top: 0; z-index: 1000; }
    .main-header .logo { font-size: 18px; }
    .main-header .logo img { height: 28px; }
    .main-header .search-bar { display: none; }
    .main-header .header-icons a span { display: none; }
    .main-header .header-icons { gap: 12px; }
    .main-header .header-icons a i { font-size: 22px; }
    .header-icons .badge { width: 20px; height: 20px; font-size: 10px; top: -8px; right: -8px; }
    .mobile-search-toggle { display: flex; width: 38px; height: 38px; font-size: 16px; align-items: center; justify-content: center; background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
    .main-nav { display: none; }
    .hero-banner { min-height: 180px; margin: 10px 0; border-radius: 8px; }
    .hero-banner .banner-slide { padding: 20px; }
    .hero-banner .banner-slide h2 { font-size: 20px; }
    .hero-banner .banner-slide p { font-size: 13px; }
    .section-title h2 { font-size: 18px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .category-card { padding: 15px 10px; }
    .category-card .icon { width: 50px; height: 50px; font-size: 20px; }
    .mobile-bottom-nav { display: block; }
    .site-footer { display: none; }
    .admin-sidebar { width: 0; overflow: hidden; }
    .admin-sidebar.open { width: 260px; }
    .admin-main { margin-left: 0; }
    .admin-topbar .menu-toggle { display: block; }
    .auth-page { padding: 15px; }
    .auth-box { padding: 25px; }
    .cart-summary { position: static; }
    .order-detail-grid { grid-template-columns: 1fr !important; }
    /* Product detail mobile */
    .product-detail { padding: 15px; gap: 20px; }
    .product-gallery .main-image { height: 280px; }
    .product-info-detail .product-name { font-size: 20px; }
    .product-info-detail .product-meta { flex-wrap: wrap; gap: 8px; }
    .product-info-detail .product-meta span { flex: 1 1 45%; }
    .product-info-detail .price-section .price-row { flex-wrap: wrap; gap: 8px; }
    .product-info-detail .price-section .price-row span { font-size: 22px !important; }
    .price-type-toggle { flex-wrap: wrap; }
    .price-type-toggle button { flex: 1; min-width: 120px; }
    /* Delivery mobile */
    .delivery-stats { grid-template-columns: repeat(2, 1fr) !important; }
    .stats-row { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .main-header .logo { font-size: 16px; }
    .main-header .logo img { height: 26px; }
    .main-header .header-icons { gap: 10px; }
    .main-header .header-icons a i { font-size: 20px; }
    .header-icons .badge { width: 18px; height: 18px; font-size: 9px; top: -7px; right: -7px; }
    .mobile-search-toggle { width: 36px; height: 36px; font-size: 14px; }
    .mobile-bottom-nav .nav-items a { padding: 5px 6px; font-size: 10px; }
    .mobile-bottom-nav .nav-items a i { font-size: 18px; }
    .product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .category-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .category-card { padding: 12px 8px; }
    .category-card .icon { width: 45px; height: 45px; font-size: 18px; }
    .product-card .product-image { height: 120px; }
    .product-card .badge { padding: 2px 7px; font-size: 9px; top: 5px !important; }
    .product-card .badge-best-seller { top: 22px !important; }
    .product-card .badge-cod { top: 39px !important; }
    .product-card .product-name { font-size: 11px; min-height: 28px; }
    .product-card .current-price { font-size: 14px; }
    .product-card .old-price { font-size: 11px; }
    .product-card .add-to-cart { font-size: 10px; padding: 5px; }
    /* Product detail mobile */
    .product-detail { padding: 10px; }
    .product-gallery .main-image { height: 220px; }
    .product-info-detail .product-name { font-size: 18px; }
    .product-info-detail .product-meta { font-size: 12px; }
    .product-info-detail .product-meta span { flex: 1 1 100%; }
    .product-info-detail .price-section .price-row span { font-size: 20px !important; }
    .product-info-detail .price-section .price-row span.old-price { font-size: 13px !important; }
    .product-detail .qty-selector { width: 100px; }
    .product-detail .qty-input { width: 36px; font-size: 14px; }
    .product-detail .wishlist-btn { width: 42px !important; height: 42px !important; font-size: 16px !important; }
    .auth-box { padding: 20px; }
    .stat-grid { grid-template-columns: 1fr; }
    .container { padding: 0 10px; }
    .hero-banner { min-height: 150px; }
    .hero-banner .banner-slide h2 { font-size: 17px; }
    .footer-grid { grid-template-columns: 1fr; gap: 12px; }
    .footer-col h4 { font-size: 13px; }
}

/* ===== MISC ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.hidden { display: none; }

/* Product Price Type Toggle */
.price-type-toggle {
    display: flex;
    gap: 0;
    margin: 10px 0;
    border: 2px solid var(--primary);
    border-radius: 25px;
    overflow: hidden;
    width: fit-content;
}
.price-type-toggle button {
    padding: 6px 20px;
    border: none;
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 13px;
}
.price-type-toggle button.active { background: var(--primary); color: var(--white); }
.price-type-toggle button:first-child { border-right: 1px solid var(--primary); }

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}
.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    color: var(--white);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    min-width: 280px;
}
.toast-success { background: var(--success); }
.toast-error { background: var(--danger); }
.toast-info { background: var(--info); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-content {
    background: var(--white);
    border-radius: var(--radius);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 25px;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.modal-content .close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-light);
}

/* Delivery Boy Specific */
.delivery-header {
    background: var(--secondary);
    color: var(--white);
    padding: 15px;
    text-align: center;
}
.delivery-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
}
.delivery-stat-card {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}
.delivery-stat-card h3 { font-size: 24px; color: var(--primary); }
.delivery-stat-card p { font-size: 12px; color: var(--text-light); }

/* Image Upload */
.image-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 10px;
}
.image-upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.image-upload-area i { font-size: 40px; color: var(--primary); margin-bottom: 10px; }
.image-preview {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.image-preview .preview-item {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}
.image-preview .preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview .preview-item .remove-img {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ===== 3D GLASS / GLOSSY EFFECTS ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow), var(--shadow-3d);
}
.glass-strong {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md), var(--shadow-3d);
}
.main-header.glass-header {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow-sm);
}
.mobile-bottom-nav.glass-nav {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid rgba(255,255,255,0.4);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.06), inset 0 1px 0 rgba(255,255,255,0.8);
}
.card.glass-card {
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: var(--shadow), var(--shadow-3d);
}
.product-card.glossy {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: var(--shadow), var(--shadow-3d);
    border: 1px solid rgba(255,255,255,0.6);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}
.product-card.glossy::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
    pointer-events: none;
}
.product-card.glossy:hover::before {
    left: 100%;
}
.product-card.glossy:hover {
    box-shadow: var(--shadow-lg), var(--shadow-3d), var(--shadow-glow-primary);
    transform: translateY(-6px) scale(1.02);
}
.btn.glossy {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-md), 0 1px 0 rgba(255,255,255,0.2) inset, 0 -1px 0 rgba(0,0,0,0.1) inset;
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}
.btn.glossy::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: all 0.6s ease;
}
.btn.glossy:hover::after {
    left: 100%;
}
.btn.glossy:hover {
    box-shadow: var(--shadow-lg), 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-glow-primary);
    transform: translateY(-3px);
}
.btn-secondary.glossy {
    background: var(--gradient-secondary);
    box-shadow: var(--shadow-md), 0 1px 0 rgba(255,255,255,0.2) inset, 0 -1px 0 rgba(0,0,0,0.1) inset;
}
.btn-secondary.glossy:hover {
    box-shadow: var(--shadow-lg), 0 1px 0 rgba(255,255,255,0.3) inset, var(--shadow-glow-secondary);
    transform: translateY(-3px);
}
.stat-card.glass-stat {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow), var(--shadow-3d);
}
.stat-card.glass-stat:hover {
    box-shadow: var(--shadow-md), var(--shadow-3d);
    transform: translateY(-2px);
}
.category-card.glossy-cat {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: var(--shadow-sm), var(--shadow-3d);
    border: 1px solid rgba(255,255,255,0.6);
    transition: var(--transition-bounce);
}
.category-card.glossy-cat:hover {
    box-shadow: var(--shadow-md), var(--shadow-3d), var(--shadow-glow-primary);
    transform: translateY(-4px) scale(1.03);
}
.add-to-cart.glossy-btn {
    background: var(--gradient-primary);
    box-shadow: var(--shadow-sm), 0 1px 0 rgba(255,255,255,0.2) inset, 0 -1px 0 rgba(0,0,0,0.1) inset;
    border-radius: var(--radius-full);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
}
.add-to-cart.glossy-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: all 0.6s ease;
}
.add-to-cart.glossy-btn:hover::after {
    left: 100%;
}
.add-to-cart.glossy-btn:hover {
    box-shadow: var(--shadow-md), 0 1px 0 rgba(255,255,255,0.25) inset, var(--shadow-glow-primary);
    transform: translateY(-2px);
}

/* ===== 3D ADMIN STATS ===== */
.admin-stat-card.glass-stat {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow), var(--shadow-3d);
    transition: var(--transition-bounce);
}
.admin-stat-card.glass-stat:hover {
    box-shadow: var(--shadow-lg), var(--shadow-3d);
    transform: translateY(-3px);
}

/* ===== 3D DELIVERY CARDS ===== */
.delivery-stat-card.glass-stat {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    box-shadow: var(--shadow), var(--shadow-3d);
    transition: var(--transition-bounce);
}
.delivery-stat-card.glass-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), var(--shadow-3d);
}

/* ===== BODY PADDING FOR FIXED MOBILE NAV ===== */
body {
    padding-bottom: 0;
}
@media (max-width: 768px) {
    body {
        padding-bottom: 60px;
    }
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-behavior: smooth;
}

/* ===== MOBILE SEARCH ===== */
.search-bar.mobile-visible {
    display: block !important;
    position: fixed;
    top: 50px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(0,0,0,0.5);
    padding: 15px;
    max-width: 100%;
    animation: fadeIn 0.15s ease;
}
.search-bar.mobile-visible form {
    max-width: 500px;
    margin: 0 auto;
}
.search-bar.mobile-visible input {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== BOTTOM NAV ACTIVE INDICATOR ===== */
.mobile-bottom-nav .nav-items a.active {
    color: var(--primary);
    position: relative;
}
.mobile-bottom-nav .nav-items a.active::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary);
    border-radius: 0 0 3px 3px;
}
@media (max-width: 480px) {
    .mobile-bottom-nav .nav-items a.active::after {
        width: 14px;
        height: 2px;
    }
}

/* ===== CART/CHECKOUT SHADOWS ===== */
.cart-summary, .checkout-section {
    box-shadow: var(--shadow), var(--shadow-3d);
    border: 1px solid rgba(255,255,255,0.4);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== ADMIN RESPONSIVE ===== */
@media (max-width: 768px) {
    .admin-wrapper { flex-direction: column; }
    .admin-topbar { flex-wrap: wrap; gap: 8px; padding: 10px 15px !important; margin-bottom: 10px !important; }
    .admin-topbar h3 { font-size: 15px; }
    .admin-topbar .admin-profile { gap: 6px; }
    .admin-topbar .admin-profile span { display: none; }
    .admin-topbar .admin-profile img { width: 30px; height: 30px; }
    .admin-sidebar .nav-item a { font-size: 13px; padding: 8px 15px; }
    .admin-sidebar .sidebar-header .logo { font-size: 16px; }
    .admin-main { padding: 15px; margin-left: 0; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-card { padding: 15px; }
    .stat-card .icon { width: 40px; height: 40px; font-size: 18px; }
    .stat-card .info h4 { font-size: 20px; }
    .table-container { margin: 0 -15px; }
    table th, table td { padding: 8px 10px; font-size: 12px; }
    .card-header { font-size: 14px; padding: 12px 15px; }
    .card-body { padding: 15px; }
    .admin-notification { position: static; }
    .admin-notification i { font-size: 16px !important; }
    #notif-dropdown { right: 10px; width: 290px; }
    #notif-badge { width: 14px; height: 14px; font-size: 8px; top: -4px; right: -6px; }
    .admin-sidebar { position: fixed; z-index: 1001; }
    .admin-sidebar.open { width: 240px; }
    .admin-main .card { margin-bottom: 10px; }
    .admin-main .card .card-body { padding: 12px; }
}
@media (max-width: 480px) {
    .admin-main { padding: 10px; }
    .stat-grid { grid-template-columns: 1fr; gap: 8px; }
    .admin-topbar { padding: 8px 12px !important; }
    .admin-topbar h3 { font-size: 13px; }
    .admin-topbar .menu-toggle { font-size: 18px; }
    .admin-sidebar { width: 0; }
    .admin-sidebar.open { width: 220px; }
    table th, table td { padding: 5px 6px; font-size: 10px; }
    table .action-btns a, table .action-btns button { font-size: 10px; padding: 3px 6px; }
    table .product-thumb { width: 35px; height: 35px; }
    .admin-sidebar .nav-item a { font-size: 12px; padding: 6px 12px; }
    .admin-sidebar .sidebar-header { padding: 0 12px 12px; }
    .admin-sidebar .sidebar-header .logo { font-size: 14px; }
    .admin-sidebar .sidebar-header .logo img { height: 24px; }
    #notif-dropdown { width: 240px; right: 5px; }
    .admin-main .card .card-header { font-size: 13px; padding: 10px 12px; }
    .admin-main .card .card-body { padding: 10px; }
}

/* ===== CUSTOM SCROLLBARS ===== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,53,0.3); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,107,53,0.5); }
#dnotif-dropdown::-webkit-scrollbar { width: 3px; }
#dnotif-dropdown::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

/* ===== DELIVERY BOY RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-container { max-width: 100% !important; }
}

/* ===== ADMIN NOTIFICATION BELL ===== */
.admin-notification {
    position: relative;
    cursor: pointer;
}
#notif-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--secondary);
    color: white;
    font-size: 9px;
    padding: 1px 4px;
    border-radius: 10px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
    display: none;
}
#notif-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    width: 340px;
    background: white;
    border-radius: var(--radius);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

/* ===== ADMIN STAT CARDS ===== */
.admin-stat-card {
    background: rgba(255,255,255,0.85);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow), var(--shadow-3d);
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition-bounce);
}
.admin-stat-card:hover {
    box-shadow: var(--shadow-lg), var(--shadow-3d);
    transform: translateY(-3px);
}
.admin-stat-card .icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.admin-stat-card .icon.green { background: var(--gradient-primary-light); color: var(--primary-dark); }
.admin-stat-card .icon.orange { background: var(--secondary-light); color: var(--secondary-dark); }
.admin-stat-card .icon.blue { background: linear-gradient(135deg, #e3f2fd, #bbdefb); color: #1565c0; }
.admin-stat-card .icon.red { background: linear-gradient(135deg, #fce4ec, #f8bbd0); color: #c62828; }
.admin-stat-card .info h4 { font-size: 24px; font-weight: 700; }
.admin-stat-card .info p { font-size: 13px; color: var(--text-light); }

/* ===== FORM ROW LAYOUT ===== */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .admin-sidebar, .admin-topbar, .mobile-bottom-nav, .site-footer, .main-header, .top-header, .main-nav, .no-print { display: none !important; }
    .admin-main { margin: 0 !important; padding: 0 !important; }
    body { background: white !important; padding: 0 !important; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
