/* =========================================================
   Hatano Shoten Online Shop
   shop.html / shop.css / shop.js
   ========================================================= */

:root {
  --shop-ink: #0b1f2d;
  --shop-ink-2: #133247;
  --shop-ink-3: #1c4053;
  --shop-paper: #f7f3ed;
  --shop-paper-2: #eee6da;
  --shop-white: #ffffff;
  --shop-text: #243744;
  --shop-muted: #6f7c83;
  --shop-line: rgba(11, 31, 45, .13);
  --shop-accent: #f0a34d;
  --shop-accent-deep: #bc641d;
  --shop-accent-soft: #ffd6a4;
  --shop-green: #4fa984;
  --shop-coral: #e96f50;
  --shop-shadow: 0 26px 70px rgba(11, 31, 45, .13);
  --shop-shadow-lg: 0 50px 120px rgba(5, 19, 30, .28);
  --shop-radius: 28px;
  --shop-header-h: 78px;
  --shop-ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--shop-header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--shop-text);
  background: var(--shop-paper);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .035em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.shop-menu-open,
body.shop-panel-open { overflow: hidden; }

img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(240, 163, 77, .8);
  outline-offset: 4px;
}

::selection { color: var(--shop-ink); background: var(--shop-accent-soft); }

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

[hidden] { display: none !important; }

.sr-only,
.skip-link {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link:focus {
  position: fixed !important;
  top: 12px;
  left: 12px;
  z-index: 3000;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  clip: auto !important;
  color: var(--shop-ink);
  background: var(--shop-accent);
  border-radius: 10px;
  font-weight: 800;
}

.shop-container-wide {
  width: min(1480px, calc(100% - 72px));
  margin-inline: auto;
}

.shop-kicker {
  display: flex;
  margin: 0;
  align-items: center;
  gap: 12px;
  color: var(--shop-accent-deep);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
  line-height: 1.4;
}

.shop-kicker::before {
  width: 30px;
  height: 2px;
  flex: 0 0 30px;
  background: currentColor;
  content: "";
}

.shop-button {
  display: inline-flex;
  min-height: 58px;
  padding: 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .3s var(--shop-ease), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.shop-button svg { width: 19px; height: 19px; }
.shop-button:hover { transform: translateY(-3px); }
.shop-button-accent { color: var(--shop-ink); background: var(--shop-accent); box-shadow: 0 13px 30px rgba(188, 100, 29, .2); }
.shop-button-accent:hover { background: #f6b463; box-shadow: 0 17px 36px rgba(188, 100, 29, .26); }
.shop-button-outline { color: #fff; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.3); backdrop-filter: blur(12px); }
.shop-button-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.55); }
.shop-button-outline-dark { color: var(--shop-ink); background: transparent; border-color: rgba(11,31,45,.22); }
.shop-button-outline-dark:hover { background: rgba(11,31,45,.05); border-color: rgba(11,31,45,.4); }
.shop-button-light { color: var(--shop-ink); background: #fff; }
.shop-button-line { color: #fff; background: #38ad63; }
.shop-button-full { width: 100%; }

/* ---------- Preview notice ---------- */

.shop-demo-notice {
  display: flex;
  min-height: 36px;
  padding: 7px 28px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #fff;
  background: var(--shop-ink);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
}

.shop-demo-notice span {
  display: inline-flex;
  padding: 3px 8px;
  color: var(--shop-ink);
  background: var(--shop-accent);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
  white-space: nowrap;
}

.shop-demo-notice p { margin: 0; opacity: .82; }

/* ---------- Header ---------- */

.shop-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--shop-header-h);
  color: var(--shop-ink);
  background: cornsilk;
  border-bottom: 1px solid var(--shop-line);
  backdrop-filter: blur(18px);
  isolation: isolate;
}

.shop-header-inner {
  display: flex;
  position: relative;
  z-index: 3;
  height: 100%;
  align-items: center;
  gap: 30px;
}

.shop-brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.shop-brand-mark {
  display: grid;
  position: relative;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  color: var(--shop-ink);
  background: var(--shop-accent);
  border-radius: 13px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.3);
  overflow: hidden;
}

.shop-brand-mark::after {
  position: absolute;
  top: -11px;
  right: -9px;
  width: 28px;
  height: 28px;
  background: rgba(255,255,255,.22);
  border-radius: 50%;
  content: "";
}

.shop-brand-mark span {
  position: relative;
  z-index: 1;
  font-family: "Yu Mincho", serif;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
}

.shop-brand-copy { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; white-space: nowrap; }
.shop-brand-copy strong { font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.shop-brand-copy small { color: var(--shop-muted); font-family: Arial, Helvetica, sans-serif; font-size: 7px; font-weight: 800; letter-spacing: .16em; }

.shop-global-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
}

.shop-global-nav a {
  position: relative;
  padding: 10px 0;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.shop-global-nav a::after {
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  background: var(--shop-accent-deep);
  border-radius: 99px;
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform .35s var(--shop-ease);
}

.shop-global-nav a:hover::after { transform: scaleX(1); transform-origin: left center; }

.shop-header-actions { display: flex; align-items: center; gap: 10px; }

.shop-home-link,
.shop-cart-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--shop-line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

.shop-home-link:hover,
.shop-cart-button:hover { background: #fff; border-color: rgba(11,31,45,.25); transform: translateY(-2px); }
.shop-home-link svg,
.shop-cart-button svg { width: 17px; height: 17px; }

.shop-cart-button { position: relative; padding-right: 10px; color: #fff; background: var(--shop-ink); border-color: var(--shop-ink); }
.shop-cart-button:hover { color: #fff; background: var(--shop-ink-2); border-color: var(--shop-ink-2); }

.shop-cart-count {
  display: grid;
  min-width: 24px;
  height: 24px;
  padding-inline: 5px;
  place-items: center;
  color: var(--shop-ink);
  background: var(--shop-accent);
  border-radius: 999px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 10px;
  line-height: 1;
}

.shop-menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  margin-left: auto;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  color: var(--shop-ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.shop-menu-toggle span {
  display: block;
  width: 23px;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--shop-ease), opacity .2s ease;
}

.shop-menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.shop-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.shop-menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.shop-mobile-menu {
  visibility: hidden;
  position: fixed;
  inset: 0;
  z-index: 1;
  color: #fff;
  background-color: var(--shop-ink);
  background-image:
    radial-gradient(circle at 78% 15%, rgba(240,163,77,.24), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(79,169,132,.17), transparent 30%),
    linear-gradient(135deg, #081a27 0%, #102d3e 100%);
  opacity: 0;
  pointer-events: none;
  transition: visibility .35s, opacity .3s ease;
}

.shop-mobile-menu::after {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.shop-mobile-menu.is-open { visibility: visible; opacity: 1; pointer-events: auto; }

.shop-mobile-menu-inner {
  display: flex;
  position: relative;
  z-index: 2;
  width: min(700px, calc(100% - 44px));
  height: 100%;
  margin-inline: auto;
  padding: calc(var(--shop-header-h) + 42px) 0 38px;
  justify-content: center;
  flex-direction: column;
  overflow-y: auto;
}

.shop-mobile-menu-label {
  margin: 0 0 12px;
  color: var(--shop-accent-soft);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}

.shop-mobile-menu nav { display: flex; flex-direction: column; }
.shop-mobile-menu nav a { display: flex; padding: 14px 0; align-items: baseline; gap: 16px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: clamp(21px, 5vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.shop-mobile-menu nav a span { color: var(--shop-accent); font-family: Arial, Helvetica, sans-serif; font-size: 9px; letter-spacing: .15em; }

.shop-mobile-menu-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
.shop-mobile-menu-actions button,
.shop-mobile-menu-actions a { display: flex; min-height: 54px; padding: 12px; align-items: center; justify-content: center; gap: 9px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.22); border-radius: 14px; font-size: 12px; font-weight: 800; cursor: pointer; }
.shop-mobile-menu-actions button { color: var(--shop-ink); background: var(--shop-accent); border-color: var(--shop-accent); }
.shop-mobile-menu-actions svg { width: 19px; height: 19px; }

body.shop-menu-open .shop-header { color: #fff; background: var(--shop-ink); border-color: rgba(255,255,255,.12); backdrop-filter: none; }
body.shop-menu-open .shop-brand-copy small { color: rgba(255,255,255,.65); }
body.shop-menu-open .shop-menu-toggle { color: #fff; }

/* ---------- Hero ---------- */

.shop-hero {
  position: relative;
  min-height: 850px;
  padding: 95px 0 105px;
  color: #fff;
  background: var(--shop-ink);
  isolation: isolate;
  overflow: hidden;
}

.shop-hero::before {
  position: absolute;
  top: -25%;
  left: -8%;
  z-index: -2;
  width: 56vw;
  height: 56vw;
  background: radial-gradient(circle, rgba(79,169,132,.18), transparent 64%);
  border-radius: 50%;
  content: "";
  filter: blur(5px);
}

.shop-hero::after {
  position: absolute;
  right: -8%;
  bottom: -42%;
  z-index: -2;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(240,163,77,.23), transparent 65%);
  border-radius: 50%;
  content: "";
}

.shop-hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
}

.shop-hero-inner {
  display: grid;
  min-height: 650px;
  align-items: center;
  grid-template-columns: minmax(500px, .9fr) minmax(560px, 1.1fr);
  gap: 70px;
}

.shop-hero-copy { position: relative; z-index: 3; max-width: 670px; }
.shop-hero-copy .shop-kicker { color: var(--shop-accent-soft); }
.shop-hero-copy .shop-kicker span { color: var(--shop-ink); background: var(--shop-accent); padding: 5px 9px; border-radius: 999px; }

.shop-hero h1 { margin: 27px 0 0; color: #fff; letter-spacing: -.075em; line-height: .98; }
.shop-hero h1 > span { display: block; margin-bottom: 14px; color: rgba(255,255,255,.82); font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.04em; }
.shop-hero h1 strong { display: block; font-size: clamp(72px, 7.2vw, 118px); font-weight: 900; }

.shop-hero-lead { max-width: 580px; margin: 34px 0 0; color: rgba(255,255,255,.74); font-size: 15px; line-height: 2; }
.shop-hero-actions { display: flex; margin-top: 36px; flex-wrap: wrap; gap: 12px; }

.shop-hero-points { display: flex; margin: 45px 0 0; padding: 0; list-style: none; }
.shop-hero-points li { display: flex; min-width: 0; padding: 0 24px; align-items: center; gap: 10px; border-left: 1px solid rgba(255,255,255,.17); }
.shop-hero-points li:first-child { padding-left: 0; border-left: 0; }
.shop-hero-points svg { width: 24px; height: 24px; color: var(--shop-accent); flex: 0 0 24px; }
.shop-hero-points span { display: flex; flex-direction: column; color: rgba(255,255,255,.64); font-size: 9px; line-height: 1.5; }
.shop-hero-points b { color: #fff; font-size: 11px; }

.shop-hero-visual { position: relative; min-height: 650px; perspective: 1200px; }
.shop-hero-photo { position: absolute; margin: 0; background: var(--shop-ink-2); box-shadow: var(--shop-shadow-lg); overflow: hidden; }
.shop-hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--shop-ease); }
.shop-hero-photo:hover img { transform: scale(1.045); }

.shop-hero-photo-main { top: 5%; right: 3%; width: 68%; height: 80%; border-radius: 160px 30px 30px 30px; transform: rotate(2deg); }
.shop-hero-photo-main::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,19,28,.75), transparent 44%); content: ""; }
.shop-hero-photo-main figcaption { position: absolute; right: 28px; bottom: 28px; left: 32px; z-index: 2; display: flex; flex-direction: column; line-height: 1.3; }
.shop-hero-photo-main figcaption small { color: var(--shop-accent-soft); font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 800; letter-spacing: .2em; }
.shop-hero-photo-main figcaption strong { margin-top: 7px; color: #fff; font-size: 17px; }

.shop-hero-photo-rice { bottom: 2%; left: 0; width: 34%; height: 38%; border: 8px solid var(--shop-ink); border-radius: 26px 26px 90px 26px; transform: rotate(-5deg); }
.shop-hero-photo-gift { top: 3%; left: 2%; width: 29%; height: 29%; border: 8px solid var(--shop-ink); border-radius: 25px 85px 25px 25px; transform: rotate(5deg); }

.shop-hero-stamp {
  display: grid;
  position: absolute;
  right: 0;
  bottom: 5%;
  z-index: 4;
  width: 142px;
  height: 142px;
  place-items: center;
  align-content: center;
  color: var(--shop-ink);
  background: var(--shop-accent);
  border: 8px solid var(--shop-ink);
  border-radius: 50%;
  text-align: center;
  transform: rotate(7deg);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.shop-hero-stamp b { font-family: Arial, Helvetica, sans-serif; font-size: 35px; line-height: 1; }
.shop-hero-stamp small { margin-top: 6px; font-family: Arial, Helvetica, sans-serif; font-size: 7px; font-weight: 900; letter-spacing: .12em; line-height: 1.35; }

/* ---------- Marquee ---------- */

.shop-marquee { color: var(--shop-ink); background: var(--shop-accent); overflow: hidden; }
.shop-marquee > div { display: flex; width: max-content; padding: 15px 0; align-items: center; animation: shopMarquee 28s linear infinite; }
.shop-marquee span { padding: 0 22px; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; letter-spacing: .18em; white-space: nowrap; }
.shop-marquee i { font-size: 7px; font-style: normal; opacity: .48; }
@keyframes shopMarquee { to { transform: translateX(-50%); } }

/* ---------- Shared section headings ---------- */

.shop-section-heading {
  display: grid;
  margin-bottom: 56px;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .55fr);
  gap: 60px;
}

.shop-section-heading h2,
.shop-products-heading h2 { margin: 16px 0 0; color: var(--shop-ink); font-size: clamp(46px, 5vw, 76px); font-weight: 900; letter-spacing: -.065em; line-height: 1.08; }
.shop-section-heading > p { margin: 0; color: var(--shop-muted); font-size: 13px; line-height: 2; }
.shop-section-heading-light h2 { color: #fff; }
.shop-section-heading-light > p { color: rgba(255,255,255,.65); }
.shop-section-heading-light .shop-kicker { color: var(--shop-accent-soft); }

/* ---------- Categories ---------- */

.shop-categories { padding: 125px 0 135px; background: var(--shop-paper); }
.shop-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }

.shop-category-card {
  display: flex;
  position: relative;
  min-height: 330px;
  padding: 28px;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  text-align: left;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  isolation: isolate;
  transition: transform .4s var(--shop-ease), box-shadow .4s ease;
}

.shop-category-card::before,
.shop-category-card::after { position: absolute; z-index: -1; border-radius: 50%; content: ""; transition: transform .5s var(--shop-ease); }
.shop-category-card::before { top: -80px; right: -65px; width: 210px; height: 210px; background: rgba(255,255,255,.24); }
.shop-category-card::after { right: 42px; bottom: 44px; width: 90px; height: 90px; border: 1px solid rgba(255,255,255,.3); }
.shop-category-card:hover { transform: translateY(-9px); box-shadow: var(--shop-shadow); }
.shop-category-card:hover::before { transform: scale(1.2) translate(-10px, 10px); }
.shop-category-food { color: #fff; background: var(--shop-ink-2); }
.shop-category-gift { color: var(--shop-ink); background: var(--shop-accent); }
.shop-category-daily { color: #fff; background: var(--shop-green); }
.shop-category-reuse { color: var(--shop-ink); background: #dcd0c2; }

.shop-category-number { font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .18em; opacity: .72; }
.shop-category-card > div { width: 100%; }
.shop-category-card small { display: block; margin-bottom: 7px; font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .18em; opacity: .68; }
.shop-category-card strong { display: block; font-size: clamp(23px, 2.1vw, 32px); font-weight: 900; letter-spacing: -.04em; line-height: 1.25; }
.shop-category-card p { max-width: 230px; margin: 13px 0 0; font-size: 11px; line-height: 1.8; opacity: .72; }
.shop-category-card > svg { position: absolute; top: 27px; right: 27px; width: 24px; height: 24px; transition: transform .35s var(--shop-ease); }
.shop-category-card:hover > svg { transform: translateX(6px); }

/* ---------- Products ---------- */

.shop-products { padding: 130px 0 150px; background: #fff; }
.shop-products-heading { display: flex; margin-bottom: 45px; align-items: end; justify-content: space-between; gap: 30px; }
.shop-products-heading > p { margin: 0 0 7px; color: var(--shop-muted); font-size: 11px; }
.shop-products-heading > p span { color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 18px; font-weight: 900; }

.shop-toolbar {
  display: grid;
  margin-bottom: 38px;
  padding: 18px;
  align-items: center;
  grid-template-columns: minmax(260px, .75fr) minmax(430px, 1.25fr) 180px;
  gap: 16px;
  background: var(--shop-paper);
  border: 1px solid rgba(11,31,45,.08);
  border-radius: 22px;
}

.shop-search-box { display: flex; min-height: 48px; padding: 0 15px; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--shop-line); border-radius: 14px; }
.shop-search-box svg { width: 19px; height: 19px; color: var(--shop-muted); flex: 0 0 19px; }
.shop-search-box input { width: 100%; min-width: 0; color: var(--shop-ink); background: transparent; border: 0; outline: 0; font-size: 12px; }
.shop-search-box input::placeholder { color: #98a1a5; }

.shop-filter-tabs { display: flex; align-items: center; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.shop-filter-tabs::-webkit-scrollbar { display: none; }
.shop-filter-tabs button { min-height: 42px; padding: 10px 14px; color: var(--shop-muted); background: transparent; border: 1px solid transparent; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: color .25s ease, background .25s ease, border-color .25s ease; }
.shop-filter-tabs button:hover { color: var(--shop-ink); background: rgba(255,255,255,.72); }
.shop-filter-tabs button.is-active { color: #fff; background: var(--shop-ink); border-color: var(--shop-ink); }

.shop-sort-box { display: flex; position: relative; min-height: 48px; padding: 0 38px 0 14px; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--shop-line); border-radius: 14px; }
.shop-sort-box > span { color: var(--shop-muted); font-size: 8px; font-weight: 800; white-space: nowrap; }
.shop-sort-box select { width: 100%; min-width: 0; color: var(--shop-ink); background: transparent; border: 0; outline: 0; font-size: 10px; font-weight: 800; appearance: none; cursor: pointer; }
.shop-sort-box svg { position: absolute; right: 13px; width: 17px; height: 17px; pointer-events: none; }

.shop-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 42px 18px; }

.product-card { position: relative; min-width: 0; }
.product-card.is-featured { grid-column: span 2; }

.product-card-media {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: var(--shop-paper-2);
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  cursor: pointer;
}

.product-card.is-featured .product-card-media { aspect-ratio: 8 / 3; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s var(--shop-ease), filter .4s ease; }
.product-card-media:hover img { transform: scale(1.055); filter: saturate(1.06); }

.product-badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 6px 10px; color: var(--shop-ink); background: rgba(255,255,255,.9); border-radius: 999px; font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .1em; backdrop-filter: blur(8px); }
.product-view-label { display: inline-flex; position: absolute; right: 14px; bottom: 14px; z-index: 2; min-height: 38px; padding: 9px 12px; align-items: center; gap: 7px; color: #fff; background: rgba(11,31,45,.86); border-radius: 999px; font-size: 9px; font-weight: 800; transform: translateY(6px); opacity: 0; transition: transform .3s var(--shop-ease), opacity .3s ease; }
.product-view-label svg { width: 14px; height: 14px; }
.product-card-media:hover .product-view-label { transform: translateY(0); opacity: 1; }

.product-card-body { padding: 19px 3px 0; }
.product-card-category { margin: 0; color: var(--shop-accent-deep); font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.product-card-title-row { display: flex; margin-top: 7px; align-items: flex-start; justify-content: space-between; gap: 14px; }
.product-card h3 { margin: 0; color: var(--shop-ink); font-size: 16px; font-weight: 900; letter-spacing: -.02em; line-height: 1.5; }
.product-card-price { flex: 0 0 auto; margin: 1px 0 0; color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 15px; font-weight: 900; line-height: 1.4; }
.product-card-price small { margin-left: 2px; font-family: inherit; font-size: 8px; }
.product-card-description { min-height: 44px; margin: 10px 0 0; color: var(--shop-muted); font-size: 10px; line-height: 1.8; }
.product-card-actions { display: flex; margin-top: 15px; align-items: center; justify-content: space-between; gap: 10px; }
.product-card-size { color: var(--shop-muted); font-size: 9px; }
.product-add-button { display: inline-flex; min-height: 40px; padding: 9px 14px; align-items: center; justify-content: center; gap: 7px; color: #fff; background: var(--shop-ink); border: 0; border-radius: 999px; font-size: 9px; font-weight: 800; cursor: pointer; transition: transform .25s var(--shop-ease), background .25s ease; }
.product-add-button:hover { background: var(--shop-accent-deep); transform: translateY(-2px); }
.product-add-button svg { width: 15px; height: 15px; }

.shop-no-results { padding: 90px 20px; text-align: center; color: var(--shop-muted); }
.shop-no-results > svg { width: 42px; height: 42px; margin: 0 auto 22px; color: var(--shop-accent-deep); }
.shop-no-results h3 { margin: 0; color: var(--shop-ink); font-size: 24px; }
.shop-no-results p { margin: 10px 0 0; font-size: 12px; }
.shop-no-results button { margin-top: 23px; padding: 10px 16px; color: var(--shop-ink); background: transparent; border: 1px solid var(--shop-line); border-radius: 999px; font-size: 10px; font-weight: 800; cursor: pointer; }
.shop-noscript { padding: 30px; color: #7d3b2c; background: #fff0eb; border-radius: 14px; }

/* ---------- Feature ---------- */

.shop-feature { padding: 140px 0; background: var(--shop-paper-2); }
.shop-feature-card { display: grid; grid-template-columns: minmax(420px, .95fr) minmax(500px, 1.05fr); background: #fff; border-radius: 35px 35px 120px 35px; box-shadow: var(--shop-shadow); overflow: hidden; }
.shop-feature-media { position: relative; min-height: 720px; overflow: hidden; }
.shop-feature-media::after { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,23,34,.58), transparent 48%); content: ""; }
.shop-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-feature-media > span { position: absolute; bottom: 30px; left: 32px; z-index: 2; color: #fff; font-family: Arial, Helvetica, sans-serif; font-size: 10px; font-weight: 900; letter-spacing: .2em; }
.shop-feature-copy { padding: clamp(55px, 6vw, 95px); align-self: center; }
.shop-feature-copy h2 { margin: 20px 0 0; color: var(--shop-ink); font-size: clamp(40px, 4.4vw, 66px); font-weight: 900; letter-spacing: -.06em; line-height: 1.28; }
.shop-feature-copy > p:not(.shop-kicker) { margin: 28px 0 0; color: var(--shop-muted); font-size: 13px; line-height: 2.05; }
.shop-feature-copy ul { margin: 38px 0 0; padding: 0; list-style: none; }
.shop-feature-copy li { display: grid; padding: 21px 0; grid-template-columns: 44px 1fr; gap: 18px; border-top: 1px solid var(--shop-line); }
.shop-feature-copy li > span { display: grid; width: 38px; height: 38px; place-items: center; color: var(--shop-ink); background: var(--shop-accent); border-radius: 50%; font-family: Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; }
.shop-feature-copy li strong { color: var(--shop-ink); font-size: 13px; }
.shop-feature-copy li p { margin: 5px 0 0; color: var(--shop-muted); font-size: 10px; line-height: 1.8; }

/* ---------- Gift banner ---------- */

.shop-gift-banner { padding: 0 0 135px; background: var(--shop-paper-2); }
.shop-gift-inner { display: grid; min-height: 330px; padding: 55px 65px; align-items: center; grid-template-columns: minmax(0, 1fr) auto; gap: 55px; color: #fff; background: var(--shop-ink-2); border-radius: 30px 100px 30px 30px; overflow: hidden; position: relative; isolation: isolate; }
.shop-gift-inner::before { position: absolute; top: -180px; right: -100px; z-index: -1; width: 430px; height: 430px; background: radial-gradient(circle, rgba(240,163,77,.45), transparent 68%); border-radius: 50%; content: ""; }
.shop-gift-inner::after { position: absolute; bottom: -110px; left: 40%; z-index: -1; width: 300px; height: 300px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; content: ""; }
.shop-gift-inner .shop-kicker { color: var(--shop-accent-soft); }
.shop-gift-inner h2 { margin: 18px 0 0; font-size: clamp(36px, 4vw, 58px); font-weight: 900; letter-spacing: -.055em; line-height: 1.2; }
.shop-gift-inner > div > p:not(.shop-kicker) { max-width: 690px; margin: 22px 0 0; color: rgba(255,255,255,.65); font-size: 11px; line-height: 1.9; }
.shop-gift-actions { display: flex; align-items: center; flex-direction: column; gap: 10px; }
.shop-gift-actions .shop-button { width: 210px; }

/* ---------- Shopping guide ---------- */

.shop-guide { padding: 140px 0 150px; color: #fff; background: var(--shop-ink); }
.shop-guide-steps { display: grid; margin: 0; padding: 0; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; counter-reset: none; }
.shop-guide-steps li { position: relative; min-height: 330px; padding: 31px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.1); border-radius: 24px; overflow: hidden; }
.shop-guide-steps li::after { position: absolute; right: -35px; bottom: -50px; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.shop-guide-steps li > span { display: block; color: var(--shop-accent-soft); font-family: Arial, Helvetica, sans-serif; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.shop-guide-steps svg { width: 44px; height: 44px; margin-top: 55px; color: var(--shop-accent); }
.shop-guide-steps h3 { margin: 22px 0 0; font-size: 23px; font-weight: 900; }
.shop-guide-steps p { margin: 13px 0 0; color: rgba(255,255,255,.62); font-size: 10px; line-height: 1.9; }

.shop-guide-notes { display: grid; margin-top: 55px; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.shop-guide-notes article { display: grid; grid-template-columns: 35px 1fr; gap: 17px; }
.shop-guide-notes svg { width: 29px; height: 29px; color: var(--shop-accent); }
.shop-guide-notes h3 { margin: 0; font-size: 12px; }
.shop-guide-notes p { margin: 7px 0 0; color: rgba(255,255,255,.56); font-size: 9px; line-height: 1.8; }

/* ---------- FAQ ---------- */

.shop-faq { padding: 140px 0; background: #fff; }
.shop-faq-layout { display: grid; grid-template-columns: minmax(260px, .6fr) minmax(500px, 1.4fr); gap: 100px; }
.shop-faq-heading { align-self: start; position: sticky; top: calc(var(--shop-header-h) + 35px); }
.shop-faq-heading h2 { margin: 18px 0 0; color: var(--shop-ink); font-size: clamp(48px, 5vw, 72px); font-weight: 900; letter-spacing: -.06em; line-height: 1.1; }
.shop-faq-heading > p:not(.shop-kicker) { margin: 23px 0 0; color: var(--shop-muted); font-size: 11px; line-height: 1.9; }
.shop-faq-list details { border-top: 1px solid var(--shop-line); }
.shop-faq-list details:last-child { border-bottom: 1px solid var(--shop-line); }
.shop-faq-list summary { display: flex; min-height: 88px; padding: 22px 0; align-items: center; justify-content: space-between; gap: 20px; color: var(--shop-ink); font-size: 14px; font-weight: 800; cursor: pointer; list-style: none; }
.shop-faq-list summary::-webkit-details-marker { display: none; }
.shop-faq-list summary span { position: relative; width: 35px; height: 35px; flex: 0 0 35px; border: 1px solid var(--shop-line); border-radius: 50%; }
.shop-faq-list summary span::before,
.shop-faq-list summary span::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 1px; background: var(--shop-ink); content: ""; transform: translate(-50%,-50%); transition: transform .3s ease; }
.shop-faq-list summary span::after { transform: translate(-50%,-50%) rotate(90deg); }
.shop-faq-list details[open] summary span::after { transform: translate(-50%,-50%) rotate(0); }
.shop-faq-list details p { margin: -3px 0 0; padding: 0 65px 28px 0; color: var(--shop-muted); font-size: 11px; line-height: 2; }

/* ---------- Closing ---------- */

.shop-closing { padding: 105px 0; color: #fff; background: var(--shop-accent-deep); }
.shop-closing-inner { display: grid; align-items: center; grid-template-columns: 1fr auto; gap: 60px; }
.shop-closing small { font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .2em; opacity: .7; }
.shop-closing h2 { margin: 14px 0 0; font-size: clamp(39px, 4.5vw, 64px); font-weight: 900; letter-spacing: -.06em; line-height: 1.25; }
.shop-closing-contact { display: flex; flex-direction: column; gap: 11px; }
.shop-closing-contact a { display: flex; min-width: 290px; min-height: 75px; padding: 15px 20px; align-items: center; gap: 15px; color: var(--shop-ink); background: #fff; border-radius: 17px; }
.shop-closing-contact a:last-child { color: #fff; background: var(--shop-ink); }
.shop-closing-contact svg { width: 27px; height: 27px; flex: 0 0 27px; }
.shop-closing-contact span { display: flex; flex-direction: column; line-height: 1.35; }
.shop-closing-contact small { color: inherit; font-family: inherit; font-size: 8px; letter-spacing: .04em; opacity: .68; }
.shop-closing-contact strong { margin-top: 5px; font-size: 15px; }

/* ---------- Footer ---------- */

.shop-footer { padding: 78px 0 28px; color: #fff; background: #071722; }
.shop-footer-main { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.shop-footer .shop-brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
.shop-footer .shop-brand-copy strong { color: #fff; }
.shop-footer .shop-brand-copy small { color: rgba(255,255,255,.53); }
.shop-footer-brand > p { margin: 24px 0 0; color: rgba(255,255,255,.5); font-size: 10px; line-height: 1.9; }
.shop-footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; }
.shop-footer-links > div { display: flex; flex-direction: column; gap: 9px; }
.shop-footer-links strong { margin-bottom: 8px; color: var(--shop-accent-soft); font-family: Arial, Helvetica, sans-serif; font-size: 8px; letter-spacing: .17em; }
.shop-footer-links a { color: rgba(255,255,255,.64); font-size: 10px; transition: color .25s ease; }
.shop-footer-links a:hover { color: #fff; }
.shop-footer-bottom { display: flex; margin-top: 60px; padding-top: 22px; align-items: center; justify-content: space-between; gap: 25px; border-top: 1px solid rgba(255,255,255,.1); }
.shop-footer-bottom p,
.shop-footer-bottom small { margin: 0; color: rgba(255,255,255,.36); font-size: 8px; }

/* ---------- Overlay, cart and dialogs ---------- */

.shop-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(3, 12, 19, .72);
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity .3s ease;
}

.shop-overlay.is-active { opacity: 1; }

.cart-drawer {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1300;
  width: min(510px, 100%);
  color: var(--shop-text);
  background: #fff;
  flex-direction: column;
  box-shadow: -30px 0 80px rgba(0,0,0,.23);
  transform: translateX(105%);
  transition: transform .45s var(--shop-ease);
}

.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer-header { display: flex; min-height: 105px; padding: 24px 28px; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--shop-line); }
.cart-drawer-header small { color: var(--shop-accent-deep); font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.cart-drawer-header h2 { margin: 6px 0 0; color: var(--shop-ink); font-size: 22px; letter-spacing: -.03em; }
.cart-drawer-header button,
.shop-dialog-close { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; color: var(--shop-ink); background: var(--shop-paper); border: 1px solid var(--shop-line); border-radius: 50%; cursor: pointer; }
.cart-drawer-header button svg,
.shop-dialog-close svg { width: 20px; height: 20px; }
.cart-drawer-body { flex: 1; min-height: 0; padding: 22px 28px; overflow-y: auto; }
.cart-empty { display: flex; min-height: 100%; padding: 50px 20px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.cart-empty > svg { width: 52px; height: 52px; color: var(--shop-accent-deep); }
.cart-empty h3 { margin: 22px 0 0; color: var(--shop-ink); font-size: 22px; }
.cart-empty p { max-width: 290px; margin: 10px 0 0; color: var(--shop-muted); font-size: 10px; }
.cart-empty button { margin-top: 24px; padding: 10px 15px; color: var(--shop-ink); background: transparent; border: 1px solid var(--shop-line); border-radius: 999px; font-size: 10px; font-weight: 800; cursor: pointer; }

.cart-items { display: flex; flex-direction: column; gap: 16px; }
.cart-item { display: grid; padding-bottom: 16px; grid-template-columns: 105px 1fr; gap: 15px; border-bottom: 1px solid var(--shop-line); }
.cart-item img { width: 105px; height: 88px; object-fit: cover; border-radius: 13px; }
.cart-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cart-item h3 { margin: 0; color: var(--shop-ink); font-size: 12px; line-height: 1.5; }
.cart-item-remove { padding: 2px; color: var(--shop-muted); background: transparent; border: 0; cursor: pointer; }
.cart-item-remove svg { width: 17px; height: 17px; }
.cart-item-meta { margin: 4px 0 0; color: var(--shop-muted); font-size: 8px; }
.cart-item-bottom { display: flex; margin-top: 10px; align-items: center; justify-content: space-between; gap: 10px; }
.cart-item-price { color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: 900; }

.quantity-control { display: inline-flex; height: 38px; align-items: center; border: 1px solid var(--shop-line); border-radius: 999px; overflow: hidden; }
.quantity-control button { display: grid; width: 35px; height: 100%; padding: 0; place-items: center; background: transparent; border: 0; cursor: pointer; }
.quantity-control button:hover { background: var(--shop-paper); }
.quantity-control button svg { width: 14px; height: 14px; }
.quantity-control input { width: 36px; height: 100%; padding: 0; text-align: center; color: var(--shop-ink); background: transparent; border: 0; outline: 0; font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 900; -moz-appearance: textfield; }
.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }

.cart-drawer-footer { padding: 22px 28px calc(25px + env(safe-area-inset-bottom)); border-top: 1px solid var(--shop-line); background: var(--shop-paper); }
.cart-summary-row { display: flex; align-items: baseline; justify-content: space-between; }
.cart-summary-row span { color: var(--shop-muted); font-size: 10px; }
.cart-summary-row strong { color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 27px; }
.cart-shipping-note { margin: 6px 0 18px; color: var(--shop-muted); font-size: 8px; }
.cart-continue { display: block; margin: 13px auto 0; padding: 5px; color: var(--shop-muted); background: transparent; border: 0; font-size: 9px; text-decoration: underline; cursor: pointer; }

.product-dialog,
.checkout-dialog {
  visibility: hidden;
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1400;
  width: min(1120px, calc(100% - 48px));
  max-height: calc(100svh - 48px);
  color: var(--shop-text);
  background: #fff;
  border-radius: 30px;
  box-shadow: var(--shop-shadow-lg);
  opacity: 0;
  overflow: auto;
  transform: translate(-50%, -46%) scale(.97);
  transition: visibility .35s, opacity .3s ease, transform .4s var(--shop-ease);
}

.product-dialog.is-open,
.checkout-dialog.is-open { visibility: visible; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.shop-dialog-close { position: absolute; top: 18px; right: 18px; z-index: 4; background: rgba(255,255,255,.9); }

.product-dialog-grid { display: grid; min-height: 620px; grid-template-columns: 1fr 1fr; }
.product-dialog-grid > figure { margin: 0; min-height: 620px; background: var(--shop-paper-2); overflow: hidden; border-radius: 30px 0 0 30px; }
.product-dialog-grid > figure img { width: 100%; height: 100%; object-fit: cover; }
.product-dialog-copy { padding: 80px 70px 65px; align-self: center; }
.product-dialog-category { margin: 0; color: var(--shop-accent-deep); font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .17em; }
.product-dialog-copy h2 { margin: 12px 0 0; color: var(--shop-ink); font-size: clamp(34px, 3.5vw, 54px); font-weight: 900; letter-spacing: -.055em; line-height: 1.25; }
.product-dialog-price { margin: 18px 0 0; color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 26px; font-weight: 900; }
.product-dialog-description { margin: 25px 0 0; color: var(--shop-muted); font-size: 11px; line-height: 2; }
.product-dialog-meta { margin: 28px 0 0; border-top: 1px solid var(--shop-line); }
.product-dialog-meta > div { display: grid; padding: 12px 0; grid-template-columns: 85px 1fr; border-bottom: 1px solid var(--shop-line); font-size: 9px; }
.product-dialog-meta dt { color: var(--shop-muted); }
.product-dialog-meta dd { margin: 0; color: var(--shop-ink); font-weight: 700; }
.product-dialog-order { display: flex; margin-top: 30px; align-items: center; gap: 12px; }
.product-dialog-order .shop-button { flex: 1; }

/* ---------- Checkout ---------- */

.checkout-dialog { width: min(1180px, calc(100% - 48px)); padding: 52px 58px 48px; }
.checkout-header { padding-right: 55px; }
.checkout-header > p { margin: 0; color: var(--shop-accent-deep); font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .2em; }
.checkout-header h2 { margin: 7px 0 0; color: var(--shop-ink); font-size: 30px; letter-spacing: -.04em; }
.checkout-progress { display: grid; margin: 30px 0 0; padding: 0; grid-template-columns: repeat(3, 1fr); list-style: none; }
.checkout-progress li { display: flex; position: relative; align-items: center; gap: 9px; color: #9ba4a8; font-size: 9px; font-weight: 800; }
.checkout-progress li::after { position: absolute; top: 15px; right: 15px; left: 43px; height: 1px; background: var(--shop-line); content: ""; }
.checkout-progress li:last-child::after { display: none; }
.checkout-progress li span { display: grid; position: relative; z-index: 1; width: 30px; height: 30px; place-items: center; background: var(--shop-paper-2); border-radius: 50%; font-family: Arial, Helvetica, sans-serif; }
.checkout-progress li.is-active { color: var(--shop-ink); }
.checkout-progress li.is-active span { color: var(--shop-ink); background: var(--shop-accent); }
.checkout-step { margin-top: 38px; }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 35px; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; }
.checkout-field { grid-column: 1 / -1; }
.checkout-field-half { grid-column: span 1; }
.checkout-field-postal { max-width: 260px; }
.checkout-field label { display: flex; margin-bottom: 7px; align-items: center; gap: 7px; color: var(--shop-ink); font-size: 10px; font-weight: 800; }
.checkout-field label em { padding: 2px 6px; color: #fff; background: var(--shop-coral); border-radius: 999px; font-size: 7px; font-style: normal; }
.checkout-field input,
.checkout-field textarea { width: 100%; padding: 13px 14px; color: var(--shop-ink); background: var(--shop-paper); border: 1px solid transparent; border-radius: 12px; outline: 0; font-size: 12px; transition: border-color .2s ease, background .2s ease; }
.checkout-field input { min-height: 49px; }
.checkout-field textarea { resize: vertical; }
.checkout-field input:focus,
.checkout-field textarea:focus { background: #fff; border-color: var(--shop-accent-deep); }
.checkout-field.has-error input,
.checkout-field.has-error textarea { background: #fff6f3; border-color: var(--shop-coral); }
.field-error { display: block; min-height: 16px; margin-top: 3px; color: #bd4f38; font-size: 8px; }
.checkout-consent { display: flex; grid-column: 1 / -1; align-items: flex-start; gap: 10px; color: var(--shop-muted); font-size: 9px; cursor: pointer; }
.checkout-consent input { margin-top: 6px; accent-color: var(--shop-accent-deep); }
.checkout-consent.has-error { color: #bd4f38; }
.checkout-mini-summary { padding: 24px; background: var(--shop-paper); border-radius: 18px; align-self: start; }
.checkout-mini-summary h3 { margin: 0 0 16px; color: var(--shop-ink); font-size: 13px; }
.checkout-mini-item { display: flex; padding: 10px 0; justify-content: space-between; gap: 15px; border-top: 1px solid var(--shop-line); font-size: 9px; }
.checkout-mini-item span { color: var(--shop-muted); }
.checkout-mini-summary > div:last-of-type { display: flex; margin-top: 13px; padding-top: 14px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--shop-line); }
.checkout-mini-summary > div:last-of-type span { color: var(--shop-muted); font-size: 9px; }
.checkout-mini-summary > div:last-of-type strong { color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 22px; }
.checkout-mini-summary > p { margin: 7px 0 0; color: var(--shop-muted); font-size: 8px; }
.checkout-actions { display: flex; margin-top: 30px; justify-content: flex-end; }
.checkout-actions-split { justify-content: space-between; }
.checkout-confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.checkout-confirm-grid > section { padding: 28px; background: var(--shop-paper); border-radius: 18px; }
.checkout-confirm-grid h3 { margin: 0 0 18px; color: var(--shop-ink); font-size: 15px; }
.checkout-confirm-grid dl { margin: 0; }
.checkout-confirm-grid dl > div { display: grid; padding: 9px 0; grid-template-columns: 105px 1fr; border-top: 1px solid var(--shop-line); font-size: 9px; }
.checkout-confirm-grid dt { color: var(--shop-muted); }
.checkout-confirm-grid dd { margin: 0; color: var(--shop-ink); font-weight: 700; word-break: break-word; }
.checkout-confirm-item { display: flex; padding: 10px 0; justify-content: space-between; gap: 15px; border-top: 1px solid var(--shop-line); font-size: 9px; }
.checkout-confirm-item span { color: var(--shop-muted); }
.checkout-confirm-total { display: flex; margin-top: 14px; padding-top: 14px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--shop-line); }
.checkout-confirm-total span { color: var(--shop-muted); font-size: 9px; }
.checkout-confirm-total strong { color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 24px; }
.checkout-confirm-grid section > p { margin: 5px 0 0; color: var(--shop-muted); font-size: 8px; }
.checkout-demo-warning { display: grid; margin-top: 20px; padding: 16px 18px; grid-template-columns: 26px 1fr; gap: 12px; color: #7a4a1f; background: #fff3e5; border-radius: 13px; }
.checkout-demo-warning svg { width: 23px; height: 23px; }
.checkout-demo-warning p { margin: 0; font-size: 9px; line-height: 1.7; }
.checkout-complete { padding: 25px 20px 15px; text-align: center; }
.checkout-complete-icon { display: grid; width: 75px; height: 75px; margin: 0 auto; place-items: center; color: var(--shop-ink); background: var(--shop-accent); border-radius: 50%; }
.checkout-complete-icon svg { width: 35px; height: 35px; }
.checkout-complete > p:first-of-type { margin: 20px 0 0; color: var(--shop-accent-deep); font-family: Arial, Helvetica, sans-serif; font-size: 8px; font-weight: 900; letter-spacing: .18em; }
.checkout-complete h3 { margin: 10px 0 0; color: var(--shop-ink); font-size: clamp(36px, 4vw, 54px); letter-spacing: -.055em; line-height: 1.28; }
.checkout-complete > p:not(:first-of-type) { max-width: 560px; margin: 18px auto 0; color: var(--shop-muted); font-size: 10px; }
.checkout-order-number { display: inline-flex; margin-top: 25px; padding: 14px 24px; align-items: center; gap: 15px; background: var(--shop-paper); border-radius: 12px; }
.checkout-order-number small { color: var(--shop-muted); font-size: 8px; }
.checkout-order-number strong { color: var(--shop-ink); font-family: Arial, Helvetica, sans-serif; font-size: 17px; letter-spacing: .08em; }
.checkout-complete-actions { display: flex; margin-top: 28px; justify-content: center; gap: 11px; }

/* ---------- Toast and mobile cart ---------- */

.shop-toast { visibility: hidden; position: fixed; right: 25px; bottom: 25px; z-index: 2000; max-width: min(390px, calc(100% - 30px)); padding: 14px 18px; color: #fff; background: var(--shop-ink); border-radius: 13px; box-shadow: var(--shop-shadow-lg); font-size: 10px; font-weight: 700; opacity: 0; transform: translateY(15px); transition: visibility .3s, opacity .3s ease, transform .35s var(--shop-ease); }
.shop-toast.is-visible { visibility: visible; opacity: 1; transform: translateY(0); }
.shop-mobile-cart-bar { display: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1260px) {
  .shop-container-wide { width: min(1480px, calc(100% - 48px)); }
  .shop-global-nav { gap: 17px; }
  .shop-global-nav a { font-size: 10px; }
  .shop-hero-inner { grid-template-columns: minmax(470px,.92fr) minmax(500px,1.08fr); gap: 30px; }
  .shop-hero h1 strong { font-size: clamp(74px, 7.4vw, 100px); }
  .shop-toolbar { grid-template-columns: minmax(235px,.8fr) minmax(390px,1.2fr) 170px; }
}

@media (max-width: 1060px) {
  .shop-global-nav { display: none; }
  .shop-menu-toggle { display: flex; }
  .shop-header-actions { margin-left: auto; }
  .shop-hero { padding-top: 85px; }
  .shop-hero-inner { grid-template-columns: 1fr; gap: 65px; }
  .shop-hero-copy { max-width: 760px; }
  .shop-hero h1 strong { font-size: clamp(82px, 11vw, 118px); }
  .shop-hero-visual { width: min(800px,100%); min-height: 650px; margin-inline: auto; }
  .shop-category-grid { grid-template-columns: 1fr 1fr; }
  .shop-category-card { min-height: 290px; }
  .shop-toolbar { grid-template-columns: 1fr 180px; }
  .shop-filter-tabs { grid-column: 1 / -1; grid-row: 2; }
  .shop-product-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .product-card.is-featured { grid-column: span 2; }
  .shop-feature-card { grid-template-columns: .9fr 1.1fr; }
  .shop-feature-media { min-height: 650px; }
  .shop-feature-copy { padding: 55px 45px; }
  .shop-gift-inner { grid-template-columns: 1fr; }
  .shop-gift-actions { align-items: flex-start; flex-direction: row; }
  .shop-guide-steps { grid-template-columns: repeat(3,1fr); }
  .shop-faq-layout { gap: 60px; }
}

@media (max-width: 820px) {
  :root { --shop-header-h: 72px; }
  .shop-container-wide { width: calc(100% - 38px); }
  .shop-demo-notice { padding-inline: 18px; }
  .shop-demo-notice p { font-size: 9px; }
  .shop-brand-copy strong { font-size: 12px; }
  .shop-home-link span { display: none; }
  .shop-home-link { width: 44px; padding: 0; }
  .shop-hero { min-height: 0; padding: 75px 0 95px; }
  .shop-hero h1 strong { font-size: clamp(70px, 13vw, 100px); }
  .shop-hero-visual { min-height: 590px; }
  .shop-hero-photo-main { width: 70%; }
  .shop-section-heading { grid-template-columns: 1fr; gap: 20px; }
  .shop-section-heading > p { max-width: 620px; }
  .shop-categories { padding: 100px 0; }
  .shop-products { padding: 105px 0 120px; }
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-card.is-featured { grid-column: span 2; }
  .shop-feature { padding: 105px 0; }
  .shop-feature-card { grid-template-columns: 1fr; border-radius: 28px 28px 90px 28px; }
  .shop-feature-media { min-height: 480px; }
  .shop-feature-copy { padding: 55px 45px 70px; }
  .shop-gift-banner { padding-bottom: 105px; }
  .shop-gift-inner { padding: 45px; }
  .shop-guide { padding: 105px 0 115px; }
  .shop-guide-steps { grid-template-columns: 1fr; }
  .shop-guide-steps li { min-height: 250px; }
  .shop-guide-steps svg { margin-top: 36px; }
  .shop-guide-notes { grid-template-columns: 1fr; gap: 23px; }
  .shop-faq { padding: 105px 0; }
  .shop-faq-layout { grid-template-columns: 1fr; gap: 45px; }
  .shop-faq-heading { position: static; }
  .shop-closing-inner { grid-template-columns: 1fr; }
  .shop-closing-contact { flex-direction: row; }
  .shop-closing-contact a { min-width: 0; flex: 1; }
  .shop-footer-main { grid-template-columns: 1fr; gap: 55px; }
  .product-dialog-grid { grid-template-columns: 1fr; }
  .product-dialog-grid > figure { min-height: 380px; max-height: 45vh; border-radius: 30px 30px 0 0; }
  .product-dialog-copy { padding: 45px 38px 42px; }
  .checkout-dialog { padding: 45px 36px 38px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-mini-summary { order: -1; }
}

@media (max-width: 640px) {
  :root { --shop-header-h: 66px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); font-size: 15px; }
  .shop-container-wide { width: calc(100% - 30px); }
  .shop-demo-notice { min-height: 42px; padding: 7px 12px; gap: 8px; align-items: flex-start; }
  .shop-demo-notice span { margin-top: 2px; font-size: 6.5px; }
  .shop-demo-notice p { font-size: 8px; line-height: 1.5; text-align: left; }
  .shop-brand { gap: 9px; }
  .shop-brand-mark { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; }
  .shop-brand-mark span { font-size: 20px; }
  .shop-brand-copy strong { font-size: 10px; }
  .shop-brand-copy small { font-size: 5.8px; }
  .shop-header-actions { display: none; }
  .shop-menu-toggle { width: 42px; height: 42px; }
  .shop-mobile-menu-inner { width: calc(100% - 34px); padding-top: calc(var(--shop-header-h) + 32px); justify-content: flex-start; }
  .shop-mobile-menu nav a { padding: 12px 0; font-size: 20px; }
  .shop-mobile-menu-actions { margin-top: 22px; }
  .shop-hero { padding: 58px 0 76px; }
  .shop-hero-inner { gap: 45px; }
  .shop-hero h1 { margin-top: 22px; }
  .shop-hero h1 > span { font-size: 20px; }
  .shop-hero h1 strong { font-size: clamp(54px, 17vw, 78px); line-height: 1.05; }
  .shop-hero-lead { margin-top: 25px; font-size: 13px; line-height: 1.9; }
  .shop-hero-actions { margin-top: 28px; }
  .shop-hero-actions .shop-button { width: 100%; }
  .shop-hero-points { display: grid; margin-top: 36px; grid-template-columns: repeat(3,1fr); }
  .shop-hero-points li { padding: 0 8px; align-items: flex-start; flex-direction: column; gap: 8px; }
  .shop-hero-points svg { width: 20px; height: 20px; }
  .shop-hero-points span { font-size: 7px; }
  .shop-hero-points b { font-size: 9px; }
  .shop-hero-visual { min-height: 440px; }
  .shop-hero-photo-main { top: 4%; right: 0; width: 76%; height: 75%; border-radius: 95px 18px 18px 18px; }
  .shop-hero-photo-rice { left: 0; width: 39%; height: 35%; border-width: 5px; border-radius: 18px 18px 60px 18px; }
  .shop-hero-photo-gift { left: 0; width: 34%; height: 29%; border-width: 5px; border-radius: 18px 60px 18px 18px; }
  .shop-hero-stamp { right: -2%; bottom: 2%; width: 100px; height: 100px; border-width: 5px; }
  .shop-hero-stamp b { font-size: 25px; }
  .shop-hero-stamp small { font-size: 5px; }
  .shop-marquee > div { padding-block: 12px; }
  .shop-section-heading { margin-bottom: 38px; }
  .shop-section-heading h2,
  .shop-products-heading h2 { margin-top: 12px; font-size: 42px; }
  .shop-categories { padding: 78px 0 85px; }
  .shop-category-grid { grid-template-columns: 1fr; }
  .shop-category-card { min-height: 220px; padding: 23px; }
  .shop-category-card strong { font-size: 26px; }
  .shop-products { padding: 82px 0 95px; }
  .shop-products-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .shop-products-heading > p { margin: 0; }
  .shop-toolbar { display: flex; margin-bottom: 30px; padding: 12px; flex-direction: column; align-items: stretch; border-radius: 18px; }
  .shop-filter-tabs { order: 2; width: calc(100% + 24px); margin-inline: -12px; padding-inline: 12px; }
  .shop-sort-box { order: 3; }
  .shop-product-grid { grid-template-columns: 1fr 1fr; gap: 34px 10px; }
  .product-card.is-featured { grid-column: 1 / -1; }
  .product-card.is-featured .product-card-media { aspect-ratio: 4 / 3; }
  .product-card-media { border-radius: 15px; }
  .product-badge { top: 9px; left: 9px; padding: 5px 7px; font-size: 6px; }
  .product-view-label { display: none; }
  .product-card-body { padding-top: 13px; }
  .product-card-title-row { display: block; margin-top: 5px; }
  .product-card h3 { font-size: 12px; line-height: 1.5; }
  .product-card-price { margin-top: 5px; font-size: 13px; }
  .product-card-description { display: none; }
  .product-card-actions { margin-top: 10px; align-items: flex-end; flex-direction: column; }
  .product-card-size { width: 100%; font-size: 7px; }
  .product-add-button { width: 100%; min-height: 37px; padding: 8px; font-size: 8px; }
  .shop-feature { padding: 82px 0; }
  .shop-feature-card { border-radius: 22px 22px 65px 22px; }
  .shop-feature-media { min-height: 330px; }
  .shop-feature-copy { padding: 40px 23px 55px; }
  .shop-feature-copy h2 { font-size: 36px; }
  .shop-feature-copy > p:not(.shop-kicker) { font-size: 10px; }
  .shop-feature-copy li { grid-template-columns: 38px 1fr; gap: 12px; }
  .shop-gift-banner { padding-bottom: 82px; }
  .shop-gift-inner { min-height: 0; padding: 38px 23px 45px; border-radius: 22px 70px 22px 22px; }
  .shop-gift-inner h2 { font-size: 34px; }
  .shop-gift-actions { align-items: stretch; flex-direction: column; }
  .shop-gift-actions .shop-button { width: 100%; }
  .shop-guide { padding: 82px 0 95px; }
  .shop-guide-steps li { min-height: 230px; padding: 25px; }
  .shop-guide-steps svg { width: 38px; height: 38px; margin-top: 30px; }
  .shop-faq { padding: 82px 0; }
  .shop-faq-heading h2 { font-size: 44px; }
  .shop-faq-list summary { min-height: 76px; font-size: 12px; }
  .shop-faq-list details p { padding-right: 0; font-size: 10px; }
  .shop-closing { padding: 75px 0; }
  .shop-closing h2 { font-size: 37px; }
  .shop-closing-contact { flex-direction: column; }
  .shop-closing-contact a { min-width: 0; }
  .shop-footer { padding-top: 65px; }
  .shop-footer-links { grid-template-columns: 1fr 1fr; row-gap: 35px; }
  .shop-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .shop-mobile-cart-bar { display: flex; position: fixed; right: 0; bottom: 0; left: 0; z-index: 1100; min-height: calc(66px + env(safe-area-inset-bottom)); padding: 8px 18px calc(8px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 10px; color: #fff; background: var(--shop-ink); border: 0; box-shadow: 0 -12px 35px rgba(3,14,22,.2); cursor: pointer; }
  .shop-mobile-cart-bar > span { position: relative; }
  .shop-mobile-cart-bar svg { width: 24px; height: 24px; }
  .shop-mobile-cart-bar b { display: grid; position: absolute; top: -8px; right: -12px; min-width: 20px; height: 20px; padding-inline: 4px; place-items: center; color: var(--shop-ink); background: var(--shop-accent); border-radius: 50%; font-family: Arial, Helvetica, sans-serif; font-size: 8px; }
  .shop-mobile-cart-bar strong { font-size: 11px; }
  .shop-mobile-cart-bar em { font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-style: normal; font-weight: 900; }
  .shop-toast { right: 15px; bottom: calc(82px + env(safe-area-inset-bottom)); left: 15px; }
  .cart-drawer-header { min-height: 88px; padding: 18px 19px; }
  .cart-drawer-body { padding: 18px 19px; }
  .cart-drawer-footer { padding-inline: 19px; }
  .cart-item { grid-template-columns: 88px 1fr; }
  .cart-item img { width: 88px; height: 76px; }
  .product-dialog,
  .checkout-dialog { top: 0; left: 0; width: 100%; max-height: 100svh; height: 100svh; border-radius: 0; transform: translateY(100%); }
  .product-dialog.is-open,
  .checkout-dialog.is-open { transform: translateY(0); }
  .product-dialog-grid > figure { min-height: 300px; max-height: 38vh; border-radius: 0; }
  .product-dialog-copy { padding: 35px 20px 45px; }
  .product-dialog-copy h2 { font-size: 33px; }
  .product-dialog-order { align-items: stretch; flex-direction: column; }
  .product-dialog-order .quantity-control { align-self: flex-start; }
  .checkout-dialog { padding: 32px 19px 35px; }
  .checkout-header { padding-right: 45px; }
  .checkout-header h2 { font-size: 25px; }
  .checkout-progress li { align-items: flex-start; flex-direction: column; gap: 4px; font-size: 7px; }
  .checkout-progress li::after { top: 15px; left: 34px; right: 5px; }
  .checkout-fields { grid-template-columns: 1fr; }
  .checkout-field-half { grid-column: 1 / -1; }
  .checkout-field-postal { max-width: none; }
  .checkout-confirm-grid { grid-template-columns: 1fr; }
  .checkout-actions,
  .checkout-actions-split { align-items: stretch; flex-direction: column-reverse; gap: 10px; }
  .checkout-actions .shop-button { width: 100%; }
  .checkout-complete { padding-inline: 0; }
  .checkout-complete h3 { font-size: 36px; }
  .checkout-complete-actions { align-items: stretch; flex-direction: column; }
  .checkout-complete-actions .shop-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
