/* ============================================================================
   NATURA — natural erotic wellness e-commerce
   Warm botanical sensuality. Deep plum ink on warm skin-tone cream, dusty
   blush + clay accents, sage for the "natural" cue. Fraunces display serif
   paired with Inter body.
   ========================================================================== */

:root {
  color-scheme: light;

  /* palette */
  --ink:        #2B1D24;   /* deep plum-brown text */
  --ink-soft:   #5C4A52;   /* secondary text */
  --cream:      #FAF3EA;   /* warm skin-tone background */
  --cream-2:    #F3E7D8;   /* raised surface / cards */
  --blush:      #E8B4B8;   /* dusty rose accent */
  --blush-deep: #D98E94;
  --clay:       #C97B63;   /* terracotta CTA */
  --clay-deep:  #B5654E;
  --sage:       #7A8B6F;   /* natural / botanical cue */
  --sage-deep:  #5F7055;
  --line:       #E5D5C8;   /* warm hairline border */
  --white:      #FFFDF9;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(43, 29, 36, 0.18);
  --shadow-lg: 0 24px 60px -20px rgba(43, 29, 36, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- display type ------------------------------------------------------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 var(--space-2);
}
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

/* eyebrow / utility labels */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin: 0 0 var(--space-2);
}

p { margin: 0 0 var(--space-2); }
a { color: var(--clay-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.muted { color: var(--ink-soft); }
.error { color: #B00020; }
.ok { color: #0A7D28; }

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--clay);
  color: var(--white);
  box-shadow: 0 8px 20px -8px rgba(201, 123, 99, 0.7);
}
.btn-primary:hover { background: var(--clay-deep); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blush-deep); background: var(--cream-2); }

/* ---- header / nav ------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 243, 234, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.9rem var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
}
.brand:hover { text-decoration: none; }
.brand .leaf { color: var(--sage); font-size: 1.2rem; }
.nav-links { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover { color: var(--clay-deep); text-decoration: none; }
.nav-links .btn { color: var(--white); }
.nav-links form { margin: 0; }
.nav-links button[type="submit"] {
  background: none;
  border: none;
  color: var(--ink-soft);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}
.nav-links button[type="submit"]:hover { color: var(--clay-deep); }
#notif-count { color: var(--blush-deep); font-weight: 700; }

/* ---- layout ------------------------------------------------------------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-3); }
.container { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-3); }

/* ---- hero --------------------------------------------------------------- */
.hero {
  position: relative;
  text-align: center;
  padding: var(--space-5) var(--space-3) var(--space-4);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background: radial-gradient(ellipse at 50% 0%, rgba(232, 180, 184, 0.35), transparent 65%);
  z-index: -1;
}
.hero .eyebrow { margin-bottom: var(--space-2); }
.hero h1 { max-width: 18ch; margin: 0 auto var(--space-3); }
.hero .lede {
  max-width: 46ch;
  margin: 0 auto var(--space-4);
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-actions { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; }
.hero .leaf-divider { margin: var(--space-4) auto 0; }

/* botanical leaf divider — the signature motif */
.leaf-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--sage);
  font-size: 1.1rem;
  opacity: 0.85;
}
.leaf-divider::before,
.leaf-divider::after {
  content: "";
  height: 1px;
  width: 64px;
  background: linear-gradient(90deg, transparent, var(--blush));
}
.leaf-divider::after { background: linear-gradient(90deg, var(--blush), transparent); }

/* ---- sections ----------------------------------------------------------- */
.section { padding: var(--space-5) 0; }
.section-head { text-align: center; max-width: 52ch; margin: 0 auto var(--space-4); }
.section-head h2 { margin-bottom: var(--space-1); }

/* ---- product grid ------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-3);
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card .thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--cream-2), var(--blush));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  margin-bottom: var(--space-2);
}
.product-card h3 { font-size: 1.15rem; margin-bottom: 0.25rem; }
.product-card .tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-bottom: var(--space-1);
}
.product-card p { font-size: 0.92rem; color: var(--ink-soft); flex: 1; }
.product-card .price {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--clay-deep);
  margin: var(--space-1) 0 var(--space-2);
}
.product-card .btn { align-self: flex-start; }

/* ---- natural materials band -------------------------------------------- */
.materials {
  background: var(--cream-2);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3);
  border: 1px solid var(--line);
}
.material { text-align: center; padding: var(--space-2); }
.material .emoji { font-size: 2rem; display: block; margin-bottom: var(--space-1); }
.material h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.material p { font-size: 0.9rem; color: var(--ink-soft); margin: 0; }

/* ---- trust / reassurance strip ----------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-3);
  text-align: center;
  margin-top: var(--space-4);
}
.trust div { padding: var(--space-2); }
.trust .icon { font-size: 1.6rem; display: block; margin-bottom: 0.4rem; }
.trust .label { font-weight: 600; font-size: 0.95rem; }
.trust .sub { font-size: 0.85rem; color: var(--ink-soft); }

/* ---- CTA band ----------------------------------------------------------- */
.cta-band {
  text-align: center;
  background: linear-gradient(160deg, var(--blush), var(--cream-2));
  border-radius: var(--radius);
  padding: var(--space-5) var(--space-3);
  margin: var(--space-4) 0;
}
.cta-band h2 { margin-bottom: var(--space-1); }
.cta-band p { color: var(--ink-soft); max-width: 44ch; margin: 0 auto var(--space-3); }

/* ---- footer ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--space-5);
  padding: var(--space-4) var(--space-3) var(--space-3);
  background: var(--cream-2);
}
.footer-inner { max-width: 1120px; margin: 0 auto; text-align: center; }
.footer-inner .brand { justify-content: center; margin: 0 0 var(--space-2); }
.footer-links { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-2); }
.footer-links a { color: var(--ink-soft); font-size: 0.92rem; }
.footer-links a:hover { color: var(--clay-deep); }
.footer-meta { font-size: 0.82rem; color: var(--ink-soft); opacity: 0.8; }
.locale-switch { margin-top: var(--space-2); font-size: 0.85rem; }
.locale-switch a { color: var(--ink-soft); }
.locale-switch a.active { font-weight: 700; color: var(--clay-deep); }

/* ---- forms / cards (shared) -------------------------------------------- */
label { display: block; margin: 0.75rem 0 0.25rem; font-weight: 500; font-size: 0.92rem; }
input, select, textarea {
  width: 100%;
  max-width: 420px;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--blush);
  outline-offset: 1px;
  border-color: var(--blush-deep);
}
button { padding: 0.4rem 0.9rem; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 0.5rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  margin: var(--space-2) 0;
  box-shadow: var(--shadow);
}
.msg-staff { background: var(--cream-2); }
pre { overflow-x: auto; background: var(--cream-2); padding: 0.6rem; border-radius: var(--radius-sm); }

/* ---- cookie banner ------------------------------------------------------ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-2) var(--space-3);
  box-shadow: 0 -10px 30px -15px rgba(43, 29, 36, 0.25);
  z-index: 100;
}
#cookie-banner p { margin: 0; font-size: 0.92rem; }
#cookie-banner button {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--cream-2);
  font-weight: 600;
  padding: 0.5rem 1.1rem;
}
#cookie-banner button:first-of-type { background: var(--clay); color: var(--white); border-color: var(--clay); }

/* ---- impersonation banner ---------------------------------------------- */
.impersonate {
  background: #FBE9E7;
  border: 1px solid #F2C4BC;
  border-radius: var(--radius-sm);
  padding: var(--space-2) var(--space-3);
  margin: var(--space-2) auto;
  max-width: 1120px;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.impersonate form { margin: 0; }

/* ---- accessibility ------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--blush-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  .site-nav { gap: var(--space-2); }
  .nav-links { gap: var(--space-2); }
  .hero { padding-top: var(--space-4); }
  .section { padding: var(--space-4) 0; }
}