/* ==========================================================================
   NISARGA FASHION (kavi) — base.css
   Design tokens, reset, typography, buttons, shared utilities.
   Palette story: "nisarga" = nature (forest green), "kavi/kaavi" = the
   red-ochre earth pigment of coastal Karnataka temple murals.
   ========================================================================== */

:root {
  /* Brand */
  --kavi:        #B4512A;
  --kavi-deep:   #8C3D1F;
  --kavi-soft:   #E8935F;
  --nisarga:     #243A2E;
  --nisarga-lt:  #35513F;
  --sage:        #8C9E82;
  --cream:       #FAF6EE;
  --sand:        #EFE7D8;
  --sand-deep:   #E3D7C3;
  --ink:         #1A1712;
  --muted:       #6B6355;
  --white:       #FFFFFF;

  /* Type */
  --font-display: "Fraunces", "Georgia", "Times New Roman", serif;
  --font-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Fluid type scale */
  --fs-hero:  clamp(2.5rem, 1.4rem + 4.2vw, 3.9rem);
  --fs-h2:    clamp(2rem, 1.25rem + 3vw, 3.5rem);
  --fs-h3:    clamp(1.25rem, 1.05rem + 0.8vw, 1.6rem);
  --fs-lead:  clamp(1rem, 0.94rem + 0.35vw, 1.18rem);
  --fs-body:  1rem;
  --fs-sm:    0.875rem;
  --fs-xs:    0.75rem;

  /* Space */
  --gap:        clamp(1rem, 0.7rem + 1.2vw, 1.75rem);
  --section-y:  clamp(4rem, 2.5rem + 6vw, 8.5rem);
  --container:  1280px;
  --pad-x:      clamp(1.25rem, 0.6rem + 3vw, 4rem);

  /* Effects */
  --radius:    14px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 10px rgba(26, 23, 18, .06);
  --shadow-md: 0 14px 36px -14px rgba(26, 23, 18, .22);
  --shadow-lg: 0 30px 70px -30px rgba(26, 23, 18, .38);
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
  --header-h:  148px;   /* utility row + search row + category strip */
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Guards against any single wide child creating a sideways scrollbar */
  overflow-x: hidden;
}

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

/* The `hidden` attribute must win over any class that sets `display`.
   Without this, .notice{display:flex}, .owner-gate{display:grid}, .btn and
   even the svg rule above keep elements visible after el.hidden = true. */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2.5px solid var(--kavi);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--nisarga);
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.7;
  max-width: 54ch;
}

/* Small letterspaced label used above every section heading */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--kavi);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: .55;
}

.serif-accent {
  font-style: italic;
  font-family: var(--font-display);
  color: var(--kavi);
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: var(--section-y); position: relative; }
.section--sand { background: var(--sand); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gap);
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.75rem);
}
.section-head > div { max-width: 42rem; }
.section-head h2 { margin-top: .75rem; }

.stack > * + * { margin-top: 1rem; }

/* Screen-reader-only, used for form labels and icon buttons */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--kavi);
  --btn-fg: var(--white);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform .35s var(--ease), background-color .3s var(--ease),
              box-shadow .35s var(--ease), color .3s var(--ease);
}
.btn:hover  { background: var(--kavi-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--nisarga);
  box-shadow: inset 0 0 0 1.5px rgba(36, 58, 46, .28);
}
.btn--ghost:hover {
  --btn-bg: var(--nisarga);
  --btn-fg: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--nisarga);
}

.btn--light {
  --btn-bg: var(--cream);
  --btn-fg: var(--nisarga);
}
.btn--light:hover { background: var(--white); }

.btn--block { width: 100%; }
.btn--sm { padding: .7rem 1.35rem; font-size: var(--fs-xs); }

/* Text link that grows an underline from the left */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--nisarga);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--kavi), var(--kavi));
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .45s var(--ease-out), color .3s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; color: var(--kavi); }
.link-arrow svg { transition: transform .4s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Pills / chips ---------- */
.chip {
  padding: .5rem 1.1rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--sand-deep);
  transition: color .3s var(--ease), background-color .3s var(--ease),
              box-shadow .3s var(--ease), transform .3s var(--ease);
}
.chip:hover { color: var(--nisarga); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--nisarga);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--nisarga);
}

/* ---------- Price ---------- */
.price { font-weight: 700; color: var(--nisarga); }
.price__mrp {
  margin-left: .5rem;
  font-weight: 400;
  font-size: var(--fs-sm);
  color: var(--muted);
  text-decoration: line-through;
}
.price__off {
  margin-left: .5rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--kavi);
}
