:root {
  --bg: #f4f0e7;
  --surface: #fffdf9;
  --surface-soft: #f5f5ef;
  --surface-mint: #dceee2;
  --text: #133033;
  --text-strong: #092225;
  --text-muted: rgba(9, 34, 37, 0.72);
  --line: rgba(0, 43, 45, 0.12);
  --brand: #002b2d;
  --brand-2: #bcedcf;
  --brand-2-strong: rgba(188, 237, 207, 0.7);
  --brand-3: #6f8f80;
  --shadow: 0 24px 60px rgba(0, 34, 37, 0.1);
  --shadow-soft: 0 16px 32px rgba(0, 34, 37, 0.08);
  --container: min(1160px, calc(100% - 32px));
  --site-header-offset: 132px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-offset);
}

main > section[id],
.section[id] {
  scroll-margin-top: var(--site-header-offset);
}

body {
  margin: 0;
  font-family: "Manrope", "Avenir Next", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(188, 237, 207, 0.38), transparent 30%),
    linear-gradient(180deg, #f7f4ed 0%, #f4f0e7 40%, #f0ede5 100%);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
  font-weight: revert;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.announcement-bar {
  background: var(--brand);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.announcement-inner {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.announcement-inner p {
  margin: 0;
}

.announcement-inner a {
  color: #bcedcf;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(255, 253, 249, 0.82);
  border-bottom: 1px solid rgba(0, 43, 45, 0.08);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand-link img {
  width: min(320px, 45vw);
  min-width: 180px;
}

.header-nav {
  display: none;
  gap: 10px;
  align-items: center;
}

.header-nav a,
.header-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  transition: background-color 160ms ease, color 160ms ease;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-link:hover,
.header-link:focus-visible {
  background: rgba(188, 237, 207, 0.44);
  color: var(--text-strong);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-button-icon {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  min-height: 1.5rem;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--brand-2-strong);
  font-size: 0.8rem;
}

.hero-section,
.shop-section,
.ritual-section,
.ingredients-section,
.story-section,
.instagram-section,
.faq-section,
.newsletter-section,
.document-section {
  padding: 80px 0;
}

.hero-grid,
.two-column,
.instagram-grid,
.story-grid {
  display: grid;
  gap: 28px;
}

.hero-grid {
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 800;
  color: rgba(0, 43, 45, 0.6);
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 12ch;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.6rem;
  line-height: 1;
}

.hero-subtitle,
.section-copy,
.story-card p,
.ingredient-card p,
.ritual-step p,
.newsletter-shell p,
.document-content p,
.faq-content p,
.product-card p,
.instagram-copy p {
  line-height: 1.7;
  color: var(--text-muted);
}

.footer-copy {
  line-height: 1.7;
}

.hero-subtitle {
  max-width: 60ch;
  font-size: 1.05rem;
  margin: 20px 0 0;
}

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

.hero-note {
  margin-top: 18px;
  color: rgba(0, 43, 45, 0.62);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-panel {
  position: absolute;
  border-radius: 32px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 15px;
}

.hero-panel-pattern {
  inset: 32px 8% 32px auto;
  width: 54%;
  background:
    linear-gradient(180deg, rgba(0, 43, 45, 0.06), rgba(0, 43, 45, 0.02)),
    url("/image/brand/monogram-pattern.png") center/420px auto;
  border: 1px solid rgba(0, 43, 45, 0.08);
}

.hero-panel-product {
  background: white;
  border: 1px solid rgba(0, 43, 45, 0.08);
}

.hero-panel-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.03);
}

.hero-panel-product-primary {
  right: 0;
  top: 10px;
  width: min(380px, 68%);
  height: 380px;
}

.hero-panel-product-secondary {
  left: 0;
  bottom: 0;
  width: min(280px, 52%);
  height: 340px;
}

.hero-mark {
  position: absolute;
  left: 18px;
  top: 24px;
  width: min(250px, 48%);
  padding: 22px 24px;
  border-radius: 28px;
  background: rgba(255, 253, 249, 0.88);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 43, 45, 0.08);
  box-shadow: var(--shadow-soft);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head .section-copy {
  max-width: 42ch;
  margin: 0;
}

.product-grid,
.ingredient-grid,
.faq-list {
  display: grid;
  gap: 20px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid rgba(0, 43, 45, 0.08);
  border-radius: 28px;
  /* overflow: hidden; */
  box-shadow: var(--shadow-soft);
}

.product-card-media {
  position: relative;
  padding: 22px;
  min-height: 280px;
  background: white;
}

.product-card-media::after {
  content: "";
  position: absolute;
  inset: auto 18px 14px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
  filter: blur(28px);
}

.product-card-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 280px;
  object-fit: contain;
  border-radius: 22px;
}

.product-badge {
    z-index: 2;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    object-fit: unset;
    width: fit-content;
    display: block;
}

.product-badge-outer {
    padding: 8px 12px;
    border-radius: 10px;
    background-color: hsl(94 45% 93% / 1);
    width: fit-content;
    position: relative;
    top: -11px;
    left: -11px;
    border: 1px solid hsl(156 19% 86% / 1);
}

.product-card-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
}

.product-card-meta {
  display: grid;
  gap: 12px;
}

.product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
}

.ritual-section {
  background: linear-gradient(180deg, rgba(188, 237, 207, 0.18), rgba(188, 237, 207, 0));
}

.ritual-steps {
  display: grid;
  gap: 16px;
}

.ritual-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 22px;
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(0, 43, 45, 0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.ritual-step-index {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-2-strong);
  font-weight: 800;
}

.ingredients-section {
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.4), rgba(220, 238, 226, 0.18));
}

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

.ingredient-card,
.story-card,
.instagram-card,
.faq-item,
.newsletter-shell,
.document-shell,
.admin-panel,
.admin-product-card {
  background: rgba(255, 253, 249, 0.9);
  border: 1px solid rgba(0, 43, 45, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.ingredient-card,
.story-card,
.document-shell,
.admin-panel,
.admin-product-card {
  padding: 26px;
}

.ingredient-title,
.footer-heading {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0, 43, 45, 0.56);
}

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

.story-card-dark {
  background:
    linear-gradient(135deg, rgba(0, 43, 45, 0.98), rgba(9, 52, 54, 0.96)),
    url("/image/brand/monogram-pattern.png") center/320px auto;
  color: rgba(255, 255, 255, 0.84);
}

.story-card-dark .section-kicker,
.story-card-dark h2,
.story-card-dark p {
  color: inherit;
}

.story-copy {
  display: grid;
  gap: 14px;
}

.story-copy p {
  margin: 0;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--brand);
  font-weight: 800;
}

.instagram-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: white;
}

.instagram-card img {
  border-radius: 22px;
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: contain;
}

.faq-list {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.faq-item {
  overflow: hidden;
}

.faq-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-strong);
}

.faq-toggle-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item:not(.is-collapsed) .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-content {
  padding: 0 24px 24px;
}

.newsletter-shell {
  display: grid;
  gap: 24px;
  padding: 30px;
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.92), rgba(220, 238, 226, 0.72));
}

.newsletter-form,
.admin-login-form,
.settings-form,
.product-form,
.upload-form {
  display: grid;
  gap: 14px;
}

.upload-preview-shell {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(0, 43, 45, 0.08);
  background: rgba(255, 255, 255, 0.62);
}

.upload-preview-shell.is-empty {
  justify-items: stretch;
}

.upload-preview-thumb {
  width: 120px;
  height: 140px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(0, 43, 45, 0.1);
  background: rgba(188, 237, 207, 0.24);
  box-shadow: var(--shadow-soft);
}

.upload-preview-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.newsletter-form {
  grid-template-columns: 1fr;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(0, 43, 45, 0.14);
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
  border-radius: 18px;
  padding: 14px 16px;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.newsletter-status {
  margin: 0;
  font-size: 0.95rem;
}

.site-footer {
  padding: 44px 0 52px;
  background: var(--brand);
  color: rgba(255, 255, 255, 0.86);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.footer-logo {
  width: min(280px, 100%);
}

.footer-links {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.document-body .site-header {
  position: static;
}

.document-main {
  min-height: calc(100vh - 300px);
}

.document-content {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.ndua-modal .modal-box {
  padding: 28px;
}

.product-modal-shell,
.cart-modal-shell {
  display: grid;
  /* gap: 22px; */
}

.product-modal-media {
    border-radius: 24px;
    overflow: hidden;
    padding: 16px 16px 28px;
}

.product-modal-media img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  border-radius: 18px;
}

.product-modal-copy,
.cart-items,
.cart-empty {
  display: grid;
  gap: 14px;
}

.modal-close {
  align-self: start;
  justify-self: end;
  border: 0;
  background: rgba(0, 43, 45, 0.08);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
}

.quick-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-highlights span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(188, 237, 207, 0.44);
  font-size: 0.9rem;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 43, 45, 0.1);
}

.cart-item img {
  width: 76px;
  height: 92px;
  object-fit: contain;
  border-radius: 16px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 43, 45, 0.08);
  cursor: pointer;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
}

.cart-checkout-panel {
  display: grid;
  gap: 10px;
}

.checkout-helper,
.paypal-status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.admin-body {
  background:
    radial-gradient(circle at top, rgba(188, 237, 207, 0.36), transparent 30%),
    linear-gradient(180deg, #f7f4ed 0%, #f4f0e7 100%);
}

.admin-shell {
  padding: 32px 0 80px;
}

.admin-header-top {
  align-items: center;
}

.admin-header-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.admin-header {
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.admin-header img {
  width: min(280px, 58vw);
}

.admin-grid,
.product-admin-grid {
  display: grid;
  gap: 20px;
}

.admin-panel + .admin-panel {
  margin-top: 20px;
}

.admin-panel h2,
.admin-product-card h3 {
  margin-bottom: 14px;
}

.admin-sections {
  padding: 24px;
}

.admin-section-pane {
  display: grid;
  gap: 16px;
}

.collection-editor {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 43, 45, 0.08);
  background: rgba(255, 255, 255, 0.54);
}

.collection-editor-top,
.collection-item-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.collection-editor-top h3,
.collection-item-title {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.1;
}

.collection-list {
  display: grid;
  gap: 14px;
}

.collection-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(0, 43, 45, 0.1);
  background: rgba(255, 253, 249, 0.92);
}

.collection-item-fields {
  display: grid;
  gap: 14px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

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

.field-label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.product-form-actions,
.admin-login-actions,
.admin-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.helper {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.status-line {
  margin: 0;
  min-height: 1.2em;
  color: var(--brand);
  font-weight: 700;
}

.subscriber-list,
.orders-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

@media (min-width: 740px) {
  .header-nav {
    display: flex;
  }

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

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

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

  .newsletter-form {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .newsletter-form .newsletter-status {
    grid-column: 1 / -1;
  }

  .two-column,
  .instagram-grid,
  .story-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(460px, 0.95fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .form-grid.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-item-fields {
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: start;
  }
}

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

  .ingredient-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 739px) {
  .announcement-inner,
  .header-top,
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-header-actions {
    width: 100%;
    margin-left: 0;
  }

  .hero-visual {
    min-height: 420px;
  }

  .hero-panel-product-primary {
    width: 68%;
    height: 280px;
  }

  .hero-panel-product-secondary {
    width: 46%;
    height: 250px;
  }
}