/* HINOKI KABAN storefront theme — original CSS for SiteFarm. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #f7f4ef;
  --surface: #fffdfa;
  --ink: #17140f;
  --muted: #6f665c;
  --muted-2: #9a9186;
  --line: #e4ddd3;
  --line-strong: #d3c9bb;
  --accent: #a2543a;
  --accent-dark: #7f3f2a;
  --accent-soft: #f4e7e0;
  --ok: #2f6b4f;
  --container: 1200px;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", Georgia, serif;
  --font-sans: "Helvetica Neue", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: .01em; }
ul, ol { margin: 0; padding: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container.narrow { max-width: 920px; }

.icon, .i { display: inline-block; vertical-align: middle; }
.eyebrow {
  font-size: 10.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.section { max-width: var(--container); margin: 0 auto; padding: 76px 32px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 34px;
}
.section-title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .04em; color: var(--muted);
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
}
.link-more:hover { color: var(--accent); border-color: var(--accent); }

/* ------------------------------------------------------------------ header */
.announce {
  background: var(--ink); color: #f2ede4;
  font-size: 11px; letter-spacing: .16em; text-align: center;
  padding: 9px 16px;
}
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 244, 239, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 0 32px; height: 74px;
  display: flex; align-items: center; gap: 28px;
}
.brand { flex: 0 0 auto; }
.brand-name {
  font-family: var(--font-serif);
  font-size: 22px; letter-spacing: .06em; white-space: nowrap;
}
.brand-name.small { font-size: 17px; }
.brand-logo { max-height: 40px; width: auto; }
.main-nav { flex: 1; display: flex; justify-content: center; gap: 30px; }
.nav-link {
  position: relative; font-size: 12.5px; letter-spacing: .06em; color: #3b352d;
  padding: 6px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-link.is-active { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-icon {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 0; background: transparent; color: var(--ink);
  border-radius: 50%;
}
.header-icon:hover { background: rgba(23, 20, 15, .05); color: var(--accent); }
.cart-count {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
}
.menu-btn { display: none; }

.search-panel {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 18px 0;
}
.search-form {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: flex; gap: 10px;
}
.search-input {
  flex: 1;
  border: 0; border-bottom: 1px solid var(--line-strong);
  background: transparent; padding: 10px 4px;
  font-size: 14px; outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-submit {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 0 18px;
}
.search-submit:hover { background: var(--accent); border-color: var(--accent); }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; z-index: 80;
  width: min(340px, 86vw);
  background: var(--bg);
  padding: 22px 24px;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.mobile-nav { display: flex; flex-direction: column; padding: 18px 0; }
.mobile-link { padding: 14px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.mobile-link.is-active { color: var(--accent); }
.mobile-menu-foot { margin-top: auto; display: flex; gap: 10px; color: var(--muted); font-size: 12.5px; }
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(20, 16, 12, .38); opacity: 0; transition: opacity .3s var(--ease); }
.overlay.is-open { opacity: 1; }

/* -------------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex; align-items: flex-end;
  background: #2a211a;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(18, 14, 10, .66) 0%, rgba(18, 14, 10, .34) 42%, rgba(18, 14, 10, .08) 78%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 32px 84px;
  color: #fbf7f0;
}
.hero-eyebrow { font-size: 11px; letter-spacing: .26em; color: #d8c9b8; margin-bottom: 18px; }
.hero-title {
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.18; letter-spacing: .02em;
  font-weight: 500;
}
.hero-sub { margin-top: 20px; max-width: 460px; color: #e4dbcf; font-size: 13.5px; line-height: 1.9; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 26px;
  border: 1px solid transparent;
  font-size: 12.5px; letter-spacing: .08em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(23, 20, 15, .35); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn-ghost { color: #fbf7f0; border-color: rgba(251, 247, 240, .5); }
.hero .btn-ghost:hover { background: #fbf7f0; color: var(--ink); }
.btn-lg { min-height: 54px; padding: 0 34px; font-size: 13px; }
.btn-block { width: 100%; }

/* -------------------------------------------------------------- categories */
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.category-card { display: block; }
.category-media { overflow: hidden; aspect-ratio: 4 / 5; background: #e9e2d8; }
.category-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.category-card:hover .category-media img { transform: scale(1.04); }
.category-info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 2px 0; border-bottom: 1px solid var(--line); }
.category-name { font-family: var(--font-serif); font-size: 16px; }
.category-count { font-size: 10.5px; letter-spacing: .12em; color: var(--muted-2); text-transform: uppercase; }

/* ------------------------------------------------------------------ cards */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 22px;
}
.p-card { position: relative; }
.p-card-media { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: #eae3d9; }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.p-card:hover .p-card-media img { transform: scale(1.035); }
.p-flag {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: 9.5px; letter-spacing: .14em; padding: 3px 8px;
}
.p-card-body { padding-top: 13px; }
.p-card-title {
  display: block; font-size: 13px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.p-card-price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.price { font-size: 14px; letter-spacing: .02em; }
.price-old { font-size: 11.5px; color: var(--muted-2); text-decoration: line-through; }
.btn-add {
  margin-top: 10px; width: 100%;
  border: 1px solid var(--line-strong); background: transparent;
  min-height: 38px; font-size: 11.5px; letter-spacing: .1em;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn-add:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-add.is-added { background: var(--accent); border-color: var(--accent); color: #fff; }

/* -------------------------------------------------------------- service band */
.service-band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-grid {
  max-width: var(--container); margin: 0 auto; padding: 40px 32px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px;
}
.service-item { display: flex; gap: 14px; align-items: flex-start; }
.service-icon { color: var(--accent); flex: 0 0 auto; margin-top: 2px; }
.service-title { font-size: 13px; font-family: var(--font-sans); font-weight: 600; letter-spacing: .04em; }
.service-text { font-size: 11.5px; color: var(--muted); margin-top: 3px; line-height: 1.7; }

/* ---------------------------------------------------------------- about band */
.about-band { background: #17140f; color: #efe8dd; }
.about-inner {
  max-width: var(--container); margin: 0 auto; padding: 90px 32px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center;
}
.about-copy .eyebrow { color: #a99a87; }
.about-copy h2 { font-size: clamp(24px, 2.8vw, 36px); margin-bottom: 20px; }
.about-copy p { color: #bdb1a1; font-size: 13.5px; line-height: 2; max-width: 480px; }
.about-copy .btn { margin-top: 28px; }
.about-copy .btn-ghost { color: #efe8dd; border-color: rgba(239, 232, 221, .35); }
.about-copy .btn-ghost:hover { background: #efe8dd; color: #17140f; }
.about-art { position: relative; min-height: 260px; display: grid; place-items: center; }
.about-circle {
  width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(239, 232, 221, .25);
  position: absolute;
}
.about-circle::after {
  content: ""; position: absolute; inset: 26px; border-radius: 50%;
  border: 1px solid rgba(239, 232, 221, .12);
}
.about-word {
  position: relative;
  font-family: var(--font-serif); font-size: clamp(26px, 3vw, 40px);
  letter-spacing: .14em; text-align: center; color: #efe8dd;
}

/* ------------------------------------------------------------------- footer */
.site-footer { background: #131009; color: #b3a795; padding: 64px 0 26px; }
.footer-grid {
  max-width: var(--container); margin: 0 auto; padding: 0 32px;
  display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 40px;
}
.footer-logo { font-family: var(--font-serif); font-size: 22px; letter-spacing: .08em; color: #f1eadd; margin-bottom: 14px; }
.footer-intro { font-size: 12px; line-height: 1.9; max-width: 320px; color: #948874; }
.footer-social { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-size: 12px; color: #cfc4b2; }
.footer-col h4 {
  font-family: var(--font-sans); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: #7d7263; margin-bottom: 16px;
}
.footer-col a, .footer-address, .footer-hours {
  display: flex; align-items: baseline; gap: 7px;
  font-size: 12px; color: #b3a795; margin-bottom: 9px;
}
.footer-col a:hover { color: #f1eadd; }
.footer-address { line-height: 1.7; }
.footer-hours { color: #7d7263; font-size: 11px; }
.footer-bottom {
  max-width: var(--container); margin: 46px auto 0; padding: 20px 32px 0;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 10.5px; letter-spacing: .06em; color: #6f6556;
}

/* --------------------------------------------------------------- breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 26px 0 0; font-size: 11px; color: var(--muted-2); letter-spacing: .04em;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb .current { color: var(--ink); }

/* ------------------------------------------------------------------ product */
.product-detail {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px; padding: 34px 0 84px;
}
.gallery { position: sticky; top: 100px; align-self: start; }
.gallery-main { background: #eae3d9; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.gallery-thumb { padding: 0; border: 1px solid transparent; background: none; aspect-ratio: 1; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-active { border-color: var(--ink); }
.product-info { padding-top: 6px; }
.product-title { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.4; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; }
.price-main { font-size: 22px; letter-spacing: .02em; }
.price-tax { font-size: 11px; color: var(--muted-2); }
.product-summary { color: var(--muted); font-size: 13px; margin-top: 14px; }
.product-buy { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line-strong); height: 54px; }
.qty-btn { width: 40px; border: 0; background: transparent; display: grid; place-items: center; }
.qty-btn:hover { background: rgba(23, 20, 15, .04); }
.qty-input { width: 42px; border: 0; text-align: center; background: transparent; outline: none; }
.product-buy .btn-lg { flex: 1; min-width: 200px; }
.wish-btn {
  width: 54px; height: 54px; border: 1px solid var(--line-strong); background: transparent;
  display: grid; place-items: center;
}
.wish-btn:hover, .wish-btn.is-active { color: var(--accent); border-color: var(--accent); }
.wish-btn.is-active .i { fill: currentColor; }
.ship-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 11.5px; color: var(--muted); }
.accordion { margin-top: 34px; border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer;
  padding: 17px 2px; font-size: 12.5px; letter-spacing: .06em;
  display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 16px; color: var(--muted); }
.accordion details[open] summary::after { content: "–"; }
.accordion .prose, .accordion .spec-table { padding: 0 2px 22px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 130px; font-weight: 400; color: var(--muted); }

/* -------------------------------------------------------------------- prose */
.prose { font-size: 13.5px; line-height: 2; color: #3c362e; }
.prose p { margin-bottom: 1em; }
.prose h3 { font-size: 16px; margin: 1.4em 0 .6em; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .35em; }
.prose img { margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose a { border-bottom: 1px solid var(--line-strong); }

/* --------------------------------------------------------------- collections */
.collection-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  padding: 34px 0 30px;
}
.collection-title { font-size: clamp(26px, 3vw, 38px); }
.collection-count { font-size: 12px; color: var(--muted); margin-top: 6px; }
.sort-select select {
  appearance: none; border: 1px solid var(--line-strong); background: transparent;
  padding: 9px 34px 9px 13px; font-size: 12px; letter-spacing: .04em;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 54%, calc(100% - 11px) 54%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
.pager { padding: 50px 0 80px; }

/* --------------------------------------------------------------------- cart */
.page-head { padding: 30px 0 26px; }
.page-title { font-size: clamp(26px, 3vw, 36px); }
.page-lead { color: var(--muted); font-size: 13px; margin-top: 10px; max-width: 620px; }
.cart-rows { border-top: 1px solid var(--line); }
.cart-row {
  display: grid; grid-template-columns: 100px minmax(0, 1fr) auto 120px;
  gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.cart-thumb { aspect-ratio: 4 / 5; overflow: hidden; background: #eae3d9; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-name { font-size: 13.5px; display: block; margin-bottom: 5px; }
.cart-unit { font-size: 11.5px; color: var(--muted); }
.cart-remove {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 9px; border: 0; background: none; padding: 0;
  font-size: 11px; color: var(--muted-2); text-decoration: underline; text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--accent); }
.cart-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); height: 38px; }
.cart-qty .qty-btn { width: 34px; height: 100%; }
.cart-qty span { min-width: 30px; text-align: center; font-size: 12.5px; }
.cart-line-total { text-align: right; font-size: 14px; }
.cart-footer {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 0 60px; flex-wrap: wrap;
}
.cart-total { font-size: 12px; color: var(--muted); }
.cart-total strong { display: block; font-size: 24px; color: var(--ink); font-weight: 500; letter-spacing: .02em; margin-top: 4px; }
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cart-note { font-size: 11.5px; color: var(--muted-2); margin-top: 10px; }

/* ----------------------------------------------------------------- checkout */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .8fr); gap: 48px; padding-bottom: 80px; }
.form-section { padding: 26px 0; border-top: 1px solid var(--line); }
.form-section h2 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: block; margin-bottom: 16px; }
.form-field > span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 7px; letter-spacing: .04em; }
.form-field em { color: var(--accent); font-style: normal; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface);
  padding: 11px 13px; font-size: 13.5px; outline: none;
  transition: border-color .2s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--accent); }
.form-field textarea { resize: vertical; }
.checkout-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 20px; flex-wrap: wrap; }
.checkout-summary {
  position: sticky; top: 100px; align-self: start;
  background: var(--surface); border: 1px solid var(--line);
  padding: 24px;
}
.checkout-summary h2 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 8px 0; color: var(--muted); }
.summary-row span:last-child { color: var(--ink); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.summary-total strong { font-size: 20px; color: var(--ink); font-weight: 500; }
.checkout-success { text-align: center; padding: 70px 0 100px; }
.success-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin: 0 auto 22px; }
.checkout-success h1 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.checkout-success p { color: var(--muted); font-size: 13.5px; }
.success-meta { display: flex; justify-content: center; gap: 40px; margin: 30px 0; }
.success-meta div { text-align: left; }
.success-meta dt { font-size: 11px; color: var(--muted-2); letter-spacing: .08em; }
.success-meta dd { margin: 4px 0 0; font-size: 15px; }

/* --------------------------------------------------------------------- auth */
.auth-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  gap: 0; max-width: 1040px; margin: 70px auto 100px; padding: 0 32px;
}
.auth-aside { padding: 20px 50px 20px 0; }
.auth-aside h1 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.35; margin-bottom: 18px; }
.auth-aside p { color: var(--muted); font-size: 13.5px; max-width: 380px; }
.auth-demo-note { margin-top: 26px; font-size: 11.5px !important; color: var(--muted-2) !important; border-left: 1px solid var(--line-strong); padding-left: 14px; }
.auth-card { background: var(--surface); border: 1px solid var(--line); padding: 34px 32px; }
.auth-card h2 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.auth-card .btn { margin-top: 6px; }
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: 11.5px; color: var(--muted); }
.auth-links a { border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.form-error { color: #b42318; font-size: 12px; margin: -4px 0 10px; }

/* ------------------------------------------------------------------- search */
.search-page-form { display: flex; gap: 10px; max-width: 620px; margin-bottom: 20px; }
.search-page-form .search-input { border: 1px solid var(--line-strong); padding: 11px 13px; background: var(--surface); }
.search-meta { font-size: 12px; color: var(--muted); margin-bottom: 26px; }

/* ------------------------------------------------------------------ account */
.account-card { background: var(--surface); border: 1px solid var(--line); padding: 26px 28px; margin-bottom: 22px; }
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.account-name { font-family: var(--font-serif); font-size: 22px; }
.account-email { font-size: 12px; color: var(--muted); margin-top: 3px; }
.account-section h2 { font-family: var(--font-sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.order-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; flex-wrap: wrap; }
.order-row:last-child { border-bottom: 0; }
.order-no { font-family: var(--mono, monospace); letter-spacing: .02em; }
.order-meta { color: var(--muted); font-size: 11.5px; }
.account-empty { color: var(--muted); font-size: 12.5px; padding: 8px 0 4px; }

/* --------------------------------------------------------------- misc pages */
.page-prose { padding: 10px 0 80px; max-width: 720px; }
.page-prose .page-table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.page-prose .page-table th, .page-prose .page-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; font-size: 13px; vertical-align: top; }
.page-prose .page-table th { width: 160px; color: var(--muted); font-weight: 400; }
.notfound { text-align: center; padding: 100px 0 120px; }
.notfound-code { font-family: var(--font-serif); font-size: 84px; color: var(--line-strong); line-height: 1; }
.notfound h1 { font-size: 24px; margin: 14px 0 10px; }
.notfound p { color: var(--muted); font-size: 13px; }
.notfound-actions { display: flex; gap: 10px; justify-content: center; margin-top: 28px; }
.empty-state { text-align: center; padding: 60px 20px 70px; }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.empty-title { font-family: var(--font-serif); font-size: 18px; margin-bottom: 6px; }
.empty-text { color: var(--muted); font-size: 12.5px; margin-bottom: 22px; }
.loading { color: var(--muted-2); font-size: 12.5px; }
.note { font-size: 12px; color: var(--muted); }
.related { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------- toasts */
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: #f6f1e8;
  padding: 12px 16px; font-size: 12.5px; letter-spacing: .02em;
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, .5);
  animation: toast-in .25s var(--ease);
}
.toast.is-out { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* -------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .category-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-detail { gap: 36px; }
  .about-inner { gap: 40px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .header-inner { gap: 14px; height: 66px; padding: 0 20px; }
  .brand { flex: 1; text-align: center; }
  .brand-name { font-size: 19px; }
  .container, .section { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: 520px; }
  .hero-inner { padding: 0 20px 60px; }
  .product-detail { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .checkout-layout, .auth-layout { grid-template-columns: 1fr; gap: 30px; }
  .auth-aside { padding-right: 0; }
  .checkout-summary { position: static; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 32px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding: 0 20px; }
  .footer-bottom { padding: 18px 20px 0; flex-direction: column; gap: 6px; }
}
@media (max-width: 640px) {
  body { font-size: 13.5px; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .p-card-title { font-size: 12px; }
  .btn-add { font-size: 10.5px; }
  .section { padding-top: 54px; padding-bottom: 54px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .cart-row { grid-template-columns: 74px minmax(0, 1fr) auto; }
  .cart-line-total { grid-column: 3; }
  .cart-qty { grid-column: 3; grid-row: 1; justify-self: end; }
  .cart-footer { flex-direction: column; align-items: stretch; }
  .cart-actions .btn { flex: 1; }
  .checkout-actions .btn { width: 100%; }
  .success-meta { flex-direction: column; gap: 12px; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .about-art { display: none; }
  .hero-title { font-size: 34px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
