:root {
  --paper: #f4f7f4;
  --surface: #ffffff;
  --ink: #18231d;
  --ink-soft: #536158;
  --forest: #26372f;
  --forest-2: #314a3e;
  --violet: #7650a5;
  --violet-dark: #543276;
  --violet-soft: #e9e0f2;
  --saffron: #e1a44d;
  --saffron-soft: #f6e7c9;
  --sage: #dfe9e1;
  --line: #d8e0da;
  --danger: #a84343;
  --success: #317256;
  --shadow: 0 22px 55px rgba(27, 40, 32, 0.12);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 30px;
  --shell: min(1180px, calc(100% - 40px));
  --display: "Noto Serif Thai", Georgia, serif;
  --body: "IBM Plex Sans Thai", system-ui, sans-serif;
  --utility: "IBM Plex Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open,
body.dialog-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  display: block;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--forest);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.announcement {
  padding: 7px 20px;
  color: #f8faf8;
  background: var(--forest);
  text-align: center;
  font-size: 13px;
}

.announcement p {
  margin: 0;
}

.announcement span {
  margin-right: 6px;
  padding: 1px 7px;
  color: var(--forest);
  background: var(--saffron);
  border-radius: 999px;
  font-weight: 600;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(244, 247, 244, 0.92);
  border-bottom: 1px solid rgba(216, 224, 218, 0.8);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: var(--shell);
  min-height: 78px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
}

.brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  position: relative;
  width: 34px;
  height: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 5px;
  background: var(--violet);
  border-radius: 10px 10px 10px 2px;
  transform: rotate(45deg) scale(0.84);
}

.brand-mark i {
  background: #fff;
  border-radius: 2px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(3) {
  background: var(--saffron);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy b {
  font-family: var(--display);
  font-size: 21px;
}

.brand-copy small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.15em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}

.desktop-nav a,
.seller-link {
  position: relative;
}

.desktop-nav a::after,
.seller-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 2px;
  background: var(--violet);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.desktop-nav a:hover::after,
.seller-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.seller-link {
  font-size: 14px;
  font-weight: 500;
}

.icon-button,
.cart-button,
.close-button {
  border: 0;
  cursor: pointer;
}

.icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 50%;
}

.icon-button:hover {
  background: var(--sage);
}

.icon-button svg,
.cart-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px 9px 15px;
  color: white;
  background: var(--forest);
  border-radius: 999px;
  transition: background 180ms ease, transform 180ms ease;
}

.cart-button:hover {
  background: var(--violet-dark);
  transform: translateY(-1px);
}

.cart-button span {
  font-size: 14px;
}

.cart-button b {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--saffron);
  border-radius: 50%;
  font-family: var(--utility);
  font-size: 11px;
}

.mobile-search-wrap {
  display: none;
}

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 0.93fr) minmax(480px, 1.07fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding-block: 58px 84px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--violet-dark);
  font-family: var(--utility);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: var(--saffron-soft);
}

.hero h1,
.section-heading h2,
.community h2,
.final-cta h2,
.tracking-dialog h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(52px, 6vw, 83px);
}

.hero h1 em {
  color: var(--violet);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(225, 164, 77, 0.7);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.1em;
}

.hero-intro {
  max-width: 500px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.primary-button,
.secondary-button {
  min-height: 50px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 12px 18px 12px 22px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.primary-button {
  color: white;
  background: var(--forest);
}

.primary-button:hover {
  background: var(--violet-dark);
  transform: translateY(-2px);
}

.primary-button span {
  font-size: 21px;
  line-height: 1;
}

.secondary-button {
  padding-inline: 22px;
  color: var(--forest);
  background: transparent;
  border: 1px solid var(--line);
}

.secondary-button:hover {
  background: var(--sage);
  border-color: var(--sage);
}

.text-button {
  min-height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  cursor: pointer;
  font-weight: 500;
}

.text-button span {
  margin-left: 5px;
}

.hero-proof {
  display: flex;
  gap: 0;
  margin: 46px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  min-width: 128px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
}

.hero-proof li + li {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-proof b {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
}

.hero-proof span {
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.3;
}

.hero-visual {
  position: relative;
  height: 580px;
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  z-index: -2;
  inset: 54px 20px 38px 58px;
  background: #e7ede8;
  border-radius: 50% 42% 50% 35%;
  content: "";
  transform: rotate(-5deg);
}

.route-map {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.route-map svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.route-map path {
  fill: none;
  stroke: var(--saffron);
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
}

.route-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  background: var(--saffron);
  border: 4px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--saffron);
}

.dot-start { bottom: 44px; left: 48px; }
.dot-mid { top: 245px; left: 192px; }
.dot-end { top: 42px; right: 36px; }

.route-name {
  position: absolute;
  padding: 4px 7px;
  color: var(--forest);
  background: rgba(244, 247, 244, 0.9);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.route-name-start { bottom: 13px; left: 36px; }
.route-name-mid { top: 259px; left: 138px; transform: rotate(-9deg); }
.route-name-end { top: 8px; right: 8px; }

.feature-product {
  position: absolute;
  z-index: 2;
  top: 52px;
  right: 51px;
  width: 365px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 28px 28px 8px 28px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.feature-art {
  position: relative;
  height: 350px;
  overflow: hidden;
  background: #a789bb;
}

.feature-art::before {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 14px), repeating-linear-gradient(0deg, rgba(50,25,69,0.13) 0 1px, transparent 1px 9px);
  content: "";
}

.silk-fold {
  position: absolute;
  width: 260px;
  height: 490px;
  background: linear-gradient(90deg, #5a3379 0, #8a65a2 22%, #593373 51%, #a981bc 76%, #4b2d64 100%);
  border: 1px solid rgba(255,255,255,0.18);
  transform: rotate(26deg);
}

.fold-one { top: -140px; left: -80px; }
.fold-two { top: 8px; right: -112px; transform: rotate(42deg); }

.silk-diamond {
  position: absolute;
  width: 70px;
  height: 70px;
  border: 7px double rgba(240, 190, 101, 0.9);
  transform: rotate(45deg);
}

.d1 { top: 58px; left: 142px; }
.d2 { top: 162px; left: 54px; transform: rotate(45deg) scale(0.64); }
.d3 { right: 34px; bottom: 28px; transform: rotate(45deg) scale(0.82); }

.feature-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 20px 21px 22px;
}

.feature-info small {
  color: var(--ink-soft);
  font-size: 11px;
}

.feature-info h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 21px;
  line-height: 1.25;
}

.feature-info > span {
  color: var(--violet-dark);
  font-family: var(--utility);
  font-size: 15px;
  font-weight: 500;
}

.maker-card {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 64px;
  min-width: 270px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px 13px 13px;
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(216,224,218,0.75);
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 12px 32px rgba(27,40,32,0.12);
  backdrop-filter: blur(12px);
}

.maker-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: white;
  background: var(--forest-2);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 12px;
}

.maker-card p {
  margin: 0;
  font-size: 11px;
  line-height: 1.4;
}

.maker-card b {
  font-size: 13px;
}

.weave-tag {
  position: absolute;
  z-index: 1;
  bottom: 69px;
  left: 5px;
  width: 104px;
  height: 62px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 8px;
  background: var(--violet);
  border-radius: 5px 18px 5px 18px;
  transform: rotate(-8deg);
}

.weave-tag i {
  background: repeating-linear-gradient(0deg, #f1cf91 0 4px, transparent 4px 8px);
}

.value-strip {
  color: white;
  background: var(--forest);
}

.value-grid {
  min-height: 102px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

.value-grid p {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0 32px;
}

.value-grid p:first-child { padding-left: 0; }
.value-grid p + p { border-left: 1px solid rgba(255,255,255,0.16); }

.value-grid svg {
  width: 32px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--saffron);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.value-grid span {
  display: flex;
  flex-direction: column;
}

.value-grid b { font-size: 14px; }
.value-grid small { color: rgba(255,255,255,0.62); font-size: 11px; }

.catalog {
  padding-block: 112px 126px;
}

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

.section-heading h2,
.community h2,
.final-cta h2 {
  font-size: clamp(39px, 5vw, 58px);
}

.search-box {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.search-box:focus-within {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(118,80,165,0.12);
}

.search-box svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--ink-soft);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  outline: 0;
}

.desktop-search {
  width: min(320px, 33vw);
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
}

.filter-chips {
  display: flex;
  gap: 8px;
}

.filter-chip {
  min-height: 40px;
  padding: 8px 15px;
  color: var(--ink-soft);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  transition: all 160ms ease;
}

.filter-chip:hover {
  color: var(--ink);
  background: var(--sage);
}

.filter-chip.active {
  color: white;
  background: var(--forest);
  border-color: var(--forest);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  white-space: nowrap;
}

.sort-control select {
  min-height: 40px;
  padding: 0 30px 0 10px;
  color: var(--ink);
  background-color: transparent;
  border: 0;
  cursor: pointer;
  font-weight: 500;
}

.result-note {
  margin: 18px 0 12px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 10px;
  letter-spacing: 0.06em;
}

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

.product-card {
  position: relative;
  min-width: 0;
}

.product-image-button {
  position: relative;
  width: 100%;
  display: block;
  overflow: hidden;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 18px 18px 5px 18px;
  cursor: pointer;
}

.product-art {
  position: relative;
  width: 100%;
  aspect-ratio: 0.9;
  overflow: hidden;
  background: var(--art-bg, #e2e9e3);
}

.product-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, rgba(255,255,255,0.22), transparent 42%, rgba(35,45,39,0.08));
  content: "";
  pointer-events: none;
}

.product-art svg {
  width: 100%;
  height: 100%;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}

.product-image-button:hover .product-art svg {
  transform: scale(1.045) rotate(-1deg);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: var(--forest);
  background: rgba(255,255,255,0.9);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 8px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(7px);
}

.quick-view {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  min-height: 42px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background: rgba(38,55,47,0.92);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(8px);
}

.product-image-button:hover .quick-view,
.product-image-button:focus-visible .quick-view {
  opacity: 1;
  transform: translateY(0);
}

.product-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding-top: 14px;
}

.product-meta {
  min-width: 0;
}

.product-meta small {
  display: block;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta h3 {
  margin: 4px 0 6px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-price {
  color: var(--violet-dark);
  font-family: var(--utility);
  font-size: 13px;
  font-weight: 500;
}

.add-cart-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  align-self: end;
  padding: 0;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.add-cart-button:hover {
  background: var(--violet-dark);
  transform: rotate(7deg) scale(1.04);
}

.add-cart-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.empty-results {
  padding: 70px 20px;
  text-align: center;
}

.empty-results > span {
  display: block;
  color: var(--violet);
  font-family: var(--display);
  font-size: 70px;
  line-height: 0.8;
}

.empty-results h3 { margin: 15px 0 4px; font-family: var(--display); font-size: 24px; }
.empty-results p { margin: 0 0 20px; color: var(--ink-soft); }

.community {
  position: relative;
  min-height: 630px;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: center;
  gap: 66px;
  overflow: hidden;
  padding: 65px 68px;
  color: white;
  background: var(--forest);
  border-radius: 32px 32px 8px 32px;
}

.community::before {
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 42px rgba(255,255,255,0.025), 0 0 0 84px rgba(255,255,255,0.02);
  content: "";
}

.community-copy {
  position: relative;
  z-index: 2;
}

.community-copy > p:not(.eyebrow) {
  max-width: 450px;
  margin: 24px 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.75;
}

.light-link {
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(255,255,255,0.65);
  font-weight: 500;
}

.light-link span { margin-left: 8px; }

.community-cards {
  position: relative;
  min-height: 470px;
}

.community-card {
  position: absolute;
  width: 285px;
  height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px 22px 6px 22px;
  box-shadow: 0 26px 44px rgba(10,20,14,0.25);
}

.community-card::before,
.community-card::after {
  position: absolute;
  content: "";
}

.community-card > span,
.community-card > div {
  position: relative;
  z-index: 2;
}

.community-card > span {
  width: max-content;
  padding: 5px 9px;
  color: var(--forest);
  background: rgba(255,255,255,0.84);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 9px;
}

.community-card > div {
  display: flex;
  flex-direction: column;
}

.community-card b {
  font-family: var(--display);
  font-size: 28px;
  line-height: 1.15;
}

.community-card small {
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
}

.cc-one {
  top: 6px;
  left: 12px;
  background: #8766a2;
  transform: rotate(-5deg);
}

.cc-one::before {
  inset: 44px -30px 88px 46px;
  background: repeating-linear-gradient(90deg, #553770 0 11px, #ab8cbd 11px 22px, #e1b35f 22px 25px);
  border-radius: 160px 40px 130px 30px;
  transform: rotate(18deg);
  box-shadow: inset 0 0 50px rgba(0,0,0,0.17);
}

.cc-one::after {
  top: 62px;
  right: 36px;
  width: 70px;
  height: 70px;
  border: 8px double rgba(255,220,157,0.9);
  transform: rotate(45deg);
}

.cc-two {
  right: 5px;
  bottom: 0;
  background: #b8803c;
  transform: rotate(6deg);
}

.cc-two::before {
  inset: 28px 20px 100px;
  background: repeating-radial-gradient(circle at 50% 100%, transparent 0 14px, rgba(255,236,194,0.5) 15px 17px), linear-gradient(145deg, #5f3d26, #d49a4c);
  border-radius: 150px 150px 24px 24px;
  box-shadow: inset 0 -20px 60px rgba(36,20,10,0.32);
}

.how-it-works {
  padding-block: 128px 118px;
}

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

.section-heading.compact > p {
  max-width: 440px;
  margin: 26px 0 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 58px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.steps-list li {
  min-height: 220px;
  padding: 27px 34px 20px 0;
}

.steps-list li + li {
  padding-left: 34px;
  border-left: 1px solid var(--line);
}

.steps-list li > span {
  display: inline-block;
  margin-bottom: 48px;
  padding: 5px 10px;
  color: var(--violet-dark);
  background: var(--violet-soft);
  border-radius: 999px;
  font-family: var(--utility);
  font-size: 10px;
}

.steps-list b {
  font-family: var(--display);
  font-size: 22px;
}

.steps-list p {
  max-width: 290px;
  margin: 7px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.final-cta {
  min-height: 340px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  overflow: hidden;
  padding: 64px 68px;
  color: white;
  background: var(--violet-dark);
  border-radius: 8px 32px 32px 32px;
  background-image: repeating-linear-gradient(45deg, transparent 0 28px, rgba(255,255,255,0.035) 29px 31px);
}

.light-button {
  flex: 0 0 auto;
  color: var(--forest);
  background: var(--saffron-soft);
}

.light-button:hover {
  color: white;
  background: var(--forest);
}

.site-footer {
  margin-top: 112px;
  color: #dfe8e2;
  background: #1e2b24;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 60px;
  padding-block: 72px;
}

.footer-brand .brand-copy b { color: white; }
.footer-brand .brand-copy small { color: rgba(255,255,255,0.45); }

.footer-grid > div:first-child > p {
  margin: 23px 0 0;
  color: rgba(255,255,255,0.5);
  font-size: 14px;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-grid > div:not(:first-child) b {
  margin-bottom: 7px;
  color: white;
  font-size: 14px;
}

.footer-grid a,
.footer-button {
  color: rgba(255,255,255,0.58);
  font-size: 13px;
}

.footer-grid a:hover,
.footer-button:hover {
  color: var(--saffron);
}

.footer-button {
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 18px 28px;
  color: rgba(255,255,255,0.37);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-family: var(--utility);
  font-size: 9px;
}

.drawer-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  background: rgba(16, 25, 20, 0.46);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  z-index: 210;
  top: 0;
  right: 0;
  width: min(440px, 100%);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 26px;
  background: var(--surface);
  box-shadow: -20px 0 50px rgba(20,30,24,0.14);
  transform: translateX(104%);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(.2,.8,.2,1), visibility 280ms;
}

.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 21px;
  border-bottom: 1px solid var(--line);
}

.drawer-header small,
.checkout-head > small {
  color: var(--violet-dark);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.drawer-header h2,
.checkout-head h2 {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.2;
}

.close-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0 0 4px;
  color: var(--ink-soft);
  background: var(--paper);
  border-radius: 50%;
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}

.close-button:hover {
  color: var(--ink);
  background: var(--sage);
}

.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-right: -10px;
  padding: 12px 10px 16px 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 74px minmax(0,1fr) auto;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-art {
  position: relative;
  width: 74px;
  height: 84px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--item-bg, var(--sage));
  border-radius: 10px 10px 3px 10px;
}

.cart-item-art svg { width: 100%; height: 100%; }

.cart-item-copy {
  min-width: 0;
}

.cart-item-copy small { color: var(--ink-soft); font-size: 10px; }
.cart-item-copy h3 { margin: 2px 0 9px; font-family: var(--display); font-size: 15px; line-height: 1.3; }

.quantity-control {
  width: max-content;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.quantity-control button {
  width: 31px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.quantity-control button:hover { background: var(--sage); }
.quantity-control span { min-width: 22px; text-align: center; font-family: var(--utility); font-size: 10px; }

.cart-item-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
}

.cart-item-side b { color: var(--violet-dark); font-family: var(--utility); font-size: 11px; }
.remove-item { padding: 2px; color: var(--ink-soft); background: none; border: 0; cursor: pointer; font-size: 11px; text-decoration: underline; }
.remove-item:hover { color: var(--danger); }

.cart-empty {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px;
  text-align: center;
}

.empty-basket {
  position: relative;
  width: 82px;
  height: 60px;
  margin-bottom: 28px;
  border: 2px solid var(--line);
  border-radius: 7px 7px 25px 25px;
}

.empty-basket::before {
  position: absolute;
  top: -23px;
  left: 17px;
  width: 44px;
  height: 38px;
  border: 2px solid var(--line);
  border-bottom: 0;
  border-radius: 30px 30px 0 0;
  content: "";
}

.cart-empty h3 { margin: 0; font-family: var(--display); font-size: 22px; }
.cart-empty p { margin: 4px 0 20px; color: var(--ink-soft); font-size: 14px; }

.cart-summary {
  flex: 0 0 auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-summary dl { margin: 0; }
.cart-summary dl > div { display: flex; justify-content: space-between; margin: 4px 0; color: var(--ink-soft); font-size: 13px; }
.cart-summary dd { margin: 0; }
.cart-summary .total-row { margin-top: 11px; padding-top: 12px; color: var(--ink); border-top: 1px dashed var(--line); font-size: 16px; }
.cart-summary .total-row dd { color: var(--violet-dark); font-family: var(--utility); font-weight: 500; }
.shipping-hint { margin: 10px 0 15px; color: var(--success); font-size: 11px; text-align: center; }
.full-button { width: 100%; }

dialog {
  color: var(--ink);
  background: var(--surface);
  border: 0;
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(16,25,20,0.55);
  backdrop-filter: blur(5px);
}

.product-dialog,
.checkout-dialog,
.tracking-dialog {
  width: min(930px, calc(100% - 32px));
  max-height: min(800px, calc(100dvh - 32px));
  padding: 0;
  overflow: auto;
  border-radius: 26px 26px 8px 26px;
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 3px 14px rgba(30,40,34,0.08);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  min-height: 590px;
}

.product-detail-art {
  min-height: 590px;
  background: var(--art-bg);
}

.product-detail-art svg { width: 100%; height: 100%; }

.product-detail-copy {
  display: flex;
  flex-direction: column;
  padding: 54px 44px 40px;
}

.detail-origin {
  color: var(--violet-dark);
  font-family: var(--utility);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.product-detail-copy h2 {
  margin: 10px 0 5px;
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.detail-price {
  color: var(--violet-dark);
  font-family: var(--utility);
  font-size: 18px;
  font-weight: 500;
}

.detail-description {
  margin: 24px 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 0 28px;
  background: var(--line);
  border: 1px solid var(--line);
}

.detail-facts div { padding: 12px; background: var(--surface); }
.detail-facts dt { color: var(--ink-soft); font-size: 10px; }
.detail-facts dd { margin: 3px 0 0; font-size: 13px; font-weight: 600; }

.detail-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.detail-actions .primary-button { flex: 1; }

.stock-note { margin: 10px 0 0; color: var(--success); font-size: 11px; text-align: center; }

.checkout-dialog {
  width: min(640px, calc(100% - 32px));
  padding: 36px 38px 38px;
}

.checkout-head {
  padding-right: 50px;
}

.checkout-progress {
  display: flex;
  gap: 6px;
  margin-top: 20px;
}

.checkout-progress i {
  width: 42px;
  height: 4px;
  background: var(--line);
  border-radius: 999px;
}

.checkout-progress i.active { background: var(--violet); }

.checkout-form {
  display: grid;
  gap: 16px;
  margin-top: 27px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.checkout-form label,
.tracking-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-form label > span,
.tracking-form label > span {
  font-size: 12px;
  font-weight: 500;
}

.checkout-form input,
.checkout-form textarea,
.tracking-form input {
  width: 100%;
  min-height: 47px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 9px;
  outline: 0;
}

.checkout-form textarea { resize: vertical; }
.checkout-form input:focus,
.checkout-form textarea:focus,
.tracking-form input:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(118,80,165,0.1); }

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

.checkout-total span { color: var(--ink-soft); font-size: 13px; }
.checkout-total b { color: var(--violet-dark); font-family: var(--utility); font-size: 18px; }

.payment-step {
  margin-top: 22px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  padding: 24px;
  background: #eef4f4;
  border-radius: 15px 15px 5px 15px;
  text-align: center;
}

.qr-demo {
  position: relative;
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: white;
  border: 5px solid white;
  box-shadow: 0 8px 25px rgba(24,35,29,0.1);
}

.qr-demo svg { width: 100%; height: 100%; fill: #173435; }
.qr-demo b { position: absolute; padding: 3px 8px; color: white; background: var(--danger); font-family: var(--utility); font-size: 11px; letter-spacing: 0.1em; }
.qr-card p { margin: 15px 0 2px; }
.qr-card strong { color: var(--violet-dark); font-family: var(--utility); font-size: 22px; }
.qr-card small { margin-top: 5px; color: var(--danger); }
.back-to-address { display: block; margin: 12px auto 0; border-bottom: 0; color: var(--ink-soft); }

.tracking-dialog {
  width: min(570px, calc(100% - 32px));
  padding: 40px;
}

.tracking-dialog h2 {
  font-size: 42px;
}

.tracking-form {
  margin-top: 26px;
}

.tracking-form label > div,
.tracking-input-row {
  display: flex;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid transparent;
  border-radius: 10px;
}

.tracking-form label > div:focus-within,
.tracking-input-row:focus-within { border-color: var(--violet); }
.tracking-form input { border: 0; box-shadow: none !important; }
.tracking-form button { min-width: 112px; color: white; background: var(--forest); border: 0; cursor: pointer; font-weight: 500; }
.tracking-form button:hover { background: var(--violet-dark); }

.tracking-result {
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.tracking-order {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 21px;
  font-size: 12px;
}

.tracking-order b { font-family: var(--utility); }
.tracking-order em { padding: 4px 9px; color: var(--success); background: #e2f1e9; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 600; }

.tracking-result ol { margin: 0; padding: 0; list-style: none; }
.tracking-result li { position: relative; min-height: 62px; display: grid; grid-template-columns: 20px 1fr; gap: 13px; }
.tracking-result li::after { position: absolute; top: 16px; bottom: 0; left: 6px; width: 1px; background: var(--line); content: ""; }
.tracking-result li:last-child::after { display: none; }
.tracking-result li i { position: relative; z-index: 1; width: 13px; height: 13px; margin-top: 2px; background: var(--surface); border: 2px solid var(--line); border-radius: 50%; }
.tracking-result li.done i { background: var(--success); border-color: var(--success); box-shadow: inset 0 0 0 3px var(--surface); }
.tracking-result li.current i { border-color: var(--saffron); box-shadow: 0 0 0 4px var(--saffron-soft); }
.tracking-result li b { font-size: 13px; }
.tracking-result li small { display: block; color: var(--ink-soft); font-size: 10px; }

.toast {
  position: fixed;
  z-index: 500;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100% - 32px));
  padding: 13px 18px;
  color: white;
  background: var(--forest);
  border-radius: 10px 10px 3px 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Seller dashboard */
.admin-body {
  color: #1d2822;
  background: #eef2ee;
}

.admin-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 27px 20px 20px;
  color: #e7eee9;
  background: var(--forest);
}

.admin-brand { color: white; }
.admin-brand .brand-copy small { color: rgba(255,255,255,0.45); }

.shop-identity {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 33px 0 23px;
  padding: 13px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 12px;
}

.shop-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--saffron);
  border-radius: 9px;
  font-family: var(--display);
  font-size: 12px;
}

.shop-identity p { min-width: 0; margin: 0; font-size: 12px; line-height: 1.3; }
.shop-identity p b,
.shop-identity p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-identity p small { margin-top: 3px; color: rgba(255,255,255,0.48); font-size: 9px; }
.shop-identity > span { color: rgba(255,255,255,0.5); }

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav button {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  color: rgba(255,255,255,0.58);
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
}

.admin-nav button:hover { color: white; background: rgba(255,255,255,0.06); }
.admin-nav button.active { color: var(--forest); background: var(--saffron-soft); font-weight: 600; }
.admin-nav svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.nav-badge { min-width: 21px; height: 21px; display: grid; place-items: center; margin-left: auto; color: var(--forest); background: var(--saffron); border-radius: 999px; font-family: var(--utility); font-size: 9px; }

.sidebar-help {
  margin-top: auto;
  padding: 14px;
  color: rgba(255,255,255,0.54);
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  font-size: 11px;
}

.sidebar-help b { display: block; margin-bottom: 4px; color: white; font-size: 12px; }
.sidebar-help a { display: inline-block; margin-top: 8px; color: var(--saffron); }

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

.admin-topbar {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px clamp(22px, 4vw, 52px);
  background: rgba(255,255,255,0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.admin-topbar-copy small { color: var(--ink-soft); font-size: 11px; }
.admin-topbar-copy h1 { margin: 1px 0 0; font-family: var(--display); font-size: 25px; line-height: 1.2; }

.admin-top-actions { display: flex; align-items: center; gap: 10px; }
.admin-top-actions .icon-button { background: white; border: 1px solid var(--line); }
.user-avatar { width: 41px; height: 41px; display: grid; place-items: center; color: white; background: var(--violet-dark); border-radius: 50%; font-family: var(--display); font-size: 11px; }

.admin-content {
  padding: 36px clamp(22px, 4vw, 52px) 60px;
}

.admin-panel[hidden] { display: none; }

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

.panel-heading p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.panel-heading h2 { margin: 2px 0 0; font-family: var(--display); font-size: 28px; }

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

.metric-card {
  min-width: 0;
  padding: 19px;
  background: white;
  border: 1px solid #e1e7e2;
  border-radius: 15px 15px 5px 15px;
}

.metric-card > span { display: flex; justify-content: space-between; align-items: center; color: var(--ink-soft); font-size: 11px; }
.metric-card > span i { width: 28px; height: 28px; display: grid; place-items: center; color: var(--violet-dark); background: var(--violet-soft); border-radius: 8px; font-style: normal; }
.metric-card strong { display: block; margin-top: 12px; font-family: var(--display); font-size: 27px; line-height: 1; }
.metric-card small { display: block; margin-top: 8px; color: var(--ink-soft); font-size: 9px; }
.metric-card small b { color: var(--success); }

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-card {
  min-width: 0;
  padding: 22px;
  background: white;
  border: 1px solid #e1e7e2;
  border-radius: 16px 16px 6px 16px;
}

.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-head h3 { margin: 0; font-family: var(--display); font-size: 18px; }
.card-head select,
.table-tools select { min-height: 36px; padding: 0 26px 0 9px; color: var(--ink-soft); background: var(--paper); border: 0; border-radius: 8px; font-size: 10px; }

.sales-total { display: flex; align-items: baseline; gap: 10px; }
.sales-total strong { font-family: var(--utility); font-size: 25px; }
.sales-total span { color: var(--success); font-size: 10px; }

.bar-chart {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 11px;
  margin-top: 25px;
  padding-top: 16px;
  background: repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 45px);
}

.bar-chart div {
  position: relative;
  flex: 1;
  height: var(--bar);
  min-width: 14px;
  background: var(--violet-soft);
  border-radius: 5px 5px 0 0;
}

.bar-chart div.active { background: var(--violet); }
.bar-chart span { position: absolute; right: 0; bottom: -24px; left: 0; color: var(--ink-soft); font-family: var(--utility); font-size: 8px; text-align: center; }

.stock-list { margin: 0; padding: 0; list-style: none; }
.stock-list li { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 0; }
.stock-list li + li { border-top: 1px solid var(--line); }
.mini-product-art { width: 38px; height: 42px; display: grid; place-items: center; overflow: hidden; background: var(--item-bg); border-radius: 7px 7px 2px 7px; }
.mini-product-art svg { width: 100%; height: 100%; }
.stock-list p { min-width: 0; margin: 0; font-size: 11px; line-height: 1.3; }
.stock-list p b,
.stock-list p small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stock-list p small { color: var(--ink-soft); font-size: 9px; }
.stock-list > li > b { color: var(--danger); font-family: var(--utility); font-size: 9px; }

.recent-card { grid-column: 1 / -1; }

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th,
.data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}

.data-table th { color: var(--ink-soft); font-size: 9px; font-weight: 500; letter-spacing: 0.04em; }
.data-table tbody tr:hover { background: #f8faf8; }
.data-table td:first-child { font-family: var(--utility); font-size: 9px; }
.customer-cell { display: flex; align-items: center; gap: 9px; }
.customer-cell i { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: var(--forest); background: var(--sage); border-radius: 50%; font-style: normal; font-weight: 600; }
.customer-cell span { display: flex; flex-direction: column; }
.customer-cell small { color: var(--ink-soft); font-size: 8px; }

.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 600; }
.status-pill::before { width: 5px; height: 5px; background: currentColor; border-radius: 50%; content: ""; }
.status-new { color: #916522; background: #fff0d5; }
.status-packing { color: #5f4180; background: #eee5f6; }
.status-shipped { color: #2b6d54; background: #e1f0e7; }
.status-low { color: #9c4141; background: #f8e4e4; }
.status-active { color: #2b6d54; background: #e1f0e7; }

.table-tools { display: flex; align-items: center; gap: 9px; }
.admin-search { width: 240px; height: 40px; }
.admin-search input { font-size: 12px; }

.table-card { padding: 0 20px 12px; }
.table-card .data-table th { padding-top: 16px; }
.product-table-name { display: flex; align-items: center; gap: 10px; }
.product-table-name .mini-product-art { flex: 0 0 auto; }
.product-table-name span { display: flex; flex-direction: column; font-family: var(--body); font-size: 11px; }
.product-table-name small { color: var(--ink-soft); font-size: 8px; }
.row-actions { display: flex; gap: 4px; }
.row-actions button { min-width: 34px; min-height: 34px; padding: 6px; color: var(--ink-soft); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 10px; }
.row-actions button:hover { color: var(--ink); background: var(--sage); }

.admin-primary {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  color: white;
  background: var(--forest);
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.admin-primary:hover { background: var(--violet-dark); }
.admin-primary span { font-size: 18px; }

.order-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  align-items: start;
}

.order-column { padding: 13px; background: rgba(255,255,255,0.5); border: 1px solid var(--line); border-radius: 14px; }
.order-column-head { display: flex; justify-content: space-between; align-items: center; margin: 2px 2px 12px; }
.order-column-head b { font-size: 12px; }
.order-column-head span { min-width: 23px; height: 23px; display: grid; place-items: center; background: var(--sage); border-radius: 50%; font-family: var(--utility); font-size: 8px; }

.order-ticket { margin-top: 9px; padding: 14px; background: white; border: 1px solid #e3e8e4; border-radius: 11px 11px 4px 11px; }
.order-ticket > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.order-ticket code { font-family: var(--utility); font-size: 9px; }
.order-ticket time { color: var(--ink-soft); font-size: 8px; }
.order-ticket h3 { margin: 10px 0 0; font-size: 12px; }
.order-ticket p { margin: 2px 0 11px; color: var(--ink-soft); font-size: 9px; }
.order-ticket footer { display: flex; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.order-ticket strong { color: var(--violet-dark); font-family: var(--utility); font-size: 10px; }
.advance-order { min-height: 30px; padding: 4px 9px; color: var(--forest); background: var(--saffron-soft); border: 0; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 600; }
.advance-order:hover { background: var(--saffron); }

.report-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
}

.donut-wrap { display: grid; grid-template-columns: 160px 1fr; align-items: center; gap: 25px; }
.donut { width: 150px; height: 150px; display: grid; place-items: center; background: conic-gradient(var(--violet) 0 42%, var(--saffron) 42% 72%, #7c9c87 72% 90%, #d8e0da 90%); border-radius: 50%; }
.donut::before { width: 86px; height: 86px; display: block; background: white; border-radius: 50%; content: ""; }
.legend-list { margin: 0; padding: 0; list-style: none; }
.legend-list li { display: flex; align-items: center; gap: 8px; margin: 8px 0; color: var(--ink-soft); font-size: 10px; }
.legend-list i { width: 8px; height: 8px; background: var(--legend); border-radius: 2px; }
.legend-list b { margin-left: auto; color: var(--ink); font-family: var(--utility); font-size: 9px; }

.insight-card { color: white; background: var(--violet-dark); }
.insight-card .card-head h3 { color: white; }
.insight-card blockquote { margin: 45px 0 20px; font-family: var(--display); font-size: 24px; line-height: 1.45; }
.insight-card p { margin: 0; color: rgba(255,255,255,0.62); font-size: 11px; }

.mobile-admin-nav { display: none; }

.admin-dialog {
  width: min(570px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 32px;
  overflow: auto;
  border-radius: 20px 20px 6px 20px;
}
.admin-dialog h2 { margin: 0 0 20px; font-family: var(--display); }
.admin-product-form { display: grid; gap: 14px; }
.admin-product-form label { display: flex; flex-direction: column; gap: 5px; font-size: 11px; font-weight: 500; }
.admin-product-form input,
.admin-product-form select,
.admin-product-form textarea { min-height: 44px; padding: 9px 11px; background: var(--paper); border: 1px solid transparent; border-radius: 8px; outline: 0; }
.admin-product-form input:focus,
.admin-product-form select:focus,
.admin-product-form textarea:focus { border-color: var(--violet); }

@media (max-width: 1040px) {
  :root { --shell: min(100% - 32px, 920px); }
  .hero { grid-template-columns: 0.9fr 1.1fr; gap: 20px; }
  .hero-visual { transform: scale(0.88); transform-origin: center right; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .community { padding-inline: 45px; gap: 30px; }
  .community-cards { transform: scale(0.88); transform-origin: center right; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .order-board { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .desktop-nav { display: none; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 650px; }
  .hero-visual { width: min(580px, 100%); margin: -5px auto 0; transform: none; }
  .value-grid { grid-template-columns: 1fr; padding-block: 12px; }
  .value-grid p { padding: 16px 0; }
  .value-grid p + p { border-top: 1px solid rgba(255,255,255,0.13); border-left: 0; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .community { grid-template-columns: 1fr; padding: 52px 42px; }
  .community-copy { max-width: 580px; }
  .community-cards { width: min(590px, 100%); margin: auto; transform: none; }
  .steps-list { grid-template-columns: 1fr; }
  .steps-list li { min-height: 0; display: grid; grid-template-columns: 70px 1fr; gap: 20px; padding: 25px 0; }
  .steps-list li + li { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .steps-list li > span { margin: 0; text-align: center; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
  .admin-layout { display: block; padding-bottom: 72px; }
  .admin-sidebar { display: none; }
  .admin-topbar { position: sticky; z-index: 50; top: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .recent-card { grid-column: auto; }
  .report-grid { grid-template-columns: 1fr; }
  .mobile-admin-nav { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; min-height: 66px; display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,0.95); border-top: 1px solid var(--line); backdrop-filter: blur(15px); }
  .mobile-admin-nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-soft); background: transparent; border: 0; font-size: 9px; }
  .mobile-admin-nav button.active { color: var(--violet-dark); font-weight: 600; }
  .mobile-admin-nav svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .announcement { padding-inline: 10px; font-size: 11px; }
  .nav-shell { min-height: 68px; }
  .brand-copy b { font-size: 18px; }
  .brand-mark { width: 30px; height: 30px; }
  .seller-link,
  .header-actions .icon-button,
  .cart-button span { display: none; }
  .header-actions { gap: 8px; }
  .cart-button { width: 47px; padding: 9px; position: relative; justify-content: center; }
  .cart-button b { position: absolute; top: -3px; right: -4px; min-width: 20px; height: 20px; font-size: 8px; }
  .mobile-search-wrap { width: var(--shell); display: block; margin: 0 auto; padding-bottom: 11px; }
  .mobile-search-wrap .search-box { height: 43px; background: white; }
  .hero { padding-top: 51px; padding-bottom: 50px; }
  .hero h1 { font-size: clamp(44px, 14vw, 63px); }
  .hero-intro { margin-top: 20px; font-size: 16px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 11px; }
  .hero-actions .text-button { align-self: flex-start; }
  .primary-button { min-height: 52px; }
  .hero-proof { margin-top: 34px; }
  .hero-proof li { min-width: 0; flex: 1; flex-direction: column; align-items: flex-start; gap: 5px; padding-right: 10px; }
  .hero-proof li + li { padding-left: 10px; }
  .hero-proof b { font-size: 20px; }
  .hero-visual { height: 455px; margin-top: 12px; }
  .hero-visual::before { inset: 40px 5px 30px 25px; }
  .feature-product { top: 37px; right: 18px; width: min(300px, calc(100% - 42px)); }
  .feature-art { height: 270px; }
  .feature-info { padding: 15px; }
  .feature-info h2 { font-size: 17px; }
  .feature-info > span { font-size: 12px; }
  .maker-card { right: 0; bottom: 27px; min-width: 230px; padding: 10px; }
  .maker-card b { font-size: 11px; }
  .weave-tag { bottom: 46px; width: 82px; height: 50px; }
  .dot-start { bottom: 23px; }
  .route-name-start { bottom: -6px; }
  .dot-mid { top: 196px; left: 124px; }
  .route-name-mid { top: 210px; left: 82px; }
  .dot-end { top: 24px; right: 8px; }
  .route-name-end { top: -9px; right: -3px; }
  .catalog { padding-block: 78px 88px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2,
  .community h2,
  .final-cta h2 { font-size: 39px; }
  .desktop-search { display: none; }
  .catalog-tools { align-items: flex-end; margin-top: 31px; }
  .filter-chips { margin-right: -14px; padding-right: 14px; overflow-x: auto; scrollbar-width: none; }
  .filter-chips::-webkit-scrollbar { display: none; }
  .filter-chip { flex: 0 0 auto; }
  .sort-control { flex-direction: column; align-items: flex-start; gap: 1px; }
  .sort-control select { width: 90px; min-height: 28px; padding-left: 0; }
  .product-grid { gap: 27px 10px; }
  .product-art { aspect-ratio: 0.86; }
  .product-info { gap: 3px; }
  .product-meta h3 { font-size: 15px; }
  .product-meta small { font-size: 9px; }
  .product-price { font-size: 11px; }
  .add-cart-button { width: 40px; height: 40px; }
  .quick-view { display: none; }
  .product-badge { top: 8px; left: 8px; }
  .community { width: 100%; min-height: 790px; padding: 48px 24px; border-radius: 0; }
  .community-cards { min-height: 390px; }
  .community-card { width: 220px; height: 305px; padding: 14px; }
  .community-card b { font-size: 21px; }
  .cc-one { left: 0; }
  .cc-two { right: 0; }
  .how-it-works { padding-block: 86px 78px; }
  .section-heading.compact { flex-direction: column; gap: 5px; }
  .section-heading.compact > p { margin-top: 18px; }
  .final-cta { width: 100%; min-height: 350px; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 50px 25px; border-radius: 0; }
  .site-footer { margin-top: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px 22px; padding-block: 55px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 5px; }
  .cart-drawer { padding: 20px; }
  .product-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; }
  .product-detail { grid-template-columns: 1fr; }
  .product-detail-art { min-height: 320px; height: 40dvh; }
  .product-detail-copy { padding: 31px 22px 28px; }
  .product-detail-copy h2 { font-size: 30px; }
  .checkout-dialog,
  .tracking-dialog { width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 30px 20px 24px; border-radius: 22px 22px 0 0; }
  .field-grid { grid-template-columns: 1fr; }
  .small-fields { grid-template-columns: 0.75fr 1.25fr; }
  .tracking-dialog h2 { font-size: 36px; }
  .toast { right: 16px; bottom: 16px; left: 16px; max-width: none; text-align: center; }
  .admin-topbar { min-height: 70px; padding: 12px 15px; }
  .admin-topbar-copy h1 { font-size: 19px; }
  .admin-topbar-copy small { font-size: 9px; }
  .admin-content { padding: 24px 14px 40px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 22px; }
  .panel-heading { align-items: flex-start; }
  .panel-heading h2 { font-size: 23px; }
  .table-tools { align-items: flex-end; flex-direction: column; }
  .admin-search { width: 180px; }
  .table-card { padding-inline: 12px; }
  .donut-wrap { grid-template-columns: 130px 1fr; gap: 14px; }
  .donut { width: 125px; height: 125px; }
  .donut::before { width: 72px; height: 72px; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; gap: 34px; }
  .product-art { aspect-ratio: 1.03; }
  .product-meta h3 { font-size: 17px; }
  .community-card { width: 205px; }
  .cc-two { right: -15px; }
  .metric-grid { grid-template-columns: 1fr; }
  .small-fields { grid-template-columns: 1fr; }
}

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

.product-photo{width:100%;height:100%;object-fit:cover;display:block}.product-detail-gallery{min-width:0;background:#edeaf2;display:grid;grid-template-rows:minmax(0,1fr) auto}.product-detail-art{position:relative;overflow:hidden}.product-detail-art>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#fff}.product-detail-thumbs{display:flex;gap:9px;padding:12px;overflow:auto}.product-detail-thumbs button{flex:0 0 68px;width:68px;height:68px;padding:2px;border:2px solid transparent;border-radius:10px;background:#fff;cursor:pointer}.product-detail-thumbs button.active{border-color:var(--violet)}.product-detail-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:6px}@media(max-width:760px){.product-detail-gallery{min-height:380px}.product-detail-gallery .product-detail-art{height:40dvh;min-height:320px}}
