/* KRS Payals look "boutique": a jewellery-store website that look-boutique.js builds over the page.
   Pure white and deep emerald, Cormorant Garamond for display and Manrope for everything else.
   Everything here only applies while this look is on (the .bq elements exist only then).
   Staff edit mode (html.admin) shows the original page again; dialogs (Settings, staff login)
   are never hidden. Motion: transform and opacity only, with ease-out curves. */

/* ---------- Colours and type ---------- */
:root[data-look="boutique"] {
  --bq-bg: #FFFFFF;
  --bq-ink: #16181D;
  --bq-ink2: #555A62;
  --bq-ink3: #6A6F77;
  --bq-well: #F5F5F3;
  --bq-line: #E6E6E3;
  --bq-line2: #C9CBC6;
  --bq-acc: #0E5A47;
  --bq-acc-hi: #0B4A3A;
  --bq-acc-ink: #FFFFFF;
  --bq-acc-soft: #E8F1EC;
  --bq-hold: #0E5A47;
  --bq-deep: #0E5A47;
  --bq-deep-ink: #FFFFFF;
  --bq-deep-ink2: #CDEBDF;
  --bq-t1: #E8F1EC;
  --bq-t2: #ECEFF3;
  --bq-t3: #EFF0EB;
  --bq-foot: #F5F5F3;
  --bq-scrim: rgb(14 22 19 / .44);
  --bq-plate: 0 22px 44px -26px rgb(12 34 27 / .42), 0 2px 6px -2px rgb(12 34 27 / .12);
  --bq-lift: 0 40px 90px -30px rgb(10 20 16 / .4);
  --bq-pic: none;
  --bq-serif: 'Cormorant Garamond', 'Cormorant', Garamond, Georgia, serif;
  --bq-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bq-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --bq-gut: clamp(16px, 3.4vw, 40px);
  /* the shared Settings sheet and staff login read these */
  --paper: #FFFFFF;
  --oxide: #16181D;
  --oxide-soft: #555A62;
  --brass: #0E5A47;
  --kumkum: #0E5A47;
  --silver-pale: #FFFFFF;
  --silver-mid: #C9CBC6;
  --rule: 1px solid #E6E6E3;
  color-scheme: light;
  scrollbar-color: #C9CBC6 transparent;
}
:root[data-look="boutique"][data-theme="dark"] {
  --bq-bg: #0D0F0F;
  --bq-ink: #ECEEEC;
  --bq-ink2: #A9AFAC;
  --bq-ink3: #8C928F;
  --bq-well: #171A19;
  --bq-line: #252A28;
  --bq-line2: #3A403D;
  --bq-acc: #5FC2A3;
  --bq-acc-hi: #7FD3B8;
  --bq-acc-ink: #06231B;
  --bq-acc-soft: #12251F;
  --bq-hold: #0E5A47;
  --bq-deep: #113A2F;
  --bq-deep-ink: #F1F7F4;
  --bq-deep-ink2: #B5DCCD;
  --bq-t1: #12201B;
  --bq-t2: #141A1F;
  --bq-t3: #181A17;
  --bq-foot: #121514;
  --bq-scrim: rgb(0 0 0 / .62);
  --bq-plate: 0 24px 48px -24px rgb(0 0 0 / .8), 0 2px 6px -2px rgb(0 0 0 / .5);
  --bq-lift: 0 40px 90px -30px rgb(0 0 0 / .85);
  --bq-pic: brightness(.9);
  --paper: #0D0F0F;
  --oxide: #ECEEEC;
  --oxide-soft: #A9AFAC;
  --brass: #5FC2A3;
  --kumkum: #5FC2A3;
  --silver-pale: #0D0F0F;
  --silver-mid: #3A403D;
  --rule: 1px solid #252A28;
  color-scheme: dark;
  scrollbar-color: #3A403D transparent;
}

/* ---------- The original page steps aside (not in staff edit mode; dialogs always show) ---------- */
[data-look="boutique"]:not(.admin) body > .wrap,
[data-look="boutique"]:not(.admin) body > footer { display: none !important; }
[data-look="boutique"].admin #boutique-app { display: none; }
:root[data-look="boutique"]:not(.admin) { background: var(--bq-bg); scrollbar-gutter: stable; }
[data-look="boutique"]:not(.admin) body { background: var(--bq-bg); color: var(--bq-ink); }
[data-look="boutique"] body:has(dialog.bq-dlg[open]) { overflow: hidden; }

/* The shared sheets (Settings, staff login) in this look's type, corners and emerald */
[data-look="boutique"] dialog { font-family: var(--bq-sans); }
[data-look="boutique"] dialog h2 { font-family: var(--bq-serif); font-weight: 600; font-size: 1.75rem; letter-spacing: 0; line-height: 1.1; }
[data-look="boutique"] dialog.settings-sheet,
[data-look="boutique"] dialog.admin-sheet,
[data-look="boutique"] dialog.cat-sheet { border-radius: 20px 20px 0 0; }
[data-look="boutique"] dialog .btn { border-radius: 999px; min-height: 48px; font-weight: 600; background: var(--bq-acc); color: var(--bq-acc-ink); }
[data-look="boutique"] dialog .btn.ghost { background: none; color: var(--bq-ink); border: 1px solid var(--bq-line2); }
[data-look="boutique"] .look-choices button,
[data-look="boutique"] .mode-choices button { border-radius: 12px; }
[data-look="boutique"] .look-choices button[aria-checked="true"] { border-color: var(--bq-acc); box-shadow: 0 0 0 1px var(--bq-acc); }
[data-look="boutique"] .mode-choices button[aria-checked="true"] { background: var(--bq-acc); color: var(--bq-acc-ink); border-color: var(--bq-acc); }
[data-look="boutique"] dialog::backdrop { background: var(--bq-scrim); }

/* ---------- Base ---------- */
.bq {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  background: var(--bq-bg);
  color: var(--bq-ink);
  font-family: var(--bq-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
.bq :where(h1, h2, h3, p, ul, ol, dl, dd, figure, address) { margin: 0; padding: 0; font: inherit; color: inherit; }
.bq :where(ul, ol) { list-style: none; }
.bq :where(a) { color: inherit; text-decoration: none; }
.bq :where(button, select) { font: inherit; color: inherit; cursor: pointer; }
.bq :where(img) { display: block; max-width: 100%; }
.bq :focus-visible { outline: 2px solid var(--bq-acc); outline-offset: 2px; border-radius: 6px; }
.bq ::selection { background: var(--bq-acc); color: var(--bq-acc-ink); }
.bq-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.bq-skip { position: absolute; left: 12px; top: 8px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--bq-acc); color: var(--bq-acc-ink); font-weight: 600; transform: translateY(-160%); }
.bq-skip:focus-visible { transform: none; }
.bq-w {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-left: max(var(--bq-gut), env(safe-area-inset-left));
  padding-right: max(var(--bq-gut), env(safe-area-inset-right));
}
.bq-i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bq-i.bq-wa { fill: currentColor; stroke: none; }

/* Buttons */
.bq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid var(--bq-acc);
  border-radius: 999px;
  background: var(--bq-acc);
  color: var(--bq-acc-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms var(--bq-ease);
}
.bq-btn .bq-i { width: 19px; height: 19px; }
.bq-btn-line { background: transparent; color: var(--bq-ink); border-color: var(--bq-line2); }
.bq-btn-big { width: 100%; min-height: 54px; font-size: 16px; }
.bq-btn:active, .bq-chip:active, .bq-size:active { transform: scale(.97); }
.bq-ibtn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  transition: background-color 160ms ease, transform 140ms var(--bq-ease), opacity 160ms ease;
}
.bq-ibtn:active { transform: scale(.93); }
.bq-ibtn:disabled { opacity: .3; cursor: default; transform: none; }
.bq-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--bq-ink2); font-size: 14px; text-decoration: underline; text-decoration-color: var(--bq-line2); text-underline-offset: 4px; }
.bq-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--bq-acc);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.bq-more .bq-i { width: 17px; height: 17px; transition: transform 240ms var(--bq-ease); }
@media (hover: hover) and (pointer: fine) {
  .bq-btn:hover { background: var(--bq-acc-hi); border-color: var(--bq-acc-hi); }
  .bq-btn-line:hover { background: var(--bq-well); border-color: var(--bq-ink3); color: var(--bq-ink); }
  .bq-ibtn:not(:disabled):hover { background: var(--bq-well); }
  .bq-more:hover .bq-i { transform: translateX(3px); }
  .bq-link:hover { color: var(--bq-ink); text-decoration-color: currentColor; }
}

/* Type */
.bq-h1, .bq-h2, .bq-display, .bq-bx-h { font-family: var(--bq-serif); font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.bq-h1 { font-size: clamp(2rem, 1.55rem + 1.7vw, 2.85rem); line-height: 1.04; }
.bq-h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.35rem); line-height: 1.06; }
.bq-display { font-size: clamp(2.1rem, 1.5rem + 2.7vw, 3.7rem); line-height: 1; letter-spacing: -.012em; }
.bq-h1:focus, .bq-h2:focus { outline: none; }

/* ---------- Announcement strip ---------- */
.bq-strip { background: var(--bq-acc); color: var(--bq-acc-ink); padding-top: env(safe-area-inset-top); font-size: 12.5px; font-weight: 500; letter-spacing: .03em; }
[data-theme="dark"] .bq-strip { background: #11261F; color: #BFE6D8; }
.bq-strip-in { position: relative; height: 34px; overflow: hidden; }
.bq-msg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(85%);
  transition: opacity 320ms var(--bq-ease), transform 560ms var(--bq-ease);
}
.bq-msg.is-on { opacity: 1; transform: none; }
.bq-msg.is-out { transform: translateY(-85%); }
@media (min-width: 900px) {
  .bq-strip-in { display: flex; align-items: center; justify-content: center; }
  .bq-msg { position: static; opacity: 1; transform: none; transition: none; padding: 0; }
  .bq-msg + .bq-msg::before { content: ""; width: 4px; height: 4px; margin: 0 18px; border-radius: 50%; background: currentColor; opacity: .55; }
}

/* ---------- Header and the range bar (sticky together) ---------- */
.bq-top { position: sticky; top: 0; z-index: 20; background: var(--bq-bg); border-bottom: 1px solid var(--bq-line); transition: box-shadow 200ms ease; }
.bq-top.is-stuck { box-shadow: 0 10px 30px -22px rgb(10 24 20 / .45); }
[data-theme="dark"] .bq-top.is-stuck { box-shadow: 0 10px 30px -18px rgb(0 0 0 / .9); }
.bq-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 62px; }
.bq-head-l, .bq-head-r { display: flex; align-items: center; gap: 2px; }
.bq-head-l { justify-self: start; margin-left: -10px; }
.bq-head-r { justify-self: end; margin-right: -10px; }
.bq-hlink { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--bq-ink2); transition: color 160ms ease, background-color 160ms ease; }
.bq-hlink .bq-i { width: 18px; height: 18px; }
.bq-mark { display: flex; flex-direction: column; align-items: center; padding: 8px 6px; line-height: 1; text-align: center; }
.bq-mark-w {
  font-family: var(--bq-serif);
  font-weight: 600;
  font-size: clamp(19px, 5.4vw, 23px);
  letter-spacing: .26em;
  margin-right: -.26em; /* the last letter's tracking would push the word off centre */
  text-transform: uppercase;
  white-space: nowrap;
}
.bq-mark-s { margin-top: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .18em; margin-right: -.18em; text-transform: uppercase; color: var(--bq-ink3); white-space: nowrap; }
@media (max-width: 359px) { .bq-theme { display: none; } } /* very small phones: light/dark stays in Settings, so the name sits centred */
.bq-theme .bq-sun { display: none; }
[data-theme="dark"] .bq-theme .bq-sun { display: block; }
[data-theme="dark"] .bq-theme .bq-moon { display: none; }

.bq-cats { position: relative; display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.bq-cats::-webkit-scrollbar { display: none; }
.bq-cats ul { display: flex; flex: 1 0 auto; justify-content: center; gap: 2px; padding-inline: max(calc(var(--bq-gut) - 12px), env(safe-area-inset-left)); }
.bq-cats a {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--bq-ink2);
  white-space: nowrap;
  transition: color 160ms ease;
}
.bq-cats a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--bq-acc);
  transform: scaleX(0);
  transition: transform 280ms var(--bq-ease);
}
.bq-cats a[aria-current] { color: var(--bq-ink); }
.bq-cats a[aria-current]::after { transform: scaleX(1); }
@media (max-width: 599px) { .bq-cats ul { justify-content: flex-start; } }
/* rows that scroll sideways fade out at an edge only while there is more to see that way */
.bq-fade { --fl: #000; --fr: #000; mask-image: linear-gradient(90deg, var(--fl), #000 22px, #000 calc(100% - 28px), var(--fr)); }
.bq-fade.is-l { --fl: transparent; }
.bq-fade.is-r { --fr: transparent; }
@media (hover: hover) and (pointer: fine) {
  .bq-cats a:hover, .bq-hlink:hover { color: var(--bq-ink); }
  .bq-hlink:hover { background: var(--bq-well); }
}
@media (min-width: 900px) {
  .bq-head { min-height: 78px; }
  .bq-menu { display: none !important; }
  .bq-hlink { display: inline-flex; }
  .bq-mark-w { font-size: 28px; }
  .bq-mark-s { font-size: 11px; margin-top: 7px; }
  .bq-cats ul { gap: 10px; }
}

.bq-main { flex: 1 0 auto; outline: none; }

/* ---------- Sections ---------- */
.bq-sec { margin-top: clamp(48px, 7vw, 96px); }
.bq-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(14px, 2vw, 22px); }
.bq-sec-head .bq-h2 { min-width: 0; }
.bq-sec-tools { display: flex; align-items: center; gap: 4px; flex: none; }

/* ---------- Hero banner carousel ---------- */
.bq-hero { padding-top: clamp(12px, 2vw, 24px); }
.bq-hero-vp { position: relative; overflow: hidden; border-radius: 18px; touch-action: pan-y; }
.bq-track { display: flex; transition: transform 640ms var(--bq-ease); }
.bq-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: clamp(220px, 62vw, 300px) auto;
  background: var(--t, var(--bq-t1));
  user-select: none;
  -webkit-user-select: none;
}
.bq-slide.t1 { --t: var(--bq-t1); }
.bq-slide.t2 { --t: var(--bq-t2); }
.bq-slide.t3 { --t: var(--bq-t3); }
.bq-slide-art { position: relative; }
.bq-plate { position: absolute; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--bq-well); box-shadow: var(--bq-plate); }
.bq-plate img { width: 100%; height: 100%; object-fit: cover; filter: var(--bq-pic); }
.bq-plate.p0 { top: 8%; right: 6%; width: 68%; }
.bq-plate.p1 { left: 6%; bottom: 0; width: 42%; z-index: 1; box-shadow: var(--bq-plate), 0 0 0 4px var(--t); }
.bq-slide-art.solo .p0 { right: 50%; transform: translateX(50%); width: 74%; }
.bq-slide-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 22px 26px; }
.bq-slide-copy .bq-display { max-width: 13ch; }
.bq-slide-copy p { max-width: 40ch; color: var(--bq-ink2); font-size: 15px; }
.bq-slide-copy .bq-btn { margin-top: 6px; }
.bq-hero-ctl { position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; margin-top: 6px; }
.bq-dots { display: flex; }
.bq-dot { display: grid; place-items: center; width: 34px; height: 44px; padding: 0; border: 0; background: none; }
.bq-dot span { display: block; width: 24px; height: 3px; overflow: hidden; border-radius: 3px; background: var(--bq-line2); }
.bq-dot i { display: block; height: 100%; background: var(--bq-acc); transform: scaleX(0); transform-origin: left; }
.bq-dot[aria-current] i { transform: scaleX(1); }
.bq-hero.is-auto .bq-dot[aria-current] i { animation: bq-fill 6500ms linear both; }
.bq-hero.is-auto.is-held .bq-dot[aria-current] i { animation-play-state: paused; }
@keyframes bq-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.bq-pause { position: absolute; right: -10px; }
.bq-hero:not(.is-auto) .bq-pause { display: none; }
.bq-pause .bq-play, .bq-pause[aria-pressed="true"] .bq-paused { display: none; }
.bq-pause[aria-pressed="true"] .bq-play { display: block; }
@media (min-width: 768px) {
  .bq-slide { grid-template-rows: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); min-height: clamp(380px, 38vw, 480px); }
  .bq-slide-art { order: 2; }
  .bq-slide-copy { justify-content: center; gap: 16px; padding: clamp(32px, 4.5vw, 64px); }
  .bq-plate.p0 { top: 12%; right: 7%; width: 72%; }
  .bq-plate.p1 { left: 0; bottom: 10%; width: 44%; }
  .bq-slide-art.solo .p0 { top: 50%; transform: translate(50%, -50%); width: 80%; }
}

/* ---------- Promo bento ---------- */
.bq-bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bq-bx {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 20px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--bq-well);
  isolation: isolate;
}
.bq-bx-h { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); line-height: 1.05; }
.bq-bx-p { color: var(--bq-ink2); font-size: 14px; }
.bq-bx-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; color: var(--bq-acc); font-size: 14px; font-weight: 600; }
.bq-bx-go .bq-i { width: 17px; height: 17px; transition: transform 260ms var(--bq-ease); }
.bq-bx-main { grid-column: 1 / -1; padding: calc(43.5% + 8px) 24px 24px; justify-content: flex-end; background: var(--bq-deep); color: var(--bq-deep-ink); }
.bq-bx-main .bq-bx-h { font-size: clamp(1.9rem, 1.5rem + 1.8vw, 3rem); max-width: 12ch; }
.bq-bx-main .bq-bx-p { color: var(--bq-deep-ink2); max-width: 34ch; font-size: 15px; }
.bq-bx-main .bq-bx-go { align-self: flex-start; margin-top: 10px; padding: 0 20px; min-height: 46px; border-radius: 999px; background: var(--bq-deep-ink); color: var(--bq-deep); }
.bq-bx-main .bq-bx-go .bq-i { width: 19px; height: 19px; }
.bq-bx-art { position: absolute; top: -14px; right: -18px; z-index: -1; width: min(58%, 380px); aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .6); transition: transform 700ms var(--bq-ease); }
.bq-bx-art img { width: 100%; height: 100%; object-fit: cover; filter: var(--bq-pic); }
.bq-bx-pin { position: absolute; top: 18px; right: 18px; color: var(--bq-acc); }
.bq-bx-pin .bq-i { width: 24px; height: 24px; stroke-width: 1.4; }
.bq-bx-visit { background: var(--bq-t2); }
.bq-bx-all { background: var(--bq-t1); }
@media (hover: hover) and (pointer: fine) {
  .bq-bx:hover .bq-bx-go .bq-i { transform: translateX(3px); }
  .bq-bx-main:hover .bq-bx-art { transform: scale(1.025); }
}
@media (min-width: 900px) {
  .bq-bento { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr; gap: 16px; }
  .bq-bx { padding: 28px; min-height: 200px; }
  .bq-bx-main { grid-column: 1; grid-row: 1 / 3; min-height: 440px; padding: 40px; }
  .bq-bx-main > :not(.bq-bx-art) { max-width: 46%; }
  .bq-bx-art { top: 50%; right: 36px; width: 46%; translate: 0 -50%; }
}

/* ---------- Shop by range (photo tiles) ---------- */
.bq-ranges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bq-rt { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 14px; background: var(--bq-well); color: #FFFFFF; isolation: isolate; }
.bq-rt img { position: absolute; top: 0; left: 0; width: 100%; height: 112%; object-fit: cover; filter: var(--bq-pic); transition: transform 800ms var(--bq-ease); }
.bq-rt::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(to top, rgb(7 19 15 / .78) 0%, rgb(7 19 15 / .52) 34%, rgb(7 19 15 / .16) 70%, rgb(7 19 15 / 0) 100%); }
.bq-rt-txt { position: absolute; left: 14px; right: 54px; bottom: 13px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.bq-rt-name { font-family: var(--bq-serif); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); font-weight: 600; line-height: 1.02; }
.bq-rt-n { font-size: 12.5px; font-weight: 500; opacity: .92; }
.bq-rt-go { position: absolute; right: 12px; bottom: 13px; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgb(255 255 255 / .8); border-radius: 50%; transition: background-color 220ms ease, color 220ms ease; }
.bq-rt-go .bq-i { width: 17px; height: 17px; transition: transform 260ms var(--bq-ease); }
@media (hover: hover) and (pointer: fine) {
  .bq-rt:hover img { transform: scale(1.04); }
  .bq-rt:hover .bq-rt-go { background: #FFFFFF; color: #0E5A47; }
  .bq-rt:hover .bq-rt-go .bq-i { transform: translateX(2px); }
}
@media (min-width: 900px) {
  .bq-ranges { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .bq-rt-txt { left: 18px; bottom: 16px; }
  .bq-rt-go { right: 16px; bottom: 16px; width: 38px; height: 38px; }
}

/* ---------- A rail of designs ---------- */
.bq-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 42%);
  gap: 10px;
  margin-inline: calc(-1 * var(--bq-gut));
  padding: 2px var(--bq-gut) 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bq-gut);
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.bq-rail::-webkit-scrollbar { display: none; }
.bq-rail > li { scroll-snap-align: start; min-width: 0; }
.bq-card { display: flex; flex-direction: column; min-width: 0; }
.bq-card:focus-visible { outline-offset: 3px; }
.bq-card-pic { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 12px; background: var(--bq-well); margin-bottom: 10px; }
.bq-card-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--bq-pic); transition: transform 700ms var(--bq-ease); }
.bq-card-pic.is-sample img, .bq-tile-pic.is-sample img, .bq-qv-pic.is-sample img { height: 108%; } /* trims the drawings' own "Sample drawing" caption; the tag says it */
.bq-card-name { overflow: hidden; font-size: 14.5px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.bq-card-meta { overflow: hidden; color: var(--bq-ink3); font-size: 12.5px; white-space: nowrap; text-overflow: ellipsis; }
@media (hover: hover) and (pointer: fine) { .bq-card:hover .bq-card-pic img { transform: scale(1.04); } }
.bq-rail-nav { display: none; }
@media (min-width: 768px) {
  .bq-rail { grid-auto-columns: calc((100% - 3 * 14px - 2 * var(--bq-gut)) / 4); gap: 14px; }
  .bq-rail-nav { display: flex; }
}
.bq-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / .94);
  color: #3E434A;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.5;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08);
}

/* ---------- Trust strip ---------- */
.bq-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block: 1px solid var(--bq-line); }
.bq-trust li { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 18px 12px 18px 0; }
.bq-trust li:nth-child(n + 3) { border-top: 1px solid var(--bq-line); }
.bq-trust .bq-i { width: 26px; height: 26px; margin-top: 1px; color: var(--bq-acc); stroke-width: 1.35; }
.bq-trust b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.bq-trust span { display: block; margin-top: 2px; color: var(--bq-ink2); font-size: 13px; line-height: 1.4; }
@media (min-width: 900px) {
  .bq-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bq-trust li { padding: 26px 20px; }
  .bq-trust li:first-child { padding-left: 0; }
  .bq-trust li + li { border-left: 1px solid var(--bq-line); }
  .bq-trust li:nth-child(n + 3) { border-top: 0; }
}

/* ---------- Visit ---------- */
.bq-visit { display: grid; gap: 28px; scroll-margin-top: 130px; }
.bq-visit-card { padding: clamp(22px, 3.4vw, 44px); border-radius: 18px; background: var(--bq-well); }
.bq-visit-card address { margin-top: 16px; font-style: normal; font-size: 16px; line-height: 1.65; }
.bq-visit-card address strong { display: block; font-weight: 600; }
.bq-hours { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 15px; }
.bq-hours .bq-i { color: var(--bq-acc); }
.bq-hours b { font-weight: 600; }
.bq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.bq-about { padding-top: 4px; }
.bq-about h3 { font-family: var(--bq-serif); font-size: 1.55rem; font-weight: 600; line-height: 1.1; margin-bottom: 12px; }
.bq-about p { max-width: 62ch; color: var(--bq-ink2); font-size: 15.5px; line-height: 1.7; }
.bq-about p + p { margin-top: 12px; }
@media (min-width: 900px) {
  .bq-visit { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

/* ---------- Footer ---------- */
.bq-foot { margin-top: clamp(56px, 8vw, 104px); padding: 0 0 env(safe-area-inset-bottom); border-top: 1px solid var(--bq-line); background: var(--bq-foot); color: var(--bq-ink); font-size: 15px; text-align: left; }
.bq-foot-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 40px 28px; }
.bq-foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.bq-foot-brand .bq-mark { align-items: flex-start; padding: 0; }
.bq-foot-brand p { max-width: 32ch; color: var(--bq-ink2); font-size: 13.5px; }
.bq-fcol h2 { margin-bottom: 4px; color: var(--bq-ink3); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bq-fcol a, .bq-fcol .bq-link { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: var(--bq-ink); font-size: 14px; text-decoration: none; }
.bq-fcol a .bq-i { width: 17px; height: 17px; color: var(--bq-ink2); }
.bq-fcol p { color: var(--bq-ink2); font-size: 13.5px; line-height: 1.6; }
.bq-fcol p + a { margin-top: 4px; }
@media (max-width: 899px) { .bq-fcol-visit { grid-column: 1 / -1; } }
.bq-staff { display: flex; flex-direction: column; align-items: flex-start; }
.bq-staff .bq-link { color: var(--bq-ink2); }
.bq-foot-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-block: 16px 24px; border-top: 1px solid var(--bq-line); color: var(--bq-ink3); font-size: 12.5px; }
@media (hover: hover) and (pointer: fine) { .bq-fcol a:hover { color: var(--bq-acc); } }
@media (min-width: 900px) {
  .bq-foot-in { grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); padding-block: 56px 36px; }
  .bq-foot-brand { grid-column: auto; }
}

/* ---------- Pages: breadcrumb, listing ---------- */
.bq-page { padding-top: 6px; }
.bq-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; color: var(--bq-ink3); font-size: 13px; }
.bq-crumbs li { display: flex; align-items: center; min-height: 44px; }
.bq-crumbs li + li::before { content: "›"; margin: 0 9px; color: var(--bq-line2); font-size: 15px; }
.bq-crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--bq-ink2); transition: color 160ms ease; }
.bq-crumbs [aria-current] { color: var(--bq-ink); font-weight: 500; }
@media (hover: hover) and (pointer: fine) { .bq-crumbs a:hover { color: var(--bq-acc); } }
.bq-count { margin-left: .2em; font-family: var(--bq-sans); font-size: .42em; font-weight: 500; letter-spacing: 0; color: var(--bq-ink3); vertical-align: .32em; }
.bq-listnote { max-width: 70ch; margin-top: 8px; color: var(--bq-ink3); font-size: 13px; }
.bq-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 18px 0 14px; }
.bq-chips { display: flex; flex: 1 1 100%; gap: 8px; min-width: 0; margin: -3px; padding: 3px; overflow-x: auto; scrollbar-width: none; }
.bq-chips::-webkit-scrollbar { display: none; }
.bq-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--bq-line2);
  border-radius: 999px;
  background: var(--bq-bg);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 140ms var(--bq-ease);
}
.bq-chip span { color: var(--bq-ink3); font-size: 12.5px; font-variant-numeric: tabular-nums; transition: color 180ms ease; }
.bq-chip .bq-i { width: 18px; height: 18px; }
.bq-chip[aria-pressed="true"] { background: var(--bq-acc); border-color: var(--bq-acc); color: var(--bq-acc-ink); }
.bq-chip[aria-pressed="true"] span { color: inherit; opacity: .8; }
@media (hover: hover) and (pointer: fine) { .bq-chip:not([aria-pressed="true"]):hover { border-color: var(--bq-ink3); } }
.bq-sort { position: relative; display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--bq-ink2); font-size: 13.5px; }
.bq-sort select {
  min-height: 44px;
  padding: 0 40px 0 16px;
  border: 1px solid var(--bq-line2);
  border-radius: 999px;
  background: var(--bq-bg);
  color: var(--bq-ink);
  font-size: 14px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
}
.bq-sort .bq-i { position: absolute; right: 14px; width: 16px; height: 16px; pointer-events: none; }
@media (min-width: 768px) {
  .bq-tools { flex-wrap: nowrap; }
  .bq-chips { flex: 1 1 auto; }
}

/* The tight grid: the photo only. On a mouse the name fades in, and holding for 2 s opens a quick view */
.bq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
@media (min-width: 768px) { .bq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }
@media (min-width: 1100px) { .bq-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bq-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--bq-well); isolation: isolate; }
.bq-tile:focus-visible { outline-offset: -3px; }
.bq-tile-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--bq-pic); transform-origin: 50% 44%; transition: transform 800ms var(--bq-ease); }
.bq-tile::before { content: ""; position: absolute; inset: 8px; z-index: 2; border: 1px solid rgb(22 24 29 / .16); border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity 300ms ease; }
.bq-tile-name {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 2;
  max-width: calc(100% - 16px);
  overflow: hidden;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / .94);
  box-shadow: 0 1px 3px rgb(0 0 0 / .1);
  color: #16181D;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bq-hold { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 3px; background: var(--bq-hold); transform: scaleX(0); transform-origin: left; transition: transform 220ms var(--bq-ease); }
.bq-tile.is-holding .bq-hold { transform: scaleX(1); transition: transform 2000ms linear; }
@media (hover: hover) and (pointer: fine) {
  .bq-tile-name { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 14px; font-size: 14px; opacity: 0; transform: translateY(6px); transition: opacity 240ms var(--bq-ease), transform 360ms var(--bq-ease); }
  .bq-tile:hover .bq-tile-name,
  .bq-tile:focus-visible .bq-tile-name { opacity: 1; transform: none; }
  .bq-tile:hover img { transform: scale(1.05); }
  .bq-tile:hover::before { opacity: 1; }
}
.bq-empty { grid-column: 1 / -1; padding: 40px 0; color: var(--bq-ink2); }
.bq-fail { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 48px; }
.bq-fail p { color: var(--bq-ink2); }
.bq-skel { border-radius: 18px; background: var(--bq-well); }
.bq-skel-hero { height: clamp(420px, 46vw, 520px); margin-top: clamp(12px, 2vw, 24px); }

/* ---------- Product page ---------- */
.bq-pdp { display: grid; gap: 22px; }
.bq-photo { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 16px; background: var(--bq-well); cursor: zoom-in; }
.bq-photo img { width: 100%; height: 100%; object-fit: contain; filter: var(--bq-pic); }
.bq-zoomhint { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / .92); color: #16181D; box-shadow: 0 2px 10px rgb(0 0 0 / .1); transition: transform 220ms var(--bq-ease); }
@media (hover: hover) and (pointer: fine) { .bq-photo:hover .bq-zoomhint { transform: scale(1.08); } }
.bq-pdp-info { display: flex; flex-direction: column; min-width: 0; }
.bq-code { margin-top: 8px; color: var(--bq-ink3); font-size: 14px; letter-spacing: .02em; }
.bq-note { margin-top: 16px; padding: 11px 14px; border-radius: 12px; background: var(--bq-acc-soft); color: var(--bq-ink); font-size: 13.5px; }
.bq-desc { max-width: 52ch; margin-top: 16px; color: var(--bq-ink2); font-size: 16px; line-height: 1.65; }
.bq-sizes { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--bq-line); }
.bq-sizes-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bq-sizes-head h2 { font-size: 15px; font-weight: 600; }
.bq-sizes-head span { color: var(--bq-ink3); font-size: 13px; }
.bq-size-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.bq-size {
  min-height: 46px;
  padding: 0;
  border: 1px solid var(--bq-line2);
  border-radius: 10px;
  background: var(--bq-bg);
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 120ms var(--bq-ease);
}
.bq-size[aria-pressed="true"] { background: var(--bq-acc); border-color: var(--bq-acc); color: var(--bq-acc-ink); }
@media (hover: hover) and (pointer: fine) { .bq-size:not([aria-pressed="true"]):hover { border-color: var(--bq-ink3); } }
.bq-weight { min-height: 1.5em; margin-top: 14px; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bq-facts { display: grid; grid-template-columns: minmax(7.5rem, auto) 1fr; margin-top: 22px; border-top: 1px solid var(--bq-line); font-size: 14.5px; }
.bq-facts dt, .bq-facts dd { padding: 11px 0; border-bottom: 1px solid var(--bq-line); }
.bq-facts dt { padding-right: 16px; color: var(--bq-ink3); }
.bq-facts dd { font-weight: 500; }
.bq-buy { display: grid; gap: 10px; margin-top: 24px; }
.bq-minor { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bq-ring .bq-i { transform-origin: 50% 12%; }
@media (min-width: 900px) {
  .bq-pdp { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); align-items: start; }
  .bq-pdp-media { position: sticky; top: 148px; }
  .bq-pdp-info { padding-top: 6px; }
}
.bq-buybar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 15;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  border-top: 1px solid var(--bq-line);
  background: var(--bq-bg);
  box-shadow: 0 -12px 30px -24px rgb(0 0 0 / .45);
  transform: translateY(110%);
  transition: transform 300ms var(--bq-ease);
}
.bq-buybar.is-on { transform: none; }
.bq:has(.bq-buybar) .bq-foot { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.bq-buybar .bq-btn { width: 100%; }
@media (min-width: 900px) { .bq-buybar { display: none; } .bq:has(.bq-buybar) .bq-foot { padding-bottom: 0; } }

/* ---------- Dialogs: quick view, menu, photo zoom ---------- */
dialog.bq-dlg { max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--bq-bg); color: var(--bq-ink); font-family: var(--bq-sans); font-size: 15px; line-height: 1.55; overscroll-behavior: contain; }
dialog.bq-dlg::backdrop { background: var(--bq-scrim); }
[data-theme="dark"] dialog.bq-qv, [data-theme="dark"] dialog.bq-drawer { background: var(--bq-well); box-shadow: var(--bq-lift), 0 0 0 1px var(--bq-line); }
.bq-x { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--bq-bg); box-shadow: 0 1px 3px rgb(0 0 0 / .12); }

dialog.bq-qv { width: min(920px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; overflow: auto; border-radius: 20px; box-shadow: var(--bq-lift); }
.bq-qv-in { position: relative; display: grid; }
.bq-qv-pic { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bq-well); }
.bq-qv-pic img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; filter: var(--bq-pic); }
.bq-qv-body { display: flex; flex-direction: column; padding: 26px 24px 24px; }
.bq-qv-body .bq-code { margin-top: 6px; }
.bq-qv-body .bq-facts { margin-top: 18px; }
.bq-qv-act { display: grid; gap: 10px; margin-top: 22px; }
@media (min-width: 640px) {
  .bq-qv-in { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .bq-qv-pic { aspect-ratio: auto; min-height: 440px; }
  .bq-qv-body { padding: 40px 32px 30px; }
}

dialog.bq-drawer { position: fixed; inset: 0 auto 0 0; width: min(340px, 88vw); height: 100%; max-height: 100dvh; overflow-y: auto; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left); border-radius: 0 18px 18px 0; }
.bq-dr-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 6px 22px; }
.bq-dr-head .bq-mark { align-items: flex-start; padding: 0; }
.bq-dr-list { padding: 6px 0 10px; border-bottom: 1px solid var(--bq-line); }
.bq-dr-list a { display: flex; align-items: center; justify-content: space-between; min-height: 50px; padding: 0 22px; font-family: var(--bq-serif); font-size: 1.4rem; font-weight: 600; }
.bq-dr-list a .bq-i { width: 18px; height: 18px; color: var(--bq-ink3); }
.bq-dr-list a[aria-current] { color: var(--bq-acc); }
.bq-dr-contact { display: grid; gap: 10px; padding: 20px 22px; }
.bq-dr-foot { display: flex; flex-direction: column; align-items: flex-start; padding: 4px 22px 24px; }

dialog.bq-zoom { position: fixed; inset: 0; width: 100%; height: 100%; background: transparent; overflow: hidden; }
dialog.bq-zoom[open] { display: flex; overflow: auto; }
dialog.bq-zoom::backdrop { background: var(--bq-bg); }
.bq-zoom img { flex: none; margin: auto; width: min(calc(100vw - 24px), calc((100dvh - 120px) * 4 / 3)); max-width: none; aspect-ratio: 4 / 3; height: auto; object-fit: contain; border-radius: 14px; background: var(--bq-well); filter: var(--bq-pic); cursor: zoom-out; }
@media (orientation: portrait) and (max-width: 767px) { .bq-zoom img { width: 175vw; border-radius: 0; } }
.bq-zoom .bq-x { position: fixed; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }

/* ---------- Reduced motion: nothing slides or zooms; fades stay short ---------- */
@media (prefers-reduced-motion: reduce) {
  .bq-track, .bq-msg, .bq-cats a::after, .bq-tile-pic img, .bq-rt img, .bq-card-pic img, .bq-bx-art { transition-property: opacity; }
  .bq-msg, .bq-msg.is-out { transform: none; }
  .bq-tile:hover img, .bq-rt:hover img, .bq-card:hover .bq-card-pic img, .bq-bx-main:hover .bq-bx-art { transform: none; }
  .bq-tile-name { transform: none !important; }
  .bq-buybar { transform: none; opacity: 0; visibility: hidden; transition: opacity 160ms ease, visibility 0s 160ms; }
  .bq-buybar.is-on { opacity: 1; visibility: visible; transition: opacity 160ms ease; }
}

/* A design without a photo yet: the shared name card (catalogue.css), filling the picture box */
#boutique-app .krs-slot { position: absolute; inset: 0; aspect-ratio: auto; color: var(--bq-ink); background: var(--bq-well); }
#boutique-app .krs-slot b { color: var(--bq-acc); font-family: var(--bq-serif); font-weight: 600; }
#boutique-app .krs-slot b[lang="ta"] { font-family: var(--bq-sans); }
#boutique-app .bq-photo.is-slot { cursor: default; }
#boutique-app .bq-rt:has(.krs-slot) { background: var(--bq-acc-soft); }
#boutique-app .bq-rt .krs-slot { background: none; padding-bottom: 34%; }
#boutique-app .bq-rt .krs-slot-en { display: none; }
#boutique-app .bq-rt:has(.krs-slot)::after { background: linear-gradient(to top, var(--bq-deep) 0%, rgb(14 90 71 / .55) 45%, rgb(14 90 71 / 0) 100%); }
@media not all and (hover: hover) and (pointer: fine) {
  /* On a phone the tile's own name label already shows the English name at the bottom */
  #boutique-app .bq-tile .krs-slot { padding-bottom: 22%; }
  #boutique-app .bq-tile .krs-slot-en { display: none; }
}
