:root {
  color-scheme: light;
  --purple-950: #3b241f;
  --purple-900: #7f2d1f;
  --purple-800: #b73b24;
  --purple-700: #df4928;
  --purple-600: #f45a32;
  --purple-500: #ff7535;
  --purple-400: #ff9650;
  --purple-300: #ffc260;
  --purple-200: #ffdda3;
  --purple-100: #ffefd2;
  --purple-50: #fff8ec;
  --white: #ffffff;
  --ink: #3d2d27;
  --muted: #806b62;
  --line: rgba(217, 74, 40, 0.13);
  --shadow: 0 1.25rem 3rem rgba(111, 50, 31, 0.13);
  --soft-shadow: 0 0.6rem 1.5rem rgba(111, 50, 31, 0.09);
  --radius-xl: 1.75rem;
  --radius-lg: 1.35rem;
  --radius-md: 1rem;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: Inter, ui-rounded, "SF Pro Rounded", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--purple-950);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  background: linear-gradient(150deg, var(--purple-950), var(--purple-800));
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 0.2rem solid var(--purple-300);
  outline-offset: 0.16rem;
}

svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-stage {
  position: absolute;
  inset: 0;
  display: grid;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(145deg, var(--purple-100), var(--purple-300));
}

.media-backdrop {
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  filter: blur(0.75rem) saturate(1.08);
  opacity: 0.6;
  transform: scale(1.08);
}

.media-primary {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 220ms ease;
}

.media-stage--video {
  background: linear-gradient(145deg, var(--purple-950), var(--purple-800));
}

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

#app {
  min-height: 100vh;
  min-height: 100dvh;
}

.app-shell {
  width: min(100%, 48rem);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 194, 96, 0.26), transparent 19rem),
    #fffaf4;
  box-shadow: 0 0 5rem rgba(78, 35, 23, 0.32);
}

.app-loading,
.error-page {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 2rem;
  text-align: center;
}

.app-loading p,
.error-page p {
  color: var(--muted);
  line-height: 1.6;
}

.error-page h1 {
  font-size: clamp(1.5rem, 8vw, 2.2rem);
}

.brand-mark {
  position: relative;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 0.92rem;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-500), var(--purple-800));
  box-shadow: 0 0.5rem 1rem rgba(228, 76, 39, 0.25);
  font-size: 1.25rem;
  font-weight: 900;
}

.home-page {
  padding: calc(var(--safe-top) + 1rem) clamp(0.8rem, 3vw, 1.35rem) calc(7.8rem + var(--safe-bottom));
}

.home-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 3.4rem;
  margin-bottom: 1rem;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  min-width: 0;
}

.brand-lockup strong {
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.brand-lockup small {
  margin-top: 0.08rem;
  color: var(--purple-600);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hello-chip {
  max-width: 8rem;
  padding: 0.58rem 0.75rem;
  overflow: hidden;
  border: 1px solid var(--purple-200);
  border-radius: 999px;
  color: var(--purple-800);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  font-size: 0.78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-card {
  position: relative;
  display: grid;
  min-height: clamp(11.5rem, 48vw, 16rem);
  padding: clamp(1.4rem, 5vw, 2.25rem);
  overflow: hidden;
  border-radius: var(--radius-xl);
  color: var(--white);
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.2), transparent 25%),
    linear-gradient(135deg, var(--purple-950), var(--purple-700) 58%, var(--purple-400));
  box-shadow: 0 1.2rem 2.5rem rgba(186, 61, 31, 0.3);
}

.hero-card::before,
.hero-card::after {
  position: absolute;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
}

.hero-card--carousel {
  display: block;
  padding: 0;
  background: var(--purple-950);
}

.hero-card--carousel::before,
.hero-card--carousel::after {
  display: none;
}

.hero-slides,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-carousel-dots {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 0.75rem;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}

.hero-carousel-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  box-shadow: 0 0.1rem 0.3rem rgba(61, 36, 31, 0.3);
  transition: width 300ms ease, background 300ms ease;
}

.hero-carousel-dot.is-active {
  width: 1rem;
  border-radius: 999px;
  background: var(--white);
}

.hero-card::before {
  right: -3rem;
  bottom: -4rem;
}

.hero-card::after {
  right: 2rem;
  bottom: -6.5rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
}

.hero-copy > p,
.section-heading p,
.modal-header p,
.merchant-profile p,
.success-card > p {
  color: var(--purple-200);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.hero-copy h1 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.hero-copy h1 em {
  color: var(--purple-200);
  font-style: normal;
}

.hero-copy > span {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(0.4rem);
}

.hero-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 46%;
  height: 100%;
}

.grape-cluster {
  position: absolute;
  top: 50%;
  right: 13%;
  filter: drop-shadow(0 1rem 1rem rgba(63, 32, 23, 0.35));
  font-size: clamp(4.2rem, 17vw, 7.5rem);
  transform: translateY(-43%) rotate(8deg);
}

.float-tag {
  position: absolute;
  padding: 0.38rem 0.56rem;
  border-radius: 0.55rem;
  color: var(--purple-950);
  background: var(--purple-200);
  box-shadow: 0 0.4rem 0.8rem rgba(63, 31, 22, 0.25);
  font-size: 0.72rem;
  font-weight: 900;
}

.tag-one {
  top: 17%;
  right: 9%;
  transform: rotate(8deg);
}

.tag-two {
  right: 53%;
  bottom: 18%;
  transform: rotate(-9deg);
}

.spark {
  position: absolute;
  color: var(--white);
  animation: twinkle 2.6s ease-in-out infinite;
}

.spark-one {
  top: 24%;
  left: 14%;
}

.spark-two {
  right: 16%;
  bottom: 17%;
  animation-delay: 0.8s;
}

.store-card {
  position: relative;
  z-index: 3;
  margin: -1rem 0 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(1rem);
}

.store-title-row,
.store-title-row > div,
.store-facts,
.section-heading,
.card-heading,
.review-meta,
.detail-sales,
.product-bottom,
.summary-line,
.delivery-row {
  display: flex;
  align-items: center;
}

.store-title-row {
  justify-content: space-between;
  gap: 1rem;
}

.store-title-row > div {
  gap: 0.55rem;
}

.store-title-row strong {
  font-size: 1.05rem;
}

.status-dot,
.pulse-dot {
  width: 0.55rem;
  height: 0.55rem;
  flex: 0 0 auto;
  border: 0.16rem solid var(--purple-200);
  border-radius: 50%;
  background: var(--purple-600);
}

.store-rating {
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  color: var(--purple-700);
  background: var(--purple-50);
  font-size: 0.8rem;
  font-weight: 800;
}

.store-card > p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.store-facts {
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.store-facts span {
  padding: 0.34rem 0.54rem;
  border-radius: 0.5rem;
  color: var(--purple-800);
  background: var(--purple-50);
  font-size: 0.7rem;
  font-weight: 700;
}

.search-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.35rem 0.4rem 0.35rem 1rem;
  border: 1px solid var(--purple-200);
  border-radius: 1.2rem;
  color: var(--purple-600);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.search-bar input {
  width: 100%;
  min-width: 0;
  padding: 0 0.75rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-size: 0.9rem;
}

.search-bar input::placeholder {
  color: #ad998f;
}

.search-submit {
  min-height: 2.55rem;
  padding: 0 1rem;
  border-radius: 0.88rem;
  color: var(--white);
  background: var(--purple-700);
  font-size: 0.82rem;
  font-weight: 800;
}

.search-clear,
.text-button {
  padding: 0.55rem;
  color: var(--purple-600);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
}

.main-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 1.15rem 0 0;
  border-bottom: 1px solid var(--line);
}

.main-tabs button {
  position: relative;
  min-height: 3.1rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.94rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.main-tabs button span {
  color: var(--purple-500);
  font-size: 0.7rem;
}

.main-tabs button::after {
  position: absolute;
  right: 30%;
  bottom: -1px;
  left: 30%;
  height: 0.18rem;
  border-radius: 999px 999px 0 0;
  background: var(--purple-600);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: 180ms ease;
}

.main-tabs button.is-active {
  color: var(--purple-700);
}

.main-tabs button.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.tab-content {
  min-height: 22rem;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 6.25rem minmax(0, 1fr);
  gap: 0.8rem;
  padding-top: 1rem;
}

.category-rail {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.category-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: 0.65rem 0.4rem;
  overflow: hidden;
  border: 1px solid rgba(223, 73, 40, 0.28);
  border-radius: 1.05rem;
  color: var(--purple-900);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), var(--purple-50));
  box-shadow: 0 0.28rem 0.7rem rgba(111, 50, 31, 0.07), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.25;
  transition: transform 180ms ease, color 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.category-button::before {
  position: absolute;
  top: 18%;
  bottom: 18%;
  left: 0;
  width: 0.22rem;
  border-radius: 0 999px 999px 0;
  background: rgba(255, 255, 255, 0.9);
  content: "";
  opacity: 0;
}

.category-button:hover {
  color: var(--purple-800);
  border-color: var(--purple-500);
  background: linear-gradient(145deg, var(--white), var(--purple-100));
  box-shadow: 0 0.48rem 1rem rgba(186, 61, 31, 0.14);
  transform: translateY(-0.1rem);
}

.category-button.is-active {
  border-color: var(--purple-600);
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-800), var(--purple-600) 62%, var(--purple-500));
  box-shadow: 0 0.55rem 1.15rem rgba(186, 61, 31, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-0.1rem);
}

.category-button.is-active::before {
  opacity: 1;
}

.category-button:active,
.product-card:active,
.add-button:active,
.primary-button:active {
  transform: scale(0.98);
}

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

.section-heading,
.card-heading {
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--purple-500);
  font-size: 0.58rem;
}

.section-heading h2,
.card-heading h2 {
  margin-top: 0.15rem;
  font-size: 1.05rem;
  line-height: 1.3;
}

.section-heading > span,
.card-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.73rem;
}

.card-heading button {
  padding: 0.4rem;
  color: var(--purple-600);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 800;
}

.product-grid {
  display: grid;
  gap: 0.75rem;
}

.product-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 9rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  border-color: var(--purple-300);
  box-shadow: 0 0.9rem 1.8rem rgba(186, 61, 31, 0.14);
  transform: translateY(-0.18rem);
}

.product-visual,
.mini-visual,
.detail-visual {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, var(--purple-100), var(--purple-300));
}

.product-visual {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 100%;
  place-items: center;
}

.product-emoji {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0.45rem 0.45rem rgba(128, 51, 31, 0.2));
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  transition: transform 220ms cubic-bezier(0.2, 0.9, 0.25, 1.2);
}

.product-card:hover .product-emoji {
  transform: rotate(-6deg) translateY(-0.15rem);
}

.product-card:hover .product-uploaded-media .media-primary {
  transform: scale(1.035);
}

.visual-orbit {
  position: absolute;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
}

.product-badge {
  position: absolute;
  z-index: 3;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.25rem 0.42rem;
  border-radius: 0.45rem;
  color: var(--white);
  background: var(--purple-800);
  font-size: 0.56rem;
  font-weight: 900;
}

.visual--grape { background: linear-gradient(145deg, #fff0d3, #ffc96b); }
.visual--rose { background: linear-gradient(145deg, #fff1ea, #ffb7a4); }
.visual--amber { background: linear-gradient(145deg, #fff8da, #ffd467); }
.visual--sunset { background: linear-gradient(145deg, #ffe9cc, #ffab61); }
.visual--mint { background: linear-gradient(145deg, #e8f9ee, #a9e2bd); }
.visual--sky { background: linear-gradient(145deg, #eefaff, #b8e4ef); }
.visual--peach { background: linear-gradient(145deg, #fff1e5, #ffc39d); }
.visual--tomato { background: linear-gradient(145deg, #ffeae0, #ff9878); }
.visual--coral { background: linear-gradient(145deg, #fff0d8, #ffbd75); }
.visual--cloud { background: linear-gradient(145deg, #ffffff, #f6e8d6); }
.visual--forest { background: linear-gradient(145deg, #eaf8ef, #a7dab8); }

.product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.3rem;
  padding: 0.66rem;
}

.product-copy h3 {
  overflow-wrap: anywhere;
  font-size: 0.94rem;
  line-height: 1.35;
}

.product-tags {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.25rem 0.3rem;
  margin-top: 0.28rem;
}

.product-tag {
  max-width: 4.2rem;
  padding: 0.12rem 0.3rem;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 0.35rem;
  color: var(--purple-700);
  background: transparent;
  font-size: 0.55rem;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-tag--2 { color: #2f9564; }
.product-tag--3 { color: #c47b14; }
.product-tag--4 { color: #347f9f; }

.sales-line {
  color: #a38c82;
  font-size: 0.66rem;
  white-space: nowrap;
}

.product-meta-row {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.3rem;
}

.product-quantity-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.product-bottom {
  justify-content: flex-start;
  align-self: stretch;
  margin-top: auto;
}

.price-stack {
  display: grid;
  min-width: 0;
}

.price-stack strong {
  color: var(--purple-700);
  font-size: 1.08rem;
  line-height: 1.1;
}

.price-stack del {
  margin-top: 0.1rem;
  color: #ad998f;
  font-size: 0.63rem;
}

.price-stack--inline {
  display: flex;
  align-items: baseline;
  gap: 0.38rem;
}

.price-stack--inline del {
  margin-top: 0;
}

.add-button,
.stepper button {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--purple-300);
  border-radius: 50%;
  color: var(--purple-700);
  background: var(--white);
  transition: 150ms ease;
}

.add-button:hover,
.stepper button:hover {
  color: var(--white);
  background: var(--purple-600);
  box-shadow: 0 0.35rem 0.8rem rgba(228, 76, 39, 0.25);
}

.add-button--compact {
  width: 2.2rem;
  height: 2.2rem;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  flex: 0 0 auto;
}

.stepper strong {
  min-width: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

.stepper--compact {
  gap: 0.04rem;
  padding: 0.03rem 0.08rem;
  border: 1px solid var(--purple-300);
  border-radius: 999px;
  background: transparent;
}

.stepper--compact button {
  width: 1.2rem;
  height: 1.35rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.stepper--compact button:hover {
  color: var(--purple-800);
  background: transparent;
  box-shadow: none;
}

.stepper--compact strong {
  min-width: 0.8rem;
  font-size: 0.75rem;
  line-height: 1;
}

.add-button--compact svg {
  width: 0.85rem;
  height: 0.85rem;
}

.stepper--compact svg {
  width: 0.7rem;
  height: 0.7rem;
}

.empty-card {
  grid-column: 1 / -1;
  padding: 3rem 1rem;
  border: 1px dashed var(--purple-300);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--white);
}

.empty-card > span {
  font-size: 2.2rem;
}

.empty-card h3 {
  margin-top: 0.7rem;
  font-size: 1rem;
}

.empty-card p {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.cart-dock-wrap {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 0.65rem max(0.7rem, calc((100vw - 48rem) / 2 + 0.7rem)) calc(0.65rem + var(--safe-bottom));
  pointer-events: none;
}

.cart-dock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  min-height: 4.6rem;
  padding: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.5rem;
  color: var(--white);
  background: rgba(59, 36, 31, 0.96);
  box-shadow: 0 1rem 2.4rem rgba(63, 32, 23, 0.42);
  backdrop-filter: blur(1rem);
  pointer-events: auto;
}

.cart-icon-button {
  position: relative;
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 1rem;
  color: var(--purple-300);
  background: rgba(255, 255, 255, 0.08);
}

.cart-icon-button svg {
  width: 1.65rem;
  height: 1.65rem;
}

.cart-count {
  position: absolute;
  top: -0.35rem;
  right: -0.25rem;
  display: grid;
  min-width: 1.25rem;
  height: 1.25rem;
  place-items: center;
  padding: 0 0.28rem;
  border: 0.12rem solid var(--purple-950);
  border-radius: 999px;
  color: var(--white);
  background: var(--purple-500);
  font-size: 0.66rem;
  font-weight: 900;
}

.cart-total-copy {
  display: grid;
  min-width: 0;
  justify-items: start;
  padding: 0;
  color: var(--white);
  background: transparent;
  text-align: left;
}

.cart-total-copy strong {
  color: var(--purple-200);
  font-size: 1.18rem;
}

.cart-total-copy span {
  overflow: hidden;
  margin-top: 0.15rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.7rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary-button,
.secondary-button {
  min-height: 2.9rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.95rem;
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  box-shadow: 0 0.55rem 1rem rgba(228, 76, 39, 0.22);
}

.primary-button:hover {
  box-shadow: 0 0.7rem 1.3rem rgba(228, 76, 39, 0.3);
}

.primary-button:disabled,
.cart-dock:not(.has-items) .cart-icon-button,
.cart-dock:not(.has-items) .cart-total-copy {
  opacity: 0.45;
}

.primary-button--dock {
  min-width: 6.1rem;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-600));
  box-shadow: none;
}

.secondary-button {
  color: var(--purple-800);
  background: var(--purple-50);
}

.tab-panel {
  padding: 1rem 0;
}

.rating-card {
  display: grid;
  grid-template-columns: minmax(8rem, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-900), var(--purple-600));
  box-shadow: var(--shadow);
}

.rating-card > div {
  display: grid;
}

.rating-card strong {
  font-size: 2.6rem;
  line-height: 1;
}

.rating-card span {
  margin-top: 0.4rem;
  color: var(--purple-200);
  letter-spacing: 0.08em;
}

.rating-card small {
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.65);
}

.rating-card > p {
  font-size: 0.86rem;
  line-height: 1.7;
}

.review-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.9rem;
}

.review-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.review-avatar {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--purple-800);
  background: var(--purple-100);
  font-weight: 900;
}

.review-meta {
  justify-content: space-between;
  gap: 0.7rem;
}

.review-meta span {
  color: var(--purple-500);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.review-card p {
  margin-top: 0.42rem;
  color: #5f4a42;
  font-size: 0.84rem;
  line-height: 1.6;
}

.review-card small {
  display: block;
  margin-top: 0.5rem;
  color: #aa958b;
  font-size: 0.66rem;
}

.merchant-panel {
  display: grid;
  gap: 0.9rem;
}

.merchant-profile,
.merchant-notice,
.info-grid,
.promise-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.merchant-profile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
}

.merchant-logo {
  position: relative;
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 1.2rem;
  color: var(--white);
  background: linear-gradient(145deg, var(--purple-500), var(--purple-900));
  font-size: 1.6rem;
  font-weight: 900;
}

.merchant-profile p {
  color: var(--purple-500);
}

.merchant-profile h2 {
  margin-top: 0.22rem;
  font-size: 1.2rem;
}

.merchant-profile span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.merchant-notice {
  padding: 1rem;
  color: #5f4a42;
  font-size: 0.86rem;
  line-height: 1.65;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.info-grid > div {
  display: grid;
  gap: 0.3rem;
  min-height: 5.6rem;
  align-content: center;
  padding: 1rem;
  background: var(--white);
}

.info-grid span,
.promise-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.info-grid strong {
  overflow-wrap: anywhere;
  color: var(--purple-800);
  font-size: 0.92rem;
}

.promise-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.35rem;
}

.promise-card > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.8rem;
  color: var(--purple-600);
}

.promise-card > div + div {
  border-left: 1px solid var(--line);
}

.promise-card span {
  display: grid;
  min-width: 0;
}

.promise-card strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
}

.sub-page,
.success-page {
  padding-bottom: calc(7.5rem + var(--safe-bottom));
}

.page-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  min-height: calc(4.35rem + var(--safe-top));
  padding: var(--safe-top) clamp(0.7rem, 3vw, 1.25rem) 0;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-900), var(--purple-600));
  box-shadow: 0 0.4rem 1rem rgba(119, 47, 29, 0.16);
}

.page-header h1 {
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 1.02rem;
}

.icon-button {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 0.9rem;
  color: inherit;
  background: rgba(255, 255, 255, 0.12);
}

.page-header .icon-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.header-spacer {
  width: 2.75rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 1rem clamp(1rem, 5vw, 2.2rem);
  list-style: none;
  background: var(--purple-50);
}

.process-steps li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.28rem;
  color: #ad988e;
}

.process-steps li:not(:last-child)::after {
  position: absolute;
  z-index: 0;
  top: 0.78rem;
  left: 61%;
  width: 78%;
  height: 1px;
  background: var(--purple-200);
  content: "";
}

.process-steps li > span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 1.6rem;
  height: 1.6rem;
  place-items: center;
  border: 1px solid var(--purple-200);
  border-radius: 50%;
  background: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

.process-steps li.is-active {
  color: var(--purple-700);
}

.process-steps li.is-active > span {
  border-color: var(--purple-600);
  color: var(--white);
  background: var(--purple-600);
}

.process-steps svg {
  width: 0.9rem;
  height: 0.9rem;
}

.process-steps small {
  font-size: 0.66rem;
  font-weight: 700;
}

.page-body {
  display: grid;
  gap: 0.9rem;
  padding: 1rem clamp(0.8rem, 3vw, 1.25rem);
}

.content-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.address-history {
  margin-top: 0.25rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.address-history-toggle {
  display: flex;
  min-height: 4rem;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.15rem;
  cursor: pointer;
  list-style: none;
}

.address-history-toggle::-webkit-details-marker {
  display: none;
}

.address-history-label {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.address-history-label strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.address-history-label small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-history-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  color: var(--purple-700);
  font-size: 0.72rem;
  font-weight: 800;
}

.address-history-meta svg {
  width: 0.9rem;
  transition: transform 160ms ease;
}

.address-history[open] .address-history-meta svg {
  transform: rotate(90deg);
}

.address-list {
  border-top: 1px solid var(--line);
}

.address-row {
  position: relative;
  width: 100%;
  min-height: 5rem;
  border-bottom: 1px solid var(--line);
  color: inherit;
  transition: color 160ms ease;
}

.address-row:last-child {
  border-bottom: 0;
}

.address-row:hover,
.address-row.is-selected {
  color: var(--purple-800);
}

.address-select-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 5rem;
  padding: 0.75rem 3.25rem 0.75rem 0.15rem;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.address-delete-button {
  position: absolute;
  right: 0.15rem;
  bottom: 0.62rem;
  padding: 0.14rem 0.4rem;
  border: 1px solid rgba(201, 68, 41, 0.35);
  border-radius: 999px;
  color: #b9422c;
  background: transparent;
  font-size: 0.62rem;
  line-height: 1.2;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.address-delete-button:hover {
  border-color: #b9422c;
  color: #8f2f20;
  background: rgba(255, 117, 53, 0.08);
}

.radio-dot {
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  border: 0.12rem solid var(--purple-300);
  border-radius: 50%;
  background: var(--white);
}

.address-row.is-selected .radio-dot,
.radio-dot.is-on {
  border: 0.36rem solid var(--purple-600);
}

.address-copy {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.address-copy strong {
  font-size: 0.94rem;
}

.address-copy em {
  margin-left: 0.35rem;
  padding: 0.18rem 0.35rem;
  border-radius: 0.35rem;
  color: var(--purple-700);
  background: var(--purple-100);
  font-size: 0.6rem;
  font-style: normal;
}

.address-copy span,
.address-copy small {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.77rem;
  line-height: 1.45;
}

.address-history-empty {
  margin-top: 0.3rem;
  padding: 0.9rem 0.15rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

.add-address-button {
  display: flex;
  width: 100%;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  border: 1px dashed var(--purple-300);
  border-radius: var(--radius-md);
  color: var(--purple-700);
  background: var(--purple-50);
  font-size: 0.82rem;
  font-weight: 900;
}

.add-address-button:disabled {
  opacity: 0.55;
}

.checkout-items {
  display: grid;
}

.checkout-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0;
}

.checkout-item + .checkout-item {
  border-top: 1px dashed var(--line);
}

.mini-visual {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  font-size: 1.75rem;
}

.checkout-item-copy {
  display: grid;
  min-width: 0;
  gap: 0.22rem;
}

.checkout-item-copy strong {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
}

.checkout-item-copy span {
  color: var(--muted);
  font-size: 0.7rem;
}

.checkout-quantity,
.checkout-price {
  font-size: 0.82rem;
}

.checkout-price {
  min-width: 4.5rem;
  color: var(--purple-700);
  text-align: right;
}

.summary-line {
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.7rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-line strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.summary-line.muted strong {
  color: var(--muted);
}

.grand-total {
  min-height: 3.35rem;
  margin-top: 0.15rem;
}

.grand-total strong {
  color: var(--purple-700);
  font-size: 1.35rem;
}

.delivery-address {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: var(--purple-50);
}

.pin-icon {
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border-radius: 0.85rem;
  color: var(--purple-700);
  background: var(--white);
}

.delivery-address > div {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
}

.delivery-address strong,
.delivery-address span {
  overflow-wrap: anywhere;
}

.delivery-address strong {
  font-size: 0.9rem;
  line-height: 1.45;
}

.delivery-address span {
  color: var(--muted);
  font-size: 0.74rem;
}

.delivery-row {
  justify-content: space-between;
  min-height: 3.4rem;
  margin-top: 0.55rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.delivery-row strong {
  color: var(--purple-700);
}

.cod-badge {
  padding: 0.28rem 0.48rem;
  border-radius: 0.45rem;
  color: var(--purple-700) !important;
  background: var(--purple-100);
}

.payment-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
}

.payment-icon {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border-radius: 0.85rem;
  color: var(--white);
  background: var(--purple-700);
  font-size: 1.15rem;
  font-weight: 900;
}

.payment-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.2rem;
}

.payment-option strong {
  font-size: 0.88rem;
}

.payment-option small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.empty-checkout {
  display: grid;
  min-height: 70vh;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}

.empty-checkout > div {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  border-radius: 1.6rem;
  color: var(--purple-600);
  background: var(--purple-100);
}

.empty-checkout > div svg {
  width: 2.2rem;
  height: 2.2rem;
}

.empty-checkout h1 {
  margin-top: 1rem;
  font-size: 1.35rem;
}

.empty-checkout p {
  margin: 0.45rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.success-page {
  background:
    radial-gradient(circle at 50% 15%, rgba(255, 194, 96, 0.42), transparent 18rem),
    #fffaf4;
}

.success-card {
  width: calc(100% - clamp(1.6rem, 6vw, 2.5rem));
  margin: clamp(1rem, 5vw, 2rem) auto;
  padding: clamp(1.2rem, 5vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-seal {
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  margin: 0 auto 1rem;
  border: 0.45rem solid var(--purple-100);
  border-radius: 50%;
  color: var(--white);
  background: var(--purple-600);
  box-shadow: 0 0.8rem 1.5rem rgba(228, 76, 39, 0.24);
}

.success-seal svg {
  width: 2.6rem;
  height: 2.6rem;
  stroke-width: 2.5;
}

.success-card > p {
  color: var(--purple-500);
}

.success-card > h1 {
  margin-top: 0.35rem;
  font-size: clamp(1.75rem, 8vw, 2.4rem);
}

.success-card > span {
  display: block;
  margin-top: 0.48rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.order-ticket {
  display: grid;
  gap: 0;
  margin-top: 1.4rem;
  padding: 0.3rem 1rem;
  border: 1px dashed var(--purple-300);
  border-radius: var(--radius-md);
  background: var(--purple-50);
  text-align: left;
}

.order-ticket > div {
  display: grid;
  grid-template-columns: minmax(5rem, 0.45fr) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  min-height: 3.7rem;
}

.order-ticket > div + div {
  border-top: 1px dashed var(--line);
}

.order-ticket span {
  color: var(--muted);
  font-size: 0.76rem;
}

.order-ticket strong {
  overflow-wrap: anywhere;
  text-align: right;
  font-size: 0.84rem;
  line-height: 1.45;
}

.accent-text {
  color: var(--purple-700) !important;
  font-size: 1.1rem !important;
}

.success-actions,
.form-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1rem;
}

.success-footnote {
  color: var(--muted);
  font-size: 0.74rem;
  text-align: center;
}

.loading-card {
  display: grid;
  min-height: 70vh;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  color: var(--muted);
}

.spinner {
  width: 2rem;
  height: 2rem;
  border: 0.2rem solid var(--purple-100);
  border-top-color: var(--purple-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1rem max(0.65rem, calc((100vw - 48rem) / 2 + 0.65rem)) calc(0.65rem + var(--safe-bottom));
  background: rgba(54, 34, 28, 0.62);
  backdrop-filter: blur(0.35rem);
}

.modal-sheet {
  width: min(100%, 46.5rem);
  max-height: min(88vh, 50rem);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 1.65rem;
  background: var(--white);
  box-shadow: 0 1.5rem 4rem rgba(48, 27, 21, 0.38);
  opacity: 0;
  transform: translateY(1.2rem);
  transition: 220ms cubic-bezier(0.22, 0.9, 0.28, 1);
}

.modal-sheet.is-open {
  opacity: 1;
  transform: translateY(0);
}

.modal-header {
  position: sticky;
  z-index: 4;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 4.8rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(1rem);
}

.modal-header > div:first-child {
  min-width: 0;
  flex: 1;
}

.modal-header p {
  color: var(--purple-500);
  font-size: 0.58rem;
}

.modal-header h2 {
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
  font-size: 1.08rem;
}

.modal-header .icon-button {
  color: var(--purple-800);
  background: var(--purple-50);
}

.detail-visual {
  display: grid;
  min-height: clamp(13rem, 54vw, 23rem);
  place-items: center;
}

.detail-visual > span:not(.product-badge):not(.media-stage) {
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 1rem 1rem rgba(119, 47, 29, 0.24));
  font-size: clamp(6rem, 26vw, 11rem);
}

.detail-visual i {
  position: absolute;
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
}

.detail-visual i:nth-of-type(1) { top: 14%; left: 12%; }
.detail-visual i:nth-of-type(2) { right: 10%; bottom: 12%; width: 7rem; height: 7rem; }
.detail-visual i:nth-of-type(3) { top: 9%; right: 22%; width: 1.2rem; height: 1.2rem; background: rgba(255, 255, 255, 0.6); }

.detail-info {
  padding: 1rem 1.1rem;
}

.detail-sales {
  justify-content: space-between;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.detail-sales span {
  color: var(--purple-600);
  font-weight: 800;
}

.detail-info > p {
  margin-top: 0.8rem;
  color: #5f4a42;
  font-size: 0.86rem;
  line-height: 1.65;
}

.detail-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(4.7rem, 1fr) auto auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(1rem);
}

.detail-footer .primary-button {
  min-width: 7.4rem;
}

.cart-list {
  max-height: 52vh;
  padding: 0.3rem 1rem;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 5rem;
  padding: 0.65rem 0;
}

.cart-item + .cart-item {
  border-top: 1px dashed var(--line);
}

.cart-item > div:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 0.25rem;
}

.cart-item > div:nth-child(2) strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.cart-item > div:nth-child(2) span {
  color: var(--purple-600);
  font-size: 0.75rem;
}

.danger {
  color: #c43e2d;
}

.cart-modal-footer {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(1rem);
}

.cart-modal-footer > div {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.cart-modal-footer span {
  color: var(--muted);
  font-size: 0.7rem;
}

.cart-modal-footer strong {
  color: var(--purple-700);
  font-size: 1.08rem;
}

.address-form {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.form-note {
  padding: 0.72rem;
  border-radius: 0.75rem;
  color: var(--purple-800);
  background: var(--purple-50);
  font-size: 0.75rem;
  line-height: 1.45;
}

.address-form label {
  display: grid;
  gap: 0.35rem;
}

.address-form label > span {
  color: #5d4941;
  font-size: 0.74rem;
  font-weight: 800;
}

.address-form input:not([type="checkbox"]) {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  outline: 0;
  color: var(--ink);
  background: #fffdf9;
  font-size: 0.86rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.address-form input:not([type="checkbox"]):focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 0.22rem var(--purple-100);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.checkbox-line {
  display: flex !important;
  align-items: center;
  min-height: 2.2rem;
  grid-template-columns: auto 1fr;
}

.checkbox-line input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--purple-600);
}

.form-actions {
  position: sticky;
  bottom: 0;
  margin-top: 0.2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.order-status-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  color: var(--purple-900);
  background: var(--purple-50);
}

.pulse-dot {
  animation: pulse 1.8s ease-out infinite;
}

.order-status-card > div {
  display: grid;
  gap: 0.2rem;
}

.order-status-card small {
  color: var(--muted);
  font-size: 0.7rem;
}

.order-detail-list {
  padding: 0 1rem 1rem;
}

.order-detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  align-items: center;
  border-bottom: 1px dashed var(--line);
  font-size: 0.8rem;
}

.order-detail-list span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.order-detail-total strong {
  color: var(--purple-700);
  font-size: 1.1rem;
}

#toast-root {
  position: fixed;
  z-index: 200;
  top: calc(1rem + var(--safe-top));
  right: 1rem;
  left: 1rem;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  pointer-events: none;
}

.toast {
  max-width: 28rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.85rem;
  color: var(--white);
  background: var(--purple-950);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-0.6rem);
  transition: 200ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast--success { background: var(--purple-700); }
.toast--error { background: #9e3023; }

.page-enter {
  animation: page-in 260ms ease-out both;
}

@keyframes page-in {
  from { opacity: 0; transform: translateY(0.35rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 90, 50, 0.35); }
  70% { box-shadow: 0 0 0 0.55rem rgba(244, 90, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 90, 50, 0); }
}

@media (min-width: 40rem) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-layout {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 1rem;
  }

  .page-body {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .address-section,
  .delivery-card,
  .total-card {
    grid-column: 1 / -1;
  }

  .success-card {
    max-width: 36rem;
  }
}

@media (max-width: 26rem) {
  .hero-card {
    min-height: 10.7rem;
  }

  .hero-art {
    opacity: 0.72;
  }

  .hello-chip {
    display: none;
  }

  .product-copy {
    padding: 0.58rem;
  }

  .cart-dock {
    gap: 0.45rem;
  }

  .cart-icon-button {
    width: 2.8rem;
    height: 2.8rem;
  }

  .primary-button--dock {
    min-width: 5.2rem;
    padding-right: 0.7rem;
    padding-left: 0.7rem;
  }

  .checkout-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .checkout-price {
    grid-column: 2 / -1;
    min-width: 0;
    text-align: left;
  }

  .field-row,
  .success-actions {
    grid-template-columns: 1fr;
  }

  .detail-footer {
    grid-template-columns: 1fr auto;
  }

  .detail-footer .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .rating-card,
  .promise-card,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .promise-card > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 18rem) {
  .home-page {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }

  .brand-lockup small,
  .store-facts span:last-child,
  .cart-total-copy span {
    display: none;
  }

  .hero-card {
    padding: 1rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .search-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-left: 0.65rem;
  }

  .search-clear {
    display: none;
  }

  .search-submit {
    padding: 0 0.65rem;
  }

  .catalog-layout {
    display: block;
  }

  .category-rail {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    flex-direction: row;
    gap: 0.45rem;
    margin: 0 -0.5rem 0.9rem;
    padding: 0.5rem;
    overflow-x: auto;
    background: rgba(255, 250, 244, 0.92);
    scrollbar-width: none;
    backdrop-filter: blur(0.7rem);
  }

  .category-rail::-webkit-scrollbar {
    display: none;
  }

  .category-button {
    min-width: max-content;
    min-height: 2.75rem;
    flex: 0 0 auto;
    padding: 0.55rem 0.72rem;
  }

  .category-button::before {
    display: none;
  }

  .cart-dock-wrap {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .cart-dock {
    grid-template-columns: auto minmax(2.7rem, 1fr) auto;
    padding: 0.45rem;
  }

  .cart-icon-button {
    width: 2.45rem;
    height: 2.45rem;
  }

  .cart-total-copy strong {
    font-size: 0.9rem;
  }

  .primary-button--dock {
    min-width: 4.4rem;
    min-height: 2.55rem;
    font-size: 0.72rem;
  }

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

  .product-copy h3,
  .price-stack strong {
    font-size: 0.8rem;
  }

  .stepper--compact button {
    width: 1.2rem;
    height: 1.35rem;
  }

  .add-button--compact {
    width: 1.75rem;
    height: 1.75rem;
  }
}

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