/* Thico Silks storefront
   Palette drawn from Thirubhuvanam silk: arakku (lac) red, zari gold, peacock green.
   Signature element: the korvai temple border (.korvai), used for header, footer and section breaks. */
/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/marcellus-latin-400-normal.woff2) format('woff2'); }
/* v1.23.0 – Noto Sans for prices: clear lining digits and a proper ₹ sign */
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/noto-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: 'Noto Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/noto-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+20A0-20AB, U+20AD-20C0; }
@font-face { font-family: 'Mukta Malar'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mukta-malar-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta Malar'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/mukta-malar-tamil-400-normal.woff2) format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Mukta Malar'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/mukta-malar-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta Malar'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/mukta-malar-tamil-600-normal.woff2) format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
@font-face { font-family: 'Mukta Malar'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/mukta-malar-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Mukta Malar'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/mukta-malar-tamil-700-normal.woff2) format('woff2'); unicode-range: U+0B82-0BFA, U+200C-200D, U+25CC; }
:root {
  --lac: #7a1024;
  --lac-deep: #5c0b1a;
  --kumkum: #b3122e;
  --zari: #c49a3a;
  --zari-text: #8a6a1e;
  --zari-soft: #f3e6c4;
  --peacock: #0e5c4d;
  --ink: #2b1a1c;
  --muted: #6e5a5c;
  --line: #eadfd3;
  --silk: #fcf8f3;
  --white: #ffffff;
  --danger: #a4161a;
  --ok: #1d6b3a;
  --radius: 3px;
  --serif: "Marcellus", Georgia, serif;
  --sans: "Mukta Malar", "Segoe UI", system-ui, sans-serif;
  --w: 1240px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lac); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--kumkum); }
:focus-visible { outline: 2px solid var(--zari); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 3.2vw, 2.75rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--lac); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Korvai temple border ---------- */
.korvai {
  height: 16px;
  background:
    linear-gradient(135deg, var(--zari) 25%, transparent 25.5%) 0 0 / 16px 16px repeat-x,
    linear-gradient(225deg, var(--zari) 25%, transparent 25.5%) 0 0 / 16px 16px repeat-x,
    var(--lac);
  border-top: 3px solid var(--lac-deep);
  border-bottom: 2px solid var(--zari);
}
.korvai.thin { height: 10px; background-size: 10px 10px, 10px 10px, auto; border-top-width: 2px; }
.rule-zari { height: 1px; background: linear-gradient(90deg, transparent, var(--zari), transparent); border: 0; margin: 2.5rem 0; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 600 1rem var(--sans); padding: .7em 1.4em; border-radius: var(--radius); border: 1px solid var(--lac); background: var(--lac); color: #fff; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s; }
.btn:hover { background: var(--lac-deep); color: #fff; }
.btn-gold { background: var(--zari); border-color: var(--zari); color: var(--lac-deep); }
.btn-gold:hover { background: #b28a2f; color: var(--lac-deep); }
.btn-line { background: transparent; color: var(--lac); }
.btn-line:hover { background: var(--lac); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .45em .9em; font-size: .9rem; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--lac); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .3em; }
.field { margin-bottom: 1rem; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: .65em .8em; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #d9cbbd; border-radius: var(--radius);
}
input:focus, select:focus, textarea:focus { border-color: var(--zari); outline: 2px solid var(--zari-soft); }
.check { display: flex; gap: .5em; align-items: flex-start; font-weight: 400; }
.check input { margin-top: .35em; accent-color: var(--lac); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.help { font-size: .85rem; color: var(--muted); margin-top: .25em; }
.err { color: var(--danger); font-size: .88rem; }

/* ---------- Alerts ---------- */
.alert { padding: .8em 1em; border-radius: var(--radius); margin-bottom: 1rem; border-left: 4px solid; background: var(--silk); }
.alert-error { border-color: var(--danger); color: #6d0e10; background: #fdf0ef; }
.alert-success { border-color: var(--ok); color: #124a28; background: #eef7f0; }
.alert-info { border-color: var(--zari); color: #5a4512; background: #fbf5e4; }

/* ---------- Header ---------- */
.announce { background: var(--lac-deep); color: var(--zari-soft); font-size: .88rem; text-align: center; padding: .4em 1em; }
.site-header { background: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.head-row { display: flex; align-items: center; gap: 24px; padding: 14px 20px; max-width: var(--w); margin: 0 auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; text-decoration: none; color: var(--lac); line-height: 1; flex-shrink: 0; }
.brand img { display: block; height: 64px; width: auto; max-width: 220px; object-fit: contain; }
.brand .bn { font-family: var(--serif); font-size: 1.85rem; letter-spacing: .04em; }
.brand .bt { font-size: .78rem; color: var(--zari-text); margin-top: 4px; letter-spacing: .02em; }
.mainnav { flex: 1; }
.mainnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; justify-content: center; flex-wrap: wrap; }
.mainnav a { display: block; padding: .5em .75em; color: var(--ink); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a[aria-current=page] { color: var(--lac); border-bottom-color: var(--zari); }
.mainnav .has-sub { position: relative; }
.mainnav .sub { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line); border-top: 2px solid var(--zari); min-width: 230px; padding: 6px 0; flex-direction: column; z-index: 50; }
.mainnav .has-sub:hover .sub, .mainnav .has-sub:focus-within .sub { display: flex; }
.mainnav .sub a { border: 0; padding: .45em 1em; }
.head-tools { display: flex; gap: 6px; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; color: var(--ink); border-radius: 50%; background: none; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--silk); color: var(--lac); }
.icon-btn svg { width: 22px; height: 22px; }
.badge-count { position: absolute; top: 3px; right: 1px; background: var(--kumkum); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
.menu-toggle { display: none; }
.searchbar { display: none; padding: 0 20px 14px; max-width: var(--w); margin: 0 auto; }
.searchbar.open { display: block; }
.searchbar form { display: flex; gap: 8px; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--lac-deep); color: #fff; overflow: hidden; }
.hero-slide { display: none; position: relative; min-height: clamp(360px, 46vw, 560px); }
.hero-slide.active { display: block; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,6,12,.78) 0%, rgba(40,6,12,.35) 55%, rgba(40,6,12,0) 100%); }
.hero-copy { position: relative; z-index: 2; max-width: var(--w); margin: 0 auto; padding: clamp(60px, 9vw, 120px) 20px; }
.hero-copy h1, .hero-copy h2 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); max-width: 17ch; margin-bottom: .35em; }
.hero-copy p { font-size: 1.15rem; max-width: 42ch; color: #f6e9d2; }
.hero-dots { position: absolute; z-index: 3; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 12px; height: 12px; transform: rotate(45deg); border: 1px solid var(--zari); background: transparent; cursor: pointer; padding: 0; }
.hero-dots button[aria-current=true] { background: var(--zari); }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide.active .hero-copy > * { animation: rise .7s ease both; }
  .hero-slide.active .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-slide.active .hero-copy > *:nth-child(3) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 6vw, 84px) 0; }
.section.silk { background: var(--silk); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }
.section-head p { margin: .3em 0 0; color: var(--muted); }

.occasions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.occasion { position: relative; display: block; text-decoration: none; color: #fff; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); }
.occasion img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.occasion:hover img { transform: scale(1.04); }
.occasion span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(40,6,12,.85)); font-family: var(--serif); font-size: 1.3rem; }

/* ---------- Product grid & card ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.pgrid.three { grid-template-columns: repeat(3, 1fr); }
.pcard { position: relative; }
.pcard .ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--silk); border-radius: var(--radius); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.pcard .ph img.alt { position: absolute; inset: 0; opacity: 0; }
.pcard .ph:hover img.alt { opacity: 1; }
.pcard .tag { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--lac); font-size: .78rem; font-weight: 600; padding: .2em .6em; border-radius: 2px; border: 1px solid var(--zari); }
.pcard .tag.sold { color: var(--muted); border-color: var(--line); }
.pcard .wish { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.92); }
.pcard h3 { font-size: 1.08rem; margin: .7em 0 .25em; line-height: 1.3; }
.pcard h3 a { color: var(--ink); text-decoration: none; }
.pcard h3 a:hover { color: var(--lac); }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5em; }
.price .now { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.price .was { text-decoration: line-through; color: var(--muted); font-size: .92rem; }
.price .off { color: var(--peacock); font-size: .85rem; font-weight: 600; }
.swatches { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.swatch-dot { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Heritage band ---------- */
.heritage { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.heritage .year { font-family: var(--serif); font-size: clamp(4rem, 9vw, 7rem); color: var(--lac); line-height: .9; }
.marks { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 18px; }
.marks div { border: 1px solid var(--zari); padding: .5em .9em; color: var(--zari-text); font-weight: 600; font-size: .92rem; border-radius: 2px; }
.epattu-band { background: var(--peacock); color: #eaf3ef; }
.epattu-band .wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.epattu-band h2 { color: #fff; font-family: var(--sans); font-weight: 700; }
.epattu-band ul { margin: 0; padding-left: 1.1em; }
.epattu-band li { margin-bottom: .4em; }

/* ---------- Breadcrumb / page head ---------- */
.page-head { background: var(--silk); padding: 34px 0 26px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: .5em; }
.crumbs a { color: var(--muted); }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }

/* ---------- Shop listing ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 40px; padding: 36px 0 70px; }
.filters h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin: 1.4em 0 .5em; }
.filters h4:first-child { margin-top: 0; }
.filters .opt { display: flex; gap: .5em; align-items: center; font-weight: 400; margin-bottom: .3em; font-size: .95rem; }
.filters .opt input { accent-color: var(--lac); }
.filter-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-swatches label { margin: 0; }
.filter-swatches input { position: absolute; opacity: 0; }
.filter-swatches .sw { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); cursor: pointer; box-shadow: inset 0 0 0 3px #fff; }
.filter-swatches input:checked + .sw { outline: 2px solid var(--lac); outline-offset: 2px; }
.filter-swatches input:focus-visible + .sw { outline: 2px solid var(--zari); outline-offset: 2px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.toolbar select { width: auto; }
.filter-toggle { display: none; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; list-style: none; padding: 0; }
.pager a, .pager span { display: block; padding: .4em .85em; border: 1px solid var(--line); text-decoration: none; border-radius: 2px; }
.pager .active a, .pager .active span { background: var(--lac); color: #fff; border-color: var(--lac); }
.empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Product page ---------- */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 30px 0 60px; }
.gallery-main { aspect-ratio: 4 / 5; background: var(--silk); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-main.zoom img { transform: scale(1.9); }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 74px; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer; border-radius: 2px; overflow: hidden; }
.thumbs button[aria-current=true] { border: 2px solid var(--lac); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp h1 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }
.pdp .price .now { font-size: 1.6rem; }
.pdp .offer-note { color: var(--peacock); font-weight: 600; margin-top: .3em; }
.colour-picker { display: flex; gap: 10px; flex-wrap: wrap; margin: .4em 0 1.2em; }
.colour-picker label { margin: 0; cursor: pointer; }
.colour-picker input { position: absolute; opacity: 0; }
.colour-picker .chip { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); padding: .35em .8em .35em .4em; border-radius: 40px; font-weight: 500; }
.colour-picker .chip i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.colour-picker input:checked + .chip { border-color: var(--lac); box-shadow: 0 0 0 1px var(--lac); }
.colour-picker input:focus-visible + .chip { outline: 2px solid var(--zari); }
.colour-picker input:disabled + .chip { opacity: .45; text-decoration: line-through; }
.qty { display: inline-flex; border: 1px solid #d9cbbd; border-radius: var(--radius); }
.qty button { width: 40px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; color: var(--lac); }
.qty input { width: 54px; text-align: center; border: 0; border-left: 1px solid #d9cbbd; border-right: 1px solid #d9cbbd; border-radius: 0; }
.buy-row { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; margin: 1em 0; }
.stock-note { font-weight: 600; margin: .3em 0; }
.stock-note.low { color: var(--kumkum); }
.stock-note.out { color: var(--muted); }
.specs { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: .5em 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { width: 42%; color: var(--muted); font-weight: 500; }
.pin-check { display: flex; gap: 8px; margin-top: .4em; }
.pin-check input { max-width: 180px; }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 1.4em 0; text-align: center; font-size: .85rem; color: var(--muted); }
.assure div { border: 1px solid var(--line); padding: .8em .4em; border-radius: var(--radius); }
.assure b { display: block; color: var(--lac); font-family: var(--serif); font-weight: 400; font-size: 1rem; }
.reviews { border-top: 1px solid var(--line); padding: 40px 0 60px; }
.review { border-bottom: 1px solid var(--line); padding: 16px 0; }
.stars { color: var(--zari); letter-spacing: 2px; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.star-input input { position: absolute; opacity: 0; }
.star-input label { font-size: 1.7rem; color: #d9cbbd; cursor: pointer; margin: 0; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--zari); }
.star-input input:focus-visible + label { outline: 2px solid var(--zari); }

/* ---------- Cart / checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; padding: 34px 0 70px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.cart-line h3 { font-size: 1.05rem; margin: 0 0 .2em; }
.cart-line .meta { font-size: .9rem; color: var(--muted); }
.cart-line .unavail { color: var(--danger); font-weight: 600; font-size: .9rem; }
.summary { background: var(--silk); border: 1px solid var(--line); border-top: 3px solid var(--zari); padding: 22px; border-radius: var(--radius); position: sticky; top: 100px; }
.summary h3 { margin-bottom: .8em; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; padding: .3em 0; }
.sum-row.disc { color: var(--peacock); }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .5em; padding-top: .7em; font-weight: 700; font-size: 1.2rem; }
.coupon-form { display: flex; gap: 8px; margin: 1em 0; }
.steps { counter-reset: s; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; background: #fff; }
.step > h3 { display: flex; align-items: center; gap: 10px; }
.step > h3::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lac); color: #fff; font-family: var(--sans); font-size: .95rem; font-weight: 700; }
.ship-opt { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); padding: .8em 1em; border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; font-weight: 400; }
.ship-opt:has(input:checked) { border-color: var(--lac); background: #fff9f8; }
.ship-opt input { accent-color: var(--lac); }
.saved-addr { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-bottom: 1em; }
.saved-addr label { border: 1px solid var(--line); padding: .8em; border-radius: var(--radius); font-weight: 400; cursor: pointer; font-size: .92rem; }
.saved-addr label:has(input:checked) { border-color: var(--lac); }
.secure-note { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--muted); margin-top: .8em; }

/* ---------- Account ---------- */
.acct { display: grid; grid-template-columns: 230px 1fr; gap: 40px; padding: 34px 0 70px; }
.acct-nav a { display: block; padding: .55em .9em; text-decoration: none; color: var(--ink); border-left: 3px solid transparent; }
.acct-nav a:hover, .acct-nav a[aria-current=page] { border-left-color: var(--zari); color: var(--lac); background: var(--silk); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .7em .6em; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.table .num { text-align: right; }
.status { display: inline-block; padding: .15em .6em; border-radius: 2px; font-size: .82rem; font-weight: 600; background: var(--silk); border: 1px solid var(--line); }
.status.paid, .status.processing { color: #1f4f8f; border-color: #c7d6ee; background: #f0f5fc; }
.status.shipped { color: #8a5a00; border-color: #ecd9a8; background: #fdf7e6; }
.status.delivered { color: var(--ok); border-color: #bfe0c9; background: #eef7f0; }
.status.cancelled, .status.payment_failed, .status.refunded { color: var(--muted); }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--zari); }
.timeline li { padding: 0 0 14px 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 8px; width: 10px; height: 10px; background: var(--lac); transform: rotate(45deg); }
.auth-box { max-width: 460px; margin: 50px auto 80px; padding: 30px; border: 1px solid var(--line); border-top: 3px solid var(--zari); border-radius: var(--radius); }
.tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { flex: 1; background: none; border: 0; padding: .7em; font: 600 1rem var(--sans); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--lac); border-bottom-color: var(--lac); }
.otp-code { font-size: 1.6rem; letter-spacing: .5em; text-align: center; }

/* ---------- Gallery / news ---------- */
.gal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gal-grid figure { margin: 0; }
.gal-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--radius); }
.gal-grid figcaption { font-size: .9rem; color: var(--muted); margin-top: .4em; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-list article img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: .8em; }
.news-list time { font-size: .85rem; color: var(--zari-text); }

/* ---------- Footer ---------- */
.site-footer { background: var(--lac-deep); color: #ecdcd0; margin-top: 0; }
.site-footer a { color: #f6e9d2; text-decoration: none; }
.site-footer a:hover { color: var(--zari); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 20px 30px; max-width: var(--w); margin: 0 auto; }
.site-footer h4 { color: var(--zari); font-family: var(--serif); font-size: 1.15rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45em; }
.foot-brand .bn { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.foot-bottom { border-top: 1px solid rgba(196,154,58,.35); max-width: var(--w); margin: 0 auto; padding: 16px 20px 26px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; color: #cdb8aa; }
.socials { display: flex; gap: 10px; margin-top: 12px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(196,154,58,.5); border-radius: 50%; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.wa-float { position: fixed; right: 18px; bottom: 18px; text-decoration: none; width: 54px; height: 54px; border-radius: 50%; background: #1f8f4e; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 60; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: .8em 1.2em; border-radius: var(--radius); z-index: 90; display: flex; gap: 14px; align-items: center; max-width: calc(100% - 32px); }
.toast a { color: var(--zari); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pgrid { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .heritage { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .mainnav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .mainnav.open { display: block; }
  .mainnav ul { flex-direction: column; padding: 8px 12px 16px; }
  .mainnav .sub { display: flex; position: static; border: 0; padding-left: 14px; }
  .head-row { gap: 10px; position: relative; }
  .brand { flex: 1; min-width: 0; }
  .brand img { height: 52px; max-width: 170px; }
  .brand .bn { font-size: 1.5rem; }
  .occasions { grid-template-columns: 1fr 1fr; }
  .pgrid, .pgrid.three { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .shop-layout, .cart-layout, .acct, .pdp { grid-template-columns: 1fr; gap: 24px; }
  .filters { display: none; border: 1px solid var(--line); padding: 16px; border-radius: var(--radius); }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .summary { position: static; }
  .epattu-band .wrap { grid-template-columns: 1fr; }
  .gal-grid, .news-list { grid-template-columns: 1fr 1fr; }
  .acct-nav { display: flex; overflow-x: auto; gap: 4px; border-bottom: 1px solid var(--line); }
  .acct-nav a { border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .acct-nav a[aria-current=page] { border-bottom-color: var(--zari); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .gal-grid, .news-list { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line img { width: 76px; }
  .cart-line > :last-child { grid-column: 2; }
  .assure { grid-template-columns: 1fr; }
  .table.stack thead { display: none; }
  .table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: .5em 0; }
  .table.stack td { display: flex; justify-content: space-between; border: 0; padding: .25em 0; }
  .table.stack td::before { content: attr(data-label); color: var(--muted); font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* CI pager */
.pagination { display: flex; gap: 6px; justify-content: center; margin: 40px 0 0; list-style: none; padding: 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: block; padding: .4em .85em; border: 1px solid var(--line); text-decoration: none; border-radius: 2px; color: var(--ink); }
.pagination .active a, .pagination .active span { background: var(--lac); color: #fff; border-color: var(--lac); }
[hidden] { display: none !important; }
body { font-variant-numeric: lining-nums; }

/* ======================================================================
   Heritage pages (About Us, History) – v1.2.0
   Signature: the warp-thread timeline and the zari thread through each stage.
   ====================================================================== */
.heri-hero { background: var(--lac-deep); color: #f3e6c4; position: relative; }
.heri-hero .wrap { padding-top: 34px; padding-bottom: clamp(40px, 6vw, 72px); }
.heri-hero .crumbs, .heri-hero .crumbs a { color: #d9bfa3; }
.heri-hero h1 { color: var(--zari); font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: .02em; margin: 1.6rem 0 .8rem; }
.heri-hero blockquote { margin: 0; }
.heri-hero blockquote p { font-family: var(--serif); color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.12; margin: 0 0 .6em; max-width: 22ch; text-wrap: balance; }
.heri-hero blockquote p::before { content: "\201C"; color: var(--zari); margin-left: -.45em; }
.heri-hero blockquote p::after { content: "\201D"; color: var(--zari); }
.heri-hero blockquote footer { color: #d9bfa3; font-size: 1rem; }
.heri-hero blockquote footer::before { content: ""; display: inline-block; width: 36px; height: 1px; background: var(--zari); vertical-align: middle; margin-right: 12px; }

.heri-sec { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(24px, 3vw, 40px); }
.heri-sec > h2, .heri-band h2, .motifs-sec h2 { margin-bottom: .4em; }
.band-lead { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }

/* Three short notes: columns divided by zari threads, not boxes */
.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: clamp(40px, 5vw, 64px); padding-bottom: 8px; }
.notes > div { padding: 0 28px; border-left: 1px solid var(--zari); }
.notes > div:first-child { padding-left: 0; border-left: 0; }
.notes h2 { font-size: 1.4rem; color: var(--lac); margin-bottom: .35em; }
.notes p { color: var(--muted); margin: 0; max-width: 40ch; }

/* Story with award aside */
.story { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); padding-top: clamp(40px, 5vw, 64px); padding-bottom: clamp(32px, 4vw, 56px); align-items: start; }
.story-text { font-size: 1.06rem; }
.story-text p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 3.6em; line-height: .85; margin: .06em .1em 0 0; color: var(--lac); }
.story-aside { position: sticky; top: 110px; }
.award { background: var(--lac); color: #f6e9d2; padding: 26px 24px 22px; border-bottom: 4px solid var(--zari); margin-bottom: 28px; }
.award-year { display: block; font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--zari); }
.award h2 { color: #fff; font-size: 1.25rem; margin: .5em 0 .4em; }
.award p { margin: 0; font-size: .95rem; }
.aside-h { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-bottom: .6em; }
.certs { list-style: none; margin: 0; padding: 0; }
.certs li { padding: .55em 0; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.certs strong { display: block; color: var(--ink); font-weight: 600; }

/* Band background for sequences */
.heri-band { background: var(--silk); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(48px, 6vw, 80px) 0; margin-top: clamp(24px, 3vw, 40px); }

/* Zari thread through the stages */
.thread { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 24px; position: relative; }
.thread::before { content: ""; position: absolute; left: 20px; right: 20px; top: 20px; height: 2px; background: repeating-linear-gradient(90deg, var(--zari) 0 10px, transparent 10px 14px); }
.thread li { position: relative; }
.thread-bead { position: relative; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lac); color: #fff; font-weight: 700; border: 3px solid var(--silk); box-shadow: 0 0 0 1px var(--zari); margin-bottom: 14px; }
.thread h3 { font-size: 1.2rem; margin-bottom: .3em; }
.thread p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Warp-thread timeline */
.warp { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; }
.warp::before { content: ""; position: absolute; top: 6px; bottom: 6px; left: 190px; width: 2px; background: linear-gradient(var(--zari), var(--zari)) center / 2px 100% no-repeat; transform-origin: top; }
@media (prefers-reduced-motion: no-preference) {
  .warp::before { animation: warp-draw 1.4s cubic-bezier(.4, 0, .2, 1) both; }
}
@keyframes warp-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.warp li { display: grid; grid-template-columns: 170px 40px minmax(0, 1fr); align-items: start; padding-bottom: 34px; }
.warp-year { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--lac); text-align: right; padding-top: 1px; }
.warp-knot { justify-self: center; width: 14px; height: 14px; margin-top: 8px; background: var(--zari); transform: rotate(45deg); box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--zari); position: relative; z-index: 1; }
.warp-body h3 { font-size: 1.25rem; margin: 0 0 .25em; }
.warp-body p { color: var(--muted); margin: 0; max-width: 60ch; }

.story-long { margin: 0 auto; font-size: 1.06rem; }
.story-long h2 { font-size: 1.6rem; color: var(--lac); }

/* Motifs */
.motifs-sec { background: var(--lac-deep); color: #ecdcd0; padding: clamp(52px, 6vw, 84px) 0; margin-top: clamp(24px, 3vw, 40px); }
.motifs-sec h2 { color: #fff; }
.motifs-sec .band-lead { color: #d9bfa3; }
.motifs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 28px; }
.motifs li { border-top: 1px solid rgba(196, 154, 58, .5); padding-top: 18px; }
.motif-svg { width: 52px; height: 52px; color: var(--zari); margin-bottom: 10px; }
.motifs h3 { color: #fff; font-size: 1.25rem; margin-bottom: .2em; }
.motifs p { margin: 0; font-size: .95rem; color: #d9bfa3; }

/* Colour swatches woven as silk */
.swatchrow { list-style: none; margin: 1.5rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.swatchrow li { font-size: .92rem; font-weight: 500; }
.swatch-silk { display: block; aspect-ratio: 3 / 4; margin-bottom: 10px; border-radius: 2px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, var(--a) 0 50%, var(--b) 50% 100%);
  box-shadow: inset 0 -14px 0 var(--zari), inset 0 -17px 0 rgba(0,0,0,.18); }

.heri-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: clamp(32px, 4vw, 56px); padding-top: 32px; padding-bottom: 64px; }
.heri-cta p { margin: 0; max-width: 52ch; font-family: var(--serif); font-size: 1.3rem; }
.heri-cta div { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 1024px) {
  .motifs { grid-template-columns: repeat(3, 1fr); }
  .swatchrow { grid-template-columns: repeat(3, 1fr); }
  .story { grid-template-columns: 1fr; }
  .story-aside { position: static; }
}
@media (max-width: 860px) {
  .notes { grid-template-columns: 1fr; gap: 22px; }
  .notes > div, .notes > div:first-child { padding: 0 0 0 18px; border-left: 2px solid var(--zari); }
  .thread { grid-template-columns: 1fr; gap: 0; }
  .thread::before { left: 20px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--zari) 0 10px, transparent 10px 14px); }
  .thread li { display: grid; grid-template-columns: 58px 1fr; padding-bottom: 22px; }
  .thread-bead { grid-row: span 2; margin: 0; }
  .warp::before { left: 7px; }
  .warp li { grid-template-columns: 16px 1fr; column-gap: 18px; }
  .warp-year { grid-column: 2; grid-row: 1; text-align: left; font-size: 1.3rem; }
  .warp-knot { grid-column: 1; grid-row: 1 / span 2; margin-top: 6px; }
  .warp-body { grid-column: 2; }
}
@media (max-width: 560px) {
  .motifs { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .swatchrow { grid-template-columns: 1fr 1fr; }
}

/* Certification marks (Admin → Certifications) – v1.3.0 */
.certmarks { list-style: none; margin: 0; padding: 0; }
.certmarks a { color: inherit; text-decoration: none; }
.cm-mark { display: grid; place-items: center; background: #fff; }
.cm-mark img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cm-text { font-family: var(--serif); color: var(--lac); text-align: center; line-height: 1.15; padding: 6px; }
.cm-cap { display: block; font-size: .85rem; color: var(--muted); }
.cm-cap strong { display: block; color: var(--ink); font-weight: 600; }
/* home: logo tiles */
.certmarks-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.certmarks-tiles li { text-align: center; }
.certmarks-tiles .cm-mark { height: 92px; border: 1px solid var(--zari); border-radius: 2px; padding: 10px; margin-bottom: 8px; }
/* about aside: logo + caption rows */
.certmarks-list li { border-top: 1px solid var(--line); padding: 10px 0; }
.certmarks-list li > a, .certmarks-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; }
.certmarks-list li > a { grid-column: 1 / -1; }
.certmarks-list .cm-mark { width: 64px; height: 48px; border: 1px solid var(--line); padding: 4px; }
.certmarks-list .cm-text { font-size: .62rem; }
/* footer strip */
.foot-certs { max-width: var(--w); margin: 0 auto; padding: 0 20px 18px; }
.certmarks-strip { display: flex; flex-wrap: wrap; gap: 12px; }
.certmarks-strip .cm-mark { height: 54px; min-width: 92px; padding: 6px 10px; border-radius: 2px; }
.certmarks-strip .cm-text { font-size: .8rem; }
@media (max-width: 560px) { .certmarks-tiles { grid-template-columns: repeat(2, 1fr); } }
.certmarks-tiles .cm-mark img { max-height: 70px; }
.certmarks-list .cm-mark img { max-height: 38px; }
.certmarks-strip .cm-mark img { max-height: 42px; max-width: 110px; }

/* ===== ePattu member portal (v1.4.0) ===== */
.ep-home { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: start; }
.ep-home .lead { font-size: 1.12rem; }
.ep-steps { padding-left: 1.2em; margin: 1.2em 0 1.6em; }
.ep-steps li { margin-bottom: .6em; }
.ep-card { border: 1px solid var(--line); border-top: 3px solid var(--zari); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; background: var(--silk); }
.ep-card h4 { margin: 0 0 .3em; font-family: var(--serif); font-weight: 400; font-size: 1.2rem; color: var(--lac); }
.ep-card p { margin: .3em 0; }
.ep-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 4px; margin: 0 0 18px; }
.ep-form legend { padding: 0 .4em; font-family: var(--serif); color: var(--lac); }
.ep-scheme { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 26px; }
.ep-scheme header { display: flex; justify-content: space-between; gap: 12px; align-items: start; flex-wrap: wrap; }
.ep-scheme h2 { margin: 0; font-size: 1.35rem; }
.ep-scheme h2 + p { margin: .2em 0 0; }
.ep-grid { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.ep-grid li { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 6px; text-align: center; font-size: .82rem; line-height: 1.3; }
.ep-grid .n { display: block; font-size: .75rem; color: var(--muted); }
.ep-grid .m { display: block; font-weight: 600; font-size: .92rem; }
.ep-grid .st { display: block; }
.ep-grid li.paid { background: #eef7f0; border-color: #bfe0c9; color: var(--ok); }
.ep-grid li.due { background: #fdf7e6; border-color: var(--zari); color: #6d4f05; box-shadow: inset 0 0 0 1px var(--zari); }
.ep-grid li.missed { background: #fdf0ef; border-color: #f0c4c2; color: var(--danger); }
.ep-grid li.upcoming { color: var(--muted); }
.ep-pay { background: var(--silk); border-left: 4px solid var(--zari); padding: 12px 16px; margin-bottom: 12px; }
.ep-pay p { margin: 0 0 .6em; }
/* ePattu home page content (v1.8.0) */
.ep-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; }
.ep-titlebar h1 { margin-bottom: 0; }
.ep-titlebar p.ep-h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.2; color: var(--ink); margin: 0; }
.ep-lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.ep-lang button { border: 0; background: transparent; padding: 7px 16px; font: inherit; font-size: .92rem; cursor: pointer; color: var(--ink); min-height: 38px; }
.ep-lang button[aria-pressed="true"] { background: var(--lac); color: #fff; }
.ep-lang button:focus-visible { outline: 2px solid var(--zari); outline-offset: -2px; }
.ep-home--solo { grid-template-columns: 1fr; max-width: 820px; }
.ep-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1.4em; }
.ep-poster { margin: 0; }
.ep-poster img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
.ep-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 40px 0 0; }
.ep-info-box { border: 1px solid var(--line); border-top: 3px solid var(--zari); border-radius: var(--radius); padding: 18px 20px 8px; background: var(--silk); }
.ep-info-box h2, .ep-sub { font-family: var(--serif); font-weight: 400; color: var(--lac); font-size: 1.3rem; margin: 0 0 .6em; }
.ep-info-box ul, .ep-info-box ol { padding-left: 1.2em; margin: 0 0 .8em; }
.ep-info-box li { margin-bottom: .55em; line-height: 1.55; }
.ep-bottom { margin-top: 40px; }
.ep-contact { font-style: normal; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.ep-contact p { margin: .4em 0; }
[lang="ta"] { line-height: 1.7; }
@media (max-width: 860px) { .ep-home { grid-template-columns: 1fr; gap: 26px; } .ep-info, .ep-bottom { margin-top: 28px; } }
@media (max-width: 560px) { .ep-scheme { padding: 14px; } .ep-grid { grid-template-columns: repeat(3, 1fr); } }

/* ePattu member chip in the header (v1.4.2): shows the ePattu login on every page */
.ep-chip { position: relative; margin-right: 4px; }
.ep-chip summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border: 1px solid var(--zari); border-radius: 999px; background: var(--zari-soft); color: var(--lac-deep); cursor: pointer; line-height: 1.1; }
.ep-chip summary::-webkit-details-marker { display: none; }
.ep-chip summary:hover, .ep-chip[open] summary { background: var(--zari); }
.ep-chip summary svg { width: 20px; height: 20px; }
.ep-chip-t { display: flex; flex-direction: column; font-weight: 600; font-size: .9rem; }
.ep-chip-t small { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--zari-text); }
.ep-chip[open] .ep-chip-t small { color: var(--lac-deep); }
.ep-chip-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--zari); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(43, 26, 28, .14); padding: 8px 0; }
.ep-chip-menu p { margin: 0; padding: 6px 16px 10px; border-bottom: 1px solid var(--line); font-size: .9rem; line-height: 1.4; }
.ep-chip-menu a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.ep-chip-menu a:hover { background: var(--silk); color: var(--lac); }
/* gold round icon with a green "logged in" dot (same size as the other header icons); name and code are in the menu */
.ep-chip summary { width: 42px; height: 42px; padding: 0; justify-content: center; } .ep-chip-t { display: none; } .ep-chip { margin-right: 0; }
.ep-chip summary::after { content: ""; position: absolute; right: 1px; bottom: 3px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #fff; }
@media (max-width: 560px) { .ep-chip summary { width: 36px; height: 36px; } .ep-chip-menu { position: fixed; left: 12px; right: 12px; top: auto; min-width: 0; margin-top: 8px; } }
.ep-chip-h { display: block; padding: 8px 16px 2px; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--zari-text); }
.ep-chip-menu .ep-chip-out { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }

/* ---------- v1.5.1: header logo, active links, WhatsApp button, back to top, site credit ---------- */
#main:focus { outline: none; }
.mainnav .sub a[aria-current=page] { color: var(--lac); font-weight: 600; }
.foot-grid a[aria-current=page] { color: var(--zari); text-decoration: underline; text-underline-offset: 4px; }
.ep-chip-menu a[aria-current=page] { color: var(--lac); font-weight: 600; background: var(--silk); }
.wa-float.left { right: auto; left: 18px; }
.wa-float .wa-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: #fff; color: var(--ink); font-size: .85rem; padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.15); opacity: 0; pointer-events: none; transition: opacity .15s; }
.wa-float.left .wa-label { right: auto; left: calc(100% + 10px); }
.wa-float:hover .wa-label, .wa-float:focus-visible .wa-label { opacity: 1; }
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 59; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--zari); background: #fff; color: var(--lac); display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.18); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--lac); color: #fff; border-color: var(--lac); }
.to-top svg { width: 22px; height: 22px; }
.to-top.with-wa { bottom: 84px; right: 22px; }
.to-top.left.with-wa { bottom: 22px; }   /* WhatsApp on the left: back-to-top stays bottom right */
.foot-credit { max-width: var(--w); margin: 0 auto; padding: 0 20px 22px; display: flex; justify-content: center; font-size: .8rem; color: #cdb8aa; }
.foot-credit a, .foot-credit .fc-in { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.foot-credit a:hover strong { color: var(--zari); }
.foot-credit img { height: 26px; width: auto; max-width: 140px; object-fit: contain; }
.foot-credit strong { color: #f3e6c4; font-weight: 600; }
@media (max-width: 560px) {
  .brand img { height: 44px; max-width: 140px; }
  .wa-float { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .wa-float.left { left: 14px; }
  .wa-float .wa-label { display: none; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .to-top.with-wa { bottom: 74px; right: 18px; }
}
@media (max-width: 860px) { .site-footer { padding-bottom: 72px; } } /* keep the last footer line clear of the floating buttons */

/* ---------- Maintenance page (v1.6.0) ---------- */
.mnt-body { min-height: 100vh; display: flex; flex-direction: column; background: var(--silk); }
.mnt { flex: 1; max-width: 620px; margin: 0 auto; padding: 56px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mnt .brand { align-items: center; margin-bottom: 28px; }
.mnt .brand img { height: 80px; }
.mnt-loom { width: 64px; height: 64px; color: var(--zari); margin-bottom: 14px; }
.mnt h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 .5em; }
.mnt p { color: var(--muted); }
.mnt-until { color: var(--ink) !important; }
.mnt-contact a { color: var(--lac); }
.mnt-bar { background: #8a5a00; color: #fff; text-align: center; font-size: .88rem; padding: 6px 12px; }
.mnt-bar a { color: #fff; text-decoration: underline; }

/* ---------- Cookie notice, product enquiry (v1.7.0) ---------- */
.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--zari); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(43,26,28,.18); padding: 14px 18px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; flex: 1 1 320px; font-size: .9rem; }
.cookie-bar div { display: flex; gap: 8px; }
.enquire { display: inline-flex; align-items: center; gap: 8px; }
.enquire svg { width: 18px; height: 18px; fill: currentColor; }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-wa:hover { background: #17723e; border-color: #17723e; color: #fff; }
.enquire-link { margin-top: 10px; font-size: .92rem; }
.enq-form { margin-top: 12px; padding: 14px 16px 6px; border: 1px solid var(--line); border-left: 4px solid #1f8f4e; border-radius: var(--radius); background: #fff; }
.enq-form[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Client demo server bar (v1.8.1, CI_ENVIRONMENT = staging) */
.demo-bar { background: #fff3cd; color: #664d03; text-align: center; font-size: .86rem; padding: 6px 16px; border-bottom: 1px solid #ffe69c; }

/* v1.8.4 – centred logo header (logo row + menu row) and taller home banner */
.head-row { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "left brand tools" "nav nav nav"; align-items: center; gap: 4px 16px; padding: 14px 20px 0; }
.head-left { grid-area: left; display: flex; gap: 6px; align-items: center; justify-self: start; }
.brand { grid-area: brand; align-items: center; text-align: center; justify-self: center; }
.head-tools { grid-area: tools; justify-self: end; }
.mainnav { grid-area: nav; border-top: 1px solid var(--line); margin-top: 8px; }
.mainnav ul { padding: 4px 0; }
.mainnav .sub { text-align: left; }
.hero-slide { min-height: 760px; }
.hero-slide.active { display: flex; align-items: center; }
.hero-copy { width: 100%; }
@media (max-width: 1024px) { .hero-slide { min-height: 620px; } }
@media (max-width: 860px) {
  .head-row { grid-template-areas: "left brand tools"; padding: 10px 14px; gap: 8px; }
  .brand { flex: none; min-width: 0; }
  .mainnav { border-top: 1px solid var(--line); margin-top: 0; }
  .hero-slide { min-height: 520px; }
}
@media (max-width: 560px) { .hero-slide { min-height: 480px; } .head-left, .head-tools { gap: 2px; } }

/* =====================================================================
   HERITAGE THEME (v1.9.0) – approved mockup: saree-motif background,
   gold lace borders, solid white cards over the pattern, real photographs.
   ===================================================================== */
body { background: #fffaf5; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: url(../img/theme/motifs.svg) 0 0 / 250px 250px; opacity: .16; }
body.pat-light::before { opacity: .09; }
body.pat-strong::before { opacity: .26; }
body.pat-off::before { display: none; }
.section.silk { background: transparent; }
.section-head h2 { color: var(--lac); }

/* Lace border (drawn after the client's reference border) */
.lace { height: 48px; background: #fff url(../img/theme/lace.svg) repeat-x 0 0 / 75px 48px; }
.lace-down { transform: scaleY(-1); }
.lace-dark { background-color: var(--lac-deep); }
.korvai { height: 48px; border: 0; background: #fff url(../img/theme/lace.svg) repeat-x 0 0 / 75px 48px; }
.korvai.thin { height: 32px; background-size: 50px 32px; }
.korvai-line { width: 140px; height: 12px; margin: 20px 0; background: repeating-linear-gradient(90deg, var(--zari) 0 8px, transparent 8px 14px) 0 50% / 100% 2px no-repeat, linear-gradient(var(--zari), var(--zari)) 0 0 / 100% 1px no-repeat, linear-gradient(var(--zari), var(--zari)) 0 100% / 100% 1px no-repeat; }
.korvai-line.full { width: 100%; margin: 0; }

/* Header: logo, tagline, Government of Tamil Nadu emblem */
.brand { align-items: center; text-align: center; }
.brand img { height: 84px; max-width: 220px; }
.brand .bt { font-size: .72rem; color: var(--zari-text); letter-spacing: .14em; font-weight: 600; text-transform: uppercase; margin-top: 4px; }
.gov-emblem { display: inline-flex; align-items: center; margin-left: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
.gov-emblem img { height: 60px; width: auto; }

/* Shared pieces */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--zari-text); font-size: .82rem; letter-spacing: .18em; font-weight: 600; text-transform: uppercase; }
.eyebrow.diamonds::before, .eyebrow.diamonds::after { content: ""; width: 7px; height: 7px; background: var(--zari); transform: rotate(45deg); }
.eyebrow.light { color: #e3c27a; }
.sec-title { text-align: center; margin-bottom: 44px; }
.sec-title h2 { color: var(--lac); font-size: clamp(1.9rem, 3vw, 2.75rem); margin: .3em 0 0; }
.sec-lead { max-width: 64ch; margin: 12px auto 0; font-size: 1.08rem; }
.center { text-align: center; margin-top: 32px; }
.card-solid { background: #fff; border: 1px solid #e6d6b8; padding: 24px; }
.photo-card { margin: 0; background: #fff; padding: 10px; box-shadow: 0 2px 12px rgba(60,20,20,.08); }
.photo-card img { width: 100%; object-fit: cover; }
.photo-card figcaption { font-size: .875rem; color: #5a3f2c; padding-top: 8px; }
.photo-card img.contain { object-fit: contain; background: #fbf6ee; }
.quote-card { margin: 0 0 28px; padding: 18px 22px; background: #fff; border: 1px solid #e6d6b8; font-family: var(--serif); font-size: 1.35rem; color: var(--lac-deep); }
.lead-p { font-size: 1.12rem; }
.btn-ghost { background: transparent; border: 1px solid #e3c27a; color: #f3e6c4; }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-cta.center { justify-content: center; }

/* Hero (banners) */
.hero .eyebrow { color: #e3c27a; }
.hero .eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--zari); }
.hero-inner { max-width: 560px; display: flex; flex-direction: column; gap: 16px; }
.hero-inner > * { margin: 0; }
.hero-copy h1, .hero-copy h2 { max-width: none; }
.hero-right .hero-copy { display: flex; justify-content: flex-end; }
.hero-right .hero-slide img { object-position: left center; }
.hero-right .hero-slide::after { background: linear-gradient(270deg, rgba(40,6,12,.9) 0%, rgba(40,6,12,.7) 38%, rgba(40,6,12,.15) 68%, rgba(40,6,12,0) 100%); }

/* Why Thico Silks */
.gi-card { background: #fff; border: 1px solid #e6d6b8; border-top: 3px solid var(--zari); box-shadow: 0 2px 12px rgba(60,20,20,.06); padding: 24px 30px; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; margin-bottom: 22px; }
.gi-card img { height: 110px; width: auto; }
.gi-card > div { flex: 1 1 380px; min-width: 0; }
.gi-card h3 { color: var(--lac); font-size: 1.75rem; margin: .2em 0 .3em; }
.gi-card p { margin: 0; color: #4a3a36; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.hl-card { background: #fff; border: 1px solid #e6d6b8; border-top: 3px solid var(--zari); padding: 26px; display: flex; gap: 18px; }
.hl-card h3 { color: var(--lac); font-size: 1.3rem; margin: 0 0 .3em; }
.hl-card p { margin: 0; color: #4a3a36; }
.hl-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--lac); color: #e3c27a; display: flex; align-items: center; justify-content: center; }
.hl-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Collections */
.coll-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.coll-card { display: flex; flex-direction: column; gap: 14px; background: #fff; padding: 12px; border-radius: 4px; box-shadow: 0 2px 12px rgba(60,20,20,.08); text-decoration: none; }
.coll-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; transition: transform .4s ease; }
.coll-card:hover img { transform: scale(1.02); }
.coll-card > span { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--zari); padding-bottom: 10px; font-family: var(--serif); font-size: 1.3rem; color: var(--lac); }

/* Heritage story */
.h-story { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.h-story h2 { color: var(--lac); font-size: clamp(1.9rem, 3vw, 2.75rem); margin: .3em 0 0; }
.story-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-photos .wide { grid-column: span 2; }
.story-photos .wide img { height: 300px; }
.story-photos img { height: 200px; }
.pair-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair-photos img { height: 340px; }
.pair-photos .offset { margin-top: 48px; }

/* Process steps */
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 20px; }
.step-card { display: flex; flex-direction: column; gap: 12px; background: #fff; padding: 12px; box-shadow: 0 2px 12px rgba(60,20,20,.08); }
.step-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.step-card p { margin: 0; color: #4a3a36; font-size: .95rem; }
.step-h { display: flex; gap: 12px; align-items: baseline; }
.step-h span { font-family: var(--serif); font-size: 1.9rem; color: var(--zari); }
.step-h h3 { color: var(--lac); font-size: 1.3rem; margin: 0; }

/* Maroon "butta" bands */
.butta-band, .butta-card, .site-footer { background-color: var(--lac-deep); background-image: radial-gradient(circle, rgba(196,154,58,.28) 0 1.6px, transparent 2.6px), radial-gradient(circle, rgba(196,154,58,.14) 0 1px, transparent 2px); background-size: 36px 36px, 36px 36px; background-position: 0 0, 18px 18px; }
.butta-band { color: #f6e9d2; padding: 80px 0; }
.butta-band h2, .butta-card h2 { color: #fff; }
.sig { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.sig h2 { font-size: clamp(2.2rem, 4vw, 3rem); margin: .25em 0 0; }
.sig-tag { font-family: var(--serif); font-size: 1.35rem; color: #e3c27a; }
.sig .photo-card { max-width: 520px; justify-self: center; }
.sig .photo-card img { height: 420px; }

/* Product cards sit on solid white over the pattern */
.pcard { background: #fff; padding: 12px; border-radius: 4px; box-shadow: 0 2px 12px rgba(60,20,20,.08); }
.pcard .ph { border-radius: 0; }

/* Motifs */
.motif-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 18px; text-align: center; }
.motif-grid li { background: #fff; padding: 18px 10px; }
.motif-ring { width: 88px; height: 88px; border-radius: 50%; border: 1px solid var(--zari); color: var(--lac); display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.motif-ring svg { width: 52px; height: 52px; }
.motif-grid h3 { color: var(--lac); font-size: 1.15rem; margin: 0 0 .25em; }
.motif-grid p { margin: 0; font-size: .875rem; color: #4a3a36; }
.news-list .card-solid { padding: 14px; }

/* Visit + Ellorukkum Pattu */
.visit-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.visit-card { background: #fff; border: 1px solid #e6d6b8; display: flex; flex-direction: column; }
.visit-card img { width: 100%; height: 260px; object-fit: cover; }
.visit-card > div { padding: 26px 30px; }
.visit-card h2 { color: var(--lac); }
.butta-card { padding: 44px; color: #f6e9d2; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.butta-card p { margin: 0; }
.ta-title { font-size: 1.9rem; color: #e3c27a; }

/* Trust strip (certification logos) */
.trust-strip { background: #fff; border-top: 1px solid var(--line); padding: 34px 0; }
.certmarks-logos { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; align-items: center; }
.certmarks-logos .cm-mark { display: flex; align-items: center; justify-content: center; min-height: 80px; }
.certmarks-logos .cm-mark img { max-height: 88px; max-width: 150px; width: auto; }
.certmarks-logos .cm-text { border: 1px solid var(--zari); color: var(--lac); padding: 10px 14px; font-weight: 600; font-size: .9rem; }

/* Heritage & Craft page */
.page-hero-photo { position: relative; height: 480px; overflow: hidden; background: #3f0812; }
.page-hero-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,6,12,.92) 0%, rgba(40,6,12,.7) 42%, rgba(40,6,12,.1) 75%, rgba(40,6,12,0) 100%); }
.page-hero-photo .wrap { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.page-hero-photo h1 { color: #fff; font-size: clamp(2.3rem, 4.4vw, 3.6rem); margin: 0; }
.page-hero-photo .crumbs, .page-hero-photo .crumbs a { color: #e3c27a; }
.page-hero-photo blockquote { margin: 0; max-width: 46ch; }
.page-hero-photo blockquote p { color: #f6e9d2; font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.page-hero-photo blockquote footer { color: #e3c27a; font-size: .9rem; margin-top: 6px; }
.timeline-card { padding: 52px 44px; }
.tl { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 28px; position: relative; }
.tl::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--zari); }
.tl li { position: relative; display: flex; flex-direction: column; gap: 8px; }
.tl-dot { width: 16px; height: 16px; margin: 3px 0 10px; background: var(--lac); border: 3px solid var(--zari); transform: rotate(45deg); }
.tl li:last-child .tl-dot { background: var(--zari); border-color: var(--lac); }
.tl-year { font-family: var(--serif); font-size: 1.3rem; color: var(--zari-text); }
.tl h3 { color: var(--lac); font-size: 1.2rem; margin: 0; }
.tl p { margin: 0; color: #4a3a36; font-size: .95rem; }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 22px; }
.process-grid img { aspect-ratio: 4 / 3; }
.pc-cap { display: flex; gap: 12px; align-items: baseline; padding: 10px 4px 4px; font-family: var(--serif); color: var(--lac); font-size: 1.12rem; line-height: 1.3; }
.pc-cap span { color: var(--zari); font-size: 1.6rem; min-width: 34px; }
.craft-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.craft-card { background: #fff; border: 1px solid #e6d6b8; box-shadow: 0 2px 12px rgba(60,20,20,.06); display: flex; flex-direction: column; }
.craft-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cc-body { padding: 22px 24px; }
.cc-body h3 { color: var(--lac); }
.cc-body p { margin: 0; color: #4a3a36; }
.swatch-card { list-style: none; margin: 32px 0 0; background: #fff; border: 1px solid #e6d6b8; padding: 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 16px; }
.swatch-card li { display: flex; flex-direction: column; gap: 8px; font-size: .875rem; font-weight: 600; }
.swatch-card li span { display: block; height: 64px; }
.more-read summary { cursor: pointer; list-style: none; }
.more-read summary::-webkit-details-marker { display: none; }
.more-read summary h2 { display: inline; color: var(--lac); font-size: 1.4rem; }
.more-read summary::after { content: " +"; color: var(--zari-text); font-size: 1.4rem; }
.more-read[open] summary::after { content: " −"; }
.more-read .prose { margin-top: 16px; }

/* Footer */
.foot-logos { display: inline-flex; align-items: center; gap: 14px; background: #fff; border-radius: 8px; padding: 8px 14px; margin-bottom: 4px; }
.foot-logos img { height: 72px; width: auto; }
.foot-logos img + span + img { height: 56px; }
.foot-logos span { width: 1px; height: 52px; background: #eadfcd; }

@media (max-width: 860px) {
  .h-story, .sig, .visit-row { grid-template-columns: 1fr; gap: 32px; }
  .hero-right .hero-copy { justify-content: flex-start; }
  .hero-right .hero-slide::after { background: linear-gradient(90deg, rgba(40,6,12,.88), rgba(40,6,12,.55)); }
  .brand img { height: 58px; }
  .gov-emblem img { height: 42px; }
  .gov-emblem { padding-left: 8px; margin-left: 2px; }
  .page-hero-photo { height: 400px; }
  .timeline-card { padding: 32px 20px; }
  .tl::before { display: none; }
  .sig .photo-card img { height: 340px; }
  .butta-card { padding: 30px 24px; }
  .lace, .korvai { height: 36px; background-size: 56px 36px; }
}
@media (max-width: 560px) {
  .brand img { height: 46px; }
  .brand .bt { display: none; }
  .gov-emblem img { height: 34px; }
  .story-photos img, .story-photos .wide img { height: 180px; }
  .pair-photos img { height: 220px; }
  .pair-photos .offset { margin-top: 0; }
  .hl-card { padding: 20px; }
  .gi-card { padding: 20px; }
}
.news-list > * { min-width: 0; }
.news-list img { width: 100%; height: auto; aspect-ratio: 9 / 5; object-fit: cover; background: var(--silk); }
.process-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* ===== v1.10.0 ===== */
/* Top strip with social icons */
.announce.has-social { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: .3em max(20px, calc((100% - var(--w)) / 2 + 20px)); }
.announce .an-text { flex: 1; text-align: center; }
.an-social { display: flex; gap: 4px; }
.an-social a { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 50%; color: var(--zari-soft); }
.an-social a:hover { background: rgba(255,255,255,.12); color: #fff; }
.an-social svg { width: 16px; height: 16px; fill: currentColor; }
/* GI + TN logos */
.gov-emblem { gap: 10px; }
.gov-emblem img:first-child:not(:last-child) { height: 62px; }
.foot-logos .fl-gi { height: 60px; }
/* Product cards: quick view, price on request */
.pc-media { position: relative; }
.qv-btn { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 8px); opacity: 0; display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.95); color: var(--lac); border: 1px solid var(--zari); border-radius: 999px; padding: 7px 14px; font: 600 .85rem var(--sans); cursor: pointer; transition: opacity .2s, transform .2s; white-space: nowrap; }
.qv-btn svg { width: 16px; height: 16px; }
.pcard:hover .qv-btn, .qv-btn:focus-visible { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .qv-btn { opacity: 1; transform: translate(-50%, 0); padding: 6px 12px; } }
.price .por, .por { color: var(--lac); font-weight: 600; font-style: italic; }
.offline-box { flex: 1 1 100%; background: #fbf5e4; border: 1px solid #ecdcb4; padding: 14px 16px; border-radius: var(--radius); }
.offline-note { margin: 0 0 10px; font-size: .92rem; color: #5a4512; }
.offline-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.offline-btns svg { width: 18px; height: 18px; }
.btn-wa { background: #1f8f4e; border-color: #1f8f4e; color: #fff; }
.btn-wa svg { fill: currentColor; }
.btn-wa:hover { background: #17733e; color: #fff; }
/* Quick view dialog */
dialog.qv { width: min(980px, calc(100% - 24px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-top: 3px solid var(--zari); border-radius: 4px; box-shadow: 0 20px 60px rgba(40,6,12,.35); }
dialog.qv::backdrop { background: rgba(40,6,12,.55); }
.qv-close { position: absolute; top: 8px; right: 10px; z-index: 2; width: 44px; height: 44px; border: 0; background: #fff; border-radius: 50%; font-size: 28px; line-height: 1; color: var(--ink); cursor: pointer; }
.qv-close:hover { color: var(--lac); }
.qv-body.pdp { padding: 24px; gap: 28px; grid-template-columns: 1fr 1fr; }
.qv-body h2 { font-size: 1.6rem; margin: .2em 0 .3em; }
.qv-body h2 a { color: var(--ink); text-decoration: none; }
.qv-body .gallery-main img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
/* Awards & news cards */
.news-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.news-card { display: flex; flex-direction: column; background: #fff; padding: 10px; box-shadow: 0 2px 12px rgba(60,20,20,.08); text-decoration: none; color: var(--ink); }
.news-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--silk); }
.news-card span { font-family: var(--serif); font-size: 1.15rem; color: var(--lac); padding: 12px 4px 4px; line-height: 1.3; }
.news-card:hover span { text-decoration: underline; text-underline-offset: 3px; }
/* YouTube */
.yt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.yt-card { margin: 0; background: #fff; padding: 10px; box-shadow: 0 2px 12px rgba(60,20,20,.08); }
.yt-card figcaption { font-size: .95rem; padding: 10px 4px 2px; color: var(--ink); }
.yt-thumb { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #000; cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt-play svg { width: 68px; height: 48px; transition: transform .2s; }
.yt-thumb:hover .yt-play svg { transform: scale(1.08); }
.yt-card iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
/* Showrooms */
.branch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.branch-card { background: #fff; border: 1px solid #e6d6b8; border-top: 3px solid var(--zari); display: flex; flex-direction: column; }
.branch-card img { width: 100%; aspect-ratio: 5 / 3; object-fit: cover; }
.bc-body { padding: 22px 24px; }
.bc-body h2 { color: var(--lac); font-size: 1.45rem; margin: .2em 0 .5em; }
.bc-body p { margin: 0 0 .6em; }
@media (max-width: 860px) {
  .qv-body.pdp { grid-template-columns: 1fr; padding: 18px; }
  .gov-emblem img:first-child:not(:last-child) { height: 42px; }
}
@media (max-width: 560px) {
  .announce.has-social { flex-direction: column; gap: 2px; padding: .3em 12px; }
  .gov-emblem img:first-child:not(:last-child) { height: 34px; }
  .gov-emblem { gap: 6px; }
}

/* ===== v1.11.0 – Ellorukkum Pattu top banner ===== */
.ep-banner { background: #fff; line-height: 0; }
.ep-banner img { display: block; width: 100%; height: auto; max-width: 1920px; margin: 0 auto; }
@media (max-width: 700px) { .ep-banner img { aspect-ratio: 1080 / 1152; } }
/* v1.11.0 – 404 page */
.nf-links { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.nf-links a { display: block; background: #fff; border: 1px solid var(--line, #e6d9c3); border-top: 3px solid var(--gold, #c49a3a); padding: 14px 16px; text-decoration: none; font-weight: 600; }
.nf-links a:hover { border-color: var(--maroon, #7a1024); }
.nf-search { max-width: 520px; }
.nf-search label { display: block; font-weight: 600; margin-bottom: 6px; }
.nf-search div { display: flex; gap: 8px; }
.nf-search input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #cbb994; }
/* ===== v1.12.0 – showrooms map on the Contact page ===== */
.sm-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.sm-map { position: relative; isolation: isolate; height: 460px; background: #efe7d8; border: 1px solid var(--line, #e6d9c3); border-top: 3px solid var(--zari, #c49a3a); z-index: 0; }
.sm-list { list-style: none; margin: 0; padding: 0; max-height: 460px; overflow: auto; background: #fff; border: 1px solid var(--line, #e6d9c3); }
.sm-list li { border-bottom: 1px solid var(--line, #eee3cf); padding: 12px 14px; }
.sm-list li:last-child { border-bottom: 0; }
.sm-item { all: unset; cursor: pointer; display: flex; gap: 10px; align-items: flex-start; width: 100%; }
.sm-item:hover strong, .sm-item:focus-visible strong { color: var(--kumkum, #a3162e); text-decoration: underline; }
.sm-item:focus-visible { outline: 2px solid var(--zari, #c49a3a); outline-offset: 2px; }
.sm-num { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--lac, #7a1024); color: #fff; font-size: .8rem; font-weight: 600; display: grid; place-items: center; }
.sm-head { font-style: normal; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--zari-dark, #8a6a1f); }
.sm-links { margin: 6px 0 0 36px; }
.sm-pin { background: none; border: 0; }
.sm-pin svg { width: 30px; height: 40px; fill: var(--lac, #7a1024); stroke: #fff; stroke-width: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.3)); }
.sm-pin-head svg { fill: var(--zari, #c49a3a); }
.sm-pin span { position: absolute; top: 6px; left: 0; width: 30px; text-align: center; color: #fff; font: 600 12px/18px system-ui, sans-serif; }
.leaflet-popup-content { font-family: var(--sans, sans-serif); font-size: .9rem; line-height: 1.45; }
@media (max-width: 800px) {
  .sm-layout { grid-template-columns: 1fr; }
  .sm-map { height: 340px; }
  .sm-list { max-height: none; }
}
.sm-map.leaflet-container a { color: var(--lac, #7a1024); }
/* ===== v1.13.0 – website chat ===== */
.chat-float { position: fixed; right: 18px; bottom: 18px; z-index: 61; width: 54px; height: 54px; border-radius: 50%; border: 2px solid var(--zari); background: var(--lac); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.chat-float.above-wa { bottom: 84px; }
.chat-float svg { width: 26px; height: 26px; fill: #fff; }
.chat-float:hover { background: var(--lac-deep); }
.chat-dot { position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #9a8f8f; border: 2px solid #fff; }
.chat-dot.on { background: #2fbf62; }
.chat-badge { position: absolute; left: -4px; top: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--zari); color: var(--lac-deep); font: 700 12px/20px var(--sans); text-align: center; }
.chat-badge[hidden] { display: none; }
.to-top.with-chat { bottom: 84px; right: 22px; }
.to-top.with-chat.with-wa:not(.left) { bottom: 150px; }
.chat-is-open .chat-float, .chat-is-open .wa-float, .chat-is-open .to-top { visibility: hidden; }
.chat-panel { position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 370px; max-width: calc(100vw - 24px); height: min(600px, calc(100vh - 36px)); display: flex; flex-direction: column; background: #fff; border-top: 4px solid var(--zari); border-radius: 6px 6px 4px 4px; box-shadow: 0 12px 40px rgba(40,10,15,.3); overflow: hidden; font-size: .95rem; }
.chat-panel[hidden] { display: none; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; background: var(--lac); color: #fff; padding: 12px 14px; }
.cp-head strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.15rem; }
.cp-status { display: block; font-size: .8rem; opacity: .92; }
.cp-status i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9bfbf; margin-right: 4px; }
.cp-status i.cp-on { background: #4cd27a; }
.cp-x { background: none; border: 0; color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.cp-body { flex: 1; overflow: auto; padding: 14px; background: var(--silk); }
.cp-welcome p { margin: 0 0 .5em; }
.cp-ta { color: var(--muted); font-size: .9rem; }
.cp-closed { background: #fff6e3; border-left: 3px solid var(--zari); padding: 8px 10px; font-size: .88rem; }
.cp-topics { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.cp-topics button { border: 1px solid var(--zari); background: #fff; color: var(--lac); border-radius: 999px; padding: 4px 11px; font: 600 .82rem/1.4 var(--sans); cursor: pointer; }
.cp-topics button[aria-pressed="true"], .cp-topics button:hover { background: var(--lac); color: #fff; border-color: var(--lac); }
.cp-hint { font-size: .85rem; margin: 0 0 8px; }
.cp-start { background: #fff; border: 1px solid var(--line); padding: 12px; }
.cp-row { margin-bottom: 8px; }
.cp-row label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 2px; }
.cp-row input, .cp-row textarea { width: 100%; border: 1px solid #cdbfa8; padding: 8px 10px; font: inherit; font-size: .95rem; border-radius: 2px; }
.cp-opt { font-weight: 400; color: var(--muted); }
.cp-about { font-size: .85rem; background: var(--zari-soft); padding: 6px 8px; margin-bottom: 8px; }
.cp-link { background: none; border: 0; color: var(--lac); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 0; }
.cp-go { width: 100%; }
.cp-note { font-size: .76rem; color: var(--muted); margin: 8px 0 0; }
.cp-err { color: var(--danger); font-size: .88rem; margin: 6px 0; }
.cp-list { display: flex; flex-direction: column; gap: 8px; }
.cp-msg { max-width: 85%; padding: 7px 11px 4px; border-radius: 10px; background: #fff; border: 1px solid var(--line); word-wrap: break-word; }
.cp-msg time { display: block; font-size: .7rem; color: var(--muted); text-align: right; }
.cp-visitor { align-self: flex-end; background: #f3e6c4; border-color: #e8d3a0; border-bottom-right-radius: 2px; }
.cp-staff { align-self: flex-start; border-bottom-left-radius: 2px; }
.cp-system { align-self: center; max-width: 95%; background: #fff6e3; font-size: .85rem; text-align: center; border-style: dashed; }
.cp-who { display: block; font-size: .72rem; font-weight: 700; color: var(--lac); }
.cp-card { display: flex; gap: 8px; text-decoration: none; color: var(--ink); background: var(--silk); border: 1px solid var(--line); padding: 6px; margin: 4px 0; }
.cp-card img { width: 56px; height: 70px; object-fit: cover; flex: none; }
.cp-card strong { display: block; font-size: .88rem; line-height: 1.3; }
.cp-card small { display: block; color: var(--muted); }
.cp-card em { font-style: normal; font-weight: 700; color: var(--lac); font-size: .88rem; }
.cp-send { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: #fff; }
.cp-send[hidden] { display: none; }
.cp-send textarea { flex: 1; resize: none; border: 1px solid #cdbfa8; border-radius: 18px; padding: 8px 12px; font: inherit; font-size: .95rem; max-height: 120px; }
.cp-send button { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--lac); cursor: pointer; display: grid; place-items: center; }
.cp-send button svg { width: 20px; height: 20px; fill: #fff; }
.cp-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 7px 12px; border-top: 1px solid var(--line); font-size: .8rem; background: #fff; }
.cp-end { margin-left: auto; background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .8rem; padding: 0; }
.cp-loading { color: var(--muted); }
@media (max-width: 760px) {
  .chat-float.above-wa { bottom: 74px; }
  .to-top.with-chat { bottom: 74px; right: 18px; }
  .to-top.with-chat.with-wa:not(.left) { bottom: 130px; }
  .chat-panel { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100%; height: 100dvh; border-radius: 0; }
}
/* v1.13.1 – chat bubble on phones + nudge */
.chat-teaser { position: fixed; right: 82px; bottom: 26px; z-index: 61; display: flex; align-items: center; background: #fff; border: 1px solid var(--zari); border-radius: 999px; box-shadow: 0 4px 14px rgba(0,0,0,.18); animation: ctIn .3s ease-out; }
.chat-teaser.above-wa { bottom: 82px; }
.chat-teaser .ct-open { border: 0; background: none; color: var(--lac); font: 600 .9rem/1.2 var(--sans); padding: 9px 4px 9px 14px; cursor: pointer; }
.chat-teaser .ct-x { border: 0; background: none; color: var(--muted); font-size: 1.2rem; line-height: 1; padding: 6px 10px 6px 6px; cursor: pointer; }
.chat-float.chat-nudge { animation: ctNudge 1s ease-in-out 2; }
@keyframes ctIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes ctNudge { 0%, 100% { transform: none; } 30% { transform: translateY(-8px); } 60% { transform: translateY(0); } 80% { transform: translateY(-3px); } }
@media (max-width: 760px) { .chat-teaser { right: 78px; bottom: 22px; } .chat-teaser.above-wa { bottom: 78px; } }
@media (prefers-reduced-motion: reduce) { .chat-float.chat-nudge, .chat-teaser { animation: none; } }
/* ===== v1.14.0 – consistent inputs, solid panels on account / ePattu pages, member photo ===== */
input:not([type]), input[type=url], input[type=date], input[type=month], input[type=file] {
  width: 100%; padding: .65em .8em; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #d9cbbd; border-radius: var(--radius);
}
input[type=file] { padding: .45em .6em; font-size: .92rem; }
.acct-nav { background: #fff; border: 1px solid var(--line); align-self: start; padding: 6px 0; }
.acct > div:last-child { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--zari); padding: 26px 28px; min-width: 0; }
.page-head.ep-head { background: rgba(255,255,255,.92); }
.ep-member { display: inline-flex; align-items: center; gap: 12px; margin-top: .7em; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 18px 6px 6px; box-shadow: 0 2px 8px rgba(60,20,25,.06); line-height: 1.3; }
.ep-member img, .ep-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.ep-avatar { display: inline-grid; place-items: center; background: var(--lac); color: #fff; font: 600 1.25rem/1 var(--serif); }
.ep-avatar-lg { width: 96px; height: 96px; font-size: 2.4rem; }
.ep-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid var(--zari-soft); }
.ep-photo-row { display: flex; gap: 20px; align-items: flex-start; }
.btn-link-plain { background: none; border: 0; padding: 0; color: var(--danger); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
@media (max-width: 760px) { .acct > div:last-child { padding: 18px 14px; } .ep-photo-row { flex-direction: column; } }
/* v1.14.0 – ePattu box on the store maintenance page; ePattu-only header */
.mnt-ep { margin-top: 26px; width: 100%; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--zari); padding: 22px 22px 14px; text-align: center; }
.mnt-ep h2 { font-size: 1.35rem; margin: 0 0 .4em; color: var(--lac); }
.mnt-ep-ta { font-weight: 600; color: var(--ink) !important; margin: 0 0 .3em; }
.mnt-ep-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 12px 0; }
.ep-only-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; padding: 10px 0 12px; border-top: 1px solid var(--line); }
.ep-only-nav a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 4px 2px; }
.ep-only-nav a[aria-current=page], .ep-only-nav a:hover { color: var(--lac); box-shadow: inset 0 -2px 0 var(--zari); }
.ep-only-foot { text-align: center; padding: 22px 16px; font-size: .9rem; }
/* ===== v1.15.0 – Thico ePattu app install card ===== */
.app-card { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 62; width: min(540px, calc(100vw - 24px)); display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--zari); border-radius: 6px; padding: 10px 12px; box-shadow: 0 10px 30px rgba(40,10,15,.22); }
.app-card[hidden] { display: none; }
.app-card img { width: 52px; height: 52px; flex: none; border-radius: 12px; border: 1px solid var(--line); }
.ac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; font-size: .88rem; color: var(--muted); }
.ac-text strong { color: var(--ink); font-size: .98rem; }
.ac-ta { font-size: .8rem; }
.ac-ios { color: var(--ink); margin-top: 3px; }
.ac-ios[hidden], .ac-go[hidden] { display: none; }
.ac-ios svg { vertical-align: -2px; }
.ac-x { border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; align-self: flex-start; }
.chat-is-open .app-card { display: none; }
@media (max-width: 760px) { .app-card { left: 12px; transform: none; width: auto; right: 78px; bottom: 12px; } }
/* inside the installed app */
.ep-only .brand .bt { font-size: .78rem; }
.ep-solo .crumbs { display: none; }

/* v1.19.0 – changeable page banner: <picture> fills the header like the old <img> */
.page-hero-photo > picture { position: absolute; inset: 0; }
.page-hero-photo > picture > img { width: 100%; height: 100%; object-fit: cover; object-position: right center; display: block; }
@media (max-width: 640px) { .page-hero-photo > picture > img { object-position: center; } }

/* v1.21.0 – product card: badges top-right, round action icons on hover (left), old price first */
.pc-badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; z-index: 2; pointer-events: none; }
.pc-badge { color: #fff; font: 700 .8rem/1 var(--sans); letter-spacing: .03em; padding: .55em .85em; border-radius: 3px; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.pc-badge.new { background: #3d8a1e; }
.pc-badge.off { background: #c4161c; text-transform: uppercase; }
.pc-badge.one { background: #fff; color: var(--lac); border: 1px solid var(--zari); box-shadow: none; }
.pc-badge.sold { background: #fff; color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
.pc-actions { position: absolute; left: 14px; top: 50%; transform: translate(-8px, -50%); display: flex; flex-direction: column; gap: 10px; opacity: 0; transition: opacity .2s, transform .2s; z-index: 2; }
.pc-actions form { margin: 0; }
.pc-act { width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--lac); display: grid; place-items: center; cursor: pointer; box-shadow: 0 3px 10px rgba(60,20,20,.18); transition: background .15s, color .15s; }
.pc-act svg { width: 22px; height: 22px; }
.pc-act:hover, .pc-act:focus-visible { background: var(--lac); color: #fff; }
.pc-act[aria-pressed="true"] { color: #c4161c; }
.pc-act[aria-pressed="true"]:hover { color: #fff; }
.pcard:hover .pc-actions, .pc-actions:focus-within { opacity: 1; transform: translate(0, -50%); }
@media (hover: none) { .pc-actions { opacity: 1; flex-direction: row; top: auto; bottom: 8px; left: 8px; transform: none; gap: 6px; } .pc-act { width: 34px; height: 34px; } .pc-act svg { width: 17px; height: 17px; } }
@media (max-width: 560px) { .pc-badges { top: 8px; right: 8px; gap: 4px; } .pc-badge { font-size: .68rem; padding: .45em .6em; } }
.pcard .price .was { order: 0; }

/* v1.22.0 – Our Agencies page */
.agency-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.agency-filter label { font-weight: 600; }
.agency-filter select { min-width: 240px; width: auto; max-width: 100%; }
.agency-district { font-size: 1.4rem; color: var(--lac); margin: 26px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--zari); }
.agency-district .muted { font-size: .95rem; font-weight: 400; }
.branch-card h3 { color: var(--lac); font-size: 1.25rem; margin: .1em 0 .4em; }

/* v1.22.0 – Video shopping */
.vs-banner { background: #5c0b1a; line-height: 0; }
.vs-banner img { width: 100%; height: auto; max-height: 560px; object-fit: cover; display: block; }
.vs-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.vs-info h1 { color: var(--lac); margin-top: 0; }
.vs-steps { list-style: none; padding: 0; margin: 1.4em 0; display: grid; gap: 14px; }
.vs-steps li { display: flex; gap: 14px; align-items: flex-start; }
.vs-steps li > span { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--lac); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid var(--zari); }
.vs-steps b { display: block; color: var(--ink); }
.vs-form-card { background: #fff; border: 1px solid #e6d6b8; border-top: 3px solid var(--zari); padding: clamp(18px, 3vw, 30px); box-shadow: 0 4px 18px rgba(60,20,20,.07); }
.vs-form-card h2 { margin-top: 0; color: var(--lac); }
.vs-form-card label { display: block; font-weight: 600; margin: .8em 0 .3em; }
.vs-form-card input[type=text], .vs-form-card input:not([type]), .vs-form-card input[type=email], .vs-form-card input[type=date], .vs-form-card textarea { width: 100%; }
.vs-times { border: 0; padding: 0; margin: .8em 0 0; }
.vs-times legend { font-weight: 600; padding: 0; margin-bottom: .3em; }
.vs-slot-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; }
.vs-slot { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500 !important; border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; cursor: pointer; background: #fffdf9; }
.vs-slot:has(input:checked) { border-color: var(--lac); background: #fbeff0; box-shadow: inset 0 0 0 1px var(--lac); }
.vs-slot.full { opacity: .5; cursor: not-allowed; text-decoration: line-through; }
.vs-product { background: #fbf4e6; border-left: 3px solid var(--zari); padding: 8px 12px; }
.vs-submit { width: 100%; margin-top: 1.2em; font-size: 1.05rem; }
.field-err { display: block; color: #b42318; font-size: .88rem; margin-top: .25em; }
.vs-done { background: #fff; border: 1px solid #e6d6b8; border-top: 3px solid var(--zari); padding: clamp(18px, 3vw, 32px); }
.vs-wa { font-size: 1.05rem; }
.vs-home { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(8px, 2vw, 20px); }
.vs-home a { display: block; line-height: 0; border-radius: 4px; overflow: hidden; box-shadow: 0 6px 24px rgba(60,20,20,.12); }
.vs-home img { width: 100%; height: auto; display: block; transition: transform .4s; }
.vs-home a:hover img { transform: scale(1.015); }
.pdp-video { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.pdp-video svg { width: 20px; height: 20px; }
@media (max-width: 860px) { .vs-grid { grid-template-columns: 1fr; } }

/* v1.23.0 – prices: Noto Sans, clear digits, a little smaller */
.price, .offer-note, .specs td:last-child, .sum-row span:last-child, .order-total, .pc-badge.off, .vs-slot span, td.num, .cart-table .num {
  font-family: "Noto Sans", system-ui, sans-serif; font-variant-numeric: lining-nums tabular-nums;
}
.price { gap: .55em; }
.price .now { font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.price .was { font-weight: 500; font-size: .85rem; }
.pdp .price .now { font-size: 1.35rem; font-weight: 600; }
.pdp .price .was { font-size: .95rem; }
.price-tax-note { font-size: .8rem; }

/* v1.23.1 – page banner (Heritage & Craft, About Us): show the WHOLE photo, never cropped.
   The banner is as tall as the photo; the title and quote sit on its left. On tablets/phones the
   title and quote move below the photo so they never cover it. */
.page-hero-photo { height: auto; }
.page-hero-photo > picture { position: relative; inset: auto; display: block; }
.page-hero-photo > picture > img { width: 100%; height: auto; object-fit: contain; display: block; }
.page-hero-photo .wrap { position: absolute; top: 0; bottom: 0; left: 0; right: 0; margin: 0 auto; height: auto; }
@media (max-width: 900px) {
  .page-hero-photo .wrap { position: static; padding-top: 22px; padding-bottom: 26px; }
  .page-hero-photo::after { display: none; }
  .page-hero-photo h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
}

/* v1.24.0 – product page: product's own discount as a badge next to the price */
.pdp-off { background: #c4161c; color: #fff; font: 700 .78rem/1 "Noto Sans", system-ui, sans-serif; padding: .4em .6em; border-radius: 3px; align-self: center; letter-spacing: .03em; }

/* v1.24.2 – mobile: no horizontal scrolling.
   Long words without spaces (e.g. product names like "COLOUR_SILVER_MUNDHI_RED_") made grid columns wider
   than the phone screen. Grid/flex children may now shrink, long words wrap, and media never exceed the screen. */
.pgrid > *, .news-cards > *, .branch-grid > *, .vs-grid > *, .grid2 > *, .grid3 > *, .pdp > *, .pcard { min-width: 0; }
body { overflow-wrap: break-word; }
h1, h2, h3, h4, .news-card span, .pcard h3, .crumbs, .specs td, .price, .vs-product, .branch-card p { overflow-wrap: anywhere; }
img, iframe, video, svg, table { max-width: 100%; }
html, body { overflow-x: clip; } /* safety net – never a sideways scroll on phones */

/* v1.25.0 – photo lightbox (news photos, Dyeing & Process) */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(20, 6, 8, .94); display: flex; align-items: center; justify-content: center; }
.lb[hidden] { display: none; }
html.lb-open { overflow: hidden; }
.lb-fig { margin: 0; max-width: min(1200px, 100vw); max-height: 100vh; padding: 56px 64px 16px; display: flex; flex-direction: column; align-items: center; box-sizing: border-box; }
.lb-fig img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border-radius: 2px; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.lb-fig figcaption { color: #f6eadf; text-align: center; margin-top: 12px; font-size: .95rem; line-height: 1.4; display: flex; flex-direction: column; gap: 4px; }
.lb-count { color: #c9b9a8; font: 500 .8rem/1 "Noto Sans", system-ui, sans-serif; letter-spacing: .05em; }
.lb button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 2rem; line-height: 1; display: grid; place-items: center; }
.lb button:hover, .lb button:focus-visible { background: rgba(255,255,255,.25); }
.lb-x { top: 10px; right: 10px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb.single .lb-prev, .lb.single .lb-next { display: none; }
@media (max-width: 640px) {
  .lb-fig { padding: 56px 8px 70px; }
  .lb-fig img { max-height: calc(100vh - 170px); }
  .lb-prev, .lb-next { top: auto; bottom: 12px; transform: none; }
  .lb-prev { left: calc(50% - 60px); } .lb-next { right: calc(50% - 60px); }
}

/* v1.25.0 – news & events: more photos */
.news-photos { margin-top: 2.5rem; }
.np-title { font-family: var(--serif); color: var(--lac); font-size: 1.5rem; margin: 0 0 1rem; }
.np-title .muted { font-size: 1rem; }
.np-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.np-grid > * { min-width: 0; }
.np-grid figure { margin: 0; }
.np-grid a { display: block; overflow: hidden; border-radius: 3px; background: var(--silk); }
.np-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .3s; }
.np-grid a:hover img { transform: scale(1.04); }
.np-grid figcaption { font-size: .88rem; color: var(--muted); padding: 6px 2px 0; line-height: 1.35; overflow-wrap: anywhere; }
@media (max-width: 480px) { .np-grid { grid-template-columns: 1fr 1fr; gap: 8px; } }
.news-photo-count { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--lac); text-decoration: none; }
.news-photo-count svg { width: 18px; height: 18px; }
.prose a[data-lb] { display: block; }

/* v1.25.0 – Dyeing & Process: step-by-step photos, alternating sides */
.steps-intro { max-width: 760px; margin: 0 auto 2.5rem; text-align: center; font-size: 1.08rem; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3rem; }
.dp-step { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.dp-step:nth-child(even) .step-photo { order: 2; }
.dp-step.no-photo { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.step-photo { display: block; overflow: hidden; border-radius: 3px; box-shadow: 0 6px 24px rgba(60,20,20,.12); background: var(--silk); }
.step-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .4s; }
.step-photo:hover img { transform: scale(1.03); }
.step-text { min-width: 0; overflow-wrap: anywhere; }
.step-no { display: inline-block; font: 600 .78rem/1 "Noto Sans", system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--zari-text); margin-bottom: .5rem; }
.step-text h2 { font-family: var(--serif); color: var(--lac); font-size: 1.7rem; margin: 0 0 .6rem; line-height: 1.2; }
.step-text p { margin: 0 0 .8em; line-height: 1.65; }
@media (max-width: 760px) {
  .steps-list { gap: 2.2rem; }
  .dp-step { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .dp-step:nth-child(even) .step-photo { order: 0; }
  .step-text h2 { font-size: 1.4rem; }
}

/* v1.25.0 – fix: "wrap section" pages (news, gallery, policies…) lost their side margin on phones,
   because .section's padding replaced .wrap's 20px left/right padding. */
.wrap.section { padding-left: 20px; padding-right: 20px; }
