.ff-order {
  --ff-ink: #24211e;
  --ff-muted: #706a63;
  --ff-line: #dedbd6;
  --ff-paper: #fff;
  --ff-canvas: #f6f5f2;
  --ff-red: #b72c22;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--ff-ink);
  background: var(--ff-canvas);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}
.ff-order * { box-sizing: border-box; }
.ff-order button, .ff-order input, .ff-order select, .ff-order textarea { font: inherit; }
.ff-order button { cursor: pointer; }
.ff-order [hidden] { display: none !important; }
.ff-intro { position: relative; padding: 36px 32px 28px; background: #fff; border-bottom: 1px solid var(--ff-line); }
.ff-intro h1 { margin: 0; font-size: 32px; line-height: 1.3; letter-spacing: 0; }
.ff-intro > p:last-of-type { margin: 10px 0 0; color: var(--ff-muted); }
.ff-eyebrow { margin: 0 0 7px !important; color: var(--ff-red) !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0; }
.ff-test-badge { position: absolute; top: 36px; right: 32px; padding: 8px 10px; color: #713d00; background: #fff2cc; border: 1px solid #e2c267; border-radius: 4px; font-size: 12px; }
.ff-settings { padding: 22px 32px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 20px; background: #f0eee9; border-bottom: 1px solid var(--ff-line); }
.ff-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.ff-field > span, .ff-field legend { display: block; margin-bottom: 8px; color: var(--ff-ink); font-size: 13px; font-weight: 700; }
.ff-field small { margin-left: 5px; color: var(--ff-muted); font-size: 10px; font-weight: 400; }
.ff-field select, .ff-field input, .ff-field textarea { width: 100%; padding: 0 13px; color: var(--ff-ink); background: #fff; border: 1px solid #c7c3bd; border-radius: 4px; }
.ff-settings .ff-field > input, .ff-settings .ff-field > select { margin: 0 !important; }
.ff-field select, .ff-field input { height: 48px; }
.ff-field textarea { min-height: 100px; padding-top: 11px; resize: vertical; }
.ff-segmented { display: grid; grid-template-columns: 1fr 1fr; height: 48px; }
.ff-segmented label { margin: 0; }
.ff-segmented input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ff-segmented span { height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid #c7c3bd; background: #fff; font-size: 13px; font-weight: 700; }
.ff-segmented label:first-child span { border-radius: 4px 0 0 4px; }
.ff-segmented label:last-child span { border-left: 0; border-radius: 0 4px 4px 0; }
.ff-segmented input:checked + span { color: #fff; border-color: var(--ff-red); background: var(--ff-red); }
.ff-segmented span small { color: inherit; opacity: .75; }
.ff-delivery-note { margin: 7px 0 0 !important; color: var(--ff-muted); font-size: 10px; line-height: 1.5; }
.ff-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.ff-menu { min-width: 0; padding: 32px; }
.ff-heading, .ff-cart-title, .ff-cart-row, .ff-cart-controls, .ff-summary-row, .ff-total { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.ff-heading h2, .ff-cart-title h2 { margin: 0; font-size: 22px; line-height: 1.3; letter-spacing: 0; }
.ff-heading > p { margin: 0; color: var(--ff-muted); font-size: 12px; }
.ff-notice { margin: 14px 0 0; color: var(--ff-muted); font-size: 12px; }
.ff-categories { display: flex; gap: 6px; overflow-x: auto; padding: 16px 0 14px; }
.ff-categories button { flex: 0 0 auto; min-height: 40px; padding: 7px 13px; color: var(--ff-ink); background: #fff; border: 1px solid var(--ff-line); border-radius: 4px; }
.ff-categories button.active { color: #fff; background: var(--ff-ink); border-color: var(--ff-ink); }
.ff-categories small { display: block; margin-top: 2px; font-size: 9px; opacity: .7; }
.ff-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ff-product { min-width: 0; overflow: hidden; background: #fff; border: 1px solid var(--ff-line); border-radius: 6px; }
.ff-product-media { position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; background: #ddd; }
.ff-product-media img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transform: scale(var(--ff-zoom, 1.14)); transform-origin: center; }
.ff-product-media-layered { background: #75604c; }
.ff-product-media-layered .ff-product-backdrop { position: absolute; inset: -14px; z-index: 0; background-position: center; background-size: cover; filter: blur(10px); opacity: .72; }
.ff-product-media-layered img { position: relative; z-index: 1; object-fit: contain; transform: none; }
.ff-product-body { padding: 13px; }
.ff-category-name { margin: 0 0 5px !important; color: var(--ff-red); font-size: 10px; font-weight: 700; }
.ff-product h3 { min-height: 45px; margin: 0; color: var(--ff-ink); font-size: 15px; line-height: 1.35; letter-spacing: 0; }
.ff-product h3 small { display: block; margin-top: 3px; color: var(--ff-muted); font-size: 10px; font-weight: 400; }
.ff-flavor { width: 100%; height: 36px; margin-top: 10px; padding: 0 8px; background: #fff; border: 1px solid var(--ff-line); border-radius: 4px; font-size: 12px; }
.ff-product-note { margin: 9px 0 0 !important; color: var(--ff-muted); font-size: 10px; line-height: 1.55; }
.ff-product-footer { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ff-product-footer strong { font-size: 16px; }
.ff-add { width: 36px; height: 36px; color: #fff; background: var(--ff-red); border: 0; border-radius: 4px; font-size: 20px; }
.ff-add:disabled { background: #aaa; cursor: not-allowed; }
.ff-cart { position: sticky; top: 0; min-height: 680px; padding: 28px 24px; background: #fff; border-left: 1px solid var(--ff-line); }
.ff-cart-title > span { min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; color: #fff; background: var(--ff-red); border-radius: 50%; font-size: 12px; font-weight: 700; }
.ff-cart-empty { padding: 50px 0; color: var(--ff-muted); text-align: center; font-size: 13px; line-height: 1.8; }
.ff-cart-item { padding: 13px 0; border-bottom: 1px solid var(--ff-line); }
.ff-cart-row { align-items: flex-start; }
.ff-cart-row p { margin: 0; font-size: 13px; font-weight: 700; }
.ff-cart-controls { margin-top: 8px; }
.ff-qty { display: flex; align-items: center; gap: 10px; }
.ff-qty button { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; color: var(--ff-ink); background: #fff; border: 1px solid var(--ff-line); border-radius: 3px; font-size: 18px; font-weight: 700; line-height: 1; }
.ff-qty button span { display: block; transform: translateY(-1px); }
.ff-remove, .ff-close { padding: 0; color: var(--ff-muted); background: transparent; border: 0; }
.ff-order-totals { margin-top: 20px; border-top: 2px solid var(--ff-ink); }
.ff-summary-row { padding: 10px 0; border-bottom: 1px solid var(--ff-line); }
.ff-summary-row span { font-size: 12px; font-weight: 700; }
.ff-summary-row small { display: block; color: var(--ff-muted); font-size: 9px; font-weight: 400; }
.ff-summary-row strong { font-size: 14px; }
.ff-total { padding: 18px 0; align-items: flex-end; }
.ff-total span { font-weight: 700; }
.ff-total small { display: block; color: var(--ff-muted); font-size: 9px; font-weight: 400; }
.ff-total strong { font-size: 24px; }
.ff-primary { width: 100%; min-height: 56px; padding: 10px 20px; color: #fff; background: var(--ff-red); border: 0; border-radius: 4px; font-weight: 700; }
.ff-primary small { display: block; margin-top: 2px; font-weight: 400; opacity: .75; }
.ff-primary:disabled { background: #aaa; cursor: not-allowed; }
.ff-caption { margin: 13px 0 0; color: var(--ff-muted); font-size: 10px; line-height: 1.6; }
.ff-customer { position: fixed; inset: 0; z-index: 100000; padding: 40px 20px; overflow-y: auto; background: rgba(20, 18, 16, .72); }
.ff-customer-inner { width: min(760px, 100%); margin: 0 auto; padding: 28px; background: #fff; border-radius: 6px; }
.ff-close { width: 36px; height: 36px; font-size: 28px; line-height: 1; }
.ff-form-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.ff-form-grid input, .ff-form-grid textarea { margin: 0 !important; }
.ff-address, .ff-full { grid-column: 1 / -1; }
.ff-consent { margin: 20px 0; display: flex; align-items: flex-start; gap: 8px; font-size: 13px; }
.ff-consent input { margin-top: 3px; }
.ff-submit-message { margin-top: 14px; font-size: 13px; line-height: 1.6; }
.ff-submit-message.success { padding: 12px; color: #145d29; background: #e9f7ed; }
.ff-submit-message.error { padding: 12px; color: #8a1717; background: #fdecec; }

@media (max-width: 1050px) {
  .ff-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .ff-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ff-intro { padding: 26px 16px 20px; }
  .ff-intro h1 { font-size: 25px; }
  .ff-test-badge { position: static; display: inline-block; margin-top: 16px; }
  .ff-settings { padding: 20px 16px; grid-template-columns: 1fr; }
  .ff-layout { display: block; }
  .ff-menu { padding: 24px 16px 110px; }
  .ff-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ff-product-body { padding: 10px; }
  .ff-product h3 { min-height: 50px; font-size: 13px; }
  .ff-cart { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 99999; min-height: 0; padding: 10px 16px; border: 0; border-top: 1px solid var(--ff-line); }
  .ff-cart-title, .ff-cart-empty, #ff-cart-items, .ff-order-totals, .ff-caption { display: none; }
  .ff-form-grid { grid-template-columns: 1fr; }
  .ff-address, .ff-full { grid-column: auto; }
  .ff-customer { padding: 16px 10px; }
  .ff-customer-inner { padding: 20px 16px; }
}

