:root {
    --ink: #29241f;
    --muted: #6b6057;
    --paper: #fffdf9;
    --cream: #fff5ee;
    --surface: #ffffff;
    --accent: #c94b24;
    --accent-text: #a63a1b;
    --accent-dark: #a63a1b;
    --line: #e7ddd3;
    --control-line: #a48e7b;
    --header-surface: #fff1e5;
    --header-ink: #49362a;
    --header-muted: #756052;
    --header-accent: #b7441e;
    --header-hover: #ffe4d0;
    --error: #b42318;
    --success: #18794e;
    --shadow: 0 20px 60px rgba(74, 45, 31, 0.06);
}

/* One light palette for customer pages, independent of the browser's theme. */
body.crave-body {
    color-scheme: light;
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent-dark);
}

/* ============================================================
   Header (Navbar) - Based on Mock Image 2
   ============================================================ */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.02);
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.05em;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
    color: var(--accent-dark);
}

.brand span {
    color: var(--accent);
}

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

.main-nav a {
    color: #4b5563;
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
    padding: 4px 0;
}

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

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-actions,
.header-actions-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.site-header nav a {
    color: var(--muted);
    font-size: 0.93rem;
    font-weight: 600;
}

.logout-form {
    margin: 0;
}

.nav-button {
    padding: 0;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-button:hover {
    text-decoration: underline;
}

.header-message {
    margin-inline: 6vw;
}

.page {
    width: min(1120px, 88vw);
    margin: 0 auto;
    padding: 72px 0;
}

.auth-page {
    min-height: calc(100vh - 144px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
}

.header-icon-btn,
.header-cart-icon-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff8f3;
    color: #1f2937;
    border: 1px solid var(--line);
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.header-icon-btn:hover,
.header-cart-icon-btn:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    text-decoration: none;
}

.header-cart-icon-btn .cart-badge-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

.header-cart-icon-btn:hover .cart-badge-count {
    background: #1f2937;
}

.cart-badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

.header-login-link {
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.header-login-link:hover {
    background: #f3f4f6;
    color: var(--accent);
    text-decoration: none;
}

/* ============================================================
   Page Container
   ============================================================ */
.page-container {
    width: min(1200px, 92vw);
    margin: 0 auto;
    padding: 32px 0 64px;
}

/* ============================================================
   1. Hero Banner - Based on Mock Image 1
   ============================================================ */
.crave-hero-banner {
    background: #fdede5;
    border-radius: 28px;
    padding: clamp(2.5rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.18fr 0.82fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
    margin-bottom: 3.5rem;
    box-shadow: 0 10px 40px rgba(239, 91, 53, 0.05);
}

.hero-text-col {
    display: flex;
    flex-direction: column;
}

.hero-eyebrow {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
    display: block;
}

.hero-heading {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    color: #1c1e21;
    margin: 0 0 1rem;
}

.hero-subtext {
    color: #6b7280;
    font-size: 1.02rem;
    line-height: 1.5;
    margin: 0 0 2rem;
    max-width: 480px;
}

.hero-search-pill {
    background: #ffffff;
    border-radius: 999px;
    padding: 0.45rem 0.5rem 0.45rem 1.25rem;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    gap: 0.75rem;
    max-width: 530px;
    border: 1px solid rgba(239, 91, 53, 0.12);
}

.search-input-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex: 1;
}

.search-icon-svg {
    color: #9ca3af;
    flex-shrink: 0;
}

.search-input-field input {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    width: 100%;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
}

.search-input-field input:focus,
.search-input-field input:focus-visible {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.search-input-field input::placeholder {
    color: #9ca3af;
}

.location-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-left: 1px solid #e5e7eb;
    font-size: 0.88rem;
    font-weight: 700;
    color: #374151;
    white-space: nowrap;
}

.hero-order-btn {
    background: var(--accent);
    color: #ffffff;
    border: 0;
    border-radius: 999px;
    padding: 0.75rem 1.5rem;
    font-weight: 750;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
}

.hero-order-btn:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.hero-photo-wrapper {
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4 / 3;
    border: 3px solid rgba(255, 255, 255, 0.6);
}

.hero-photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ============================================================
   2. Browse by craving - Based on Mock Image 1
   ============================================================ */
.craving-section {
    margin-bottom: 4rem;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1c1e21;
    margin: 0;
    letter-spacing: -0.02em;
}

.see-all-link {
    color: #6b7280;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.see-all-link:hover {
    color: var(--accent);
}

.craving-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1.25rem;
}

.craving-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 0.65rem;
    transition: transform 0.2s;
}

.craving-tile:hover {
    transform: translateY(-4px);
    text-decoration: none;
}

.craving-tile-media {
    width: 100%;
    height: 125px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    background: var(--cream);
}

.craving-tile-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.craving-tile:hover .craving-tile-media img {
    transform: scale(1.06);
}

.craving-tile-name {
    font-size: 0.92rem;
    font-weight: 750;
    color: #1f2937;
}

/* ============================================================
   3. Find something delicious - Based on Mock Images 1 & 2
   ============================================================ */
.catalog-section {
    margin-bottom: 4rem;
}

.catalog-header {
    margin-bottom: 1rem;
}

.catalog-main-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1c1e21;
    margin: 0 0 0.35rem;
    letter-spacing: -0.03em;
}

.catalog-subtitle {
    color: #6b7280;
    font-size: 0.98rem;
    margin: 0;
}

.catalog-tabs-bar {
    display: flex;
    gap: 1.75rem;
    margin: 1.5rem 0 2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.catalog-tabs-bar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

.catalog-tab-link {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    padding-bottom: 0.5rem;
    transition: color 0.15s ease;
    white-space: nowrap;
}

.catalog-tab-link:hover {
    color: var(--accent);
    text-decoration: none;
}

.catalog-tab-link.active {
    color: var(--accent);
    font-weight: 750;
}

.catalog-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- Clean Food Grid --- */
.clean-food-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.clean-food-card {
    background: #ffffff;
    border: 1px solid #f3eae1;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.clean-food-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}

.clean-card-image-wrap {
    width: 100%;
    height: 185px;
    overflow: hidden;
    background: var(--cream);
}

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

.clean-food-card:hover .clean-card-image-wrap img {
    transform: scale(1.05);
}

.clean-card-body {
    padding: 1.25rem 1.35rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.clean-card-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1c1e21;
    margin: 0 0 0.35rem;
}

.clean-card-desc {
    font-size: 0.86rem;
    color: #6b7280;
    line-height: 1.45;
    margin: 0 0 1.2rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.clean-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.clean-price {
    font-size: 1.25rem;
    font-weight: 850;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.heart-fav-btn {
    background: transparent;
    border: 0;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, color 0.2s;
}

.heart-fav-btn:hover {
    transform: scale(1.15);
    color: var(--accent);
}

.heart-fav-btn.active {
    color: var(--accent);
}

/* ============================================================
   4. Promo Banner - Based on Mock Image 1
   ============================================================ */
.crave-promo-banner {
    background: linear-gradient(135deg, #ff5733 0%, #f04e23 100%);
    border-radius: 24px;
    padding: clamp(2rem, 4vw, 3rem) clamp(2rem, 5vw, 4rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    color: #ffffff;
    margin-bottom: 4rem;
    box-shadow: 0 16px 40px rgba(239, 91, 53, 0.25);
    flex-wrap: wrap;
}

.promo-badge {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    display: block;
    margin-bottom: 0.5rem;
}

.promo-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 900;
    margin: 0 0 0.5rem;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.promo-subtext {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.promo-order-btn {
    background: #ffffff;
    color: var(--accent);
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.promo-order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--accent-dark);
}

/* ============================================================
   5. Feature Badges - Based on Mock Image 1
   ============================================================ */
.crave-features-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #f3eae1;
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.feature-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff4f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-info h3 {
    font-size: 1rem;
    font-weight: 800;
    color: #1c1e21;
    margin: 0 0 0.25rem;
}

.feature-info p {
    font-size: 0.85rem;
    color: #6b7280;
    margin: 0;
    line-height: 1.4;
}

/* ============================================================
   Product Detail Layout
   ============================================================ */
.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.breadcrumb-nav .sep {
    color: #c0b5ac;
}

.breadcrumb-nav .current {
    color: var(--ink);
    font-weight: 650;
}

.product-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 480px) 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
}

.product-image-container {
    position: sticky;
    top: 96px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card-heading h2,
#profile-title {
    margin: 0.1em 0 0;
    font-family: 'Nunito', 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: normal;
}

.card-heading p:last-child {
    margin: 0.25rem 0 0;
}

form {
    margin-top: 1.5rem;
}

.account-card fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.auth-card button:disabled,
.account-card button:disabled,
.logout-form button:disabled,
.account-card fieldset:disabled {
    opacity: 0.65;
}

.auth-card button:disabled,
.account-card button:disabled,
.logout-form button:disabled {
    cursor: wait;
}

.field-hint,
.field-error {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
}

.field-hint {
    color: var(--muted);
}

.field-error {
    color: var(--error);
}

[aria-invalid="true"] {
    border-color: var(--error);
}

label {
    display: block;
}

.product-image-container img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.product-media-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
}

.category-pill {
    background: rgba(255, 253, 249, 0.95);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 750;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.status-pill {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 750;
    color: #fff;
}

.status-pill.available {
    background: var(--success);
}

.status-pill.unavailable {
    background: var(--error);
}

.product-info-panel {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.food-heading-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin: 0.1em 0 0.3em;
}

.price-hero {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
    color: var(--accent);
}

.price-amount {
    font-size: 2.3rem;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.price-curr {
    font-size: 1.4rem;
    font-weight: 700;
}

.price-note {
    margin-left: 0.5rem;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.product-description-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
}

.product-description-box h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 750;
}

.product-description-box p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.options-container {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.options-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 750;
    border-bottom: 1px solid var(--cream);
    padding-bottom: 0.75rem;
}

.option-group {
    border: 0;
    padding: 0;
    margin: 0;
}

.option-group-title {
    font-size: 0.92rem;
    font-weight: 750;
    color: var(--ink);
    margin-bottom: 0.7rem;
    padding: 0;
}

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

.option-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.option-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-card-inner {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 1rem;
    background: var(--paper);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.option-card input:checked + .option-card-inner {
    border-color: var(--accent);
    background: #fff4f0;
    box-shadow: 0 4px 12px rgba(239, 91, 53, 0.12);
}

.opt-label {
    font-size: 0.9rem;
    font-weight: 650;
    color: var(--ink);
}

.opt-price {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.option-card input:checked + .option-card-inner .opt-price {
    color: var(--accent-dark);
}

.order-action-bar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.quantity-picker-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.qty-label {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    background: var(--paper);
}

.qty-btn {
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--ink);
}

.qty-btn:hover {
    background: var(--cream);
}

.qty-controls input {
    width: 48px;
    height: 38px;
    border: 0;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 0;
    text-align: center;
    font-weight: 750;
    padding: 0;
}

.checkout-summary {
    display: flex;
    flex-direction: column;
}

.total-label {
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 600;
}

.total-val {
    font-size: 1.6rem;
    font-weight: 850;
    color: var(--accent);
}

.add-cart-btn {
    width: auto;
    margin: 0;
    padding: 0.9rem 1.8rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1rem;
    border-radius: 12px;
}

/* ============================================================
   Admin Views & Components
   ============================================================ */
.admin-page {
    padding-top: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-header-title h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin: 0.1em 0 0.2em;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.admin-header-actions {
    display: flex;
    gap: 0.75rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.4rem;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 750;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    border: 0;
    transition: all 0.2s ease;
}

.button.primary {
    background: var(--accent);
    color: #ffffff;
}

.button.primary:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

.form-error,
.form-success {
    min-height: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 650;
}

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

.form-success {
    color: var(--success);
}

.form-error:empty,
.form-success:empty {
    display: none;
}

.card-footnote {
    margin: 1.25rem 0 0;
    color: var(--muted);
    text-align: center;
}

.account-page {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 6vw, 6rem);
}

.account-sidebar h1 {
    font-size: 2.4rem;
}

.account-sidebar nav {
    display: grid;
    gap: 0.35rem;
    margin-top: 2rem;
}

.account-sidebar nav a {
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    color: var(--muted);
    font-weight: 650;
}

.account-sidebar nav a.active,
.account-sidebar nav a:hover {
    color: var(--accent-dark);
    background: var(--cream);
    text-decoration: none;
}

.button.outline {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--ink);
}

.button.outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

.stat-icon {
    font-size: 2.2rem;
}

.stat-num {
    display: block;
    font-size: 1.8rem;
    font-weight: 850;
    line-height: 1.1;
    color: var(--ink);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 600;
}

.admin-toolbar {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-filter-form {
    display: flex;
    gap: 0.85rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0;
}

.filter-group {
    flex: 1;
    min-width: 170px;
}

.filter-group.search-filter {
    flex: 2;
    min-width: 240px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid var(--line);
    background: var(--paper);
    font-family: inherit;
}

.filter-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4036' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.link-btn {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-weight: 650;
}

.admin-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.92rem;
}

.admin-table th {
    background: var(--cream);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--cream);
    vertical-align: middle;
}

.admin-table tr:hover td {
    background: #fdfbf7;
}

.admin-thumb {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    background: var(--cream);
}

.food-name-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.food-name-cell strong {
    color: var(--ink);
    font-size: 0.98rem;
}

.line-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--muted);
}

.category-badge {
    background: var(--cream);
    color: var(--ink);
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 650;
}

.price-text {
    color: var(--accent);
    font-weight: 800;
}

.status-toggle-btn {
    border: 0;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-status-available {
    background: #e8f5e9;
    color: #1b5e20;
}

.btn-status-available:hover {
    background: #c8e6c9;
}

.btn-status-unavailable {
    background: #ffebee;
    color: #c62828;
}

.btn-status-unavailable:hover {
    background: #ffcdd2;
}

.btn-sm {
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 650;
    border-radius: 6px;
    cursor: pointer;
    background: #fff;
    border: 1px solid var(--line);
}

.row-actions {
    display: flex;
    gap: 0.4rem;
    justify-content: flex-end;
}

.action-btn {
    border: 0;
    background: transparent;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    transition: background 0.15s;
}

.action-btn.edit-btn:hover {
    background: var(--cream);
    color: var(--accent-dark);
}

.action-btn.delete-btn:hover {
    background: #ffebee;
    color: #c62828;
}

.count-badge {
    background: var(--cream);
    color: var(--accent);
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    font-weight: 750;
}

/* --- Modals --- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(28, 30, 33, 0.48);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-dialog {
    background: #fff;
    border-radius: 22px;
    width: min(580px, 94vw);
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.modal-dialog.modal-lg {
    width: min(720px, 94vw);
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
}

.modal-close {
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}

.modal-body {
    padding: 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.modal-footer {
    padding: 1.2rem 1.8rem;
    border-top: 1px solid var(--cream);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: var(--paper);
    border-bottom-left-radius: 22px;
    border-bottom-right-radius: 22px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 750;
    color: var(--ink);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--paper);
    font-family: inherit;
}

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

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

.alert-box {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #ffebee;
    color: #c62828;
    font-size: 0.88rem;
    font-weight: 650;
}

/* Sub-table in modal */
.admin-table-sub {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    margin-top: 0.6rem;
}

.admin-table-sub th {
    background: var(--cream);
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem;
    font-weight: 750;
    text-transform: uppercase;
}

.admin-table-sub td {
    padding: 0.65rem 0.8rem;
    border-bottom: 1px solid var(--cream);
}

.add-option-box {
    margin-top: 1.5rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem;
}

.add-option-box h4 {
    margin: 0 0 0.8rem;
    font-size: 0.95rem;
}

.inline-fields {
    display: grid;
    grid-template-columns: 1.4fr 1.6fr 1.2fr auto;
    gap: 0.6rem;
    align-items: flex-end;
}

.inline-fields .field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.inline-fields .field label {
    font-size: 0.78rem;
    font-weight: 700;
}

.inline-fields input,
.inline-fields select {
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 8px;
}

/* --- Toast Feedback Container --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 10000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    color: var(--ink);
    padding: 0.85rem 1.3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
    border: 1px solid var(--line);
    font-size: 0.92rem;
    font-weight: 650;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-left: 4px solid var(--success);
}

.toast.toast-error {
    border-left: 4px solid var(--error);
}

/* ============================================================
   Footer - Based on Mock Image 2
   ============================================================ */
.site-footer {
    background: #18222d;
    color: #94a3b8;
    padding: 2.2rem 24px;
    border-top: 0;
    margin-top: 2rem;
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand strong {
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: inherit;
}

.footer-brand span {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.footer-copy {
    font-size: 0.88rem;
    color: #94a3b8;
}

.social-icon {
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s;
}

.social-icon:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
}

.address-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.address-item {
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow-wrap: anywhere;
}

.address-item h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    white-space: pre-wrap;
}

.address-item p {
    margin-block: 0.5rem;
    color: var(--muted);
    white-space: pre-wrap;
}

.address-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    color: var(--success);
    background: #eaf6ee;
    font-size: 0.8rem;
    font-weight: 700;
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.address-action {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent-dark);
    background: var(--paper);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
}

.address-action:hover {
    background: var(--cream);
}

.address-action.danger {
    color: var(--error);
}

#address-refresh,
.cancel-edit {
    margin-top: 1rem;
}
.empty-state {
    margin: 2rem 0;
    padding: 3.5rem 2rem;
    border: 1.5px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.empty-state span,
.empty-icon-art {
    display: block;
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-state h3,
.empty-title {
    margin: 0.2rem 0;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
}

.empty-state p,
.empty-desc {
    margin: 0.5rem auto 1.5rem;
    max-width: 480px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

.empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    font-weight: 750;
}

/* Unavailable Notice Banner */
.unavailable-notice-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    margin: 0.5rem 0 1rem;
}

.unavailable-notice-banner .notice-icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.unavailable-notice-banner strong {
    display: block;
    font-size: 0.98rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    color: #c2410c;
}

.unavailable-notice-banner p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.45;
    color: #9a3412;
}

/* Card unavailable state */
.food-card-unavailable {
    opacity: 0.82;
}

.card-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.card-status-badge.badge-unavailable {
    background: #dc2626;
    color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .crave-hero-banner {
        grid-template-columns: 1fr;
        padding: 2rem 1.5rem;
    }

    .hero-photo-wrapper img {
        max-height: 320px;
        object-fit: cover;
    }

    .product-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-image-container {
        position: static;
    }

    .main-nav {
        gap: 0.75rem;
        flex-wrap: wrap;
    }

    .catalog-tabs-bar {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .catalog-tabs-bar::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 560px) {
    .craving-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }

    .craving-tile {
        padding: 0.75rem;
    }

    .clean-food-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .crave-features-row {
        grid-template-columns: 1fr;
    }

    .order-action-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .order-action-bar .add-cart-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 32px 24px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-brand span {
    color: var(--accent);
}

.footer-tagline {
    color: #d1d5db;
    margin-left: 8px;
    font-size: 0.95rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: #6b7280;
}

@media (max-width: 1000px) {
    .site-header-inner {
        flex-wrap: wrap;
        padding-block: 14px;
        gap: 14px 24px;
    }
    .site-header nav,
    .main-nav {
        gap: 1rem;
        flex-wrap: wrap;
        min-width: 0;
        max-width: 100%;
    }
    .header-actions-right {
        gap: 14px;
    }
}

@media (max-width: 640px) {
    .site-header-inner {
        flex-direction: column;
        padding-block: 1rem;
        gap: 0.75rem;
    }

    .main-nav {
        justify-content: center;
    }

    .hero-search-pill {
        flex-direction: column;
        border-radius: 18px;
        padding: 0.85rem;
        align-items: stretch;
    }

    .location-badge {
        border-left: 0;
        border-top: 1px solid #e5e7eb;
        padding: 0.6rem 0;
    }

    .hero-order-btn {
        width: 100%;
        text-align: center;
    }

    .site-footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* Shared customer components */
.crave-body h1, .crave-body h2, .crave-body h3 { font-family: 'Nunito', system-ui, sans-serif; }
.crave-body .site-header { background: var(--header-surface); border-color: var(--header-hover); box-shadow: none; }
.crave-body .site-header .brand { color: var(--header-accent); }
.crave-body .site-header-inner { max-width: 1360px; }
.crave-body .main-nav a, .crave-body .header-login-link, .crave-body .nav-button { color: var(--header-ink); }
.crave-body .main-nav a:hover, .crave-body .main-nav a.active { color: var(--header-accent); }
.crave-body .header-cart-icon-btn { background: var(--header-hover); border-color: var(--header-hover); color: var(--header-ink); }
.crave-body .header-login-link:hover { background: var(--header-hover); color: var(--header-ink); }
.crave-body .header-cart-icon-btn .cart-badge-count { border-color: var(--header-surface); }
.crave-body .user-avatar-btn { background: var(--accent); color: #fff; }
.crave-body .user-dropdown-link:hover { background: var(--cream); color: var(--accent-dark); }
.crave-body input::placeholder, .crave-body textarea::placeholder { color: var(--muted); opacity: 1; }
.crave-body main { flex: 1; }
.crave-body .page-container { width: min(1280px, calc(100% - 48px)); }
.crave-body .section-title, .crave-body .catalog-main-title, .crave-body .clean-card-title, .crave-body .craving-tile-name,
.crave-body .feature-info h3, .crave-body .food-heading-title { color: var(--ink); }
.crave-body .catalog-subtitle, .crave-body .clean-card-desc, .crave-body .see-all-link, .crave-body .feature-info p { color: var(--muted); }
.crave-body .crave-hero-banner { background: linear-gradient(120deg, #fff2ea, #ffe5d7); padding: clamp(1.5rem, 5vw, 4.5rem); }
.crave-body .hero-heading { color: #202a36; font-family: 'Nunito', sans-serif; }
.crave-body .hero-subtext { color: #667486; }
.crave-body .hero-search-pill { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: none; max-width: 100%; }
.crave-body .search-input-field svg { color: var(--muted); }
.crave-body .search-input-field input { color: var(--ink); min-width: 0; border: 0 !important; outline: none !important; box-shadow: none !important; }
.crave-body .search-input-field input:focus,
.crave-body .search-input-field input:focus-visible { border: 0 !important; outline: none !important; box-shadow: none !important; }
.crave-body .search-input-field input::placeholder { color: var(--muted); }
.crave-body .hero-photo-wrapper { aspect-ratio: 1.18; border: 0; box-shadow: none; }
.crave-body .craving-tile {
    padding: 12px;
    border-radius: 20px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.crave-body .craving-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(74, 45, 31, 0.1);
}
.crave-body .craving-tile.active {
    border-color: var(--accent);
}
.crave-body .category-art {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--accent-text);
    height: 116px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffe8d5, #fff5ee);
    box-shadow: none;
}
.crave-body .category-art svg {
    width: 124px;
    max-width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}
.crave-body .craving-tile:hover .category-art svg {
    transform: scale(1.06);
}
.crave-body .craving-tile:nth-child(3n + 2) .category-art { color: #8a570c; background: linear-gradient(135deg, #fff0c9, #fff9e9); }
.crave-body .craving-tile:nth-child(3n) .category-art { color: #28764c; background: linear-gradient(135deg, #e1f2df, #f2faee); }

/* Hình món ăn trong từng thể loại với hiệu ứng chuyển đổi mượt mà */
.category-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s ease-out;
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}
.category-carousel-img.active {
    opacity: 1;
    pointer-events: auto;
}
.craving-tile:hover .category-carousel-img.active {
    transform: scale(1.08);
}
.category-art:has(.category-carousel-img)::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 14, 10, 0.05) 0%, rgba(20, 14, 10, 0.45) 100%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 2;
    transition: opacity 0.3s ease;
}
.craving-tile:hover .category-art:has(.category-carousel-img)::after {
    opacity: 0.25;
}
.crave-body .catalog-tabs-bar {
    border: 0;
    gap: 1.25rem;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.crave-body .catalog-tabs-bar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.crave-body .catalog-tab-link { color: var(--muted); }
.crave-body .catalog-tab-link.active { color: var(--accent); }
.crave-body .clean-food-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.crave-body .clean-food-card { background: var(--surface); border-color: var(--line); padding: 11px; box-shadow: none; min-width: 0; }
.crave-body .clean-card-image-wrap { position: relative; display: block; height: auto; aspect-ratio: 1.5; border-radius: 14px; }
.crave-body .clean-card-image-wrap img { display: block; }
.crave-body .clean-card-body { padding: 12px 0 0; }
.crave-body .clean-card-title a { color: inherit; }
.crave-body .clean-card-desc { margin-bottom: 12px; }
.crave-body .food-card-action {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}
.crave-body .food-card-action:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: scale(1.08);
}
.crave-body .food-card-action:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}
.crave-body .food-card-action.adding {
    pointer-events: none;
    background: rgba(255, 102, 56, 0.15);
    border-color: var(--accent);
    color: var(--accent);
}
.crave-body .food-card-action.success {
    background: #16a34a !important;
    border-color: #16a34a !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

@keyframes spinIcon {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.spin-icon {
    animation: spinIcon 0.8s linear infinite;
}

@keyframes cartBump {
    0% { transform: scale(1); }
    40% { transform: scale(1.25); }
    100% { transform: scale(1); }
}
.header-cart-icon-btn.cart-bump {
    animation: cartBump 0.35s ease-out;
}

/* Toast Notifications */
.crave-toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.crave-toast {
    background: var(--surface);
    color: var(--ink);
    padding: 13px 20px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(74, 45, 31, 0.12);
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideUp 0.25s ease-out;
    border: 1px solid var(--line);
}
.crave-toast.success {
    background: #edf8f1;
    border-color: #b8ddc8;
    color: var(--success);
}
.crave-toast.error {
    background: #fff1ee;
    border-color: #f0c5bc;
    color: var(--error);
}
.crave-toast.info {
    background: #eef6ff;
    border-color: #c2d8ef;
    color: #245c90;
}
@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.crave-body .feature-card, .crave-body .order-action-bar, .crave-body .empty-state { background: var(--surface); border-color: var(--line); box-shadow: none; }
.crave-body .feature-card { flex-direction: row; align-items: flex-start; }
.crave-body .feature-symbol { color: var(--accent); font-size: 28px; line-height: 1.3; }
.crave-body .feature-info h3 { margin-top: 0; }
.crave-body .empty-state h3, .crave-body .empty-title { color: var(--ink); }
.crave-body .product-description-box, .crave-body .option-card-inner { background: var(--surface); color: var(--ink); border-color: var(--line); }
.crave-body .option-card input:checked + .option-card-inner { background: var(--cream); border-color: var(--accent); }
.crave-body .option-group-title, .crave-body .options-title, .crave-body .opt-label, .crave-body .qty-label { color: var(--ink); }
.crave-body .product-description-box p, .crave-body .price-note { color: var(--muted); }
.crave-body .product-image-container { background: var(--surface); }
.crave-body .options-container { background: var(--surface); }
.crave-body .qty-controls input { background: var(--paper); color: var(--ink); }
.crave-body .category-pill { color: #35261e; }
.crave-body .status-pill.available { background: #18794e; }
.crave-body .status-pill.unavailable { background: #b42318; }
.crave-body .option-card input:focus-visible + .option-card-inner { outline: 3px solid var(--accent); outline-offset: 3px; }
.crave-body .breadcrumb-nav { flex-wrap: wrap; }
.crave-body .product-detail-layout > * { min-width: 0; }
.crave-body .product-media-badges { flex-wrap: wrap; gap: 8px; }
.crave-body .button.outline, .crave-body .address-action { background: var(--surface); color: var(--ink); }
.crave-body .site-footer { background: var(--header-surface); color: var(--header-muted); border-top-color: var(--line); }
.crave-body .site-footer .footer-brand { color: var(--header-ink); }
.crave-body .site-footer .footer-copy, .crave-body .site-footer .footer-tagline { color: var(--header-muted); }
.crave-body .site-footer .footer-brand span { color: var(--header-accent); }
.crave-body .button.primary:hover, .crave-body .hero-order-btn:hover { background: var(--accent-dark); color: #fff; }
.crave-body :focus,
.crave-body :focus-visible { outline: none !important; }
.crave-body button:disabled { cursor: not-allowed; opacity: .65; }
.skip-link { display: none !important; }
.search-results-label { color: var(--muted); }
@media (max-width: 1100px) {
    .crave-body .clean-food-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .crave-body .site-header-inner { gap: 12px 24px; flex-wrap: wrap; padding-block: 14px; }
    .crave-body .header-actions-right { gap: 8px; flex-wrap: wrap; }
}
@media (max-width: 760px) {
    .crave-body .clean-food-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crave-body .crave-features-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crave-body .main-nav { gap: 16px; }
}
@media (max-width: 520px) {
    .crave-body .page-container { width: calc(100% - 32px); padding-top: 20px; }
    .crave-body .clean-food-grid, .crave-body .crave-features-row { grid-template-columns: 1fr; }
    .crave-body .hero-heading { font-size: 2.2rem; }
    .crave-body .section-header-row { flex-wrap: wrap; gap: 8px; }
    .crave-body .craving-cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .crave-body .footer-tagline { display: block; margin: 6px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .crave-body *, .crave-body *::before, .crave-body *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

.crave-body .site-header-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 32px;
    min-height: 72px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}
.crave-body .main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}
.crave-body .main-nav a {
    color: var(--header-ink);
    font-size: 15px;
    font-weight: 600;
    padding: 8px 0;
    position: relative;
    text-decoration: none;
    transition: color .15s ease;
}
.crave-body .main-nav a:hover,
.crave-body .main-nav a.active {
    color: var(--header-accent);
}
.crave-body .main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: var(--header-accent);
    border-radius: 99px;
}
.crave-body .header-actions {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 16px;
}
.crave-body .header-cart-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--header-hover);
    border: 1px solid var(--line);
    color: var(--header-ink);
    position: relative;
    transition: all .15s ease;
    flex-shrink: 0;
    text-decoration: none;
}
.crave-body .header-cart-icon-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: scale(1.05);
}
.crave-body .header-cart-icon-btn .cart-badge-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--header-surface);
}
.user-profile-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 3px 8px 3px 3px;
    border-radius: 99px;
    transition: background .15s ease;
}
.user-profile-menu:hover {
    background: var(--header-hover);
}
.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #ff6638;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: 0;
    cursor: pointer;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255, 102, 56, .35);
    transition: transform .15s ease, box-shadow .15s ease;
}
.user-profile-menu:hover .user-avatar-btn {
    transform: scale(1.06);
    box-shadow: 0 4px 14px rgba(255, 102, 56, .5);
}
.user-caption {
    line-height: 1.25;
    text-align: left;
    user-select: none;
}
.user-caption strong {
    display: block;
    font-size: 13.5px;
    color: var(--header-ink);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.user-caption small {
    display: block;
    color: var(--header-muted);
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
}
.user-dropdown-popover {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e7e1d6;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
    min-width: 190px;
    padding: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.user-dropdown-popover strong {
    color: #21201d;
}
.user-dropdown-popover small {
    color: #6f6a60;
}
.user-dropdown-link,
.user-dropdown-logout {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    text-decoration: none;
    border: 0;
    background: transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: all .15s ease;
    color: #21201d;
}
.user-dropdown-link:hover {
    background: #faf7f2;
    color: #ff6638;
}
.user-dropdown-logout {
    color: #c1432c;
    border-top: 1px solid #f2ede4;
    margin-top: 4px;
    padding-top: 10px;
    text-align: left;
}
.user-dropdown-logout:hover {
    background: #fbe6e1;
    color: #b34632;
}
@media (max-width: 900px) {
    .crave-body .site-header-inner {
        display: flex;
        justify-content: space-between;
        padding: 12px 20px;
        gap: 12px;
    }
}

