/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --white: #ffffff;
    --off-white: #faf9f7;
    --cream: #f5f0e8;
    --gold: #c8922a;
    --gold-light: #e8b84b;
    --gold-dark: #9e6d1a;
    --green: #2d6a4f;
    --green-light: #40916c;
    --text-dark: #1a1a1a;
    --text-mid: #444444;
    --text-light: #888888;
    --border: #e8e2d9;
    --red: #c0392b;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; }

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

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

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

/* ===== NAVBAR ===== */
.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { font-size: 28px; }

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }

.nav-links a, .nav-links button {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-mid);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    border: none;
    background: none;
    cursor: pointer;
}

.nav-links a:hover, .nav-links button:hover { color: var(--gold); background: var(--cream); }

.nav-btn { background: var(--gold) !important; color: var(--white) !important; border-radius: 50px !important; padding: 8px 22px !important; }
.nav-btn:hover { background: var(--gold-dark) !important; }
.nav-btn-ghost { border: 1.5px solid var(--border) !important; border-radius: 50px !important; }
.admin-link { color: var(--green) !important; font-weight: 600 !important; }

.cart-icon { position: relative; font-size: 22px; padding: 8px !important; }

.cart-badge {
    position: absolute;
    top: 0; right: 0;
    background: var(--red);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px; height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
}

.hamburger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-dark); }

.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 99;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    gap: 4px;
}

.mobile-menu a, .mobile-menu button {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    text-align: left;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
}

/* ===== ALERTS ===== */
.alert { padding: 14px 24px; font-size: 14px; font-weight: 500; text-align: center; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* ===== HERO SLIDER ===== */
.hero { position: relative; height: 580px; overflow: hidden; background: var(--text-dark); }

.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease; display: flex; align-items: center; }
.slide.active { opacity: 1; }

.slide-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(0.45); }

.slide-content { position: relative; z-index: 2; max-width: 600px; padding: 0 60px; color: white; }

.slide-tag {
    display: inline-block;
    background: var(--gold);
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.slide-content h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.15; margin-bottom: 16px; color: white; }
.slide-content p { font-size: 17px; opacity: 0.85; margin-bottom: 28px; line-height: 1.7; }

.btn-primary {
    display: inline-block;
    background: var(--gold);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover { background: var(--gold-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(200,146,42,0.4); }

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-dark);
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid var(--border);
    transition: all 0.2s;
    cursor: pointer;
}

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

.btn-outline-white {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid rgba(255,255,255,0.6);
    transition: all 0.2s;
    margin-left: 12px;
}

.btn-outline-white:hover { background: rgba(255,255,255,0.15); }

.slider-controls { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; z-index: 10; }

.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.4); cursor: pointer; transition: all 0.3s; border: none; }
.slider-dot.active { background: var(--gold); width: 28px; border-radius: 5px; }

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 48px; height: 48px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.slider-arrow:hover { background: rgba(255,255,255,0.3); }
.slider-arrow.prev { left: 24px; }
.slider-arrow.next { right: 24px; }

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--cream); }

.section-header { text-align: center; margin-bottom: 50px; }
.section-header .tag {
    display: inline-block;
    background: var(--cream);
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--gold-light);
    margin-bottom: 12px;
}

.section-header h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.section-header p { color: var(--text-light); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ===== FOOD CARDS ===== */
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px; }

.food-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all 0.3s; border: 1px solid var(--border); }
.food-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.food-card-img { position: relative; height: 220px; overflow: hidden; background: var(--cream); }
.food-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.food-card:hover .food-card-img img { transform: scale(1.05); }

.food-card-badge { position: absolute; top: 14px; left: 14px; background: var(--gold); color: white; font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 50px; text-transform: uppercase; letter-spacing: 0.5px; }
.food-card-badge.spicy { background: var(--red); }
.food-card-badge.popular { background: var(--green); }

.food-card-body { padding: 20px; }
.food-card-category { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.food-card-body h3 { font-size: 20px; margin-bottom: 8px; color: var(--text-dark); }
.food-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.food-card-footer { display: flex; align-items: center; justify-content: space-between; }

.price { font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700; color: var(--text-dark); }
.price span { font-size: 14px; font-weight: 400; color: var(--text-light); }

.btn-add { background: var(--gold); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; line-height: 1; }
.btn-add:hover { background: var(--gold-dark); transform: scale(1.1); }

/* ===== FOOD DETAIL PAGE ===== */
.food-detail { padding: 60px 0; }
.food-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.food-main-img { border-radius: var(--radius-lg); overflow: hidden; height: 420px; }
.food-main-img img { width: 100%; height: 100%; object-fit: cover; }
.food-thumbnails { display: flex; gap: 10px; margin-top: 12px; }
.food-thumb { width: 80px; height: 80px; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border-color 0.2s; }
.food-thumb.active { border-color: var(--gold); }
.food-thumb img { width: 100%; height: 100%; object-fit: cover; }
.food-detail-info h1 { font-size: 38px; margin: 10px 0 16px; }
.food-detail-info .desc { font-size: 16px; color: var(--text-mid); line-height: 1.8; margin-bottom: 24px; }
.food-meta { display: flex; gap: 20px; margin-bottom: 28px; }
.food-meta-item { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-mid); }
.food-meta-item .icon { font-size: 20px; }
.food-price-row { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.food-price-row .price { font-size: 36px; }

.qty-control { display: flex; align-items: center; border: 1.5px solid var(--border); border-radius: 50px; overflow: hidden; }
.qty-control button { background: none; border: none; width: 40px; height: 40px; font-size: 20px; cursor: pointer; color: var(--text-dark); transition: background 0.2s; }
.qty-control button:hover { background: var(--cream); }
.qty-control span { width: 40px; text-align: center; font-weight: 600; font-size: 16px; }

.add-to-cart-btn { width: 100%; background: var(--gold); color: white; border: none; padding: 16px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.add-to-cart-btn:hover { background: var(--gold-dark); }

/* ===== AUTH PAGES ===== */
.auth-page { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--cream); }

.auth-card { background: var(--white); border-radius: var(--radius-lg); padding: 48px; width: 100%; max-width: 460px; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-card .logo-text { font-size: 26px; }
.auth-card h2 { text-align: center; font-size: 28px; margin-bottom: 6px; }
.auth-card .subtitle { text-align: center; color: var(--text-light); font-size: 14px; margin-bottom: 32px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: 'DM Sans', sans-serif;
    color: var(--text-dark);
    background: var(--off-white);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-error { color: var(--red); font-size: 12px; margin-top: 5px; }

.btn-block { width: 100%; background: var(--gold); color: white; border: none; padding: 15px; border-radius: 50px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; margin-top: 8px; }
.btn-block:hover { background: var(--gold-dark); }

.auth-footer { text-align: center; margin-top: 24px; font-size: 14px; color: var(--text-light); }
.auth-footer a { color: var(--gold); font-weight: 600; }

/* ===== CART ===== */
.page-header { background: var(--cream); padding: 50px 0 40px; border-bottom: 1px solid var(--border); }
.page-header h1 { font-size: 38px; margin-bottom: 6px; }
.page-header p { color: var(--text-light); }

.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 50px 0; }
.cart-items { display: flex; flex-direction: column; gap: 16px; }

.cart-item { background: var(--white); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 20px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.cart-item-img { width: 90px; height: 90px; border-radius: var(--radius-sm); overflow: hidden; flex-shrink: 0; }
.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 18px; margin-bottom: 4px; }
.cart-item-info p { font-size: 13px; color: var(--text-light); }
.cart-item-actions { display: flex; align-items: center; gap: 16px; }
.item-price { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; min-width: 90px; text-align: right; }

.remove-btn { background: none; border: none; color: var(--red); cursor: pointer; font-size: 18px; padding: 4px; transition: transform 0.2s; }
.remove-btn:hover { transform: scale(1.2); }

.order-summary { background: var(--white); border-radius: var(--radius-lg); padding: 28px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.order-summary h3 { font-size: 22px; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }

.summary-row { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 12px; color: var(--text-mid); }
.summary-row.total { font-size: 18px; font-weight: 700; color: var(--text-dark); border-top: 1px solid var(--border); padding-top: 16px; margin-top: 8px; }
.summary-row.total .price { font-size: 24px; }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; padding: 50px 0; }

.checkout-section { background: var(--white); border-radius: var(--radius); padding: 28px; border: 1px solid var(--border); margin-bottom: 24px; }
.checkout-section h3 { font-size: 20px; margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }

.payment-options { display: flex; flex-direction: column; gap: 16px; }
.payment-option { border: 2px solid var(--border); border-radius: var(--radius); padding: 20px; cursor: pointer; transition: all 0.2s; display: flex; align-items: flex-start; gap: 14px; }
.payment-option:hover { border-color: var(--gold-light); }
.payment-option.selected { border-color: var(--gold); background: #fffbf3; }
.payment-option input[type="radio"] { margin-top: 3px; accent-color: var(--gold); }
.payment-option-info h4 { font-size: 16px; margin-bottom: 4px; }
.payment-option-info p { font-size: 13px; color: var(--text-light); }

/* ===== ORDERS ===== */
.orders-list { padding: 50px 0; }

.order-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.order-card-header { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); background: var(--off-white); }
.order-number { font-weight: 700; font-size: 15px; }
.order-date { font-size: 13px; color: var(--text-light); }

.order-status { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 50px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #cce5ff; color: #004085; }
.status-processed { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }

.order-card-body { padding: 20px 24px; }
.order-items-list { margin-bottom: 16px; }
.order-item-line { font-size: 14px; color: var(--text-mid); padding: 4px 0; display: flex; justify-content: space-between; }
.order-card-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }

/* ===== ADMIN ===== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 70px); }

.admin-sidebar { background: var(--text-dark); padding: 32px 0; }
.admin-sidebar .sidebar-title { color: rgba(255,255,255,0.4); font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; padding: 0 24px 16px; }
.admin-sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 24px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; transition: all 0.2s; }
.admin-sidebar a:hover, .admin-sidebar a.active { background: rgba(255,255,255,0.08); color: white; border-left: 3px solid var(--gold); }

.admin-main { padding: 40px; background: var(--off-white); }
.admin-header { margin-bottom: 32px; }
.admin-header h1 { font-size: 32px; }
.admin-header p { color: var(--text-light); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 36px; }
.stat-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat-card .stat-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); margin-bottom: 10px; }
.stat-card .stat-value { font-family: 'Playfair Display', serif; font-size: 32px; font-weight: 700; }
.stat-card .stat-icon { font-size: 28px; margin-bottom: 12px; }

/* NOTE: overflow is visible here so mobile scroll works */
.data-table { background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: visible; box-shadow: var(--shadow-sm); }
.data-table-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }

.data-table-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.data-table-header h3 { font-size: 18px; }

table { width: 100%; border-collapse: collapse; }
thead { background: var(--off-white); }
th { padding: 14px 20px; text-align: left; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); }
td { padding: 16px 20px; font-size: 14px; border-top: 1px solid var(--border); }
tr:hover td { background: var(--off-white); }

.action-btn { padding: 7px 16px; border-radius: 50px; font-size: 12px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; font-family: 'DM Sans', sans-serif; }
.action-btn-green { background: #d4edda; color: #155724; }
.action-btn-green:hover { background: #c3e6cb; }
.action-btn-gold { background: #fff3cd; color: #856404; }
.action-btn-gold:hover { background: #ffeeba; }
.action-btn-red { background: #f8d7da; color: #721c24; }
.action-btn-red:hover { background: #f5c6cb; }

/* ===== FEATURES ===== */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card { background: var(--white); border-radius: var(--radius-lg); padding: 36px 28px; text-align: center; border: 1px solid var(--border); transition: all 0.3s; }
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.feature-card .icon { font-size: 44px; margin-bottom: 18px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== CATEGORIES ===== */
.categories { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.category-btn { padding: 9px 22px; border-radius: 50px; border: 1.5px solid var(--border); background: var(--white); font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-family: 'DM Sans', sans-serif; color: var(--text-mid); }
.category-btn:hover, .category-btn.active { background: var(--gold); color: white; border-color: var(--gold); }

/* ===== EMPTY STATES ===== */
.empty-state { text-align: center; padding: 80px 20px; }
.empty-state .icon { font-size: 60px; margin-bottom: 20px; }
.empty-state h3 { font-size: 24px; margin-bottom: 10px; }
.empty-state p { color: var(--text-light); margin-bottom: 28px; }

/* ===== BANK DETAILS ===== */
.bank-details { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 16px; }
.bank-details h4 { margin-bottom: 12px; font-size: 16px; }
.bank-detail-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.bank-detail-row:last-child { border: none; }
.bank-detail-row strong { color: var(--text-dark); }

/* ===== FOOTER ===== */
.footer { background: var(--text-dark); color: rgba(255,255,255,0.8); padding: 60px 0 0; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo-text { color: white; font-size: 24px; display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 14px; line-height: 1.7; opacity: 0.7; }
.footer-links h4, .footer-contact h4 { color: white; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links a { display: block; font-size: 14px; padding: 4px 0; opacity: 0.7; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 1; }
.footer-contact p { font-size: 14px; padding: 4px 0; opacity: 0.7; }
.footer-bottom { text-align: center; padding: 20px; font-size: 13px; opacity: 0.5; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; }
    .mobile-menu.open { display: flex; }
    .hero { height: 460px; }
    .slide-content { padding: 0 24px; }
    .food-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .cart-layout { grid-template-columns: 1fr; }
    .checkout-layout { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 28px; }

    /* CART MOBILE */
    .cart-item { flex-wrap: wrap; gap: 10px; padding: 14px; }
    .cart-item-img { width: 70px; height: 70px; flex-shrink: 0; }
    .cart-item-info { flex: 1; min-width: 0; }
    .cart-item-info h3 { font-size: 14px; word-break: break-word; }
    .cart-item-actions { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .item-price { font-size: 16px; min-width: auto; text-align: left; }
    .qty-control { flex-shrink: 0; }

    /* ADMIN MOBILE - bottom nav */
    .admin-layout { display: block; padding-bottom: 0; }

    .admin-sidebar {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        padding: 0 !important;
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: 65px !important;
        z-index: 9999 !important;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.4) !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        background: var(--text-dark) !important;
    }

    .admin-sidebar::-webkit-scrollbar { display: none !important; }
    .admin-sidebar .sidebar-title { display: none !important; }

    .admin-sidebar a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 16px !important;
        font-size: 10px !important;
        gap: 2px !important;
        white-space: nowrap !important;
        border-left: none !important;
        border-top: 3px solid transparent !important;
        border-bottom: none !important;
        min-width: 70px !important;
        flex-shrink: 0 !important;
        height: 65px !important;
        color: rgba(255,255,255,0.6) !important;
    }

    .admin-sidebar a:hover,
    .admin-sidebar a.active {
        border-left: none !important;
        border-top: 3px solid var(--gold) !important;
        background: rgba(255,255,255,0.08) !important;
        color: white !important;
    }

    .admin-main {
        padding: 20px 16px 85px !important;
        min-height: calc(100vh - 70px);
    }

    .admin-header { margin-bottom: 16px; }
    .admin-header h1 { font-size: 22px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
    .stat-card { padding: 14px; }
    .stat-card .stat-value { font-size: 20px; }
    .stat-card .stat-icon { font-size: 20px; margin-bottom: 6px; }

    .data-table-header { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }

    /* Tables scroll horizontally */
    .data-table { overflow: hidden; }
    .data-table > div { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .data-table table { min-width: 550px; font-size: 12px; }
    th { padding: 10px 12px; }
    td { padding: 10px 12px; }

    .order-card-header { flex-wrap: wrap; gap: 8px; }
}

/* ===== WISHLIST HEART BUTTON ===== */
.wishlist-btn {
    background: none !important;
    border: none !important;
    font-size: 22px !important;
    cursor: pointer !important;
    padding: 4px 6px !important;
    line-height: 1 !important;
    color: var(--text-light);
    transition: color 0.2s, transform 0.2s !important;
}

.wishlist-btn:hover { color: var(--red) !important; }
.wishlist-btn.active { color: var(--red) !important; }


/* ===== CART BADGE MOBILE ===== */
.cart-badge-mobile {
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 50px;
    margin-left: auto;
}