/* Traditional look for the whole shop: maroon and turmeric-gold on handloom ivory,
   temple arches, zari borders, a mango-leaf toran and lotus ornaments.
   Loaded after shop.css (overrides it) and before states.css (states re-colour on top). */

:root {
  --bg: #FBF3E4;
  --surface: #FFFAF0;
  --tile: #F3E3C6;
  --ink: #34100C;
  --muted: #8A5E48;
  --line: #E9D3AC;
  --display: "Rozha One", Georgia, serif;
  --label: "Marcellus", Georgia, serif;
  --sans: "Mukta", system-ui, sans-serif;
  --gold: #C8962E;
  --gold-soft: #E7C77A;
  --gold-deep: #9C6A12;
  --arch: 50% 50% 0 0 / 26% 26% 0 0;

  /* Zari temple border: gold gopuram triangles with a dot above each. */
  --temple: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18'%3E%3Cpath d='M0 18L6 8L12 18ZM12 18L18 8L24 18Z' fill='%23C8962E'/%3E%3Ccircle cx='6' cy='4.5' r='1.6' fill='%23E7C77A'/%3E%3Ccircle cx='18' cy='4.5' r='1.6' fill='%23E7C77A'/%3E%3Crect y='16.5' width='24' height='1.5' fill='%23E7C77A'/%3E%3C/svg%3E");
  /* Toran: mango leaves and a marigold on a gold thread. */
  --toran: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='58'%3E%3Cpath d='M0 4Q32 16 64 4' fill='none' stroke='%23E7C77A' stroke-width='1.6'/%3E%3Cpath d='M15 9q-8 16 0 34q8-18 0-34z' fill='%232F6B3A'/%3E%3Cpath d='M15 11v30' stroke='%23A9CF8B' stroke-width='.8'/%3E%3Cpath d='M49 9q-8 16 0 34q8-18 0-34z' fill='%232F6B3A'/%3E%3Cpath d='M49 11v30' stroke='%23A9CF8B' stroke-width='.8'/%3E%3Cpath d='M32 10v12' stroke='%23E7C77A' stroke-width='1.2'/%3E%3Ccircle cx='32' cy='29' r='8.5' fill='%23E8891C'/%3E%3Ccircle cx='32' cy='29' r='5.5' fill='%23F4AE3D'/%3E%3Ccircle cx='32' cy='29' r='2.2' fill='%23B5541A'/%3E%3C/svg%3E");
  /* A kolam line: rice-flour loops around dots. */
  --kolam-line: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='28'%3E%3Cg fill='none' stroke='%23C8962E' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M0 14Q12 -2 24 14T48 14'/%3E%3Cpath d='M0 14Q12 30 24 14T48 14'/%3E%3C/g%3E%3Cg fill='%23C8962E'%3E%3Ccircle cx='12' cy='14' r='2'/%3E%3Ccircle cx='36' cy='14' r='2'/%3E%3C/g%3E%3C/svg%3E");
}

body { font-family: var(--sans); letter-spacing: 0; color: var(--ink); background: var(--bg); }
::selection { background: var(--primary); color: #FFF6E6; }

/* ---------- Type ---------- */
.display { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1; }
.h2 { font-family: var(--display); font-weight: 400; letter-spacing: 0; line-height: 1.12; color: var(--ink); }
.h3 { font-family: var(--display); font-weight: 400; }
.display em, .h2 em, .h3 em { font-style: normal; color: var(--primary); }
.eyebrow { font-family: var(--label); font-weight: 400; letter-spacing: .22em; font-size: 12px; color: var(--gold-deep); }
.lede { color: var(--muted); font-size: 17px; }
.link-cta { font-family: var(--label); font-weight: 400; color: var(--primary); letter-spacing: .16em; }

/* ---------- Buttons: maroon with a zari edge ---------- */
.btn {
  font-family: var(--label); font-weight: 400; letter-spacing: .16em; border-radius: 2px; min-height: 50px; padding: 0 26px;
}
.btn.dark {
  background: var(--primary); border-color: var(--primary); color: #FFF6E6;
  box-shadow: inset 0 0 0 3px var(--primary), inset 0 0 0 4px var(--gold-soft);
}
.btn.dark:hover { opacity: 1; background: color-mix(in srgb, var(--primary) 88%, #000); }
.btn.line { color: var(--primary); border-color: var(--primary); }
.btn.line:hover { background: var(--primary); color: #FFF6E6; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #2A0C08; box-shadow: inset 0 0 0 3px var(--gold), inset 0 0 0 4px #FFF1C9; }
.btn.ghost-light { background: rgba(0, 0, 0, .15); border-color: rgba(255, 246, 230, .8); color: #FFF6E6; backdrop-filter: blur(4px); }
.btn.ghost-light:hover { background: #FFF6E6; color: var(--primary); opacity: 1; }
.center-cta { text-align: center; margin-top: 36px; }

/* ---------- Ornaments ---------- */
.orn-ico { width: 44px; height: 30px; display: block; }
.orn { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin-bottom: 14px; }
.orn::before, .orn::after { content: ""; width: 56px; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.orn::after { transform: scaleX(-1); }
.orn-head { text-align: center; margin-bottom: 36px; }
.orn-head .h2 { max-width: 20ch; margin: 0 auto; }
.temple-border { height: 18px; background: var(--temple) left bottom / 24px 18px repeat-x, var(--primary); }
.kolam-rule { height: 28px; margin: 8px 20px 0; background: var(--kolam-line) center / 48px 28px repeat-x; opacity: .7; }

/* ---------- Announcement + header ---------- */
.topline { background: var(--primary); color: var(--gold-soft); font-family: var(--label); letter-spacing: .16em; font-size: 11.5px; }
.hdr { background: color-mix(in srgb, var(--bg) 94%, transparent); }
.hdr::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 4px; pointer-events: none;
  background: linear-gradient(var(--gold) 0 1px, transparent 1px 3px, var(--gold) 3px 4px);
  opacity: 0; transition: opacity .4s;
}
.hdr.scrolled { border-bottom-color: transparent; }
.hdr.scrolled::after { opacity: .8; }
body.over-hero .hdr::after { opacity: 0; }
.logo { font-family: var(--display); font-weight: 400; letter-spacing: .06em; text-transform: none; font-size: 24px; color: var(--primary); line-height: 1; display: inline-flex; flex-direction: column; overflow: visible; }
body.over-hero .logo { color: #FFF6E6; }
.logo-sub { font-family: "Noto Serif Tamil", serif; font-size: 10px; letter-spacing: .12em; color: var(--gold-deep); margin-top: 3px; font-weight: 700; }
body.over-hero .logo-sub { color: var(--gold-soft); }
.hdr-nav a { font-family: var(--label); letter-spacing: .16em !important; font-size: 12px !important; }
.hdr-label { font-family: var(--label); letter-spacing: .16em; }
.bag-count { background: var(--primary); }
.popover { border-top: 3px solid var(--gold); }

/* ---------- Hero ---------- */
.hero { background: #3A0F0B; color: #FFF6E6; }
.hero::after { background: linear-gradient(180deg, rgba(52, 12, 8, .55) 0%, rgba(52, 12, 8, 0) 30%, rgba(52, 12, 8, .1) 50%, rgba(52, 12, 8, .85) 100%), linear-gradient(90deg, rgba(52, 12, 8, .45), transparent 60%); }
.toran { position: absolute; z-index: 3; left: 0; right: 0; top: var(--hdr-h); height: 58px; background: var(--toran) center top / 64px 58px repeat-x; transform-origin: top; animation: toranIn 1.4s var(--ease) both .3s; pointer-events: none; }
@keyframes toranIn { from { opacity: 0; transform: translateY(-20px); } }
.hero-native { font-family: "Noto Serif Tamil", serif; font-weight: 700; color: var(--gold-soft); font-size: 22px; margin: 0 0 6px; letter-spacing: .04em; }
.hero-copy .eyebrow { color: var(--gold-soft); }
.hero-copy .display { font-size: clamp(52px, 12vw, 132px); text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-copy .display em { color: var(--gold-soft); }
.hero-ctas { gap: 12px; flex-wrap: wrap; }

/* ---------- Marquee ---------- */
.marquee { background: var(--ink); border: 0; }
.marquee span { color: var(--gold-soft); font-family: var(--label); letter-spacing: .18em; font-size: 12px; }
.marquee span::after { content: "❁"; color: var(--gold); font-size: 13px; }

/* ---------- Statement ---------- */
.statement { padding: 88px 24px 72px; }
.statement .h2 { max-width: 20ch; }
.statement .lede { margin: 22px auto 0; max-width: 52ch; }

/* ---------- Category tiles: temple arches ---------- */
.cats { gap: 16px; padding: 0 20px; }
.cat { background: none; aspect-ratio: auto; color: var(--ink); overflow: visible; }
.cat::after { display: none; }
.cat-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--arch); background: var(--tile); }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.cat-media::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(231, 199, 122, .9); border-radius: var(--arch); pointer-events: none; }
.cat-label { position: static; display: block; text-align: center; padding: 16px 8px 0; }
.cat-label .eyebrow { display: block; margin: 0 0 4px; }
.cat-label .h3 { font-size: 26px; color: var(--primary); }

/* ---------- Rails ---------- */
.rail-head .eyebrow { color: var(--gold-deep); }
.rail-arrows button { border-color: var(--gold); color: var(--primary); border-radius: 50%; }
.rail-arrows button:hover { background: var(--primary); color: #FFF6E6; border-color: var(--primary); }

/* ---------- Product cards: arch-topped frames with a zari line ---------- */
.pc-media { border-radius: var(--arch); }
.pc-media::before { content: ""; position: absolute; inset: 7px; z-index: 2; border: 1px solid rgba(231, 199, 122, .95); border-radius: var(--arch); pointer-events: none; }
.pc-tag { left: 50%; top: auto; bottom: 12px; transform: translateX(-50%); background: var(--primary); color: #FFF6E6; font-family: var(--label); letter-spacing: .14em; border-radius: 2px; white-space: nowrap; }
.pc-wish { top: auto; bottom: 6px; right: 6px; background: rgba(255, 250, 240, .9); border-radius: 50%; width: 36px; height: 36px; }
.pc-wish[aria-pressed="true"] svg { fill: var(--primary); color: var(--primary); }
.pc-quick { bottom: 52px; border-radius: 2px; border-top: 2px solid var(--gold); }
.pc-quick button:hover { background: var(--primary); border-color: var(--primary); }
.pc-info { font-size: 15px; padding-top: 14px; }
.pc-name { font-weight: 500; line-height: 1.3; }
.pc-price { color: var(--primary); font-weight: 600; }
.pc-brand { font-family: var(--label); letter-spacing: .14em; color: var(--gold-deep); }
.price { color: var(--primary); }
.off { color: var(--accent); }

/* ---------- Editorial ---------- */
.editorial { background: var(--primary); color: #FFF6E6; position: relative; }
.editorial-copy { background: var(--temple) left top / 24px 18px repeat-x, var(--primary); padding-top: 72px; }
.editorial-copy .h2, .editorial-copy .h2 em { color: #FFF6E6; }
.editorial-copy .h2 em { color: var(--gold-soft); }
.editorial-copy .eyebrow { color: var(--gold-soft); }
.editorial-copy .lede { color: rgba(255, 246, 230, .8); }
.editorial-copy .orn { justify-content: flex-start; color: var(--gold-soft); }
.editorial-copy .orn::before { display: none; }
.editorial-media img { filter: saturate(1.05); }

/* ---------- Services ---------- */
.services { background: var(--line); border-block: 0; }
.service { background: var(--surface); padding: 40px 24px; }
.service .orn-ico { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--primary); }
.service .flame { fill: var(--gold); }
.service h4 { font-family: var(--label); font-weight: 400; letter-spacing: .16em; color: var(--primary); }

/* ---------- Collection pages ---------- */
.coll-head .h2 em { color: var(--primary); }
.filterbar { border-bottom-color: var(--line); }
.ftab { font-family: var(--label); letter-spacing: .14em; }
.ftab[aria-current="true"] { color: var(--primary); }
.ftab[aria-current="true"]::after { background: var(--gold) !important; height: 2px !important; }

/* ---------- Product page ---------- */
.gallery figure { background: var(--tile); }
.pinfo h1 { font-family: var(--display); font-weight: 400; letter-spacing: 0; color: var(--ink); }
.pinfo .pprice { color: var(--primary); }
.size { border-radius: 2px; font-family: var(--sans); }
.size[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #FFF6E6; }
.acc summary { font-family: var(--label); letter-spacing: .14em; }
.perks li::before { color: var(--gold); }
.crumbs a { color: var(--gold-deep); }

/* ---------- Menu, search, bag ---------- */
.menu-ov { background: var(--bg) var(--kolam-line) left bottom / 48px 28px repeat-x; }
.menu-links .big { font-family: var(--display); font-weight: 400; color: var(--ink); }
.menu-links .big:hover { color: var(--primary); }
.menu-links .big sup { color: var(--gold-deep); font-family: var(--sans); }
.menu-links .small-h { font-family: var(--label); color: var(--gold-deep); }
.bag-head { border-bottom: 0; background: var(--temple) left bottom / 24px 18px repeat-x, var(--primary); color: #FFF6E6; padding-bottom: 22px; }
.bag-title { font-family: var(--display); font-weight: 400; letter-spacing: .02em; text-transform: none; font-size: 22px; }
.bag-head .hdr-btn { color: #FFF6E6; }
.ship-meter .bar i { background: var(--gold); }
.co h1 { font-family: var(--display); font-weight: 400; }
.co-sum { border-top: 3px solid var(--gold); }
.thanks .h2 em { color: var(--primary); }

/* ---------- Footer: maroon with a temple border and the Tamil name as a watermark ---------- */
.ftr { background: var(--temple) left top / 24px 18px repeat-x, #3A0F0B; color: #EBD9C0; padding-top: 80px; }
.ftr-brand { margin-bottom: 40px; }
.ftr-logo { font-family: var(--display); font-size: 34px; color: var(--gold-soft); }
.ftr-brand p { margin: 6px 0 0; color: rgba(235, 217, 192, .7); max-width: 34ch; }
.ftr-news .h3 { color: #FFF6E6; }
.ftr-news .eyebrow { color: var(--gold) !important; }
.ftr-news form { border-bottom-color: var(--gold); }
.ftr-news button { color: var(--gold-soft); font-family: var(--label); }
.ftr-cols h5 { font-family: var(--label); color: var(--gold); font-weight: 400; letter-spacing: .18em; }
.ftr-cols a:hover { color: var(--gold-soft); }
.ftr-mark { font-family: "Noto Serif Tamil", serif; font-weight: 700; font-size: 15vw; line-height: 1.1; color: rgba(231, 199, 122, .1); letter-spacing: 0; margin: 0 -1vw -3vw; }
.ftr-bottom { border-top-color: rgba(231, 199, 122, .2); color: rgba(235, 217, 192, .55); }

.info .h2 em { color: var(--primary); }
.none .h3 { color: var(--primary); }

/* ---------- Larger screens ---------- */
@media (min-width: 640px) {
  .cats { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .cat-label .h3 { font-size: 28px; }
}
@media (min-width: 960px) {
  .logo { font-size: 28px; margin-left: 18px; }
  .hero-copy { grid-template-columns: 1fr auto; }
  .hero-copy .hero-native { grid-column: 1 / -1; margin: 0; font-size: 26px; }
  .hero-ctas { flex-direction: row; align-items: center; margin: 0 0 22px; gap: 14px; }
  .statement { padding: 140px 48px 110px; }
  .cats { padding: 0 48px; gap: 28px; }
  .cat { aspect-ratio: auto; }
  .cat-label { left: auto; right: auto; bottom: auto; }
  .cat-label .h3 { font-size: 34px; }
  .kolam-rule { margin: 24px 48px 0; }
  .editorial-copy { padding-top: 96px; }
  .ftr-top { grid-template-columns: 1fr 1.1fr 2fr; }
  .ftr-brand { margin: 0; }
}
@media (min-width: 960px) and (max-width: 1199px) {
  .logo { font-size: 24px; }
}

/* State tiles share the temple-arch shape. */
.st-tile { border-radius: var(--arch); }
.st-tile::before { content: ""; position: absolute; inset: 7px; z-index: 2; border: 1px solid color-mix(in srgb, var(--r-gold) 70%, transparent); border-radius: var(--arch); pointer-events: none; }
