:root {
  --app-width: 500px;
  --orange: #df8900;
  --orange-dark: #c77700;
  --orange-soft: #fff0d2;
  --ink: #1f1f1f;
  --muted: #696969;
  --muted-light: #969696;
  --page: #f6f6f6;
  --card: #ffffff;
  --line: #e3e3e3;
  --danger: #c93636;
  --success: #35a35b;
  --shadow: 0 10px 30px rgba(0, 0, 0, .1);
  --font: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #303030; }
body { min-height: 100%; margin: 0; color: var(--ink); background: #303030; font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }

.app-stage { min-height: 100vh; display: flex; justify-content: center; }
.app-shell { position: relative; width: min(100%, var(--app-width)); min-height: 100vh; padding-bottom: 74px; overflow: hidden; background: var(--page); box-shadow: 0 0 50px rgba(0, 0, 0, .22); }

.store-cover { position: relative; background: var(--card); }
.cover-photo { position: relative; height: 255px; overflow: hidden; background: linear-gradient(135deg, #b85c18, #f4c36a); }
.cover-photo::after { position: absolute; inset: 0; content: ''; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.2)); pointer-events: none; }
.cover-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.cover-actions { position: absolute; z-index: 1; top: 17px; right: 18px; display: flex; gap: 10px; }
.round-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.9); box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 18px; transition: transform .18s, background .18s; }
.round-button:hover { transform: translateY(-1px); background: #fff; }
.round-button:last-child { font-size: 20px; }
.brand-badge { position: absolute; z-index: 2; left: 20px; bottom: 47px; display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; border: 5px solid #fff; border-radius: 50%; background: var(--orange); box-shadow: 0 2px 5px rgba(0,0,0,.12); }
.brand-badge img { width: 100%; height: 100%; object-fit: cover; }
.store-bar { display: flex; align-items: center; justify-content: space-between; min-height: 83px; padding: 23px 27px 18px 108px; background: var(--card); }
.store-status { display: flex; align-items: center; gap: 10px; min-width: 0; }
.status-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(53,163,91,.12); }
.store-status strong, .store-status span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-status strong { color: #4f4f4f; font-size: 15px; font-weight: 700; }
.store-status span { margin-top: 5px; color: var(--muted-light); font-size: 12px; }
.info-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0 8px 10px; color: var(--ink); background: transparent; font-size: 15px; font-weight: 700; }
.info-button:first-letter { color: var(--muted); }

.store-content { position: relative; min-height: calc(100vh - 338px); padding: 16px 16px 24px; background: var(--page); }
.order-notice { display: flex; align-items: center; gap: 12px; min-height: 51px; padding: 0 12px; color: #6c6c6c; background: #fff3f0; font-size: 13px; line-height: 1.4; }
.notice-icon { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border: 1px solid #d27d75; border-radius: 50%; color: #c9655c; font-family: Georgia, serif; font-weight: 700; }
.catalog-toolbar { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 25px; }
.category-button, .search-button { min-height: 41px; border: 1px solid var(--line); background: var(--card); transition: border-color .18s, box-shadow .18s, background .18s; }
.category-button { display: inline-flex; align-items: center; gap: 13px; max-width: 75%; padding: 0 12px; border: 2px solid var(--orange); border-radius: 8px; color: var(--ink); font-size: 13px; font-weight: 700; }
.category-button:hover, .category-button[aria-expanded="true"] { background: #fffaf1; box-shadow: 0 3px 9px rgba(223,137,0,.12); }
.chevron { color: var(--orange-dark); font-size: 18px; line-height: 0; transform: translateY(-2px); }
.search-button { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 0; color: var(--muted-light); font-size: 13px; }
.search-button:hover, .search-button[aria-expanded="true"] { border-color: #c9c9c9; color: var(--ink); }
.search-icon { color: var(--muted-light); font-size: 22px; line-height: .8; }
.category-menu { position: absolute; z-index: 6; top: 142px; left: 16px; right: 16px; display: grid; gap: 1px; padding: 7px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(-5px); transition: opacity .16s, transform .16s; }
.category-menu.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
.category-menu button { padding: 13px 15px; color: var(--ink); background: transparent; text-align: left; font-size: 13px; }.category-menu button:hover, .category-menu button.is-current { color: var(--orange-dark); background: #fff6e6; font-weight: 700; }
.search-panel { display: none; margin-top: 12px; padding: 12px; border: 1px solid var(--line); background: var(--card); }.search-panel.is-open { display: block; }.search-panel label { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; }.search-field { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line); background: var(--page); }.search-field input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; color: var(--ink); background: transparent; }.search-field button { color: var(--muted); background: transparent; font-size: 20px; }
.catalog-section { margin-top: 26px; }.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }.section-title-row h1 { margin: 0; font-size: 18px; font-weight: 700; }.item-count { color: var(--muted-light); font-size: 11px; }
.product-grid { display: grid; gap: 10px; margin-top: 18px; }.product-card { display: grid; grid-template-columns: 1fr 170px; min-height: 130px; overflow: hidden; border: 1px solid #e0e0e0; border-radius: 8px; background: var(--card); box-shadow: 0 1px 1px rgba(0,0,0,.02); text-align: left; transition: border-color .16s, box-shadow .16s, transform .16s; }.product-card:hover { border-color: #d9b36b; box-shadow: 0 4px 13px rgba(0,0,0,.08); transform: translateY(-1px); }.product-copy { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 20px 12px 13px; }.product-copy h2 { margin: 0 0 6px; color: var(--ink); font-size: 15px; line-height: 1.28; }.product-copy p { margin: 0 0 7px; color: var(--muted); font-size: 12px; line-height: 1.35; }.product-price { margin-top: auto; color: #519567; font-size: 16px; font-weight: 700; }.product-thumb { position: relative; min-height: 130px; overflow: hidden; background: #e6c28b; }.product-thumb::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(0,0,0,.06), transparent 40%); pointer-events: none; }.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }.product-card:hover .product-thumb img { transform: scale(1.05); }
.no-results { display: grid; place-items: center; padding: 45px 20px; color: var(--muted); text-align: center; }.no-results > span { margin-bottom: 10px; color: var(--orange); font-size: 28px; }.no-results strong { color: var(--ink); font-size: 16px; }.no-results p { margin: 6px 0 0; font-size: 12px; }

.bottom-nav { position: fixed; z-index: 10; bottom: 0; left: 50%; display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, var(--app-width)); min-height: 73px; padding: 6px 10px max(6px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.98); box-shadow: 0 -3px 12px rgba(0,0,0,.05); transform: translateX(-50%); }
.nav-item { position: relative; display: grid; place-items: center; align-content: center; gap: 5px; color: #a2a2a2; background: transparent; font-size: 11px; }.nav-item.is-active { color: var(--ink); }.nav-icon { display: block; font-size: 23px; line-height: .8; }.nav-item.is-active .nav-icon { color: var(--ink); }.cart-badge { position: absolute; top: 2px; right: 25%; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; color: white; background: var(--orange); font-size: 10px; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 0; background: rgba(0,0,0,.52); opacity: 0; pointer-events: none; transition: opacity .2s; }.modal-backdrop.is-open { opacity: 1; pointer-events: auto; }.modal-panel { position: relative; width: min(100%, var(--app-width)); max-height: 94vh; overflow: auto; background: var(--card); box-shadow: 0 -5px 30px rgba(0,0,0,.15); transform: translateY(14px); transition: transform .25s; }.modal-backdrop.is-open .modal-panel { transform: translateY(0); }.product-panel { border-radius: 16px 16px 0 0; }.compact-backdrop { align-items: center; padding: 16px; }.compact-backdrop .modal-panel { border-radius: 14px; transform: translateY(8px); }.compact-backdrop.is-open .modal-panel { transform: translateY(0); }
.modal-image-wrap { position: relative; height: 374px; overflow: hidden; background: #e7bf7b; }.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }.modal-close, .share-button { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; color: #777; background: rgba(255,255,255,.95); font-size: 29px; line-height: 1; }.image-close { position: absolute; top: 10px; left: 9px; font-size: 25px; }.share-button { position: absolute; top: 10px; right: 10px; font-size: 26px; }.modal-close:hover, .share-button:hover { color: var(--ink); background: #fff; }.product-modal-content { padding: 19px 16px 12px; }.modal-eyebrow { display: block; margin-bottom: 8px; color: var(--orange-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }.product-modal-content h2 { margin: 0 0 11px; font-size: 22px; }.product-modal-content > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.4; }.observation-block { padding: 14px 0 17px; border-top: 1px solid #efefef; border-bottom: 1px solid #efefef; }.observation-block strong, .observation-block span { display: block; }.observation-block strong { margin-bottom: 6px; font-size: 15px; }.observation-block span { margin-bottom: 12px; color: var(--muted); font-size: 13px; }.observation-block textarea { width: 100%; min-height: 52px; padding: 10px; resize: vertical; border: 1px solid #ccc; border-radius: 4px; outline-color: var(--orange); color: var(--ink); }.product-action-row { display: flex; align-items: center; gap: 14px; padding: 20px 0 2px; }.quantity-control { display: flex; align-items: center; justify-content: space-between; width: 118px; height: 47px; border: 1px solid #d7d7d7; border-radius: 5px; background: #f9f9f9; }.quantity-control button { width: 39px; height: 100%; color: #757575; background: transparent; font-size: 28px; line-height: 1; }.quantity-control strong { font-size: 19px; }.primary-action { display: inline-flex; flex: 1; align-items: center; justify-content: space-between; min-height: 47px; padding: 0 13px; border-radius: 5px; color: #fff; background: var(--orange); font-weight: 700; transition: background .16s, transform .16s; }.primary-action:hover { background: var(--orange-dark); }.primary-action:active { transform: scale(.99); }.primary-action b { font-size: 20px; font-weight: 400; }

.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 16px; border-bottom: 1px solid #ededed; background: var(--card); }.panel-heading h2 { margin: 0; color: var(--ink); font-size: 23px; }.panel-heading .modal-close { width: 36px; height: 36px; background: transparent; }.cart-panel { min-height: 560px; border-radius: 16px 16px 0 0; }.cart-content { min-height: 405px; padding: 20px 16px 100px; background: var(--page); }.cart-item { display: grid; grid-template-columns: 1fr 92px; gap: 10px; padding: 13px; border: 1px solid #ddd; border-radius: 8px; background: var(--card); }.cart-item + .cart-item { margin-top: 10px; }.cart-item h3 { margin: 0 0 8px; font-size: 15px; line-height: 1.3; }.cart-item p { margin: 0 0 13px; color: var(--muted); font-size: 11px; line-height: 1.35; }.cart-item__right { display: grid; justify-items: end; align-content: space-between; }.cart-item__right img { width: 92px; height: 72px; border-radius: 4px; object-fit: cover; }.cart-item__price { font-weight: 700; }.cart-item__controls { display: flex; align-items: center; gap: 3px; }.mini-button { padding: 2px 5px; color: #777; background: transparent; font-size: 12px; text-decoration: underline; }.mini-qty { display: inline-flex; align-items: center; gap: 5px; margin-right: 7px; border: 1px solid #ddd; border-radius: 4px; }.mini-qty button { width: 22px; height: 22px; color: #777; background: transparent; }.mini-qty span { min-width: 14px; text-align: center; font-size: 11px; }.empty-cart { display: grid; place-items: center; padding: 65px 22px; color: var(--muted); text-align: center; }.empty-cart strong { margin-top: 12px; color: var(--ink); font-size: 17px; }.empty-cart p { margin: 7px 0 0; font-size: 12px; }.empty-cart .empty-icon { color: var(--orange); font-size: 42px; }.continue-button { display: block; margin: 20px auto 0; padding: 10px 14px; border: 1px solid var(--orange); border-radius: 4px; color: var(--orange-dark); background: transparent; font-weight: 700; }.cart-footer { position: sticky; bottom: 0; display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid #e5e5e5; background: var(--card); }.cart-total { display: flex; justify-content: space-between; align-items: center; font-size: 15px; }.cart-total strong { font-size: 17px; }

.checkout-panel { border-radius: 16px 16px 0 0; }.checkout-form { padding: 0 16px 20px; }.checkout-summary { margin: 15px 0 4px; padding: 12px; border-left: 3px solid var(--orange); background: #fff8eb; color: #5a4b34; font-size: 12px; line-height: 1.5; }.form-section { padding: 18px 0 3px; border-bottom: 1px solid #ededed; }.form-section h3 { margin: 0 0 12px; font-size: 15px; }.form-section label, .profile-form label { display: block; margin-bottom: 11px; color: #555; font-size: 12px; }.form-section input, .form-section select, .form-section textarea, .profile-form input { display: block; width: 100%; min-height: 41px; margin-top: 6px; padding: 9px 10px; border: 1px solid #d1d1d1; border-radius: 4px; outline-color: var(--orange); color: var(--ink); background: #fff; }.form-section textarea { min-height: 61px; resize: vertical; }.two-columns { display: grid; grid-template-columns: 1fr 90px; gap: 9px; }.optional { color: #999; font-size: 10px; font-weight: 400; }.segmented-control { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; margin-bottom: 12px; }.segmented-control label { margin: 0; }.segmented-control input { position: absolute; opacity: 0; pointer-events: none; }.segmented-control span { display: grid; place-items: center; min-height: 39px; padding: 0 7px; border: 1px solid #d2d2d2; border-radius: 4px; color: #666; background: #fff; font-size: 12px; text-align: center; }.segmented-control input:checked + span { border-color: var(--orange); color: var(--orange-dark); background: #fff8ec; box-shadow: inset 0 0 0 1px var(--orange); font-weight: 700; }.checkout-bottom { display: grid; gap: 10px; padding-top: 18px; }.checkout-bottom > div { display: flex; justify-content: space-between; align-items: baseline; }.checkout-bottom > div span { color: var(--muted); }.checkout-bottom > div strong { font-size: 18px; }.full-action { width: 100%; min-height: 49px; justify-content: center; gap: 9px; }.checkout-bottom small { color: var(--muted-light); font-size: 10px; line-height: 1.4; text-align: center; }

.info-panel { max-width: 470px; }.info-content { padding: 8px 16px 16px; }.info-row { display: grid; grid-template-columns: 33px 1fr; gap: 10px; padding: 16px 0; border-bottom: 1px solid #eee; }.info-row > span { color: var(--orange); font-size: 22px; text-align: center; }.info-row strong { display: block; margin-bottom: 5px; font-size: 14px; }.info-row p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }.map-action { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 13px 14px; border-radius: 5px; color: #fff; background: var(--orange); font-size: 13px; font-weight: 700; }.map-action span { font-size: 18px; }.history-content { min-height: 220px; padding: 18px 16px; background: var(--page); }.history-empty { display: grid; place-items: center; padding: 42px 20px; color: var(--muted); text-align: center; }.history-empty strong { margin-top: 10px; color: var(--ink); }.history-empty p { margin: 6px 0 0; font-size: 12px; }.history-item { padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }.history-item + .history-item { margin-top: 10px; }.history-item strong, .history-item span { display: block; }.history-item strong { margin-bottom: 5px; font-size: 14px; }.history-item span { color: var(--muted); font-size: 11px; line-height: 1.5; }.history-clear { margin-top: 14px; padding: 10px 0; color: var(--danger); background: transparent; font-size: 12px; text-decoration: underline; }.profile-form { padding: 18px 16px 20px; }.profile-form p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.toast { position: fixed; z-index: 60; left: 50%; bottom: 92px; width: max-content; max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 6px; color: #fff; background: #272727; box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

[data-theme="dark"] { --page: #202020; --card: #2d2d2d; --ink: #f5f5f5; --muted: #b7b7b7; --muted-light: #8e8e8e; --line: #454545; }.dark-theme .store-bar, .dark-theme .bottom-nav { background: var(--card); }.dark-theme .order-notice, .dark-theme .search-field, .dark-theme .category-menu, .dark-theme .product-card, .dark-theme .cart-item, .dark-theme .info-panel, .dark-theme .modal-panel, .dark-theme .checkout-summary { background: #2d2d2d; }.dark-theme .product-card, .dark-theme .cart-item { border-color: #454545; }.dark-theme .form-section input, .dark-theme .form-section select, .dark-theme .form-section textarea, .dark-theme .profile-form input { border-color: #505050; color: var(--ink); background: #202020; }.dark-theme .category-menu button:hover, .dark-theme .category-menu button.is-current { background: #40351f; }.dark-theme .segmented-control span { border-color: #505050; color: #ccc; background: #202020; }.dark-theme .segmented-control input:checked + span { background: #40351f; }

@media (max-width: 500px) {
  html, body { background: var(--page); }
  .app-shell { box-shadow: none; }
  .cover-photo { height: 255px; }
}

@media (min-width: 501px) {
  .bottom-nav { border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.checkout-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.checkout-summary .summary-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(90,75,52,.2); }
