/* ── CSS Variables (warm restaurant theme) ───────────────────────── */
:root {
    --primary: #dc2626;
    --primary-hover: #b91c1c;
    --accent: #f59e0b;
    --danger: #ef4444;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --bg-dark: #0f172a;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1200px;
}

/* ── Reset ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

/* ── Container ────────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ── Navbar ───────────────────────────────────────────────────────── */
.navbar { background: var(--bg-dark); padding: 0.75rem 0; position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo { height: 40px; width: auto; }
.nav-title { color: #fff; font-size: 1.25rem; font-weight: 700; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { color: #cbd5e1; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.cart-link { position: relative; }
.cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 4px;
    vertical-align: middle;
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-dark); padding: 1rem; gap: 1rem; }
    .nav-links.open { display: flex; }
}

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
    background-color: var(--bg-dark);
    background-size: cover; background-position: center;
    color: #fff; text-align: center; padding: 8rem 1.5rem;
    position: relative; min-height: 500px;
    display: flex; align-items: center; justify-content: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); z-index: 1; }
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { font-size: 3.25rem; margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); font-weight: 800; }
.hero-sub { font-size: 1.35rem; color: #e2e8f0; margin-bottom: 2.5rem; text-shadow: 0 1px 4px rgba(0,0,0,0.4); }
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.7); border-radius: var(--radius); }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }

@media (max-width: 768px) {
    .hero { padding: 5rem 1.5rem; min-height: 400px; }
    .hero h1 { font-size: 2.25rem; }
    .hero-sub { font-size: 1.1rem; }
}

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: 1.75rem; text-align: center; margin-bottom: 2rem; }
.page-title { font-size: 2rem; margin-bottom: 2rem; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-block; padding: 0.625rem 1.5rem; border-radius: var(--radius);
    font-weight: 600; cursor: pointer; border: 2px solid transparent;
    transition: all 0.2s; text-align: center; font-size: 0.95rem;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger:hover { opacity: 0.9; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.85rem; }
.btn-lg { padding: 0.875rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

/* ── About Section ────────────────────────────────────────────────── */
.about-section { max-width: 800px; margin: 0 auto; }
.about-title { font-size: 1.75rem; margin-bottom: 1rem; color: var(--text); }
.about-text { font-size: 1.05rem; line-height: 1.8; color: var(--text-light); margin-bottom: 1.5rem; }
.about-bullets { list-style: none; padding: 0; margin: 0; }
.about-bullets li {
    padding: 0.5rem 0; font-size: 1rem; color: var(--text);
    display: flex; align-items: center; gap: 0.75rem;
}
.bullet-check {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--accent); color: #fff; font-size: 0.8rem; font-weight: 700;
    flex-shrink: 0;
}

/* ── Product / Menu Item Grid ────────────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.product-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; color: var(--text);
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-img { width: 100%; height: 220px; object-fit: cover; }
.product-img-placeholder { width: 100%; height: 220px; background: var(--bg-alt); }
.product-img-placeholder.large { height: 400px; }
.product-info { padding: 1rem; }
.product-name { font-size: 1rem; margin-bottom: 0.25rem; color: var(--text); }
.product-cat { font-size: 0.8rem; color: var(--text-light); }
.product-desc-short { font-size: 0.85rem; color: var(--text-light); margin: 0.25rem 0; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.product-price.large { font-size: 1.75rem; }
.product-desc { margin: 1.5rem 0; color: var(--text-light); line-height: 1.7; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.product-detail-img img { width: 100%; border-radius: var(--radius); }

@media (max-width: 768px) {
    .product-detail { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ── Dietary Badges ──────────────────────────────────────────────── */
.dietary-badges { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.badge { background: var(--bg-alt); padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-spicy { background: #fee2e2; color: #991b1b; }

/* ── Menu Category Title ─────────────────────────────────────────── */
.menu-category-title { font-size: 1.5rem; margin: 2rem 0 1rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--primary); color: var(--text); }

/* ── Filter Bar ───────────────────────────────────────────────────── */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-btn {
    padding: 0.5rem 1.25rem; border-radius: 20px; font-size: 0.9rem; font-weight: 500;
    background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Option Groups ───────────────────────────────────────────────── */
.option-group { margin-bottom: 1.25rem; padding: 1rem; background: var(--bg-alt); border-radius: var(--radius); }
.option-label { font-weight: 600; margin-bottom: 0.5rem; display: block; }
.option-choices { display: flex; flex-direction: column; gap: 0.4rem; }

/* ── Daily Specials ──────────────────────────────────────────────── */
.specials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.special-card { background: #fff; border: 2px solid var(--accent); border-radius: var(--radius); overflow: hidden; }
.special-img { width: 100%; height: 200px; object-fit: cover; }
.special-info { padding: 1.25rem; }
.special-info h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.special-info p { color: var(--text-light); margin-bottom: 0.5rem; }

/* ── Cart ─────────────────────────────────────────────────────────── */
.cart-items { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.cart-item-card {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1rem; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    gap: 1rem; flex-wrap: wrap;
}
.cart-product { display: flex; align-items: center; gap: 1rem; flex: 1; }
.cart-img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
.cart-options { display: flex; flex-direction: column; gap: 0.125rem; }
.cart-options small { color: var(--text-light); }
.cart-notes { color: var(--accent); font-style: italic; display: block; }
.cart-actions { display: flex; align-items: center; gap: 1rem; }
.cart-line-total { font-weight: 700; font-size: 1.1rem; min-width: 70px; text-align: right; }
.cart-qty-form { display: inline; }
.btn-remove { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; padding: 0; }
.btn-remove:hover { color: var(--danger); }

/* ── Tip Options ─────────────────────────────────────────────────── */
.tip-options { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tip-btn { cursor: pointer; }
.tip-btn input { display: none; }
.tip-btn span {
    display: inline-block; padding: 0.5rem 1.25rem; border-radius: 20px;
    background: var(--bg-alt); border: 1px solid var(--border); font-weight: 600;
    transition: all 0.2s;
}
.tip-btn input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Checkout Layout ─────────────────────────────────────────────── */
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; align-items: start; }
.form-section { margin-bottom: 2rem; }
.form-section h2 { font-size: 1.25rem; margin-bottom: 1rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.375rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.625rem 0.875rem; border: 1px solid var(--border);
    border-radius: var(--radius); transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(220,38,38,0.1);
}
.form-row { display: grid; gap: 1rem; }
.form-row.two-col { grid-template-columns: 1fr 1fr; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }

.radio-group { display: flex; flex-direction: column; gap: 0.75rem; }
.radio-card { display: flex; align-items: center; gap: 0.75rem; padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color 0.2s; }
.radio-card:hover { border-color: var(--primary); }
.radio-label small { display: block; color: var(--text-light); margin-top: 0.125rem; }

.order-summary { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius); position: sticky; top: 5rem; }
.order-summary h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.summary-item { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.95rem; }
.summary-total { font-size: 1.15rem; font-weight: 700; }
.summary-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

@media (max-width: 768px) {
    .checkout-layout { grid-template-columns: 1fr; }
    .form-row.two-col, .form-row.three-col { grid-template-columns: 1fr; }
}

/* ── Order Success ────────────────────────────────────────────────── */
.success-icon { font-size: 4rem; color: #10b981; margin-bottom: 1rem; }
.order-number { font-size: 1.25rem; color: var(--text-light); margin-bottom: 1.5rem; }
.pickup-info { background: var(--bg-alt); padding: 1.5rem; border-radius: var(--radius); margin: 2rem 0; text-align: left; }

/* ── Order Status Track ──────────────────────────────────────────── */
.status-steps { display: flex; justify-content: space-between; margin: 1.5rem 0; }
.status-step { text-align: center; flex: 1; position: relative; }
.status-step .step-dot {
    width: 20px; height: 20px; border-radius: 50%; background: var(--border);
    margin: 0 auto 0.5rem; position: relative; z-index: 2;
}
.status-step.active .step-dot { background: var(--primary); box-shadow: 0 0 0 4px rgba(220,38,38,0.2); }
.status-step.done .step-dot { background: #10b981; }
.status-step span { font-size: 0.8rem; color: var(--text-light); }
.status-step.active span { color: var(--primary); font-weight: 600; }

/* ── Qty Input ────────────────────────────────────────────────────── */
.qty-row { display: flex; align-items: center; gap: 0.75rem; margin: 1.5rem 0; }
.qty-input { width: 70px; padding: 0.5rem; border: 1px solid var(--border); border-radius: var(--radius); text-align: center; }
.add-to-cart-form { margin-top: 1rem; }

/* ── Blog / News ──────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.5rem; }
.blog-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; color: var(--text);
}
.blog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.blog-card.pinned { border-color: var(--accent); }
.blog-img { width: 100%; height: 200px; object-fit: cover; }
.blog-img-placeholder { width: 100%; height: 200px; background: var(--bg-alt); }
.blog-info { padding: 1.25rem; }
.blog-title { font-size: 1.15rem; margin-bottom: 0.5rem; color: var(--text); }
.blog-excerpt { font-size: 0.9rem; color: var(--text-light); line-height: 1.5; margin-bottom: 0.5rem; }
.blog-date { font-size: 0.8rem; color: var(--text-light); }

.blog-article { max-width: 800px; margin: 0 auto; }
.blog-hero-img { width: 100%; max-height: 450px; object-fit: cover; border-radius: var(--radius); margin-bottom: 2rem; }
.blog-article-title { font-size: 2.25rem; margin-bottom: 0.5rem; }
.blog-article-date { color: var(--text-light); margin-bottom: 2rem; }
.blog-article-body { font-size: 1.05rem; line-height: 1.85; color: var(--text); }

/* ── Gallery ──────────────────────────────────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.gallery-item { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.gallery-item:hover { transform: scale(1.02); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; display: block; }
.gallery-caption { padding: 0.75rem; font-size: 0.9rem; color: var(--text-light); background: #fff; text-align: center; }

/* ── Testimonials ─────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: #fff; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.testimonial-stars { margin-bottom: 0.75rem; }
.testimonial-text { font-size: 1.05rem; line-height: 1.6; color: var(--text); font-style: italic; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.testimonial-loc { display: block; font-size: 0.8rem; color: var(--text-light); }
.stars .star { color: #d1d5db; font-size: 1.1rem; }
.stars .star.filled { color: #f59e0b; }

/* ── CTA Section ──────────────────────────────────────────────────── */
.section-cta { background: var(--bg-dark); color: #fff; padding: 4rem 0; }
.section-cta h2 { color: #fff; }
.section-cta p { color: #94a3b8; }
.cta-section { text-align: center; max-width: 600px; margin: 0 auto; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }

/* ── Breadcrumbs ──────────────────────────────────────────────────── */
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--text-light); }
.back-link:hover { color: var(--primary); }

/* ── Related Section ─────────────────────────────────────────────── */
.related-section { margin-top: 4rem; }

/* ── Checkbox Label ──────────────────────────────────────────────── */
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0; cursor: pointer; }

/* ── Newsletter ───────────────────────────────────────────────────── */
.footer-newsletter { text-align: center; padding: 2rem 0; border-bottom: 1px solid #1e293b; margin-bottom: 2rem; }
.footer-newsletter h4 { color: #fff; margin-bottom: 0.5rem; }
.footer-newsletter p { color: #94a3b8; margin-bottom: 1rem; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 0.5rem; justify-content: center; max-width: 400px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 0.5rem 0.75rem; border: 1px solid #334155; border-radius: var(--radius); background: #1e293b; color: #fff; }
.newsletter-form input::placeholder { color: #64748b; }

/* ── Trust Badges ─────────────────────────────────────────────────── */
.trust-badges { display: flex; justify-content: center; align-items: center; gap: 2rem; padding: 1.5rem 0; border-top: 1px solid #1e293b; flex-wrap: wrap; }
.trust-badge { display: flex; align-items: center; gap: 0.5rem; color: #94a3b8; font-size: 0.85rem; }
.trust-icon { color: var(--accent); font-size: 1rem; }

/* ── Social Links ─────────────────────────────────────────────────── */
.footer-social { display: flex; gap: 0.75rem; margin-top: 0.75rem; }
.social-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; background: #1e293b;
    color: #94a3b8; font-size: 0.75rem; font-weight: 700; transition: all 0.2s;
}
.social-link:hover { background: var(--primary); color: #fff; }

/* ── Toast ────────────────────────────────────────────────────────── */
.toast {
    position: fixed; bottom: 2rem; right: 2rem; z-index: 9998;
    background: var(--bg-dark); color: #fff; padding: 0.875rem 1.5rem;
    border-radius: var(--radius); box-shadow: var(--shadow-lg);
    font-size: 0.95rem; animation: slideIn 0.3s ease;
}
.toast.success { border-left: 4px solid #10b981; }
.toast.error { border-left: 4px solid var(--danger); }
@keyframes slideIn { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Cookie Banner ────────────────────────────────────────────────── */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: var(--bg-dark); color: #e2e8f0; padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-inner { max-width: var(--max-width); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cookie-inner p { font-size: 0.9rem; margin: 0; flex: 1; }
.cookie-actions { display: flex; gap: 0.5rem; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { background: var(--bg-dark); color: #94a3b8; padding: 3rem 0 0; margin-top: 4rem; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-logo { height: 50px; margin-bottom: 0.75rem; }
.footer-name { color: #fff; font-weight: 700; font-size: 1.1rem; }
.footer h4 { color: #fff; margin-bottom: 0.75rem; }
.footer p { font-size: 0.9rem; margin-bottom: 0.25rem; }
.footer-bottom { text-align: center; padding: 1.5rem 0; margin-top: 2rem; border-top: 1px solid #1e293b; font-size: 0.85rem; }

/* ── Empty State ──────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }

/* ── Alert ────────────────────────────────────────────────────────── */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.9rem; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* ── Gallery Admin ────────────────────────────────────────────────── */
.gallery-admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.gallery-admin-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-admin-img { width: 100%; height: 150px; object-fit: cover; }
.gallery-admin-info { padding: 0.75rem; }
.gallery-admin-info p { font-size: 0.85rem; margin-bottom: 0.25rem; }
.gallery-admin-info small { color: var(--text-light); }
.gallery-admin-card form { padding: 0 0.75rem 0.75rem; }

/* ══════════════════════════════════════════════════════════════════
   ADMIN STYLES
   ══════════════════════════════════════════════════════════════════ */

.admin-body { background: #f1f5f9; }

/* Login */
.login-container {
    max-width: 400px; margin: 10vh auto; padding: 2rem;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.login-container h1 { text-align: center; margin-bottom: 1.5rem; }

/* Layout */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--bg-dark); padding: 1.5rem 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar-brand { padding: 0 1.25rem 1.5rem; border-bottom: 1px solid #1e293b; }
.sidebar-brand a { color: #fff; font-weight: 700; font-size: 1.1rem; }
.sidebar-nav { padding: 1rem 0; display: flex; flex-direction: column; }
.sidebar-link { padding: 0.625rem 1.25rem; color: #94a3b8; font-weight: 500; transition: all 0.2s; }
.sidebar-link:hover { background: #1e293b; color: #fff; }
.sidebar-nav hr { border: none; border-top: 1px solid #1e293b; margin: 0.5rem 0; }

.admin-main { padding: 2rem; }
.admin-content { margin-top: 1rem; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-card h3 { font-size: 2rem; color: var(--primary); }
.stat-card p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.25rem; }

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table th { background: var(--bg-alt); padding: 0.75rem 1rem; text-align: left; font-size: 0.85rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.admin-table td { padding: 0.75rem 1rem; border-top: 1px solid var(--border); font-size: 0.9rem; }
.table-thumb { width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.table-thumb-empty { width: 50px; height: 50px; background: var(--bg-alt); border-radius: 6px; }
.actions-cell { display: flex; gap: 0.5rem; align-items: center; }
.inline-form { display: inline; }
.inline-form select { padding: 0.375rem; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.85rem; }

/* Status badges */
.status-badge { padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; }
.status-new { background: #fee2e2; color: #991b1b; }
.status-pending_payment { background: #fef3c7; color: #92400e; }
.status-preparing { background: #fef3c7; color: #92400e; }
.status-ready { background: #d1fae5; color: #065f46; }
.status-out_for_delivery { background: #dbeafe; color: #1e40af; }
.status-completed { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #f1f5f9; color: #64748b; }

/* Admin Toolbar */
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }

/* Admin Form */
.admin-form { max-width: 900px; }
.form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: start; }
.form-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.form-card { background: #fff; padding: 1.25rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card h3 { font-size: 1rem; margin-bottom: 0.75rem; }
.form-preview-img { max-width: 200px; border-radius: var(--radius); margin-bottom: 0.75rem; }

/* Admin Two Column */
.admin-two-col { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }

.admin-section { margin-top: 2rem; }

@media (max-width: 768px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .form-grid { grid-template-columns: 1fr; }
    .admin-two-col { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .cookie-inner { flex-direction: column; text-align: center; }
}
