:root {
  color-scheme: light;
  --bg: #f6f5f2;
  --card: #ffffff;
  --subtle: #f3f1ec;
  --border: #eeeae4;
  --text: #1c1a17;
  --muted: #8d867c;
  --sec: #57534b;
  --yellow: #ffc30c;
  --red: #ec3832;
  --green: #167548;
  --header: rgba(255, 255, 255, .88);
  --notice: #fff4c8;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #202020;
  --card: #262626;
  --subtle: #303030;
  --border: #3a3a3a;
  --text: #f4f4f2;
  --muted: #afafac;
  --sec: #c8c8c5;
  --green: #59c98c;
  --header: rgba(32, 32, 32, .88);
  --notice: #4a411f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--card); }
.skip-link:focus { left: 8px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--border); background: var(--header); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.header-inner, .page, .footer-inner { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.header-inner { min-height: 68px; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; flex: none; align-items: center; }
.brand img { display: block; width: 88px; height: auto; }
.header-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.header-nav a { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.theme-toggle { width: 42px; height: 42px; display: inline-grid; place-items: center; flex: none; border: 1px solid var(--border); border-radius: 13px; background: var(--card); color: var(--text); cursor: pointer; }
.theme-toggle:hover { background: var(--subtle); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }
.order-link, .button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; border-radius: 14px; padding: 11px 17px; background: var(--yellow); color: #1c1a17; font-size: 14px; font-weight: 800; text-decoration: none; }
.button.secondary { border: 1px solid var(--border); background: var(--card); color: var(--text); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 7px; padding: 22px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb span::before { content: "/"; margin-right: 7px; color: var(--muted); }
.hero { padding: 54px 0 38px; }
.eyebrow { margin: 0 0 10px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.hero h1 { max-width: 900px; margin: 0; font-size: clamp(36px, 6vw, 66px); line-height: 1; letter-spacing: -.045em; }
.hero-copy { max-width: 760px; margin: 18px 0 0; color: var(--sec); font-size: 17px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.freshness { margin-top: 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.section { padding: 34px 0 64px; }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 4vw, 38px); letter-spacing: -.03em; }
.section-head p { max-width: 540px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.category-grid, .product-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.category-card, .product-card, .related-card { border: 1px solid var(--border); border-radius: 22px; background: var(--card); overflow: hidden; }
.category-card { min-height: 210px; padding: 23px; display: flex; flex-direction: column; }
.category-card h2, .category-card h3 { margin: 0; font-size: 23px; }
.category-card p { margin: 10px 0 25px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.category-card a { margin-top: auto; color: var(--red); font-size: 14px; font-weight: 800; text-decoration: none; }
.compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-card { display: flex; min-width: 0; flex-direction: column; }
.product-card-media { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--subtle); }
.product-card-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.product-card-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 18px; }
.product-card h2, .product-card h3 { margin: 0; font-size: 18px; line-height: 1.25; }
.product-card h2 a, .product-card h3 a { text-decoration: none; }
.product-card p { margin: 9px 0 0; overflow-wrap: anywhere; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 15px; font-size: 13px; font-weight: 800; }
.stock { color: var(--green); }
.stock.out { color: var(--red); }
.product-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 18px; }
.product-actions .button { min-height: 42px; padding: 9px 13px; font-size: 13px; }
.category-nav { display: flex; gap: 8px; padding: 0 0 24px; overflow-x: auto; scrollbar-width: thin; }
.category-nav a { flex: none; border: 1px solid var(--border); border-radius: 999px; padding: 9px 13px; background: var(--card); font-size: 12px; font-weight: 800; text-decoration: none; }
.category-nav a[aria-current="page"] { border-color: var(--text); background: var(--text); color: var(--bg); }
.product-detail { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr); gap: 42px; align-items: start; padding: 28px 0 70px; }
.product-visual { position: sticky; top: 92px; overflow: hidden; border-radius: 28px; background: var(--subtle); }
.product-visual img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.product-copy h1 { margin: 8px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.045em; }
.product-description { margin: 20px 0 0; color: var(--sec); font-size: 17px; line-height: 1.65; }
.facts { margin: 28px 0 0; border-top: 1px solid var(--border); }
.fact { display: grid; grid-template-columns: 145px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.fact dt { color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; }
.order-notice { margin-top: 24px; border-radius: 18px; padding: 17px 18px; background: var(--notice); font-size: 13px; line-height: 1.55; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 18px; align-items: start; }
.prose, .local-card { border: 1px solid var(--border); border-radius: 22px; background: var(--card); padding: 24px; }
.prose p, .local-card p { margin: 0; color: var(--sec); font-size: 15px; line-height: 1.7; }
.prose p + p, .local-card p { margin-top: 14px; }
.local-card h3 { margin: 0; font-size: 20px; }
.local-card ul { margin: 17px 0 0; padding-left: 20px; color: var(--sec); font-size: 14px; line-height: 1.75; }
.local-card .button { margin-top: 19px; }
.related-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.text-link { border: 1px solid var(--border); border-radius: 999px; padding: 9px 13px; color: var(--red); font-size: 13px; font-weight: 800; text-decoration: none; }
.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--border); }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { padding: 19px 0; font-size: 16px; font-weight: 800; cursor: pointer; }
.faq p { margin: -3px 0 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.site-footer { margin-top: 24px; border-top: 1px solid var(--border); background: var(--card); }
.footer-inner { padding: 30px 0 36px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.footer-brand img { display: block; width: 88px; height: auto; }
.footer-brand p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 16px; }
.footer-links a { color: var(--muted); font-size: 12px; font-weight: 700; text-decoration: none; }

@media (max-width: 840px) {
  .header-nav { display: none; }
  .header-actions { margin-left: auto; }
  .category-grid, .product-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .product-visual { position: static; max-width: 620px; }
  .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner, .page, .footer-inner { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 62px; }
  .brand img { width: 65px; }
  .theme-toggle { width: 40px; height: 40px; }
  .order-link { min-height: 40px; padding: 8px 12px; font-size: 13px; }
  .hero { padding: 40px 0 28px; }
  .hero-copy { font-size: 15px; }
  .category-grid, .product-grid, .related-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .product-card { display: grid; grid-template-columns: 116px minmax(0, 1fr); }
  .product-card-media { aspect-ratio: 1 / 1; }
  .product-card-body { padding: 14px; }
  .product-actions { padding-top: 14px; }
  .product-actions .button { white-space: normal; text-align: center; }
  .product-actions .button.secondary { display: none; }
  .footer-inner { grid-template-columns: 1fr; align-items: start; }
  .footer-links { justify-content: flex-start; }
  .fact { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
