:root {
  --bg: #fbf8f4;
  --bg-alt: #f3eee6;
  --surface: #ffffff;
  --text: #22302a;
  --muted: #6b766f;
  --line: #e4ddd2;
  --primary: #3f6b4f;
  --primary-ink: #ffffff;
  --primary-hover: #345a42;
  --accent: #b5527a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(34, 48, 42, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

.container {
  width: min(1180px, 100% - 32px);
  margin-inline: auto;
}

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

/* ---------- Buttons & inputs ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}

.btn-ghost:hover {
  background: var(--primary);
  color: var(--primary-ink);
}

.btn-small {
  padding: 9px 16px;
  font-size: 14px;
}

.btn-block {
  width: 100%;
}

.link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.link:hover {
  color: var(--primary);
}

.input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: 15px var(--sans);
}

.input:focus {
  outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-color: var(--primary);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-name {
  font: 600 24px/1 var(--serif);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}

.main-nav a:hover {
  color: var(--text);
}

.cart-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 12px/20px var(--sans);
  text-align: center;
}

.cart-count[hidden] {
  display: none;
}

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

.hero {
  background:
    radial-gradient(circle at 85% 30%, #f6dfe5 0, transparent 45%),
    radial-gradient(circle at 10% 90%, #dfe9df 0, transparent 40%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 80px 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  font: 600 clamp(40px, 6vw, 68px) / 1.05 var(--serif);
}

.lead {
  max-width: 52ch;
  font-size: 18px;
  color: var(--muted);
}

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

.hero-art {
  justify-self: center;
  width: min(340px, 80%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-art img {
  width: 70%;
}

/* ---------- Sections ---------- */

.section {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-title {
  font: 600 clamp(30px, 4vw, 42px) / 1.1 var(--serif);
}

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

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.category-art {
  display: block;
  aspect-ratio: 4 / 3;
  background: var(--tone);
}

.category-art svg,
.category-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  font-size: 14px;
  color: var(--muted);
}

.category-text strong {
  font-size: 17px;
  color: var(--text);
}

.category-text em {
  font-style: normal;
  color: var(--accent);
}

.category-text small {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Shop ---------- */

.shop-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.shop-tools {
  display: flex;
  gap: 10px;
  flex: 0 1 460px;
}

.shop-tools .input[type="search"] {
  flex: 1.4;
}

.shop-tools select {
  flex: 1;
}

.filter-chips {
  display: flex;
  gap: 8px;
  margin: 20px 0 28px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chip {
  flex: none;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font: 500 14px var(--sans);
  cursor: pointer;
}

.chip[aria-selected="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s;
}

.product-card:hover {
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
}

.product-media svg,
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.product-card:hover .product-media svg,
.product-card:hover .product-media img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font: 600 12px var(--sans);
  color: var(--accent);
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 4px;
  padding: 14px 16px 16px;
}

.product-cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-body h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.price {
  font-weight: 600;
  color: var(--primary);
}

.price-lg {
  font-size: 22px;
}

.empty {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
}

/* ---------- Custom / About ---------- */

.custom-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px;
  border-radius: calc(var(--radius) * 1.5);
  background: linear-gradient(120deg, #e4ece4, #f6e3e9);
}

.custom-band > div {
  max-width: 640px;
}

.tags {
  color: var(--accent);
  font-weight: 500;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.features strong {
  font-size: 16px;
  color: var(--text);
}

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

.site-footer {
  padding: 56px 0 24px;
  background: #22302a;
  color: #dfe5e1;
}

.site-footer .muted {
  color: #a6b2ab;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer .brand img {
  background: #fff;
  border-radius: 50%;
  padding: 4px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.contact-list a:hover {
  color: #fff;
}

.copyright {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #a6b2ab;
}

/* ---------- Modal ---------- */

.modal {
  width: min(860px, 100% - 32px);
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: calc(var(--radius) * 1.3);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.modal::backdrop {
  background: rgba(20, 28, 24, 0.5);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.detail-media {
  min-height: 360px;
  background: var(--bg-alt);
}

.detail-media svg,
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-info {
  padding: 32px;
}

.detail-info h2 {
  font: 600 32px/1.1 var(--serif);
  margin-top: 6px;
}

.care {
  display: grid;
  gap: 8px;
  margin: 20px 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
}

.care div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.care dt {
  color: var(--muted);
}

.care dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

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

.qty {
  width: 80px;
  border-radius: 999px;
  text-align: center;
}

/* ---------- Cart drawer ---------- */

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(20, 28, 24, 0.45);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: var(--surface);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}

.drawer.open {
  transform: none;
  visibility: visible;
}

.drawer-head {
  position: relative;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.drawer-head h2 {
  margin: 0;
  font: 600 28px var(--serif);
}

.drawer-head .modal-close {
  top: 18px;
  right: 18px;
  background: var(--bg-alt);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}

.drawer-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 10px;
}

.cart-thumb svg,
.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.stepper {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  width: fit-content;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.stepper button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text);
  cursor: pointer;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.summary-row.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 18px;
}

.hint {
  min-height: 1em;
  margin: 8px 0 14px;
  font-size: 13px;
  color: var(--accent);
}

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

.checkout,
.confirmation {
  padding: 32px;
}

.checkout h2,
.confirmation h2 {
  font: 600 30px var(--serif);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}

.span-2 {
  grid-column: span 2;
}

.checkout-summary {
  margin: 20px 0;
  padding: 16px;
  border-radius: 10px;
  background: var(--bg);
  font-size: 14px;
}

.checkout-summary ul {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.checkout-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.form-error {
  color: #b3261e;
  font-size: 14px;
}

.confirmation {
  text-align: center;
}

.confirm-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 30px;
}

.order-text {
  margin: 12px 0 16px;
  font: 13px/1.5 ui-monospace, monospace;
  resize: none;
}

.confirmation .detail-actions {
  justify-content: center;
}

.payment-methods {
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.payment-methods > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.pay-option:has(input:checked) {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  box-shadow: 0 0 0 1px var(--primary);
}

.pay-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pay-option input {
  margin-top: 12px;
  accent-color: var(--primary);
}

.pay-logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 36px;
  border-radius: 8px;
  font: 700 11px/1 var(--sans);
  color: #fff;
  background: #6b766f;
}

.pay-qpay { background: #1a63c9; }
.pay-socialpay { background: #0b2f6b; }
.pay-card { background: #1a1f71; font-style: italic; letter-spacing: 0.04em; }
.pay-transfer { background: var(--primary); font-size: 18px; }
.pay-storepay { background: #6c2bd9; }
.pay-cash { background: #8a6d3b; }

.pay-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}

.pay-text small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.pay-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg);
  text-align: left;
  font-size: 14px;
}

.pay-box.center {
  text-align: center;
}

.pay-box p {
  margin: 0 0 8px;
}

.pay-box.pay-short {
  border: 1px solid var(--accent);
  background: #fbeff4;
}

.bank-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.bank-acc {
  font: 600 16px ui-monospace, monospace;
  letter-spacing: 0.03em;
}

.qr {
  width: min(240px, 70vw);
  margin: 0 auto 12px;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}

.bank-apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 16px;
}

.bank-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11.5px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.bank-app img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.order-details {
  margin: 12px 0;
  text-align: left;
  font-size: 14px;
}

.order-details summary {
  cursor: pointer;
  color: var(--muted);
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  max-width: calc(100% - 32px);
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s;
}

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

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

@media (max-width: 860px) {
  .main-nav {
    display: none;
  }

  .cart-button {
    margin-left: auto;
  }

  .hero-inner,
  .about,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 48px 0;
  }

  .hero-art {
    display: none;
  }

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

  .detail-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .section {
    padding: 52px 0;
  }

  .shop-tools {
    flex-basis: 100%;
  }

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

  .category-text span {
    display: none;
  }

  .product-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .features,
  .form-grid,
  .payment-methods > div {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .custom-band,
  .checkout,
  .confirmation,
  .detail-info {
    padding: 24px;
  }
}

/* ---------- Header icons, wishlist ---------- */

.main-nav .link {
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.header-inner .icon-button {
  margin-left: -12px;
}

.track-icon {
  display: none;
}

.product-media-wrap {
  position: relative;
}

.heart {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  cursor: pointer;
}

.heart svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.heart.on svg path {
  fill: currentColor;
}

.detail-actions .heart {
  position: static;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
}

.btn-icon {
  width: 44px;
  padding: 0;
}

.stock-note {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 6px;
}

.stock-note.out {
  color: var(--muted);
}

.product-card.is-soldout .product-media svg,
.product-card.is-soldout .product-media img {
  filter: grayscale(0.7);
  opacity: 0.7;
}

.detail-desc {
  white-space: pre-line;
}

a.product-media {
  color: inherit;
}

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

.choice-group {
  margin: 0 0 16px;
  padding: 0;
  border: 0;
}

.choice-group legend,
.promo label {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}

.choice:has(input:checked) {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.choice input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.choice span {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.choice small {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

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

.promo {
  margin-top: 18px;
}

.promo label {
  display: block;
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row .input {
  text-transform: uppercase;
}

.promo-msg {
  min-height: 1em;
  margin: 6px 0 0;
  font-size: 13px;
}

.promo-msg.ok {
  color: var(--primary);
}

.promo-msg.error {
  color: #b3261e;
}

.summary-row.discount {
  color: var(--accent);
}

/* ---------- Tracking, info pages ---------- */

.modal-sm {
  width: min(560px, 100% - 32px);
}

.sub-title {
  margin: 24px 0 8px;
  font-size: 15px;
}

.my-orders {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.my-orders li {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.track-card {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--bg);
  font-size: 14px;
}

.track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #eee;
  white-space: nowrap;
}

.status-pending { background: #fdf0d5; color: #8a5a00; }
.status-paid { background: #dcefe2; color: #25613a; }
.status-delivering { background: #dde8f8; color: #234f8c; }
.status-completed { background: #e3e3e3; color: #333; }
.status-cancelled { background: #f8dede; color: #9b2c2c; }

.timeline {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 14px 26px;
  color: var(--muted);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
}

.timeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 19px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}

.timeline li.done {
  color: var(--text);
  font-weight: 500;
}

.timeline li.done::before {
  border-color: var(--primary);
  background: var(--primary);
}

.timeline small {
  display: block;
  font-weight: 400;
  color: var(--muted);
}

.track-items {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.track-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.page-body p {
  color: var(--text);
}

.footer-inner {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
}

.site-footer .link {
  color: inherit;
  font-size: 15px;
}

.site-footer .link:hover {
  color: #fff;
}

@media (max-width: 860px) {
  .track-icon {
    display: grid;
  }

  .header-inner .track-icon {
    margin-left: auto;
  }

  .header-inner .cart-button {
    margin-left: -12px;
  }

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

@media (max-width: 560px) {
  .choice-row {
    grid-template-columns: 1fr;
  }

  .brand-name {
    font-size: 20px;
  }

  .header-inner {
    gap: 18px;
  }
}
