/* Font faces load per language via src/fonts/{cn,tc,jp,kr}.css */

:root {
  color-scheme: light;
  --ink: #1d2a2f;
  --muted: #63747b;
  --line: #e8ece8;
  --paper: #ffffff;
  --surface: #ffffff;
  --mint: #eef8ee;
  --teal: #1f7a58;
  --yellow: #f4c95d;
  --coral: #ef826f;
  --shadow: 0 18px 45px rgba(29, 42, 47, 0.1);
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 2rem;
  font-family: var(--app-font, "Alibaba PuHuiTi"), Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-lang="CNzh"],
:root[data-lang="USen"] {
  --app-font: "Alibaba PuHuiTi";
}

:root[data-lang="TWzh"] {
  --app-font: "Alibaba Sans TC";
}

:root[data-lang="JPja"] {
  --app-font: "Alibaba Sans JP";
}

:root[data-lang="KRko"] {
  --app-font: "Alibaba Sans KR";
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: var(--text-base);
  line-height: 1.5;
}

body.cart-open,
body.detail-open,
body.order-open,
body.filters-open {
  overflow: hidden;
}

body.category-drawer-open {
  overflow: hidden;
}

body.filters-open::before,
body.category-drawer-open::before {
  background: rgba(29, 42, 47, 0.34);
  content: "";
  inset: 0;
  position: fixed;
  z-index: 62;
}

body.policy-page {
  background: #fbfcfa;
}

body.policy-page .category-topbar,
body.policy-page .hero,
body.policy-page .trust-strip,
body.policy-page #catalog,
body.policy-page .shop-layout,
body.policy-page .floating-add-page {
  display: none;
}

body.policy-page .site-header {
  position: static;
}

body.policy-page .topbar {
  border-bottom: 1px solid var(--line);
}

body.policy-page .top-search,
body.policy-page .sticker-toggle,
body.policy-page .cart-button {
  display: none;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.topbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 68px;
  padding: 0 24px;
}

.topbar .top-search {
  flex: 1 1 220px;
  min-width: 0;
}

.topbar .nav-actions {
  margin-left: auto;
}

.brand,
.nav-links,
.nav-actions,
.top-search,
.language-picker,
.cart-button,
.hero-actions,
.price-row,
.cart-header,
.cart-footer > div,
.qty-controls {
  align-items: center;
  display: flex;
}

.brand {
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 900;
  white-space: nowrap;
}

.leaf-mark {
  background: #2bb673;
  border-radius: 11px;
  color: white;
  display: grid;
  height: 40px;
  place-items: center;
  width: 40px;
}

.nav-links {
  color: #28353a;
  gap: 20px;
  justify-content: flex-start;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 36px), transparent 100%);
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0 6px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links > * {
  flex: 0 0 auto;
}

.category-topbar {
  border-top: 1px solid rgba(232, 236, 232, 0.72);
  margin: 0 auto;
  max-width: 1240px;
  padding: 9px 24px 11px;
}

.top-search {
  background: #f7faf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  gap: 10px;
  min-height: 44px;
  min-width: 220px;
  padding: 6px 14px;
  width: min(520px, 100%);
}

.top-search-label {
  color: var(--muted);
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 900;
}

.top-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: 0;
  width: 100%;
}

.top-search,
.sticker-toggle {
  display: none !important;
}

.nav-menu {
  position: relative;
}

.nav-menu-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: #28353a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 900;
  gap: 6px;
  padding: 7px 0;
  white-space: nowrap;
}

.nav-menu-toggle:hover,
.nav-menu.open .nav-menu-toggle {
  color: var(--ink);
}

.nav-menu-panel {
  background: rgba(255, 253, 246, 0.98);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  left: 50%;
  min-width: 220px;
  opacity: 0;
  padding: 10px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 12px);
  transform: translate(-50%, -4px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  z-index: 80;
}

.nav-menu.open .nav-menu-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
  visibility: visible;
}

.nav-menu-panel button {
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.nav-menu-panel button:hover,
.nav-menu-panel button:focus-visible {
  background: #eaf4eb;
  outline: none;
}

.nav-actions {
  gap: 10px;
  justify-content: flex-end;
  justify-self: end;
}

.sticker-toggle {
  align-items: center;
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 46px;
  padding: 8px 12px;
}

.sticker-toggle input {
  appearance: none;
  background: #dbe5df;
  border-radius: 999px;
  cursor: pointer;
  height: 20px;
  position: relative;
  width: 36px;
}

.sticker-toggle input::after {
  background: white;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(29, 42, 47, 0.2);
  content: "";
  height: 16px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 160ms ease;
  width: 16px;
}

.sticker-toggle input:checked {
  background: var(--teal);
}

.sticker-toggle input:checked::after {
  transform: translateX(16px);
}

.sticker-toggle span {
  font-size: 0.82rem;
  font-weight: 800;
}

.language-picker {
  background: var(--surface);
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  gap: 6px;
  min-height: 46px;
  padding: 8px 10px 8px 12px;
  transition: background 160ms ease, transform 160ms ease;
}

.language-picker:hover {
  background: #f6e6b9;
  transform: translateY(-1px);
}

.language-icon {
  align-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-flex;
  font-size: 0;
  height: 22px;
  justify-content: center;
  position: relative;
  width: 22px;
}

.language-icon::before,
.language-icon::after {
  content: "";
  position: absolute;
}

.language-icon::before {
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 50%;
  height: 16px;
  width: 8px;
}

.language-icon::after {
  border-top: 2px solid currentColor;
  width: 16px;
}

.language-label {
  font-size: 0;
  font-weight: 800;
}

.language-picker select {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: none;
  min-width: 4.75rem;
  outline: 0;
  padding: 0;
}

.policy-nav-link,
.orders-nav-link {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
  min-height: 46px;
  padding: 12px 14px;
}

.policy-nav-link:hover,
.orders-nav-link:hover {
  background: #eaf4eb;
}

.cart-button,
.primary-link,
.secondary-link,
.ghost-button,
.add-button,
.checkout-button,
.icon-button,
.category-card {
  border: 0;
  cursor: pointer;
}

.cart-button {
  background: var(--ink);
  border-radius: 999px;
  color: white;
  gap: 10px;
  padding: 10px 14px;
  text-decoration: none;
}

a.cart-button {
  display: inline-flex;
}

.cart-button strong {
  background: var(--yellow);
  border-radius: 999px;
  color: var(--ink);
  min-width: 26px;
  padding: 2px 8px;
}

.hero {
  align-items: center;
  display: grid;
  gap: 56px;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  margin: 0 auto;
  max-width: 1240px;
  min-height: 620px;
  padding: 58px 24px 44px;
}

.hero-copy {
  align-self: center;
}

.hero-copy h1 {
  font-size: clamp(2rem, 3.8vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
  margin-bottom: 20px;
  max-width: 12em;
}
.eyebrow {
  color: #2bb673;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.6rem, 7.6vw, 7.15rem);
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 26px;
  max-width: 720px;
  white-space: pre-line;
}

.hero-text {
  color: #53636a;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 560px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary-link,
.secondary-link {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  padding: 15px 22px;
}

.primary-link {
  background: #151f23;
  color: white;
}

.secondary-link {
  background: #f1f5f1;
  color: var(--ink);
}

.hero-stage {
  align-self: center;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(6, 70px);
  min-height: 510px;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  padding: 20px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hero-card:hover {
  box-shadow: 0 24px 58px rgba(29, 42, 47, 0.14);
  transform: translateY(-3px);
}

.hero-card img,
.product-media img,
.cart-thumb img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

:root[data-sticker-mode="on"] .product-media img,
:root[data-sticker-mode="on"] .hero-card > img,
:root[data-sticker-mode="on"] .media-button > img,
:root[data-sticker-mode="on"] .sku-option img,
:root[data-sticker-mode="on"] .detail-image img,
:root[data-sticker-mode="on"] .detail-image-option img,
:root[data-sticker-mode="on"] .cart-thumb img {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(245, 238, 214, 0.9)),
    white;
  border: 7px solid #fffdf5;
  border-radius: 14px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 -1px 0 rgba(154, 132, 91, 0.12) inset,
    0 10px 22px rgba(29, 42, 47, 0.22),
    0 2px 5px rgba(29, 42, 47, 0.12);
  filter: saturate(1.05) contrast(1.03);
  padding: 5px;
}

:root[data-sticker-mode="on"] .sku-option img,
:root[data-sticker-mode="on"] .detail-image-option img,
:root[data-sticker-mode="on"] .cart-thumb img {
  border-width: 4px;
  border-radius: 10px;
  padding: 2px;
}

:root[data-sticker-mode="on"] .media-button,
:root[data-sticker-mode="on"] .detail-image,
:root[data-sticker-mode="on"] .hero-card,
:root[data-sticker-mode="on"] .sku-option,
:root[data-sticker-mode="on"] .detail-image-option {
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.76), transparent 28%),
    linear-gradient(180deg, #ffffff, #fbfaf4);
}

:root[data-sticker-mode="on"] .product-card {
  background: #ffffff;
  box-shadow:
    0 18px 38px rgba(45, 72, 63, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

:root[data-sticker-mode="on"] .product-media {
  background:
    linear-gradient(180deg, #ffffff, #fbfaf4);
  border-bottom: 1px solid #eef2ed;
}

:root[data-sticker-mode="on"] .sku-scroll,
:root[data-sticker-mode="on"] .single-sku {
  background: #ffffff;
}

:root[data-sticker-mode="on"] .product-media::after,
:root[data-sticker-mode="on"] .detail-image::after {
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.55), transparent 42%);
  border-radius: 8px;
  content: "";
  inset: 10px;
  pointer-events: none;
  position: absolute;
}

:root[data-sticker-mode="on"] .detail-image {
  position: relative;
}

.hero-card div:last-child {
  display: grid;
  gap: 4px;
}

.hero-card strong {
  font-size: 1rem;
}

.hero-card span {
  color: #2bb673;
  font-weight: 800;
}

.hero-card-1 {
  grid-column: 1 / 4;
  grid-row: 1 / 5;
}

.hero-card-2 {
  grid-column: 4 / 7;
  grid-row: 1 / 3;
}

.hero-card-3 {
  grid-column: 4 / 7;
  grid-row: 3 / 5;
}

.hero-card-4 {
  grid-column: 1 / 4;
  grid-row: 5 / 7;
}

.hero-card-5 {
  grid-column: 4 / 7;
  grid-row: 5 / 7;
}

.trust-strip {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1240px;
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-height: 104px;
  padding: 28px;
  place-items: center;
  text-align: center;
}

.trust-strip strong {
  font-size: 1.42rem;
  font-weight: 900;
}

.trust-strip span {
  color: var(--muted);
}

.section,
.shop-layout {
  margin: 0 auto;
  max-width: 1240px;
  padding: 58px 24px;
}

.section-heading {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 2.55rem;
  font-weight: 900;
  margin-bottom: 0;
}

.section-heading p:last-child {
  color: var(--muted);
  line-height: 1.65;
  max-width: 560px;
}

.category-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}

.category-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 148px;
  padding: 18px;
  position: relative;
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease;
}

.category-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.category-card::before {
  background: var(--accent);
  border-radius: 999px;
  content: "";
  display: block;
  height: 10px;
  margin-bottom: 22px;
  width: 52px;
}

.category-card span,
.product-category,
.cart-item span {
  color: var(--muted);
  font-size: 0.82rem;
}

.category-card strong {
  display: block;
  font-size: 1.35rem;
  margin: 6px 0;
}

.category-card small {
  color: var(--teal);
  font-weight: 800;
}

.policy-section {
  border-top: 1px solid var(--line);
  padding-top: 54px;
}

.policy-section[data-policy-view="entry"] .policy-grid,
.policy-section[data-policy-view="entry"] .policy-detail-page {
  display: none !important;
}

.policy-section[data-policy-view="list"] .policy-entry,
.policy-section[data-policy-view="list"] .policy-detail-page {
  display: none !important;
}

.policy-section[data-policy-view="detail"] .policy-entry,
.policy-section[data-policy-view="detail"] .policy-grid {
  display: none !important;
}

body.policy-page .policy-section {
  border-top: 0;
  min-height: calc(100vh - 90px);
  padding-top: 42px;
}

.policy-entry {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 24px;
}

.policy-entry[hidden] {
  display: none;
}

.policy-entry span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-entry h3 {
  font-size: 1.55rem;
  margin: 6px 0 8px;
}

.policy-entry p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.policy-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-grid[hidden] {
  display: none;
}

.policy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  display: grid;
  gap: 12px;
  min-height: 230px;
  padding: 20px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.policy-card:hover {
  border-color: rgba(31, 122, 88, 0.34);
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.1);
  transform: translateY(-2px);
}

.policy-card-wide {
  grid-column: span 2;
}

.policy-card > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-card h3 {
  font-size: 1.24rem;
  margin-bottom: 0;
}

.policy-card p,
.policy-card li,
.policy-card dd {
  color: var(--muted);
  line-height: 1.65;
}

.policy-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.policy-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.policy-card dl div {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding-top: 8px;
}

.policy-card dt {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.policy-card dd {
  margin: 0;
}

.policy-card > strong {
  align-self: end;
  color: var(--teal);
  font-size: 0.9rem;
}

.policy-detail-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 16px;
  margin: 0 auto;
  max-width: 880px;
  padding: 24px;
}

.policy-detail-page[hidden] {
  display: none;
}

.policy-back {
  justify-self: start;
}

.policy-detail-page > span {
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.policy-detail-page h3 {
  font-size: 2rem;
  margin-bottom: 0;
}

.policy-detail-body {
  display: grid;
  gap: 18px;
}

.policy-detail-body p,
.policy-detail-body li,
.policy-detail-body dd {
  color: var(--muted);
  line-height: 1.75;
}

.policy-detail-body h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.policy-detail-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.policy-detail-body dl {
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  margin: 0;
  overflow: hidden;
}

.policy-detail-body dl div {
  display: grid;
  gap: 4px;
  grid-template-columns: 180px minmax(0, 1fr);
  padding: 12px 14px;
}

.policy-detail-body dl div + div {
  border-top: 1px solid var(--line);
}

.policy-detail-body dt {
  color: var(--ink);
  font-weight: 900;
}

.policy-detail-body dd {
  margin: 0;
}

.governing-law {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.governing-law strong {
  color: var(--ink);
  letter-spacing: 0;
}

.governing-law small {
  color: var(--teal);
  font-weight: 800;
  line-height: 1.6;
}

.shop-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
}

.filters {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0 18px 18px 0;
  bottom: 0;
  box-shadow: 18px 0 52px rgba(29, 42, 47, 0.18);
  display: grid;
  gap: 16px;
  left: 0;
  max-width: calc(100vw - 44px);
  opacity: 0;
  overflow-y: auto;
  padding: 18px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translateX(-105%);
  transition: opacity 180ms ease, transform 220ms ease, visibility 180ms ease;
  visibility: hidden;
  width: 320px;
  z-index: 71;
}

body.filters-open .filters {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  visibility: visible;
}

.filters-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.filters-title {
  font-size: 1.05rem;
}

.heading-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.filter-open-button {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
}

.filter-open-button span:first-child {
  font-size: 1.05rem;
  line-height: 1;
}

.view-toggle {
  align-items: center;
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 4px;
  min-height: 42px;
  padding: 4px;
}

.view-toggle-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 6px 0 8px;
}

.view-toggle-button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 32px;
  padding: 6px 10px;
}

.view-toggle-button.active {
  background: var(--ink);
  color: #ffffff;
}

.view-toggle .view-toggle-mobile {
  display: none;
}

.filters label,
.filter-group {
  display: grid;
  gap: 8px;
}

.filters span,
.filter-group > span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.filters input,
.filters select {
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 12px;
  width: 100%;
}

.category-filter {
  position: relative;
}

.category-filter-toggle {
  align-items: center;
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  min-width: 0;
  padding: 12px;
  text-align: left;
  width: 100%;
}

.category-filter-toggle span:first-child {
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-bubble-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 48px rgba(45, 72, 63, 0.18);
  left: 0;
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 8px);
  transform: translateY(-4px) scale(0.98);
  transform-origin: top left;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
  width: min(560px, calc(100vw - 36px));
  z-index: 70;
}

.category-filter.open .category-bubble-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.category-bubble-panel-head {
  align-items: center;
  display: none;
  justify-content: space-between;
  margin-bottom: 12px;
}

.category-bubble-panel-head strong {
  font-size: 1rem;
}

.category-panel-close {
  height: 34px;
  width: 34px;
}

.category-bubbles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}

.category-bubble {
  align-items: center;
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.category-bubble:hover {
  border-color: rgba(22, 106, 99, 0.36);
  transform: translateY(-1px);
}

.category-bubble.active {
  background: var(--teal);
  border-color: var(--teal);
  color: white;
}

.category-bubble span {
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
}

.category-bubble small {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: inherit;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  padding: 3px 6px;
}

.filter-note {
  background: var(--mint);
  border-radius: 8px;
  padding: 14px;
}

.filter-note strong {
  display: block;
  font-size: 2rem;
}

.compact {
  margin-bottom: 18px;
}

.ghost-button {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}

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

.product-grid[data-grid-columns="2"] {
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid[data-grid-columns="1"] {
  gap: 14px;
  grid-template-columns: 1fr;
}

.product-grid[data-grid-columns="6"] {
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.product-grid[data-grid-columns="6"] .product-media {
  height: 142px;
}

.product-grid[data-grid-columns="6"] .media-button {
  padding: 18px;
}

.product-grid[data-grid-columns="6"] .product-body {
  gap: 9px;
  padding: 11px;
}

.product-grid[data-grid-columns="6"] .product-body h3 {
  font-size: 0.94rem;
}

.product-grid[data-grid-columns="6"] .product-body p {
  font-size: 0.78rem;
  line-height: 1.35;
  min-height: 32px;
}

.product-grid[data-grid-columns="6"] .price-row {
  align-items: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
}

.product-grid[data-grid-columns="6"] .quantity-control {
  justify-content: space-between;
  margin-left: 0;
  width: 100%;
}

.product-grid[data-grid-columns="6"] .add-button {
  padding: 10px 8px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.product-card:hover {
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.11);
  transform: translateY(-2px);
}

.map-product-card .product-body {
  gap: 12px;
}

.map-product-media {
  background: #f6f8f4;
  height: 230px;
}

.map-product-order {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.map-product-price {
  align-items: baseline;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 8px;
  min-width: 0;
}

.map-product-price strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  white-space: nowrap;
}

.map-product-price span {
  color: var(--muted);
  flex: 1;
  font-size: 12px;
  line-height: 1.25;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-order-button {
  min-height: 42px;
  padding: 10px 12px;
}

.map-product-media .media-button {
  padding: 10px;
}

.map-product-media img {
  border-radius: 6px;
}

.map-detail-hero .detail-image[data-kind="design"] img {
  filter: blur(3.5px);
  transform: scale(1.02);
}

.map-product-media,
.map-detail-hero .detail-image,
.map-detail-hero .detail-image-option {
  overflow: hidden;
}

.map-detail-button {
  margin-top: auto;
}

.product-media {
  background: linear-gradient(180deg, #f8f5e7, #eef8ee);
  height: 176px;
  position: relative;
}

.media-button {
  background: transparent;
  border: 0;
  cursor: zoom-in;
  height: 100%;
  padding: 24px;
  width: 100%;
}

.recipe-badge {
  align-items: center;
  background: #ff815f;
  border: 3px solid #fff2d5;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(29, 42, 47, 0.2);
  color: #fff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  left: 12px;
  position: absolute;
  transform: rotate(-6deg);
  top: 12px;
  width: 34px;
  z-index: 3;
}

.recipe-badge::before {
  background: #ffb35c;
  border-radius: 3px;
  content: "";
  height: 7px;
  left: 7px;
  position: absolute;
  top: 7px;
  width: 20px;
}

.recipe-badge span {
  color: #fff;
  margin-top: 12px;
  position: relative;
  z-index: 1;
}

.badge {
  background: var(--coral);
  border-radius: 999px;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  right: 12px;
  padding: 6px 9px;
  position: absolute;
  top: 12px;
  z-index: 2;
}

.stack-badge {
  align-items: center;
  background: linear-gradient(135deg, #2fa873 0%, #1f7a58 100%);
  border: 2px solid #f7fff7;
  border-radius: 999px;
  bottom: 20px;
  box-shadow: 0 9px 18px rgba(31, 122, 88, 0.28), 0 2px 0 rgba(18, 71, 51, 0.22);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  justify-content: center;
  min-width: 42px;
  padding: 5px 9px;
  position: absolute;
  right: 20px;
  z-index: 3;
}

.sku-scroll {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 12px;
  scrollbar-width: thin;
}

.sku-option {
  background: #fbf7e7;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 42px;
  overflow: hidden;
  padding: 4px 7px;
  position: relative;
  width: 46px;
}

.sku-option.active {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(22, 106, 99, 0.18);
}

.sku-option img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.lazy-scroll-image {
  opacity: 1;
  transition: opacity 140ms ease;
}

.lazy-scroll-image:not([src]) {
  opacity: 0;
}

.sku-fallback {
  align-items: center;
  background: var(--accent);
  border-radius: 6px;
  color: var(--ink);
  display: flex;
  font-size: 0.9rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.sku-option::after {
  content: none;
}

.sku-tooltip {
  background: var(--ink);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(29, 42, 47, 0.2);
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  left: 0;
  max-width: 220px;
  opacity: 0;
  overflow: hidden;
  padding: 7px 10px;
  pointer-events: none;
  position: fixed;
  text-overflow: ellipsis;
  top: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  white-space: nowrap;
  z-index: 80;
}

.sku-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

.single-sku {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 14px;
}

.product-body {
  display: grid;
  flex: 1;
  gap: 10px;
  padding: 15px;
}

.product-body h3 {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0;
}

.product-body p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  min-height: 42px;
}

.price-row {
  gap: 8px;
  justify-content: space-between;
}

.price-row strong {
  font-size: 1.18rem;
}

.price-row s {
  color: #9aa7aa;
}

.quantity-control {
  align-items: center;
  display: inline-flex;
  gap: 6px;
  margin-left: auto;
}

.quantity-control span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.quantity-stepper {
  align-items: center;
  background: #f9fbf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  font-weight: 800;
  height: 36px;
  overflow: hidden;
}

.quantity-stepper button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  height: 36px;
  width: 32px;
}

.quantity-stepper button:active {
  background: var(--mint);
}

.add-button,
.checkout-button,
.confirm-button {
  background: var(--ink);
  border-radius: 8px;
  color: white;
  font-weight: 800;
  padding: 12px;
  width: 100%;
}

.pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-top: 22px;
}

.page-size,
.page-controls,
.page-numbers,
.page-jump,
.page-jump label {
  align-items: center;
  display: flex;
}

.page-size {
  color: var(--muted);
  gap: 8px;
}

.page-size select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.page-controls {
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.page-numbers {
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.page-jump {
  gap: 8px;
}

.page-jump label {
  color: var(--muted);
  gap: 6px;
}

.page-jump span {
  font-size: 0.86rem;
  font-weight: 800;
}

.page-jump input {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  height: 40px;
  padding: 8px;
  text-align: center;
  width: 74px;
}

.page-nav,
.page-number {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
  min-height: 40px;
  padding: 9px 12px;
}

.page-number {
  min-width: 40px;
}

.page-number.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.page-nav:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.page-gap,
.page-status {
  color: var(--muted);
}

.page-status {
  font-size: 0.9rem;
}

.image-fallback {
  align-items: center;
  background: var(--accent);
  border-radius: 8px;
  color: var(--ink);
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.cart-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 24px 64px rgba(45, 72, 63, 0.2);
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: calc(100vw - 32px);
  overflow: hidden;
  position: fixed;
  right: 16px;
  top: 16px;
  transform: translateX(calc(100% + 32px));
  transform-origin: top right;
  transition:
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    width 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 220ms ease;
  width: min(420px, calc(100vw - 32px));
  z-index: 80;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-panel.expanded {
  animation: cart-panel-expand 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 28px 72px rgba(45, 72, 63, 0.22);
  max-width: none;
  width: calc(100vw - 32px);
}

.cart-panel.expanded .cart-items {
  align-content: start;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.cart-header-actions {
  display: flex;
  gap: 8px;
}

@keyframes cart-panel-expand {
  0% {
    opacity: 0.96;
    transform: translateX(0) scale(0.985);
  }

  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.detail-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 50;
}

.order-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 160ms ease;
  z-index: 52;
}

.detail-modal.open,
.order-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.detail-backdrop,
.order-backdrop {
  background: rgba(29, 42, 47, 0.42);
  inset: 0;
  opacity: 0;
  position: absolute;
  transition: opacity 180ms ease;
}

.detail-modal.open .detail-backdrop,
.order-modal.open .order-backdrop {
  opacity: 1;
}

.detail-card,
.order-card {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  left: 50%;
  max-height: min(760px, calc(100vh - 40px));
  max-width: min(920px, calc(100vw - 32px));
  overflow: hidden;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, calc(-50% + 16px)) scale(0.98);
  transition:
    opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
  width: 920px;
}

.order-card {
  max-height: min(860px, calc(100vh - 32px));
  max-width: min(980px, calc(100vw - 40px));
  width: 980px;
}

.detail-modal.open .detail-card,
.order-modal.open .order-card {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.detail-header,
.order-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px;
}

.detail-header h2,
.order-header h2 {
  margin-bottom: 0;
}

.detail-header span,
.order-header span {
  color: var(--muted);
  display: block;
  font-size: 0.84rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail-content,
.order-content {
  overflow: auto;
  padding: 18px;
}

.order-product {
  align-items: start;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
  margin-bottom: 16px;
  padding: 14px;
}

.order-product-image {
  align-items: center;
  background: #eef8ee;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  min-height: 220px;
  overflow: hidden;
  width: 100%;
}

.order-product-image img {
  display: block;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  width: 100%;
}

.order-product-image .image-fallback {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.order-product strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 4px;
}

.order-product p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.order-package-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-package {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.order-package-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.order-package-head span {
  color: var(--teal);
  font-size: 1.65rem;
  font-weight: 900;
}

.order-package-head strong {
  font-size: 0.98rem;
}

.order-package ul {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
  padding-left: 20px;
}

.order-package .confirm-button {
  margin-top: auto;
}

.detail-hero {
  display: grid;
  gap: 18px;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-bottom: 18px;
}

.map-detail-hero {
  grid-template-columns: minmax(0, 1fr);
}

.map-detail-hero .detail-image {
  height: min(70vh, 620px);
  padding: 10px;
}

.map-detail-hero .detail-summary {
  gap: 0;
}

.detail-image {
  background: linear-gradient(180deg, #fbf6df, #eaf6ee);
  border: 1px solid var(--line);
  border-radius: 8px;
  height: 260px;
  padding: 28px;
}

.detail-image-viewer {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.detail-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.detail-image-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.detail-image-option {
  background: #fbf7e7;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 54px;
  padding: 6px;
  width: 58px;
}

.detail-image-option.active {
  background: white;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(22, 106, 99, 0.18);
}

.detail-image-option img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.detail-summary {
  align-content: start;
  display: grid;
  gap: 14px;
}

.detail-summary p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.detail-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: flex-start;
}

.detail-actions .quantity-control {
  margin-left: 0;
}

.detail-actions .add-button {
  flex: 0 1 180px;
  width: auto;
}

.detail-sku-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.detail-skus {
  border: 0;
  border-radius: 0;
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  overflow: visible;
}

.detail-skus .sku-option {
  height: 68px;
  padding: 7px 10px;
  width: 74px;
}

.detail-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  margin: 0;
  overflow: hidden;
}

.detail-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.detail-row + .detail-row {
  border-top: 1px solid var(--line);
}

.detail-row dt,
.detail-row dd {
  margin: 0;
  min-width: 0;
  padding: 10px 12px;
  word-break: break-word;
}

.detail-row dt {
  background: #f8faf6;
  color: var(--muted);
  font-weight: 800;
}

.cart-header,
.cart-footer {
  padding: 18px;
}

.cart-header {
  background: #fbf9ee;
  border-bottom: 1px solid var(--line);
  justify-content: space-between;
}

.cart-header h2 {
  margin-bottom: 0;
}

.icon-button {
  background: #f1f5ef;
  border-radius: 50%;
  font-size: 1.4rem;
  height: 40px;
  width: 40px;
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 18px;
  transition: gap 220ms ease;
}

.cart-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px 1fr auto;
  padding: 10px;
  transition:
    grid-template-columns 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
    padding 220ms ease;
}

.cart-thumb {
  background: #f7f3df;
  border-radius: 8px;
  height: 58px;
  padding: 8px;
  position: relative;
  transition:
    height 220ms ease,
    width 220ms ease;
  width: 58px;
}

.cart-thumb .recipe-badge {
  border-width: 2px;
  border-radius: 6px;
  box-shadow: 0 4px 10px rgba(29, 42, 47, 0.18);
  color: #fff;
  font-size: 0.42rem;
  height: 32px;
  left: -7px;
  top: -8px;
  width: 26px;
}

.cart-thumb .recipe-badge::before {
  border-radius: 2px;
  height: 5px;
  left: 5px;
  top: 5px;
  width: 14px;
}

.cart-thumb .recipe-badge span {
  color: #fff;
  margin-top: 8px;
}

.cart-thumb .image-fallback {
  font-size: 1rem;
}

.qty-controls {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  overflow: hidden;
  padding: 2px;
}

.qty-controls button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  height: 30px;
  width: 28px;
}

.qty-controls button:active {
  background: var(--mint);
}

.quantity-stepper input,
.qty-controls input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  height: 30px;
  min-width: 0;
  text-align: center;
  width: 54px;
}

.quantity-stepper input:focus,
.qty-controls input:focus {
  outline: 2px solid rgba(22, 106, 99, 0.22);
  outline-offset: 2px;
}

.quantity-stepper input::-webkit-outer-spin-button,
.quantity-stepper input::-webkit-inner-spin-button,
.qty-controls input::-webkit-outer-spin-button,
.qty-controls input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.cart-footer {
  background: #fbf9ee;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
}

.cart-footer > div {
  justify-content: space-between;
}

.empty-cart {
  color: var(--muted);
}

body.checkout-page-open,
body.checkout-standalone {
  background: #f8faf5;
}

body.checkout-page-open .category-topbar,
body.checkout-page-open #home,
body.checkout-page-open .floating-add-page,
body.checkout-page-open .consult-email {
  display: none;
}

body.checkout-standalone {
  min-height: 100vh;
}

body.checkout-standalone .checkout-page {
  display: block;
  min-height: calc(100vh - 86px);
}

body.checkout-standalone .checkout-back {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.checkout-page {
  background: #f8faf5;
  min-height: calc(100vh - 86px);
  padding: 36px 24px 64px;
}

.checkout-shell {
  margin: 0 auto;
  max-width: 1120px;
}

.checkout-back {
  margin-bottom: 18px;
  width: auto;
}

.checkout-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.payment-card,
.checkout-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.08);
}

.payment-card {
  padding: 26px;
}

.payment-card h2,
.checkout-summary h3 {
  margin: 6px 0 20px;
}

.payment-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-grid label {
  display: grid;
  gap: 8px;
}

.payment-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.payment-grid input {
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
}

.payment-grid input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(22, 106, 99, 0.16);
}

.payment-wide {
  grid-column: 1 / -1;
}

.payment-section-title {
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 900;
  margin: 8px 0 0;
}

.checkout-virtual-note {
  background: #f4f8f1;
  border: 1px solid #d8e6d0;
  border-radius: 8px;
  color: #4a5f45;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  padding: 10px 12px;
}

.wintopay-card-shell,
.card-element-shell {
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 52px;
  padding: 12px 14px;
}

.checkout-submit {
  background: var(--ink);
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  margin-top: 18px;
  min-height: 52px;
  width: 100%;
}

.payment-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.45;
  margin-top: 14px;
  padding: 12px 14px;
}

.payment-status[data-status="paid"] {
  background: #edf8ef;
  border-color: #b8ddbd;
  color: #166a3b;
}

.payment-status[data-status="failed"] {
  background: #fff1f0;
  border-color: #efbeb9;
  color: #9f2f23;
}

.payment-status[data-status="pending"],
.payment-status[data-status="unpaid"] {
  background: #fff8df;
  border-color: #ecd68a;
  color: #75560a;
}

.checkout-order-link {
  color: var(--accent);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  margin-top: 12px;
  text-decoration: none;
}

.three-ds-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 16px;
  position: fixed;
  z-index: 80;
}

.three-ds-modal[hidden] {
  display: none !important;
}

.three-ds-backdrop {
  background: rgba(20, 28, 32, 0.55);
  inset: 0;
  position: absolute;
}

.three-ds-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  max-height: min(860px, calc(100vh - 24px));
  max-width: min(520px, calc(100vw - 24px));
  overflow: hidden;
  position: relative;
  width: 520px;
  z-index: 1;
}

.three-ds-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.three-ds-header h2 {
  font-size: 1.05rem;
  font-weight: 900;
  margin: 0;
}

.three-ds-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0 4px;
}

.three-ds-hint {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  margin: 0;
  padding: 10px 16px 0;
}

.three-ds-frame {
  background: #fbfdf9;
  border: 0;
  flex: 1;
  min-height: 420px;
  width: 100%;
}

.three-ds-modal.is-popup-mode .three-ds-card {
  max-width: min(420px, calc(100vw - 24px));
  width: 420px;
}

.three-ds-modal.is-popup-mode .three-ds-hint {
  padding: 20px 16px 24px;
}

.three-ds-frame[hidden] {
  display: none !important;
}

@media (max-width: 720px) {
  .three-ds-card {
    max-height: calc(100vh - 12px);
    width: 100%;
  }

  .three-ds-frame {
    min-height: min(560px, calc(100vh - 140px));
  }
}

.checkout-order-link[hidden] {
  display: none;
}

.checkout-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
  margin-top: 12px;
}

.checkout-summary {
  padding: 22px;
  position: sticky;
  top: 100px;
}

.checkout-items {
  display: grid;
  gap: 12px;
}

.checkout-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.checkout-line strong {
  font-size: 0.95rem;
}

.checkout-line span {
  color: var(--muted);
  font-size: 0.84rem;
}

.checkout-total {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 18px;
}

.checkout-total strong {
  font-size: 1.35rem;
}

.cart-page,
.order-page,
.orders-page {
  background: #f8faf5;
  min-height: 100vh;
}

.orders-page-main {
  margin: 0 auto;
  max-width: 860px;
  padding: 36px 24px 72px;
}

.orders-page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.08);
  padding: 24px;
}

.orders-page-card h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin: 0;
}

.orders-page-lead {
  color: var(--muted);
  margin: 8px 0 20px;
}

.orders-page-list {
  display: grid;
  gap: 12px;
}

.orders-page-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 14px;
}

.orders-page-item-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.orders-page-item-main p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 4px;
}

.orders-page-item-total {
  color: var(--ink) !important;
  font-size: 1.05rem !important;
  font-weight: 900;
}

.orders-page-item-actions {
  display: grid;
  gap: 8px;
  min-width: 120px;
}

.orders-page-item-actions a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 800;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  text-decoration: none;
}

.orders-page-item-actions a.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.orders-page-actions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.orders-page-actions a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.cart-page-main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 36px 24px 72px;
}

.cart-page-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.cart-page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.08);
  padding: 24px;
}

.cart-page-card h1 {
  font-size: 2.2rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.cart-page-lead {
  color: var(--muted);
  margin: 8px 0 20px;
}

.cart-page-items {
  display: grid;
  gap: 14px;
}

.cart-page-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 112px minmax(0, 1fr);
  padding: 14px;
}

.cart-page-thumb,
.cart-page-thumb img,
.cart-page-thumb .image-fallback {
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.cart-page-thumb .image-fallback {
  align-items: center;
  background: color-mix(in srgb, var(--accent, #8cbc7a) 28%, #fff);
  color: var(--ink);
  display: flex;
  font-weight: 900;
  justify-content: center;
}

.cart-page-item-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cart-page-item-body strong {
  font-size: 1.05rem;
  line-height: 1.3;
}

.cart-page-price {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-page-line-total {
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.cart-page-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.cart-page-qty {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.cart-page-qty > span {
  color: var(--muted);
  font-size: 0.84rem;
}

.cart-page-summary {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.cart-page-total {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}

.cart-page-total strong {
  font-size: 1.35rem;
}

.cart-page-actions {
  display: grid;
  gap: 10px;
}

.cart-page-actions a {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.cart-page-actions a[hidden] {
  display: none;
}

.cart-page-actions a.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.order-page-main {
  margin: 0 auto;
  max-width: 1120px;
  padding: 36px 24px 72px;
}

.order-page-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.order-page-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.08);
  padding: 24px;
}

.order-page-card h1 {
  font-size: 2.2rem;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.order-page-meta {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 20px;
}

.order-status-pill {
  background: #eef8f1;
  border-radius: 999px;
  color: #166a3b;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 10px;
}

.order-status-pill[data-status="failed"] {
  background: #fff1f0;
  color: #9f2f23;
}

.order-status-pill[data-status="pending"],
.order-status-pill[data-status="unpaid"],
.order-status-pill[data-status="pending_payment"] {
  background: #fff8df;
  color: #75560a;
}

.order-page-items {
  display: grid;
  gap: 12px;
}

.order-page-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 12px;
}

.order-page-item img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.order-page-item strong {
  display: block;
  margin-bottom: 5px;
}

.order-page-item span,
.order-page-item li,
.order-page-summary span {
  color: var(--muted);
  font-size: 0.88rem;
}

.order-page-item ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.order-page-summary {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 100px;
}

.order-page-total {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding-top: 14px;
}

.order-page-total strong {
  font-size: 1.35rem;
}

.order-page-actions {
  display: grid;
  gap: 10px;
}

.order-page-actions a {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  text-decoration: none;
}

.order-page-actions a[hidden] {
  display: none;
}

.order-page-actions a.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.admin-page {
  background: #f8faf5;
  min-height: 100vh;
}

.admin-page--login .admin-main {
  margin: 0 auto;
  max-width: 1240px;
  min-height: 100vh;
  padding: 36px 24px 72px;
}

.admin-page--dashboard .admin-main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 36px 24px 72px;
}

.admin-back-link {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 800;
  justify-self: start;
  text-decoration: none;
}

.admin-back-link:hover {
  text-decoration: underline;
}

.admin-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(29, 42, 47, 0.08);
  padding: 22px;
}

.admin-login {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
}

.admin-login-card {
  display: grid;
  gap: 14px;
  max-width: 460px;
  width: 100%;
}

.admin-login-card h1,
.admin-head h1 {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 0;
  max-width: none;
  white-space: nowrap;
}

.admin-login-card p {
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.admin-login-card label,
.admin-toolbar label,
.admin-detail-form label {
  display: grid;
  gap: 8px;
}

.admin-login-card span,
.admin-toolbar span,
.admin-detail-form span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}

.admin-login-card input,
.admin-toolbar input,
.admin-toolbar select,
.admin-detail-form select,
.admin-detail-form textarea {
  background: #fbfdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 13px;
}

.admin-detail-form textarea {
  resize: vertical;
}

.admin-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.admin-stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 18px;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.3;
}

.admin-stat-card strong {
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.admin-toolbar {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 220px;
  margin-bottom: 16px;
}

.admin-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  width: 100%;
}

.admin-layout > * {
  max-width: 100%;
  min-width: 0;
}

.admin-table-wrap {
  -webkit-overflow-scrolling: touch;
  margin: 0 -4px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 4px;
}

.admin-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-table tr.active {
  background: #f2f8f4;
}

.admin-table button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  padding: 0;
  text-align: left;
}

.admin-table button span {
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-row-meta {
  display: none;
}

.admin-detail {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}

/* Admin dashboard: stack list + detail before the two-column layout crushes */
@media (max-width: 1100px) {
  .admin-page--dashboard .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-page--dashboard .admin-main {
    padding: 28px 16px 56px;
  }

  .admin-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(140px, 200px);
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-detail {
    position: static;
  }

  .admin-table {
    min-width: 640px;
  }
}

.admin-detail-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.admin-detail-head h2 {
  font-size: 1.45rem;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.admin-detail-head a {
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.admin-detail-meta {
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 14px 0;
}

.admin-detail-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-detail-meta strong {
  font-size: 1.45rem;
}

.admin-detail-items {
  display: grid;
  gap: 10px;
}

.admin-detail-items article {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 10px;
}

.admin-detail-items img {
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  width: 100%;
}

.admin-detail-items span,
.admin-detail-items li {
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-detail-items ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.admin-detail-form {
  display: grid;
  gap: 12px;
}

.admin-detail-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.admin-detail-actions .checkout-submit {
  margin-top: 0;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.admin-detail-actions .checkout-submit:hover {
  background: #2f4048;
  box-shadow: 0 10px 22px rgba(29, 42, 47, 0.16);
}

.admin-detail-actions .checkout-submit:active {
  transform: translateY(1px);
}

.danger-button {
  border-color: #efbeb9;
  color: #9f2f23;
}

.admin-detail-actions .danger-button {
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.admin-detail-actions .danger-button:hover {
  background: #fff1f0;
  border-color: #e39a92;
  color: #8b261b;
}

.admin-detail-actions .danger-button:active {
  background: #fde3e0;
}

.toast {
  background: var(--ink);
  border-radius: 999px;
  bottom: 24px;
  color: white;
  left: 50%;
  opacity: 0;
  padding: 12px 18px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 60;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.add-page-confirm {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: 92px;
  box-shadow: 0 18px 42px rgba(45, 72, 63, 0.2);
  opacity: 0;
  padding: 14px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(8px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
  width: min(280px, calc(100vw - 32px));
  z-index: 66;
}

.add-page-confirm.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.add-page-confirm p {
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
}

.add-page-confirm > div {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.add-page-confirm .ghost-button,
.add-page-confirm .confirm-button {
  padding: 10px 12px;
}

.floating-add-page {
  align-items: center;
  background: var(--teal);
  border: 0;
  border-radius: 50%;
  bottom: 24px;
  box-shadow: 0 14px 32px rgba(22, 106, 99, 0.32);
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 2rem;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  position: fixed;
  right: 24px;
  transition: opacity 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  width: 58px;
  z-index: 65;
}

.floating-add-page:hover {
  box-shadow: 0 18px 38px rgba(22, 106, 99, 0.38);
  transform: translateY(-2px);
}

.floating-add-page:active {
  transform: translateY(0) scale(0.96);
}

.consult-email {
  align-items: center;
  background: #1f2b31;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  bottom: 24px;
  box-shadow: 0 16px 36px rgba(22, 31, 35, 0.22);
  color: #fff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  gap: 8px;
  min-height: 52px;
  padding: 12px 16px 12px 14px;
  position: fixed;
  right: 24px;
  text-decoration: none;
  transition: box-shadow 160ms ease, transform 160ms ease;
  z-index: 66;
}

.consult-email:hover {
  box-shadow: 0 20px 42px rgba(22, 31, 35, 0.28);
  transform: translateY(-2px);
}

.consult-email:active {
  transform: translateY(0) scale(0.98);
}

.consult-email-icon {
  border: 2px solid currentColor;
  border-radius: 5px;
  height: 16px;
  position: relative;
  width: 21px;
}

.consult-email-icon::before,
.consult-email-icon::after {
  border-top: 2px solid currentColor;
  content: "";
  left: 50%;
  position: absolute;
  top: 4px;
  width: 13px;
}

.consult-email-icon::before {
  transform: translateX(-50%) rotate(32deg);
  transform-origin: left center;
}

.consult-email-icon::after {
  transform: translateX(-50%) rotate(-32deg);
  transform-origin: right center;
}

body.detail-open .floating-add-page {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.9);
}

body.map-mode .floating-add-page {
  display: none;
}

.category-topbar,
#catalog,
#filtersPanel,
.filter-open-button,
#clearFilters,
.map-product-card .product-category {
  display: none !important;
}

.map-product-card .product-body h3 {
  display: none;
}

.map-product-card .product-body {
  display: none;
}

.map-detail-modal #detailTitle {
  display: none;
}

.map-detail-modal .detail-header {
  justify-content: flex-end;
  padding: 10px 12px;
}

#detailCategory {
  display: none;
}

.shop-layout {
  display: block;
}

.shop-layout .products {
  margin: 0 auto;
  max-width: 1240px;
  min-width: 0;
  padding: 0 24px 56px;
}

.shop-layout .section-heading.compact {
  align-items: end;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 16px;
}

.map-service-note {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  margin: -4px 0 24px;
  padding-bottom: 22px;
}

.map-service-note section {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 16px 18px;
}

.map-service-note strong {
  color: var(--ink);
  display: block;
  font-size: 1rem;
  margin-bottom: 8px;
}

.map-service-note p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.map-service-note p + p {
  margin-top: 8px;
}

.flow-timebox {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.flow-timebox div {
  background: #f6fbf8;
  border: 1px solid rgba(31, 122, 88, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 156px;
  padding: 14px 16px;
}

.flow-timebox span {
  color: #60766e;
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-timebox strong {
  color: var(--teal);
  font-size: 1.34rem;
  line-height: 1.1;
}

.flow-timebox > div > strong {
  font-size: 1.38rem;
}

.designer-flow {
  counter-reset: flow;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.designer-flow li {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(31, 122, 88, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 12px 10px;
  position: relative;
  text-align: center;
}

.designer-flow li:not(:last-child)::after {
  background: var(--teal);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  content: "";
  height: 14px;
  position: absolute;
  right: -9px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  z-index: 2;
}

.designer-flow span {
  background: #e8f6ee;
  border-radius: 999px;
  color: var(--teal);
  display: inline-grid;
  font-size: 0.72rem;
  font-weight: 900;
  height: 30px;
  margin: 0 auto;
  place-items: center;
  width: 42px;
}

.designer-flow strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0;
}

.designer-flow-compact {
  gap: 7px;
  grid-template-columns: 1fr;
  margin-top: 4px;
}

.designer-flow-compact li {
  background: #ffffff;
  grid-template-columns: auto 1fr;
  min-height: 46px;
  padding: 8px 10px;
  text-align: left;
}

.designer-flow-compact li:not(:last-child)::after {
  display: none;
}

.designer-flow-compact span {
  height: 26px;
  margin: 0;
  width: 38px;
}

.floating-add-page span {
  height: 24px;
  position: relative;
  width: 24px;
}

.floating-add-page span::before,
.floating-add-page span::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.floating-add-page span::before {
  height: 4px;
  width: 24px;
}

.floating-add-page span::after {
  height: 24px;
  width: 4px;
}

@media (max-width: 960px) {
  html {
    font-size: 15px;
  }

  .order-card {
    max-height: calc(100vh - 28px);
    max-width: min(720px, calc(100vw - 24px));
    width: min(720px, calc(100vw - 24px));
  }

  .order-product {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  }

  .order-product-image {
    min-height: 140px;
  }

  .order-product-image img {
    max-height: 180px;
  }

  h1 {
    font-size: clamp(2.8rem, 8vw, 4.5rem);
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 4.8vw, 2.6rem);
    line-height: 1.24;
    max-width: 11em;
  }

  .hero-text {
    font-size: var(--text-base);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  .top-search {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .category-topbar {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero,
  .shop-layout {
    grid-template-columns: 1fr;
  }

  .map-service-note {
    grid-template-columns: 1fr;
  }

  .shop-layout .products {
    padding: 0 18px 48px;
  }

  .shop-layout .section-heading.compact {
    align-items: start;
    flex-direction: column;
    gap: 16px;
  }

  .shop-layout .heading-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .flow-timebox {
    grid-template-columns: 1fr;
  }

  .designer-flow {
    grid-template-columns: 1fr;
  }

  .designer-flow li {
    grid-template-columns: auto 1fr;
    min-height: 64px;
    text-align: left;
  }

  .designer-flow li:not(:last-child)::after {
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    height: 10px;
    left: 31px;
    right: auto;
    top: auto;
    transform: none;
    bottom: -10px;
    width: 14px;
  }

  .hero-stage {
    grid-template-rows: repeat(6, 62px);
  }

  .category-grid,
  .trust-strip,
  .policy-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-card-wide {
    grid-column: span 2;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-grid[data-grid-columns="6"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-bubble-panel {
    border-radius: 0 16px 16px 0;
    bottom: 0;
    box-shadow: 18px 0 48px rgba(29, 42, 47, 0.2);
    left: 0;
    max-width: calc(100vw - 52px);
    opacity: 1;
    padding: 18px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transform-origin: left center;
    width: 360px;
    z-index: 72;
  }

  .category-filter.open .category-bubble-panel {
    transform: translateX(0);
  }

  .category-bubble-panel-head {
    display: flex;
  }

  .category-bubbles {
    align-content: start;
    max-height: calc(100vh - 76px);
  }

  .product-media {
    height: 168px;
  }

  .product-grid[data-grid-columns="6"] .product-media {
    height: 168px;
  }

  .product-body {
    gap: 10px;
    padding: 13px;
  }

  .product-body p {
    min-height: 38px;
  }

  .price-row {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .price-row strong,
  .price-row s {
    justify-self: start;
  }

  .quantity-control {
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
  }

  .quantity-stepper {
    flex: 0 0 auto;
  }

}

@media (max-width: 640px) {
  html {
    font-size: 16px;
  }

  .topbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    min-height: 56px;
    padding: 10px 14px;
  }

  .brand {
    flex: 0 0 auto;
    gap: 0;
    width: auto;
  }

  .brand > span:not(.leaf-mark) {
    display: none;
  }

  .nav-actions {
    flex: 0 0 auto;
    gap: 8px;
    justify-content: flex-end;
    justify-self: end;
    margin-left: auto;
    order: 0;
    width: auto;
  }

  .nav-links,
  .top-search {
    width: 100%;
  }

  .top-search {
    order: 2;
  }

  .nav-menu-panel {
    left: 0;
    transform: translate(0, -4px) scale(0.98);
  }

  .nav-menu.open .nav-menu-panel {
    transform: translate(0, 0) scale(1);
  }

  .nav-actions .sticker-toggle,
  .nav-actions .language-picker {
    min-height: 40px;
  }

  .nav-actions .sticker-toggle {
    gap: 6px;
    padding: 5px 9px;
  }

  .nav-actions .sticker-toggle span {
    font-size: 0.75rem;
  }

  .nav-actions .sticker-toggle input {
    height: 18px;
    width: 32px;
  }

  .nav-actions .sticker-toggle input::after {
    height: 14px;
    width: 14px;
  }

  .nav-actions .sticker-toggle input:checked::after {
    transform: translateX(14px);
  }

  .nav-actions .language-picker {
    gap: 4px;
    padding: 6px 8px 6px 10px;
  }

  .nav-actions .language-label {
    display: none;
  }

  .nav-actions .language-icon {
    height: 18px;
    width: 18px;
  }

  .nav-actions .language-icon::before {
    height: 13px;
    width: 6px;
  }

  .nav-actions .language-icon::after {
    width: 13px;
  }

  .nav-actions .policy-nav-link {
    display: none;
  }

  .nav-actions .orders-nav-link {
    font-size: 0.78rem;
    min-height: 40px;
    padding: 6px 10px;
  }

  .nav-actions .cart-button {
    gap: 0;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    position: relative;
    width: 44px;
  }

  .nav-actions .cart-button > span {
    display: none;
  }

  .nav-actions .cart-button::before {
    border: 2px solid currentColor;
    border-radius: 0 0 4px 4px;
    content: "";
    height: 12px;
    margin-top: 2px;
    width: 16px;
  }

  .nav-actions .cart-button::after {
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    content: "";
    height: 6px;
    left: 50%;
    position: absolute;
    top: 11px;
    transform: translateX(-50%);
    width: 10px;
  }

  .nav-actions .cart-button strong {
    align-items: center;
    display: inline-flex;
    font-size: 0.68rem;
    height: 18px;
    justify-content: center;
    min-width: 18px;
    padding: 0 5px;
    position: absolute;
    right: 2px;
    top: 2px;
  }

  .hero {
    min-height: auto;
    padding: 28px 14px 32px;
    gap: 22px;
  }

  h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    line-height: 0.95;
  }

  .hero-copy h1 {
    font-size: clamp(1.5rem, 6.8vw, 2rem);
    line-height: 1.28;
    margin-bottom: 16px;
    max-width: none;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr 1fr;
    margin-top: 20px;
    width: 100%;
  }

  .hero-actions .primary-link,
  .hero-actions .secondary-link {
    align-items: center;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
    width: 100%;
  }

  h2 {
    font-size: var(--text-2xl);
  }

  h3 {
    font-size: var(--text-lg);
  }

  .leaf-mark {
    border-radius: 10px;
    font-size: 0.85rem;
    height: 36px;
    width: 36px;
  }

  .nav-menu-toggle,
  .top-category-toggle {
    font-size: var(--text-sm);
  }

  .hero-text {
    font-size: var(--text-base);
    line-height: 1.65;
  }

  .eyebrow {
    font-size: var(--text-xs);
  }

  .consult-email {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    justify-content: center;
    min-height: 48px;
    min-width: 48px;
    padding: 0;
    right: calc(14px + env(safe-area-inset-right, 0px));
    width: 48px;
  }

  .consult-email > span:not(.consult-email-icon) {
    display: none;
  }

  .consult-email-icon {
    border-radius: 4px;
    height: 15px;
    width: 19px;
  }

  .consult-email-icon::before,
  .consult-email-icon::after {
    top: 3px;
    width: 11px;
  }

  .payment-grid span,
  .payment-grid input,
  .checkout-submit,
  .checkout-note,
  .checkout-line strong,
  .checkout-line span,
  .payment-status,
  .top-search input,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .language-picker select {
    font-size: 0.875rem;
    min-width: 4.5rem;
  }

  .hero-stage {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    min-height: 230px;
  }

  .hero-card {
    flex: 0 0 240px;
    height: 230px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .category-grid,
  .checkout-layout,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    max-width: none;
  }

  .trust-strip div {
    border-bottom: 1px solid var(--line);
    border-right: 1px solid var(--line);
    gap: 2px;
    min-height: auto;
    padding: 14px 10px;
  }

  .trust-strip div:nth-child(2n) {
    border-right: 0;
  }

  .trust-strip div:nth-child(n + 3) {
    border-bottom: 0;
  }

  .trust-strip strong {
    font-size: 1rem;
  }

  .trust-strip span {
    font-size: 0.78rem;
    line-height: 1.35;
  }
  .shop-layout{
    padding: 28px 24px;
  }
  .shop-layout .products {
    display: flex;
    flex-direction: column;
    padding: 0 0 40px;
  }

  .shop-layout .section-heading.compact {
    display: contents;
  }

  .shop-layout .section-heading.compact > div:first-child {
    border-bottom: 1px solid var(--line);
    margin-bottom: 16px;
    order: 1;
    padding-bottom: 14px;
  }

  .shop-layout .section-heading.compact h2 {
    font-size: var(--text-2xl);
    line-height: 1.15;
  }

  .shop-layout .section-heading.compact .eyebrow {
    font-size: var(--text-xs);
    margin-bottom: 6px;
  }

  .shop-layout .map-service-note {
    gap: 12px;
    margin: 0 0 18px;
    order: 2;
    padding-bottom: 16px;
  }

  .shop-layout .heading-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    margin-bottom: 14px;
    order: 3;
    width: 100%;
  }

  .shop-layout .view-toggle {
    grid-column: 1 / -1;
    justify-content: space-between;
    min-height: 38px;
    width: 100%;
  }

  .shop-layout .view-toggle-button {
    flex: 1;
    min-height: 30px;
    padding: 5px 8px;
  }

  .shop-layout .filter-open-button,
  .shop-layout #clearFilters {
    justify-content: center;
    min-height: 40px;
    width: 100%;
  }

  .shop-layout .product-grid {
    order: 4;
  }

  .shop-layout .map-service-note section {
    padding: 12px 14px;
  }

  .shop-layout .map-service-note strong {
    font-size: 0.92rem;
    margin-bottom: 6px;
  }

  .shop-layout .map-service-note p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .flow-timebox,
  .shop-layout .flow-timebox {
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 8px;
  }

  .flow-timebox div,
  .shop-layout .flow-timebox div {
    gap: 5px;
    min-height: 0;
    padding: 8px 8px 10px;
  }

  .flow-timebox span,
  .shop-layout .flow-timebox span {
    font-size: 0.68rem;
    letter-spacing: 0.01em;
    line-height: 1.2;
  }

  .flow-timebox strong,
  .flow-timebox > div > strong,
  .shop-layout .flow-timebox strong,
  .shop-layout .flow-timebox > div > strong {
    font-size: 0.95rem;
    line-height: 1.15;
  }

  .designer-flow-compact,
  .shop-layout .designer-flow-compact {
    gap: 4px;
    margin-top: 2px;
  }

  .designer-flow-compact li,
  .shop-layout .designer-flow-compact li {
    border-radius: 6px;
    gap: 6px;
    min-height: 30px;
    padding: 4px 6px;
  }

  .designer-flow-compact span,
  .shop-layout .designer-flow-compact span {
    font-size: 0.62rem;
    height: 20px;
    width: 28px;
  }

  .designer-flow-compact strong,
  .shop-layout .designer-flow-compact strong {
    font-size: 0.7rem;
    line-height: 1.25;
  }

  .shop-layout .pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    order: 5;
  }

  .shop-layout .page-controls {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
    order: 1;
    width: 100%;
  }

  .shop-layout #prevPage,
  .shop-layout #nextPage {
    font-size: 0.8125rem;
    min-height: 44px;
    padding: 10px 8px;
    touch-action: manipulation;
    width: 100%;
  }

  .shop-layout .page-numbers {
    flex-wrap: nowrap;
    gap: 4px;
    justify-content: center;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .shop-layout .page-numbers::-webkit-scrollbar {
    display: none;
  }

  .shop-layout .page-number {
    flex: 0 0 auto;
    font-size: 0.8125rem;
    min-height: 44px;
    min-width: 44px;
    padding: 0;
    touch-action: manipulation;
  }

  .shop-layout .page-gap {
    align-items: center;
    display: inline-flex;
    font-size: 0.8rem;
    min-height: 44px;
    padding: 0 2px;
  }

  .shop-layout .page-size {
    font-size: 0.8125rem;
    justify-content: center;
    order: 2;
    width: 100%;
  }

  .shop-layout .page-size select {
    font-size: 0.8125rem;
    min-height: 44px;
    padding: 8px 10px;
  }

  .shop-layout .page-jump {
    gap: 8px;
    justify-content: center;
    order: 3;
    width: 100%;
  }

  .shop-layout .page-jump input {
    font-size: 16px;
    height: 44px;
    width: 64px;
  }

  .shop-layout .page-jump .page-nav {
    flex: 1;
    font-size: 0.8125rem;
    min-height: 44px;
    touch-action: manipulation;
  }

  .shop-layout .page-status {
    font-size: 0.78rem;
    line-height: 1.45;
    order: 4;
    text-align: center;
    width: 100%;
  }

  .shop-layout .page-nav:active:not(:disabled),
  .shop-layout .page-number:active {
    transform: scale(0.98);
  }

  .checkout-page {
    padding: 24px 16px 48px;
  }

  .payment-card,
  .checkout-summary {
    padding: 18px;
  }

  .payment-grid {
    grid-template-columns: 1fr;
  }

  .cart-page-layout,
  .order-page-layout {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .cart-page-main,
  .order-page-main,
  .orders-page-main {
    padding: 20px 14px 48px;
  }

  .cart-page-main {
    padding-bottom: 120px;
  }

  .orders-page-card {
    padding: 14px;
  }

  .orders-page-card h1 {
    font-size: var(--text-xl);
  }

  .orders-page-item {
    gap: 10px;
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .orders-page-item-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .orders-page-item-actions a {
    min-height: 44px;
  }

  .cart-page-card,
  .order-page-card {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(29, 42, 47, 0.06);
    padding: 14px;
  }

  .cart-page-main .eyebrow {
    font-size: var(--text-xs);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
  }

  .cart-page-card h1 {
    font-size: var(--text-xl);
    line-height: 1.25;
  }

  .cart-page-lead {
    font-size: var(--text-sm);
    line-height: 1.5;
    margin: 6px 0 14px;
  }

  .cart-page-items {
    gap: 10px;
  }

  .cart-page-item {
    gap: 10px;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 10px;
  }

  .cart-page-thumb,
  .cart-page-thumb img,
  .cart-page-thumb .image-fallback {
    border-radius: 8px;
  }

  .cart-page-item-body {
    gap: 4px;
  }

  .cart-page-item-body strong {
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1.35;
  }

  .cart-page-price {
    font-size: var(--text-base);
    line-height: 1.3;
  }

  .cart-page-desc {
    -webkit-box-orient: vertical;
    display: -webkit-box;
    font-size: var(--text-xs);
    -webkit-line-clamp: 3;
    line-clamp: 3;
    line-height: 1.45;
    overflow: hidden;
  }

  .cart-page-qty {
    gap: 8px;
    justify-content: space-between;
    margin-top: 6px;
    width: 100%;
  }

  .cart-page-qty > span {
    font-size: var(--text-xs);
  }

  .cart-page-qty .quantity-stepper {
    height: 40px;
  }

  .cart-page-qty .quantity-stepper button {
    font-size: var(--text-lg);
    height: 40px;
    width: 40px;
  }

  .cart-page-qty .quantity-stepper input {
    font-size: var(--text-sm);
    height: 36px;
    width: 44px;
  }

  .cart-page-summary {
    bottom: 0;
    left: 0;
    /* position: fixed; */
    right: 0;
    z-index: 40;
    border-radius: 14px 14px 0 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    box-shadow: 0 -10px 28px rgba(29, 42, 47, 0.12);
    gap: 10px;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .cart-page-summary h2 {
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
  }

  .cart-page-total {
    padding-top: 8px;
  }

  .cart-page-total span {
    font-size: var(--text-sm);
  }

  .cart-page-total strong {
    font-size: var(--text-lg);
  }

  .cart-page-actions {
    gap: 8px;
    grid-template-columns: 1fr 1.2fr;
  }

  .cart-page-actions:has(a[hidden]) {
    grid-template-columns: 1fr;
  }

  .cart-page-actions a {
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 800;
    min-height: 44px;
    padding: 10px 12px;
  }

  .cart-page-actions a.secondary {
    order: -1;
  }

  .cart-page-main .empty-cart {
    font-size: var(--text-sm);
    line-height: 1.5;
    padding: 8px 0;
  }

  .order-page-main .eyebrow {
    font-size: var(--text-xs);
    margin-bottom: 6px;
  }

  .order-page-card h1 {
    font-size: var(--text-2xl);
    line-height: 1.15;
  }

  .order-page-summary h2 {
    font-size: var(--text-lg);
    line-height: 1.25;
    margin-bottom: 0;
  }

  .order-page-meta {
    font-size: 0.84rem;
    gap: 8px;
    margin: 6px 0 14px;
  }

  .order-page-meta > span:not(.order-status-pill) {
    line-height: 1.45;
  }

  .order-status-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .order-page-item {
    gap: 10px;
    grid-template-columns: 64px minmax(0, 1fr);
    padding: 10px;
  }

  .order-page-item strong {
    font-size: var(--text-base);
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .order-page-item span,
  .order-page-item li,
  .order-page-summary span {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .order-page-item ul {
    margin: 6px 0 0;
    padding-left: 16px;
  }

  .order-page-summary {
    gap: 12px;
    position: static;
  }

  .order-page-main .payment-status {
    font-size: 0.84rem;
    margin-top: 0;
    padding: 10px 12px;
  }

  .order-page-total {
    padding-top: 12px;
  }

  .order-page-total span {
    font-size: var(--text-sm);
  }

  .order-page-total strong {
    font-size: var(--text-lg);
  }

  .order-page-actions {
    gap: 8px;
  }

  .order-page-actions a {
    font-size: 0.875rem;
    min-height: 44px;
    padding: 10px 12px;
  }

  .order-page-main .empty-cart {
    font-size: 0.84rem;
  }

  .checkout-summary {
    position: static;
  }

  .policy-section {
    padding: 28px 24px;
  }

  .policy-section .section-heading {
    border-bottom: 1px solid var(--line);
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .policy-section .section-heading h2 {
    font-size: var(--text-2xl);
    line-height: 1.15;
  }

  .policy-section .section-heading .eyebrow {
    font-size: var(--text-xs);
    margin-bottom: 6px;
  }

  .policy-section .section-heading p:last-child {
    font-size: 0.84rem;
    line-height: 1.55;
    max-width: none;
  }

  .policy-section .policy-entry {
    gap: 14px;
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .policy-section .policy-entry span {
    font-size: var(--text-xs);
  }

  .policy-section .policy-entry h3 {
    font-size: 0.92rem;
    margin: 4px 0 6px;
  }

  .policy-section .policy-entry p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .policy-section .policy-entry .primary-link,
  #policyListLink {
    align-items: center;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 800;
    justify-content: center;
    justify-self: stretch;
    min-height: 44px;
    padding: 10px 12px;
    text-align: center;
    width: 100%;
  }

  .policy-section .policy-card {
    gap: 8px;
    min-height: auto;
    padding: 12px 14px;
  }

  .policy-section .policy-card > span {
    font-size: var(--text-xs);
  }

  .policy-section .policy-card h3 {
    font-size: var(--text-base);
  }

  .policy-section .policy-card p {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .policy-section .policy-card > strong {
    font-size: 0.8125rem;
  }

  .policy-section .policy-detail-page {
    gap: 12px;
    padding: 12px 14px;
  }

  .policy-section .policy-detail-page h3 {
    font-size: var(--text-2xl);
    line-height: 1.15;
  }

  .policy-section .policy-detail-body,
  .policy-section .policy-detail-body p,
  .policy-section .policy-detail-body li {
    font-size: 0.84rem;
    line-height: 1.55;
  }

  .policy-card-wide {
    grid-column: span 1;
  }

  .policy-detail-body dl div {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 12px;
  }

  .product-grid[data-grid-columns="1"] {
    grid-template-columns: 1fr;
  }

  .product-grid[data-grid-columns="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .view-toggle .view-toggle-desktop {
    display: none;
  }

  .view-toggle .view-toggle-mobile {
    display: inline-flex;
  }

  .category-bubble-panel {
    border-radius: 0 12px 12px 0;
    padding: 16px;
    width: 340px;
  }

  .product-media {
    height: 138px;
  }

  .product-grid[data-grid-columns="6"] .product-media {
    height: 138px;
  }

  .media-button {
    padding: 18px;
  }

  .product-body {
    gap: 9px;
    padding: 10px;
  }

  .product-body h3 {
    font-size: var(--text-base);
  }

  .product-body p {
    font-size: var(--text-sm);
    line-height: 1.45;
    min-height: 32px;
  }

  .product-category,
  .single-sku {
    font-size: var(--text-xs);
  }

  .price-row {
    align-items: start;
    display: grid;
    gap: 6px;
    justify-content: stretch;
  }

  .price-row strong {
    font-size: var(--text-lg);
  }

  .quantity-control {
    justify-content: space-between;
    margin-left: 0;
    width: 100%;
  }

  .quantity-control span {
    font-size: var(--text-xs);
  }

  .quantity-stepper {
    height: 32px;
  }

  .quantity-stepper button {
    height: 32px;
    width: 28px;
  }

  .quantity-stepper input {
    height: 28px;
    width: 38px;
  }

  .add-button {
    font-size: 0.8125rem;
    line-height: 1.2;
    min-height: 36px;
    padding: 8px 6px;
  }

  .map-product-price strong {
    font-size: 0.9rem;
  }

  .map-product-price span {
    font-size: 0.72rem;
  }

  .detail-modal.open {
    height: 100dvh;
    height: 100svh;
  }

  .detail-card {
    border-radius: 14px;
    height: auto;
    left: 50%;
    max-height: calc(100dvh - 24px);
    max-height: calc(100svh - 24px);
    max-width: calc(100vw - 24px);
    top: 50%;
    transform: translate(-50%, calc(-50% + 12px)) scale(0.98);
    width: calc(100vw - 24px);
  }

  .detail-modal.open .detail-card {
    transform: translate(-50%, -50%) scale(1);
  }

  .detail-header {
    flex-shrink: 0;
    min-height: 48px;
    padding: 8px 12px;
  }

  .detail-header h2 {
    font-size: var(--text-base);
    line-height: 1.25;
  }

  .map-detail-modal .detail-header {
    min-height: 44px;
    padding: 6px 10px;
  }

  .detail-content {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .detail-hero,
  .map-detail-hero,
  .detail-hero > #detailImageViewer,
  .map-detail-hero > #detailImageViewer,
  .detail-image-viewer {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    min-height: 0;
    width: 100%;
  }

  .detail-hero:not(.map-detail-hero) {
    gap: 10px;
  }

  .map-detail-hero .detail-image,
  .detail-image-viewer > .detail-image {
    flex: 0 0 auto;
    height: 320px;
    max-height: 320px;
    min-height: 320px;
    padding: 8px;
  }

  .detail-image-strip {
    flex: 0 0 auto;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0;
  }

  .detail-image-option {
    height: 44px;
    width: 48px;
  }

  .detail-summary {
    flex: 0 0 auto;
    gap: 8px;
    min-height: 0;
  }

  .detail-summary p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    font-size: var(--text-sm);
    line-height: 1.4;
    overflow: hidden;
  }

  .detail-sku-wrap {
    max-height: 72px;
    overflow: hidden;
  }

  .detail-skus {
    max-height: 72px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
  }

  .detail-actions {
    gap: 8px;
  }

  .detail-actions .add-button {
    flex: 1 1 auto;
    min-height: 44px;
  }

  .detail-table {
    display: none;
  }

  .order-card {
    max-height: calc(100vh - 20px);
    max-width: calc(100vw - 20px);
    width: calc(100vw - 20px);
  }

  .order-product {
    align-items: center;
    grid-template-columns: 1fr;
  }

  .order-product-image {
    min-height: 160px;
  }

  .order-product-image img {
    max-height: 220px;
  }

  .order-package-grid {
    grid-template-columns: 1fr;
  }

  .order-package-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .admin-main {
    padding: 20px 12px 48px;
  }

  .admin-head {
    align-items: center;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 14px;
  }

  .admin-head > div {
    flex: 1;
    min-width: 0;
  }

  .admin-head .eyebrow {
    font-size: 0.68rem;
    margin: 0 0 4px;
  }

  .admin-login-card h1,
  .admin-head h1 {
    font-size: 1.35rem;
    line-height: 1.2;
    margin-bottom: 0;
    white-space: normal;
  }

  .admin-head .ghost-button {
    flex: 0 0 auto;
    font-size: 0.84rem;
    min-height: 40px;
    padding: 8px 12px;
  }

  .admin-detail-actions {
    grid-template-columns: 1fr;
  }

  .admin-toolbar {
    gap: 10px;
    grid-template-columns: 1fr;
    margin-bottom: 12px;
    padding: 12px;
  }

  .admin-toolbar label {
    gap: 6px;
  }

  .admin-toolbar span {
    font-size: 0.72rem;
  }

  .admin-toolbar input,
  .admin-toolbar select {
    border-radius: 8px;
    font-size: 16px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
  }

  .admin-stats {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 12px;
  }

  .admin-stat-card {
    gap: 4px;
    min-height: 70px;
    padding: 12px;
  }

  .admin-stat-card span {
    font-size: 0.72rem;
  }

  .admin-stat-card strong {
    font-size: 1.15rem;
  }

  .admin-layout .admin-card {
    padding: 14px;
  }

  .admin-table {
    min-width: 0;
  }

  .admin-table th:nth-child(n + 4),
  .admin-table td:nth-child(n + 4) {
    display: none;
  }

  .admin-table th,
  .admin-table td {
    padding: 10px 8px;
    vertical-align: top;
  }

  .admin-table button {
    gap: 3px;
  }

  .admin-row-meta {
    display: block;
    font-size: 0.72rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .admin-table strong {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .admin-detail-head {
    flex-direction: column;
    gap: 8px;
  }

  .admin-detail > h2,
  .admin-detail-head h2 {
    font-size: 1.1rem;
    line-height: 1.25;
    margin: 6px 0 0;
  }

  .admin-detail-head a {
    font-size: 0.84rem;
  }

  .admin-detail .order-status-pill {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .admin-detail-meta {
    gap: 6px;
    padding: 12px 0;
  }

  .admin-detail-meta span {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .admin-detail-meta strong {
    font-size: 1.2rem;
    line-height: 1.25;
  }

  .admin-detail-items article {
    gap: 10px;
    grid-template-columns: 56px minmax(0, 1fr);
    padding: 10px;
  }

  .admin-detail-items strong {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .admin-detail-items span,
  .admin-detail-items li {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .admin-detail-form {
    gap: 10px;
  }

  .admin-detail-form span {
    font-size: 0.72rem;
  }

  .admin-detail-form select,
  .admin-detail-form textarea {
    font-size: 16px;
    min-height: 44px;
    padding: 10px 12px;
  }

  .admin-detail-form textarea {
    min-height: 96px;
  }

  .admin-detail-actions {
    gap: 8px;
  }

  .admin-detail-actions .checkout-submit,
  .admin-detail-actions .ghost-button {
    font-size: 0.9rem;
    min-height: 44px;
    padding: 10px 12px;
  }

  .admin-detail .empty-cart {
    font-size: 0.84rem;
  }

  .detail-row {
    grid-template-columns: 1fr;
  }

  .detail-row dd {
    border-top: 1px solid var(--line);
  }
}

/* Tablet typography */
@media (min-width: 641px) and (max-width: 1024px) {
  html {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(2.6rem, 7vw, 4.2rem);
    line-height: 0.92;
  }

  .hero-copy h1 {
    font-size: clamp(1.75rem, 4.2vw, 2.35rem);
    line-height: 1.26;
  }

  h2 {
    font-size: var(--text-2xl);
  }

  .brand {
    font-size: var(--text-lg);
  }

  .nav-menu-toggle,
  .top-category-toggle {
    font-size: var(--text-sm);
  }

  .hero-text {
    font-size: var(--text-base);
  }

  .language-picker select {
    font-size: 0.8125rem;
  }

  .product-body h3 {
    font-size: var(--text-base);
  }

  .product-body p {
    font-size: var(--text-sm);
  }

  .product-category,
  .single-sku {
    font-size: var(--text-xs);
  }

  .price-row strong {
    font-size: var(--text-lg);
  }

  .payment-grid span,
  .payment-grid input,
  .checkout-submit,
  .top-search input,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .checkout-line strong,
  .checkout-line span,
  .payment-status,
  .checkout-note {
    font-size: var(--text-sm);
  }

  .checkout-total strong {
    font-size: var(--text-xl);
  }

  .order-page-main {
    padding: 32px 20px 56px;
  }

  .order-page-card {
    padding: 20px;
  }

  .order-page-card h1 {
    font-size: var(--text-3xl);
    line-height: 1.1;
  }

  .order-page-summary h2 {
    font-size: var(--text-xl);
  }

  .order-page-item strong {
    font-size: var(--text-base);
  }

  .order-page-item span,
  .order-page-item li,
  .order-page-summary span {
    font-size: var(--text-sm);
  }

  .order-page-total strong {
    font-size: var(--text-xl);
  }

  .admin-card h1 {
    font-size: var(--text-3xl);
  }
}

/* Landscape orientation blocker for phones and tablets */
.landscape-blocker {
  align-items: center;
  background: #f8faf5;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 99999;
}

.landscape-blocker-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  max-width: 320px;
  padding: 28px 24px;
  text-align: center;
}

.landscape-blocker-icon {
  color: var(--teal);
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 16px;
  transform: rotate(90deg);
}

.landscape-blocker-card p {
  color: var(--ink);
  font-size: var(--text-lg);
  font-weight: 900;
  line-height: 1.45;
  margin: 0 0 8px;
}

.landscape-blocker-sub {
  color: var(--muted);
  display: block;
  font-size: var(--text-sm);
  line-height: 1.55;
}

@media (orientation: landscape) and (max-width: 1024px) {
  .landscape-blocker {
    display: flex;
  }

  body {
    overflow: hidden;
  }
}
