/* Bandha House — classic handloom store
   Indigo is the brand (the oldest ikat dye); madder and turmeric appear
   only inside the cloth itself. */
:root {
  --brand: #2B3A8C;
  --brand-deep: #1D2766;
  --brand-soft: #E9ECF7;
  --brand-ink: #FFFFFF;

  --bg: #FBFBF9;
  --ink: #161A33;
  --muted: #5D6178;
  --line: #E1E2E8;
  --madder: #A4262C;

  --display: 'Gilda Display', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
  --wrap: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); font-size: .92rem; }

/* ---------- announcement + header ---------- */
.announce { background: var(--brand); color: var(--brand-ink); text-align: center; font-size: .8rem; letter-spacing: .02em; padding: 9px 16px; }
.announce span { margin: 0 .6em; opacity: .6; }

.header { position: sticky; top: 0; z-index: 40; background: rgba(251, 251, 249, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; height: 74px; }
.logo { font-family: var(--display); font-size: 1.75rem; letter-spacing: .01em; text-decoration: none; text-align: center; white-space: nowrap; }
.logo em { font-style: normal; color: var(--brand); }
.logo-sm { font-size: 1.4rem; text-align: left; margin-bottom: 10px; }
.search input { width: min(280px, 100%); padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: .88rem; }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 22px; font-size: .9rem; }
.header-link { text-decoration: none; color: var(--muted); }
.header-link:hover { color: var(--ink); }
.bag-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--ink); background: none; border-radius: 999px; padding: 7px 8px 7px 16px; font-weight: 600; cursor: pointer; }
.bag-count { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); font-size: .75rem; }
.bag-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--ink); }

.main-nav { display: flex; justify-content: center; gap: 34px; padding: 11px 0 13px; font-size: .9rem; }
.main-nav a { text-decoration: none; color: var(--muted); padding-bottom: 3px; border-bottom: 1.5px solid transparent; }
.main-nav a:hover { color: var(--ink); border-color: var(--brand); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 13px 26px; border-radius: 2px; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; border: 1.5px solid var(--brand); transition: background .2s, color .2s; }
.btn-solid { background: var(--brand); color: var(--brand-ink); }
.btn-solid:hover { background: var(--brand-deep); border-color: var(--brand-deep); }
.btn-line { background: none; color: var(--brand); }
.btn-line:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.kicker { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1; letter-spacing: -.01em; margin-bottom: 22px; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 44ch; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.hero-facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.6rem; color: var(--ink); line-height: 1.1; }
.hero-art { position: relative; }
.hero-drape { aspect-ratio: 5 / 5.6; overflow: hidden; border-radius: 2px; box-shadow: 0 30px 60px -30px rgba(22, 26, 51, .45); }
.hero-drape img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { margin-top: 12px; font-size: .82rem; color: var(--muted); }

/* ---------- category tiles ---------- */
.cats { padding: 8px 0 72px; }
.cats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat { position: relative; display: block; text-decoration: none; border: 0; background: none; text-align: left; cursor: pointer; padding: 0; }
.cat-art { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; }
.cat-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat:hover .cat-art img { transform: scale(1.05); }
.cat-label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-family: var(--display); font-size: 1.3rem; }
.cat-label small { font-family: var(--body); font-size: .8rem; color: var(--muted); }

/* ---------- shop ---------- */
.shop { padding: 64px 0 88px; border-top: 1px solid var(--line); }
.shop-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; }
.shop-head h2, .craft h2 { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; }
.result-count { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.shop-tools { display: flex; gap: 12px; align-items: center; }
.sort { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--muted); }
.sort select { padding: 9px 12px; border: 1px solid var(--line); background: #fff; border-radius: 2px; color: var(--ink); }
.filter-toggle { display: none; padding: 9px 16px; border: 1px solid var(--ink); background: none; border-radius: 2px; font-weight: 600; cursor: pointer; }

.shop-grid { display: grid; grid-template-columns: 230px 1fr; gap: 48px; align-items: start; }
.filters { position: sticky; top: 140px; }
.filters fieldset { border: 0; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.filters legend { font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.filters label { display: flex; align-items: baseline; gap: 10px; font-size: .92rem; padding: 4px 0; cursor: pointer; }
.filters label small { color: var(--muted); font-size: .76rem; }
.filters input[type=checkbox] { accent-color: var(--brand); width: 16px; height: 16px; flex: 0 0 auto; transform: translateY(2px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filters .chip { position: relative; padding: 0; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 6px; border: 1px solid var(--line); border-radius: 999px; font-size: .8rem; }
.chip span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.chip input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.clear-btn { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font-size: .88rem; }

.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 24px; }
.card { display: flex; flex-direction: column; }
.card-art { position: relative; aspect-ratio: 3 / 3.8; overflow: hidden; border-radius: 2px; background: #eee; }
.card-art img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.card:hover .card-art img { transform: scale(1.04); }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; }
.badge.one-off { background: var(--madder); color: #fff; }
.card-add { position: absolute; left: 12px; right: 12px; bottom: 12px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.card:hover .card-add, .card-add:focus-visible { opacity: 1; transform: none; }
.card-meta { padding-top: 14px; }
.card-weave { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 1.22rem; line-height: 1.25; margin: 4px 0 6px; }
.card-price { font-weight: 600; }
.card-price small { color: var(--muted); font-weight: 400; font-size: .82rem; }
.no-results { padding: 40px 0; color: var(--muted); }

/* ---------- craft ---------- */
.craft { padding: 88px 0; background: var(--brand-soft); }
.craft-sub { color: var(--muted); max-width: 56ch; margin: 12px 0 44px; }
.craft-sub em { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.steps li { background: var(--bg); padding: 30px 28px 32px; border-top: 3px solid var(--brand); }
.step-no { font-family: var(--display); font-size: 2.4rem; line-height: 1; color: var(--brand); }
.steps h3 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; margin: 10px 0 8px; }
.steps p { color: var(--muted); font-size: .95rem; }

/* ---------- weaver quote ---------- */
.weaver { padding: 96px 0; }
.weaver-inner { max-width: 880px; text-align: center; }
.weaver blockquote p { font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.35rem); line-height: 1.3; }
.weaver footer { margin-top: 18px; color: var(--muted); font-size: .9rem; letter-spacing: .04em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 90px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 40px; }
.site-footer h3 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: var(--ink); }
.news-row { display: flex; gap: 8px; margin-bottom: 8px; }
.news-row input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); background: #fff; border-radius: 2px; }

/* ---------- bag drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(22, 26, 51, .38); z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--bg); z-index: 90; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); box-shadow: -20px 0 50px rgba(22, 26, 51, .18); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-family: var(--display); font-weight: 400; font-size: 1.6rem; }
.close-btn { width: 38px; height: 38px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.ship-note { margin: 16px 24px 0; padding: 10px 14px; background: var(--brand-soft); font-size: .85rem; }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.drawer-item .thumb { width: 64px; height: 80px; overflow: hidden; }
.drawer-item .thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.drawer-item h3 { font-family: var(--display); font-weight: 400; font-size: 1rem; line-height: 1.3; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); margin-top: 6px; }
.qty button { width: 28px; height: 28px; border: 0; background: none; cursor: pointer; }
.qty span { min-width: 22px; text-align: center; font-size: .88rem; }
.drawer-empty { padding: 28px 24px; color: var(--muted); }
.drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 1.05rem; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .header-bar { grid-template-columns: auto 1fr auto; height: 64px; }
  .search, .header-link { display: none; }
  .logo { text-align: left; font-size: 1.5rem; }
  .menu-btn { display: flex; }
  .main-nav { display: none; flex-direction: column; gap: 4px; padding: 8px 28px 18px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 8px 0; }
  .hero { padding: 36px 0 52px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-grid { grid-template-columns: 1fr; gap: 20px; }
  .filter-toggle { display: inline-block; }
  .filters { display: none; position: static; padding: 18px; border: 1px solid var(--line); background: #fff; }
  .filters.open { display: block; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .shop-head { flex-direction: column; align-items: flex-start; }
  .products { gap: 28px 14px; }
  .card h3 { font-size: 1.05rem; }
  .card-add { opacity: 1; transform: none; position: static; margin-top: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 20px; }
}
@media (hover: none) {
  .card-add { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
