:root {
  color-scheme: light;

  /* Raw logo colors: sampled from the center of the original color blocks. */
  --logo-green: #8EDF81;
  --logo-blue: #6699FF;
  --logo-red: #FF465A;
  --logo-yellow: #FFDD33;

  /* Background */
  --bg-page: #EFE9DC;
  --bg-surface: #FFFDF7;
  --bg-subtle: #E7DFD0;

  /* Text */
  --text-primary: #202820;
  --text-secondary: #686A62;
  --text-muted: #73756D;
  --text-on-primary: #FFFDF7;

  /* Border */
  --border-default: #CFC5B4;
  --border-strong: #BFB3A0;

  /* UI brand colors: contrast-safe derivatives of the raw logo colors. */
  --brand-blue: #4A6CA6;
  --brand-blue-hover: #436190;
  --brand-blue-soft: #EDF1F8;
  --brand-green: #83CD77;
  --brand-green-soft: #EFF9E6;
  --brand-red: #BC3D49;
  --brand-red-hover: #A63A43;
  --brand-red-soft: #FFE7E4;
  --brand-yellow: #E9CB31;
  --brand-yellow-soft: #FFF6CC;

  /* State */
  --disabled-bg: #C9C5BA;
  --disabled-text: #77736B;
  --focus-ring: var(--brand-blue);
  --image-placeholder: #E0DACD;
  --overlay-scrim: color-mix(in srgb, var(--text-primary) 62%, transparent);
  --shadow: 0 18px 50px color-mix(in srgb, var(--text-primary) 9%, transparent);
  --shadow-soft: 0 8px 28px color-mix(in srgb, var(--text-primary) 5%, transparent);
  --shadow-overlay: 0 14px 42px color-mix(in srgb, var(--text-primary) 24%, transparent);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--bg-page); color: var(--text-primary); }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--brand-blue); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.site-header a, button, input, select { transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus-ring) 28%, transparent); outline-offset: 2px; }
.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; }

.site-header {
  min-height: 76px;
  padding: 14px clamp(20px, 5vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
  color: var(--text-primary);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: .04em; }
.brand small { display: block; margin-top: 2px; color: var(--text-secondary); font-size: .68rem; letter-spacing: .13em; }
.brand-mark { display: grid; place-items: center; width: 42px; aspect-ratio: 1; background: var(--bg-surface); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.site-header nav a { font-size: .86rem; text-decoration: none; white-space: nowrap; }
.site-header nav a:hover { color: var(--brand-blue); }
.nav-active { padding-bottom: 5px; border-bottom: 2px solid var(--brand-blue); color: var(--brand-blue); }
.nav-cart { padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg-surface); color: var(--text-primary); font-size: .82rem; text-decoration: none; cursor: pointer; }
.nav-cart:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.nav-cart span { display: inline-grid; min-width: 20px; min-height: 20px; margin-left: 5px; place-items: center; border-radius: 50%; background: var(--brand-red); color: var(--text-on-primary); font-size: .68rem; }
.nav-member { padding: 8px 10px; border-radius: 999px; }

main { width: min(1440px, 100%); margin: 0 auto; }
.intro {
  margin: 0;
  min-height: 190px;
  padding: 32px clamp(20px, 7vw, 100px) 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 79% 22%, var(--brand-yellow-soft) 0 9%, transparent 9.5%),
    radial-gradient(circle at 69% 112%, var(--brand-blue-soft) 0 12%, transparent 12.5%),
    var(--bg-subtle);
}
.eyebrow { margin: 0 0 12px; color: var(--brand-blue); font-size: .78rem; letter-spacing: .17em; font-weight: 800; }
.intro h1 { margin: 0; max-width: 700px; font-size: clamp(2.35rem, 5vw, 4.2rem); line-height: .98; letter-spacing: -.06em; }
.intro p:last-child { max-width: 590px; margin: 13px 0 0; color: var(--text-secondary); font-size: .92rem; line-height: 1.7; }
.bean-count { flex: 0 0 auto; width: 94px; aspect-ratio: 1; border: 1px solid var(--border-strong); border-radius: 50%; display: grid; place-content: center; text-align: center; }
.bean-count strong { font-size: 2rem; line-height: 1; color: var(--brand-blue); }
.bean-count span { margin-top: 6px; font-size: .76rem; color: var(--text-secondary); }

.taste-section { padding: 22px clamp(20px, 5vw, 72px) 26px; background: var(--bg-surface); border-bottom: 1px solid var(--border-default); scroll-margin-top: 12px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.section-heading h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 2rem); }
.section-heading span { color: var(--text-secondary); font-size: .86rem; }
.taste-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.taste-card { --taste-accent: var(--brand-blue); --taste-soft: var(--brand-blue-soft); position: relative; min-height: 116px; padding: 14px 38px 14px 14px; display: flex; flex-direction: column; border: 1px solid var(--border-default); border-radius: 3px; text-decoration: none; background: var(--bg-surface); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.taste-card:nth-child(2) { --taste-accent: var(--brand-green); --taste-soft: var(--brand-green-soft); }
.taste-card:nth-child(3) { --taste-accent: var(--brand-yellow); --taste-soft: var(--brand-yellow-soft); }
.taste-card:nth-child(4) { --taste-accent: var(--brand-red); --taste-soft: var(--brand-red-soft); }
.taste-card:nth-child(5) { --taste-accent: var(--brand-blue); --taste-soft: var(--brand-blue-soft); }
.taste-card::after { content: "↗"; position: absolute; top: 12px; right: 14px; color: var(--taste-accent); font-size: 1rem; font-weight: 800; transition: transform .18s ease; }
.taste-card:hover, .taste-card:focus-visible { transform: translateY(-3px); border-color: var(--taste-accent); background: var(--taste-soft); box-shadow: 0 10px 24px color-mix(in srgb, var(--taste-accent) 14%, transparent); outline: none; }
.taste-card:hover::after, .taste-card:focus-visible::after { transform: translate(2px, -2px); }
.taste-card.is-active { border-color: var(--taste-accent); background: var(--taste-soft); box-shadow: inset 0 0 0 1px var(--taste-accent); }
.taste-card.is-active::after { content: "✓"; transform: none; }
.taste-number { margin-bottom: 10px; color: var(--text-muted); font-family: ui-monospace, monospace; font-size: .7rem; }
.taste-card strong { font-size: 1.05rem; }
.taste-card small { margin-top: 5px; min-width: 140px; color: var(--text-secondary); line-height: 1.4; }

.catalog-layout { padding: 28px clamp(20px, 5vw, 72px) 84px; display: grid; grid-template-columns: minmax(220px, 280px) 1fr; gap: clamp(28px, 5vw, 68px); align-items: start; }
.filters { position: sticky; top: 20px; }
.filter-title { margin-bottom: 22px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.filter-title h2 { margin: 0; font-size: 1.25rem; }
.filter-title a { color: var(--brand-red); font-size: .78rem; }
.filters label > span, .filters legend { display: block; margin-bottom: 8px; color: var(--text-secondary); font-size: .78rem; font-weight: 700; letter-spacing: .03em; }
.search-field { display: block; margin-bottom: 18px; }
input[type="search"], select { width: 100%; min-height: 46px; padding: 0 13px; border: 1px solid var(--border-default); border-radius: 2px; background: var(--bg-surface); color: var(--text-primary); }
input:focus, select:focus { outline: 3px solid color-mix(in srgb, var(--focus-ring) 28%, transparent); border-color: var(--focus-ring); }
.select-grid { display: grid; gap: 16px; }
.filters fieldset { margin: 22px 0; padding: 20px 0; border: 0; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 12px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-blue); }
.check > span { margin: 0 !important; color: var(--text-primary) !important; font-size: .92rem !important; font-weight: 500 !important; }
.primary-button { min-height: 46px; padding: 0 20px; display: inline-grid; place-items: center; border: 0; border-radius: 2px; background: var(--brand-blue); color: var(--text-on-primary); text-decoration: none; font-weight: 700; cursor: pointer; }
.filters .primary-button { width: 100%; }
.primary-button:hover { background: var(--brand-blue-hover); }
.primary-button[aria-disabled="true"] { background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; pointer-events: none; }
.mobile-tools, .filter-backdrop, .mobile-filter-heading, .mobile-label { display: none; }
.filter-actions > a { display: none; }
.catalog-results { min-width: 0; overflow: clip; }
.results-heading { min-height: 30px; margin-bottom: 8px; display: flex; align-items: baseline; gap: 5px; color: var(--text-secondary); font-size: .78rem; }
.results-heading strong { color: var(--text-primary); font-size: 1rem; }
.active-filters { margin-bottom: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.active-filters a { padding: 7px 10px; border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-surface); color: var(--text-primary); font-size: .76rem; font-weight: 700; text-decoration: none; }
.active-filters a:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.active-filters .clear-all { padding-inline: 4px; border-color: transparent; background: transparent; color: var(--brand-red); }
.active-filters .clear-all:hover { color: var(--brand-red-hover); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 18px; }
.product-card { min-width: 0; overflow: clip; display: flex; flex-direction: column; border: 1px solid var(--border-default); border-radius: 4px; background: var(--bg-surface); box-shadow: var(--shadow-soft); }
.product-image { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--image-placeholder); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-image img { transform: scale(1.025); }
.badge { padding: 5px 8px; border-radius: 999px; background: var(--brand-yellow); color: var(--text-primary); font-size: .68rem; font-weight: 700; }
.badge-ready { background: var(--brand-green); color: var(--text-primary); }
.badge-preorder { background: var(--brand-blue-soft); color: var(--brand-blue); }
.badge-sale { background: var(--brand-red); color: var(--text-on-primary); }
.badge-neutral { background: var(--bg-subtle); color: var(--text-secondary); }
.product-body { flex: 1; padding: 18px; display: flex; flex-direction: column; }
.product-card h2 { margin: 0; font-size: 1.38rem; line-height: 1.25; }
.product-card h2 a { text-decoration: none; }
.meta { margin: 8px 0 0; color: var(--text-secondary); font-size: .78rem; }
.flavor { min-height: 48px; margin: 15px 0 12px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.6; font-size: .92rem; }
.card-badges { min-height: 25px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-price { margin-top: auto; padding-top: 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border-default); }
.card-price span { color: var(--text-secondary); font-size: .78rem; }
.card-price strong { font-size: 1.28rem; }
.add-cart-button { width: 100%; min-height: 44px; margin-top: 13px; border: 1px solid var(--brand-blue); border-radius: 2px; background: var(--brand-blue); color: var(--text-on-primary); font-weight: 800; cursor: pointer; transition: background .18s ease, color .18s ease; }
.add-cart-button:hover { border-color: var(--brand-blue-hover); background: var(--brand-blue-hover); color: var(--text-on-primary); }
.add-cart-button.is-added { border-color: var(--brand-green); background: var(--brand-green); color: var(--text-primary); }
.add-cart-button:disabled { border-color: var(--disabled-bg); background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }
.empty { min-height: 350px; padding: 48px 24px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed var(--border-strong); background: var(--bg-surface); }
.empty strong { font-size: 1.25rem; }
.empty p { margin: 10px 0 22px; color: var(--text-secondary); }

.product-page { padding: 0 clamp(20px, 5vw, 72px) 88px; }
.breadcrumb { padding: 24px 0; display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: .8rem; }
.breadcrumb a { color: var(--brand-blue); font-weight: 800; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span[aria-current="page"] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: clamp(34px, 7vw, 96px); align-items: center; }
.detail-image { overflow: hidden; aspect-ratio: 4 / 3; background: var(--image-placeholder); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-summary h1 { margin: 0; font-size: clamp(2.5rem, 5vw, 4.7rem); line-height: 1; letter-spacing: -.055em; }
.detail-meta { margin: 15px 0 0; color: var(--text-secondary); font-size: .9rem; }
.flavor-panel { margin: 26px 0 0; padding: 20px 0; display: grid; gap: 7px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.flavor-panel span { color: var(--brand-blue); font-size: .76rem; font-weight: 700; }
.flavor-panel strong { font-size: 1.14rem; line-height: 1.7; }
.detail-badges { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 7px; }
.detail-price { margin-top: 24px; display: flex; align-items: baseline; gap: 14px; }
.detail-price span { color: var(--text-muted); font-size: .88rem; }
.detail-price strong { font-size: 1.8rem; }
.variant-field { margin-top: 22px; display: grid; gap: 8px; color: var(--text-secondary); font-size: .82rem; font-weight: 700; }
.variant-field select { max-width: 320px; }
.purchase-controls { margin-top: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.quantity-field { display: grid; gap: 8px; }
.quantity-field > span { color: var(--text-secondary); font-size: .76rem; font-weight: 700; }
.quantity-stepper { display: grid; grid-template-columns: 42px 52px 42px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.quantity-stepper button, .quantity-stepper input { min-width: 0; height: 42px; border: 0; background: transparent; color: var(--text-primary); text-align: center; }
.quantity-stepper button { cursor: pointer; font-size: 1.1rem; }
.quantity-stepper button:hover:not(:disabled) { background: var(--brand-blue-soft); color: var(--brand-blue); }
.quantity-stepper button:disabled { color: var(--disabled-text); cursor: not-allowed; }
.quantity-stepper input { width: 52px; border-inline: 1px solid var(--border-default); appearance: textfield; font-weight: 800; }
.quantity-stepper input::-webkit-inner-spin-button, .quantity-stepper input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.stock { padding: 8px 12px; border: 1px solid var(--border-default); border-radius: 999px; color: var(--text-secondary); font-size: .76rem; font-weight: 800; }
.stock-out { background: var(--disabled-bg); color: var(--disabled-text); }
.detail-add-cart { min-height: 52px; margin-top: 18px; font-size: 1rem; }
.cart-scope-note { margin: 10px 0 0; color: var(--text-secondary); font-size: .75rem; line-height: 1.6; }
.preorder-note { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--brand-blue); background: var(--brand-blue-soft); color: var(--text-primary); font-size: .82rem; line-height: 1.55; }
.coffee-information { margin-top: clamp(56px, 8vw, 100px); padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); gap: clamp(28px, 7vw, 90px); background: var(--bg-subtle); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-default); }
.information-heading p { margin: 0 0 9px; color: var(--brand-blue); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.information-heading h2 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.coffee-information dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 34px; }
.coffee-information dl > div { padding-bottom: 18px; border-bottom: 1px solid var(--border-default); }
.coffee-information .information-wide { grid-column: 1 / -1; }
.coffee-information dt { margin-bottom: 7px; color: var(--text-secondary); font-size: .74rem; font-weight: 700; }
.coffee-information dd { margin: 0; line-height: 1.75; }
.cart-toast { position: fixed; right: 22px; bottom: 22px; z-index: 40; max-width: min(380px, calc(100vw - 40px)); padding: 14px 17px; border-left: 4px solid var(--brand-green); background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-overlay); opacity: 0; transform: translateY(12px); transition: opacity .2s ease, transform .2s ease; }
.cart-toast.is-visible { opacity: 1; transform: translateY(0); }
.cart-toast.is-error { border-left-color: var(--brand-red); }
.cart-page { padding: clamp(38px, 6vw, 78px) clamp(20px, 5vw, 72px) 90px; }
.cart-page-heading { max-width: 680px; margin-bottom: 36px; }
.cart-page-heading > p { margin: 0 0 10px; color: var(--brand-blue); font-size: .7rem; font-weight: 800; letter-spacing: .17em; }
.cart-page-heading h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.cart-page-heading > span { display: block; margin-top: 13px; color: var(--text-secondary); line-height: 1.7; }
.cart-notices { margin-bottom: 18px; padding: 13px 16px; border-left: 4px solid var(--brand-red); background: var(--brand-red-soft); color: var(--brand-red); font-size: .84rem; line-height: 1.6; }
.cart-notices p { margin: 0; }
.cart-notices p + p { margin-top: 5px; }
.cart-loading { min-height: 260px; display: grid; place-items: center; color: var(--text-secondary); }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .75fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cart-items-panel { min-width: 0; }
.cart-items-heading { min-height: 48px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 2px solid var(--brand-blue); }
.cart-items-heading h2, .cart-summary h2 { margin: 0; font-size: 1.14rem; }
.cart-items-heading button, .cart-remove { min-width: 40px; min-height: 40px; border: 0; background: transparent; color: var(--brand-red); font-weight: 800; cursor: pointer; }
.cart-items-heading button:hover, .cart-remove:hover { color: var(--brand-red-hover); }
.cart-items { display: grid; }
.cart-item { padding: 24px 0; display: grid; grid-template-columns: 150px minmax(170px, 1fr) auto; gap: 22px; border-bottom: 1px solid var(--border-default); }
.cart-item-image { display: block; width: 150px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--image-placeholder); }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.cart-item-info h3 { margin: 0; font-size: 1.34rem; line-height: 1.25; }
.cart-item-info h3 a { text-decoration: none; }
.cart-item-meta { margin: 7px 0 0; color: var(--text-secondary); font-size: .78rem; }
.cart-item-spec { margin: 13px 0 0; color: var(--text-secondary); font-size: .8rem; }
.cart-item-unit { margin: 4px 0 0; font-weight: 800; }
.cart-item-status { margin-top: 11px; padding: 5px 8px; border-radius: 999px; background: var(--bg-subtle); color: var(--text-secondary); font-size: .7rem; font-weight: 800; }
.cart-item-status.is-available { background: var(--brand-green-soft); color: var(--text-primary); }
.cart-item-status.is-unavailable { background: var(--brand-red-soft); color: var(--brand-red); }
.cart-item-actions { min-width: 154px; display: grid; justify-items: end; align-content: start; gap: 10px; }
.cart-quantity-label { color: var(--text-secondary); font-size: .72rem; font-weight: 700; }
.cart-item-subtotal { display: grid; justify-items: end; gap: 3px; margin-top: 3px; }
.cart-item-subtotal span { color: var(--text-secondary); font-size: .72rem; }
.cart-item-subtotal strong { font-size: 1.12rem; }
.cart-remove { padding: 8px; font-size: .78rem; }
.cart-summary { position: sticky; top: 22px; padding: 26px; border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: var(--shadow); }
.summary-total { margin-top: 22px; padding: 20px 0; display: flex; align-items: baseline; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.summary-total span { color: var(--text-secondary); font-size: .84rem; }
.summary-total strong { font-size: 1.75rem; }
.cart-summary > p { margin: 18px 0; color: var(--text-secondary); font-size: .8rem; line-height: 1.65; }
.cart-summary .primary-button { width: 100%; }
.cart-summary > small { display: block; margin-top: 10px; color: var(--text-secondary); text-align: center; }
.cart-empty { min-height: 390px; padding: 50px 20px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed var(--border-strong); background: var(--bg-surface); }
.cart-empty > span { display: grid; width: 66px; aspect-ratio: 1; place-items: center; border: 1px solid var(--brand-green); border-radius: 50%; color: var(--text-primary); background: var(--brand-green-soft); font-size: 2rem; }
.cart-empty h2 { margin: 20px 0 0; font-size: 1.5rem; }
.cart-empty p { margin: 9px 0 22px; color: var(--text-secondary); }
.checkout-page { padding: clamp(38px, 6vw, 78px) clamp(20px, 5vw, 72px) 90px; }
.checkout-page-heading { max-width: 760px; margin-bottom: 38px; }
.checkout-page-heading > p { margin: 0 0 10px; color: var(--brand-blue); font-size: .7rem; font-weight: 800; letter-spacing: .17em; }
.checkout-page-heading h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; letter-spacing: -.055em; }
.checkout-page-heading > span { display: block; margin-top: 13px; color: var(--text-secondary); line-height: 1.7; }
.checkout-loading { min-height: 300px; display: grid; place-items: center; color: var(--text-secondary); }
.checkout-empty, .checkout-blocked { min-height: 380px; padding: 50px 20px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed var(--border-strong); background: var(--bg-surface); }
.checkout-empty h2, .checkout-blocked h2 { margin: 0; font-size: 1.55rem; }
.checkout-empty p, .checkout-blocked p { margin: 10px 0 22px; color: var(--text-secondary); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .72fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.checkout-fields { display: grid; gap: 22px; }
.checkout-section { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--border-default); background: var(--bg-surface); }
.checkout-step { margin-bottom: 23px; display: flex; align-items: center; gap: 12px; }
.checkout-step > span { display: grid; width: 34px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--brand-blue); color: var(--text-on-primary); font: 700 .68rem ui-monospace, monospace; }
.checkout-step h2 { margin: 0; font-size: 1.35rem; }
.choice-grid { display: grid; gap: 10px; }
.fulfillment-choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.payment-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-card { position: relative; min-width: 0; cursor: pointer; }
.choice-card > input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.choice-card > span { min-height: 82px; padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 1px solid var(--border-default); background: var(--bg-surface); transition: border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.choice-card strong { font-size: .94rem; }
.choice-card small { color: var(--text-secondary); font-size: .72rem; line-height: 1.45; }
.choice-card:hover > span, .choice-card > input:focus-visible + span { border-color: var(--brand-blue); box-shadow: inset 0 0 0 1px var(--brand-blue); }
.choice-card > input:checked + span { border-color: var(--brand-blue); background: var(--brand-blue-soft); box-shadow: inset 0 0 0 2px var(--brand-blue); }
.checkout-form-stack { display: grid; gap: 16px; }
.checkout-form-field { min-width: 0; display: grid; gap: 8px; }
.checkout-form-field label, .checkout-form-field .field-label { color: var(--text-secondary); font-size: .78rem; font-weight: 700; }
.checkout-form-field > input:not([type="hidden"]), .checkout-form-field > select { width: 100%; min-height: 50px; padding: 0 13px; border: 1px solid var(--border-default); border-radius: 2px; background: var(--bg-surface); color: var(--text-primary); font: inherit; }
.checkout-form-field > input[aria-invalid="true"], .checkout-form-field > select[aria-invalid="true"], .choice-card input[aria-invalid="true"] + span, .secondary-button[aria-invalid="true"] { border-color: var(--brand-red); box-shadow: inset 0 0 0 1px var(--brand-red); }
.field-error { min-height: 18px; margin: 0; color: var(--brand-red); font-size: .76rem; line-height: 1.45; }
.field-error:empty { visibility: hidden; }
.fulfillment-fields { margin-top: 18px; padding: 21px; border-left: 3px solid var(--brand-blue); background: var(--brand-blue-soft); }
.secondary-button { min-height: 44px; padding: 0 17px; display: inline-grid; place-items: center; border: 1px solid var(--brand-blue); border-radius: 2px; background: transparent; color: var(--brand-blue); text-decoration: none; font-weight: 800; cursor: pointer; }
.secondary-button:hover { background: var(--brand-blue-soft); }
.selected-store { margin-bottom: 13px; padding: 14px; display: grid; gap: 4px; border: 1px solid var(--brand-blue); background: var(--bg-surface); }
.selected-store span { color: var(--text-secondary); font-size: .8rem; line-height: 1.5; }
.mock-store-options { margin-top: 12px; display: grid; gap: 8px; }
.mock-store-options > p { margin: 0 0 3px; color: var(--brand-red); font-size: .72rem; }
.mock-store-options > button { padding: 12px 14px; display: grid; gap: 4px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); text-align: left; cursor: pointer; }
.mock-store-options > button:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.mock-store-options > button span { color: var(--text-secondary); font-size: .76rem; }
.payment-note { margin: 13px 0 0; color: var(--text-secondary); font-size: .78rem; line-height: 1.6; }
.checkout-summary { position: sticky; top: 22px; padding: 26px; border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: var(--shadow); }
.checkout-summary h2 { margin: 0; font-size: 1.15rem; }
.checkout-summary-items { margin-top: 20px; padding-block: 15px; display: grid; gap: 11px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); }
.checkout-summary-item { display: flex; justify-content: space-between; gap: 16px; font-size: .8rem; }
.checkout-summary-item span { color: var(--text-secondary); }
.checkout-summary dl { margin: 14px 0 0; display: grid; gap: 12px; }
.checkout-summary dl > div { display: flex; justify-content: space-between; gap: 18px; }
.checkout-summary dt { color: var(--text-secondary); font-size: .8rem; }
.checkout-summary dd { margin: 0; text-align: right; font-size: .82rem; font-weight: 800; }
.checkout-summary .checkout-total { margin-top: 5px; padding-top: 17px; align-items: baseline; border-top: 1px solid var(--border-default); }
.checkout-summary .checkout-total dd { font-size: 1.25rem; }
.checkout-submit { width: 100%; margin-top: 22px; }
.checkout-summary > small { display: block; margin-top: 10px; color: var(--text-secondary); text-align: center; line-height: 1.5; }
.checkout-submit-error { margin-top: 16px; padding: 11px; border-left: 3px solid var(--brand-red); background: var(--brand-red-soft); color: var(--brand-red); font-size: .78rem; line-height: 1.5; }
.order-success-page { padding: clamp(38px, 6vw, 78px) clamp(20px, 5vw, 72px) 90px; }
.order-success-loading { min-height: 420px; display: grid; place-items: center; color: var(--text-secondary); }
.order-success-missing { min-height: 420px; display: grid; place-content: center; justify-items: center; text-align: center; }
.order-success-missing h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); }
.order-success-missing p { margin: 12px 0 24px; color: var(--text-secondary); }
.order-confirmation { max-width: 760px; margin: 0 auto; padding: clamp(30px, 6vw, 64px); border: 1px solid var(--border-default); background: var(--bg-surface); text-align: center; box-shadow: var(--shadow); }
.confirmation-mark { display: grid; width: 68px; aspect-ratio: 1; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: var(--brand-green); color: var(--text-primary); font-size: 1.8rem; }
.order-confirmation > p:first-of-type { margin: 0; color: var(--brand-red); font-size: .68rem; font-weight: 800; letter-spacing: .16em; }
.order-confirmation h1 { margin: 9px 0 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.confirmation-number { margin: 24px 0; padding: 18px; display: grid; gap: 5px; background: var(--bg-subtle); }
.confirmation-number span { color: var(--text-secondary); font-size: .75rem; }
.confirmation-number strong { font: 800 1.08rem ui-monospace, monospace; }
.order-confirmation > p:not(:first-of-type) { color: var(--text-secondary); line-height: 1.7; }
.order-confirmation dl { margin: 24px 0; display: grid; text-align: left; }
.order-confirmation dl > div { padding: 12px 0; display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border-default); }
.order-confirmation dt { color: var(--text-secondary); }
.order-confirmation dd { margin: 0; text-align: right; font-weight: 800; }
.order-confirmation .bank-transfer-details { align-items: flex-start; }
.order-confirmation .bank-transfer-details dd { white-space: pre-wrap; line-height: 1.75; }
.success-order-items { margin: 24px 0 8px; padding-block: 12px; display: grid; gap: 10px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); text-align: left; }
.success-order-item { display: flex; justify-content: space-between; gap: 18px; }
.success-order-item span { color: var(--text-secondary); }
.success-order-item strong { white-space: nowrap; }
.confirmation-actions { display: flex; justify-content: center; gap: 10px; }
.page-error { margin: 80px clamp(20px, 5vw, 72px); }
footer { padding: 26px clamp(20px, 5vw, 72px); display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border-default); color: var(--text-secondary); font-size: .76rem; }

@media (max-width: 1080px) {
  .site-header nav { gap: 14px; }
  .site-header nav a { font-size: .78rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .taste-grid { grid-template-columns: repeat(5, 200px); }
}

@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 12px 18px; }
  .brand-mark { width: 36px; }
  .site-header nav { display: flex; }
  .site-header nav { gap: 7px; }
  .site-header nav a:not(.nav-cart):not(.nav-member) { display: none; }
  .nav-member { display: inline-flex; min-height: 42px; align-items: center; padding-inline: 10px; border: 1px solid var(--border-strong); }
  .intro { min-height: 235px; align-items: flex-start; flex-direction: column; padding: 38px 20px 26px; }
  .intro h1 { font-size: clamp(2.35rem, 12vw, 3.4rem); }
  .bean-count { width: auto; height: auto; aspect-ratio: auto; border: 0; display: flex; align-items: baseline; gap: 7px; text-align: left; }
  .bean-count strong { font-size: 1.5rem; }
  .taste-section { padding: 26px 20px; }
  .taste-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow-x: visible; padding-bottom: 0; }
  .taste-card { min-width: 0; min-height: 118px; padding: 13px 32px 13px 13px; }
  .taste-card:nth-child(5) { grid-column: 1 / -1; min-height: 100px; }
  .taste-card small { min-width: 0; font-size: .82rem; }
  .mobile-tools { padding: 14px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; border-bottom: 1px solid var(--border-default); background: var(--bg-page); }
  .mobile-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .mobile-search input { min-height: 44px; border-right: 0; }
  .mobile-search button, .mobile-filter-button { min-height: 44px; padding: 0 13px; border: 1px solid var(--brand-blue); background: var(--brand-blue); color: var(--text-on-primary); font-weight: 800; cursor: pointer; }
  .mobile-filter-button { background: var(--bg-surface); color: var(--brand-blue); }
  body.filter-is-open { overflow: hidden; }
  .filter-backdrop { position: fixed; inset: 0; z-index: 20; width: 100%; height: 100%; border: 0; background: var(--overlay-scrim); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility .18s ease; }
  .filter-backdrop.is-open { display: block; opacity: 1; visibility: visible; }
  .responsive-filter { position: fixed; inset: auto 0 0; z-index: 21; width: 100%; max-height: 86vh; padding: 12px 22px 22px; overflow-y: auto; border-radius: 18px 18px 0 0; background: var(--bg-surface); color: var(--text-primary); box-shadow: 0 -18px 60px color-mix(in srgb, var(--text-primary) 20%, transparent); transform: translateY(105%); visibility: hidden; transition: transform .22s ease, visibility .22s ease; }
  .responsive-filter.is-open { transform: translateY(0); visibility: visible; }
  .dialog-handle { position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; border-radius: 999px; background: var(--border-strong); transform: translateX(-50%); }
  .mobile-filter-heading { padding: 18px 0 4px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
  .mobile-filter-heading > div:nth-child(2) { display: grid; gap: 3px; }
  .mobile-filter-heading h2 { margin: 0; font-size: 1.35rem; }
  .mobile-filter-heading span { color: var(--text-secondary); font-size: .76rem; }
  .mobile-filter-heading button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--bg-subtle); color: var(--text-primary); font-size: 1.6rem; cursor: pointer; }
  .responsive-filter .filter-title, .responsive-filter .search-field { display: none; }
  .responsive-filter .select-grid { margin-top: 18px; }
  .filter-actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; }
  .filter-actions > a { display: inline; color: var(--brand-red); font-size: .84rem; font-weight: 800; }
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .catalog-layout { padding: 20px 20px 64px; grid-template-columns: 1fr; }
  .select-grid { grid-template-columns: repeat(2, 1fr); }
  .select-grid label:last-child { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: 1fr; }
  .product-page { padding: 0 20px 60px; }
  .breadcrumb { padding: 18px 0; }
  .detail { grid-template-columns: 1fr; gap: 28px; }
  .detail-image { aspect-ratio: 4 / 3; }
  .detail-summary h1 { font-size: clamp(2.4rem, 13vw, 3.55rem); }
  .coffee-information { margin: 54px -20px 0; padding: 34px 20px; grid-template-columns: 1fr; }
  .coffee-information dl { grid-template-columns: 1fr 1fr; }
  .cart-toast { right: 20px; bottom: 20px; }
  .cart-page { padding: 34px 20px 60px; }
  .cart-page-heading { margin-bottom: 27px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-item { grid-template-columns: 105px minmax(0, 1fr); gap: 15px; }
  .cart-item-image { width: 105px; }
  .cart-item-actions { grid-column: 1 / -1; min-width: 0; padding-left: 120px; display: grid; grid-template-columns: auto 1fr auto; align-items: end; justify-items: start; }
  .cart-item-subtotal { justify-self: end; }
  .cart-remove { grid-column: 1 / -1; }
  .cart-summary { position: static; }
  .checkout-page { padding: 34px 20px 60px; }
  .checkout-page-heading { margin-bottom: 27px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .fulfillment-choices, .payment-choices { grid-template-columns: 1fr; }
  .choice-card > span { min-height: 72px; }
  .checkout-summary { position: static; }
}

@media (max-width: 420px) {
  .select-grid { grid-template-columns: 1fr; }
  .select-grid label:last-child { grid-column: auto; }
  .coffee-information dl { grid-template-columns: 1fr; }
  .coffee-information .information-wide { grid-column: auto; }
  .purchase-controls { align-items: flex-start; flex-direction: column; gap: 14px; }
  .cart-item-actions { padding-left: 0; }
  .checkout-section { padding: 21px 17px; }
  .order-success-page { padding-inline: 20px; }
  .confirmation-actions { align-items: stretch; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Local product administration reuses the public design tokens. */
.admin-body { min-width: 320px; }
.admin-header { min-height: 76px; padding: 14px clamp(20px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--border-default); background: var(--bg-surface); }
.admin-header-actions { display: flex; align-items: center; gap: 14px; }
.admin-header-actions a { color: var(--brand-blue); font-weight: 800; text-decoration: none; }
.admin-local-badge { padding: 6px 9px; border-radius: 999px; background: var(--brand-yellow-soft); color: var(--text-primary); font-size: .72rem; font-weight: 800; }
.admin-main { width: min(1440px, 100%); min-height: calc(100vh - 76px); padding: 38px clamp(20px, 5vw, 72px) 80px; }
.admin-page-heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.admin-page-heading h1 { margin: 0; font-size: clamp(2.2rem, 5vw, 4rem); line-height: 1; letter-spacing: -.05em; }
.admin-page-heading p:last-child { margin: 11px 0 0; color: var(--text-secondary); }
.policy-content { text-align: left; line-height: 1.85; }
.policy-content h2 { margin: 30px 0 8px; font-size: 1.25rem; }
.policy-content ul { margin: 8px 0; padding-left: 1.35rem; }
.policy-content li + li { margin-top: 8px; }
.checkout-policy-notice { font-size: .86rem; line-height: 1.65; color: var(--text-secondary); }
.checkout-policy-notice a { margin: 0 .2rem; }
.admin-filter-panel { margin-bottom: 24px; padding: 20px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.admin-filter-panel form { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr)) auto auto; gap: 12px; align-items: end; }
.admin-filter-panel label, .admin-adjustment-controls label { display: grid; gap: 7px; color: var(--text-secondary); font-size: .76rem; font-weight: 800; }
.admin-filter-panel input, .admin-filter-panel select, .admin-field input, .admin-field textarea, .admin-field select, .admin-adjustment-controls input, .admin-adjustment-controls select { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--border-default); border-radius: 2px; background: var(--bg-surface); color: var(--text-primary); }
.admin-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.admin-product-card { min-width: 0; padding: 20px; display: grid; gap: 18px; border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: var(--shadow-soft); }
.admin-product-card-main { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.admin-product-card h2 { margin: 3px 0 7px; font-size: 1.28rem; }
.admin-product-card p { margin: 0; color: var(--text-secondary); }
.admin-card-kicker { margin: 0; color: var(--brand-blue) !important; font: 800 .68rem ui-monospace, monospace; letter-spacing: .08em; }
.admin-card-meta { padding-block: 13px; display: flex; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--border-default); border-bottom: 1px solid var(--border-default); color: var(--text-secondary); font-size: .76rem; }
.admin-status { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.admin-status-published { background: var(--brand-green-soft); color: var(--text-primary); }
.admin-status-unpublished { background: var(--brand-yellow-soft); color: var(--text-primary); }
.admin-status-archived { background: var(--brand-red-soft); color: var(--brand-red); }
.admin-breadcrumb { margin-bottom: 24px; display: flex; gap: 9px; color: var(--text-secondary); font-size: .8rem; }
.admin-breadcrumb a { color: var(--brand-blue); }
.admin-editor-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .7fr); gap: 24px; align-items: start; }
.admin-editor-main, .admin-editor-side { min-width: 0; display: grid; gap: 24px; }
.admin-editor-side { position: sticky; top: 18px; }
.admin-section, .admin-inventory-card { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--border-default); background: var(--bg-surface); box-shadow: var(--shadow-soft); }
.admin-section-heading { margin-bottom: 20px; display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.admin-section-heading h2, .admin-section-heading h3 { margin: 3px 0 0; }
.admin-section-heading > span { color: var(--text-secondary); font-size: .76rem; }
.admin-section-title { margin-bottom: 14px; }
.admin-section-title h2 { margin: 0; }
.admin-section-title p { margin: 6px 0 0; color: var(--text-secondary); }
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-field { min-width: 0; display: grid; gap: 7px; color: var(--text-secondary); font-size: .78rem; font-weight: 800; }
.admin-field textarea { min-height: 112px; resize: vertical; font: inherit; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-field small { min-height: 17px; color: var(--brand-red); font-weight: 600; }
.admin-check { min-height: 50px; display: flex; align-items: center; gap: 9px; color: var(--text-primary); cursor: pointer; }
.admin-check input { width: 21px; height: 21px; accent-color: var(--brand-blue); }
.admin-readonly-grid { margin-bottom: 17px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.admin-readonly-grid span { display: grid; gap: 4px; color: var(--text-secondary); font-size: .72rem; }
.admin-readonly-grid code { overflow-wrap: anywhere; color: var(--text-primary); }
.admin-variant-grid, .admin-inventory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-inventory-shared { grid-column: 1 / -1; }
.admin-inventory-card { display: grid; gap: 18px; }
.admin-inventory-card h3 { margin: 3px 0 5px; }
.admin-inventory-card > div > strong { font-size: 1.65rem; }
.admin-theoretical-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-theoretical-grid span { padding: 12px; display: grid; gap: 4px; border: 1px solid var(--border-default); background: var(--bg-subtle); }
.admin-theoretical-grid small { color: var(--text-secondary); }
.admin-adjustment-controls { display: grid; grid-template-columns: minmax(120px, .6fr) minmax(160px, 1fr); gap: 12px; align-items: start; }
.admin-form-message { margin: 14px 0; padding: 11px 13px; border-left: 3px solid var(--brand-red); background: var(--brand-red-soft); color: var(--brand-red); font-size: .8rem; line-height: 1.5; }
.admin-form-message[data-kind="info"] { border-color: var(--brand-blue); background: var(--brand-blue-soft); color: var(--text-primary); }
.admin-managed-form > .primary-button { margin-top: 16px; }
.admin-image-editor { display: grid; gap: 16px; }
.admin-image-editor img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--image-placeholder); }
.admin-image-editor p { color: var(--text-secondary); font-size: .76rem; line-height: 1.5; }
.admin-adjustment-list { margin: 0; padding: 0; display: grid; list-style: none; }
.admin-adjustment-list li { padding: 11px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--border-default); }
.admin-adjustment-list div { display: grid; gap: 3px; }
.admin-adjustment-list span, .admin-adjustment-list time { color: var(--text-secondary); font-size: .72rem; }
.admin-empty { min-height: 320px; padding: 40px 20px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px dashed var(--border-strong); background: var(--bg-surface); }
.admin-empty p { color: var(--text-secondary); }
.admin-toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; max-width: min(390px, calc(100vw - 40px)); padding: 14px 18px; background: var(--brand-green-soft); border: 1px solid var(--brand-green); color: var(--text-primary); box-shadow: var(--shadow-overlay); }
.admin-confirm-dialog { width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border-strong); background: var(--bg-surface); color: var(--text-primary); box-shadow: var(--shadow-overlay); }
.admin-confirm-dialog::backdrop { background: var(--overlay-scrim); }
.admin-confirm-dialog form { padding: 24px; }
.admin-confirm-dialog h2 { margin: 0 0 18px; }
.admin-diff-row { padding: 11px 0; display: grid; grid-template-columns: minmax(120px, .45fr) 1fr; gap: 15px; border-bottom: 1px solid var(--border-default); }
.admin-diff-row span { overflow-wrap: anywhere; color: var(--text-secondary); }
.admin-dialog-note { color: var(--text-secondary); font-size: .78rem; }
.admin-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }

@media (max-width: 1080px) {
  .admin-filter-panel form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-editor-layout { grid-template-columns: 1fr; }
  .admin-editor-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .admin-header { min-height: 66px; padding: 12px 18px; }
  .admin-header-actions a { display: none; }
  .admin-main { padding: 30px 18px 64px; }
  .admin-page-heading { align-items: stretch; flex-direction: column; }
  .admin-filter-panel form, .admin-product-grid, .admin-form-grid, .admin-variant-grid, .admin-inventory-grid, .admin-editor-side { grid-template-columns: 1fr; }
  .admin-inventory-shared, .admin-field-wide { grid-column: auto; }
  .admin-theoretical-grid { grid-template-columns: 1fr; }
  .admin-adjustment-controls { grid-template-columns: 1fr; }
  .admin-readonly-grid { grid-template-columns: 1fr; }
  .admin-edit-heading .secondary-button { width: 100%; }
  .admin-managed-form > .primary-button { width: 100%; }
  .admin-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .admin-dialog-actions > * { width: 100%; }
}

/* Phase 2C-2 merchandising administration. */
.admin-warning, .admin-selection-warning { padding: 11px 13px; border-left: 3px solid var(--brand-yellow); background: var(--brand-yellow-soft); color: var(--text-primary); font-size: .8rem; line-height: 1.55; }
.admin-category-grid { margin-bottom: 24px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.admin-category-card { min-width: 0; padding: 16px; display: flex; align-items: start; gap: 11px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); text-decoration: none; }
.admin-category-card > span { flex: 0 0 auto; display: grid; width: 28px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--brand-blue-soft); color: var(--brand-blue); font: 800 .7rem ui-monospace, monospace; }
.admin-category-card h2 { margin: 1px 0 6px; font-size: 1rem; }
.admin-category-card p { margin: 0; color: var(--text-secondary); font-size: .72rem; line-height: 1.5; }
.admin-category-card:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.admin-category-card.is-active { border-color: var(--brand-blue); background: var(--brand-blue-soft); box-shadow: inset 0 0 0 1px var(--brand-blue); }
.admin-merch-editor { padding: clamp(20px, 3vw, 30px); border: 1px solid var(--border-default); background: var(--bg-surface); }
.admin-merch-list { margin: 18px 0; display: grid; gap: 9px; }
.admin-merch-item { min-width: 0; padding: 13px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.admin-merch-select { min-width: 0; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.admin-merch-select input { flex: 0 0 auto; width: 22px; height: 22px; accent-color: var(--brand-blue); }
.admin-merch-select > span { min-width: 0; display: grid; gap: 4px; }
.admin-merch-select b { overflow-wrap: anywhere; }
.admin-merch-select small { color: var(--text-secondary); line-height: 1.45; }
.admin-merch-order { display: grid; grid-template-columns: minmax(58px, auto) 44px 44px; align-items: center; gap: 7px; }
.admin-merch-order > span { color: var(--text-secondary); font-size: .72rem; font-weight: 800; text-align: right; }
.admin-merch-order button { min-width: 44px; padding: 0; font-size: 1rem; }
.admin-merch-order button:disabled { border-color: var(--disabled-bg); background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }

@media (max-width: 1080px) {
  .admin-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .admin-header { align-items: stretch; flex-direction: column; }
  .admin-header-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .admin-header-actions a { min-height: 42px; padding: 7px; display: grid; place-items: center; border: 1px solid var(--border-default); background: var(--bg-surface); font-size: .74rem; text-align: center; }
  .admin-header-actions a[href="/coffee"], .admin-header-actions .admin-local-badge { display: none; }
  .admin-category-grid { grid-template-columns: 1fr; }
  .admin-merch-item { grid-template-columns: 1fr; }
  .admin-merch-order { grid-template-columns: 1fr 48px 48px; }
  .admin-merch-order > span { text-align: left; }
}

/* Minimal order operations reuse the established warm surfaces and brand tokens. */
.admin-order-page { max-width: 1040px; margin: 0 auto; display: grid; gap: 20px; }
.admin-order-page h1 { margin: 0; }
.admin-order-search { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.admin-order-search label { width: 100%; }
.admin-order-search input { flex: 1 1 240px; min-height: 46px; padding: 8px 12px; }
.admin-order-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-order-card, .admin-order-panel { min-width: 0; padding: 20px; display: grid; gap: 10px; border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); }
.admin-order-card { text-decoration: none; }
.admin-order-card:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.admin-order-card span, .admin-order-card small { overflow-wrap: anywhere; color: var(--text-secondary); }
.admin-order-panel h2 { margin: 0; }
.admin-order-panel p { margin: 0; overflow-wrap: anywhere; }
.admin-order-panel input { width: 100%; min-height: 46px; padding: 8px 12px; }
.admin-order-panel textarea, .admin-order-panel select, .checkout-bind-placeholder textarea,
.member-page [data-member-order-detail] textarea { width: 100%; min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--border-default); background: var(--bg-surface); color: var(--text-primary); font: inherit; }
.admin-order-panel textarea, .checkout-bind-placeholder textarea,
.member-page [data-member-order-detail] textarea { min-height: 90px; resize: vertical; }
.admin-order-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-order-actions button { min-height: 44px; }
.admin-order-page [role="alert"] { color: var(--brand-red); }
.checkout-member-choice { margin-bottom: 20px; }
.checkout-member-choice h2 { margin-top: 0; }
.checkout-member-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.checkout-member-options > div, .checkout-bind-placeholder { min-width: 0; padding: 16px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.checkout-member-options p, .checkout-bind-placeholder p, .checkout-help { color: var(--text-secondary); line-height: 1.55; }
.checkout-member-options .primary-button { display: inline-grid; place-items: center; }
.checkout-member-options button:disabled, .checkout-bind-placeholder button:disabled { border-color: var(--disabled-bg); background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }
.checkout-payment-summary { padding: 18px; border-left: 4px solid var(--brand-blue); background: var(--brand-blue-soft); font-weight: 800; line-height: 1.6; }
.checkout-bind-placeholder { margin: 16px 0; text-align: left; }
.checkout-bind-placeholder h2 { margin-top: 0; }
.member-order-button { width: 100%; margin-top: 8px; text-align: left; overflow-wrap: anywhere; }
.member-page [data-member-order-detail] { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-default); text-align: left; }
@media (max-width: 760px) {
  .checkout-member-options { grid-template-columns: 1fr; }
  .checkout-member-options .primary-button { width: 100%; }
  .admin-order-list { grid-template-columns: 1fr; }
  .admin-order-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .admin-order-actions button { min-width: 0; white-space: normal; }
}

/* V1 public content pages extend the established brand system without changing the catalog UI. */
.home-hero, .content-hero { margin: 0 auto; width: min(1180px, calc(100% - 40px)); }
.home-hero { min-height: 500px; padding: 78px 64px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); align-items: center; gap: 48px; background: var(--brand-blue); color: #fff; }
.home-hero h1, .content-hero h1 { margin: 10px 0 18px; max-width: 850px; font-size: clamp(2.6rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.055em; }
.home-hero p:not(.eyebrow), .content-hero > p:last-child { max-width: 680px; font-size: 1.08rem; line-height: 1.8; }
.home-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.home-hero .primary-button { background: #fff; color: var(--brand-blue); }
.home-hero .secondary-button { border-color: rgba(255,255,255,.55); color: #fff; }
.home-hero-mark { aspect-ratio: 1; padding: 28px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(255,255,255,.6); color: #fff; }
.home-hero-mark span { font-size: clamp(2.5rem, 5vw, 5.25rem); font-weight: 950; line-height: .82; letter-spacing: -.07em; }
.home-hero-mark small { margin-top: 28px; font-weight: 900; letter-spacing: .24em; }
.home-taste, .home-products, .home-trust, .story-grid, .process-section, .brand-spirit, .topic-grid, .brew-note, .faq-list, .faq-contact { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.home-products { margin-top: 72px; }
.home-products .section-heading > div h2, .process-section .section-heading h2 { margin: 3px 0 0; }
.home-products .section-heading a, .product-trust a { color: var(--brand-blue); font-weight: 800; }
.home-trust, .brew-note { margin-top: 72px; padding: 36px 40px; display: grid; grid-template-columns: 1fr 1.15fr auto; gap: 30px; align-items: center; border: 1px solid var(--border-default); background: var(--bg-surface); }
.home-trust h2, .brew-note h2 { margin: 5px 0 0; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.home-trust > p, .brew-note > p { margin: 0; color: var(--text-secondary); line-height: 1.75; }
.product-trust { margin-top: 56px; padding: 42px; display: grid; grid-template-columns: .9fr 1.4fr; gap: 50px; color: #fff; background: var(--brand-blue); }
.product-trust h2 { margin: 6px 0 14px; font-size: clamp(1.8rem, 3vw, 2.7rem); }
.product-trust p { line-height: 1.7; color: rgba(255,255,255,.8); }
.product-trust a { color: #fff; }
.product-trust ol, .process-section ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 1px; background: rgba(255,255,255,.2); }
.product-trust li, .process-section li { padding: 20px; display: grid; grid-template-columns: 42px 1fr; gap: 3px 12px; background: var(--brand-blue); }
.product-trust li span, .process-section li span { grid-row: span 2; font-weight: 900; opacity: .65; }
.product-trust li small { color: rgba(255,255,255,.7); }
.content-hero { padding: 92px 0 72px; border-bottom: 1px solid var(--border-default); }
.content-hero.compact { padding-bottom: 50px; }
.content-hero h1 { color: var(--text-primary); font-size: clamp(2.4rem, 5vw, 4.8rem); }
.story-grid { padding: 64px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.story-grid article, .topic-grid article { padding: 30px; border: 1px solid var(--border-default); background: var(--bg-surface); }
.story-grid article > span, .topic-grid article > span { color: var(--brand-blue); font-weight: 900; }
.story-grid h2, .topic-grid h2 { margin: 24px 0 10px; }
.story-grid p, .topic-grid p { color: var(--text-secondary); line-height: 1.75; }
.process-section { padding: 64px 0; }
.process-section ol { margin-top: 24px; grid-template-columns: repeat(4, 1fr); background: var(--border-default); }
.process-section li { min-height: 180px; grid-template-columns: 1fr; background: var(--bg-surface); }
.process-section li small { color: var(--text-secondary); line-height: 1.5; }
.brand-spirit { margin-top: 40px; padding: 48px; display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; align-items: center; color: #fff; background: var(--brand-red); }
.brand-spirit > p { margin: 0; font-size: clamp(2rem, 4vw, 4rem); font-weight: 900; line-height: 1.05; }
.brand-spirit h2 { margin-top: 0; }
.brand-spirit .primary-button { background: #fff; color: var(--brand-red); }
.topic-grid { padding: 64px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.brew-note { margin-bottom: 72px; }
.faq-list { padding: 44px 0; }
.faq-list details { border-bottom: 1px solid var(--border-default); }
.faq-list summary { padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 1.12rem; font-weight: 800; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list summary span { transition: transform .2s ease; }
.faq-list details p { max-width: 820px; margin: -4px 0 26px; color: var(--text-secondary); line-height: 1.75; }
.faq-contact { margin-bottom: 72px; padding: 32px 36px; border: 1px solid var(--border-default); background: var(--bg-surface); }

@media (max-width: 800px) {
  .home-hero { min-height: auto; padding: 48px 24px; grid-template-columns: 1fr; }
  .home-hero-mark { display: none; }
  .home-trust, .brew-note, .product-trust, .brand-spirit { grid-template-columns: 1fr; padding: 28px 24px; }
  .story-grid, .topic-grid { grid-template-columns: 1fr; }
  .process-section ol { grid-template-columns: 1fr 1fr; }
  .content-hero { padding-top: 58px; }
}

@media (max-width: 520px) {
  .home-hero, .content-hero, .home-taste, .home-products, .home-trust, .story-grid, .process-section, .brand-spirit, .topic-grid, .brew-note, .faq-list, .faq-contact { width: min(100% - 24px, 1180px); }
  .taste-section { padding-inline: 14px; }
  .taste-card strong { font-size: .98rem; }
  .process-section ol { grid-template-columns: 1fr; }
}
