@import url('./tokens.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { font-family: var(--font); background: var(--background); color: var(--text); line-height: 1.6; letter-spacing: 0; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
button, a, input, select, textarea { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; }
[hidden], .hidden { display: none !important; }
.container { width: min(100%, 1240px); padding-inline: 32px; margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 12px 18px; background: var(--surface); color: var(--text); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; text-transform: uppercase; }
.accent-dot { color: var(--primary); }
.button-primary, .btn-add, .btn-go-cart { display: inline-flex; justify-content: center; align-items: center; gap: 12px; background: var(--primary); color: white; border: 1px solid transparent; border-radius: var(--radius); min-height: 48px; padding: 12px 22px; font-weight: 600; font-size: 14px; text-decoration: none; transition: background var(--transition), transform var(--transition); }
.button-primary:hover, .btn-add:hover:not(:disabled), .btn-go-cart:hover { background: var(--primary-hover); }
button:active:not(:disabled), .button-primary:active, .btn-go-cart:active { transform: translateY(1px); }

/* Dark brand surfaces frame a high-contrast menu. */
.main-header { background: var(--ink); color: white; border-bottom: 1px solid #353535; }
.header-flex { min-height: 90px; display: flex; align-items: center; gap: 28px; }
.logo-container { display: flex; align-items: center; flex: 0 0 auto; }
.web-logo { display: block; width: 126px; height: 79px; object-fit: contain; }
.location-badge { font-size: 12px; color: #d6d6ce; padding-left: 25px; border-left: 1px solid #45453e; }
.location-badge i { color: var(--secondary); margin-right: 7px; }
.header-menu-link { margin-left: auto; font-size: 13px; text-decoration: none; display: flex; align-items: center; min-height: 44px; gap: 12px; }
.header-cart-link { display: flex; align-items: center; justify-content: center; position: relative; width: 48px; height: 48px; flex-shrink: 0; border: 1px solid #55564b; border-radius: 50%; text-decoration: none; transition: border-color var(--transition); }
.header-cart-link:hover { border-color: var(--secondary); }
.top-cart-badge { position: absolute; right: -5px; top: -5px; background: var(--secondary); color: var(--ink); border: 2px solid var(--ink); min-width: 23px; padding: 1px 5px; border-radius: 20px; font-weight: 700; font-size: 11px; text-align: center; }
.brand-hero { position: relative; isolation: isolate; min-height: 430px; background: var(--ink); color: white; overflow: hidden; }
.hero-product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 54%; z-index: -2; }
.brand-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, transparent 12%, rgb(22 22 22 / 12%) 35%, rgb(22 22 22 / 96%) 63%, #161616 100%); }
.hero-inner { display: flex; align-items: center; justify-content: flex-end; min-height: 430px; padding-block: 42px; }
.hero-copy { width: 43%; animation: enter 450ms ease both; }
.hero-copy .eyebrow { color: #ffd09f; }
.brand-line { height: 2px; width: 26px; background: var(--secondary); }
.hero-copy h1 { font-size: 64px; font-weight: 700; line-height: 1.12; margin: 18px 0; }
.hero-copy h1 span { color: var(--secondary); }
.hero-description { font-size: 19px; line-height: 1.7; color: #f1f0e9; }
.hero-actions { display: flex; align-items: center; gap: 26px; margin-top: 25px; flex-wrap: wrap; }
.hero-contact { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; font-size: 13px; }
.hero-contact i { font-size: 19px; color: #aacfad; }
.hero-location { display: block; margin-top: 22px; color: #c4c7ba; font-size: 11px; }
.hero-location i { color: var(--secondary); margin-right: 6px; }
.hero-product-caption { position: absolute; left: max(32px, calc((100% - 1176px) / 2)); bottom: 24px; display: inline-flex; gap: 12px; align-items: center; max-width: 40%; padding: 9px 15px; background: rgb(22 22 22 / 88%); color: white; border-left: 3px solid var(--secondary); font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.service-strip { background: #eaf0e5; border-bottom: 1px solid var(--border); }
.service-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 58px; padding-block: 12px; color: #3c543d; font-size: 12px; }
.service-inner span { display: inline-flex; gap: 10px; align-items: center; }
.service-inner i { font-size: 17px; }

.main-content { padding-top: 46px; padding-bottom: 65px; min-height: 420px; }
.menu-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.menu-heading .eyebrow { color: var(--muted); }
.menu-heading h2 { font-size: 32px; line-height: 1.3; margin-top: 3px; }
.store-status { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.store-status.is-open { color: var(--success); }
.store-status.is-open::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--success); }
.store-status.is-closed { color: var(--primary); }
.status-container:empty { display: none; }
.store-closed-banner { border-left: 3px solid var(--primary); background: #fff0ed; color: #742d2b; padding: 16px 20px; margin-top: 24px; }
.store-closed-banner h4 { font-size: 14px; margin-bottom: 6px; }
.store-closed-banner p { font-size: 13px; }
.category-nav { display: flex; gap: 9px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #b4bdb0 transparent; padding: 8px 3px 13px; margin: 23px -3px 0; overscroll-behavior-x: contain; }
.nav-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--border); padding: 10px 18px; min-height: 46px; border-radius: 28px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: 13px; transition: background var(--transition), border-color var(--transition); }
.nav-btn i { font-size: 13px; }
.nav-btn.active { background: var(--ink); border-color: var(--ink); color: white; }
.nav-btn:hover:not(.active) { background: #eaf0e5; border-color: #acb9a6; }
.menu-results { color: var(--muted); font-size: 12px; min-height: 20px; margin: 4px 0 16px; }
.products-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform var(--transition), box-shadow var(--transition); }
.product-image-wrapper { position: relative; aspect-ratio: 4 / 3; background: #eef1ec; overflow: hidden; }
.product-img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.product-img.is-placeholder { object-fit: contain; }
.card-badge { position: absolute; left: 14px; top: 14px; padding: 5px 10px; border-radius: 4px; background: var(--promotional); color: #543510; font-size: 11px; font-weight: 700; }
.card-badge.sold-out { background: #f3f3ef; color: #464d42; }
.product-card.is-unavailable .product-img { filter: saturate(.5); }
.product-info { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.product-category { text-transform: uppercase; font-size: 10px; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.product-name { font-size: 19px; line-height: 1.4; color: var(--text); overflow-wrap: anywhere; margin-bottom: 7px; }
.product-description { font-size: 13px; color: var(--muted); line-height: 1.65; margin-bottom: 20px; overflow-wrap: anywhere; flex: 1; }
.product-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-top: 1px solid #eef0eb; padding-top: 17px; }
.product-price { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.btn-add { padding: 10px 15px; min-width: 114px; }
.btn-add:disabled { background: #e7eae3; color: #58604f; }
.btn-add.is-added { background: var(--success); }
.menu-loading { grid-column: 1 / -1; text-align: center; padding: 12px; color: var(--muted); font-size: 13px; }
.menu-loading img { vertical-align: middle; margin-bottom: 5px; }
.product-skeleton { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; padding-bottom: 18px; }
.product-skeleton div { aspect-ratio: 4 / 3; background: #e6eae1; }
.product-skeleton span { display: block; height: 14px; background: #e6eae1; width: 70%; margin: 18px 20px 0; }
.product-skeleton span:last-child { width: 40%; }
.menu-error-state, .menu-empty-state { grid-column: 1 / -1; padding: 46px 24px; text-align: center; border-block: 1px solid var(--border); color: var(--muted); }
.menu-error-state img, .menu-empty-state img { width: 70px; display: block; margin: 0 auto 16px; }
.menu-error-state p, .menu-empty-state p { margin-bottom: 20px; }

.floating-cart { position: fixed; inset-inline: 20px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 20; width: min(540px, calc(100% - 40px)); margin-inline: auto; animation: enter 200ms ease; }
.cart-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #53594a; border-radius: var(--radius); background: var(--ink); color: white; box-shadow: 0 6px 24px rgb(0 0 0 / 20%); padding: 14px 16px; }
.cart-info { display: grid; grid-template-columns: 22px 1fr; gap: 0 10px; align-items: center; font-size: 11px; }
.cart-info > i { grid-row: span 2; font-size: 19px; color: var(--secondary); }
.cart-info .divider { display: none; }
.cart-info strong { grid-column: 2; font-size: 20px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.btn-go-cart { white-space: nowrap; }
.cart-feedback { position: fixed; z-index: 21; left: 50%; bottom: 116px; transform: translate(-50%, 8px); width: max-content; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 6px; background: var(--success); color: white; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity var(--transition), transform var(--transition); text-align: center; }
.cart-feedback.visible { opacity: 1; transform: translate(-50%, 0); }
.cart-feedback.error { background: var(--primary); }
.cart-bump { animation: cart-bump 250ms ease; }
.main-footer { background: var(--ink); color: #d4d7cc; padding: 45px 0 115px; }
.footer-main { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 70px; align-items: start; }
.footer-brand img { display: block; margin-top: -12px; }
.footer-brand p { font-size: 12px; margin-top: 9px; }
.footer-social h2 { font-size: 21px; color: white; font-weight: 600; line-height: 1.5; margin-bottom: 16px; }
.social-media-container { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link { color: #ffd09f; width: 44px; height: 44px; border: 1px solid #55574c; border-radius: 50%; display: flex; justify-content: center; align-items: center; text-decoration: none; font-size: 21px; transition: color var(--transition), border-color var(--transition); }
.social-link:hover { border-color: var(--secondary); color: white; }
.delivery-zone { position: relative; padding-left: 70px; font-size: 12px; }
.delivery-zone img { position: absolute; left: 0; top: 0; }
.delivery-zone strong { display: block; color: white; }
.delivery-zone a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; color: #ffd09f; text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-top: 38px; padding-top: 24px; border-top: 1px solid #383c32; font-size: 11px; }
.footer-bottom a { text-decoration: none; }

/* Review and delivery retain the existing two-section order flow. */
.simple-navbar { background: var(--ink); color: white; border-bottom: 1px solid #353535; }
.nav-back-wrapper { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.btn-back { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; min-height: 44px; font-size: 12px; }
.checkout-logo { display: block; width: 96px; height: 60px; object-fit: contain; }
.checkout-container { padding-top: 36px; padding-bottom: 50px; max-width: 1180px; }
.checkout-heading .eyebrow { color: var(--muted); }
.checkout-heading h1 { font-size: 38px; margin-top: 6px; line-height: 1.3; }
.checkout-heading p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.order-progress { list-style: none; display: flex; align-items: center; gap: 30px; margin: 28px 0 34px; font-size: 12px; border-bottom: 1px solid var(--border); padding-bottom: 24px; }
.order-progress li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.order-progress li span, .order-progress li i { display: inline-grid; place-items: center; width: 26px; height: 26px; border: 1px solid var(--border); border-radius: 50%; font-size: 11px; }
.order-progress .complete { color: var(--success); }
.order-progress .complete i { background: #eaf0e5; border-color: #c6d6bd; }
.order-progress .current { color: var(--primary); font-weight: 600; }
.order-progress .current span { background: var(--primary); color: white; border-color: var(--primary); }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 50px; align-items: start; }
.checkout-card { min-width: 0; }
.checkout-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin-bottom: 24px; }
.section-number { display: inline-grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; color: var(--muted); border: 1px solid var(--border); font-size: 11px; border-radius: 50%; }
.checkout-form-section { border-left: 1px solid var(--border); padding-left: 35px; }
.cart-items-list { margin-bottom: 24px; }
.cart-item-review-row { display: flex; flex-direction: column; gap: 14px; padding: 19px 0; border-bottom: 1px solid var(--border); }
.cart-item-review-row:first-child { padding-top: 0; }
.item-info-side { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.quantity-badge-wrapper { display: grid; place-items: center; background: #eaf0e5; border-radius: 4px; min-width: 38px; height: 34px; }
.qty-number { color: #36553a; font-weight: 600; font-size: 13px; }
.item-title { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.item-unit-price { display: block; color: var(--muted); font-size: 11px; }
.item-actions-side { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.item-subtotal-price { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.item-control-buttons { display: flex; align-items: center; gap: 6px; }
.item-control-buttons button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); background: white; color: var(--text); border-radius: 6px; font-size: 12px; }
.item-control-buttons button:hover { border-color: var(--primary); color: var(--primary); }
.item-control-buttons .btn-qty-delete { margin-left: 5px; border-color: transparent; color: var(--muted); background: transparent; }
.checkout-totals { padding: 22px 0 12px; }
.total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; margin-bottom: 12px; font-size: 13px; }
.total-row > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
#shipping-val { color: var(--muted); font-size: 11px; max-width: 65%; }
.divider-totals { border-top: 1px solid var(--border); margin: 18px 0; }
.final-total { font-size: 22px; font-weight: 700; }
.continue-shopping { display: inline-flex; align-items: center; gap: 9px; color: var(--primary); font-size: 12px; font-weight: 600; min-height: 44px; text-decoration: none; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 21px; min-width: 0; }
.form-group label { font-size: 12px; font-weight: 600; }
.form-group label > i { color: var(--muted); margin-right: 4px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-width: 0; border: 1px solid #c6cec0; background: white; color: var(--text); border-radius: 6px; padding: 12px; min-height: 48px; font-size: 14px; transition: border-color var(--transition); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: #747b70; font-size: 12px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--success); }
.optional-label { font-weight: 400; color: var(--muted); }
.form-row-group { display: flex; gap: 14px; }
.flex-1 { flex: 1; }
.btn-submit-order-pro { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 15px 14px; min-height: 54px; width: 100%; font-size: 13px; font-weight: 600; background: var(--success); color: white; border: none; border-radius: 6px; transition: background var(--transition); }
.btn-submit-order-pro i { font-size: 20px; }
.btn-submit-order-pro:hover:not(:disabled) { background: #17492f; }
.btn-submit-order-pro:disabled { background: #e0e5db; color: #626b5b; }
.checkout-footer { padding-block: 25px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.cart-empty-state { text-align: center; padding: 28px 18px; background: #eef2e9; border-radius: var(--radius); }
.cart-empty-state img { display: block; margin: 0 auto 12px; }
.cart-empty-state h3 { font-size: 18px; margin-bottom: 8px; }
.cart-empty-state p { color: var(--muted); font-size: 12px; margin-bottom: 18px; }
.checkout-feedback { padding: 16px 20px; margin-bottom: 24px; background: #fff0ed; border-left: 3px solid var(--primary); font-size: 13px; color: #742d2b; }

@media (hover: hover) {
    .product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
    .product-card:hover .product-img { transform: scale(1.025); }
}
@media (max-width: 1050px) {
    .hero-copy h1 { font-size: 50px; }
    .hero-copy { width: 46%; }
    .hero-actions { gap: 16px; }
    .footer-main { gap: 30px; }
    .checkout-grid { gap: 28px; }
    .checkout-form-section { padding-left: 24px; }
    .form-row-group { flex-direction: column; gap: 0; }
}
@media (max-width: 800px) {
    .container { padding-inline: 24px; }
    .header-flex { gap: 20px; }
    .location-badge { padding-left: 20px; }
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
    .hero-copy h1 { font-size: 44px; }
    .hero-copy { width: 48%; }
    .hero-description { font-size: 16px; }
    .hero-actions { gap: 10px; }
    .hero-contact { font-size: 12px; }
    .service-inner { font-size: 10px; gap: 12px; }
    .service-inner span { gap: 7px; }
    .footer-main { grid-template-columns: 1fr 1fr; }
    .delivery-zone { grid-column: 1 / -1; padding-top: 4px; max-width: 370px; }
    .checkout-grid { grid-template-columns: 1fr; gap: 36px; }
    .checkout-form-section { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--border); }
    .form-row-group { flex-direction: row; gap: 14px; }
}
@media (max-width: 600px) {
    .container { padding-inline: 20px; }
    .header-flex { min-height: 76px; gap: 14px; }
    .web-logo { width: 103px; height: 65px; }
    .location-badge { font-size: 10px; border: 0; padding: 0; margin-left: auto; max-width: 86px; }
    .header-menu-link { display: none; }
    .header-cart-link { width: 44px; height: 44px; }
    .brand-hero, .hero-inner { min-height: 450px; }
    .hero-inner { align-items: flex-end; justify-content: flex-start; padding-top: 170px; padding-bottom: 25px; }
    .hero-product-image { object-position: 40% 27%; }
    .brand-hero::after { background: linear-gradient(180deg, transparent 0%, rgb(22 22 22 / 8%) 28%, rgb(22 22 22 / 96%) 62%, #161616 100%); }
    .hero-copy { width: 100%; }
    .hero-copy h1 { font-size: 44px; margin: 10px 0 8px; }
    .hero-copy .eyebrow { font-size: 10px; }
    .hero-description { font-size: 14px; }
    .hero-description br { display: none; }
    .hero-actions { margin-top: 16px; gap: 22px; }
    .hero-location { margin-top: 14px; font-size: 10px; }
    .hero-product-caption { top: 16px; bottom: auto; left: 20px; max-width: calc(100% - 40px); font-size: 10px; }
    .service-inner { display: grid; grid-template-columns: 1fr 1fr; padding-block: 13px; gap: 9px 16px; }
    .service-inner span:first-child { grid-column: 1 / -1; }
    .main-content { padding-top: 30px; padding-bottom: 40px; }
    .menu-heading { align-items: flex-start; gap: 12px; flex-wrap: wrap; }
    .menu-heading h2 { font-size: 27px; }
    .menu-heading .eyebrow { font-size: 10px; }
    .store-status { font-size: 10px; padding-top: 4px; }
    .category-nav { margin-top: 16px; }
    .nav-btn { font-size: 12px; padding-inline: 15px; }
    .products-grid { grid-template-columns: 1fr; gap: 20px; }
    .product-info { padding: 20px; }
    .product-name { font-size: 20px; }
    .product-price { font-size: 23px; }
    .product-image-wrapper { aspect-ratio: 4 / 3; }
    .floating-cart { inset-inline: 12px; width: calc(100% - 24px); bottom: max(12px, env(safe-area-inset-bottom)); }
    .cart-flex { padding: 12px; gap: 12px; }
    .btn-go-cart { font-size: 12px; padding: 12px; gap: 9px; }
    .cart-info { font-size: 10px; gap: 0 7px; }
    .cart-info strong { font-size: 18px; }
    .main-footer { padding-top: 35px; }
    .footer-main { gap: 28px 18px; }
    .footer-social h2 { font-size: 16px; }
    .footer-brand img { width: 126px; height: auto; }
    .footer-brand p { font-size: 10px; }
    .social-media-container { gap: 8px; }
    .social-link { width: 44px; height: 44px; font-size: 19px; }
    .footer-bottom { font-size: 10px; }
    .checkout-container { padding-top: 28px; }
    .checkout-heading h1 { font-size: 32px; }
    .checkout-card h2 { font-size: 16px; gap: 8px; }
    .order-progress { gap: 16px; font-size: 10px; margin-bottom: 27px; }
    .order-progress li { gap: 5px; }
    .form-row-group { flex-direction: column; gap: 0; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
    .btn-submit-order-pro { font-size: 12px; }
}
@media (max-width: 350px) {
    .container { padding-inline: 16px; }
    .header-flex { gap: 10px; }
    .hero-copy h1 { font-size: 38px; }
    .hero-actions { gap: 14px; }
    .hero-actions .button-primary { padding-inline: 16px; }
    .footer-main { grid-template-columns: 1fr; }
    .delivery-zone { grid-column: auto; }
    .order-progress { gap: 10px; }
}
@keyframes enter { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes cart-bump { 50% { scale: 1.12; } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
