/* 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'); }
@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-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; } }
