/* ==========================================================================
   Sonalikaa — design system
   ========================================================================== */
:root {
  --ivory: #f8f3ea;
  --paper: #f1e8da;
  --sand: #e6d8c3;
  --ink: #221716;
  --ink-2: #5b4a45;
  --ink-3: #8a7a72;
  --maroon: #5e0f1d;
  --maroon-2: #7a1a2b;
  --sindoor: #b3202a;
  --gold: #b08a4e;
  --gold-2: #d8bc87;
  --line: rgba(34, 23, 22, .12);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, system-ui, sans-serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --deva: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;
  --wrap: 1320px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --arch: 50% 50% 0 0 / 30% 30% 0 0;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font: 400 16px/1.65 var(--sans); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--maroon); color: var(--ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--maroon-2); }
.display { font-size: clamp(2.8rem, 6.4vw, 6rem); }
.h2 { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font: 500 .74rem/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold);
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--ink-2); max-width: 36em; }
.script { font-family: var(--script); font-weight: 400; }
.deva { font-family: var(--deva); }

.section { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); flex-wrap: wrap; }
.section-head .lead { margin: .9rem 0 0; }
.center { text-align: center; }
.crumbs { display: flex; gap: .6rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; }
.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--maroon); --fg: var(--ivory);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.02rem 1.9rem; background: var(--bg); color: var(--fg); border: 1px solid var(--bg);
  font: 500 .78rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; transition: color .45s var(--ease), border-color .45s var(--ease);
}
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: none; }
.btn:hover { border-color: var(--ink); }
.btn svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: var(--ink); }
.btn--ghost::after { background: var(--ink); }
.btn--ghost:hover { color: var(--ivory); }
.btn--gold { --bg: var(--gold-2); --fg: var(--ink); }
.btn--gold::after { background: var(--ivory); }
.btn--light { --bg: transparent; --fg: var(--ivory); border-color: rgba(248,243,234,.5); }
.btn--light::after { background: var(--ivory); }
.btn--light:hover { color: var(--ink); border-color: var(--ivory); }
.btn--wa { --bg: #1f7a4d; }
.btn--block { width: 100%; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; font: 500 .76rem/1 var(--sans);
  letter-spacing: .2em; text-transform: uppercase; padding-bottom: .45rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.link-arrow:hover { background-size: 35% 1px; }

/* ---------- Announcement + header ---------- */
.announce { background: var(--maroon); color: var(--gold-2); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; overflow: hidden; }
.announce__track { display: flex; gap: 3.5rem; padding: .62rem 0; width: max-content; animation: marquee 38s linear infinite; }
.announce__track span { white-space: nowrap; display: inline-flex; gap: 3.5rem; }
.announce__track span::after { content: '✦'; color: var(--gold); }

.header { position: sticky; top: 0; z-index: 50; background: rgba(248, 243, 234, .9); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -22px rgba(34,23,22,.5); }
.header__inner { height: var(--header-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.nav { display: flex; gap: clamp(1rem, 2.2vw, 2.1rem); }
.nav a { position: relative; font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; padding: .4rem 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--maroon); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.logo { display: grid; justify-items: center; line-height: 1; }
.logo__word { font: 500 clamp(1.45rem, 2.4vw, 1.95rem)/1 var(--serif); letter-spacing: .34em; text-transform: uppercase; margin-right: -.34em; }
.logo__deva { font: 400 .72rem/1 var(--deva); color: var(--gold); letter-spacing: .12em; margin-top: .38rem; }
.header__tools { display: flex; justify-content: flex-end; align-items: center; gap: .35rem; }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: var(--paper); }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.icon-btn .count { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--sindoor); color: #fff; font-size: .62rem; line-height: 17px; text-align: center; font-weight: 500; transform: scale(0); transition: transform .35s var(--ease); }
.icon-btn .count.is-on { transform: scale(1); }
.icon-btn .count.bump { animation: bump .5s var(--ease); }
.menu-btn { display: none; }

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .header__inner { grid-template-columns: auto 1fr auto; }
  .nav { display: none; }
  .menu-btn { display: grid; }
  .logo { justify-items: start; margin-left: .3rem; }
  .header__tools .hide-sm { display: none; }
}

/* Mobile menu */
.mobile-menu { position: fixed; inset: 0; z-index: 90; background: var(--maroon); color: var(--ivory); padding: 5.5rem var(--gutter) 2rem; display: flex; flex-direction: column; gap: .2rem; clip-path: circle(0 at 30px 30px); transition: clip-path .7s var(--ease); visibility: hidden; }
.mobile-menu.is-open { clip-path: circle(150% at 30px 30px); visibility: visible; }
.mobile-menu a { font: 400 2.6rem/1.25 var(--serif); }
.mobile-menu a small { font: .7rem var(--sans); letter-spacing: .2em; color: var(--gold-2); margin-left: .6rem; vertical-align: middle; }
.mobile-menu .close { position: absolute; top: 1.1rem; right: var(--gutter); color: var(--ivory); }
.mobile-menu__foot { margin-top: auto; color: var(--gold-2); font-size: .85rem; }

/* ---------- Product card ---------- */
.grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: clamp(1.8rem, 3vw, 2.6rem) clamp(.8rem, 1.8vw, 1.6rem); }
@media (max-width: 1100px) { .grid { --cols: 3 !important; } }
@media (max-width: 720px) { .grid { --cols: 2 !important; } }

.card { position: relative; }
.card__media { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper); border-radius: 2px; }
.card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), opacity .7s var(--ease); }
.card__img--alt { opacity: 0; transform: scale(1.06); }
.card:hover .card__img--alt { opacity: 1; transform: scale(1); }
.card:hover .card__img:not(.card__img--alt) { transform: scale(1.05); }
.card__tag { position: absolute; top: .8rem; left: .8rem; z-index: 2; background: var(--ivory); color: var(--maroon); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; padding: .38rem .6rem .34rem; }
.card__tag[data-tag='Bridal'], .card__tag[data-tag='Limited'] { background: var(--maroon); color: var(--gold-2); }
.card__wish { position: absolute; top: .55rem; right: .55rem; z-index: 3; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(248,243,234,.85); transition: transform .3s var(--ease), background .3s; }
.card__wish:hover { transform: scale(1.1); }
.card__wish svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.5; transition: fill .3s, stroke .3s; }
.card__wish.is-on svg, .wish-toggle.is-on svg { fill: var(--sindoor); stroke: var(--sindoor); }
.card__add { position: absolute; left: .7rem; right: .7rem; bottom: .7rem; z-index: 3; padding: .9rem; background: var(--ivory); color: var(--ink); font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; transform: translateY(calc(100% + 1rem)); transition: transform .5s var(--ease), background .3s, color .3s; }
.card:hover .card__add, .card:focus-within .card__add { transform: none; }
.card__add:hover { background: var(--maroon); color: var(--ivory); }
@media (hover: none) { .card__add { display: none; } }
.card__body { padding-top: 1rem; }
.card__meta { margin: 0 0 .3rem; font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-3); }
.card__title { font: 500 clamp(1.1rem, 1.5vw, 1.32rem)/1.2 var(--serif); }
.card__title a:hover { color: var(--maroon-2); }
.card__price { margin: .45rem 0 0; display: flex; gap: .55rem; align-items: baseline; flex-wrap: wrap; font-size: .95rem; }
.card__price s { color: var(--ink-3); font-size: .82rem; }
.off { color: var(--sindoor); font-size: .74rem; letter-spacing: .05em; }
.on-request { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--maroon-2); }
.card__swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .45rem; vertical-align: 1px; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Drawer (bag / wishlist) ---------- */
.scrim { position: fixed; inset: 0; z-index: 80; background: rgba(34, 23, 22, .45); opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; }
.scrim.is-on { opacity: 1; visibility: visible; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 85; width: min(440px, 100%); background: var(--ivory); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s; }
.drawer.is-open { transform: none; visibility: visible; box-shadow: -30px 0 60px -30px rgba(0,0,0,.35); }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1.3rem 1.6rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.7rem; }
.drawer__body { flex: 1; overflow-y: auto; padding: .6rem 1.6rem; }
.drawer__foot { padding: 1.3rem 1.6rem 1.6rem; border-top: 1px solid var(--line); background: var(--paper); display: grid; gap: .8rem; }
.drawer__row { display: flex; justify-content: space-between; font-size: .95rem; }
.drawer__row strong { font: 500 1.4rem/1 var(--serif); }
.drawer__note { font-size: .76rem; color: var(--ink-3); margin: 0; }
.line-item { display: grid; grid-template-columns: 82px 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); animation: fadeUp .5s var(--ease) both; }
.line-item img { width: 82px; height: 110px; object-fit: cover; }
.line-item h4 { font-size: 1.12rem; line-height: 1.2; }
.line-item p { margin: .2rem 0 .6rem; font-size: .72rem; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; font-size: 1rem; }
.qty span { min-width: 26px; text-align: center; font-size: .85rem; }
.line-item__side { display: flex; flex-direction: column; justify-content: space-between; align-items: end; font-size: .92rem; }
.line-item__side button { font-size: .68rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid; }
.empty { text-align: center; padding: 3.5rem 1rem; color: var(--ink-2); }
.empty svg { width: 64px; height: 64px; stroke: var(--gold); fill: none; stroke-width: 1; margin: 0 auto 1rem; }
.empty h4 { font-size: 1.6rem; margin-bottom: .4rem; }

/* ---------- Search overlay ---------- */
.search { position: fixed; inset: 0 0 auto; z-index: 88; background: var(--ivory); padding: 1.5rem 0 2.5rem; transform: translateY(-105%); visibility: hidden; transition: transform .6s var(--ease), visibility .6s; box-shadow: 0 30px 60px -30px rgba(0,0,0,.3); max-height: 92vh; overflow-y: auto; }
.search.is-open { transform: none; visibility: visible; }
.search__bar { display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--ink); padding-bottom: .6rem; }
.search__bar svg { width: 26px; height: 26px; stroke: var(--ink); fill: none; stroke-width: 1.3; flex: none; }
.search__bar input { flex: 1; border: 0; background: transparent; font: 400 clamp(1.6rem, 4vw, 2.8rem)/1.2 var(--serif); outline: none; min-width: 0; }
.search__hints { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.1rem 0 1.6rem; }
.search__results { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem; }
.search__results .mini img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.search__results .mini h4 { font-size: 1rem; margin-top: .5rem; line-height: 1.2; }
.search__results .mini p { margin: .2rem 0 0; font-size: .82rem; color: var(--ink-2); }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .95rem; border: 1px solid var(--line); border-radius: 99px; font-size: .78rem; letter-spacing: .04em; background: transparent; transition: background .3s, color .3s, border-color .3s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(248,243,234,.72); padding: clamp(4rem, 8vw, 6.5rem) 0 2rem; position: relative; overflow: hidden; }
.footer a:hover { color: var(--gold-2); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; padding-bottom: 3.5rem; border-bottom: 1px solid rgba(248,243,234,.12); }
.footer__top h2 { color: var(--ivory); font-size: clamp(2rem, 4vw, 3.3rem); }
.footer__top h2 em { color: var(--gold-2); }
.newsletter { display: flex; border-bottom: 1px solid rgba(248,243,234,.4); margin-top: 1.4rem; }
.newsletter input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 1rem 0; color: var(--ivory); outline: none; font-size: 1rem; }
.newsletter input::placeholder { color: rgba(248,243,234,.45); }
.newsletter button { color: var(--gold-2); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; padding: 3.2rem 0; }
.footer__cols h4 { font: 500 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1.2rem; }
.footer__cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer__giant { font: 500 clamp(4rem, 17vw, 16rem)/.8 var(--serif); letter-spacing: .06em; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px rgba(216,188,135,.28); text-align: center; white-space: nowrap; margin: 1rem 0 2rem; user-select: none; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: rgba(248,243,234,.45); }
.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(248,243,234,.22); border-radius: 50%; display: grid; place-items: center; transition: background .3s, border-color .3s; }
.socials a:hover { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr; } .footer__cols { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Toast + floating WhatsApp ---------- */
.toast { position: fixed; left: 50%; bottom: 1.6rem; z-index: 95; transform: translate(-50%, 150%); opacity: 0; visibility: hidden; background: var(--ink); color: var(--ivory); padding: .95rem 1.3rem; display: flex; align-items: center; gap: .9rem; font-size: .88rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); transition: transform .5s var(--ease), opacity .4s, visibility .5s; max-width: calc(100% - 2rem); }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast img { width: 38px; height: 50px; object-fit: cover; }
.toast button { color: var(--gold-2); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; margin-left: .6rem; white-space: nowrap; }
.wa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 70; width: 58px; height: 58px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37,211,102,.7); transition: transform .35s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-6deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ping 2.4s var(--ease) infinite; }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes bump { 40% { transform: scale(1.45); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
