:root {
  --ink: #201b1f;
  --muted: #766c72;
  --line: #ded2d6;
  --paper: #f7f2ef;
  --surface: #fffaf8;
  --plum: #432438;
  --rose: #b98191;
  --sage: #879583;
  --champagne: #d9c5ad;
  --shadow: 0 18px 44px rgba(32, 27, 31, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Sans SC", sans-serif;
  letter-spacing: 0;
}

body.cart-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.announcement {
  display: grid;
  min-height: 34px;
  place-items: center;
  background: var(--plum);
  color: var(--surface);
  font-size: 0.78rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  padding: 0 clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(222, 210, 214, 0.72);
  background: rgba(247, 242, 239, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links a {
  transition: color 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.cart-toggle,
.icon-button {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.cart-toggle {
  justify-self: end;
  grid-template-columns: 22px auto;
  min-width: 66px;
  min-height: 42px;
  gap: 8px;
  padding: 0 13px;
}

.cart-toggle svg,
.icon-button svg {
  width: 21px;
  height: 21px;
}

.cart-toggle:hover,
.icon-button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
  background: #ffffff;
}

.hero {
  position: relative;
  display: flex;
  min-height: clamp(135px, 19svh, 180px);
  align-items: flex-start;
  overflow: hidden;
  padding: clamp(18px, 3vw, 32px) clamp(22px, 7vw, 92px) 24px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(247, 242, 239, 0.98) 0%,
      rgba(247, 242, 239, 0.83) 38%,
      rgba(247, 242, 239, 0.2) 74%
    ),
    url("/static/images/hero-wellness.png");
  background-position: center bottom;
  background-size: cover;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 32%;
  content: "";
  background: linear-gradient(180deg, rgba(247, 242, 239, 0), var(--paper));
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.story-section h2,
.rewards-section h2,
.cart-header h2 {
  margin: 0;
  line-height: 1;
}

.hero h1 {
  max-width: 8ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  font-weight: 500;
}

.hero-text {
  max-width: 560px;
  margin: 10px 0 0;
  color: #3a352f;
  font-size: clamp(0.9rem, 1.3vw, 1rem);
  line-height: 1.55;
}

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

.button,
.checkout-button,
.add-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.button {
  padding: 0 22px;
}

.primary,
.checkout-button,
.add-button {
  background: var(--plum);
  color: var(--surface);
}

.quiet {
  background: rgba(255, 253, 248, 0.72);
}

.button:hover,
.checkout-button:hover:not(:disabled),
.add-button:hover {
  transform: translateY(-1px);
}

.quiet:hover {
  background: #ffffff;
}

.shop-section,
.story-section,
.rewards-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 70px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  max-width: 1320px;
  margin: 0 auto 28px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 520px;
}

.category-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 250, 248, 0.72);
  color: #4f454d;
  font-size: 0.82rem;
  font-weight: 700;
}

.section-heading h2,
.story-section h2,
.rewards-section h2 {
  font-size: clamp(2rem, 5vw, 4.4rem);
  font-weight: 600;
}

.product-grid {
  display: grid;
  max-width: 1320px;
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(32, 27, 31, 0.04);
}

.product-visual {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background-color: #efe6e3;
  background-image:
    linear-gradient(180deg, rgba(255, 250, 248, 0), rgba(67, 36, 56, 0.08)),
    url("/static/images/hero-wellness.png");
  background-repeat: no-repeat;
  background-size: cover, 440% auto;
}

.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual.has-custom-image {
  background-image: none;
}

.crop-1 {
  background-position: center, 0% 62%;
}

.crop-2 {
  background-position: center, 10% 62%;
}

.crop-3 {
  background-position: center, 20% 62%;
}

.crop-4 {
  background-position: center, 30% 62%;
}

.crop-5 {
  background-position: center, 40% 62%;
}

.crop-6 {
  background-position: center, 50% 62%;
}

.crop-7 {
  background-position: center, 60% 62%;
}

.crop-8 {
  background-position: center, 70% 62%;
}

.crop-9 {
  background-position: center, 80% 62%;
}

.crop-10 {
  background-position: center, 90% 62%;
}

.crop-11 {
  background-position: center, 100% 62%;
}

.crop-12 {
  background-position: center, 6% 72%;
}

.crop-13 {
  background-position: center, 16% 72%;
}

.crop-14 {
  background-position: center, 26% 72%;
}

.crop-15 {
  background-position: center, 36% 72%;
}

.crop-16 {
  background-position: center, 46% 72%;
}

.crop-17 {
  background-position: center, 56% 72%;
}

.crop-18 {
  background-position: center, 66% 72%;
}

.crop-19 {
  background-position: center, 76% 72%;
}

.crop-20 {
  background-position: center, 86% 72%;
}

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

.product-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.product-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.english-name,
.product-card p {
  margin: 0;
  color: var(--muted);
}

.english-name {
  margin-top: 4px;
  font-size: 0.82rem;
}

.product-card p {
  min-height: 68px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.product-tag {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #4f454d;
  font-size: 0.72rem;
  font-weight: 700;
}

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

.price {
  font-weight: 800;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 250, 248, 0.74);
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-link:hover {
  border-color: var(--ink);
  background: #ffffff;
}

.add-button {
  min-width: 84px;
  padding: 0 18px;
}

.detail-page {
  min-height: 100vh;
}

.product-detail {
  display: grid;
  max-width: 1180px;
  margin: 0 auto;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 78px);
  padding: clamp(36px, 7vw, 92px) clamp(18px, 5vw, 70px);
}

.back-link {
  grid-column: 1 / -1;
  width: fit-content;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.detail-visual {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.detail-copy h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1;
}

.detail-description {
  max-width: 620px;
  margin: 28px 0 0;
  color: #3a352f;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.85;
}

.detail-price {
  margin-top: 26px;
  font-size: 1.5rem;
  font-weight: 800;
}

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

.detail-actions .checkout-button {
  width: auto;
  padding: 0 28px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.product-facts span {
  display: grid;
  min-height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: #4f454d;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
}

.related-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
}

.all-products-page {
  min-height: 100vh;
}

.page-hero {
  padding: clamp(48px, 7vw, 84px) clamp(18px, 5vw, 70px);
  border-bottom: 1px solid var(--line);
}

.compact-page-hero {
  display: grid;
  min-height: 260px;
  align-content: center;
  background:
    linear-gradient(
      90deg,
      rgba(247, 242, 239, 0.98) 0%,
      rgba(247, 242, 239, 0.78) 45%,
      rgba(247, 242, 239, 0.1) 100%
    ),
    url("/static/images/hero-wellness.png");
  background-position: center;
  background-size: cover;
}

.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  line-height: 1;
}

.page-hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 20px 0 0;
  color: #3a352f;
  font-size: clamp(1rem, 2vw, 1.16rem);
  line-height: 1.8;
}

.all-products-section {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 70px);
}

.account-page {
  min-height: 70vh;
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 70px);
}

.account-panel {
  display: grid;
  max-width: 920px;
  margin: 0 auto;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 54px);
}

.account-panel h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1;
}

.account-panel p:not(.eyebrow) {
  margin: 22px 0 0;
  color: #3a352f;
  line-height: 1.8;
}

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

.account-mode-tabs {
  display: inline-flex;
  gap: 8px;
  margin-bottom: 4px;
}

.account-mode-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 250, 248, 0.74);
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.account-mode-button.is-active {
  border-color: var(--ink);
  background: var(--plum);
  color: var(--surface);
}

.account-form label {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.account-input-row input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  padding: 0 16px;
}

.account-input-row input:focus {
  border-color: var(--plum);
  outline: 2px solid rgba(67, 36, 56, 0.12);
}

.account-workspace {
  display: grid;
  gap: 18px;
}

.account-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.account-status[hidden] {
  display: none;
}

.account-status strong {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.account-status span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.account-status .button,
.order-history-heading .button {
  width: auto;
  min-height: 38px;
  padding: 0 16px;
}

.account-security {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.account-security[hidden] {
  display: none;
}

.account-security h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.2;
}

.password-change-form {
  display: grid;
  gap: 10px;
}

.password-change-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf5;
  color: var(--ink);
  font: inherit;
  padding: 0 12px;
}

.password-change-form input:focus {
  border-color: var(--plum);
  outline: 2px solid rgba(67, 36, 56, 0.12);
}

.order-history {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.order-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.order-history-heading h2 {
  margin: 0;
  font-size: 1.24rem;
  line-height: 1.2;
}

.order-history-empty {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.order-history-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.order-history-card {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.order-history-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.order-history-card h3,
.order-history-card p {
  margin: 0;
}

.order-history-card h3 {
  font-size: 0.92rem;
}

.order-history-card p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.order-history-card span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #4f454d;
  font-size: 0.72rem;
  font-weight: 800;
}

.story-section,
.rewards-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 100px);
  border-top: 1px solid var(--line);
}

.story-section p {
  max-width: 760px;
  margin: 0;
  color: #3a352f;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.9;
}

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

.reward-list span {
  display: grid;
  min-height: 88px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-weight: 700;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  width: min(430px, 100vw);
  height: 100dvh;
  flex-direction: column;
  border-left: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 220ms ease;
}

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

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(28, 26, 24, 0.24);
}

.order-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(32, 27, 31, 0.36);
}

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

.order-modal-panel {
  width: min(560px, 100%);
  max-height: min(760px, 92dvh);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.order-review {
  display: grid;
  gap: 18px;
  padding: 18px 24px 24px;
}

.order-review-items {
  display: grid;
  max-height: 320px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.order-review-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.order-review-line h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.order-review-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.order-review-total {
  margin-bottom: 0;
}

.order-shipping-form,
.order-payment-form {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 248, 0.72);
  padding: 14px;
}

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

.order-shipping-form label,
.order-payment-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.order-shipping-form input,
.order-shipping-form textarea,
.order-payment-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.order-shipping-form input,
.order-payment-form input {
  min-height: 42px;
  padding: 0 12px;
}

.order-shipping-form textarea {
  min-height: 78px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.5;
}

.order-shipping-form input:focus,
.order-shipping-form textarea:focus,
.order-payment-form input:focus {
  border-color: var(--plum);
  outline: 2px solid rgba(67, 36, 56, 0.12);
}

.order-account-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.order-review-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.icon-button {
  width: 42px;
  height: 42px;
}

.cart-empty {
  margin: 28px 24px;
  color: var(--muted);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 8px 24px 24px;
}

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

.cart-line h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
}

.cart-line p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.quantity-controls {
  display: grid;
  grid-template-columns: 34px 34px 34px;
  align-items: center;
  justify-items: center;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-controls button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.quantity-controls button:hover {
  background: var(--paper);
}

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

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.checkout-button {
  width: 100%;
}

.checkout-button:disabled {
  border-color: var(--line);
  background: #d7d0c6;
  color: #ffffff;
  cursor: not-allowed;
}

.checkout-message {
  min-height: 38px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.checkout-message.is-success {
  color: #315f3f;
}

.checkout-message.is-error {
  color: #9b2d20;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 70px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-page {
  min-height: 100vh;
  padding: clamp(28px, 5vw, 56px);
}

.admin-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(24px, 5vw, 56px);
}

.admin-login-panel {
  display: grid;
  width: min(720px, 100%);
  grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1fr);
  gap: clamp(28px, 6vw, 60px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 54px);
}

.admin-login-panel h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1;
}

.admin-login-panel p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-hero,
.admin-section {
  max-width: 1320px;
  margin: 0 auto;
}

.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-actions .button {
  width: auto;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 1320px;
  margin: 18px auto 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.admin-nav-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: rgba(255, 250, 248, 0.74);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.admin-nav-link.is-active {
  border-color: var(--ink);
  background: var(--plum);
  color: var(--surface);
}

.admin-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
}

.admin-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.admin-section {
  padding: 32px 0 0;
}

.admin-section-heading,
.admin-order-head,
.admin-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.admin-section-heading {
  margin-bottom: 18px;
}

.admin-section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

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

.admin-summary-card,
.admin-order-card,
.admin-product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.admin-summary-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.admin-summary-card span,
.admin-inline-message,
.admin-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-summary-card strong {
  font-size: 1.55rem;
}

.admin-orders-list,
.admin-products-list {
  display: grid;
  gap: 12px;
}

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

.admin-order-group {
  display: grid;
  align-content: start;
  gap: 12px;
}

.admin-order-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 248, 0.74);
  padding: 12px 14px;
}

.admin-order-group-heading h3 {
  margin: 0;
  font-size: 1rem;
}

.admin-order-group-heading span {
  display: inline-grid;
  min-width: 32px;
  min-height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--plum);
  color: var(--surface);
  font-weight: 800;
}

.admin-order-group-list {
  display: grid;
  gap: 12px;
}

.admin-order-card,
.admin-product-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.admin-order-head h3,
.admin-product-head h3,
.admin-order-head p,
.admin-product-head p,
.admin-order-body p {
  margin: 0;
}

.admin-order-head h3,
.admin-product-head h3 {
  font-size: 1rem;
}

.admin-order-head p,
.admin-product-head p,
.admin-order-body p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.admin-order-head span,
.admin-product-head span {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: #4f454d;
  font-size: 0.72rem;
  font-weight: 800;
}

.admin-order-body {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}

.admin-order-body strong {
  display: inline-block;
  min-width: 44px;
  margin-right: 8px;
  color: var(--ink);
}

.admin-product-media {
  width: min(180px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-shipment-form,
.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

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

.admin-shipment-form label,
.admin-product-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.admin-shipment-form input,
.admin-product-card input,
.admin-product-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.admin-shipment-form input,
.admin-product-card input {
  min-height: 42px;
  padding: 0 12px;
}

.admin-product-card textarea {
  min-height: 76px;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.5;
}

.admin-wide-field {
  grid-column: 1 / -1;
}

.admin-shipment-form .checkout-button,
.admin-product-card .checkout-button {
  align-self: end;
}

.admin-inline-message {
  min-height: 24px;
  margin: 0;
  line-height: 1.5;
}

.admin-inline-message.is-success {
  color: #315f3f;
}

.admin-inline-message.is-error {
  color: #9b2d20;
}

@media (max-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-visual {
    min-height: auto;
  }

  .story-section,
  .rewards-section {
    grid-template-columns: 1fr;
  }

  .account-panel {
    grid-template-columns: 1fr;
  }

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

  .admin-summary-grid,
  .admin-form-grid,
  .admin-shipment-form,
  .admin-order-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) and (min-width: 961px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 190px;
    padding-top: 24px;
  }

  .hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(247, 242, 239, 0.98) 0%,
        rgba(247, 242, 239, 0.78) 45%,
        rgba(247, 242, 239, 0.12) 100%
      ),
      url("/static/images/hero-wellness.png");
    background-position: center bottom;
    background-size: auto 92%;
  }

  .section-heading {
    display: block;
  }

  .category-strip {
    justify-content: flex-start;
    margin-top: 20px;
  }

  .reward-list {
    grid-template-columns: 1fr;
  }

  .admin-hero,
  .admin-section-heading {
    display: block;
  }

  .admin-actions,
  .admin-section-heading .button {
    margin-top: 18px;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-nav-link {
    flex: 1 1 160px;
  }
}

@media (max-width: 560px) {
  .announcement {
    font-size: 0.72rem;
  }

  .site-header {
    min-height: 62px;
    padding: 0 14px;
  }

  .cart-toggle {
    min-width: 58px;
  }

  .hero {
    min-height: 180px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

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

  .product-footer,
  .product-actions,
  .detail-actions,
  .product-facts {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .product-actions .detail-link,
  .product-actions .add-button,
  .detail-actions .checkout-button,
  .detail-actions .button,
  .account-input-row .checkout-button,
  .password-change-form .button {
    width: 100%;
  }

  .account-input-row {
    grid-template-columns: 1fr;
  }

  .account-status,
  .order-history-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .account-status .button,
  .order-history-heading .button {
    width: 100%;
  }

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

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

  .order-modal-panel {
    max-height: 94dvh;
  }

  .product-card p {
    min-height: 0;
  }

  .cart-header,
  .cart-items,
  .cart-summary {
    padding-right: 18px;
    padding-left: 18px;
  }

  .admin-summary-grid,
  .admin-form-grid,
  .admin-shipment-form,
  .admin-order-groups {
    grid-template-columns: 1fr;
  }

  .admin-actions .button {
    width: 100%;
  }
}

.home-product-grid {
  max-width: 1120px;
  grid-template-columns: repeat(4, minmax(190px, 1fr));
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.home-product-grid .product-body {
  gap: 10px;
  padding: 14px;
}

.home-product-grid .product-meta {
  display: block;
}

.home-product-grid .product-tag {
  display: inline-flex;
  margin-top: 10px;
}

.home-product-grid .product-card h3 {
  font-size: 0.9rem;
}

.home-product-grid .english-name {
  font-size: 0.76rem;
}

.home-product-grid .product-card p {
  min-height: 78px;
  font-size: 0.82rem;
}

.home-product-grid .product-footer,
.home-product-grid .product-actions {
  align-items: stretch;
  flex-direction: column;
}

.home-product-grid .detail-link,
.home-product-grid .add-button {
  width: 100%;
}
