:root {
  color-scheme: light;
  --paper: #f8f6f1;
  --surface: #fffefa;
  --ink: #253028;
  --muted: #657168;
  --line: #dedfd6;
  --green: #285544;
  --green-dark: #1d4235;
  --accent: #87543d;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .52; cursor: not-allowed; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.12rem; font-weight: 750; letter-spacing: -.035em; text-decoration: none; white-space: nowrap; }
.brand::before { content: ""; width: 12px; height: 12px; background: var(--accent); border-radius: 9px 2px 9px 2px; transform: rotate(-35deg); }
.brand span { font-weight: 450; }
.header-actions, .form-actions { display: flex; align-items: center; gap: 12px; }
.plain-button { border: 0; background: none; color: var(--green); padding: 10px; text-decoration: none; font-weight: 650; }
.plain-button:hover, a:hover { text-decoration: underline; }
.cart-button, .primary-button { min-height: 44px; border: 1px solid var(--green); background: var(--green); color: #fff; border-radius: 9px; padding: 10px 16px; font-weight: 680; text-decoration: none; transition: background .15s ease, transform .15s ease; }
.cart-button:hover, .primary-button:hover { background: var(--green-dark); text-decoration: none; }
.cart-button:active, .primary-button:active { transform: translateY(1px); }
.cart-button { display: inline-flex; align-items: center; gap: 10px; }
.cart-button span:last-child { display: inline-grid; place-items: center; min-width: 24px; height: 24px; background: #ffffff24; border-radius: 50%; font-size: .85rem; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: #243027; }
.intro { padding: 48px 0 38px; max-width: 780px; }
.eyebrow { margin-bottom: 12px; color: var(--accent); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.intro h1 { font: 500 clamp(2.4rem, 4.2vw, 3.7rem)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.035em; margin-bottom: 14px; }
.intro > p:last-child { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 20px; }
.section-heading h2 { font: 500 1.5rem/1.2 Georgia, "Times New Roman", serif; margin: 0; }
.section-heading p { color: var(--muted); margin: 0; font-size: .9rem; }
.muted { color: var(--muted); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 72px; }
.product-card { display: grid; grid-template-columns: 37% minmax(0, 1fr); min-height: 252px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 16px #2e35240a; }
.product-image { width: 100%; height: 100%; min-height: 252px; object-fit: cover; display: block; }
.image-placeholder { position: relative; display: grid; place-items: center; overflow: hidden; background: #eee9df; }
.product-card:nth-child(2) .image-placeholder { background: #eee4dd; }
.product-card:nth-child(3) .image-placeholder { background: #ede8e5; }
.product-card:nth-child(4) .image-placeholder { background: #e5e9de; }
.image-placeholder::before { content: ""; width: min(78%, 176px); aspect-ratio: 1; position: absolute; border-radius: 50%; background: #fffdf6a8; border: 1px solid #fffdfacc; box-shadow: 0 9px 24px #4d4c3b13; }
.onigiri-shape { position: relative; width: 114px; height: 122px; filter: drop-shadow(0 8px 5px #2e352422); }
.onigiri-shape::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 42%, #ddd9ca 0 1px, transparent 1.5px) 0 0/13px 13px, #fffdf6; clip-path: polygon(46% 5%, 54% 5%, 95% 77%, 96% 88%, 90% 95%, 10% 95%, 4% 88%, 5% 77%); }
.onigiri-shape::after { content: ""; position: absolute; width: 42px; height: 52px; left: calc(50% - 21px); bottom: 5px; background: #304f42; border-radius: 4px 4px 2px 2px; }
.meal-shape { position: relative; width: 116px; height: 116px; border: 10px solid #e6e1d6; border-radius: 50%; background: #fffdf6; box-shadow: 0 8px 18px #2e352422; }
.meal-shape::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: conic-gradient(#ad7548 0 48%, #f4e9d1 48% 100%); }
.product-card:nth-child(2) .onigiri-shape::after { background: #365348; }
.product-card:nth-child(3) .onigiri-shape::after { background: #4a5948; }
.product-card:nth-child(4) .onigiri-shape::after { background: #315947; }
.product-content { min-width: 0; display: flex; flex-direction: column; padding: 23px 23px 20px; }
.product-content h3 { font: 500 1.38rem/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.02em; margin-bottom: 10px; }
.product-badge { align-self: start; margin-bottom: 8px; color: var(--green); font-size: .71rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.product-card.is-unavailable { opacity: .62; }
.product-description { color: var(--muted); font-size: .88rem; line-height: 1.5; margin-bottom: auto; }
.addon-picker { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.addon-picker summary { cursor: pointer; color: var(--green); font-size: .83rem; font-weight: 700; }
.addon-option { display: flex; align-items: center; gap: 9px; margin-top: 9px; color: var(--ink); font-size: .82rem; line-height: 1.35; }
.addon-option input { width: 18px; height: 18px; flex: none; accent-color: var(--green); }
.product-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 20px; }
.single-price { align-self: center; margin: 0; font-weight: 750; }
select, input, textarea { width: 100%; min-width: 0; border: 1px solid #ccd2c8; border-radius: 8px; background: #fff; color: var(--ink); padding: 11px 12px; }
select { appearance: auto; font-size: .88rem; }
.product-controls button { white-space: nowrap; font-size: .88rem; padding-inline: 13px; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid #327f65; outline-offset: 2px; }
.backdrop { position: fixed; inset: 0; background: #1e2d2578; z-index: 5; }
.cart-panel { position: fixed; right: 0; top: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); z-index: 6; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .2s ease; box-shadow: -12px 0 36px #172b2330; }
.cart-panel.open { transform: translateX(0); }
.panel-header, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.panel-header { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-header h2, .dialog-heading h2 { font: 500 1.55rem/1.2 Georgia, "Times New Roman", serif; margin: 0; }
.icon-button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.7rem; line-height: 1; }
.cart-items { padding: 8px 24px; overflow-y: auto; flex: 1; }
.cart-item { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; }
.cart-item p { margin: 4px 0 0; font-size: .87rem; }
.quantity-actions { display: flex; align-items: center; gap: 3px; }
.quantity-actions button { width: 36px; height: 36px; font-size: 1.25rem; padding: 0; }
.cart-footer { padding: 22px 24px; border-top: 1px solid var(--line); }
.total-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 16px; font-size: 1.1rem; }
.cart-footer .primary-button, dialog .primary-button { width: 100%; }
dialog { border: 1px solid var(--line); border-radius: 16px; width: min(510px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 26px; background: var(--surface); box-shadow: 0 24px 80px #10201740; }
dialog::backdrop { background: #1e2d258c; }
dialog form, .admin-card form { display: grid; gap: 16px; }
dialog label, .admin-card label { display: grid; gap: 7px; font-size: .9rem; font-weight: 650; }
.dialog-heading { margin-bottom: 8px; }
.delivery-choice, .admin-option { display: flex !important; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: #f8f8f2; font-size: .96rem; }
.delivery-choice input, .admin-option input { width: 18px; height: 18px; flex: none; accent-color: var(--green); }
#delivery-fields { display: grid; gap: 16px; }
#collection-note { margin: -9px 0 0; font-size: .86rem; }
.payment-note { margin: 0; border-left: 3px solid var(--accent); padding: 5px 0 5px 12px; color: #505d53; font-size: .87rem; line-height: 1.5; }
.handoff-note { margin: -8px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.45; text-align: center; }
.error { color: #a13232; margin: 0; }
.order-status { padding: 14px 18px; border: 1px solid #bfd7c8; border-radius: 9px; background: #edf5ee; color: var(--green-dark); font-weight: 650; margin-bottom: 24px; }
.cart-footer .error { margin-bottom: 12px; font-size: .86rem; }
footer { margin-top: auto !important; padding: 22px 0; border-top: 1px solid var(--line); color: var(--muted); display: flex; justify-content: space-between; gap: 16px; font-size: .85rem; }
.language-choice { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; z-index: 10; border: 0; border-radius: 0; padding: 20px; background: var(--paper); }
.language-choice[open] { display: grid; place-items: center; }
.language-box { width: min(460px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 16px 45px #3a473c12; text-align: center; }
.language-box h1 { font: 500 1.8rem/1.25 Georgia, "Times New Roman", serif; letter-spacing: -.02em; }
.language-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.language-buttons button { min-height: 48px; border: 1px solid var(--green); border-radius: 8px; background: #fff; color: var(--green); font-weight: 700; }
.language-buttons button:hover { background: #edf5ee; }
.admin-main { padding: 44px 0 72px; }
.admin-main h1 { font: 500 clamp(2rem, 4vw, 2.8rem)/1.15 Georgia, "Times New Roman", serif; margin-bottom: 24px; }
.admin-card, .order-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.admin-card { padding: 24px; margin-bottom: 22px; }
#login-section { max-width: 520px; }
.admin-card h2 { font: 500 1.4rem/1.2 Georgia, "Times New Roman", serif; }
.admin-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-fields.single { grid-template-columns: 1fr; }
.image-preview { width: 130px; height: 100px; object-fit: cover; border-radius: 8px; }
.admin-product { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 14px 0; }
.admin-product p { color: var(--muted); margin: 5px 0 0; }
.admin-product .form-actions { flex-wrap: wrap; gap: 4px; }
.admin-product .plain-button { padding: 6px 8px; font-size: .82rem; }
.order-card { padding: 18px; margin-top: 14px; }
.order-card h3 { margin-bottom: 8px; }
.order-card p { margin-bottom: 7px; }
.order-card ul { margin: 10px 0; padding-left: 22px; }
@media (max-width: 920px) { .products { grid-template-columns: 1fr; } .product-card { grid-template-columns: 190px 1fr; min-height: 220px; } .product-image { min-height: 220px; } .admin-columns { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .wrap { width: min(100% - 30px, 1160px); }
  .site-header { min-height: 66px; }
  .brand { font-size: 1rem; gap: 7px; }
  .brand::before { width: 9px; height: 9px; }
  .header-actions { gap: 3px; }
  .cart-button { padding-inline: 11px; }
  .intro { padding: 31px 0 28px; }
  .intro h1 { font-size: 2.35rem; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 5px; }
  .products { gap: 12px; margin-bottom: 48px; }
  .product-card { grid-template-columns: 104px minmax(0, 1fr); min-height: 211px; }
  .product-image { min-height: 211px; }
  .image-placeholder::before { width: 88px; }
  .onigiri-shape { width: 68px; height: 75px; }
  .onigiri-shape::after { width: 25px; height: 32px; left: calc(50% - 12.5px); }
  .meal-shape { width: 68px; height: 68px; border-width: 6px; }
  .meal-shape::before { inset: 7px; }
  .product-content { padding: 14px; }
  .product-content h3 { font-size: 1.12rem; margin-bottom: 6px; }
  .product-description { font-size: .8rem; line-height: 1.38; }
  .product-controls { grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
  .product-controls select, .product-controls button { min-height: 38px; padding: 7px 9px; width: 100%; }
  dialog { padding: 20px; }
  .language-box { padding: 27px 20px; }
  .language-box h1 { font-size: 1.55rem; }
  .admin-card { padding: 18px; }
  .admin-product { align-items: start; flex-direction: column; }
  .price-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 380px) { .brand span { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
