/* =========================================================
   APP.CSS
   Event / Snack Delivery App
   Mobile-first responsive layout
   ========================================================= */


/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    --color-primary: #f97316;
    --color-primary-dark: #ea580c;
    --color-primary-light: #ffedd5;

    --color-secondary: #111827;

    --color-background: #f4f5f7;
    --color-surface: #ffffff;
    --color-surface-muted: #f9fafb;

    --color-text: #171717;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;

    --color-border: #e5e7eb;
    --color-border-dark: #d1d5db;

    --color-success: #15803d;
    --color-success-bg: #dcfce7;

    --color-warning: #b45309;
    --color-warning-bg: #fef3c7;

    --color-danger: #dc2626;
    --color-danger-bg: #fee2e2;

    --color-info: #1d4ed8;
    --color-info-bg: #dbeafe;

    --shadow-small:
        0 1px 2px rgba(0, 0, 0, 0.05);

    --shadow-medium:
        0 4px 12px rgba(0, 0, 0, 0.08);

    --shadow-large:
        0 12px 30px rgba(0, 0, 0, 0.12);

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 18px;
    --radius-pill: 999px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 32px;
    --space-8: 40px;
    --space-9: 48px;

    --header-height: 64px;
    --mobile-nav-height: 68px;
 --content-width: 1400px;
    --content-width-small: 760px;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}


/* =========================================================
   2. RESET / BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.has-mobile-nav {
    padding-bottom: calc(var(--mobile-nav-height) + 16px);
}

img,
picture,
svg,
video {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

h1,
h2,
h3,
h4,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
}

h1 {
    margin-bottom: var(--space-4);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h2 {
    margin-bottom: var(--space-4);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
}

h3 {
    margin-bottom: var(--space-3);
    font-size: 1.15rem;
}

p {
    margin-bottom: var(--space-4);
}

.hidden {
    display: none !important;
}

.no-scroll {
    overflow: hidden;
}


/* =========================================================
   3. GENERAL LAYOUT
   ========================================================= */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    width: 100%;
}

.container {
    width: min(100% - 32px, var(--content-width));
    margin-inline: auto;
}

.container-small {
    width: min(100% - 32px, var(--content-width-small));
    margin-inline: auto;
}

.page {
    padding-block: var(--space-6) var(--space-9);
}

.page-section {
    margin-bottom: var(--space-8);
}

.page-section:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.section-title {
    margin: 0;
}

.section-link {
    color: var(--color-primary-dark);
    font-size: 0.95rem;
    font-weight: 700;
}

.section-link:hover {
    text-decoration: underline;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.stack-small {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.grid {
    display: grid;
    gap: var(--space-4);
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}


/* =========================================================
   4. HEADER
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
}

.header-inner {
    width: min(100% - 24px, var(--content-width));
    min-height: var(--header-height);
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--space-3);
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
}

.header-center {
    justify-content: center;
    min-width: 0;
}

.header-right {
    justify-content: flex-end;
    gap: var(--space-2);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 1.15rem;
    font-weight: 800;
    white-space: nowrap;
}

.brand-logo {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-weight: 900;
}

.header-title {
    max-width: 100%;
    overflow: hidden;
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast);
}

.header-button:hover {
    background: var(--color-surface-muted);
}

.header-button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.25);
    outline-offset: 2px;
}

.cart-count {
    position: absolute;
    top: 1px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding-inline: 5px;
    display: grid;
    place-items: center;
    border: 2px solid #ffffff;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}


/* =========================================================
   5. PAGE HEADING / BREADCRUMB
   ========================================================= */

.page-heading {
    margin-bottom: var(--space-6);
}

.page-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
}

.page-heading h1 {
    margin-bottom: var(--space-2);
}

.page-subtitle {
    max-width: 720px;
    margin: 0;
    color: var(--color-text-muted);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--color-primary-dark);
}

.breadcrumb-separator {
    color: var(--color-text-light);
}


/* =========================================================
   6. HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-8);
    padding: clamp(24px, 5vw, 48px);
    border-radius: var(--radius-large);
    background:
        linear-gradient(
            135deg,
            var(--color-secondary),
            #292f3d
        );
    color: #ffffff;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 660px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: var(--space-3);
    padding: 6px 10px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.12);
    font-size: 0.82rem;
    font-weight: 700;
}

.hero h1 {
    margin-bottom: var(--space-3);
    color: #ffffff;
}

.hero p {
    margin-bottom: var(--space-5);
    color: rgba(255, 255, 255, 0.82);
}


/* =========================================================
   7. CARDS
   ========================================================= */

.card {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    box-shadow: var(--shadow-small);
}

.card-clickable {
    display: block;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.card-clickable:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-dark);
    box-shadow: var(--shadow-medium);
}

.card-body {
    padding: var(--space-4);
}

.card-footer {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.card-title {
    margin-bottom: var(--space-2);
    font-size: 1.1rem;
    font-weight: 800;
}

.card-description {
    margin-bottom: 0;
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.card-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--color-surface-muted);
}


/* =========================================================
   8. EVENT CARDS
   ========================================================= */

.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.event-card {
    height: 100%;
}

.event-card-image-wrapper {
    position: relative;
}

.event-status {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
}

.event-card-date {
    margin-bottom: var(--space-2);
    color: var(--color-primary-dark);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}


/* =========================================================
   9. VENDOR CARDS
   ========================================================= */

.vendor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
}

.vendor-card {
    height: 100%;
}

.vendor-card-top {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
}

.vendor-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface-muted);
}

.vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vendor-card-info {
    min-width: 0;
    flex: 1;
}

.vendor-card-info h3 {
    overflow: hidden;
    margin-bottom: 4px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vendor-category {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}


/* =========================================================
   10. MENU / PRODUCT CARDS
   ========================================================= */

.menu-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: var(--space-6);
}

.menu-content {
    min-width: 0;
}

.menu-section {
    margin-bottom: var(--space-8);
}

.menu-section:last-child {
    margin-bottom: 0;
}

.menu-section-title {
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.menu-item-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.menu-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    min-height: 128px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.menu-item:hover {
    border-color: var(--color-border-dark);
    box-shadow: var(--shadow-small);
}

.menu-item-content {
    min-width: 0;
    padding: var(--space-4);
}

.menu-item-title {
    margin-bottom: var(--space-2);
    font-size: 1rem;
    font-weight: 800;
}

.menu-item-description {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: var(--space-3);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.menu-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.menu-item-price {
    font-size: 0.98rem;
    font-weight: 800;
}

.menu-item-image {
    width: 110px;
    height: 100%;
    min-height: 128px;
    object-fit: cover;
    background: var(--color-surface-muted);
}


/* =========================================================
   11. CATEGORY NAVIGATION
   ========================================================= */

.category-nav {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    margin-bottom: var(--space-5);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-background);
}

.category-nav-inner {
    display: flex;
    gap: var(--space-2);
    overflow-x: auto;
    padding-block: var(--space-3);
    scrollbar-width: none;
}

.category-nav-inner::-webkit-scrollbar {
    display: none;
}

.category-link {
    flex: 0 0 auto;
    padding: 9px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast);
}

.category-link:hover,
.category-link.active {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}


/* =========================================================
   12. CART SIDEBAR / CART PAGE
   ========================================================= */

.cart-panel {
    position: sticky;
    top: calc(var(--header-height) + var(--space-5));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-medium);
}

.cart-panel-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
}

.cart-panel-header h2,
.cart-panel-header h3 {
    margin: 0;
}

.cart-items {
    max-height: 440px;
    overflow-y: auto;
    padding: var(--space-4);
}

.cart-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3);
    padding-block: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.cart-item:first-child {
    padding-top: 0;
}

.cart-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.cart-item-name {
    margin-bottom: 4px;
    font-size: 0.95rem;
    font-weight: 700;
}

.cart-item-options {
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.cart-item-price {
    font-weight: 800;
    white-space: nowrap;
}

.cart-summary {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.94rem;
}

.summary-row:last-child {
    margin-bottom: 0;
}

.summary-row.total {
    margin-top: var(--space-3);
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-dark);
    color: var(--color-text);
    font-size: 1.05rem;
    font-weight: 800;
}

.cart-panel-actions {
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
}


/* =========================================================
   13. QUANTITY CONTROL
   ========================================================= */

.quantity-control {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
}

.quantity-button {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}

.quantity-button:hover {
    background: var(--color-surface-muted);
}

.quantity-value {
    min-width: 30px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 800;
}


/* =========================================================
   14. BUTTONS
   ========================================================= */

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-medium);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        opacity var(--transition-fast);
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button:focus-visible {
    outline: 3px solid rgba(249, 115, 22, 0.25);
    outline-offset: 2px;
}

.button:disabled,
.button.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.button-primary {
    background: var(--color-primary);
    color: #ffffff;
}

.button-primary:hover {
    background: var(--color-primary-dark);
}

.button-secondary {
    border-color: var(--color-secondary);
    background: var(--color-secondary);
    color: #ffffff;
}

.button-secondary:hover {
    background: #292f3d;
}

.button-outline {
    border-color: var(--color-border-dark);
    background: var(--color-surface);
    color: var(--color-text);
}

.button-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary-dark);
}

.button-ghost {
    background: transparent;
    color: var(--color-primary-dark);
}

.button-ghost:hover {
    background: var(--color-primary-light);
}

.button-danger {
    background: var(--color-danger);
    color: #ffffff;
}

.button-small {
    min-height: 36px;
    padding: 8px 13px;
    border-radius: 10px;
    font-size: 0.84rem;
}

.button-large {
    min-height: 52px;
    padding: 14px 22px;
    font-size: 1rem;
}

.button-block {
    width: 100%;
}


/* =========================================================
   15. BADGES
   ========================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    border-radius: var(--radius-pill);
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
}

.badge-success {
    background: var(--color-success-bg);
    color: var(--color-success);
}

.badge-warning {
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.badge-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge-info {
    background: var(--color-info-bg);
    color: var(--color-info);
}

.badge-primary {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}


/* =========================================================
   16. FORMS
   ========================================================= */

.form-card {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
}

.form-section {
    margin-bottom: var(--space-7);
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section-title {
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-border);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.form-group-full {
    grid-column: 1 / -1;
}

.form-label {
    color: var(--color-text);
    font-size: 0.9rem;
    font-weight: 800;
}

.form-label .required {
    color: var(--color-danger);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
    color: var(--color-text);
    transition:
        border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.form-input,
.form-select {
    min-height: 46px;
    padding: 10px 12px;
}

.form-textarea {
    min-height: 120px;
    padding: 12px;
    resize: vertical;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-text-light);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.form-input.has-error,
.form-select.has-error,
.form-textarea.has-error {
    border-color: var(--color-danger);
}

.form-help {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.form-error {
    margin: 0;
    color: var(--color-danger);
    font-size: 0.82rem;
    font-weight: 600;
}

.checkbox-row,
.radio-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
}

.checkbox-row input,
.radio-row input {
    margin-top: 4px;
    accent-color: var(--color-primary);
}


/* =========================================================
   17. CHECKOUT
   ========================================================= */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: var(--space-6);
}

.checkout-steps {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.checkout-step-number {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border: 1px solid var(--color-border-dark);
    border-radius: 50%;
    background: var(--color-surface);
}

.checkout-step.active {
    color: var(--color-primary-dark);
}

.checkout-step.active .checkout-step-number {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}

.checkout-step.complete .checkout-step-number {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #ffffff;
}

.checkout-step-divider {
    height: 1px;
    flex: 1;
    background: var(--color-border-dark);
}


/* =========================================================
   18. SEARCH
   ========================================================= */

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-input {
    width: 100%;
    min-height: 48px;
    padding: 11px 44px 11px 44px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

.search-clear {
    position: absolute;
    top: 50%;
    right: 9px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
}

.search-clear:hover {
    background: var(--color-surface-muted);
}


/* =========================================================
   19. ALERTS
   ========================================================= */

.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border: 1px solid transparent;
    border-radius: var(--radius-medium);
}

.alert-title {
    margin-bottom: 3px;
    font-weight: 800;
}

.alert-message {
    margin: 0;
    font-size: 0.9rem;
}

.alert-success {
    border-color: #bbf7d0;
    background: var(--color-success-bg);
    color: var(--color-success);
}

.alert-warning {
    border-color: #fde68a;
    background: var(--color-warning-bg);
    color: var(--color-warning);
}

.alert-danger {
    border-color: #fecaca;
    background: var(--color-danger-bg);
    color: var(--color-danger);
}

.alert-info {
    border-color: #bfdbfe;
    background: var(--color-info-bg);
    color: var(--color-info);
}


/* =========================================================
   20. EMPTY STATES
   ========================================================= */

.empty-state {
    padding: var(--space-9) var(--space-5);
    border: 1px dashed var(--color-border-dark);
    border-radius: var(--radius-large);
    background: var(--color-surface);
    text-align: center;
}

.empty-state-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto var(--space-4);
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}

.empty-state h2,
.empty-state h3 {
    margin-bottom: var(--space-2);
}

.empty-state p {
    max-width: 480px;
    margin: 0 auto var(--space-5);
    color: var(--color-text-muted);
}


/* =========================================================
   21. ORDER STATUS
   ========================================================= */

.order-status-card {
    padding: var(--space-5);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    background: var(--color-surface);
}

.status-timeline {
    margin-top: var(--space-5);
}

.status-step {
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: var(--space-3);
    padding-bottom: var(--space-5);
}

.status-step:last-child {
    padding-bottom: 0;
}

.status-step::after {
    content: "";
    position: absolute;
    top: 34px;
    left: 16px;
    width: 2px;
    height: calc(100% - 34px);
    background: var(--color-border-dark);
}

.status-step:last-child::after {
    display: none;
}

.status-step-marker {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid var(--color-border-dark);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 800;
}

.status-step.complete .status-step-marker {
    border-color: var(--color-success);
    background: var(--color-success);
    color: #ffffff;
}

.status-step.active .status-step-marker {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}

.status-step-title {
    margin-bottom: 3px;
    font-weight: 800;
}

.status-step-text {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}


/* =========================================================
   22. MODAL
   ========================================================= */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: var(--space-4);
    background: rgba(17, 24, 39, 0.68);
}

.modal {
    width: min(100%, 620px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    border-radius: var(--radius-large);
    background: var(--color-surface);
    box-shadow: var(--shadow-large);
}

.modal-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.modal-header h2,
.modal-header h3 {
    margin: 0;
}

.modal-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-surface-muted);
    cursor: pointer;
}

.modal-body {
    padding: var(--space-5);
}

.modal-footer {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4);
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}


/* =========================================================
   23. MOBILE BOTTOM NAVIGATION
   ========================================================= */

.mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 200;
    min-height: var(--mobile-nav-height);
    display: none;
    border-top: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-inner {
    min-height: var(--mobile-nav-height);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.mobile-nav-link {
    position: relative;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
}

.mobile-nav-link.active {
    color: var(--color-primary-dark);
}

.mobile-nav-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.mobile-nav-count {
    position: absolute;
    top: 7px;
    left: calc(50% + 7px);
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding-inline: 4px;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.62rem;
}


/* =========================================================
   24. FOOTER
   ========================================================= */

.site-footer {
    margin-top: auto;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.footer-inner {
    width: min(100% - 32px, var(--content-width));
    margin-inline: auto;
    padding-block: var(--space-7);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-7);
}

.footer-title {
    margin-bottom: var(--space-3);
    font-size: 0.95rem;
    font-weight: 800;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--color-primary-dark);
}

.footer-bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-border);
    color: var(--color-text-muted);
    font-size: 0.82rem;
}


/* =========================================================
   25. LOADING
   ========================================================= */

.loading-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loading-center {
    min-height: 240px;
    display: grid;
    place-items: center;
}

.skeleton {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-small);
    background: #e5e7eb;
}

.skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, 0.55),
            transparent
        );
    animation: skeleton-loading 1.3s infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes skeleton-loading {
    100% {
        transform: translateX(100%);
    }
}


/* =========================================================
   26. UTILITY CLASSES
   ========================================================= */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--color-text-muted);
}

.text-danger {
    color: var(--color-danger);
}

.text-success {
    color: var(--color-success);
}

.font-bold {
    font-weight: 800;
}

.nowrap {
    white-space: nowrap;
}

.margin-0 {
    margin: 0;
}

.margin-bottom-2 {
    margin-bottom: var(--space-2);
}

.margin-bottom-4 {
    margin-bottom: var(--space-4);
}

.margin-bottom-6 {
    margin-bottom: var(--space-6);
}

.padding-4 {
    padding: var(--space-4);
}

.surface {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
}

.divider {
    width: 100%;
    height: 1px;
    margin-block: var(--space-4);
    background: var(--color-border);
}


/* =========================================================
   27. TABLET
   ========================================================= */

@media (max-width: 980px) {
    .event-grid,
    .vendor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .menu-layout,
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cart-panel {
        position: static;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}


/* =========================================================
   28. MOBILE
   ========================================================= */

@media (max-width: 700px) {
    :root {
        --header-height: 58px;
    }

    body {
        font-size: 15px;
    }

    body.has-mobile-nav {
        padding-bottom:
            calc(var(--mobile-nav-height) + env(safe-area-inset-bottom));
    }

    .container,
    .container-small {
        width: min(100% - 24px, var(--content-width));
    }

    .page {
        padding-block: var(--space-4) var(--space-7);
    }

    .site-header {
        min-height: var(--header-height);
    }

    .header-inner {
        min-height: var(--header-height);
        width: min(100% - 16px, var(--content-width));
    }

    .brand-name {
        display: none;
    }

    .header-button {
        width: 40px;
        height: 40px;
    }

    .page-heading-row {
        flex-direction: column;
    }

    .hero {
        margin-inline: -4px;
        padding: var(--space-6) var(--space-5);
        border-radius: var(--radius-medium);
    }

    .event-grid,
    .vendor-grid,
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .menu-item {
        grid-template-columns: minmax(0, 1fr) 94px;
        min-height: 118px;
    }

    .menu-item-content {
        padding: var(--space-3);
    }

    .menu-item-image {
        width: 94px;
        min-height: 118px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: var(--space-4);
        border-radius: var(--radius-medium);
    }

    .checkout-steps {
        align-items: flex-start;
    }

    .checkout-step {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    .checkout-step-label {
        display: none;
    }

    .modal-backdrop {
        align-items: end;
        padding: 0;
    }

    .modal {
        width: 100%;
        max-height: 92vh;
        border-radius: var(--radius-large) var(--radius-large) 0 0;
    }

    .modal-footer {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .mobile-nav {
        display: block;
    }

    .site-footer {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   29. SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {
    .header-inner {
        grid-template-columns: 40px minmax(0, 1fr) auto;
    }

    .hero {
        padding: var(--space-5) var(--space-4);
    }

    .menu-item {
        grid-template-columns: minmax(0, 1fr) 82px;
    }

    .menu-item-image {
        width: 82px;
    }

    .button-mobile-block {
        width: 100%;
    }

    .modal-footer {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   30. ACCESSIBILITY / REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
}

.hero-home {
    width: 100%;
    padding: clamp(36px, 6vw, 72px);
}

.hero-home .hero-content {
    max-width: 820px;
}


/* =========================================================
   HOME PAGE
   ========================================================= */

.hero-home {
    width: 100%;
    padding: clamp(36px, 6vw, 72px);
}

.hero-home .hero-content {
    max-width: 820px;
}

/* Featured Event */

.featured-event-list {
    width: 100%;
}

.featured-event-list .event-card {
    display: grid;
    grid-template-columns: 48% 52%;
    width: 100%;
    overflow: hidden;
}

.featured-event-list .event-card-image-wrapper {
    height: 420px;
    overflow: hidden;
}

.featured-event-list .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.featured-event-list .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px;
}

.featured-event-list .card-footer {
    padding: 0 32px 32px;
    border-top: none;
    background: white;
}

/* Mobile */

@media (max-width: 800px) {

    .featured-event-list .event-card {
        grid-template-columns: 1fr;
    }

    .featured-event-list .event-card-image-wrapper {
        height: 220px;
    }

    .featured-event-list .card-body {
        padding: 20px;
    }

    .featured-event-list .card-footer {
        padding: 0 20px 20px;
    }

}/* =========================================================
   EVENT DETAIL PAGE
   =========================================================
   
   This section controls event.php only.
   
   Main areas:
   
   1. Back link
   2. Event image banner
   3. Ordering status
   4. Event information cards
   5. Delivery explanation
   6. Vendor cards
   7. Help section
   8. Responsive adjustments
   
   ========================================================= */


/* =========================================================
   1. BACK LINK
   ========================================================= */

.event-page-back {
    margin-bottom: 16px;
}

.event-back-link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.event-back-link:hover {
    color: var(--color-primary-dark);
}


/* =========================================================
   2. EVENT IMAGE BANNER
   =========================================================
   
   DESKTOP BANNER HEIGHT:
   
   Change height: 320px below to make the desktop banner
   taller or shorter.
   
   Recommended range:
   
   280px = shorter
   320px = balanced
   360px = taller
   
   ========================================================= */

.event-detail-hero {
    position: relative;

    /*
     * MAIN DESKTOP BANNER HEIGHT.
     *
     * This is the first place to change when adjusting
     * the event banner.
     */
    height: 320px;

    /*
     * Prevent older min-height rules from interfering.
     */
    min-height: 0;

    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-large);
    background: var(--color-secondary);
    box-shadow: var(--shadow-large);
}


/*
 * The event photograph fills the banner.
 *
 * object-fit: cover prevents stretching.
 * Parts of the image may be cropped to fill the banner.
 */

.event-detail-hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;

    /*
     * Change this to move the visible crop:
     *
     * center top
     * center center
     * center bottom
     *
     * For this fair image, center center works well.
     */
    object-position: center center;
}


/*
 * Dark gradients make the event title readable while
 * keeping most of the photograph bright.
 */

.event-detail-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(9, 17, 31, 0.82) 0%,
            rgba(9, 17, 31, 0.55) 42%,
            rgba(9, 17, 31, 0.10) 76%
        ),
        linear-gradient(
            0deg,
            rgba(9, 17, 31, 0.72) 0%,
            rgba(9, 17, 31, 0.05) 68%
        );
}


/*
 * Contains the badges, event title, dates, and description.
 */

.event-detail-hero-content {
    width: min(720px, 100%);
    padding: 28px 32px;
    color: #ffffff;
}


/*
 * Status and location badges at the top of the banner text.
 */

.event-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}


/*
 * Special translucent style for the location badge.
 */

.event-detail-location-badge {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(10px);
}


/*
 * Event title inside the banner.
 */

.event-detail-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.05;
}


/*
 * Event date displayed beneath the title.
 */

.event-detail-dates {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 800;
}


/*
 * Short event description.
 *
 * The line clamp prevents a long description from making
 * the banner content too tall.
 */

.event-detail-description {
    display: -webkit-box;
    max-width: 640px;
    overflow: hidden;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.98rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}


/* =========================================================
   3. ORDERING STATUS
   ========================================================= */

.event-status-section {
    padding-top: 24px;
}


/*
 * Section descriptions underneath section headings.
 */

.event-section-subtitle {
    margin: 6px 0 0;
    color: var(--color-text-muted);
}


/* =========================================================
   4. EVENT INFORMATION CARDS
   ========================================================= */

.event-information-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.event-information-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-large);
}

.event-information-card > div:last-child {
    min-width: 0;
}

.event-information-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--color-primary-light);
    font-size: 1.25rem;
}

.event-information-label,
.event-information-value {
    display: block;
}

.event-information-label {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.event-information-value {
    margin-bottom: 3px;
    overflow-wrap: anywhere;
    color: var(--color-text);
}


/* =========================================================
   5. DELIVERY EXPLANATION
   ========================================================= */

.event-notice {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: clamp(22px, 4vw, 32px);
    border-radius: var(--radius-large);
}

.event-notice h2 {
    margin-bottom: 8px;
}

.event-notice-icon {
    display: grid;
    place-items: center;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: var(--color-primary-light);
    font-size: 1.6rem;
}


/* =========================================================
   6. VENDOR CARDS
   =========================================================
   
   The actual three-column vendor grid is already defined
   in the shared .vendor-grid rules earlier in app.css.
   
   These rules only control how event-page vendor cards look.
   
   ========================================================= */

.vendor-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
}

.vendor-card .card-body {
    flex: 1;
}

.vendor-card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--color-background);
}

.vendor-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-fast);
}

.vendor-card:hover .vendor-card-image {
    transform: scale(1.03);
}

.vendor-card-status {
    position: absolute;
    top: 14px;
    right: 14px;
}

.vendor-card-category {
    margin-bottom: 6px;
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =========================================================
   7. HELP SECTION
   ========================================================= */

.event-help-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(24px, 5vw, 40px);
    border-radius: var(--radius-large);
}

.event-help-card h2 {
    margin: 14px 0 8px;
}


/* =========================================================
   8. TABLET
   ========================================================= */

@media (max-width: 980px) {

    /*
     * Event information changes from four columns to two.
     *
     * Vendor-grid tablet behavior is already handled by
     * the shared responsive styles earlier in app.css.
     */

    .event-information-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   9. MOBILE
   ========================================================= */

@media (max-width: 700px) {

    /*
     * MOBILE BANNER HEIGHT.
     *
     * Change 270px here only when adjusting tablet/mobile
     * banner height.
     */

    .event-detail-hero {
        height: 270px;
    }

    .event-detail-hero-content {
        padding: 22px;
    }

    .event-detail-hero h1 {
        font-size: 2.1rem;
    }

    .event-information-grid {
        grid-template-columns: 1fr;
    }

    .event-notice {
        flex-direction: column;
    }

    .event-help-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .event-help-card .button {
        width: 100%;
    }
}


/* =========================================================
   10. SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {

    /*
     * SMALL PHONE BANNER HEIGHT.
     */

    .event-detail-hero {
        height: 235px;
    }

    .event-detail-hero-content {
        padding: 18px;
    }

    .event-detail-badges {
        margin-bottom: 8px;
    }

    .event-detail-hero h1 {
        margin-bottom: 6px;
        font-size: 1.75rem;
    }

    .event-detail-dates {
        margin-bottom: 6px;
        font-size: 0.92rem;
    }

    .event-detail-description {
        font-size: 0.88rem;
        line-height: 1.4;
        -webkit-line-clamp: 2;
    }

    .vendor-card-image-wrapper {
        height: 180px;
    }
}

/* =========================================================
   VENDOR DETAIL PAGE /vendor.php
   =========================================================
   
   Controls vendor.php.
   
   Main sections:
   
   1. Back link
   2. Vendor banner
   3. Ordering status
   4. Order information cards
   5. Menu heading and categories
   6. Menu item details
   7. Cart placeholder
   8. Responsive adjustments
   
   ========================================================= */


/* =========================================================
   1. BACK LINK
   ========================================================= */

.vendor-page-back {
    margin-bottom: 16px;
}

.vendor-back-link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.vendor-back-link:hover {
    color: var(--color-primary-dark);
}


/* =========================================================
   2. VENDOR BANNER
   =========================================================
   
   This banner is intentionally shorter than the event banner.
   
   Desktop height:
   280px
   
   ========================================================= */

.vendor-detail-hero {
    position: relative;
    height: 280px;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--radius-large);
    background: var(--color-secondary);
    box-shadow: var(--shadow-large);
}

.vendor-detail-hero-image {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.vendor-detail-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(8, 15, 27, 0.88) 0%,
            rgba(8, 15, 27, 0.60) 45%,
            rgba(8, 15, 27, 0.10) 80%
        ),
        linear-gradient(
            0deg,
            rgba(8, 15, 27, 0.75) 0%,
            transparent 70%
        );
}

.vendor-detail-hero-content {
    width: min(760px, 100%);
    padding: 28px 32px;
    color: #ffffff;
}

.vendor-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.vendor-detail-category-badge {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.vendor-detail-hero h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
}

.vendor-detail-description {
    display: -webkit-box;
    max-width: 680px;
    overflow: hidden;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vendor-detail-event {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}


/* =========================================================
   3. ORDERING STATUS
   ========================================================= */

.vendor-status-section {
    padding-top: 24px;
}


/* =========================================================
   4. ORDER INFORMATION
   ========================================================= */

.vendor-order-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.vendor-order-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 20px;
    border-radius: var(--radius-large);
}

.vendor-order-info-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--color-primary-light);
    font-size: 1.2rem;
}

.vendor-order-info-label,
.vendor-order-info-value {
    display: block;
}

.vendor-order-info-label {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.vendor-order-info-value {
    color: var(--color-text);
    overflow-wrap: anywhere;
}


/* =========================================================
   5. MENU LAYOUT
   ========================================================= */

.vendor-menu-layout {
    margin-top: var(--space-6);
}

.vendor-menu-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.vendor-menu-heading h2 {
    margin-bottom: 6px;
}

.vendor-menu-section-header {
    margin-bottom: 14px;
}

.menu-section-description {
    margin: 8px 0 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}


/* =========================================================
   6. MENU ITEM DETAILS
   ========================================================= */

.menu-item-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.menu-item-options-note {
    margin: 0 0 12px;
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.menu-item-unavailable {
    opacity: 0.65;
}

.menu-item-bottom .button {
    flex: 0 0 auto;
}


/* =========================================================
   7. CART PLACEHOLDER
   ========================================================= */

.vendor-cart-panel {
    top: calc(var(--header-height) + 20px);
}

.vendor-cart-subtitle {
    margin: 5px 0 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.vendor-cart-empty {
    padding: 28px 12px;
    text-align: center;
}

.vendor-cart-empty-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--color-primary-light);
    font-size: 1.4rem;
}

.vendor-cart-empty h3 {
    margin-bottom: 8px;
}

.vendor-cart-empty p {
    max-width: 240px;
    margin: 0 auto;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}


/* =========================================================
   8. TABLET
   ========================================================= */

@media (max-width: 980px) {
    .vendor-order-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /*
     * The shared .menu-layout rule already changes the menu
     * and cart into one column at this width.
     */
}


/* =========================================================
   9. MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .vendor-detail-hero {
        height: 240px;
    }

    .vendor-detail-hero-content {
        padding: 22px;
    }

    .vendor-detail-hero h1 {
        font-size: 2rem;
    }

    .vendor-order-info-grid {
        grid-template-columns: 1fr;
    }

    .vendor-menu-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    /*
     * Mobile already has the fixed bottom cart navigation.
     * Hide the desktop cart sidebar to avoid placing it after
     * the entire menu.
     */
    .vendor-cart-panel {
        display: none;
    }
}


/* =========================================================
   10. SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {
    .vendor-detail-hero {
        height: 220px;
    }

    .vendor-detail-hero-content {
        padding: 18px;
    }

    .vendor-detail-hero h1 {
        margin-bottom: 6px;
        font-size: 1.7rem;
    }

    .vendor-detail-description {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .vendor-detail-event {
        display: none;
    }
}
/* =========================================================
   CART PAGE
   =========================================================

   Controls cart.php.

   Main sections:

   1. Back link and page heading
   2. Order source card
   3. Cart item layout
   4. Item options and controls
   5. One-vendor order notice
   6. Order summary
   7. Empty state
   8. Responsive adjustments

   ========================================================= */


/* =========================================================
   1. BACK LINK AND PAGE HEADING
   ========================================================= */

.cart-page-back {
    margin-bottom: 16px;
}

.cart-page-back-link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.cart-page-back-link:hover {
    color: var(--color-primary-dark);
}

.cart-page-heading {
    margin-bottom: 24px;
}

.cart-page-section-subtitle {
    margin: 6px 0 0;
    color: var(--color-text-muted);
    font-size: 0.92rem;
}


/* =========================================================
   2. ORDER SOURCE CARD
   =========================================================

   Shows which event and vendor own the current cart.

   ========================================================= */

.cart-page-source-section {
    margin-bottom: 24px;
}

.cart-page-source-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-radius: var(--radius-large);
}

.cart-page-source-icon {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: var(--color-primary-light);
    font-size: 1.3rem;
}

.cart-page-source-content {
    min-width: 0;
    flex: 1;
}

.cart-page-source-label,
.cart-page-source-title,
.cart-page-source-event {
    display: block;
}

.cart-page-source-label {
    margin-bottom: 2px;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cart-page-source-title {
    overflow: hidden;
    color: var(--color-text);
    font-size: 1.05rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cart-page-source-event {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}


/* =========================================================
   3. MAIN CART LAYOUT
   =========================================================

   Desktop:

   Cart items                  Order summary
   -----------------------     -------------
   Flexible width              360px

   ========================================================= */

.cart-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: start;
    gap: 24px;
}

.cart-page-items-section {
    min-width: 0;
}

.cart-page-item-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}


/* =========================================================
   4. CART ITEM CARD
   ========================================================= */

.cart-page-item {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    overflow: hidden;
    border-radius: var(--radius-large);
}

.cart-page-item-image-wrapper {
    min-height: 190px;
    overflow: hidden;
    background: var(--color-surface-muted);
}

.cart-page-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-page-item-content {
    min-width: 0;
    padding: 20px;
}

.cart-page-item-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.cart-page-item-title {
    margin-bottom: 4px;
    font-size: 1.12rem;
}

.cart-page-item-unit-price {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.cart-page-item-line-total {
    flex: 0 0 auto;
    font-size: 1.05rem;
    white-space: nowrap;
}


/* =========================================================
   5. ITEM OPTIONS AND NOTES
   ========================================================= */

.cart-page-option-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 14px;
}

.cart-page-option-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

.cart-page-option-group {
    color: var(--color-text);
    font-weight: 700;
}

.cart-page-option-price {
    flex: 0 0 auto;
    color: var(--color-text);
    font-weight: 700;
    white-space: nowrap;
}

.cart-page-item-note {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-small);
    background: var(--color-surface-muted);
}

.cart-page-item-note-label {
    display: block;
    margin-bottom: 3px;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cart-page-item-note p {
    margin: 0;
    font-size: 0.88rem;
}

.cart-page-item-price-breakdown {
    margin: 0 0 14px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.cart-page-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
}

.cart-page-item-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.cart-page-remove-button {
    color: var(--color-danger);
}

.cart-page-remove-button:hover {
    background: var(--color-danger-bg);
    color: var(--color-danger);
}


/* =========================================================
   6. ONE-VENDOR ORDER NOTICE
   ========================================================= */

.cart-page-order-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-large);
}

.cart-page-order-rule-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--color-primary-light);
    font-size: 1.15rem;
}

.cart-page-order-rule strong {
    display: block;
    margin-bottom: 4px;
}

.cart-page-order-rule p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}


/* =========================================================
   7. ORDER SUMMARY
   ========================================================= */

.cart-page-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.cart-page-summary-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.cart-page-summary-header h2 {
    margin-bottom: 4px;
}

.cart-page-summary-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.cart-page-summary-body {
    padding: 20px;
}

.cart-page-summary .summary-row {
    margin-bottom: 12px;
}

.cart-page-summary .summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
}

.cart-page-tax-status {
    max-width: 150px;
    text-align: right;
}

.cart-page-minimum-alert {
    margin: 18px 0 0;
}

.cart-page-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.cart-page-checkout-note {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    line-height: 1.45;
    text-align: center;
}


/* =========================================================
   8. EMPTY CART STATE
   ========================================================= */

.cart-page-empty-state {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cart-page-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================================
   9. TABLET
   ========================================================= */

@media (max-width: 980px) {
    .cart-page-layout {
        grid-template-columns: 1fr;
    }

    .cart-page-summary {
        position: static;
    }
}


/* =========================================================
   10. MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .cart-page-source-card {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .cart-page-source-card .button {
        width: 100%;
    }

    .cart-page-item {
        grid-template-columns: 125px minmax(0, 1fr);
    }

    .cart-page-item-image-wrapper {
        min-height: 100%;
    }

    .cart-page-item-content {
        padding: 16px;
    }

    .cart-page-item-header {
        gap: 10px;
    }

    .cart-page-item-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .cart-page-item-actions {
        width: 100%;
        justify-content: flex-start;
    }
}


/* =========================================================
   11. SMALL MOBILE
   ========================================================= */

@media (max-width: 520px) {
    .cart-page-item {
        grid-template-columns: 1fr;
    }

    .cart-page-item-image-wrapper {
        height: 190px;
        min-height: 0;
    }

    .cart-page-item-header {
        align-items: flex-start;
    }

    .cart-page-item-actions {
        justify-content: space-between;
    }

    .cart-page-item-actions .button {
        flex: 1;
    }

    .cart-page-tax-status {
        max-width: 130px;
    }
}

/* =========================================================
   CHECKOUT PAGE
   =========================================================

   Controls checkout.php.

   Main sections:

   1. Back link and heading
   2. Main two-column layout
   3. Checkout form cards
   4. Contact and address fields
   5. Delivery contact preference
   6. Payment placeholder
   7. Order summary
   8. Agreements and submit controls
   9. Empty state
   10. Responsive adjustments

   ========================================================= */


/* =========================================================
   1. BACK LINK AND HEADING
   ========================================================= */

.checkout-page-back {
    margin-bottom: 16px;
}

.checkout-page-back-link {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    transition: color var(--transition-fast);
}

.checkout-page-back-link:hover {
    color: var(--color-primary-dark);
}

.checkout-page-heading {
    margin-bottom: 24px;
}

.checkout-page-heading-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}


/* =========================================================
   2. MAIN CHECKOUT LAYOUT
   =========================================================

   Desktop:

   Customer form                 Order summary
   -------------------------     ----------------
   Flexible width                390px

   ========================================================= */

.checkout-page-form {
    width: 100%;
}

.checkout-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    align-items: start;
    gap: 24px;
}

.checkout-page-main-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}


/* =========================================================
   3. CHECKOUT FORM CARDS
   ========================================================= */

.checkout-page-card {
    padding: clamp(20px, 3vw, 28px);
    border-radius: var(--radius-large);
}

.checkout-page-card-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-border);
}

.checkout-page-card-header h2 {
    margin-bottom: 5px;
}

.checkout-page-card-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.checkout-page-step-number {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 900;
}


/* =========================================================
   4. CONTACT AND ADDRESS FIELDS
   ========================================================= */

.checkout-page-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.checkout-page-field-full {
    grid-column: 1 / -1;
}

.checkout-page-optional {
    margin-left: 5px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
}


/* =========================================================
   5. DELIVERY CONTACT PREFERENCE
   ========================================================= */

.checkout-page-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    background: var(--color-surface-muted);
}

.checkout-page-contact-box strong {
    display: block;
    margin-bottom: 4px;
}

.checkout-page-contact-box p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.checkout-page-radio-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.checkout-page-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-pill);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
}

.checkout-page-radio-option input {
    accent-color: var(--color-primary);
}

.checkout-page-radio-option:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}


/* =========================================================
   6. PAYMENT PLACEHOLDER
   ========================================================= */

.checkout-page-payment-method {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
}

.checkout-page-payment-method-header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.checkout-page-payment-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--color-primary-light);
    font-size: 1.2rem;
}

.checkout-page-payment-method-header strong,
.checkout-page-payment-method-header span:not(.badge) {
    display: block;
}

.checkout-page-payment-method-header span:not(.badge) {
    margin-top: 2px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.checkout-page-stripe-placeholder {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 18px;
    padding: 22px;
    border: 2px dashed var(--color-border-dark);
    border-radius: var(--radius-medium);
    background: var(--color-surface);
}

.checkout-page-stripe-icon {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--color-success-bg);
    font-size: 1.2rem;
}

.checkout-page-stripe-placeholder strong {
    display: block;
    margin-bottom: 4px;
}

.checkout-page-stripe-placeholder p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.86rem;
}

.checkout-page-security-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    color: var(--color-text-muted);
}

.checkout-page-security-note p {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
}


/* =========================================================
   7. ORDER SUMMARY
   ========================================================= */

.checkout-page-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-medium);
}

.checkout-page-summary-header {
    padding: 20px;
    border-bottom: 1px solid var(--color-border);
}

.checkout-page-summary-header h2 {
    margin-bottom: 4px;
}

.checkout-page-summary-header p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.84rem;
}

.checkout-page-source {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.checkout-page-source-icon {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--color-primary-light);
    font-size: 1.15rem;
}

.checkout-page-source span,
.checkout-page-source strong,
.checkout-page-source small {
    display: block;
}

.checkout-page-source span {
    color: var(--color-text-muted);
    font-size: 0.78rem;
}

.checkout-page-source strong {
    margin: 2px 0;
}

.checkout-page-source small {
    color: var(--color-text-muted);
    font-size: 0.76rem;
}

.checkout-page-summary-items {
    display: flex;
    max-height: 360px;
    flex-direction: column;
    overflow-y: auto;
    padding: 6px 20px;
}

.checkout-page-summary-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.checkout-page-summary-item:last-child {
    border-bottom: 0;
}

.checkout-page-summary-item-image-wrapper {
    position: relative;
    width: 62px;
    height: 62px;
}

.checkout-page-summary-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    background: var(--color-surface-muted);
}

.checkout-page-summary-quantity {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    padding-inline: 5px;
    border: 2px solid var(--color-surface);
    border-radius: var(--radius-pill);
    background: var(--color-secondary);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
}

.checkout-page-summary-item-content {
    min-width: 0;
}

.checkout-page-summary-item-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.checkout-page-summary-item-heading strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.9rem;
    text-overflow: ellipsis;
}

.checkout-page-summary-item-heading span {
    flex: 0 0 auto;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
}

.checkout-page-summary-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    margin-top: 6px;
    color: var(--color-text-muted);
    font-size: 0.74rem;
}

.checkout-page-summary-options li:not(:last-child)::after {
    content: "•";
    margin-left: 7px;
}

.checkout-page-summary-totals {
    padding: 20px;
    border-top: 1px solid var(--color-border);
}

.checkout-page-summary-totals .summary-row {
    margin-bottom: 12px;
}

.checkout-page-summary-totals .summary-row.total {
    margin-top: 16px;
    padding-top: 16px;
}

.checkout-page-tax-status {
    max-width: 165px;
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-align: right;
}

.checkout-page-total-note {
    margin: 14px 0 0;
    color: var(--color-text-muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.checkout-page-minimum-alert {
    margin: 0 20px 20px;
}


/* =========================================================
   8. AGREEMENTS AND SUBMIT CONTROLS
   ========================================================= */

.checkout-page-agreements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface-muted);
}

.checkout-page-checkbox-option {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    cursor: pointer;
}

.checkout-page-checkbox-option input {
    flex: 0 0 auto;
    margin-top: 3px;
    accent-color: var(--color-primary);
}

.checkout-page-checkbox-option a {
    color: var(--color-primary-dark);
    font-weight: 700;
}

.checkout-page-checkbox-option a:hover {
    text-decoration: underline;
}

.checkout-page-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    border-top: 1px solid var(--color-border);
}

.checkout-page-submit-note {
    margin: 4px 0 0;
    color: var(--color-text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
    text-align: center;
}


/* =========================================================
   9. EMPTY STATE
   ========================================================= */

.checkout-page-empty-state {
    min-height: 390px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.checkout-page-empty-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}


/* =========================================================
   10. TABLET
   ========================================================= */

@media (max-width: 1050px) {
    .checkout-page-layout {
        grid-template-columns: 1fr;
    }

    .checkout-page-summary {
        position: static;
    }

    .checkout-page-summary-items {
        max-height: none;
    }
}


/* =========================================================
   11. MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .checkout-page-card {
        padding: 18px;
    }

    .checkout-page-card-header {
        margin-bottom: 20px;
    }

    .checkout-page-field-grid {
        grid-template-columns: 1fr;
    }

    .checkout-page-field-full {
        grid-column: auto;
    }

    .checkout-page-contact-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .checkout-page-radio-group {
        width: 100%;
    }

    .checkout-page-radio-option {
        flex: 1;
        justify-content: center;
    }

    .checkout-page-payment-method-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .checkout-page-payment-method-header .badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
}


/* =========================================================
   12. SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {
    .checkout-page-card-header {
        gap: 11px;
    }

    .checkout-page-step-number {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .checkout-page-radio-group {
        align-items: stretch;
        flex-direction: column;
    }

    .checkout-page-stripe-placeholder {
        align-items: flex-start;
        flex-direction: column;
        margin: 14px;
        padding: 18px;
    }

    .checkout-page-summary-item {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .checkout-page-summary-item-image-wrapper {
        width: 54px;
        height: 54px;
    }

    .checkout-page-tax-status {
        max-width: 135px;
    }
}
    /* =========================================================
   ORDER CONFIRMATION + ORDER STATUS PAGES
   ========================================================= */


/* =========================================================
   ORDER CONFIRMATION
   ========================================================= */

.confirmation-page {
    max-width: 1180px;
}

.confirmation-hero {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    border-radius: var(--radius-large);
}

.confirmation-icon {
    display: grid;
    place-items: center;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--color-success-light, #dcfce7);
    color: var(--color-success, #15803d);
    font-size: 2rem;
    font-weight: 900;
}

.confirmation-hero-content h1 {
    margin: 10px 0 8px;
}

.confirmation-hero-content p {
    max-width: 720px;
    margin: 0;
    color: var(--color-text-muted);
}

.confirmation-order-number {
    margin-top: 14px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 800;
}

.confirmation-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.confirmation-status-card {
    padding: 20px;
    border-radius: var(--radius-large);
}

.confirmation-label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.confirmation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
}

.confirmation-main {
    display: grid;
    gap: 24px;
}

.confirmation-section,
.confirmation-summary {
    padding: 24px;
    border-radius: var(--radius-large);
}

.confirmation-section-header {
    margin-bottom: 18px;
}

.confirmation-section-header h2,
.confirmation-summary h2 {
    margin: 0;
}

.confirmation-item-list,
.confirmation-detail-list {
    display: grid;
    gap: 0;
}

.confirmation-item,
.confirmation-detail-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
    border-top: 1px solid var(--color-border);
}

.confirmation-item:first-child,
.confirmation-detail-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.confirmation-item:last-child,
.confirmation-detail-row:last-child {
    padding-bottom: 0;
}

.confirmation-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.confirmation-item p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.87rem;
}

.confirmation-detail-row > span {
    color: var(--color-text-muted);
}

.confirmation-detail-row > strong {
    max-width: 62%;
    text-align: right;
}

.confirmation-summary {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.confirmation-summary-rows {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.confirmation-summary-rows > div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.confirmation-summary-total {
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    font-size: 1.08rem;
}

.confirmation-summary .button + .button {
    margin-top: 10px;
}

.confirmation-help-text {
    margin: 16px 0 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
}


/* =========================================================
   ORDER STATUS
   ========================================================= */

.order-status-page {
    max-width: 1180px;
}

.order-status-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px;
    border-radius: var(--radius-large);
}

.order-status-hero h1 {
    margin: 10px 0 8px;
}

.order-status-hero p {
    margin: 0;
    color: var(--color-text-muted);
}

.order-status-number {
    flex: 0 0 auto;
    min-width: 170px;
    padding: 16px 18px;
    border-radius: var(--radius-medium);
    background: var(--color-background);
    text-align: right;
}

.order-status-number span,
.order-status-number strong {
    display: block;
}

.order-status-number span {
    margin-bottom: 4px;
    color: var(--color-text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.order-status-context-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.order-status-context-card {
    padding: 20px;
    border-radius: var(--radius-large);
}

.order-status-context-card span,
.order-status-context-card strong {
    display: block;
}

.order-status-context-card span {
    margin-bottom: 6px;
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.order-status-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 24px;
}

.order-progress-panel,
.order-status-sidebar {
    padding: 24px;
    border-radius: var(--radius-large);
}

.order-status-section-header {
    margin-bottom: 26px;
}

.order-status-section-header h2 {
    margin: 0 0 8px;
}

.order-status-section-header p {
    margin: 0;
    color: var(--color-text-muted);
}

.order-progress-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.order-progress-step {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 16px;
    min-height: 92px;
}

.order-progress-step::after {
    content: "";
    position: absolute;
    top: 42px;
    bottom: 0;
    left: 22px;
    width: 2px;
    background: var(--color-border);
}

.order-progress-step:last-child::after {
    display: none;
}

.order-progress-marker {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 2px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text-muted);
    font-weight: 900;
}

.order-progress-step.is-complete .order-progress-marker {
    border-color: var(--color-success, #15803d);
    background: var(--color-success, #15803d);
    color: #ffffff;
}

.order-progress-step.is-current .order-progress-marker {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 0 0 5px var(--color-primary-light);
}

.order-progress-step.is-complete::after {
    background: var(--color-success, #15803d);
}

.order-progress-content {
    padding: 3px 0 22px;
}

.order-progress-title-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.order-progress-title-row h3 {
    margin: 0;
    font-size: 1rem;
}

.order-progress-title-row span {
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.order-progress-content p {
    margin: 7px 0 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.order-status-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 20px);
}

.order-status-sidebar h2 {
    margin-top: 0;
}

.order-status-detail-list {
    display: grid;
    gap: 16px;
    margin: 20px 0;
}

.order-status-detail-list > div {
    display: grid;
    gap: 5px;
}

.order-status-detail-list span {
    color: var(--color-text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.order-status-notice {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: var(--radius-medium);
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 0.84rem;
    line-height: 1.45;
}

.order-status-sidebar .button + .button {
    margin-top: 10px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
    .confirmation-layout,
    .order-status-layout {
        grid-template-columns: 1fr;
    }

    .confirmation-summary,
    .order-status-sidebar {
        position: static;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .confirmation-hero,
    .order-status-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .confirmation-status-grid,
    .order-status-context-grid {
        grid-template-columns: 1fr;
    }

    .order-status-number {
        width: 100%;
        text-align: left;
    }

    .confirmation-detail-row {
        flex-direction: column;
        gap: 6px;
    }

    .confirmation-detail-row > strong {
        max-width: 100%;
        text-align: left;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 500px) {
    .confirmation-icon {
        width: 60px;
        height: 60px;
        flex-basis: 60px;
    }

    .confirmation-section,
    .confirmation-summary,
    .order-progress-panel,
    .order-status-sidebar {
        padding: 20px;
    }

    .confirmation-item {
        gap: 12px;
    }

    .order-progress-step {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 12px;
    }

    .order-progress-marker {
        width: 38px;
        height: 38px;
    }

    .order-progress-step::after {
        top: 38px;
        left: 18px;
    }

    .order-progress-title-row {
        flex-direction: column;
        gap: 4px;
    }
}
/* =========================================================
   SUPPORT, CONTACT, EVENT REQUEST, AND LEGAL PAGES
   ========================================================= */
.support-page,.legal-page{max-width:1180px}.support-hero,.legal-header{padding:34px;border-radius:var(--radius-large)}.support-hero h1,.legal-header h1{margin:12px 0 10px}.support-hero p,.legal-header p{max-width:760px;margin:0;color:var(--color-text-muted);line-height:1.65}.support-hero-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.support-link-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.support-link-card{display:grid;gap:8px;padding:22px;border-radius:var(--radius-large);color:var(--color-text);transition:transform var(--transition-fast),box-shadow var(--transition-fast)}.support-link-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-medium)}.support-link-card>span{font-size:1.6rem}.support-link-card small{color:var(--color-text-muted);line-height:1.45}.support-section-heading{margin-bottom:20px}.support-section-heading h2{margin:0 0 8px}.support-section-heading p{margin:0;color:var(--color-text-muted)}.faq-list{display:grid;gap:12px}.faq-item{overflow:hidden;border-radius:var(--radius-large)}.faq-item summary{padding:20px 22px;cursor:pointer;font-weight:800}.faq-answer{padding:0 22px 20px}.faq-answer p{margin:0;color:var(--color-text-muted);line-height:1.65}.support-callout{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px;border-radius:var(--radius-large)}.support-callout h2{margin:0 0 8px}.support-callout p{max-width:720px;margin:0;color:var(--color-text-muted)}.support-form-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:24px;margin-top:var(--space-6)}.support-form-card,.support-sidebar-card{padding:26px;border-radius:var(--radius-large)}.support-form{display:grid;gap:22px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-group{display:grid;gap:8px}.form-group-full{grid-column:1/-1}.form-group label{font-size:.86rem;font-weight:800}.form-group input,.form-group select,.form-group textarea{width:100%;border:1px solid var(--color-border);border-radius:var(--radius-medium);background:var(--color-surface);color:var(--color-text);font:inherit;padding:12px 14px}.form-group textarea{resize:vertical}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:3px solid var(--color-primary-light);border-color:var(--color-primary)}.support-form-note{padding:14px 16px;border-radius:var(--radius-medium);background:var(--color-primary-light);color:var(--color-primary-dark);font-size:.84rem;line-height:1.5}.support-sidebar{display:grid;gap:18px}.support-sidebar-card h2{margin-top:0}.support-sidebar-card p{color:var(--color-text-muted);line-height:1.55}.support-number-list,.support-check-list{display:grid;gap:12px;margin:0;padding-left:20px;color:var(--color-text-muted);line-height:1.5}.support-sidebar-card .button{margin-top:16px}.legal-layout{display:grid;grid-template-columns:240px minmax(0,1fr);align-items:start;gap:24px;margin-top:var(--space-6)}.legal-nav{position:sticky;top:calc(var(--header-height) + 20px);display:grid;gap:10px;padding:20px;border-radius:var(--radius-large)}.legal-nav strong{margin-bottom:4px}.legal-nav a{color:var(--color-text-muted);font-size:.9rem}.legal-nav a:hover{color:var(--color-primary-dark)}.legal-content{padding:30px;border-radius:var(--radius-large)}.legal-notice{margin-bottom:28px;padding:16px;border-radius:var(--radius-medium);background:var(--color-warning-light,#fef3c7);color:var(--color-warning-dark,#92400e);font-size:.88rem;font-weight:700;line-height:1.5}.legal-content section{padding-top:6px;scroll-margin-top:calc(var(--header-height) + 24px)}.legal-content section+section{margin-top:30px;padding-top:30px;border-top:1px solid var(--color-border)}.legal-content h2{margin:0 0 14px}.legal-content p{margin:0 0 14px;color:var(--color-text-muted);line-height:1.75}.legal-content p:last-child{margin-bottom:0}@media(max-width:900px){.support-form-layout,.legal-layout{grid-template-columns:1fr}.legal-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr))}.legal-nav strong{grid-column:1/-1}}@media(max-width:700px){.support-hero,.legal-header,.support-form-card,.support-sidebar-card,.legal-content{padding:22px}.support-link-grid,.form-grid{grid-template-columns:1fr}.form-group-full{grid-column:auto}.support-callout{align-items:flex-start;flex-direction:column}.legal-nav{grid-template-columns:1fr}}



/* =========================================================
   EVENT CODE LOOKUP PAGE
   ========================================================= */

.event-code-page {
    max-width: 1040px;
}

.event-code-hero {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 32px;
    border-radius: var(--radius-large);
}

.event-code-icon {
    display: grid;
    place-items: center;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    font-size: 2rem;
    font-weight: 900;
}

.event-code-hero-content h1 {
    margin: 10px 0 8px;
}

.event-code-hero-content p {
    max-width: 700px;
    margin: 0;
    color: var(--color-text-muted);
}

.event-code-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
    gap: 24px;
    margin-top: var(--space-6);
}

.event-code-card,
.event-code-result,
.event-code-info {
    padding: 26px;
    border-radius: var(--radius-large);
}

.event-code-card-header {
    margin-bottom: 22px;
}

.event-code-card-header h2 {
    margin: 0 0 7px;
}

.event-code-card-header p {
    margin: 0;
    color: var(--color-text-muted);
}

.event-code-form {
    display: grid;
    gap: 20px;
}

.event-code-input {
    min-height: 56px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.event-code-divider {
    position: relative;
    display: grid;
    place-items: center;
    margin: 24px 0;
    color: var(--color-text-muted);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.event-code-divider::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--color-border);
}

.event-code-divider span {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: var(--color-surface);
}

.event-code-sidebar {
    display: grid;
    gap: 18px;
}

.event-code-result h2,
.event-code-info h2 {
    margin: 14px 0 14px;
}

.event-code-result-details {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.event-code-result-details > div {
    display: grid;
    gap: 4px;
}

.event-code-result-details span {
    color: var(--color-text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.event-code-help-list {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    list-style: disc;
    color: var(--color-text-muted);
}

.event-code-info p {
    color: var(--color-text-muted);
    line-height: 1.55;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 820px) {
    .event-code-layout {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {
    .event-code-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 22px;
    }

    .event-code-card,
    .event-code-result,
    .event-code-info {
        padding: 22px;
    }

    .event-code-icon {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }
}