/* ==========================================================================
   Desktop CSS — Professional Restaurant Ordering Website
   Inspired by industry leaders: Burger King, Domino's, Nando's
   Production-ready, minimalistic, beautiful UX
   ========================================================================== */

/* ── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    --brand: #FF6B35;
    --brand-hover: #E55A2B;
    --brand-light: #FFF0EB;
    --brand-dark: #CC4E1E;

    --bg: #FAFAFA;
    --surface: #FFFFFF;
    --surface-hover: #F5F5F5;

    --text: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-inverse: #FFFFFF;

    --border: #E5E5E5;
    --border-light: #F0F0F0;

    --success: #16A34A;
    --success-bg: #DCFCE7;
    --warning: #F59E0B;
    --warning-bg: #FEF3C7;
    --error: #DC2626;
    --error-bg: #FEE2E2;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);

    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --header-height: 72px;
    --max-width: 1280px;
    --transition: 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
}

/* ── Typography ────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
}

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

/* ── Header / Navigation ───────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    line-height: 1;
}

.logo-text small {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.site-header .logo-text {
    background: linear-gradient(135deg, #FF6B35, #E55A2B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

.site-header .logo-text small {
    background: none;
    -webkit-text-fill-color: var(--text-muted);
    color: var(--text-muted);
    -webkit-background-clip: border-box;
    background-clip: border-box;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    transition: background var(--transition);
    color: var(--text-secondary);
}

.header-icon-btn:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.header-icon-btn i {
    font-size: 1.35rem;
}

.cart-badge-desktop {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--brand);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.cart-badge-desktop[hidden] {
    display: none !important;
}

.btn-order {
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-order:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.35);
}

.btn-account {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.btn-account:hover {
    background: var(--surface-hover);
    color: var(--text);
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero-section {
    background: linear-gradient(160deg, #0f0f0f 0%, #1a1a1a 40%, #222222 100%);
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,107,53,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 5rem 2rem;
    width: 100%;
}

.hero-text {
    color: white;
    max-width: 640px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,107,53,0.15);
    color: var(--brand);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,107,53,0.3);
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-text h1 span {
    color: var(--brand);
}

.hero-text p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.hero-btn-primary {
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    border: none;
    cursor: pointer;
}

.hero-btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255,107,53,0.4);
}

.hero-btn-secondary {
    background: rgba(255,255,255,0.1);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
}

.hero-btn-secondary:hover {
    background: rgba(255,255,255,0.2);
}

.hero-stats {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hero-stat {
    text-align: left;
}

.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* ── Service Toggle ────────────────────────────────────────────────────── */
.service-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.service-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.service-toggle-desktop {
    display: inline-flex;
    background: var(--bg);
    border-radius: 50px;
    padding: 4px;
    border: 1px solid var(--border);
}

.service-toggle-desktop button {
    padding: 0.65rem 1.75rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.service-toggle-desktop button.active {
    background: var(--brand);
    color: white;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.service-info {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-info i {
    color: var(--success);
}

/* ── Section Headers ───────────────────────────────────────────────────── */
.section {
    padding: 4rem 0;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
}

.section-header h2 span {
    color: var(--brand);
}

.section-header p {
    margin-top: 0.5rem;
    font-size: 1.05rem;
    max-width: 500px;
}

.section-link {
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
}

.section-link:hover {
    color: var(--brand-hover);
}

/* ── Category Navigation ───────────────────────────────────────────────── */
.category-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    padding: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.category-nav-inner {
    display: flex;
    gap: 0;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.category-nav a {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all var(--transition);
}

.category-nav a:hover {
    color: var(--text);
}

.category-nav a.active {
    color: var(--brand);
    border-bottom-color: var(--brand);
}

/* ── Menu Grid ─────────────────────────────────────────────────────────── */
.menu-grid-desktop {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.menu-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.menu-card-image {
    width: 100%;
    height: 200px;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.menu-card-image .placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: var(--text-muted);
    background: linear-gradient(135deg, var(--bg) 0%, #f0f0f0 100%);
}

.menu-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dietary-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--success-bg);
    color: var(--success);
}

.popular-badge {
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--brand);
    color: white;
}

.menu-card-body {
    padding: 1.25rem;
}

.menu-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.menu-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.menu-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text);
}

.menu-card-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.menu-card-add:hover {
    background: var(--brand-hover);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255,107,53,0.4);
}

/* ── Offers Section ────────────────────────────────────────────────────── */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.5rem;
}

.offer-card-desktop {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform var(--transition);
    cursor: pointer;
}

.offer-card-desktop:hover {
    transform: translateY(-4px);
}

.offer-card-desktop .offer-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.offer-card-desktop:nth-child(2) .offer-bg {
    background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
}

.offer-card-desktop:nth-child(3) .offer-bg {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
}

.offer-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    color: white;
}

.offer-card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.offer-card-content p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.25rem;
}

.offer-btn-desktop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: var(--text);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius);
    transition: all var(--transition);
}

.offer-btn-desktop:hover {
    transform: translateX(4px);
}

/* ── Cart Page ─────────────────────────────────────────────────────────── */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 2.5rem;
    align-items: start;
    padding: 1rem 0;
}

/* Cart Table Header */
.cart-table-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 2px solid var(--border);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

/* Cart Table Row */
.cart-table-row {
    display: flex;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-light);
    gap: 1.5rem;
}

/* Column Definitions */
.cart-col-item {
    flex: 1;
    min-width: 0;
}

.cart-col-price {
    width: 15%;
    min-width: 70px;
    text-align: right;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cart-col-qty {
    width: 20%;
    min-width: 100px;
    display: flex;
    justify-content: center;
}

.cart-col-total {
    width: 15%;
    min-width: 80px;
    text-align: right;
    font-weight: 700;
    font-size: 1rem;
}

.cart-col-action {
    width: 44px;
    text-align: center;
}

/* Item Details */
.cart-item-name {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.cart-item-modifiers {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Quantity Controls */
.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.25rem;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
}

.cart-qty-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cart-qty-value {
    font-weight: 700;
    min-width: 24px;
    text-align: center;
}

/* Remove Button */
.cart-remove-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.cart-remove-btn:hover {
    color: var(--error) !important;
}

.cart-row:hover {
    background: var(--surface-hover);
    margin: 0 -1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: var(--radius);
}

.cart-qty-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cart-item-remove:hover {
    color: var(--error) !important;
}

.cart-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    height: fit-content;
}

.cart-summary h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.cart-checkout-btn {
    display: block;
    width: 100%;
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    text-align: center;
    margin-top: 1.25rem;
    transition: all var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.cart-checkout-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.35);
    color: white;
}

/* ── Checkout Page ─────────────────────────────────────────────────────── */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2rem;
    align-items: start;
    padding: 2rem 0;
}

.checkout-form-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2rem;
}

.checkout-form-section h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-form-section h3 i {
    color: var(--brand);
}

.form-group-desktop {
    margin-bottom: 1.25rem;
}

.form-group-desktop label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.form-group-desktop input,
.form-group-desktop textarea,
.form-group-desktop select {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--surface);
    transition: border-color var(--transition);
}

.form-group-desktop input:focus,
.form-group-desktop textarea:focus,
.form-group-desktop select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255,107,53,0.1);
}

.form-group-desktop textarea {
    resize: vertical;
    min-height: 80px;
}

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

.time-slots {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.time-slot {
    padding: 0.85rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
}

.time-slot:hover {
    border-color: var(--brand);
}

.time-slot.active {
    border-color: var(--brand);
    background: var(--brand-light);
}

.time-slot.active div:first-child {
    color: var(--brand);
}

.time-slot div:first-child {
    font-weight: 700;
    font-size: 0.95rem;
}

.time-slot div:last-child {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.payment-option {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    gap: 1rem;
}

.payment-option:hover {
    border-color: var(--brand);
}

.payment-option.active {
    border-color: var(--brand);
    background: var(--brand-light);
}

.payment-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--brand);
}

.payment-option-info {
    flex: 1;
}

.payment-option-info strong {
    display: block;
    font-size: 0.95rem;
}

.payment-option-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.payment-option i {
    font-size: 1.5rem;
    color: var(--brand);
}

/* Order Summary Sidebar */
.order-summary-sidebar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.order-summary-sidebar h3 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

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

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

.order-summary-item-name {
    font-weight: 600;
}

.order-summary-item-qty {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.order-summary-item-price {
    font-weight: 700;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0 0;
    margin-top: 0.75rem;
    border-top: 2px solid var(--border);
    font-size: 1.25rem;
    font-weight: 800;
}

/* ── Confirmation Page ─────────────────────────────────────────────────── */
.confirmation-page {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 100px;
    height: 100px;
    background: var(--success-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.confirmation-icon i {
    font-size: 3rem;
    color: var(--success);
}

.confirmation-page h1 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.confirmation-page > p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2rem;
    text-align: left;
    margin-bottom: 2rem;
}

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

.confirmation-row:last-child {
    border-bottom: none;
    padding-top: 1rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.confirmation-row span:first-child {
    color: var(--text-secondary);
}

.confirmation-steps {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
}

.confirmation-step {
    flex: 1;
    text-align: center;
    padding: 1.25rem;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border-light);
}

.confirmation-step i {
    font-size: 1.5rem;
    color: var(--brand);
    margin-bottom: 0.5rem;
}

.confirmation-step h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.confirmation-step p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── Loyalty / Rewards ─────────────────────────────────────────────────── */
.rewards-page {
    padding: 2rem 0;
}

.rewards-hero {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 3rem;
    color: white;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rewards-hero-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.rewards-hero-text p {
    color: rgba(255,255,255,0.8);
    font-size: 1.05rem;
}

.rewards-points-display {
    text-align: center;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2.5rem;
}

.rewards-points-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.rewards-points-label {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

.tier-badge-desktop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.reward-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    transition: all var(--transition);
}

.reward-card:hover {
    box-shadow: var(--shadow);
}

.reward-card h4 {
    margin-bottom: 0.5rem;
}

.reward-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.reward-card .points-cost {
    font-weight: 800;
    color: var(--brand);
    font-size: 1.1rem;
}

/* ── Offers Page ───────────────────────────────────────────────────────── */
.offers-page {
    padding: 2rem 0;
}

.offers-page h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.offers-page > .container > p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ── Account Page ──────────────────────────────────────────────────────── */
.account-page-desktop {
    padding: 2rem 0;
}

.account-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

.account-sidebar {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--header-height) + 1rem);
}

.account-avatar-desktop {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.account-avatar-desktop i {
    font-size: 2rem;
    color: var(--brand);
}

.account-name {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.account-email {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.account-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.account-nav a:hover,
.account-nav a.active {
    background: var(--brand-light);
    color: var(--brand);
}

.account-nav a i {
    font-size: 1.2rem;
}

.account-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    padding: 2rem;
}

.account-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
    background: #1a1a1a;
    color: rgba(255,255,255,0.7);
    margin-top: auto;
}

.footer-main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-brand .logo {
    color: white;
    text-transform: uppercase;
}

.footer-col h4 {
    color: white;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.25rem;
}

.footer-col a {
    display: block;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
}

.footer-bottom-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--brand);
    color: white;
}

/* ── Modal ─────────────────────────────────────────────────────────────── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    padding: 2rem;
    background: rgba(0,0,0,0.6);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-xl);
    width: min(1040px, 94vw);
    max-width: 1040px;
    min-height: min(640px, 82vh);
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    color: var(--text-muted);
}

.modal-close:hover {
    background: var(--surface-hover);
    color: var(--text);
}

.modal-body {
    padding: 0;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-price {
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-add-btn {
    background: var(--brand);
    color: white;
    font-weight: 700;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    border: none;
    cursor: pointer;
}

.modal-add-btn:hover {
    background: var(--brand-hover);
}

.modifier-group {
    margin-bottom: 1.5rem;
}

.modifier-group h4 {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.modifier-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.modifier-option:last-child {
    border-bottom: none;
}

.modifier-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    cursor: pointer;
}

.modifier-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

.modifier-price {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.quantity-control-desktop {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0.5rem;
}

.qty-btn {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    background: var(--surface);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all var(--transition);
}

.qty-btn:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.qty-display {
    font-weight: 700;
    min-width: 32px;
    text-align: center;
    font-size: 1.1rem;
}

.desktop-item-detail {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    height: 100%;
    min-height: 0;
}

.desktop-item-detail__media {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg);
    border-right: 1px solid var(--border-light);
    overflow: auto;
}

.desktop-item-detail__image-shell {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.desktop-item-detail__image,
.desktop-item-detail__recommendation-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-item-detail__image-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-muted);
}

.desktop-item-detail__badges {
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.desktop-item-detail__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
}

.desktop-item-detail__meta {
    display: grid;
    gap: 0.875rem;
}

.desktop-item-detail__meta-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
}

.desktop-item-detail__alert {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    background: #FEF3C7;
    color: #92400E;
    font-size: 0.9rem;
}

.desktop-item-detail__nutrition {
    display: grid;
    gap: 0.875rem;
    padding: 1rem;
    border-radius: var(--radius);
    background: var(--surface);
}

.desktop-item-detail__nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(78px, 1fr));
    gap: 0.75rem;
}

.desktop-item-detail__nutrition-stat {
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    background: var(--bg);
    text-align: center;
}

.desktop-item-detail__nutrition-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand);
}

.desktop-item-detail__nutrition-label,
.desktop-item-detail__nutrition-footnote {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.desktop-item-detail__nutrition-footnote {
    padding-top: 0.125rem;
}

.desktop-item-detail__main {
    min-width: 0;
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 0;
}

.desktop-item-detail__body {
    display: grid;
    gap: 1.5rem;
    align-content: start;
    padding: 1.5rem;
    overflow: auto;
}

.desktop-item-detail__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.desktop-item-detail__title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.desktop-item-detail__description {
    margin: 0.625rem 0 0;
    max-width: 48ch;
    color: var(--text-muted);
    line-height: 1.65;
}

.desktop-item-detail__base-price {
    flex-shrink: 0;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--brand);
    font-size: 0.95rem;
    font-weight: 800;
    white-space: nowrap;
}

.desktop-item-detail__section {
    display: grid;
    gap: 0.875rem;
}

.desktop-item-detail__section-heading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 800;
}

.desktop-item-detail__modifier-list {
    display: grid;
    gap: 0.75rem;
}

.desktop-item-detail__modifier {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: var(--bg);
}

.desktop-item-detail__modifier:hover {
    border-color: rgba(255, 107, 53, 0.3);
}

.desktop-item-detail__modifier input[type="checkbox"] {
    width: 20px;
    height: 20px;
}

.desktop-item-detail__modifier-name {
    font-weight: 600;
}

.desktop-item-detail__modifier-price {
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
}

.desktop-item-detail__empty {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-muted);
}

.desktop-item-detail__recommendations {
    display: grid;
    gap: 0.875rem;
}

.desktop-item-detail__recommendation-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.desktop-item-detail__recommendation-card {
    display: grid;
    grid-template-columns: 56px 1fr;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    background: var(--surface);
    cursor: pointer;
    text-align: left;
    transition: border-color var(--transition), transform var(--transition);
}

.desktop-item-detail__recommendation-card:hover {
    border-color: var(--brand);
    transform: translateY(-1px);
}

.desktop-item-detail__recommendation-thumb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.desktop-item-detail__recommendation-copy {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.desktop-item-detail__recommendation-name {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desktop-item-detail__recommendation-price {
    color: var(--brand);
    font-size: 0.9rem;
    font-weight: 800;
}

.desktop-item-detail__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--surface);
}

.desktop-item-detail__quantity {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.desktop-item-detail__quantity-label {
    font-weight: 700;
}

.desktop-item-detail__quantity-control {
    padding: 0.4rem;
}

.desktop-item-detail__add-btn {
    min-width: 280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 24px rgba(255, 107, 53, 0.25);
}

.desktop-item-detail__add-price {
    font-size: 1.1rem;
    font-weight: 800;
}

/* ── Alerts & Messages ─────────────────────────────────────────────────── */
.alert-desktop {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success-desktop {
    background: var(--success-bg);
    color: #166534;
}

.alert-error-desktop {
    background: var(--error-bg);
    color: #991B1B;
}

/* ── Loading States ────────────────────────────────────────────────────── */
.htmx-indicator {
    opacity: 0;
    transition: opacity 200ms;
}

.htmx-request .htmx-indicator {
    opacity: 1;
}

/* ── Responsive adjustments for smaller desktops ───────────────────────── */

/* Split-screen / narrow desktop (700px - 1024px): keep two-column but more compact */
@media (min-width: 701px) and (max-width: 1024px) {
    .cart-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }

    .cart-summary {
        padding: 1.25rem;
    }

    .cart-summary h3 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .cart-checkout-btn {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    /* Compact column widths */
    .cart-col-price {
        width: 18%;
        min-width: 65px;
        font-size: 0.85rem;
    }

    .cart-col-qty {
        width: 22%;
        min-width: 90px;
    }

    .cart-col-total {
        width: 18%;
        min-width: 75px;
        font-size: 0.95rem;
    }

    .cart-item-name {
        font-size: 0.95rem;
    }

    .cart-item-modifiers {
        font-size: 0.75rem;
    }
}

/* Very narrow desktop / large tablet (≤700px): switch to single column */
@media (max-width: 700px) {
    .cart-layout,
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary,
    .order-summary-sidebar {
        position: static;
    }

    .cart-summary {
        padding: 1rem;
    }

    .cart-summary h3 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.6rem;
    }

    .cart-checkout-btn {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

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

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

    .account-sidebar {
        position: static;
    }

    .modal-content {
        width: min(920px, 96vw);
        min-height: auto;
    }

    .desktop-item-detail {
        grid-template-columns: 1fr;
    }

    .desktop-item-detail__media {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .desktop-item-detail__recommendation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Split-screen menu cards (701px - 1024px): slightly smaller cards */
@media (min-width: 701px) and (max-width: 1024px) {
    .menu-grid-desktop {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 1.25rem;
    }

    .menu-card-image {
        height: 180px;
    }

    .menu-card-body {
        padding: 1rem;
    }

    .menu-card-title {
        font-size: 1rem;
    }

    .menu-card-desc {
        font-size: 0.8rem;
    }

    .menu-card-price {
        font-size: 1.05rem;
    }

    .menu-card-add {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }
}

/* Narrow split-screen menu cards (≤700px): more compact cards */
@media (max-width: 700px) {
    .menu-grid-desktop {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .menu-card-image {
        height: 150px;
    }

    .menu-card-body {
        padding: 0.85rem;
    }

    .menu-card-title {
        font-size: 0.95rem;
        margin-bottom: 0.25rem;
    }

    .menu-card-desc {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .menu-card-footer {
        gap: 0.5rem;
    }

    .menu-card-price {
        font-size: 1rem;
    }

    .menu-card-add {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .menu-card-badges {
        top: 0.5rem;
        left: 0.5rem;
        gap: 0.35rem;
    }

    .dietary-badge,
    .popular-badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 768px) {
    :root {
        --max-width: 100%;
    }

    .main-nav {
        display: none;
    }

    .header-inner {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

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

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

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .confirmation-steps {
        flex-direction: column;
    }

    .modal-overlay {
        padding: 1rem;
    }

    .modal-content {
        width: 100%;
    }

    .modal-header {
        padding: 1rem 1.25rem;
    }

    .desktop-item-detail__body,
    .desktop-item-detail__media,
    .desktop-item-detail__actions {
        padding: 1.25rem;
    }

    .desktop-item-detail__heading,
    .desktop-item-detail__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .desktop-item-detail__add-btn {
        width: 100%;
        min-width: 0;
    }

    .desktop-item-detail__recommendation-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Utility Classes ───────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ==========================================================================
   PROFESSIONAL GRADE COMPONENTS
   ========================================================================== */

/* ── Cart Drawer (Slide-Out Panel) ────────────────────────────────────── */
.cart-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 420px;
    max-width: 90vw;
    background: var(--surface);
    z-index: 2001;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xl);
}

.cart-drawer-overlay.active .cart-drawer {
    transform: translateX(0);
}

.cart-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.cart-drawer-header h3 {
    font-size: 1.25rem;
    margin: 0;
}

.cart-drawer-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.cart-drawer-close:hover {
    background: var(--bg);
    color: var(--text);
}

.cart-drawer-items {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
}

.cart-drawer-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-light);
}

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

.cart-drawer-item-info {
    flex: 1;
    min-width: 0;
}

.cart-drawer-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-drawer-item-modifiers {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cart-drawer-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-drawer-item-qty {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 0.15rem;
}

.drawer-qty-btn {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}

.drawer-qty-btn:hover {
    background: var(--surface);
    color: var(--brand);
}

.drawer-qty-value {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.cart-drawer-item-price {
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-drawer-item-remove button {
    color: var(--text-muted);
    font-size: 1rem;
    padding: 0.5rem;
    transition: color var(--transition);
}

.cart-drawer-item-remove button:hover {
    color: var(--error);
}

.cart-drawer-summary {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}

.cart-drawer-offer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.cart-drawer-offer button {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.cart-drawer-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.9rem;
}

.cart-drawer-row span:first-child {
    color: var(--text-secondary);
}

.cart-drawer-discount span:last-child {
    color: var(--success);
}

.cart-drawer-total {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid var(--border);
    font-size: 1.15rem;
    font-weight: 800;
}

.cart-drawer-checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem;
    transition: all var(--transition);
    text-decoration: none;
}

.cart-drawer-checkout-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

.cart-drawer-view-cart {
    display: block;
    text-align: center;
    margin-top: 0.65rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-decoration: none;
}

.cart-drawer-view-cart:hover {
    color: var(--brand);
}

.cart-drawer-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    flex: 1;
}

.cart-drawer-empty i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.cart-drawer-empty h4 {
    font-size: 1.1rem;
    margin-bottom: 0.35rem;
}

.cart-drawer-empty p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.cart-drawer-browse-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--brand);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}

.cart-drawer-browse-btn:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

/* ── Toast Notification System ─────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 1rem);
    right: 1.5rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--border);
    min-width: 280px;
    max-width: 400px;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: auto;
    animation: toastSlideIn 0.35s ease forwards;
    opacity: 0;
    transform: translateX(100%);
}

.toast.toast-exit {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-success {
    border-left-color: var(--success);
}

.toast-success i {
    color: var(--success);
}

.toast-error {
    border-left-color: var(--error);
}

.toast-error i {
    color: var(--error);
}

.toast-info {
    border-left-color: var(--brand);
}

.toast-info i {
    color: var(--brand);
}

.toast i {
    font-size: 1.15rem;
    flex-shrink: 0;
}

.toast-close {
    margin-left: auto;
    font-size: 1rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text);
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ── Sticky Desktop Cart Bar ───────────────────────────────────────────── */
.sticky-cart-bar {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1500;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transform: translateY(120%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-cart-bar.visible {
    transform: translateY(0);
}

.sticky-cart-bar-count {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.sticky-cart-bar-count i {
    color: var(--brand);
}

.sticky-cart-bar-total {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text);
}

.sticky-cart-bar-checkout {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 1rem;
    background: var(--brand);
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all var(--transition);
}

.sticky-cart-bar-checkout:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sticky-cart-bar {
        left: 1rem;
        right: 1rem;
        bottom: calc(80px + var(--safe-bottom));
        justify-content: space-between;
    }
}

/* ── Menu Search Bar ───────────────────────────────────────────────────── */
.menu-search-bar {
    position: relative;
    max-width: 480px;
    margin-bottom: 1.5rem;
}

.menu-search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    background: var(--surface);
    transition: all var(--transition);
    color: var(--text);
}

.menu-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.menu-search-input::placeholder {
    color: var(--text-muted);
}

.menu-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    pointer-events: none;
    transition: color var(--transition);
}

.menu-search-input:focus ~ .menu-search-icon {
    color: var(--brand);
}

.menu-search-clear {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all var(--transition);
}

.menu-search-clear.visible {
    display: flex;
}

.menu-search-clear:hover {
    background: var(--border);
    color: var(--text);
}

.menu-search-shortcut {
    position: absolute;
    right: 2.75rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.2rem 0.5rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 600;
    pointer-events: none;
}

.menu-search-input:focus ~ .menu-search-shortcut {
    display: none;
}

.menu-search-no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    grid-column: 1 / -1;
}

.menu-search-no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.menu-search-no-results h3 {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.menu-card.search-hidden {
    display: none;
}

/* ── Skeleton Loading States ───────────────────────────────────────────── */
.skeleton-pulse {
    background: linear-gradient(
        90deg,
        var(--border-light) 25%,
        #e8e8e8 50%,
        var(--border-light) 75%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonPulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.skeleton-card-image {
    width: 100%;
    height: 200px;
}

.skeleton-card-body {
    padding: 1.25rem;
}

.skeleton-card-title {
    height: 18px;
    width: 80%;
    margin-bottom: 0.5rem;
}

.skeleton-card-desc {
    height: 14px;
    width: 100%;
    margin-bottom: 0.35rem;
}

.skeleton-card-desc-short {
    height: 14px;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-card-price {
    height: 22px;
    width: 60px;
}

.skeleton-card-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* Modal Skeleton */
.skeleton-modal-image {
    width: 100%;
    height: 300px;
    border-radius: var(--radius-lg);
}

.skeleton-modal-title {
    height: 28px;
    width: 70%;
    margin-bottom: 0.75rem;
}

.skeleton-modal-desc {
    height: 16px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-modifier {
    height: 40px;
    width: 100%;
    margin-bottom: 0.5rem;
    border-radius: var(--radius-sm);
}

/* ── Page Transition ───────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-fade-in main > * {
    animation: fadeInUp 0.35s ease both;
}

.page-fade-in main > *:nth-child(1) { animation-delay: 0.05s; }
.page-fade-in main > *:nth-child(2) { animation-delay: 0.1s; }
.page-fade-in main > *:nth-child(3) { animation-delay: 0.15s; }

/* ── Micro-interactions ────────────────────────────────────────────────── */
.btn-press:active {
    transform: scale(0.97);
}

.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.12);
}

/* ── Hero Section Enhancement ──────────────────────────────────────────── */
.hero-section.has-image {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 480px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section.has-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-section.has-image .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section.has-image .hero-text {
    color: white;
}

.hero-section.has-image .hero-text p {
    color: rgba(255, 255, 255, 0.85);
}

.hero-section.has-image .hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section.has-image .hero-stat-value {
    color: white;
}

.hero-section.has-image .hero-stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* ── Image Fade-In ─────────────────────────────────────────────────────── */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* ── Footer Newsletter ─────────────────────────────────────────────────── */
.footer-newsletter {
    padding: 1.25rem 0 0;
}

.footer-newsletter p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.85rem;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-form input:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-form button {
    padding: 0.6rem 1rem;
    background: var(--brand);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.footer-newsletter-form button:hover {
    background: var(--brand-hover);
}

.footer-trust {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-trust-badges {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-trust-badge i {
    font-size: 1.1rem;
}

/* ── Skip to Content Link (A11y) ───────────────────────────────────────── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--brand);
    color: white;
    font-weight: 700;
    border-radius: 0 0 var(--radius) var(--radius);
    z-index: 9999;
    transition: top 0.2s ease;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* ── Focus Visible (A11y) ──────────────────────────────────────────────── */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 0;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* ── Cookie Consent Banner ──────────────────────────────────────────── */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.25rem 2rem;
}

.cookie-consent-banner.visible {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.cookie-consent-text p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
}

.cookie-consent-text a {
    color: var(--brand);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: var(--brand);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
}

.cookie-btn-essential {
    background: var(--bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.cookie-btn-essential:hover {
    background: var(--surface-hover);
    border-color: var(--text-muted);
}

@media (max-width: 768px) {
    .cookie-consent-banner {
        padding: 1rem 1.25rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .cookie-consent-actions {
        justify-content: stretch;
    }

    .cookie-consent-actions .cookie-btn {
        flex: 1;
    }
}

/* ==========================================================================
   Desktop New Look
   Warm premium ordering treatment adapted from the provided preview.
   ========================================================================== */
:root {
    --preview-soft: #f7f4f1;
    --preview-border: #ece7e2;
    --preview-ink: #151515;
    --preview-muted: #6b7280;
    --preview-shadow: 0 18px 45px rgba(21, 21, 21, 0.10);
    --preview-shadow-soft: 0 10px 28px rgba(21, 21, 21, 0.08);
}

body {
    background:
        radial-gradient(circle at 15% 8%, rgba(255, 107, 53, 0.12), transparent 28%),
        linear-gradient(180deg, #fffaf6 0%, #f8f4ef 42%, #ffffff 100%);
    color: var(--preview-ink);
}

.container,
.header-inner,
.hero-section {
    max-width: 1180px;
}

.site-header {
    height: 78px;
    background: rgba(255, 250, 246, 0.86);
    border-bottom: 1px solid rgba(236, 231, 226, 0.9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header.scrolled {
    box-shadow: 0 12px 30px rgba(21, 21, 21, 0.08);
}

.header-inner {
    height: 78px;
    padding: 0 22px;
}

.logo {
    gap: 0.9rem;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0;
}

.logo img,
.logo-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #171717;
    color: #ffffff;
    display: grid;
    place-items: center;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    object-fit: cover;
}

.logo-mark i {
    font-size: 1.35rem;
}

.main-nav {
    gap: 1.75rem;
}

.main-nav a {
    color: #4b5563;
    font-weight: 700;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand);
}

.main-nav a::after {
    display: none;
}

.header-icon-btn,
.btn-account {
    border: 1px solid var(--preview-border);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 8px 18px rgba(21, 21, 21, 0.06);
    border-radius: 14px;
}

.btn-order,
.hero-btn-primary {
    border-radius: 16px;
    background: var(--brand);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 16px 32px rgba(255, 107, 53, 0.32);
}

.hero-section {
    padding: 34px 22px 24px;
    margin: 0 auto;
    min-height: 0;
    display: block;
    background: transparent;
    overflow: visible;
}

.hero-section::before,
.hero-section::after {
    display: none;
}

.hero-card {
    position: relative;
    overflow: hidden;
    min-height: 540px;
    border-radius: 34px;
    background:
        radial-gradient(circle at 78% 20%, rgba(255, 107, 53, 0.32), transparent 27%),
        radial-gradient(circle at 86% 92%, rgba(255, 255, 255, 0.12), transparent 24%),
        linear-gradient(135deg, #121212 0%, #1c1b19 48%, #2b211d 100%);
    box-shadow: var(--preview-shadow);
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.03fr 0.97fr;
    align-items: center;
    gap: 20px;
    padding: 56px;
}

.hero-card.has-restaurant-image::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(18, 18, 18, 0.86), rgba(36, 25, 20, 0.72)),
        var(--hero-bg-image) center/cover no-repeat;
    opacity: 0.72;
}

.hero-copy,
.hero-plate {
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: none;
    padding: 0;
}

.hero-text {
    max-width: 610px;
}

.hero-badge {
    color: #ffd8ca;
    background: rgba(255, 107, 53, 0.18);
    border-color: rgba(255, 107, 53, 0.28);
    padding: 0.55rem 0.9rem;
    font-size: 0.86rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: 0;
    font-weight: 900;
    margin-bottom: 1.35rem;
}

.hero-text p {
    max-width: 500px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 1.14rem;
    line-height: 1.75;
    margin-bottom: 1.85rem;
}

.hero-actions {
    gap: 0.9rem;
    margin-bottom: 1.9rem;
}

.hero-btn-primary,
.hero-btn-secondary {
    padding: 0.9rem 1.35rem;
    border-radius: 16px;
}

.hero-btn-secondary {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    font-weight: 900;
}

.hero-stats {
    max-width: 520px;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-value {
    font-size: 1.35rem;
    color: #ffffff;
}

.hero-stat-label {
    color: rgba(255, 255, 255, 0.48);
    letter-spacing: 0.08em;
    font-size: 0.72rem;
}

.hero-plate {
    min-height: 430px;
    display: grid;
    place-items: center;
}

.plate-glow {
    position: absolute;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.25), transparent 62%);
    filter: blur(2px);
}

.plate {
    width: min(410px, 90%);
    aspect-ratio: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #fff7ef, #ffffff);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.35), inset 0 0 0 20px #f3eee8;
    display: grid;
    place-items: center;
    position: relative;
}

.plate-food {
    width: 74%;
    height: 74%;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 6rem;
    background:
        radial-gradient(circle at 35% 35%, #d79f43 0 16%, transparent 17%),
        radial-gradient(circle at 60% 58%, #3f8f3d 0 13%, transparent 14%),
        radial-gradient(circle at 47% 68%, #9a3f2e 0 12%, transparent 13%),
        linear-gradient(145deg, #f0d8aa, #c7803f);
    box-shadow: inset 0 0 0 14px rgba(255, 255, 255, 0.22);
    overflow: hidden;
}

.plate-food img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-chip {
    position: absolute;
    right: 26px;
    bottom: 34px;
    width: 190px;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.floating-chip strong,
.floating-chip span {
    display: block;
}

.floating-chip strong {
    font-size: 0.95rem;
}

.floating-chip span {
    margin-top: 4px;
    color: var(--preview-muted);
    font-weight: 700;
    font-size: 0.8rem;
}

.service-bar {
    margin: -20px auto 34px;
    position: relative;
    z-index: 6;
    border: 0;
    background: transparent;
}

.service-bar-inner {
    justify-content: center;
    gap: 14px;
}

.service-toggle-desktop {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--preview-border);
    box-shadow: var(--preview-shadow-soft);
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
}

.service-toggle-desktop button {
    padding: 0.75rem 1.75rem;
    border-radius: 999px;
    font-weight: 900;
    color: #4b5563;
}

.service-toggle-desktop button.active {
    background: var(--brand);
    color: #ffffff;
    box-shadow: none;
}

.service-info {
    color: #4b5563;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--preview-border);
    padding: 0.75rem 1rem;
    border-radius: 999px;
}

.section {
    background: transparent;
}

.section-header {
    align-items: end;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
}

.section-header p {
    color: var(--preview-muted);
    font-weight: 600;
}

.category-nav {
    border: 0;
    background: transparent;
    margin-bottom: 0;
}

.category-nav-inner {
    gap: 10px;
    padding: 8px 0 18px;
}

.category-nav-inner a,
.dietary-filter-pill {
    flex: 0 0 auto;
    border: 1px solid var(--preview-border);
    background: rgba(255, 255, 255, 0.78);
    color: #374151;
    border-radius: 999px;
    padding: 0.75rem 1.1rem;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(21, 21, 21, 0.04);
}

.category-nav-inner a.active,
.category-nav-inner a:hover,
.dietary-filter-pill.active {
    color: var(--brand);
    background: var(--brand-light);
    border-color: rgba(255, 107, 53, 0.28);
}

.dietary-filter-pill.clear {
    color: var(--error);
    background: var(--error-bg);
    border-color: rgba(220, 38, 38, 0.28);
}

.dietary-filter-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 1.15rem 0 0;
}

.menu-search-bar {
    max-width: 520px;
    margin-top: 1.35rem;
}

.menu-search-input {
    border-color: var(--preview-border);
    border-radius: 18px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(21, 21, 21, 0.04);
}

.menu-grid-desktop {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.menu-card {
    border-color: var(--preview-border);
    border-radius: 24px;
    box-shadow: 0 8px 22px rgba(21, 21, 21, 0.05);
    min-height: 350px;
    display: grid;
    grid-template-rows: 178px 1fr;
}

.menu-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 22px 45px rgba(21, 21, 21, 0.11), 0 8px 24px rgba(255, 107, 53, 0.12);
}

.menu-card-image {
    height: 178px;
    background: linear-gradient(145deg, #fbfaf8, #f1eee9);
}

.menu-card-image .placeholder-icon {
    background: transparent;
    font-size: 4.3rem;
}

.menu-card-body {
    padding: 20px;
    display: grid;
    align-content: space-between;
    gap: 16px;
}

.menu-card-title {
    font-size: 1.05rem;
    line-height: 1.35;
    letter-spacing: 0;
}

.menu-card-desc {
    color: var(--preview-muted);
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 600;
}

.menu-card-price {
    font-size: 1.18rem;
    font-weight: 900;
}

.menu-card-add {
    width: 44px;
    height: 44px;
    box-shadow: 0 12px 24px rgba(255, 107, 53, 0.34);
}

.menu-card-add:hover {
    transform: scale(1.13);
    box-shadow: 0 14px 28px rgba(255, 107, 53, 0.38);
}

.popular-badge,
.dietary-badge {
    border-radius: 999px;
    font-weight: 900;
}

.sticky-cart-bar {
    width: min(720px, calc(100% - 32px));
    bottom: 22px;
    background: rgba(20, 20, 20, 0.92);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    padding: 12px 14px 12px 18px;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(16px);
}

.sticky-cart-bar-count {
    color: #ffffff;
    font-weight: 900;
}

.sticky-cart-bar-count i {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--brand);
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.35);
}

.sticky-cart-bar-total {
    color: rgba(255, 255, 255, 0.7);
}

.sticky-cart-bar-checkout {
    background: #ffffff;
    color: #111827;
    border-radius: 999px;
    font-weight: 900;
}

.sticky-cart-bar-checkout:hover {
    background: #fff4ed;
    color: #111827;
}

.scroll-to-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #ffffff;
    border: 0;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    box-shadow: 0 16px 32px rgba(255, 107, 53, 0.32);
    z-index: 500;
    opacity: 0;
    visibility: hidden;
    transform: translateY(18px);
    transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--brand-hover);
}

@media (max-width: 1180px) {
    .menu-grid-desktop {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 920px) {
    .main-nav {
        display: none;
    }

    .header-right .btn-order {
        display: none;
    }

    .hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 34px;
    }

    .hero-plate {
        min-height: 300px;
    }

    .menu-grid-desktop {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dietary-filter-row {
        justify-content: flex-start;
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 14px 14px 20px;
    }

    .hero-card {
        border-radius: 26px;
        padding: 26px 20px 20px;
    }

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

    .hero-text p {
        font-size: 1rem;
        line-height: 1.65;
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-btn-primary,
    .hero-btn-secondary {
        justify-content: center;
    }

    .hero-stats {
        gap: 10px;
    }

    .hero-stat-value {
        font-size: 1.05rem;
    }

    .hero-stat-label {
        font-size: 0.62rem;
    }

    .plate {
        width: 255px;
    }

    .plate-food {
        font-size: 4rem;
    }

    .floating-chip {
        display: none;
    }

    .service-bar {
        margin-top: -8px;
    }

    .service-bar-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 0 14px;
    }

    .service-toggle-desktop {
        width: 100%;
    }

    .service-toggle-desktop button {
        flex: 1;
        padding: 0.75rem 0.6rem;
    }

    .service-info {
        justify-content: center;
    }

    .menu-grid-desktop {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .menu-card {
        grid-template-columns: 112px 1fr;
        grid-template-rows: auto;
        min-height: 0;
    }

    .menu-card-image {
        height: auto;
        min-height: 150px;
    }

    .menu-card-image .placeholder-icon {
        font-size: 3.4rem;
    }

    .menu-card-body {
        padding: 16px;
    }

    .sticky-cart-bar {
        bottom: 14px;
        border-radius: 24px;
    }

    .scroll-to-top {
        right: 18px;
        bottom: 98px;
        width: 44px;
        height: 44px;
    }
}

/* Customer pages: responsive page-wide polish */
.customer-ui .section {
    padding-block: clamp(2.5rem, 5vw, 4.5rem);
}

.customer-ui .section > .container {
    width: min(100%, 1180px);
}

.customer-ui .section > .container > h1,
.customer-ui .account-page-desktop h1,
.customer-ui .rewards-page h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
    font-weight: 900;
}

.customer-ui .section > .container > p,
.customer-ui .account-page-desktop p,
.customer-ui .rewards-page p {
    color: var(--preview-muted);
    font-weight: 600;
}

.customer-ui .cart-summary,
.customer-ui .order-summary-sidebar,
.customer-ui .checkout-form-section,
.customer-ui .account-card-desktop,
.customer-ui .auth-card-desktop,
.customer-ui .order-card-desktop,
.customer-ui .profile-section,
.customer-ui .rewards-page > .container > div,
.customer-ui .account-page-desktop .container > div,
.customer-ui .section .container > div[style*="background:var(--surface)"],
.customer-ui .section .container > div[style*="background: var(--surface)"] {
    background: rgba(255, 255, 255, 0.88) !important;
    border-color: var(--preview-border) !important;
    border-radius: 24px !important;
    box-shadow: 0 12px 30px rgba(21, 21, 21, 0.06);
}

.customer-ui .cart-layout,
.customer-ui .checkout-layout {
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: start;
}

.customer-ui .cart-table-header,
.customer-ui .cart-table-row {
    grid-template-columns: minmax(0, 2fr) minmax(88px, 0.7fr) minmax(112px, 0.7fr) minmax(88px, 0.7fr) 44px;
}

.customer-ui .cart-table-row {
    background: rgba(255,255,255,0.88);
    border-color: var(--preview-border);
    border-radius: 18px;
}

.customer-ui .cart-qty-controls,
.customer-ui .quantity-control-desktop {
    border-radius: 999px;
}

.customer-ui .cart-checkout-btn,
.customer-ui .cart-drawer-checkout-btn,
.customer-ui .modal-add-btn,
.customer-ui button[type="submit"].hero-btn-primary {
    border-radius: 16px;
    font-weight: 900;
}

.customer-ui .form-group-desktop input,
.customer-ui .form-group-desktop textarea,
.customer-ui .form-group-desktop select,
.customer-ui .menu-search-input,
.customer-ui #voucherInput {
    border-color: var(--preview-border) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 18px rgba(21,21,21,0.04);
}

.customer-ui .time-slots,
.customer-ui .payment-options,
.customer-ui .form-row {
    gap: 0.9rem;
}

.customer-ui .time-slot,
.customer-ui .payment-option {
    border-color: var(--preview-border);
    border-radius: 18px;
}

.customer-ui .offer-card-desktop,
.customer-ui .menu-card,
.customer-ui .meal-deal-card,
.customer-ui .order-history-card {
    border-color: var(--preview-border);
    border-radius: 24px;
}

.customer-ui .cart-drawer {
    width: min(420px, 100vw);
}

.customer-ui .cookie-consent-banner {
    border-color: var(--preview-border);
    border-radius: 20px 20px 0 0;
}

@media (max-width: 980px) {
    .customer-ui .checkout-layout,
    .customer-ui .cart-layout {
        grid-template-columns: 1fr;
    }

    .customer-ui .order-summary-sidebar,
    .customer-ui .cart-summary {
        position: static;
    }

    .customer-ui .cart-table-header {
        display: none;
    }

    .customer-ui .cart-table-row {
        grid-template-columns: 1fr auto;
        gap: 0.75rem;
        padding: 1rem;
    }

    .customer-ui .cart-col-item {
        grid-column: 1 / -1;
    }

    .customer-ui .cart-col-price,
    .customer-ui .cart-col-total {
        display: none;
    }

    .customer-ui .cart-col-qty {
        justify-self: start;
    }

    .customer-ui .cart-col-action {
        justify-self: end;
    }
}

@media (max-width: 760px) {
    .customer-ui .section {
        padding-block: 1.75rem;
    }

    .customer-ui .container,
    .customer-ui .header-inner {
        padding-inline: 1rem;
    }

    .customer-ui .header-left {
        min-width: 0;
    }

    .customer-ui .logo {
        min-width: 0;
    }

    .customer-ui .logo-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .customer-ui .header-right {
        gap: 0.6rem;
    }

    .customer-ui .btn-account {
        display: none;
    }

    .customer-ui .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-ui .form-row,
    .customer-ui .time-slots,
    .customer-ui .payment-options {
        grid-template-columns: 1fr;
    }
}
