/* ==============================================================================
   Ruby's Pizza - Main Stylesheet
   A polished, professional design for an artisan pizza shop
   ============================================================================== */

/* --- Skip to content (accessibility) --- */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.75rem 1.5rem;
    background: var(--color-primary);
    color: #fff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-to-content:focus {
    top: 0;
    color: #fff;
}

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #1A1A2E;
    --color-primary-dark: #0F0F1A;
    --color-primary-light: #F7F5F2;
    --color-secondary: #C8A97E;
    --color-accent: #D4A574;
    --color-accent-soft: #F5EDE4;
    --color-espresso: #1A1A2E;
    --color-chocolate: #2D2D44;
    --color-terracotta: #C8A97E;
    --color-sage: #6B8F71;
    --color-tomato: #C41E1E;
    --color-cream: #FAFAF7;
    --color-linen: #F5F0EB;
    --color-bg: #FAFAF7;
    --color-bg-white: #FFFFFF;
    --color-bg-warm: #F5F0EB;
    --color-text: #1A1A2E;
    --color-text-light: #5A5A72;
    --color-text-muted: #8A8A9A;
    --color-border: #E5E2DD;
    --color-border-light: #F0EDE8;
    --color-success: #2E7D32;
    --color-success-bg: #E8F5E9;
    --color-error: #C62828;
    --color-error-bg: #FFEBEE;
    --color-warning: #F57F17;
    --color-warning-bg: #FFF8E1;
    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 12px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 4px 20px rgba(26, 26, 46, 0.1);
    --shadow-xl: 0 8px 30px rgba(26, 26, 46, 0.12);
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --radius-xl: 14px;
    --radius-full: 9999px;
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.25s ease;
    --container-max: 1200px;
    --nav-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1;
    padding-top: var(--nav-height);
}

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

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

a:hover {
    color: var(--color-secondary);
}

/* --- Selection --- */
::selection {
    background: var(--color-primary);
    color: #fff;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-secondary);
}

h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
h2 { font-size: 2rem; margin-bottom: 0.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.35rem; }
h4 { font-size: 1.25rem; margin-bottom: 0.25rem; }

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

/* --- Page entrance animation --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-content {
    animation: fadeInUp 0.4s ease-out;
}

/* ==============================================================================
   NAVBAR
   ============================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-light);
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(26, 26, 46, 0.08);
    border-bottom-color: rgba(200, 169, 126, 0.15);
}

.navbar-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.01em;
    margin-right: auto;
}

.navbar-brand:hover {
    color: var(--color-chocolate);
}

.navbar-brand .brand-icon {
    font-size: 1.5rem;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    order: 5;
}

.navbar-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-light);
    transition: all var(--transition);
}

.navbar-links a:hover {
    color: var(--color-primary);
}

.navbar-links a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.navbar-links .nav-cta {
    background: var(--color-secondary);
    color: var(--color-primary) !important;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(200, 169, 126, 0.25);
    transition: all var(--transition);
}

.navbar-links .nav-cta:hover {
    background: #B8955F;
    box-shadow: 0 4px 12px rgba(200, 169, 126, 0.4);
    transform: translateY(-1px);
}

/* Navbar cart icon */
.navbar-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem;
    margin-left: 1rem;
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.2s;
    order: 10;
}
.navbar-cart:hover {
    color: var(--color-secondary);
}
.navbar-cart-badge {
    position: absolute;
    top: -2px;
    right: -6px;
    background: var(--color-secondary, #C8A97E);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    line-height: 17px;
    text-align: center;
    border-radius: 50%;
    padding: 0 4px;
}

/* Mobile hamburger */
.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--color-text);
}

.navbar-toggle svg {
    width: 24px;
    height: 24px;
}

@media (max-width: 768px) {
    .navbar-inner {
        justify-content: center;
    }
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .navbar-cart {
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        margin-left: 0;
    }
    .navbar-toggle {
        display: block;
        position: absolute;
        right: 1rem;
    }

    .navbar-links {
        display: flex;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg-white);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
        transform: translateY(-10px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
    }

    .navbar-links.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .navbar-links a {
        padding: 0.75rem 1rem;
        width: 100%;
    }
}

/* ==============================================================================
   ALERTS / FLASH MESSAGES
   ============================================================================== */
.alert {
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: fadeInUp 0.3s ease-out;
}

.alert-success {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid #C8E6C9;
}

.alert-error {
    background-color: var(--color-error-bg);
    color: var(--color-error);
    border: 1px solid #FFCDD2;
}

.alert-warning {
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
    border: 1px solid #FFECB3;
}

.alert-info {
    background-color: #E3F2FD;
    color: #1565C0;
    border: 1px solid #BBDEFB;
}

/* ==============================================================================
   TOAST NOTIFICATIONS
   ============================================================================== */
.toast-container {
    position: fixed;
    top: calc(var(--nav-height) + 1rem);
    right: 1rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.toast {
    background: var(--color-bg-white);
    border-radius: var(--radius-md);
    padding: 0.85rem 1.25rem;
    padding-right: 2.5rem;
    box-shadow: var(--shadow-xl);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    pointer-events: auto;
    animation: toastIn 0.3s ease-out;
    max-width: 380px;
    border-left: 4px solid var(--color-primary);
    position: relative;
}

.toast-close {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-text-muted);
    padding: 0.25rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: color 0.2s, background 0.2s;
}

.toast-close:hover {
    color: var(--color-text);
    background: rgba(0, 0, 0, 0.05);
}

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

.toast.removing {
    animation: toastOut 0.3s ease-in forwards;
}

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

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

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    min-height: 44px;
}

.btn:active {
    transform: scale(0.97);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(200, 169, 126, 0.25);
    font-weight: 600;
}

.btn-primary:hover {
    background: #B8955F;
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 169, 126, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-espresso);
    border: 1.5px solid var(--color-espresso);
    border-radius: var(--radius-full);
}

.btn-secondary:hover {
    background: var(--color-espresso);
    color: var(--color-cream);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn-accent {
    background: var(--color-accent);
    color: var(--color-secondary);
}

.btn-accent:hover {
    background: #E6C200;
    color: var(--color-secondary);
}

.btn-ghost {
    background: transparent;
    color: var(--color-text-light);
}

.btn-ghost:hover {
    background: var(--color-bg-warm);
    color: var(--color-primary);
}

.btn-lg {
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    border-radius: var(--radius-full);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
    box-shadow: none;
}

.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- Loading spinner inside button --- */
.btn .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==============================================================================
   CARDS
   ============================================================================== */
.card {
    background: var(--color-cream);
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: 0 1px 3px rgba(26, 26, 46, 0.06), 0 6px 16px rgba(26, 26, 46, 0.04);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 8px rgba(26, 26, 46, 0.08), 0 12px 28px rgba(26, 26, 46, 0.1);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* ==============================================================================
   FORMS
   ============================================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

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

.form-group .optional {
    font-weight: 400;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-bg-white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
    outline: 2px solid transparent;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.12);
}

.form-control.input-error {
    border-color: var(--color-error);
}

.form-control::placeholder {
    color: var(--color-text-muted);
}

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

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.field-error {
    display: block;
    color: var(--color-error);
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1rem;
}

/* ==============================================================================
   BADGES / CHIPS
   ============================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-primary {
    background: var(--color-bg-warm);
    color: var(--color-primary);
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge-error {
    background: var(--color-error-bg);
    color: var(--color-error);
}

.badge-accent {
    background: var(--color-accent-soft);
    color: var(--color-secondary);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--color-bg-warm);
    color: var(--color-text);
    border: 1px solid var(--color-border-light);
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero {
    background: var(--color-bg);
    padding: 5rem 1.5rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 126, 0.08) 0%, rgba(26, 26, 46, 0.03) 40%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Hero with background image (homepage) - overrides grain + circle */
.hero--banner {
    background: url('/images/hero-banner.jpg?v=2') center center / cover no-repeat !important;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.hero--banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.15) 40%,
        rgba(26, 26, 46, 0.35) 100%
    ) !important;
    opacity: 1;
    z-index: 0;
}
.hero--banner::after {
    display: none;
}
.hero--banner .hero-title {
    color: #FFFFFF !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
    font-weight: 900;
}
.hero--banner .hero-tagline {
    color: #FFFFFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    font-weight: 500;
}
.hero--banner .btn-primary {
    background: rgba(200, 169, 126, 0.75) !important;
    backdrop-filter: blur(4px);
}
.hero--banner .btn-primary:hover {
    background: rgba(184, 149, 95, 0.9) !important;
}
.hero--banner .btn-outline {
    color: #FFFFFF !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(4px);
}
.hero--banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--color-primary) !important;
    border-color: #FFFFFF !important;
}

/* Reorder shortcut in hero banner */
.hero--banner .reorder-shortcut {
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-full);
}
.hero--banner .reorder-shortcut:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary);
    border-color: rgba(255, 255, 255, 0.9);
}
@media (max-width: 768px) {
    .hero--banner {
        background-image: url('/images/hero-banner-mobile.jpg?v=2') !important;
        min-height: 500px;
    }
}

/* Kosher badge in hero — pinned top-right */
.hero-kosher-badge {
    position: absolute !important;
    top: 1rem;
    right: 1.5rem;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 0.3rem 0.75rem 0.3rem 0.3rem;
}
.hero-kosher-badge img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    padding: 2px;
}
.hero-kosher-badge span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.02em;
}
@media (max-width: 768px) {
    .hero-kosher-badge {
        top: 0.5rem;
        right: 0.75rem;
        padding: 0.2rem 0.5rem 0.2rem 0.2rem;
    }
    .hero-kosher-badge img { width: 22px; height: 22px; }
    .hero-kosher-badge span { font-size: 0.6rem; }
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-secondary);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-tagline {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
}

/* ==============================================================================
   SECTION STYLES
   ============================================================================== */
.section {
    padding: 4rem 1.5rem;
}

/* Alternating section backgrounds for visual rhythm */
.section:nth-child(even) {
    background: var(--color-bg-white);
}

.section:nth-child(odd) {
    background: var(--color-linen);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Brass accent underline on section titles */
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 2px;
    margin: 0.6rem auto 0;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==============================================================================
   HOW IT WORKS
   ============================================================================== */
.how-it-works {
    background: var(--color-cream);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.step-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.1);
}

.step-card:hover::before {
    opacity: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

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

/* ==============================================================================
   UPCOMING DATES
   ============================================================================== */
.dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.date-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
    text-align: center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
}

.date-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(26, 26, 46, 0.12);
    border-color: var(--color-secondary);
}

.date-card .date-header-strip {
    background: var(--color-secondary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-primary);
}

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

.date-card .date-day {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-espresso);
    line-height: 1.1;
}

.date-card .date-month {
    font-size: 0.95rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.date-card .date-weekday {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
}

.date-card .date-slots {
    font-size: 0.8rem;
    font-weight: 600;
}

.date-card .date-slots.available {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-success-bg);
    color: var(--color-sage);
}

.date-card .date-slots.limited {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.date-card .date-slots.full {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: var(--radius-full);
    background: var(--color-error-bg);
    color: var(--color-error);
}

/* ==============================================================================
   MENU GRID
   ============================================================================== */
.menu-section {
    margin-bottom: 3rem;
}

.menu-section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: 0.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--color-secondary);
    display: inline-block;
}

.menu-section-desc {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    margin-top: 0.5rem;
}

/* Testimonials auto-scroll carousel */
.testimonials-track {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}
.testimonials-slider {
    display: flex;
    gap: 1.25rem;
    animation: testimonialScroll 30s linear infinite;
    width: max-content;
}
.testimonials-slider:hover {
    animation-play-state: paused;
}
@keyframes testimonialScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.testimonial-card {
    flex-shrink: 0;
    width: 280px;
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border-light);
}
.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
    font-style: italic;
    margin-bottom: 0.75rem;
}
.testimonial-author {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.menu-carousel {
    position: relative;
}

.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 2;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--color-secondary);
    background: var(--color-bg-white);
    color: var(--color-secondary);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(26, 26, 46, 0.08);
}

.carousel-arrow:hover {
    background: var(--color-secondary);
    color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(200, 169, 126, 0.3);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.92);
}

.carousel-prev {
    left: -20px;
}

.carousel-next {
    right: -20px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .menu-carousel {
        position: relative;
    }

    .menu-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
    }

    .menu-grid::-webkit-scrollbar {
        display: none;
    }

    .menu-grid > .pizza-card {
        flex: 0 0 100%;
        scroll-snap-align: start;
        min-width: 0;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }

    .carousel-prev {
        left: -4px;
    }

    .carousel-next {
        right: -4px;
    }
}

/* Topping cards grid for menu page */
.toppings-grid-menu {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.topping-menu-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(26, 26, 46, 0.06);
    border: 1px solid var(--color-border-light);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
}

.topping-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(26, 26, 46, 0.1);
    border-color: var(--color-secondary);
}

.topping-menu-card.topping-popular {
    border: 2px solid var(--color-secondary);
    background: linear-gradient(135deg, var(--color-bg-white) 0%, rgba(200, 169, 126, 0.06) 100%);
}

.topping-popular-tag {
    position: absolute;
    top: -8px;
    right: -6px;
    background: linear-gradient(135deg, var(--color-secondary), #B8956E);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.topping-menu-emoji {
    font-size: 2rem;
    line-height: 1;
}

.topping-menu-name {
    font-weight: 600;
    color: var(--color-espresso);
    font-size: 0.95rem;
}

.topping-menu-price {
    color: var(--color-text-muted);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .toppings-grid-menu {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.6rem;
    }

    .topping-menu-card {
        flex-direction: row;
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
        border-radius: var(--radius-md);
    }

    .topping-menu-emoji {
        font-size: 1.3rem;
    }

    .topping-menu-name {
        font-size: 0.85rem;
        flex: 1;
    }

    .topping-menu-price {
        font-size: 0.75rem;
    }

    .topping-popular-tag {
        top: -6px;
        right: -4px;
        font-size: 0.55rem;
        padding: 1px 5px;
    }
}

.pizza-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
    border: 1px solid var(--color-border-light);
}

.pizza-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(26, 26, 46, 0.14);
}

.pizza-card:hover .pizza-card-image {
    transform: scale(1.08);
}

.pizza-card-image {
    width: 100%;
    height: 200px;
    background: var(--color-bg-warm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.pizza-card-body {
    padding: 1.5rem;
}

.pizza-card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
}

.pizza-card-desc {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.pizza-card-price {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

.pizza-card-price .from {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--color-text-muted);
    font-family: var(--font-body);
}

/* Allergen pills & vegan badges */
.allergen-pills { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 4px; }
.allergen-pill { font-size: 0.65rem; padding: 1px 6px; border-radius: 8px; background: #fef3c7; color: #92400e; font-weight: 500; line-height: 1.4; }
.vegan-badge { display: inline-block; font-size: 0.7rem; padding: 2px 8px; border-radius: 10px; background: #dcfce7; color: #166534; font-weight: 600; margin-top: 4px; }
.allergen-disclaimer { text-align: center; font-size: 0.8rem; color: var(--color-text-muted); padding: 1rem; margin-top: 2rem; border-top: 1px solid #e5e7eb; }

/* Allergen indicator on topping cards — tooltip on hover */
.topping-allergen-indicator {
    position: absolute;
    bottom: 4px;
    right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.6rem;
    font-style: italic;
    font-weight: 700;
    cursor: help;
    line-height: 1;
}
.topping-allergen-indicator .allergen-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a2e;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 20;
    pointer-events: none;
}
.topping-allergen-indicator .allergen-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1a1a2e;
}
.topping-allergen-indicator:hover .allergen-tooltip,
.topping-allergen-indicator:focus .allergen-tooltip {
    display: block;
}

/* Inline allergen pills — hidden on desktop, shown on mobile */
.topping-allergen-inline {
    display: none;
}
.allergen-pill-sm {
    font-size: 0.6rem;
    padding: 1px 5px;
    border-radius: 6px;
    background: #fef3c7;
    color: #92400e;
    font-weight: 500;
    margin-right: 2px;
}
@media (max-width: 768px) {
    .topping-allergen-indicator { display: none !important; }
    .topping-allergen-inline {
        display: flex;
        flex-wrap: wrap;
        gap: 2px;
        margin-top: 2px;
    }
}

.toppings-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

/* ==============================================================================
   ORDER PAGE - MULTI-STEP FLOW
   ============================================================================== */
.order-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Progress bar */
.progress-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    position: relative;
    padding: 0 1rem;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: var(--color-border);
    z-index: 0;
}

.progress-bar .progress-fill {
    position: absolute;
    top: 20px;
    left: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    z-index: 1;
    transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border-radius: 2px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    cursor: pointer;
}

.progress-step .step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-white);
    border: 3px solid var(--color-border);
    color: var(--color-text-muted);
    font-weight: 700;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.progress-step.active .step-circle {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(26, 26, 46, 0.12);
}

.progress-step.completed .step-circle {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: var(--color-primary);
}

.progress-step .step-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.progress-step.active .step-label {
    color: var(--color-primary);
}

.progress-step.completed .step-label {
    color: var(--color-secondary);
}

@media (max-width: 480px) {
    .progress-step .step-label {
        font-size: 0.7rem;
    }
    .progress-step .step-circle {
        width: 34px;
        height: 34px;
        font-size: 0.8rem;
    }
}

/* Order steps */
.order-step {
    display: none;
    animation: fadeInUp 0.35s ease-out;
}

.order-step.active {
    display: block;
}

.step-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.step-subtitle {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

/* ==============================================================================
   PIZZA PREVIEW
   ============================================================================== */
/* Mini pizza preview - decorative accent in pizza builder header */
.pizza-preview-mini {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.pizza-crust {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #C4894D;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12), inset 0 1px 3px rgba(0,0,0,0.1);
}

.pizza-sauce {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #D44420, #B8301A);
    padding: 4px;
}

.pizza-cheese {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(255,235,150,0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 60%, rgba(255,235,150,0.6) 0%, transparent 40%),
        radial-gradient(circle, #F5D678 0%, #EECC55 100%);
    position: relative;
    overflow: hidden;
}

.pizza-toppings-layer {
    position: absolute;
    inset: 0;
}

.pizza-topping {
    position: absolute;
    font-size: 0.55rem;
    line-height: 1;
    pointer-events: none;
    animation: toppingPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    opacity: 0;
    transform: scale(0);
}

.pizza-topping.removing {
    animation: toppingFade 0.2s ease-out forwards;
}

@keyframes toppingPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes toppingFade {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* Pizza Builder */
.pizza-builder {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    scroll-margin-top: 100px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.pizza-builder-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
}

.pizza-builder-header .remove-pizza-btn {
    margin-left: auto;
}

.pizza-builder-title {
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-pizza-btn {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-size: 1.2rem;
}

.remove-pizza-btn:hover {
    color: var(--color-error);
    background: var(--color-error-bg);
}

/* Base pizza selector */
.base-selector {
    margin-bottom: 1.25rem;
}

.base-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.base-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}

.base-option {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-cream);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.base-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.base-option.selected {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.2);
}

/* Sold out dough items */
.base-option.sold-out,
.side-card.sold-out {
    opacity: 0.45;
    pointer-events: none;
    position: relative;
    filter: grayscale(0.5);
}
.base-option.sold-out::after,
.side-card.sold-out::after {
    content: 'Sold out for this date';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(26, 26, 46, 0.85);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 2;
    pointer-events: none;
}
.dough-sold-out-banner {
    background: #fef3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.base-option input[type="radio"] {
    display: none;
}

.base-thumb {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    background-size: cover;
    background-position: center;
    background-color: var(--color-linen);
}

.base-info {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.base-option .base-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-espresso);
}

.base-option .base-price {
    font-weight: 700;
    color: var(--color-secondary);
}

.base-desc {
    font-size: 0.8rem;
    color: #777;
    line-height: 1.3;
}

/* Toppings grid */
.toppings-section-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.toppings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.topping-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.6rem;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    background: var(--color-bg-white);
    position: relative;
    user-select: none;
}

.topping-card:hover {
    border-color: var(--color-secondary);
    background: var(--color-linen);
}

.topping-card.selected {
    border-color: var(--color-secondary);
    background: var(--color-linen);
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.25);
}

.topping-card .topping-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
}

.topping-card.selected .topping-check {
    display: flex;
}

.topping-card .topping-emoji {
    font-size: 1.75rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.topping-card.selected .topping-emoji {
    transform: scale(1.15);
}

@keyframes toppingBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.topping-card.bounce .topping-emoji {
    animation: toppingBounce 0.35s ease;
}

.topping-card .topping-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.2;
}

.topping-card .topping-price {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* Pizza subtotal */
.pizza-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border-light);
    font-weight: 600;
}

.pizza-subtotal .subtotal-amount {
    font-size: 1.25rem;
    color: var(--color-primary);
    font-family: var(--font-heading);
}

/* Add another pizza */
.add-pizza-btn {
    width: 100%;
    padding: 1rem;
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-lg);
    background: transparent;
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

.add-pizza-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-bg-warm);
}

/* ==============================================================================
   DATE / SLOT PICKER
   ============================================================================== */
.date-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.date-pick-card {
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--color-bg-white);
}

.date-pick-card:hover:not(.full) {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.date-pick-card.selected {
    border-color: var(--color-primary);
    background: var(--color-bg-warm);
    box-shadow: 0 0 0 3px rgba(210, 105, 30, 0.12);
}

.date-pick-card.full {
    opacity: 0.5;
    cursor: not-allowed;
}

.date-pick-card .pick-weekday {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
}

.date-pick-card .pick-day {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.date-pick-card .pick-month {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.date-pick-card .pick-availability {
    font-size: 0.8rem;
    font-weight: 600;
}

/* ==============================================================================
   CART SUMMARY
   ============================================================================== */
.cart-summary {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
}

.cart-summary-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

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

.cart-item-name {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

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

.cart-item-price {
    text-align: right;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: 0.25rem;
}

.cart-totals {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid var(--color-border);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0;
    font-size: 0.95rem;
}

.cart-total-row.discount {
    color: var(--color-success);
}

.cart-total-row.grand-total {
    font-size: 1.2rem;
    font-weight: 700;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--color-border-light);
    color: var(--color-secondary);
}

.cart-total-row.grand-total .total-amount {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.4rem;
}

/* Sidebar continue button */
.sidebar-continue-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--radius-full);
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.sidebar-continue-btn:hover {
    background: var(--color-secondary);
    transform: translateY(-1px);
}
.sidebar-continue-btn.disabled,
.sidebar-continue-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}
/* Hide forward buttons on desktop — sidebar handles it */
@media (min-width: 769px) {
    .step-forward-btn {
        display: none;
    }
}

/* Place Order button - prominent CTA */
.btn-place-order {
    background: var(--color-tomato, #C41E1E);
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 14px rgba(196, 30, 30, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn-place-order:hover {
    background: #a81818;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 30, 0.45);
    color: #fff;
}

/* Empty cart */
.cart-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--color-text-muted);
}

.cart-empty-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Mobile sticky cart bar */
.mobile-cart-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(200, 169, 126, 0.2);
    box-shadow: 0 -4px 24px rgba(26, 26, 46, 0.12);
    padding: 0.75rem 1.5rem;
    z-index: 900;
    align-items: center;
    justify-content: space-between;
}

.mobile-cart-bar .cart-bar-total {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-secondary);
}

.mobile-cart-bar .cart-bar-total .amount {
    color: var(--color-primary);
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .mobile-cart-bar {
        display: flex;
    }
}

/* ==============================================================================
   ORDER LAYOUT (2-column on desktop)
   ============================================================================== */
.order-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.order-main {
    align-self: start;
}

@media (max-width: 768px) {
    .order-layout {
        grid-template-columns: 1fr;
    }

    .order-sidebar {
        display: none;
    }
}

/* ==============================================================================
   STEP NAVIGATION
   ============================================================================== */
.step-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border-light);
}

/* ==============================================================================
   DISCOUNT CODE
   ============================================================================== */
.discount-field {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.discount-field .form-control {
    flex: 1;
    text-transform: uppercase;
}

.discount-result {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.discount-result.valid {
    color: var(--color-success);
}

.discount-result.invalid {
    color: var(--color-error);
}

/* ==============================================================================
   REVIEW & CONFIRMATION
   ============================================================================== */
.order-review {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
}

.review-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border-light);
}

.review-section:last-child {
    border-bottom: none;
}

.review-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.review-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.review-item-name {
    font-weight: 600;
}

.review-item-detail {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.review-item-price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Confirmation page */
.confirmation-page {
    max-width: 640px;
    margin: 2rem auto;
    text-align: center;
}

@keyframes checkmarkDraw {
    from { stroke-dashoffset: 50; }
    to { stroke-dashoffset: 0; }
}

@keyframes checkmarkCircle {
    from { stroke-dashoffset: 200; }
    to { stroke-dashoffset: 0; }
}

@keyframes checkmarkScale {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    animation: checkmarkScale 0.5s ease-out;
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.success-icon .circle {
    stroke: var(--color-success);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 200;
    animation: checkmarkCircle 0.6s ease-out forwards;
}

.success-icon .check {
    stroke: var(--color-success);
    stroke-width: 4;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 50;
    animation: checkmarkDraw 0.4s 0.4s ease-out forwards;
    stroke-dashoffset: 50;
}

.confirmation-order-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.confirmation-details {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: left;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.whatsapp-btn {
    background: #25D366;
    color: #fff !important;
}

.whatsapp-btn:hover {
    background: #1DA851;
    color: #fff;
}

/* ==============================================================================
   ACCOUNT PAGE
   ============================================================================== */
.account-page {
    max-width: 960px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.order-history-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    border: 1px solid var(--color-border-light);
    overflow: hidden;
    transition: box-shadow var(--transition);
}

.order-history-card:hover {
    box-shadow: var(--shadow-md);
}

.order-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    cursor: pointer;
    gap: 1rem;
    flex-wrap: wrap;
}

.order-history-header .order-num {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-secondary);
    font-size: 1.05rem;
}

.order-history-header .order-date {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.order-history-header .order-total {
    font-weight: 700;
    color: var(--color-primary);
}

.order-history-details {
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--color-border-light);
    display: none;
}

.order-history-details.open {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}

.order-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

/* Reorder button */
.btn-reorder {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-primary);
    border: none;
    border-radius: var(--radius-sm, 6px);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    white-space: nowrap;
}
.btn-reorder:hover {
    background: var(--color-primary-dark, #c0392b);
    transform: translateY(-1px);
}

/* Reorder landing link */
.reorder-shortcut {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-primary);
    background: var(--color-primary-light);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.reorder-shortcut:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Status badges */
.status-pending { background: var(--color-warning-bg); color: var(--color-warning); }
.status-confirmed { background: #E3F2FD; color: #1565C0; }
.status-ready { background: var(--color-accent-soft); color: var(--color-secondary); }
.status-collected { background: var(--color-success-bg); color: var(--color-success); }
.status-cancelled { background: var(--color-error-bg); color: var(--color-error); }

/* ==============================================================================
   FOOTER
   ============================================================================== */
.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.85);
    padding: 3.5rem 1.5rem 1.5rem;
    margin-top: auto;
    position: relative;
}

.footer-inner {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-section h4 {
    color: var(--color-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    line-height: 1.8;
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li a {
    display: block;
    padding: 0.15rem 0;
}

.footer-section .footer-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    color: #25D366 !important;
    border: 1px solid rgba(37, 211, 102, 0.4);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    margin-top: 0.5rem;
}

.footer-section .footer-whatsapp:hover {
    background: rgba(37, 211, 102, 0.1);
    border-color: #25D366;
    transform: translateY(-1px);
}

/* Footer kosher certification */
.footer-kosher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: var(--container-max);
    margin: 1.5rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}
.footer-kosher-badge {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: white;
    padding: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 2rem auto 0;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ==============================================================================
   SIDES SECTION
   ============================================================================== */
.sides-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-linen);
}

.sides-section h3 {
    font-family: var(--font-heading);
    color: var(--color-espresso);
    margin-bottom: 1rem;
}

.sides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.side-card {
    background: var(--color-cream);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.side-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.side-thumb {
    width: 100%;
    aspect-ratio: 3/2;
    background-size: cover;
    background-position: center;
    background-color: var(--color-linen);
}

.side-info {
    padding: 0.75rem;
}

/* Compact side card — no image */
.side-card--compact .side-info {
    padding: 1rem;
}

.side-name-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Allergen indicator in side cards — inline, not absolute */
.side-name-price .topping-allergen-indicator {
    position: relative;
    bottom: auto;
    right: auto;
    flex-shrink: 0;
}

.side-name {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-espresso);
    font-size: 0.95rem;
}

.side-price {
    font-weight: 700;
    color: var(--color-tomato);
}

.side-qty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-espresso);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-espresso);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: var(--color-terracotta);
    color: white;
    border-color: var(--color-terracotta);
}

/* Step 2 order recap — mobile only */
.step2-recap {
    display: none;
    background: var(--color-linen);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    border-left: 3px solid var(--color-secondary);
}
@media (max-width: 768px) {
    .step2-recap { display: block; }
}
.recap-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}
.recap-items {
    font-size: 0.9rem;
    color: var(--color-espresso);
    line-height: 1.5;
}
.recap-sep {
    color: var(--color-secondary);
    font-weight: 600;
}

/* Small qty buttons for cart */
.qty-btn--sm {
    width: 22px;
    height: 22px;
    font-size: 0.75rem;
    border-width: 1.5px;
}

/* Add another pizza button in cart */
.cart-add-pizza-btn {
    background: none;
    border: 1.5px dashed var(--color-secondary);
    color: var(--color-secondary);
    padding: 0.35rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cart-add-pizza-btn:hover {
    background: var(--color-linen);
    border-color: var(--color-terracotta);
    color: var(--color-terracotta);
}

.side-qty span {
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* ==============================================================================
   POPULAR BADGE ON TOPPINGS
   ============================================================================== */
.topping-popular-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, var(--color-secondary), #B8956E);
    color: white;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(26, 26, 46, 0.15);
}

/* ==============================================================================
   PIZZA WOBBLE ANIMATION
   ============================================================================== */
@keyframes pizzaWobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
    75% { transform: rotate(-1deg); }
}

.pizza-cheese.wobble {
    animation: pizzaWobble 0.5s ease;
}

/* ==============================================================================
   MOBILE CART BAR EXTRAS
   ============================================================================== */
.cart-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.cart-bar-count {
    font-weight: 700;
    color: var(--color-espresso);
}

/* ==============================================================================
   LOADING STATES
   ============================================================================== */
.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: var(--color-text-muted);
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

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

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 0.75rem;
}

/* ==============================================================================
   UTILITY CLASSES
   ============================================================================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-text-muted); }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.text-primary { color: var(--color-primary); }
.font-heading { font-family: var(--font-heading); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.gap-1 { gap: 0.5rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--color-text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-title {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

/* ==============================================================================
   AUTH PAGES (global styles to replace inline)
   ============================================================================== */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 2rem 1rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-linen) 50%, var(--color-cream) 100%);
}

.auth-page::before {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -5%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 169, 126, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    top: -15%;
    left: -10%;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 26, 46, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.auth-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 40px rgba(26, 26, 46, 0.1);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    border: 1px solid rgba(200, 169, 126, 0.1);
}

.auth-title {
    color: var(--color-primary);
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.auth-subtitle {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

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

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

.auth-form input {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: border-color var(--transition);
    font-family: var(--font-body);
}

.auth-form input:focus {
    outline: 2px solid transparent;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(200, 169, 126, 0.15);
}

.auth-form input.input-error {
    border-color: var(--color-error);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Google Sign-In */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--color-border);
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    color: #3c4043;
    border: 1px solid #dadce0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.btn-google:hover {
    background: #f7f8f8;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    text-decoration: none;
}
.btn-google svg {
    flex-shrink: 0;
}

/* ==============================================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.visible > * {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==============================================================================
   TOPPING CHIPS (Menu Page)
   ============================================================================== */
.topping-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    background: var(--color-linen);
    color: var(--color-chocolate);
    border: 1px solid var(--color-border-light);
}

/* ==============================================================================
   PRINT STYLES
   ============================================================================== */
@media print {
    .navbar, .footer, .mobile-cart-bar, .toast-container,
    .hero-cta, .step-nav, .btn {
        display: none !important;
    }

    main {
        padding-top: 0;
    }

    body {
        background: #fff;
        color: #000;
    }

    .confirmation-details,
    .order-review {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* ==============================================================================
   FOCUS STYLES FOR ACCESSIBILITY
   ============================================================================== */
:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 2px;
}

/* ==============================================================================
   ADDITIONAL UX IMPROVEMENTS
   ============================================================================== */

/* --- Form row responsive stacking --- */
@media (max-width: 480px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* --- Footer link touch targets --- */
.footer-section ul li a {
    padding: 0.4rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
}

/* --- Homepage date cards cursor & interaction --- */
.dates-grid .date-card {
    cursor: pointer;
}

.dates-grid .date-card:active {
    transform: scale(0.98);
}

/* --- Confirmation order number emphasis --- */
.confirmation-order-number {
    background: var(--color-bg-warm);
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-primary);
}

/* --- Loading spinner with text --- */
.loading-overlay {
    flex-direction: column;
    gap: 1rem;
}

.loading-text {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Mobile nav slide transition is defined in the main navbar responsive block above */

/* --- Navbar active link indicator --- */
.navbar-links a.active {
    position: relative;
}

.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--color-primary);
    border-radius: 1px;
}

@media (max-width: 768px) {
    .navbar-links a.active::after {
        display: none;
    }

    .navbar-links a.active {
        border-left: 3px solid var(--color-primary);
    }
}

/* --- Improved empty state --- */
.empty-state {
    background: var(--color-bg-white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-border);
}

/* --- Order history expand indicator --- */
.order-history-header::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-text-muted);
    border-bottom: 2px solid var(--color-text-muted);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.order-history-details.open ~ .order-history-header::after,
.order-history-header[aria-expanded="true"]::after {
    transform: rotate(-135deg);
}

/* --- Better select styling --- */
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B5B50' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}

/* --- Topping card touch target improvement --- */
@media (max-width: 480px) {
    .toppings-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }

    .topping-card {
        padding: 0.85rem 0.5rem;
        min-height: 80px;
    }
}

/* --- Content links: underline in body text for accessibility --- */
.step-desc a,
.section-subtitle a,
.auth-footer a,
.footer-section a,
.review-item-detail a,
p a:not(.btn):not(.chip):not(.badge) {
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

p a:not(.btn):not(.chip):not(.badge):hover {
    text-decoration-thickness: 2px;
}

/* --- Smooth page transitions for order steps --- */
.order-step {
    will-change: opacity, transform;
}

/* --- Improve disabled date card appearance --- */
.date-pick-card.full {
    background: var(--color-bg);
    border-style: dashed;
}

/* --- Navbar brand logo image --- */
.navbar-brand img {
    height: 80px;
    width: auto;
}

/* --- Hero section gradient text for larger screens --- */
@media (min-width: 769px) {
    .hero-title {
        letter-spacing: -0.03em;
    }
}

/* --- Cart summary smooth animation on update --- */
.cart-item {
    animation: fadeInUp 0.2s ease-out;
}

/* --- High contrast mode support --- */
@media (forced-colors: active) {
    .btn {
        border: 2px solid ButtonText;
    }

    .form-control {
        border: 1px solid ButtonText;
    }

    .badge {
        border: 1px solid ButtonText;
    }
}

/* ===========================================================================
   ORDER PROGRESS TRACKER
   =========================================================================== */
.order-progress-tracker {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 0.5rem;
    gap: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    position: relative;
}

.progress-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #999;
    background: #fff;
    transition: all 0.4s ease;
}

.progress-step.completed .progress-circle {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    color: #fff;
}

.progress-step.active .progress-circle {
    border-color: var(--color-primary);
    color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(26, 26, 46, 0.15);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(26, 26, 46, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(26, 26, 46, 0.08); }
}

.progress-label {
    font-size: 0.75rem;
    margin-top: 6px;
    color: #999;
    font-weight: 500;
    text-align: center;
    font-family: var(--font-body, 'Plus Jakarta Sans', sans-serif);
}

.progress-step.completed .progress-label {
    color: var(--color-secondary);
    font-weight: 600;
}

.progress-step.active .progress-label {
    color: var(--color-primary);
    font-weight: 700;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #ddd;
    margin-top: 20px;
    min-width: 30px;
    transition: background 0.4s ease;
}

.progress-line.filled {
    background: var(--color-secondary);
}

.progress-cancelled {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 1rem;
    color: #c62828;
    font-weight: 700;
    font-size: 1.1rem;
}

.progress-cancelled-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffebee;
    border: 3px solid #c62828;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

@media (max-width: 480px) {
    .progress-circle {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    .progress-label { font-size: 0.65rem; }
    .progress-line { margin-top: 16px; min-width: 20px; }
    .progress-step { min-width: 50px; }
}

/* --- Newsletter Signup Popup --- */
.nl-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: nlFadeIn 0.3s ease;
}
.nl-overlay.active { display: flex; }
@keyframes nlFadeIn { from { opacity: 0; } to { opacity: 1; } }

.nl-popup {
    background: var(--color-cream);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: nlSlideUp 0.35s ease;
    overflow: hidden;
}
@keyframes nlSlideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.nl-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, color 0.15s;
    z-index: 1;
}
.nl-close:hover { background: rgba(0,0,0,0.08); color: #333; }

.nl-body {
    padding: 2.5rem 2rem 2rem;
    text-align: center;
}

.nl-icon { font-size: 3rem; margin-bottom: 0.5rem; }

.nl-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--color-espresso);
    margin-bottom: 0.5rem;
}

.nl-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.nl-input {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e0d5c8;
    border-radius: 10px;
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    background: #fff;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: var(--font-body);
}
.nl-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(194, 112, 62, 0.15);
}

.nl-submit {
    display: block;
    width: 100%;
    padding: 0.85rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: var(--font-body);
    margin-top: 0.25rem;
}
.nl-submit:hover { background: var(--color-espresso); transform: translateY(-1px); }

.nl-privacy {
    font-size: 0.75rem;
    color: #aaa;
    margin-top: 1rem;
    margin-bottom: 0;
}

.nl-code {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    background: rgba(194, 112, 62, 0.1);
    border: 2px dashed var(--color-primary);
    border-radius: 10px;
    padding: 0.75rem 1.25rem;
    letter-spacing: 2px;
    display: inline-block;
    user-select: all;
}

@media (max-width: 480px) {
    .nl-body { padding: 2rem 1.25rem 1.5rem; }
    .nl-title { font-size: 1.35rem; }
}

/* --- WhatsApp Floating Bubble --- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 999;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}
/* Hide on admin pages (admin layout doesn't use this, but just in case) */
.admin-layout .whatsapp-float { display: none; }
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 1.25rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        transition: bottom 0.3s ease;
    }
    /* Nudge up when mobile cart bar is visible (order page) */
    body.has-cart-bar .whatsapp-float {
        bottom: 5.5rem;
    }
    /* Hide when mobile drawer is open */
    body.drawer-open .whatsapp-float {
        display: none;
    }
}
