@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap');

:root {
  color: #202b3c;
  background: #f8fafc;
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.site-header {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; min-height: 76px; padding: 12px max(24px, calc((100% - 1200px) / 2));
  background: #fff; border-bottom: 1px solid #e8edf3;
}
.brand { display: block; flex: 0 0 auto; }
.brand img { display: block; width: 72px; height: auto; }
.hero h1 span { color: #f47721; }
.site-nav, .header-account { display: flex; align-items: center; gap: 16px; }
.site-nav { flex-wrap: wrap; color: #5b6677; font-size: 13px; font-weight: 600; }
.site-nav a:hover, .text-link:hover { color: #df6415; }
.header-account { flex: 0 0 auto; font-size: 13px; }
.header-account form { margin: 0; }
.site-main { width: min(1200px, calc(100% - 40px)); min-height: calc(100vh - 160px); margin: 28px auto 64px; }
.site-footer { display: flex; align-items: center; gap: 18px; padding: 24px max(24px, calc((100% - 1200px) / 2)); color: #657084; background: #fff; font-size: 12px; }
.site-footer strong { color: #202b3c; }
.site-footer small { margin-left: auto; }
.hero { overflow: hidden; border-radius: 24px; background: linear-gradient(120deg, #fff5ec, #fff 70%); }
.hero-banner { position: relative; }
.hero-banner img { display: block; width: 100%; height: auto; }
.banner-service { position: absolute; top: 46%; bottom: 16%; width: 19%; border-radius: 10px; }
.banner-service:focus-visible { outline: 3px solid #202b3c; outline-offset: 2px; }
.banner-shopping { left: 33.5%; }
.banner-food { left: 54%; }
.banner-delivery { left: 74.6%; }
.hero-content { max-width: 800px; padding: 32px clamp(20px, 4vw, 48px) 40px; }
.hero h1 { max-width: 700px; margin: 14px 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.15; }
.hero p, .page-heading p { color: #647084; line-height: 1.7; }
.eyebrow { color: #df6415; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.section, .promo { margin-top: 40px; }
.section-heading, .row-between { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.section h2 { margin: 8px 0 18px; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.service-card, .shop-card, .product-card, .list-card, .summary-card, .form-card {
  border: 1px solid #e8edf3; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px #162b4508;
}
.service-card { display: block; padding: 24px; transition: transform .18s, box-shadow .18s; }
.service-card:hover, .shop-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px #162b4514; }
.service-card h3 { margin: 14px 0 8px; }
.service-card p, .product-card p, .card-body p { color: #657084; font-size: 13px; line-height: 1.6; }
.service-card strong { color: #df6415; font-size: 13px; }
.service-icon, .big-emoji { font-size: 34px; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px; border-radius: 18px; color: #fff; background: #f47721; }
.promo h2 { margin: 8px 0; }
.promo p { margin-bottom: 0; color: #fff3e9; }
.promo .eyebrow { color: #fff3e9; }
.page-heading { margin: 12px 0 26px; }
.page-heading h1 { margin: 8px 0; font-size: clamp(28px, 4vw, 40px); }
.search-form { display: flex; gap: 10px; max-width: 620px; margin-top: 20px; }
.search-form input { flex: 1; min-width: 0; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 16px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-weight: 700; }
.button-primary { color: #fff; background: #f47721; }
.button-primary:hover { background: #dc6419; }
.button-muted { color: #344054; background: #fff; border-color: #dce2e9; }
.button-danger { color: #b42318; background: #fff; border-color: #f1c7c4; }
.button-light { color: #df6415; background: #fff; }
.full-width { width: 100%; }
.narrow { width: min(560px, 100%); margin: 28px auto; }
.form-card, .summary-card { padding: 24px; }
.form-card h1 { margin: 8px 0; }
.form-card > p, .muted { color: #697586; font-size: 13px; line-height: 1.65; }
.form-card form { display: grid; gap: 14px; margin-top: 20px; }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; min-height: 42px; padding: 10px 12px; color: #202b3c; background: #fff; border: 1px solid #d5dce5; border-radius: 9px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #f4772125; border-color: #f47721; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid h2 { margin: 0; font-size: 17px; }
.wide { grid-column: 1 / -1; }
.tab-links { display: flex; gap: 8px; margin: 18px 0; padding: 4px; background: #f4f6f8; border-radius: 10px; }
.tab-links a { flex: 1; padding: 10px; border-radius: 8px; text-align: center; font-size: 13px; }
.tab-links .selected { color: #d85e10; background: #fff; box-shadow: 0 1px 5px #00000012; font-weight: 700; }
.notice { margin: 0 0 12px; padding: 12px 15px; border: 1px solid #d5e5f7; border-radius: 10px; color: #245c91; background: #f2f8ff; font-size: 13px; }
.notice-warning { color: #855b00; background: #fff9e8; border-color: #f2df9b; }
.notice-error { color: #9c2a22; background: #fff3f1; border-color: #f4c7c2; }
.notice-success { color: #247248; background: #effaf3; border-color: #b8e3c9; }
.messages { margin-bottom: 18px; }
.shop-card { overflow: hidden; transition: transform .18s, box-shadow .18s; }
.shop-card img, .product-card img { display: block; width: 100%; height: 190px; object-fit: cover; background: #f0f3f6; }
.card-body { padding: 16px; }
.card-body h2, .product-card h2 { margin: 0 0 7px; font-size: 17px; }
.card-body p { margin: 6px 0; }
.product-card { overflow: hidden; padding-bottom: 14px; }
.product-card > a { display: block; }
.product-card form { margin: 0 14px; }
.product-grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.image-placeholder { display: grid; place-items: center; height: 190px; color: #a4afbd; background: #f0f3f6; font-size: 46px; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 28px; align-items: start; }
.product-image { width: 100%; max-height: 520px; object-fit: cover; border-radius: 16px; }
.price { display: block; margin: 18px 0; color: #df6415; font-size: 23px; }
.option-list { margin: 18px 0; }
.two-column { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 20px; align-items: start; }
.list-card { padding: 20px; }
.cart-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf0f4; }
.cart-row:last-child { border-bottom: 0; }
.cart-row img, .cart-emoji { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #f0f3f6; }
.cart-emoji { display: grid; place-items: center; font-size: 28px; }
.cart-row h2 { margin: 0 0 4px; font-size: 15px; }
.cart-row p { margin: 4px 0; color: #657084; font-size: 12px; }
.grow { flex: 1; }
.quantity { width: 86px; }
.summary-card > p, .data-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid #edf0f4; font-size: 13px; }
.summary-total { margin: 14px 0; color: #d85e10; font-size: 16px; font-weight: 700; }
.summary-card .text-link { display: block; margin-top: 14px; text-align: center; }
.text-link { display: inline-block; margin-top: 12px; color: #d85e10; font-size: 13px; font-weight: 700; }
.radio-row { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid #e8edf3; border-radius: 10px; }
.radio-row input { width: auto; min-height: auto; }
.empty-state { padding: 38px 20px; border: 1px dashed #d4dce6; border-radius: 16px; background: #fff; text-align: center; }
.empty-state p { color: #657084; }
.big-emoji { display: block; margin-bottom: 8px; }
.stack { display: grid; gap: 12px; }
.order-card h2 { margin: 0; font-size: 16px; }
.order-card p { color: #657084; font-size: 13px; }
.status-badge { display: inline-flex; padding: 6px 10px; border-radius: 99px; color: #99500d; background: #fff2df; font-size: 11px; font-weight: 700; }
.inline-form { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.inline-form select { width: auto; min-width: 150px; }
.tracking-card { margin-top: 22px; padding: 18px; border: 1px solid #e8edf3; border-radius: 12px; }
.wallet-balance { display: grid; gap: 12px; width: min(400px, 100%); color: #657084; }
.wallet-balance strong { color: #202b3c; font-size: 28px; }
.wallet-deposit-form { display: grid; grid-template-columns: minmax(180px, 260px) auto; align-items: end; gap: 12px; max-width: 430px; }
.stats-grid .summary-card { display: grid; gap: 8px; color: #657084; }
.stats-grid strong { color: #202b3c; font-size: 30px; }
.align-right { text-align: right; }
.address-section { min-width: 0; }
.address-list { margin-top: 20px; }
.address-card { padding: 16px; }
.address-card p { margin: 8px 0 0; font-size: 13px; }
.address-default { display: flex; align-items: center; gap: 8px; }
.address-default input { width: auto; min-height: auto; }
.notification-section { margin-top: 20px; }
.notification-card { padding: 16px; }
.notification-card p { margin: 8px 0 0; font-size: 13px; }
.notification-read { background: #f8fafc; }
.notification-unread { color: #fff; background: #df6415; }
.notification-read-form { margin-top: 12px; }
.order-review-result { margin-top: 16px; padding: 14px; border-radius: 10px; color: #74410a; background: #fff8ec; }
.order-review-form { display: grid; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #edf0f4; }
.config-card { display: grid; gap: 14px; }
.config-card textarea { font-family: Consolas, "Courier New", monospace; }
.bank-transfer-qr { display: block; width: min(360px, 100%); margin: auto; border-radius: 12px; }
.bank-transfer-info { min-width: 0; }
.express-match-result { display: grid; gap: 12px; margin-bottom: 20px; }
.uploaded-preview { display: block; width: 180px; max-height: 140px; margin-top: 8px; object-fit: cover; border-radius: 10px; }
.driver-dashboard-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.driver-map-section { margin-top: 28px; }
.driver-map-frame-wrap { overflow: hidden; width: 100%; height: 420px; border: 1px solid #e8edf3; border-radius: 16px; background: #eef2f6; }
.driver-map-frame { width: 100%; height: 100%; border: 0; }
.driver-map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.driver-route-suggestion { display: grid; gap: 8px; margin-top: 14px; padding: 16px; border: 1px solid #e8edf3; border-radius: 12px; background: #fff; }
.notification-counter { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 99px; color: #99500d; background: #fff2df; font-weight: 700; }
.driver-order-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 16px 18px; border: 1px solid #f2c79d; border-radius: 12px; background: #fff8ef; }
.driver-order-notice p { margin: 6px 0 0; color: #657084; font-size: 13px; }
.location-capture { display: grid; justify-items: start; gap: 8px; }
.location-capture p { margin: 0; }
.directory-badge { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 99px; color: #74410a; background: #fff2df; font-size: 11px; font-weight: 700; }
.map-attribution { margin-top: 20px; color: #657084; font-size: 12px; }
.order-chat { display: grid; gap: 16px; padding: 20px; }
.order-chat-messages { display: flex; flex-direction: column; gap: 10px; min-height: 240px; max-height: 55vh; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.order-chat-message { width: fit-content; max-width: min(80%, 620px); padding: 10px 14px; border: 1px solid #e8edf3; border-radius: 14px 14px 14px 4px; background: #f8fafc; overflow-wrap: anywhere; }
.order-chat-message.is-mine { align-self: flex-end; border-color: #f5c59d; border-radius: 14px 14px 4px 14px; background: #fff2e6; }
.order-chat-message p { margin: 6px 0; white-space: pre-wrap; }
.order-chat-message time { color: #657084; font-size: 11px; }
.order-chat-form { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 900px) {
  .site-header { flex-wrap: wrap; }
  .site-nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 680px) {
  .site-header { padding: 12px 18px; }
  .site-main { width: min(100% - 28px, 1200px); margin-top: 18px; }
  .header-account { margin-left: auto; }
  .header-account > a:first-child:not(.button) { display: none; }
  .brand img { width: 60px; }
  .hero-content { padding-block: 24px 28px; }
  .two-column, .product-detail { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .cart-row { flex-wrap: wrap; }
  .cart-row .grow { min-width: calc(100% - 90px); }
  .promo, .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer small { margin: 0; }
  .search-form { flex-wrap: wrap; }
  .search-form .button { width: 100%; }
}
