/* KAKIYU independent store - design values for this project */
:root {
  --paper: #fcf7ef;
  --paper-2: #f5ecdd;
  --card: #ffffff;
  --ink: #29231d;
  --ink-soft: #6d6257;
  --line: #e5d9c8;
  --clay: #b8562a;
  --clay-deep: #8e3f1c;
  --clay-soft: #f4e3d5;
  --olive: #6c7a4b;
  --gold: #c99a4b;
  --focus: #1f6fb2;
  --shadow: 0 18px 50px rgba(74, 48, 25, .10);
  --radius: 16px;
  --max: 1180px;
  --serif: Georgia, "Times New Roman", "Songti SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--clay-deep); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--clay-deep); font-weight: 700; margin: 0 0 12px; }
.serif { font-family: var(--serif); font-weight: 400; }
.muted { color: var(--ink-soft); }
.tiny { font-size: 12px; color: var(--ink-soft); }
.centered { text-align: center; }
.section { padding: 84px 0; }
.section--tint { background: var(--paper-2); }
.section h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.18; font-weight: 400; margin: 0 0 18px; letter-spacing: -.01em; }
.section h3 { font-family: var(--serif); font-size: 24px; font-weight: 400; margin: 0 0 10px; }
.section p { margin: 0 0 14px; }

/* Announcement */
.announce { background: var(--ink); color: #f8efe2; text-align: center; font-size: 12.5px; letter-spacing: .05em; padding: 9px 16px; }
.announce strong { color: #f0c78d; font-weight: 600; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(252, 247, 239, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { font-family: var(--serif); font-size: 25px; letter-spacing: .14em; color: var(--clay-deep); font-weight: 400; line-height: 1; }
.brand span { display: block; font-family: var(--sans); font-size: 9px; letter-spacing: .28em; color: var(--ink-soft); margin-top: 5px; }
.nav { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.nav a { color: var(--ink-soft); }
.nav a:hover { color: var(--clay-deep); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--clay); background: transparent; color: var(--clay-deep); padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.cart-btn:hover { background: var(--clay-soft); }
.cart-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--clay); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; }

/* Hero */
.hero { padding: 60px 0 74px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 58px; align-items: center; }
.hero h1 { font-family: var(--serif); font-size: clamp(38px, 5vw, 62px); line-height: 1.08; font-weight: 400; letter-spacing: -.02em; margin: 0 0 20px; }
.hero h1 em { color: var(--clay-deep); font-style: italic; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 520px; margin: 0 0 24px; }
.rating-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-soft); margin-bottom: 22px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.divider { width: 1px; height: 14px; background: var(--line); }
.price-block { display: flex; align-items: baseline; gap: 12px; margin: 0 0 6px; }
.price { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--clay-deep); }
.price-unit { font-size: 13px; color: var(--ink-soft); }
.price-note { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 24px; }

.buy-box { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-top: 26px; }
.buy-title { font-weight: 700; font-size: 14px; margin: 0 0 4px; }
.field-label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin: 0 0 8px; letter-spacing: .02em; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-control button { width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 20px; line-height: 1; }
.qty-control button:hover { background: var(--paper-2); }
.qty-control output { width: 46px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.qty-hint { font-size: 12.5px; color: var(--ink-soft); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 16px; }
.total-row span { font-size: 14px; color: var(--ink-soft); }
.total-row strong { font-family: var(--serif); font-size: 28px; font-weight: 400; color: var(--ink); }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border-radius: 999px; font-weight: 700; font-size: 15px; padding: 14px 26px; border: 1px solid transparent; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--clay); color: #fff; width: 100%; }
.btn--primary:hover { background: var(--clay-deep); color: #fff; }
.btn--outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--outline:hover { background: var(--paper-2); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #000; color: #fff; }
.buy-note { text-align: center; font-size: 12px; color: var(--ink-soft); margin: 12px 0 0; }

.hero-media { position: relative; }
.hero-media img { border-radius: 24px; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center top; box-shadow: 0 30px 70px rgba(90, 50, 20, .18); }
.hero-tag { position: absolute; bottom: 18px; left: 18px; background: rgba(255,255,255,.94); border-radius: 12px; padding: 10px 14px; font-size: 12px; font-weight: 700; color: var(--clay-deep); box-shadow: 0 8px 24px rgba(0,0,0,.12); }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--card); }
.trust-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-item { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--clay-deep); }
.trust-item span { font-size: 12.5px; color: var(--ink-soft); }

/* Split feature */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.split img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); }
.split-text ul { list-style: none; padding: 0; margin: 20px 0 0; }
.split-text li { position: relative; padding-left: 26px; margin-bottom: 12px; color: var(--ink-soft); }
.split-text li::before { content: "✓"; position: absolute; left: 0; color: var(--clay); font-weight: 700; }

/* Ingredient cards */
.ing-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.ing-list { display: grid; gap: 14px; }
.ing-card { display: flex; gap: 16px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.ing-num { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--clay-soft); color: var(--clay-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.ing-card h4 { margin: 0 0 3px; font-size: 16px; font-weight: 700; }
.ing-card p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* Compare table */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
thead th { background: var(--paper-2); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
.yes { color: var(--olive); font-weight: 700; }
.no { color: #a49a8f; }

/* Product gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 38px; }
.gallery-card { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.gallery-card img { width: 100%; height: auto; border-radius: 12px; }
.gallery-card figcaption { display: flex; align-items: baseline; gap: 10px; padding: 14px 6px 4px; font-size: 13.5px; font-weight: 600; }
.gallery-card figcaption span { font-family: var(--serif); font-size: 13px; color: var(--clay-deep); }
.gallery-card--single { grid-column: 1 / -1; width: min(100%, calc(50% - 11px)); justify-self: center; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.review { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.review .stars { margin-bottom: 10px; display: block; }
.review blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.review cite { font-style: normal; font-size: 12.5px; color: var(--ink-soft); }

/* FAQ */
.faq { max-width: 800px; margin-inline: auto; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--clay); font-size: 20px; line-height: 1; flex: none; }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* Footer */
.site-footer { background: var(--ink); color: #ded4c7; padding: 58px 0 30px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
.footer-grid h4 { color: #fff; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer-grid p, .footer-grid li { font-size: 13px; color: #b9ad9e; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: #b9ad9e; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #4a4038; margin-top: 36px; padding-top: 20px; font-size: 12px; color: #a99c8c; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
/* Company information in footer - editorial style, adapted to dark background */
.biz-foot .biz-mark { font-family: var(--serif); font-size: clamp(38px, 4.6vw, 54px); line-height: 1; letter-spacing: -.02em; margin: 0 0 14px; color: #f3e2cf; }
.biz-foot .biz-mark span { color: var(--clay); }
.biz-foot .biz-tagline { font-size: 13px; color: #b9ad9e; margin: 0 0 22px; }
.biz-foot .biz-line { font-size: 12.5px; color: #c4b8a8; margin: 0 0 6px; line-height: 1.7; overflow-wrap: break-word; word-break: break-word; }
.biz-foot .biz-line--gap { margin-top: 18px; }
.biz-foot .biz-mini { color: #9a8d7e; font-size: 12px; margin-left: 6px; }
.biz-foot .biz-email { color: #c4b8a8; text-decoration: underline; text-underline-offset: 3px; }
.biz-foot .biz-email:hover { color: #f3e2cf; }
@media (max-width: 640px) {
  .biz-foot .biz-mark { font-size: clamp(40px, 12vw, 52px); margin-bottom: 12px; }
  .biz-foot .biz-tagline { font-size: 13px; margin-bottom: 18px; }
  .biz-foot .biz-line { font-size: 12.5px; }
  .biz-foot .biz-mini { display: block; margin: 2px 0 0; }
}

/* Checkout */
.checkout { padding: 46px 0 90px; }
.checkout h1 { font-family: var(--serif); font-size: clamp(32px, 4vw, 46px); font-weight: 400; margin: 0 0 8px; }
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 44px; align-items: start; margin-top: 30px; }
.form-card, .summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form-section { margin-bottom: 30px; }
.form-section:last-child { margin-bottom: 0; }
.form-section h2 { font-family: var(--serif); font-size: 23px; font-weight: 400; margin: 0 0 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--clay); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #c0392b; background: #fff8f7; }
.field-error { display: none; color: #b33125; font-size: 12px; margin: -8px 0 12px; }
.field-error.show { display: block; }
.radio-row { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-bottom: 10px; cursor: pointer; }
.radio-row:has(input:checked) { border-color: var(--clay); background: var(--clay-soft); }
.radio-row input { margin: 4px 0 0; }
.radio-row strong { display: block; font-size: 14px; }
.radio-row span { font-size: 12.5px; color: var(--ink-soft); }
.demo-note { background: #fff8ea; border: 1px solid #efd6a8; border-radius: 10px; padding: 12px 14px; font-size: 12.5px; color: #7a5620; margin: 0 0 16px; }
.order-item { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-item img { width: 66px; height: 66px; object-fit: cover; border-radius: 10px; background: var(--paper-2); }
.order-item div:last-child { flex: 1; }
.order-item strong { display: block; font-size: 14px; line-height: 1.35; }
.order-item span { font-size: 12.5px; color: var(--ink-soft); }
.summary-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: var(--ink-soft); }
.summary-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; font-weight: 700; font-size: 16px; }
.summary-total strong { font-family: var(--serif); font-size: 24px; font-weight: 400; }
.summary-card .btn { margin-top: 20px; width: 100%; }
.empty-cart { font-size: 14px; color: var(--ink-soft); }
.form-status { display: none; margin-top: 18px; border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }
.form-status.show { display: block; }
.form-status--error { background: #fdf0ee; border: 1px solid #e7bdb6; color: #8e2f24; }
.form-status--ok { background: #f2f7ec; border: 1px solid #c9dcb6; color: #3f5f2a; }
.form-status strong { display: block; margin-bottom: 4px; }
.back-link { display: inline-block; margin-bottom: 18px; font-size: 13px; color: var(--ink-soft); }
.back-link:hover { color: var(--clay-deep); }
.breadcrumb { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--clay-deep); }

@media (max-width: 960px) {
  .hero-grid, .split, .ing-grid, .checkout-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero-media { order: -1; }
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-card--single { width: min(100%, calc(50% - 11px)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--paper); padding: 18px 20px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 14px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}
@media (max-width: 640px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero-media { order: 0; }
  .section { padding: 60px 0; }
  .hero { padding: 32px 0 56px; }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .review-grid, .form-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gallery-card--single { width: 100%; }
  .form-card, .summary-card { padding: 20px; }
  .price { font-size: 34px; }
  .header-inner { height: 64px; }
  .nav { top: 64px; }
  .brand { font-size: 21px; }
  .cart-btn span:not(.cart-count) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
