@font-face {
  font-family: "Alibaba PuHuiTi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/AlibabaPuHuiTi-3-55-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba PuHuiTi";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("./assets/fonts/AlibabaPuHuiTi-3-85-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba Sans TC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/AlibabaSansTC-55.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba Sans TC";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("./assets/fonts/AlibabaSansTC-75.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba Sans JP";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/AlibabaSansJP-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba Sans JP";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("./assets/fonts/AlibabaSansJP-Bold.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba Sans KR";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./assets/fonts/AlibabaSansKR-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Alibaba Sans KR";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("./assets/fonts/AlibabaSansKR-Bold.woff2") format("woff2");
}

: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);
  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 {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

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: grid;
  gap: 22px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 68px;
  padding: 0 24px;
}

.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,
.cart-button {
  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);
  font-weight: 800;
  outline: 0;
  max-width: 72px;
}

.policy-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 {
  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;
}

.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;
}

.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;
}

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;
}

.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="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-width: min(860px, calc(100vw - 32px));
  width: 860px;
}

.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: center;
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 118px minmax(0, 1fr);
  margin-bottom: 16px;
  padding: 12px;
}

.order-product-image {
  aspect-ratio: 4 / 3;
  background: #eef8ee;
  border-radius: 6px;
  overflow: hidden;
}

.order-product-image img {
  height: 100%;
  object-fit: contain;
  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;
  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);
}

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

body.checkout-page-open .consult-email {
  display: none;
}

.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;
}

.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%;
}

.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;
}

.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) {
  .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;
  }

  .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) {
  .topbar {
    gap: 12px;
    grid-template-columns: 1fr;
    padding-bottom: 12px;
    padding-top: 12px;
  }

  .brand,
  .nav-actions,
  .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 {
    order: 3;
    justify-content: space-between;
    justify-self: stretch;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  h1 {
    font-size: 3.2rem;
  }

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

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

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

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

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

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

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

  .checkout-summary {
    position: static;
  }

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

  .policy-entry {
    grid-template-columns: 1fr;
  }

  .policy-entry .primary-link {
    justify-self: start;
  }

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

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

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

  .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: 0.92rem;
  }

  .product-body p {
    font-size: 0.78rem;
    line-height: 1.35;
    min-height: 32px;
  }

  .product-category,
  .single-sku {
    font-size: 0.7rem;
  }

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

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

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

  .quantity-control span {
    font-size: 0.68rem;
  }

  .quantity-stepper {
    height: 32px;
  }

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

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

  .add-button {
    font-size: 0.84rem;
    line-height: 1.2;
    padding: 10px 6px;
  }

  .trust-strip div {
    min-height: 84px;
  }

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

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

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

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

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

  .detail-hero,
  .detail-row {
    grid-template-columns: 1fr;
  }

  .detail-image {
    height: 220px;
  }

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