/* KASUMI visual refinement. Photography remains the original demonstration imagery. */
:root {
  --paper: #fffdf9;
  --soft: #f3f0e9;
  --ink: #292825;
  --muted: #655f57;
  --line: #ddd7cd;
  --accent: #8a7148;
  --focus-ring: #8a7148;
  --header-offset: 150px;
}

body { background: var(--paper); }
input, select, textarea { background: #fffefa; border-color: var(--line); }
.announcement { padding: 6px 12px; font-size: 11px; letter-spacing: .08em; }
.head-main { height: 70px; }
.head-main .logo { font-size: 29px; }
.head-left, .head-tools { gap: 18px; }
.nav { gap: 30px; padding: 0 16px 4px; }
.nav a { min-height: 40px; font-size: 11px; letter-spacing: .14em; }
.icon svg { stroke-width: 1.4; }
.count { background: var(--paper); }
.head-left a, .eyebrow { color: var(--muted); }
.head-left a { min-height: 44px; display: inline-flex; align-items: center; }

.btn { min-height: 48px; padding: 12px 24px; font-size: 14px; letter-spacing: .05em; }
.btn:hover { background: #48423a; border-color: #48423a; }
.btn.light { border-color: #a99e8f; }
.btn.light:hover { background: #ebe5da; border-color: var(--accent); }
.textlink { font-size: 14px; text-underline-offset: 4px; }
.icon:hover, .save:hover { color: var(--accent); }
.save.active, .save[aria-pressed="true"], .wish-outline[aria-pressed="true"] { color: var(--accent); }
.wish-outline[aria-pressed="true"] { border-color: var(--accent); }
.small { font-size: 14px; }
.note, .bag-meta, .bag-stock-note, .gallery-note { font-size: 13px; color: var(--muted); }
.product-desc, .details p { font-size: 15px; }
.details summary { font-size: 15px; }
.footer a:not(.logo) { font-size: 14px; }
.footer-bottom { font-size: 12px; }
.service-strip p { font-size: 13px; }

/* A shorter introduction lets the first product row appear before scrolling. */
.page-top { padding: 30px 0 22px; }
.page-top .eyebrow { font-size: 11px; margin-bottom: 10px; }
.page-top h1 { font-size: clamp(34px, 4vw, 46px); margin-bottom: 10px; letter-spacing: -.02em; }
.page-top p:last-child { margin-bottom: 0; line-height: 1.65; }
.breadcrumb { padding: 17px 0; font-size: 13px; }
.backline { margin-bottom: 20px; }

/* Consistent frames preserve the whole image rather than inventing new angles. */
.grid { gap: 30px 22px; }
.product-photo { aspect-ratio: 4 / 5; background: #f0ece5; border: 1px solid #e8e2d8; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; padding: 7%; transition: none; }
.product-photo:hover img { transform: none; }
.product-photo:hover { border-color: #cbbdA5; }
.product-tag { font-size: 10px; letter-spacing: .1em; padding: 3px 7px; background: #fffdf9; color: #4f4431; }
.save { background: rgba(255, 253, 249, .96); box-shadow: none; border: 1px solid #e2dbcf; }
.product-title { font-family: inherit; font-size: 16px; line-height: 1.6; font-weight: 500; margin: 14px 0 4px; }
.product-card .product-en { display: block; margin: 0 0 7px; font-family: var(--serif); font-size: 14px; line-height: 1.5; color: var(--muted); letter-spacing: .015em; }
.product-card .price { font-size: 15px; letter-spacing: .025em; }
.product-card .small { font-size: 13px; }
.product-info { padding-top: 14px; }
.product-info h1 { font-family: inherit; font-size: clamp(27px, 2.7vw, 36px); font-weight: 400; line-height: 1.5; margin-bottom: 6px; letter-spacing: .015em; overflow-wrap: anywhere; }
.product-info .product-en { margin: 0 0 18px; font: 17px/1.5 var(--serif); color: var(--muted); }
.product-info .eyebrow { font-size: 11px; margin-bottom: 14px; color: var(--accent); }
.product-info .price { font-size: 23px; margin-bottom: 0; }
.product-info .price .note { font-size: 13px; margin-left: 4px; }
.product-desc { padding: 18px 0; margin-bottom: 8px; line-height: 1.9; }
.product-gallery .product-main { background: #f0ece5; border: 1px solid #e8e2d8; }
.product-gallery .product-main img { object-fit: contain; }
.gallery-thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.product-info .fieldlegend, .product-info .field label { font-size: 14px; }
.product-specs dl, dl.product-specs { font-size: 14px; }
.product-info .field:has(.size-options) { margin-bottom: 20px; }
.size-options { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 7px; }
.size-option { display: inline-flex; align-items: center; justify-content: center; min-width: 60px; min-height: 48px; border: 1px solid #bcb2a4; padding: 9px 17px; font-size: 15px; background: var(--paper); }
.size-option:hover { border-color: var(--accent); background: #f6f0e5; }
.size-option[aria-pressed="true"] { background: #ede5d5; color: #463b27; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.single-size { display: inline-flex; min-height: 44px; align-items: center; padding: 8px 18px; border: 1px solid var(--line); background: var(--soft); font-size: 15px; }
.size-feedback { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 7px 0 0; }
.size-feedback[role="alert"], .size-feedback.is-error, .size-feedback.has-error { color: var(--error-ink); }
.size-guide-link { font-size: 13px; margin-top: 2px; }

/* The search row is always visible; detailed filters occupy their own panel. */
.shop-search-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 145px; gap: 12px; align-items: start; margin: 0 0 12px; }
.shop-search-row input { min-width: 0; min-height: 48px; font-size: 15px; padding: 11px 15px; }
.shop-search-row > #shop-search { grid-column: 1; grid-row: 1; }
.shop-search-row .filter-toggle { align-self: stretch; }
.filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 10px 20px; border: 1px solid #bcb2a4; background: var(--paper); font-size: 14px; cursor: pointer; list-style: none; white-space: nowrap; }
.filter-toggle::-webkit-details-marker { display: none; }
.filter-toggle::after { content: '+'; font-size: 18px; line-height: 1; }
details[open] > .filter-toggle::after { content: '−'; }
.filter-toggle:hover { border-color: var(--accent); background: #f6f0e5; }
#shop-filter-panel { grid-column: 2; grid-row: 1; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; }
#shop-filter-panel > .filter-toggle { width: 145px; min-width: 0; }
#shop-filter-panel[open] { grid-column: 1 / -1; grid-row: 2; padding: 18px 20px; border: 1px solid var(--line); background: #f7f4ee; }
#shop-filter-panel[open] > .filter-toggle { position: absolute; top: 0; right: 0; }
.filter-options { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 16px 24px; align-items: end; }
.filter-options .field { margin: 0; min-width: 0; }
.filter-options label, .filter-options .fieldlegend, .filter-options legend { font-size: 13px; margin-bottom: 9px; }
.filter-options > label { display: grid; gap: 7px; min-width: 0; margin: 0; }
.filter-options fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filter-options select { min-height: 46px; font-size: 14px; padding: 10px 12px; }
.chips { gap: 8px; }
.chip { min-height: 44px; padding: 8px 14px; background: var(--paper); border-color: #cdc4b7; font-size: 14px; }
.chip.active, .chip[aria-pressed="true"] { background: #ede5d5; color: #463b27; border-color: var(--accent); }
.stock-toggle, .filter-options > .stock-toggle { display: flex; align-items: center; gap: 9px; min-height: 46px; font-size: 14px; cursor: pointer; }
.stock-toggle input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--accent); }
.filter-tokens { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.filter-tokens:not(:empty) { margin: 12px 0; }
.filter-token { display: inline-flex; gap: 10px; align-items: center; min-height: 40px; border: 1px solid #d4cab9; padding: 7px 12px; background: #f4eddf; color: #584b35; font-size: 13px; }
.filter-token:hover { border-color: var(--accent); background: #eae1d0; }
.filter-status { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 8px 0 20px; padding: 10px 0 0; border-top: 1px solid var(--line); }
.filter-status #result-count { font-size: 14px; color: var(--ink); }
.filter-status .filter-clear { font-size: 13px; padding: 6px 0; min-height: 40px; }
.filter-status > .filter-tokens { flex: 1; margin: 0; }
.filter-status > .filter-clear { flex-shrink: 0; }
.toolbar:has(.chips) { padding: 0; border-top: 0; margin: 0 0 12px; }
.sort-field { display: inline-flex; gap: 10px; align-items: center; min-width: 0; font-size: 13px; }
.sort-field label { white-space: nowrap; }
.sort-field select { width: auto; max-width: 100%; min-height: 44px; padding: 8px 32px 8px 12px; font-size: 13px; }
.gift-guide { padding: 17px 20px; margin-bottom: 20px; }
.gift-guide .eyebrow { margin-bottom: 13px; }
.gift-guide .gift-options { gap: 8px; }
.gift-guide > p:last-child { margin: 11px 0 0; font-size: 13px; }
.gift-option { min-height: 44px; padding: 8px 13px; font-size: 13px; gap: 6px; border-color: #cfc4b3; }
.gift-option small { font-size: 12px; }
.gift-option[aria-pressed="true"] { background: #ede5d5; color: #463b27; border-color: var(--accent); }

/* Search suggestions are links, so they work with keyboard and touch alike. */
.search-results { clear: both; margin-top: 16px; border-top: 1px solid var(--line); }
.search-result { display: flex; align-items: center; gap: 14px; padding: 14px 2px; min-height: 86px; border-bottom: 1px solid var(--line); }
.search-result:hover { background: var(--soft); }
.search-result img { flex: 0 0 56px; width: 56px; height: 68px; object-fit: contain; background: #f0ece5; }
.search-result-info { flex: 1; min-width: 0; font-size: 15px; line-height: 1.55; }
.search-result-info strong { font-weight: 500; }
.search-result-info .product-en { display: block; font: 13px/1.5 var(--serif); color: var(--muted); margin-top: 3px; }
.search-result-meta { font-size: 13px; color: var(--muted); margin-top: 5px; display: flex; flex-wrap: wrap; gap: 12px; }
.search-empty { padding: 23px 0; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* The order overview remains beside the form on desktop and precedes it on mobile. */
.checkout-layout { grid-template-areas: 'form summary'; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 48px; }
.checkout-form { grid-area: form; }
.checkout-summary { grid-area: summary; border: 1px solid var(--line); background: #f4f0e7; }
.checkout-summary-details > summary { display: none; }
.checkout-summary-details::details-content { content-visibility: visible; }
.checkout-summary #checkout-items { font-size: 14px; }
.checkout-final { padding: 18px 20px; margin: 22px 0 16px; background: #f1ecdf; border: 1px solid #d8ccb5; }
.checkout-final .money-line { margin-bottom: 8px; }
.checkout-final strong, #checkout-final-total { font-size: 24px; font-weight: 500; line-height: 1.4; }
#checkout-final-fees { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 0; }
.checkout-summary .money-line.total { font-size: 21px; }
.summary-box { background: #f4f0e7; }
.form-section h2, .delivery-options legend { font-family: inherit; font-size: 22px; line-height: 1.5; margin-bottom: 18px; }
.radio-card { border-color: #cfc5b5; }
.radio-card:has(input:checked) { background: #f4eddf; border-color: var(--accent); }
.field label, .checkrow { font-size: 14px; }
.demo-banner { background: #f7f3e9; font-size: 13px; }

@media (max-width: 1000px) and (min-width: 701px) {
  .head-left a { display: none; }
  .nav { gap: 21px; }
  .head-tools { gap: 10px; }
  .filter-options { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .filter-options > .stock-toggle { grid-column: 1 / -1; }
  .checkout-layout { gap: 28px; }
}

@media (max-width: 700px) {
  :root { --header-offset: 114px; }
  .announcement { font-size: 10px; padding: 5px 9px; }
  .head-main { height: 68px; grid-template-columns: 44px minmax(0, 1fr) 132px; }
  .head-main .logo { font-size: clamp(20px, 6vw, 25px); }
  .head-left a { display: none; }
  .head-left, .head-tools { gap: 0; }
  .nav { display: none; }
  .mobile-nav.open { max-height: calc(100dvh - 99px); }
  .page-top { padding: 25px 0 21px; }
  .page-top h1 { font-size: 34px; margin-bottom: 9px; }
  .page-top .eyebrow { font-size: 10px; margin-bottom: 9px; }
  .page-top .small { font-size: 13px; }
  .grid { gap: 25px 12px; }
  .product-photo img { padding: 5%; }
  .product-title { font-size: 14px; line-height: 1.6; margin: 11px 0 3px; }
  .product-card .product-en { font-size: 12px; margin-bottom: 5px; }
  .product-card .price { font-size: 14px; }
  .product-card .product-tag { font-size: 9px; left: 7px; top: 11px; padding: 2px 5px; max-width: calc(100% - 61px); }
  .product-card .save { width: 44px; height: 44px; top: 5px; right: 5px; font-size: 23px; }
  .product-info h1 { font-size: 28px; line-height: 1.5; }
  .product-info .product-en { font-size: 16px; margin-bottom: 15px; }
  .product-info .price { font-size: 22px; }
  .product-info .price .note { font-size: 12px; }
  .breadcrumb { font-size: 12px; padding: 14px 0; }
  .backline { margin-bottom: 16px; }
  .size-option { min-width: 64px; }
  .product-specs dl, dl.product-specs { font-size: 13px; }
  .shop-search-row { grid-template-columns: minmax(0, 1fr) 116px; gap: 9px; margin-bottom: 10px; }
  .shop-search-row input { font-size: 16px; }
  .filter-toggle { min-height: 48px; padding: 10px 15px; font-size: 13px; gap: 9px; }
  #shop-filter-panel > .filter-toggle { width: 116px; min-width: 0; }
  #shop-filter-panel[open] { padding: 16px; }
  .filter-options { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .filter-options select { font-size: 16px; }
  .chip { padding: 8px 12px; font-size: 13px; }
  .filter-token { min-height: 44px; font-size: 12px; padding: 8px 10px; }
  .filter-status { gap: 8px 14px; margin-top: 4px; margin-bottom: 15px; padding-top: 8px; }
  .filter-status #result-count { font-size: 13px; }
  .filter-status > .filter-tokens { order: 3; flex: 0 0 100%; }
  .filter-status > .filter-tokens:empty { flex-basis: 0; }
  .sort-field { gap: 6px; margin-left: auto; }
  .sort-field label { font-size: 12px; }
  .sort-field select { padding: 8px 26px 8px 9px; font-size: 13px; max-width: 158px; }
  .gift-guide { padding: 15px; margin-bottom: 17px; }
  .gift-options { gap: 7px; }
  .gift-option { flex: 1 1 130px; padding: 8px; font-size: 12px; gap: 3px; }
  .gift-option small { font-size: 11px; }
  .search-result { gap: 12px; }
  .search-result-info { font-size: 14px; }
  .search-result-meta { font-size: 12px; }
  .checkout-layout { grid-template-areas: 'summary' 'form'; grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .checkout-summary { padding: 0; }
  .checkout-summary-details > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; padding: 17px 18px; min-height: 64px; list-style: none; font-size: 14px; }
  .checkout-summary-details > summary::-webkit-details-marker { display: none; }
  .checkout-summary-details > summary::after { content: '+'; font-size: 21px; flex-shrink: 0; }
  .checkout-summary-details[open] > summary::after { content: '−'; }
  .checkout-summary-details::details-content { content-visibility: hidden; }
  .checkout-summary-details[open]::details-content { content-visibility: visible; }
  .checkout-summary-details > :not(summary) { margin-left: 18px; margin-right: 18px; }
  .checkout-summary-details[open] { padding-bottom: 18px; }
  .checkout-summary-details[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  #checkout-compact-total { font-size: 18px; font-weight: 500; margin-left: auto; white-space: nowrap; }
  #checkout-item-count { font-size: 12px; color: var(--muted); }
  .checkout-final { padding: 16px; }
  .checkout-final strong, #checkout-final-total { font-size: 23px; }
  .mobile-buy-name { font-family: inherit; font-size: 14px; }
  .mobile-buy-bar { background: rgba(255, 253, 249, .98); gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .chip, .swatch, .product-photo img { transition: none; }
}

/* Native size groups and the final checkout amount share the form rhythm. */
.size-field { min-width: 0; padding: 0; border: 0; }
.size-field legend { font-size: 14px; margin-bottom: 12px; }
.checkout-final-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.search-all { display: inline-block; margin-top: 18px; min-height: 44px; }

.filter-toggle { gap: 6px; padding-left: 12px; padding-right: 12px; }
#filter-count { font-size: 12px; }
#filter-count:empty { display: none; }
.search-form .btn { flex: 0 0 auto; min-width: 112px; white-space: nowrap; }
.search-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
#search-status { margin: 14px 0 0; }

/* Buyer history reflects separate states exercised in the local management demo. */
.buyer-order-state { margin: 18px 0; padding: 16px; background: #f4f0e7; border: 1px solid var(--line); }
.order-statuses { display: flex; flex-wrap: wrap; gap: 8px; }
.order-status-badge { display: inline-block; padding: 6px 9px; font-size: 13px; line-height: 1.6; border: 1px solid #d8cebc; background: #fffdf9; }
.order-status-payment[data-payment-state="awaiting"] { color: #6c5529; background: #f4ecd9; }
.order-status-payment[data-payment-state="refunded"], .order-status-order[data-order-state="cancelled"] { color: #7a3a31; background: #f5e8e2; }
.order-status-fulfillment[data-fulfillment-state="ready"], .order-status-fulfillment[data-fulfillment-state="shipped"], .order-status-fulfillment[data-fulfillment-state="picked_up"] { color: #3d5e49; background: #eaf0e9; }
.order-tracking { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px 16px; font-size: 14px; margin: 16px 0; text-align: left; }
.order-tracking dt { color: var(--muted); }
.order-tracking dd { margin: 0; overflow-wrap: anywhere; }
.order-state-note { margin: 12px 0 0; font-size: 12px; }
