/* =========================================================
   SERI — skincare showcase
   Tokens
   ========================================================= */
:root {
  --bg: #FBF8F2;
  --bg-panel: #FFFFFF;
  --sage: #C5E1A5;
  --sage-soft: #EAF2DC;
  --sage-deep: #A9C783;
  --deep: #3F5233;
  --deep-2: #4B6140;
  --gold: #C98A3A;
  --gold-soft: #DFA85C;
  --plum: #8B4A9A;
  --ink: #2B2A24;
  --ink-soft: #6B6A5F;
  --line: rgba(63, 82, 51, 0.16);

  --radius-lg: 30px 30px 30px 6px;
  --radius-md: 20px;
  --radius-sm: 12px;

  --shadow-soft: 0 18px 40px -22px rgba(43, 42, 36, 0.35);

  --font-display: "Fraunces", "Iowan Old Style", "Georgia", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--deep);
  margin: 0 0 0.4em;
  font-weight: 600;
  letter-spacing: -0.01em;
}

button { font-family: inherit; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 14px 26px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--deep);
  color: var(--sage-soft);
}
.btn-primary:hover { box-shadow: 0 10px 24px -10px rgba(63, 82, 51, 0.55); }

.btn-ghost {
  background: transparent;
  color: var(--deep);
  border: 1.5px solid var(--deep);
}
.btn-ghost:hover { background: var(--sage-soft); }

.btn-gold {
  background: var(--gold);
  color: #fff;
}
.btn-gold:hover { box-shadow: 0 10px 24px -10px rgba(201, 138, 58, 0.6); }

.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.eyebrow-word {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
}

.sprig {
  display: block;
  width: 200px;
  height: 24px;
  margin: 0 auto;
}
.sprig.left { margin: 0; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand img { width: 40px; height: 40px; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--deep);
  font-weight: 700;
  line-height: 1;
}
.brand-tag {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  display: flex;
  border: 1.5px solid var(--deep);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--deep);
  padding: 7px 14px;
  font-size: 0.82rem;
  font-weight: 700;
}
.lang-toggle button.active {
  background: var(--deep);
  color: var(--sage-soft);
}

.cart-btn {
  position: relative;
  background: var(--sage);
  border: none;
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-btn img { width: 20px; height: 20px; }
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count[hidden] { display: none; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 64px 0 40px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}
.hero-copy h1 {
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  line-height: 1.08;
  max-width: 12ch;
}
.hero-copy p {
  color: var(--ink-soft);
  max-width: 46ch;
  font-size: 1.05rem;
  margin-bottom: 28px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.hero-stats {
  display: flex;
  gap: 28px;
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--deep);
}
.hero-stats div span {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.hero-art {
  position: relative;
}
.hero-art img { width: 100%; height: auto; }

/* =========================================================
   Ingredient strip
   ========================================================= */
.ingredient-strip {
  background: var(--deep);
  color: var(--sage-soft);
  padding: 18px 0;
}
.ingredient-strip .wrap {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.ingredient-strip span { opacity: 0.92; }

/* =========================================================
   Section shell
   ========================================================= */
.section { padding: 72px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-head p {
  color: var(--ink-soft);
  margin-top: 10px;
}

/* =========================================================
   Featured products (cleanser + night mask)
   ========================================================= */
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-bottom: 20px;
}
.product-feature {
  background: var(--bg-panel);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}
.product-feature .pf-art {
  background: var(--sage-soft);
  border-radius: 22px;
  padding: 18px;
}
.product-feature .pf-art img {
  width: 100%;
  aspect-ratio: 10 / 13;
  object-fit: contain;
}
.pf-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--deep);
  background: var(--sage);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.product-feature h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.pf-native {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 10px;
}
.pf-desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.pf-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--deep);
  font-weight: 600;
}

/* =========================================================
   Secondary products (grid of small cards)
   ========================================================= */
.range-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-card .pc-art {
  background: var(--sage-soft);
  border-radius: 14px;
  padding: 14px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card .pc-art img { height: 100%; width: 100%; object-fit: contain; }
.product-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--deep);
  margin: 0;
}
.pc-native {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: -6px;
}
.pc-desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  flex-grow: 1;
}
.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pc-footer .price { font-size: 1.05rem; }

.add-btn {
  background: var(--deep);
  color: var(--sage-soft);
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}
.add-btn.added { background: var(--gold); }

/* =========================================================
   Trust / testimonial
   ========================================================= */
.trust-section {
  background: var(--sage-soft);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.trust-card {
  background: var(--bg-panel);
  border-radius: var(--radius-md);
  padding: 26px;
}
.trust-card p {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 0 0 14px;
}
.trust-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--deep);
}
.trust-loc {
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* =========================================================
   Newsletter inline band
   ========================================================= */
.newsletter-band {
  background: var(--deep);
  border-radius: 28px;
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.newsletter-band h3 {
  color: var(--sage-soft);
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.newsletter-band p {
  color: rgba(234, 242, 220, 0.75);
  margin: 0;
  font-size: 0.92rem;
}
.nl-inline-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.nl-inline-form input {
  padding: 13px 16px;
  border-radius: 999px;
  border: none;
  min-width: 240px;
  font-size: 0.92rem;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  padding: 50px 0 30px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1.4fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand img { width: 34px; margin-bottom: 10px; }
.footer-brand p {
  color: var(--ink-soft);
  font-size: 0.86rem;
  max-width: 34ch;
}
.footer-col h5 {
  font-size: 0.82rem;
  color: var(--deep);
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.footer-company {
  display: grid;
  gap: 8px;
  font-size: 0.86rem;
  font-style: normal;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.footer-company a {
  color: inherit;
  text-decoration: underline;
}
.footer-bottom {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
}

/* =========================================================
   Cart drawer
   ========================================================= */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 42, 36, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg);
  z-index: 60;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px -20px rgba(0,0,0,0.3);
}
.cart-drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.drawer-head h3 { margin: 0; font-size: 1.2rem; }
.icon-btn {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--ink-soft);
  padding: 4px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px;
}
.cart-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 60px 20px;
  font-size: 0.92rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item .ci-art {
  background: var(--sage-soft);
  border-radius: 10px;
  padding: 6px;
  height: 56px;
}
.ci-name { font-size: 0.9rem; font-weight: 600; color: var(--deep); }
.ci-price { font-size: 0.82rem; color: var(--ink-soft); }
.ci-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.ci-qty button {
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.85rem;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.ci-remove {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.76rem;
  text-decoration: underline;
  justify-self: end;
  padding: 0;
}

.drawer-foot {
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line);
}
.drawer-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 14px;
}

/* =========================================================
   Modals (newsletter / checkout)
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 42, 36, 0.5);
}
.modal-card {
  position: relative;
  background: var(--bg-panel);
  border-radius: 24px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 34px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal.open .modal-card { transform: translateY(0) scale(1); }
.modal-card.wide { max-width: 620px; }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--sage-soft);
  border: none;
  width: 32px; height: 32px;
  border-radius: 999px;
  font-size: 1.1rem;
  color: var(--deep);
}

/* newsletter modal */
.nl-modal-art { width: 64px; height: 64px; margin-bottom: 14px; }
.modal-card h3 { font-size: 1.35rem; }
.modal-card .modal-sub {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 22px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: var(--bg);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--sage-deep);
  outline-offset: 1px;
  border-color: var(--sage-deep);
}
.field-error {
  color: #B3452C;
  font-size: 0.78rem;
  margin-top: 5px;
  display: none;
}
.field.invalid input { border-color: #B3452C; }
.field.invalid .field-error { display: block; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.nl-fineprint {
  font-size: 0.74rem;
  color: var(--ink-soft);
  margin-top: 14px;
}
.nl-success {
  text-align: center;
  padding: 10px 0 4px;
}
.nl-success .check-badge {
  width: 54px; height: 54px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  font-size: 1.5rem;
}

/* checkout modal */
.checkout-summary {
  background: var(--sage-soft);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}
.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  color: var(--ink-soft);
}
.checkout-summary-row.total {
  color: var(--deep);
  font-weight: 700;
  font-size: 1rem;
  border-top: 1px dashed var(--sage-deep);
  margin-top: 6px;
  padding-top: 10px;
}
.checkout-success {
  text-align: center;
  padding: 20px 0;
}
.checkout-success .check-badge {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}
.checkout-order-no {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--deep);
  margin-bottom: 6px;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--deep);
  color: var(--sage-soft);
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 360px; margin: 0 auto; }
  .product-feature { grid-template-columns: 1fr; }
  .range-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .featured-grid { grid-template-columns: 1fr; }
  .range-grid { grid-template-columns: 1fr 1fr; }
  .ingredient-strip .wrap { gap: 18px; font-size: 0.76rem; }
  .newsletter-band { flex-direction: column; text-align: center; padding: 32px 24px; }
  .nl-inline-form { justify-content: center; width: 100%; }
  .nl-inline-form input { min-width: 0; flex: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.1rem; }
  .field-row { flex-direction: column; gap: 0; }
}

@media (max-width: 420px) {
  .range-grid { grid-template-columns: 1fr; }
}
