/* ================================================================
   CHOICE HUB – PREMIUM THEME (BANNER FIX + MOBILE APP NAV)
   Banner uses aspect-ratio for perfect 1280x400 fit.
   Bottom navigation for mobile (app-like experience).
   ================================================================ */

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

:root {
    --primary: #1a1a1a;
    --primary-dark: #0f0f0f;
    --secondary: #5a5a5a;
    --gold: #d4af37;
    --gold-dark: #b8860b;
    --gold-light: #f5d76e;
    --white: #ffffff;
    --light-bg: #FFFBF5;
    --card-bg: #F8F0E6;
    --gray: #ede7df;
    --gray-dark: #c0b8ad;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 56px rgba(0, 0, 0, 0.10);
    --radius: 20px;
    --radius-sm: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    height: 100%;
}
body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--light-bg);
    color: var(--primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.main-content-wrapper {
    flex: 1 0 auto;
}

/* ── DARK MODE ── */
body.dark {
    --primary: #f1f5f9;
    --primary-dark: #e2e8f0;
    --secondary: #94a3b8;
    --card-bg: #1e2638;
    --light-bg: #0a0f1a;
    --gray: #2a3040;
    --gray-dark: #3a4050;
    --shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    --shadow-hover: 0 20px 56px rgba(0, 0, 0, 0.8);
    background: #0a0f1a;
}
body.dark .product-card,
body.dark .stat-card,
body.dark .order-card,
body.dark .auth-card,
body.dark .cart-item,
body.dark .cart-total,
body.dark .admin-wrapper,
body.dark .address-form,
body.dark .modal-content {
    background: var(--card-bg) !important;
    border-color: #2a3040 !important;
    color: #f1f5f9 !important;
}
body.dark header {
    background: rgba(10, 15, 26, 0.92) !important;
}
body.dark .header-search input,
body.dark .auth-card .form-group input,
body.dark .checkout-wrapper .form-input,
body.dark .modal-content input,
body.dark .modal-content select,
body.dark .modal-content textarea {
    background: #2a3040 !important;
    color: #f1f5f9 !important;
    border-color: #3a4050 !important;
}
body.dark .flash {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}
body.dark .social-strip .strip-content {
    background: #1a1f2e !important;
}
body.dark .social-strip .strip-content a {
    color: #f1f5f9 !important;
}
body.dark .social-strip .strip-content a:hover {
    background: #2a3040 !important;
}
body.dark footer {
    background: #1a1f2e !important;
    border-top-color: #2a3040 !important;
}
body.dark .hero {
    background: linear-gradient(145deg, #0a0f1a, #1a1f2e) !important;
    border-color: #2a3040 !important;
}
body.dark .hero-content h1 {
    color: #f1f5f9 !important;
}
body.dark .hero-content p {
    color: #94a3b8 !important;
}
body.dark .avatar-dropdown .dropdown-menu {
    background: #1a1f2e !important;
    border-color: #2a3040 !important;
}
body.dark .avatar-dropdown .dropdown-menu a {
    color: #f1f5f9 !important;
}
body.dark .avatar-dropdown .dropdown-menu a:hover {
    background: #2a3040 !important;
    color: var(--gold) !important;
}
body.dark .avatar-dropdown .dropdown-menu .divider {
    background: #2a3040 !important;
}
body.dark .app-bottom-nav {
    background: #1a1f2e !important;
    border-top: 1px solid #2a3040 !important;
}
body.dark .app-bottom-nav .nav-item {
    color: #94a3b8 !important;
}
body.dark .app-bottom-nav .nav-item.active,
body.dark .app-bottom-nav .nav-item:hover {
    color: var(--gold) !important;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--light-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-dark);
}

/* ── HEADER ── */
header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 10px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}
body.dark header {
    background: rgba(10, 15, 26, 0.85);
    border-bottom-color: rgba(212, 175, 55, 0.08);
}
.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: space-between;
}
.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.logo img {
    max-height: 48px;
    width: auto;
    display: block;
    transition: var(--transition);
}
.logo img:hover {
    transform: scale(1.02);
}
.logo .text-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.5px;
}
.logo .text-logo span {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.header-search {
    flex: 1;
    display: flex;
    max-width: 560px;
    min-width: 180px;
}
.header-search input {
    flex: 1;
    padding: 12px 20px;
    border: 2px solid var(--gray);
    border-radius: 40px 0 0 40px;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
    color: var(--primary);
}
.header-search input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}
.header-search button {
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 0 40px 40px 0;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}
.header-search button:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.header-actions a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 30px;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.header-actions a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}
.header-actions .btn-outline-nav {
    border: 1.5px solid var(--gold);
    color: var(--gold) !important;
}
.header-actions .btn-outline-nav:hover {
    background: var(--gold);
    color: #fff !important;
}
.header-actions .btn-primary-nav {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff !important;
}
.header-actions .btn-primary-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}
.header-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0 2px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    margin-top: 8px;
}
.header-nav a {
    text-decoration: none;
    color: var(--secondary);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 4px 14px;
    border-radius: 20px;
    transition: var(--transition);
}
.header-nav a:hover {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.08);
}
.header-nav a.active {
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
}

/* ── AVATAR DROPDOWN ── */
.avatar-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
}
.avatar-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    border: 2px solid var(--gold);
    transition: var(--transition);
    overflow: hidden;
}
.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.avatar-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}
.avatar-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 44px;
    background: var(--white);
    min-width: 180px;
    box-shadow: var(--shadow-hover);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    z-index: 1000;
    border: 1px solid rgba(212, 175, 55, 0.1);
}
.avatar-dropdown .dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}
.avatar-dropdown .dropdown-menu a:hover {
    background: rgba(212, 175, 55, 0.08);
    color: var(--gold);
}
.avatar-dropdown .dropdown-menu .divider {
    height: 1px;
    background: var(--gray);
    margin: 6px 16px;
}
.avatar-dropdown.open .dropdown-menu {
    display: block;
}

/* ── CONTAINER ── */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* ── BUTTONS ── */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 40px;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    text-align: center;
}
.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-gold {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
}
.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}
.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}
.btn-outline:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
}
.btn-lg {
    padding: 14px 44px;
    font-size: 1.1rem;
}
.btn-sm {
    padding: 4px 14px;
    font-size: 0.8rem;
}
.btn-block {
    width: 100%;
    padding: 14px;
}
.btn-danger {
    background: #ef4444;
    color: #fff;
}
.btn-danger:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

/* ── FLASH MESSAGES ── */
.flash {
    background: #d1fae5;
    color: #065f46;
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-weight: 500;
    border-left: 4px solid #10b981;
}
body.dark .flash {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

/* ── HERO ── */
.hero {
    background: linear-gradient(145deg, #f5efe6, #e8dfd2);
    border-radius: var(--radius);
    padding: 60px 48px;
    color: var(--primary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.12);
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.06), transparent 70%);
    pointer-events: none;
}
.hero-content {
    flex: 1;
    min-width: 240px;
    position: relative;
    z-index: 1;
}
.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}
.hero-content h1 span {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-content p {
    font-size: 1.15rem;
    opacity: 0.8;
    margin-bottom: 20px;
    max-width: 480px;
}
.hero-image {
    flex: 0 0 180px;
    height: 180px;
    background: rgba(212, 175, 55, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    border: 2px solid rgba(212, 175, 55, 0.15);
    position: relative;
    z-index: 1;
}

/* ── BANNER SLIDER (FIXED ASPECT RATIO FOR 1280x400) ── */
.banner-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    margin-bottom: 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.banner-slider::-webkit-scrollbar {
    display: none;
}
.banner-slide {
    min-width: 100%;
    scroll-snap-align: start;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3.2 / 1; /* 1280/400 = 3.2 - Perfect fit! */
    background: var(--gray);
}
.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.banner-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

/* ── CATEGORIES ── */
.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 24px 0 16px;
    letter-spacing: -0.5px;
}
.section-title span {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin: 16px 0 30px;
}
.category-card {
    border-radius: var(--radius-sm);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.08);
    position: relative;
    overflow: hidden;
}
.category-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}
.category-card .category-icon,
.category-card span {
    position: relative;
    z-index: 1;
}
.category-icon {
    font-size: 2.8rem;
    margin-bottom: 8px;
}
.category-card span {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ── INDIVIDUAL CATEGORY COLORS ── */
.category-card[data-category="gifts"] { background: linear-gradient(145deg, #fce4ec, #f8bbd0); }
.category-card[data-category="gifts"]:hover { background: linear-gradient(145deg, #f8bbd0, #f48fb1); }
.category-card[data-category="toys"] { background: linear-gradient(145deg, #e3f2fd, #bbdefb); }
.category-card[data-category="toys"]:hover { background: linear-gradient(145deg, #bbdefb, #90caf9); }
.category-card[data-category="home-decor"] { background: linear-gradient(145deg, #e8f5e9, #c8e6c9); }
.category-card[data-category="home-decor"]:hover { background: linear-gradient(145deg, #c8e6c9, #a5d6a7); }
.category-card[data-category="spiritual-decor"] { background: linear-gradient(145deg, #f3e5f5, #e1bee7); }
.category-card[data-category="spiritual-decor"]:hover { background: linear-gradient(145deg, #e1bee7, #ce93d8); }
.category-card[data-category="mobile"] { background: linear-gradient(145deg, #fff3e0, #ffe0b2); }
.category-card[data-category="mobile"]:hover { background: linear-gradient(145deg, #ffe0b2, #ffcc80); }

/* Dark Mode Categories */
body.dark .category-card[data-category="gifts"] { background: linear-gradient(145deg, #4a1a2a, #3a1020); }
body.dark .category-card[data-category="gifts"]:hover { background: linear-gradient(145deg, #5a2030, #4a1a2a); }
body.dark .category-card[data-category="toys"] { background: linear-gradient(145deg, #1a2a4a, #10203a); }
body.dark .category-card[data-category="toys"]:hover { background: linear-gradient(145deg, #20305a, #1a2a4a); }
body.dark .category-card[data-category="home-decor"] { background: linear-gradient(145deg, #1a2a1a, #102010); }
body.dark .category-card[data-category="home-decor"]:hover { background: linear-gradient(145deg, #203a20, #1a2a1a); }
body.dark .category-card[data-category="spiritual-decor"] { background: linear-gradient(145deg, #2a1a3a, #201030); }
body.dark .category-card[data-category="spiritual-decor"]:hover { background: linear-gradient(145deg, #3a204a, #2a1a3a); }
body.dark .category-card[data-category="mobile"] { background: linear-gradient(145deg, #3a2a1a, #2a1a10); }
body.dark .category-card[data-category="mobile"]:hover { background: linear-gradient(145deg, #4a3a2a, #3a2a1a); }
body.dark .category-card span { color: #f1f5f9 !important; }

/* ── PRODUCT GRID & CARDS ── */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
    margin-top: 16px;
}
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(212, 175, 55, 0.2);
}
.product-image {
    position: relative;
    background: var(--gray);
    overflow: hidden;
    aspect-ratio: 1/1;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.04);
}
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    z-index: 2;
    letter-spacing: 0.5px;
}
.badge.bestseller { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge.trending { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.badge.new { background: linear-gradient(135deg, #10b981, #059669); }
.badge.sale { background: linear-gradient(135deg, #ef4444, #dc2626); }
.product-info {
    padding: 14px 16px 16px;
}
.product-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-info h3 a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}
.product-info h3 a:hover {
    color: var(--gold);
}
.product-rating {
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 1px;
    margin: 2px 0;
}
.price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary);
}
.mrp {
    text-decoration: line-through;
    color: var(--gray-dark);
    font-size: 0.8rem;
}
.discount {
    background: #dc2626;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
}
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

/* ── AUTH ── */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 20px;
}
.auth-card {
    background: var(--card-bg);
    max-width: 420px;
    width: 100%;
    padding: 36px 32px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.auth-icon {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 8px;
}
.auth-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 4px;
}
.auth-subtitle {
    color: var(--secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.auth-card .form-group {
    text-align: left;
    margin-bottom: 16px;
}
.auth-card .form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.auth-card .form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--primary);
}
.auth-card .form-group input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}
.auth-footer {
    margin-top: 20px;
    font-size: 0.95rem;
}
.auth-footer a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}
.auth-footer a:hover {
    text-decoration: underline;
}
.demo-creds {
    margin-top: 12px;
    background: var(--gray);
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--secondary);
}
.demo-creds span {
    display: block;
}

/* ── CART ── */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}
.cart-item .qty-control {
    display: flex;
    gap: 8px;
    align-items: center;
}
.cart-item .qty-control a {
    text-decoration: none;
    padding: 0 8px;
    font-weight: 700;
    color: var(--gold);
}
.cart-item .remove {
    color: #ef4444;
    margin-left: 8px;
}
.cart-total {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-shadow: var(--shadow);
}

/* ── CHECKOUT ── */
.checkout-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 16px;
}
.checkout-wrapper .form-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: var(--white);
    color: var(--primary);
    transition: var(--transition);
}
.checkout-wrapper .form-input:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}
.checkout-wrapper label {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 4px;
    color: var(--primary);
}
.address-form {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.08);
}
.coupon-input input {
    padding: 10px 16px;
    border: 2px solid var(--gray);
    border-radius: 30px;
    font-size: 1rem;
    background: var(--white);
    color: var(--primary);
}
.coupon-input input:focus {
    border-color: var(--gold);
    outline: none;
}

/* ── PROFILE / ORDERS ── */
.order-card {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: var(--transition);
}
.order-card:hover {
    box-shadow: var(--shadow-hover);
}
.order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray);
    padding-bottom: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 6px;
}
.order-details p {
    margin: 4px 0;
    color: var(--secondary);
    font-size: 0.95rem;
}
.status-badge {
    display: inline-block;
    padding: 2px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
}
.status-badge.placed { background: #fef3c7; color: #92400e; }
.status-badge.confirmed { background: #dbeafe; color: #1e40af; }
.status-badge.shipped { background: #d1fae5; color: #065f46; }
.status-badge.delivered { background: #d1fae5; color: #065f46; }
.status-badge.cancelled { background: #fee2e2; color: #991b1b; }

/* ── ADMIN TABLES ── */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}
.admin-table th {
    background: var(--gray);
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--primary);
}
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--gray);
}
.admin-table tr:hover td {
    background: rgba(212, 175, 55, 0.04);
}

/* ── ADMIN PANEL ── */
.admin-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.admin-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}
.admin-header h1::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 32px;
    background: linear-gradient(180deg, var(--gold), var(--gold-dark));
    border-radius: 4px;
    margin-right: 10px;
}
.admin-user {
    background: var(--gray);
    padding: 6px 16px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.stat-card {
    background: var(--gray);
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    border: 1px solid rgba(212, 175, 55, 0.06);
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.stat-icon {
    font-size: 2.2rem;
}
.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
}
.stat-label {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
}
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    border-bottom: 2px solid var(--gray);
    margin-bottom: 20px;
}
.admin-tabs button {
    background: transparent;
    border: none;
    padding: 10px 18px;
    font-weight: 600;
    color: var(--secondary);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 0.95rem;
    transition: var(--transition);
}
.admin-tabs button.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    background: rgba(212, 175, 55, 0.04);
    border-radius: 10px 10px 0 0;
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.admin-section {
    margin-bottom: 30px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
    gap: 8px;
}
.table-responsive {
    overflow-x: auto;
}
.fab {
    position: fixed;
    bottom: 80px; /* Adjusted to not overlap bottom nav on mobile */
    right: 30px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
    cursor: pointer;
    z-index: 100;
    border: none;
    transition: var(--transition);
}
.fab:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35);
}

/* ── MODAL ── */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}
.modal-content {
    background: var(--card-bg);
    padding: 28px;
    border-radius: var(--radius);
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    animation: slideUp 0.25s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-close {
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--secondary);
    transition: var(--transition);
}
.modal-close:hover {
    color: var(--primary);
}
.modal-content input,
.modal-content select,
.modal-content textarea {
    width: 100%;
    padding: 8px 12px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-top: 4px;
    transition: var(--transition);
    background: var(--white);
    color: var(--primary);
}
.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.08);
}
.modal-content label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}
.modal-content input[type="checkbox"] {
    width: auto;
    margin-right: 4px;
}

/* ── BANNER FORM ── */
.banner-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.banner-form input[type="text"],
.banner-form input[type="file"] {
    padding: 8px 12px;
    border: 2px solid var(--gray);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--white);
    color: var(--primary);
}
.banner-form input[type="file"] {
    padding: 6px;
}

/* ── SOCIAL STRIP ── */
.social-strip {
    position: fixed;
    bottom: 90px; /* Adjusted to not overlap bottom nav */
    right: 30px;
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.social-strip .strip-toggle {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
    transition: var(--transition);
}
.social-strip .strip-toggle:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 24px rgba(212, 175, 55, 0.35);
}
.social-strip .strip-content {
    background: var(--white);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(212, 175, 55, 0.1);
    display: none;
    flex-direction: column;
    gap: 6px;
}
.social-strip .strip-content.open {
    display: flex;
}
.social-strip .strip-content a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 30px;
    transition: var(--transition);
}
.social-strip .strip-content a:hover {
    background: var(--gray);
}
.social-strip .strip-content a.whatsapp i {
    color: #25d366;
}
.social-strip .strip-content a.instagram i {
    color: #e4405f;
}

/* ── BOTTOM NAVIGATION (APP-LIKE FOR MOBILE) ── */
.app-bottom-nav {
    display: none; /* Hidden by default (desktop) */
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid rgba(212, 175, 55, 0.12);
    padding: 6px 0 env(safe-area-inset-bottom, 8px) 0;
    z-index: 999;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}
.app-bottom-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--secondary);
    font-size: 0.65rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 4px 12px;
    border-radius: 30px;
    min-height: 44px;
    min-width: 44px;
}
.app-bottom-nav .nav-item i {
    font-size: 1.3rem;
}
.app-bottom-nav .nav-item span {
    font-size: 0.6rem;
}
.app-bottom-nav .nav-item:hover,
.app-bottom-nav .nav-item.active {
    color: var(--gold);
}
.app-bottom-nav .nav-item .cart-badge {
    background: #ef4444;
    color: #fff;
    border-radius: 50%;
    font-size: 0.55rem;
    padding: 1px 6px;
    position: relative;
    top: -8px;
    right: -8px;
    margin-left: -10px;
}

/* ── FOOTER ── */
footer {
    background: var(--white);
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    padding: 24px 0;
    flex-shrink: 0;
    margin-top: auto;
    width: 100%;
}
.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: center;
    color: var(--secondary);
    font-size: 0.9rem;
}
.footer-inner a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.footer-inner a:hover {
    color: var(--gold-dark);
}

/* ── DARK TOGGLE ── */
#darkToggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1000;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}
#darkToggle:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-hover);
}

/* ── MOBILE RESPONSIVE (SHOW BOTTOM NAV, ADJUST LAYOUT) ── */
@media (max-width: 768px) {
    /* Show bottom nav on mobile */
    .app-bottom-nav {
        display: flex !important;
    }
    /* Add padding to body so content doesn't hide behind fixed nav */
    body {
        padding-bottom: 68px;
    }

    /* Header adjustments for mobile */
    .header-top {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .header-search {
        max-width: 100%;
        min-width: unset;
    }
    .header-actions {
        justify-content: center;
    }
    .header-actions .cart-label,
    .header-actions .orders-label {
        display: none; /* Hide text labels on mobile to save space, keep icons */
    }
    .header-actions a {
        font-size: 1.2rem;
        padding: 6px 10px;
    }
    .header-nav {
        justify-content: center;
        gap: 4px;
    }
    .header-nav a {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    .logo img {
        max-height: 38px;
    }

    /* Hero */
    .hero {
        padding: 24px 16px;
        text-align: center;
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 1.8rem;
    }
    .hero-content p {
        max-width: 100%;
        margin: 0 auto 16px;
        font-size: 0.95rem;
    }
    .hero-image {
        flex: 0 0 100px;
        height: 100px;
        font-size: 3rem;
    }

    /* Products */
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .product-image img {
        height: auto;
    }

    /* Categories */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .category-card {
        padding: 16px 10px;
    }
    .category-icon {
        font-size: 2rem;
    }
    .category-card span {
        font-size: 0.8rem;
    }

    /* Auth */
    .auth-card {
        padding: 24px 16px;
    }

    /* Admin */
    .admin-header h1 {
        font-size: 1.2rem;
    }
    .admin-stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .stat-card {
        padding: 12px;
    }
    .stat-number {
        font-size: 1.4rem;
    }

    /* Social Strip */
    .social-strip {
        bottom: 80px;
        right: 16px;
    }
    .fab {
        bottom: 80px;
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Section Titles */
    .section-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .product-info {
        padding: 10px;
    }
    .product-info h3 {
        font-size: 0.8rem;
    }
    .price {
        font-size: 0.9rem;
    }
    .btn-sm {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    .header-nav a {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    .app-bottom-nav .nav-item {
        font-size: 0.55rem;
        padding: 2px 6px;
    }
    .app-bottom-nav .nav-item i {
        font-size: 1.1rem;
    }
}
