/* ============================================================================
   AartiPooja.in — design system
   Hand-authored, zero-dependency CSS (replaces the Tailwind CDN).
   ========================================================================== */

:root {
  /* palette */
  --gold: #d4af37;
  --gold-dark: #b59410;
  --gold-soft: #f3e9c6;
  --cream: #fdfbf7;
  --cream-2: #f7f1e6;
  --maroon: #7b1b1b;
  --maroon-deep: #5c1414;
  --ink: #3d2020;
  --muted: #8a7a72;
  --line: #ece3d6;
  --white: #ffffff;
  --danger: #c0392b;
  --success: #2e7d32;

  /* type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* structure */
  --maxw: 1200px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(70, 30, 20, .06);
  --shadow: 0 10px 30px -12px rgba(70, 30, 20, .18);
  --shadow-lg: 0 30px 60px -25px rgba(70, 30, 20, .35);
  --ring: 0 0 0 3px rgba(212, 175, 55, .45);
  --header-h: 76px;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; color: var(--maroon); }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

/* --------------------------------------------------------------- helpers */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.section { padding-block: clamp(48px, 8vw, 96px); }
.eyebrow { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--maroon); }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--maroon); color: #fff; padding: 10px 18px; border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* --------------------------------------------------------------- buttons */
.btn {
  --btn-bg: var(--maroon); --btn-fg: #fff; --btn-bg-hover: var(--maroon-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: .85rem 1.6rem; border-radius: var(--radius); font-weight: 600; font-size: .95rem;
  transition: background .2s ease, transform .12s ease, box-shadow .2s ease;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:active { transform: translateY(1px); }
.btn--gold { --btn-bg: var(--gold); --btn-fg: var(--maroon); --btn-bg-hover: #e6c85a; font-weight: 700; }
.btn--outline {
  --btn-bg: transparent; --btn-fg: var(--maroon); background: transparent;
  border: 1.5px solid var(--maroon);
}
.btn--outline:hover { background: var(--maroon); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .6rem 1.1rem; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: .35em .8em; border-radius: 999px; text-transform: uppercase;
}
.badge--gold { background: var(--gold); color: var(--maroon); }
.badge--soft { background: var(--gold-soft); color: var(--maroon); }
.badge--maroon { background: var(--maroon); color: #fff; }

/* ------------------------------------------------------ announcement bar */
.announce {
  background: var(--maroon); color: var(--gold); text-align: center;
  font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 500;
  padding: .55rem 1rem;
}

/* ---------------------------------------------------------------- header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo { height: 46px; width: 46px; border-radius: 50%; border: 1px solid var(--gold); object-fit: contain; background: #fff; }
.brand__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--maroon); line-height: 1; }
.brand__name span { color: var(--gold-dark); }
.brand__tag { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-size: .9rem; font-weight: 500; position: relative; padding: .25rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold-dark); transition: width .22s ease;
}
.nav a:hover::after { width: 100%; }
.header__actions { display: flex; align-items: center; gap: .5rem; }

/* cart button */
.cart-btn {
  position: relative; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--cream-2); padding: .6rem .9rem; border-radius: var(--radius); color: var(--maroon);
  transition: background .2s ease;
}
.cart-btn:hover { background: var(--gold-soft); }
.cart-btn svg { width: 20px; height: 20px; color: var(--gold-dark); }
.cart-btn__count {
  min-width: 22px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--maroon); color: #fff; font-size: .72rem; font-weight: 700; border-radius: 999px;
}
.menu-toggle { display: none; padding: .55rem; border-radius: 10px; color: var(--maroon); }
.menu-toggle svg { width: 26px; height: 26px; }

/* mobile nav panel */
.mobile-nav {
  display: none; flex-direction: column; gap: .25rem;
  padding: .5rem clamp(16px, 4vw, 32px) 1.25rem;
  border-top: 1px solid var(--line); background: rgba(255,255,255,.97);
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: .8rem .4rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-nav a:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; background: linear-gradient(180deg, var(--cream-2), var(--cream)); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% 40% auto -10%; height: 480px;
  background: radial-gradient(closest-side, rgba(212,175,55,.18), transparent);
  pointer-events: none;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.hero__lead { font-size: 1.1rem; color: #6b5750; max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .5rem; }
.hero__stack > * + * { margin-top: 1.4rem; }
.hero__card {
  position: relative; background: #fff; border: 1px solid var(--gold); border-radius: var(--radius-xl);
  padding: 2rem; text-align: center; box-shadow: var(--shadow-lg); max-width: 380px; margin-inline: auto;
}
.hero__card img { width: 168px; height: 168px; object-fit: contain; margin: 0 auto 1rem; }
.hero__card h3 { font-size: 1.6rem; }
.hero__card .brand__tag { display: block; margin-top: .35rem; }
.hero__trust { display: flex; justify-content: space-around; gap: 1rem; margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .78rem; color: #6b5750; font-weight: 500; }
.hero__trust span { display: inline-flex; align-items: center; gap: .4rem; }
.hero__trust svg { width: 16px; height: 16px; color: var(--gold-dark); }

/* -------------------------------------------------------------- trust bar */
.trustbar { padding-block: 2rem; background: #fff; border-block: 1px solid var(--line); }
.trustbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.trustbar__item strong { display: block; font-family: var(--serif); font-size: 1.05rem; color: var(--maroon); }
.trustbar__item p { font-size: .82rem; margin-top: .15rem; }

/* --------------------------------------------------------- category head */
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem; border-bottom: 1px solid rgba(212,175,55,.5); padding-bottom: 1.25rem; margin-bottom: 2.25rem; }
.cat-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.35rem); margin-top: .35rem; }
.cat-head__note { color: var(--muted); font-size: .9rem; max-width: 46ch; }

/* -------------------------------------------------------------- products */
.cat { scroll-margin-top: calc(var(--header-h) + 20px); }
.cat + .cat { margin-top: clamp(3rem, 7vw, 5.5rem); }
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--gold); }
.card__media { position: relative; aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__media .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-sm); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
.card__title { font-size: 1.2rem; }
.card__desc { color: var(--muted); font-size: .88rem; margin-top: .35rem; }
.card__spacer { flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; color: var(--maroon); }
.price__strike { font-family: var(--sans); font-size: .85rem; color: var(--muted); text-decoration: line-through; margin-left: .4rem; font-weight: 500; }

/* variant selectors */
.opt { margin-top: 1rem; }
.opt__label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip {
  padding: .35rem .8rem; font-size: .78rem; font-weight: 600; border-radius: 10px;
  border: 1.5px solid var(--line); color: var(--ink); background: #fff; transition: all .15s ease;
}
.chip:hover { border-color: var(--maroon); }
.chip[aria-pressed="true"] { background: var(--maroon); border-color: var(--maroon); color: #fff; }
.addon { display: flex; align-items: flex-start; gap: .55rem; margin-top: .6rem; font-size: .82rem; color: #6b5750; cursor: pointer; }
.addon input { margin-top: .2rem; width: 16px; height: 16px; accent-color: var(--gold-dark); flex: none; }

/* feature (subscription) box */
.box { border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.box--light { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.box--dark { background: linear-gradient(150deg, var(--maroon), #2a1414); color: #fff; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.box--dark h3, .box--dark .price { color: #fff; }
.box__media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 1.4rem; background: var(--cream-2); }
.box--dark .box__media { background: rgba(255,255,255,.08); }
.box__media img { width: 100%; height: 100%; object-fit: cover; }
.box__ribbon { position: absolute; top: 0; right: 0; background: var(--gold); color: var(--maroon); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .4rem 1rem; border-bottom-left-radius: 16px; }
.box__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.feature-list { margin-top: 1.2rem; display: grid; gap: .7rem; font-size: .9rem; }
.feature-list li { display: flex; gap: .6rem; align-items: flex-start; }
.feature-list svg { width: 18px; height: 18px; color: var(--gold-dark); flex: none; margin-top: 2px; }
.box--dark .feature-list { color: rgba(255,255,255,.85); }
.box--dark .feature-list svg { color: var(--gold); }
.box__foot { margin-top: auto; padding-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.box--light .box__foot { border-top: 1px solid var(--line); }
.box--dark .box__foot { border-top: 1px solid rgba(255,255,255,.15); }
.box__note { font-size: .72rem; color: var(--muted); }
.box--dark .box__note { color: var(--gold); }

/* ------------------------------------------------------------ cart drawer */
.drawer { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(40,15,15,.5); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.drawer.open .drawer__overlay { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(430px, 100%);
  background: #fff; box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.drawer.open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.5rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 1.25rem; }
.icon-btn { padding: .5rem; border-radius: 10px; color: var(--muted); transition: color .15s, background .15s; }
.icon-btn:hover { color: var(--maroon); background: var(--cream-2); }
.icon-btn svg { width: 20px; height: 20px; display: block; }
.drawer__items { flex: 1; overflow-y: auto; padding: 1.25rem 1.5rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-empty svg { width: 48px; height: 48px; color: var(--line); margin: 0 auto 1rem; }
.cart-item { display: flex; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-item__img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--cream-2); flex: none; }
.cart-item__main { flex: 1; min-width: 0; }
.cart-item__name { font-size: .9rem; font-weight: 600; color: var(--maroon); }
.cart-item__meta { font-size: .75rem; color: var(--muted); margin-top: .15rem; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; margin-top: .55rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--maroon); transition: background .15s; }
.qty button:hover { background: var(--cream-2); }
.qty span { min-width: 30px; text-align: center; font-size: .85rem; font-weight: 600; }
.cart-item__price { font-family: var(--serif); font-weight: 700; font-size: .95rem; color: var(--maroon); }
.link-danger { color: var(--danger); font-size: .75rem; display: inline-flex; align-items: center; gap: .3rem; }
.link-danger:hover { text-decoration: underline; }
.drawer__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line); background: var(--cream); }
.drawer__totals { display: grid; gap: .35rem; margin-bottom: .5rem; }
.drawer__totals .row { display: flex; justify-content: space-between; font-size: .88rem; color: #6b5750; }
.drawer__totals .row--total { font-size: 1.15rem; font-weight: 700; color: var(--maroon); }
.drawer__totals .row--total span:last-child { font-family: var(--serif); }
.drawer__fineprint { font-size: .72rem; color: var(--muted); margin: .5rem 0 .9rem; }

/* ---------------------------------------------------------------- footer */
.footer { background: var(--maroon); color: #fff; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.footer h4 { color: var(--gold); font-size: 1.05rem; margin-bottom: 1rem; }
.footer p { color: rgba(255,255,255,.7); font-size: .9rem; }
.footer ul { display: grid; gap: .6rem; }
.footer a { color: rgba(255,255,255,.72); font-size: .9rem; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer .brand__name { color: #fff; }
.footer .brand__name span { color: var(--gold); }
.newsletter { display: flex; gap: 0; margin-top: 1rem; }
.newsletter input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: .7rem 1rem; border-radius: 12px 0 0 12px; font-size: .88rem;
}
.newsletter input::placeholder { color: rgba(255,255,255,.55); }
.newsletter input:focus-visible { box-shadow: none; border-color: var(--gold); outline: 1px solid var(--gold); }
.newsletter button { border-radius: 0 12px 12px 0; padding-inline: 1.2rem; }
.footer__pay { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.footer__pay span { font-size: .7rem; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: .3rem .6rem; border-radius: 8px; color: rgba(255,255,255,.8); }
.footer__bar { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); text-align: center; font-size: .78rem; color: rgba(255,255,255,.5); }
.footer__bar a { color: rgba(255,255,255,.6); }

/* ---------------------------------------------------------------- toast */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: grid; gap: .5rem; width: min(92vw, 380px); }
.toast {
  display: flex; align-items: center; gap: .7rem; background: var(--maroon); color: #fff;
  padding: .85rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .88rem;
  animation: toast-in .25s ease;
}
.toast svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.toast--error { background: var(--danger); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ----------------------------------------------------------- legal pages */
.page { max-width: 820px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: .5rem; }
.page .updated { color: var(--muted); font-size: .85rem; margin-bottom: 2.5rem; }
.page h2 { font-size: 1.3rem; margin: 2rem 0 .6rem; }
.page p, .page li { color: #4a3530; font-size: .96rem; margin-bottom: .8rem; }
.page ul { list-style: disc; padding-left: 1.3rem; }
.page a { color: var(--gold-dark); text-decoration: underline; }
.todo { background: var(--gold-soft); color: var(--maroon); padding: .1em .4em; border-radius: 5px; font-weight: 600; font-size: .9em; }
.backlink { display: inline-flex; align-items: center; gap: .4rem; color: var(--maroon); font-weight: 600; margin-bottom: 2rem; }
.backlink svg { width: 16px; height: 16px; }

/* --------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 800px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .trustbar__grid { grid-template-columns: repeat(2, 1fr); gap: 1.4rem 1rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
  .hero__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
