/* cb-extra.css — the theme's own additions on top of the demo's stylesheet.
   The demo's CSS (cb.css) is shipped byte-for-byte so a re-mirror can never lose our work; anything
   we add lives here. Everything below uses the demo's own tokens, so it cannot drift from the design. */

/* ---------- the wordmark placeholder (playbook Step 11) -------------------------------------- */
/* Our store has no product photos, so most picture boxes draw this. It sizes itself to its own box
   with a container query, in ONE place, so a 84px cart thumb and a full-bleed editorial frame both
   look deliberate. */
.cb-ph { width: 100%; height: 100%; display: block; }
.cb-ph--none {
  container-type: inline-size;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--soft) 0%, var(--soft-2) 100%);
  box-shadow: inset 0 0 0 1px var(--line);
  text-align: center; padding: 8%;
}
.cb-ph__mark { display: flex; flex-direction: column; align-items: center; gap: .45em; line-height: 1; color: var(--muted); }
.cb-ph__mark b { font-family: var(--serif); font-weight: 400; font-stretch: 82%; letter-spacing: .02em; font-size: 22cqw; }
.cb-ph__mark i { font-style: normal; font-family: var(--sans); font-weight: 500; letter-spacing: .34em; text-transform: uppercase; font-size: 6cqw; }
/* very small boxes (cart line, thumb rails) show the mark alone */
@container (max-width: 110px) { .cb-ph__mark i { display: none } .cb-ph__mark b { font-size: 26cqw } }
@supports not (container-type: inline-size) {
  .cb-ph__mark b { font-size: 1.4rem } .cb-ph__mark i { font-size: .5rem }
}

/* ---------- a card whose photo is a placeholder still behaves like a card --------------------- */
.pc .pi .cb-ph--none, .ac .ai .cb-ph--none, .lc .cb-ph--none, .pc2-f .cb-ph--none { position: absolute; inset: 0; }

/* ---------- metal swap: the loading look (card-metal-swap.md §3.3) ---------------------------- */
[data-card].is-swapping [data-card-img], [data-card].is-swapping [data-card-img2],
[data-card].is-swapping .cb-ph, [data-card].is-swapping .life { opacity: .55; transition: opacity .2s }
/* a design the chosen metal is not made in leaves the grid (rule 3) */
[data-card][data-cb-out] { display: none !important }
[data-ff="metal"] small { margin-left: .4em; opacity: .6; font-size: .78em }
[data-card].is-swapping [data-card-price], [data-card].is-swapping [data-card-title] { opacity: .5 }
[data-card].is-swapping .cb-shimmer { opacity: 1 }
.cb-shimmer { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .2s;
  background: linear-gradient(100deg, transparent 20%, rgba(255,255,255,.65) 50%, transparent 80%);
  background-size: 220% 100%; animation: cbShim 1.1s linear infinite }
@keyframes cbShim { to { background-position: -220% 0 } }
@media (prefers-reduced-motion: reduce) { .cb-shimmer { animation: none } }
/* THE METAL DOT'S SIZE AND RING. The demo draws the dots as `<button aria-pressed>` and sizes them
   with `.pc2-sw button { width:16px; height:16px }`; ours are `<a href>`, because card-metal-swap.md
   requires real links (so the dot works with JavaScript off and Ctrl / Cmd / middle click opens the
   metal in a new tab by itself). A link matches neither of the demo's two selectors, so the dots
   came out 0x0 - invisible and untappable on every card at every width, a feature only a script
   could reach. Measured on the draft at 390px and 1280px, 18 Nov. These two rules are the demo's
   own declarations, to the pixel, applied to the element we ship. */
.pc2-sw [data-card-swatch] { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); position: relative; display: block; flex: 0 0 auto }
[data-card-swatch][aria-current="true"]::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 1px var(--char) }
/* the finger. The demo's row is 16px dots 7px apart, so a full 44px target would cover the
   neighbouring dot and steal its tap; the hit area grows as far as the gap allows (22px) and no
   further, which keeps the demo's look and still beats a bare 16px dot. */
.pc2-sw [data-card-swatch]::before { content: ""; position: absolute; inset: -3px; border-radius: 50% }

/* ---------- floating actions: call now + back to top, both bottom-LEFT (see note below) ------ */
.cb-float { position: fixed; z-index: 70; bottom: calc(20px + env(safe-area-inset-bottom,0px)); display: inline-flex;
  align-items: center; gap: 9px; padding: 12px 18px; background: var(--ink); color: var(--bg);
  font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  box-shadow: 0 10px 30px -14px rgba(0,0,0,.5) }
.cb-float svg { width: 15px; height: 15px }
.cb-call { left: clamp(14px, 2.4vw, 32px) }
/* Back to top sits bottom-LEFT (Harsh, 19 Nov: "direct top par jane ka jo buttton he vo left
   said"). It used to be bottom-right, sharing that corner with the platform's chat widget and
   having to be lifted 86px to clear the bubble; on the left there is nothing to dodge. This
   deliberately departs from playbook Step 26, which put it on the right. */
.cb-top { left: clamp(14px, 2.4vw, 32px); padding: 12px; opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .4s var(--ease), transform .5s var(--ease) }
.cb-top.on { opacity: 1; transform: none; pointer-events: auto }
/* if the store ever sets a phone, "Call now" takes the bottom-left corner - then the top button
   stacks above it instead of landing on it (.cb-call is rendered before .cb-top). */
.cb-call ~ .cb-top { bottom: calc(78px + env(safe-area-inset-bottom,0px)) }
@media (max-width: 560px) { .cb-call span { display: none } .cb-call { padding: 12px } }

/* ---------- wishlist drawer (playbook Step 19) ------------------------------------------------ */
.drawer.wish9 { right: 0; transform: translateX(100%) }
.drawer.wish9.open { transform: none }
.wish9-list { flex: 1; overflow-y: auto }
.wish9-empty { margin: auto; text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; padding: 30px }
.wish9-empty h4 { font-family: var(--serif); font-stretch: 72%; font-size: 2.2rem }

/* ---------- numbered pager (collection-filters-rules 3, rule 6) ------------------------------- */
.cb-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 44px }
.cb-pager a, .cb-pager span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px;
  font-size: .86rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s }
.cb-pager a:hover { box-shadow: inset 0 0 0 1px var(--ink) }
.cb-pager [aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: none }
.cb-pager .gap { box-shadow: none; min-width: 20px }
.cb-pager .off { opacity: .35; box-shadow: inset 0 0 0 1px var(--line) }
.cb-count { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 18px }
@media (max-width: 560px) { .cb-pager a, .cb-pager span { min-width: 36px; height: 36px; padding: 0 7px }
  .cb-pager a.far { display: none } }

/* ---------- collection description: intro / guide / FAQ (collection-description-rule.md) ------- */
.col-desc-intro { max-width: 560px; margin: 18px auto 0; color: var(--ink-2); font-weight: 300; line-height: 1.7 }
.col-desc-more { border-top: 1px solid var(--line); padding-block: clamp(56px, 9vw, 104px) }
.col-desc-in { display: flex; flex-direction: column; gap: clamp(50px, 7vw, 90px) }
.col-desc-guide, .col-desc-faq { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px) }
.col-desc-toc { position: sticky; top: 110px; align-self: start; display: flex; flex-direction: column; gap: 14px }
.col-desc-kick { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500 }
.col-desc-big { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 3.6vw, 3.2rem); line-height: 1.02 }
.col-desc-big em { font-style: italic; font-stretch: 80% }
.col-desc-toc ol { margin: 10px 0 0; padding: 0; list-style: none; counter-reset: cd }
.col-desc-toc li { counter-increment: cd; padding: 7px 0; border-top: 1px solid var(--line); font-size: .92rem }
.col-desc-toc li::before { content: counter(cd, lower-roman) ". "; color: var(--muted) }
.col-desc-art { display: flex; flex-direction: column }
.col-desc-s { border-top: 1px solid var(--line); padding-block: 26px }
.col-desc-s h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 12px; scroll-margin-top: 110px }
.col-desc-tx { color: var(--ink-2); font-weight: 300; line-height: 1.75 }
.col-desc-tx ul { margin: 10px 0 0; padding-left: 1.1em }
.col-desc-qs details { border-top: 1px solid var(--line) }
.col-desc-qs details:last-child { border-bottom: 1px solid var(--line) }
.col-desc-qs summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between;
  gap: 18px; font-family: var(--serif); font-size: 1.2rem }
.col-desc-qs summary::-webkit-details-marker { display: none }
.col-desc-qs summary::after { content: "+"; font-family: var(--sans); font-size: 1.1rem; line-height: 1; transition: transform .4s var(--ease) }
.col-desc-qs details[open] summary::after { transform: rotate(45deg) }
.col-desc-a { padding-bottom: 20px; color: var(--ink-2); font-weight: 300; line-height: 1.75 }
@media (max-width: 900px) { .col-desc-guide, .col-desc-faq { grid-template-columns: 1fr } .col-desc-toc { position: static } }

/* ---------- the collections panel: one pane per collection, all in the server HTML ------------ */
/* The demo rebuilt its three panes from a data array; ours are already on the page and only the
   shown one is displayed. `display:contents` keeps .ce-frame's own grid, so the design is the
   demo's and nothing is nested one level deeper. */
.ce-pane { display: none }
.ce-pane.on { display: contents }
@supports not (display: contents) { .ce-pane.on { display: grid; grid-column: 1 / -1; grid-template-columns: inherit; gap: inherit } }

/* ---------- search suggestions ---------------------------------------------------------------- */
.sres-i { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line) }
.sres-im { width: 56px; height: 56px; background: var(--soft); display: block; overflow: hidden }
.sres-t { display: flex; flex-direction: column; gap: 3px; min-width: 0 }
.sres-t b { font-size: .88rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.sres-t span { font-size: .84rem; color: var(--muted) }
.sres-all { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500 }
.sres-none { padding: 18px 0; color: var(--muted) }
.search-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px }
.search input { width: 100% }

/* ---------- the footer's contact line and socials --------------------------------------------- */
.f9-soc { display: flex; gap: 14px; margin-top: 10px }
.f9-soc svg { width: 16px; height: 16px }
.f9-legal a { display: inline }
.f9-ok { margin-top: 14px; font-family: var(--serif); font-size: 1.2rem }

/* ---------- a drawer that is open stops the page behind it from scrolling --------------------- */
html.cb-locked, html.cb-locked body { overflow: hidden }

/* NO `overflow-x` on the root. It was here to clip the closed drawers, and it cost the whole page
   its sticky positioning — the kind of trade nothing on screen announces.
   Why: the demo's own sheet has `body{overflow-x:hidden}`. That value only reaches the viewport
   while the ROOT's overflow is `visible`; the moment the root carries any overflow of its own, the
   body's value stops propagating and applies to the BODY box instead, which turns the body into a
   scroll container. Every `position:sticky` inside it then sticks to the body's scrollport rather
   than to the screen, and the body is not what scrolls — so nothing sticks at all. Measured on the
   draft: the home page's pinned scroll scene (`.az-pin`) sat at top -1413 instead of 0, and three
   whole viewports of the home page scrolled past as blank cream.
   With the rule gone the body's value propagates again: sticky works (pin top 0) and the root still
   does not scroll sideways — root scrollWidth 1265 against a 1280 viewport, scrollLeft 0, and the
   same at 375. The closed drawers are clipped by that propagated value, which is what the demo
   relied on all along. */

/* and a closed drawer should not be reachable by Tab either — the demo's own idiom for `.search` */
.drawer { visibility: hidden; transition: transform .8s var(--ease), visibility 0s .8s }
.drawer.open { visibility: visible; transition: transform .8s var(--ease) }
.peek { visibility: hidden }
.peek.on { visibility: visible }

/* ---------- the bag line's right-hand column -------------------------------------------------- */
.ci-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right }
.ci-r .up { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.ci-r .up:hover { color: var(--ink) }
.cb-care-note { grid-column: 1 / -1; font-size: .78rem; color: var(--muted) }

/* ---------- the header's wishlist count ------------------------------------------------------- */
.h9h-r .ccw { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--ink); color: var(--bg); font-size: .66rem; padding: 0 5px }
.h9h.solid .h9h-r .ccw { background: var(--ink); color: var(--bg) }

/* ---------- a class collision carried over from the demo's own stylesheet ---------------------- */
/* The demo uses `.mn` for TWO different things: the home page's pinned manifesto section
   (`.mn{height:340vh}`, line ~1969) and the product gallery's main picture box
   (`.gal9 .mn{aspect-ratio:.9}`, line ~1180). The manifesto rule is later in the file and sets a
   height, which `.gal9 .mn` never overrides — so on a product page the picture box inherited
   340vh and the scanline overlay with it. Measured on the draft before this: 2754 × 3060 px.
   The gallery's own rule states the intent (an aspect ratio), so the height and the overlay are
   put back where they belong. */
.gal9 .mn { height: auto }
.gal9 .mn::before { content: none }

/* ---------- product page additions ------------------------------------------------------------ */
.pd-3d { position: absolute; inset: 0; background: var(--soft) }
.pd-3d iframe { width: 100%; height: 100%; border: 0; display: block }
.gal9 .mn { position: relative }
.th9-wrap, .gal9 .th { scrollbar-width: none }
.gal9 .th button { position: relative }
.gal9 .th .cb-play, .cb-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-size: .7rem; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); pointer-events: none }
.gal9 .th video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none }
.th-3d { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2) }
.th-3d svg { width: 20px; height: 20px }
.cb-sel { width: 100%; max-width: 420px }
.og-note { display: block; margin-top: 8px; font-size: .78rem; color: var(--muted); line-height: 1.6 }
.og-qty .stepper { margin-top: 0 }
.pp9 .pp-save { display: inline-block; margin-left: 10px; padding: 3px 9px; background: var(--ink); color: var(--bg);
  font-size: .68rem; letter-spacing: .06em; text-transform: uppercase }
.pp9 s { margin-left: 10px; color: var(--muted) }
.pd-about { margin-top: 26px; max-width: 70ch; color: var(--ink-2); font-weight: 300; line-height: 1.75 }
.pd-about h3 { font-family: var(--serif); font-size: 1.4rem; margin-bottom: 10px }
.cb-own-diamond { display: inline-flex; margin-top: 12px }
.trust9 img { width: 22px; height: 22px; object-fit: contain; flex: none }
.og .seg9 a, .og .mets a { text-decoration: none }
.cb-rv-card { display: flex; flex-direction: column; gap: 12px }

/* ---------- the listing's filter number inputs ------------------------------------------------- */
.fd2-nums { display: flex; gap: 10px; margin-top: 12px }
.fd2-nums input { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); padding: 10px 12px }
.cl-clear { margin-left: 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.cl-clear:hover { color: var(--ink) }
.sg-shapes a { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-align: center }
.sg-shapes a small { font-size: .7rem; color: var(--muted) }
.cb-shape { width: 44px; height: 44px }

/* ---------- the bag page ----------------------------------------------------------------------- */
/* The demo had only a drawer, so the page is built from the drawer's own parts in the theme's
   type and spacing. */
.cb-bag { padding-block: 40px clamp(60px, 8vw, 110px) }
.cb-bag-g { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr); gap: clamp(24px, 4vw, 60px); align-items: start }
.cb-bag-list { display: flex; flex-direction: column }
.cb-bag-line { grid-template-columns: 110px minmax(0, 1fr) auto }
.cb-bag-line .cimg { width: 110px; height: 110px }
.cb-bag-sum { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; padding: 26px;
  background: var(--soft); box-shadow: inset 0 0 0 1px var(--line) }
.cb-bag-sum h2 { font-family: var(--serif); font-size: 1.8rem; margin-bottom: 6px }
.cb-bag-sum .r { display: flex; justify-content: space-between; gap: 14px; font-size: .92rem }
.cb-bag-sum .r.tot { padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.5rem }
.cb-bag-sum .btn { width: 100% }
.cb-bag-note { font-size: .78rem; color: var(--muted); line-height: 1.6 }
@media (max-width: 900px) { .cb-bag-g { grid-template-columns: 1fr } .cb-bag-sum { position: static } }

/* ---------- content pages ---------------------------------------------------------------------- */
.cb-prose { max-width: 70ch }
.two .cb-prose { max-width: none }
.cb-prose-b { color: var(--ink-2); font-weight: 300; line-height: 1.8; display: flex; flex-direction: column; gap: 16px }
.cb-prose-b p { margin: 0 }
.cb-prose-b ul { margin: 0; padding-left: 1.1em; display: flex; flex-direction: column; gap: 8px }
.cb-prose h2 { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3rem); margin-bottom: 16px; line-height: 1.04 }
.cb-cta { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px }
.cb-cta h2 { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04 }

/* ---------- search, collection index, suggestions ---------------------------------------------- */
.cb-searchbar { display: flex; gap: 10px; align-items: center; max-width: 520px; margin-top: 18px;
  border-bottom: 1px solid var(--ink) }
.cb-searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 12px 0 }
.cb-searchbar input:focus { outline: none }
.cb-searchbar button { display: grid; place-items: center; width: 40px; height: 40px }
.cb-searchbar svg { width: 18px; height: 18px }
.cb-sugg { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px }
.cb-collist { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) }
.cb-colcard { display: flex; flex-direction: column; gap: 12px }
.cb-colcard-i { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft); display: block }
.cb-colcard-i img, .cb-colcard-i .cb-ph { position: absolute; inset: 0 }
.cb-colcard-b { display: flex; flex-direction: column; gap: 3px }
.cb-colcard-b b { font-size: .9rem; letter-spacing: .02em; text-transform: uppercase; font-weight: 500 }
.cb-colcard-b small { font-size: .78rem; color: var(--muted) }

/* ---------- account ----------------------------------------------------------------------------- */
.cb-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(24px, 5vw, 70px);
  padding-block: 20px clamp(60px, 8vw, 110px); align-items: start }
.cb-auth-alt { padding: 26px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start }
.cb-auth-alt h2 { font-size: 1.8rem }
.cb-acct { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(24px, 4vw, 60px);
  padding-block: 20px clamp(60px, 8vw, 110px); align-items: start }
.cb-acct-nav { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 110px }
.cb-acct-nav a { font-size: .86rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding: 6px 0 }
.cb-acct-nav a[aria-current] { color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--ink); padding-left: 10px }
.cb-acct h2 { font-size: 1.8rem; margin-bottom: 16px }
.cb-addr { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line) }
.cb-addr p { color: var(--ink-2); font-weight: 300; line-height: 1.7 }
@media (max-width: 860px) { .cb-auth, .cb-acct { grid-template-columns: 1fr } .cb-acct-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 18px } }

/* ---------- the ring builder -------------------------------------------------------------------- */
.cb-rb { padding-bottom: clamp(60px, 8vw, 110px) }
.cb-rb-step { padding-top: 10px }
.cb-rb-more { margin-top: 32px; text-align: center }
.cb-rb-g { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(22px, 3vw, 46px); align-items: start }
.cb-rb-filters { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 22px }
.cb-rb-f h4 { margin: 0 0 10px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline }
.cb-rb-f h4 em { font-style: normal; font-size: .76rem; color: var(--muted); letter-spacing: .02em; text-transform: none }
.cb-rb-origin { display: grid; grid-template-columns: 1fr 1fr; box-shadow: inset 0 0 0 1px var(--line) }
.cb-rb-origin button { padding: 11px 8px; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase }
.cb-rb-origin button[aria-selected="true"] { background: var(--ink); color: var(--bg) }
.cb-rb-shapes, .cb-rb-fancy, .cb-rb-labs, .cb-rb-quick, .cb-rb-tabs { display: flex; flex-wrap: wrap; gap: 6px }
.cb-rb-shapes button, .cb-rb-fancy button, .cb-rb-labs button, .cb-rb-quick button, .cb-rb-tabs button {
  padding: 7px 11px; font-size: .78rem; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, color .3s, box-shadow .3s }
.cb-rb-shapes button[aria-pressed="true"], .cb-rb-fancy button[aria-pressed="true"],
.cb-rb-labs button[aria-pressed="true"], .cb-rb-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none }
.cb-rb-range { display: flex; gap: 8px; align-items: center }
.cb-rb-range input[type=number] { flex: 1; min-width: 0; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); padding: 9px 10px }
.cb-rb-range input[type=range] { flex: 1; min-width: 0 }
.cb-rb-adv summary { cursor: pointer; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; padding: 10px 0 }
.cb-rb-adv > div { margin-bottom: 16px }
.cb-rb-reset { align-self: flex-start; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.cb-rb-reset:hover { color: var(--ink) }
.cb-rb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px }
.cb-rb-top b { font-family: var(--serif); font-size: 1.5rem; font-weight: 400 }
.cb-rb-view { display: flex; box-shadow: inset 0 0 0 1px var(--line) }
.cb-rb-view button { padding: 8px 14px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase }
.cb-rb-view button[aria-pressed="true"] { background: var(--ink); color: var(--bg) }
.cb-rb-h3 { font-family: var(--serif); font-weight: 400; font-size: 1.15rem; margin: 24px 0 14px }
.cb-rb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 18px }
.cb-rb-grid.is-list { display: block }
.cb-rb-card { display: flex; flex-direction: column; gap: 7px; cursor: pointer; padding: 10px;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s }
.cb-rb-card:hover, .cb-rb-card:focus-visible { box-shadow: inset 0 0 0 1px var(--ink) }
.cb-rb-ph { position: relative; aspect-ratio: 1; background: var(--soft); display: block; overflow: hidden }
.cb-rb-ph img { width: 100%; height: 100%; object-fit: cover; display: block }
.cb-rb-noimg { position: absolute; inset: 0; display: grid; place-items: center; font-size: .76rem; color: var(--muted) }
.cb-rb-360 { position: absolute; right: 7px; bottom: 7px; background: var(--bg); padding: 2px 6px; font-size: .62rem;
  letter-spacing: .06em; font-style: normal }
.cb-rb-cert { font-size: .66rem; letter-spacing: .04em; color: var(--muted) }
.cb-rb-spec { font-size: .8rem; line-height: 1.45 }
.cb-rb-price { font-family: var(--serif); font-size: 1.1rem; font-weight: 400 }
.cb-rb-skel { aspect-ratio: .82; background: linear-gradient(100deg, var(--soft) 20%, var(--soft-2) 50%, var(--soft) 80%);
  background-size: 220% 100%; animation: cbShim 1.2s linear infinite }
.cb-rb-table { width: 100%; border-collapse: collapse; font-size: .84rem }
.cb-rb-table th { text-align: left; font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--line) }
.cb-rb-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle }
.cb-rb-row { cursor: pointer }
.cb-rb-row:hover { background: var(--soft) }
.cb-rb-thumb { position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; background: var(--soft); overflow: hidden }
.cb-rb-thumb img { width: 100%; height: 100%; object-fit: cover }
.cb-rb-thumb em { position: absolute; right: 2px; bottom: 2px; font-size: .55rem; background: var(--bg); padding: 0 3px; font-style: normal }
.cb-rb-view-l { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap }
.cb-rb-msg { padding: 40px 0; color: var(--muted); text-align: center }
.cb-rb-detail { margin-top: 24px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); padding: clamp(18px, 3vw, 34px) }
.cb-rb-x { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px }
.cb-rb-detail-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 46px) }
.cb-rb-stage { aspect-ratio: 1; background: var(--soft); display: grid; place-items: center; overflow: hidden }
.cb-rb-stage img, .cb-rb-stage video, .cb-rb-stage iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block }
.cb-rb-media { display: flex; gap: 8px; margin-top: 10px }
.cb-rb-media .cb-rb-thumb { font-size: .62rem; text-align: center; line-height: 1.2; padding: 4px; box-shadow: inset 0 0 0 1px var(--line) }
.cb-rb-media .cb-rb-thumb.on { box-shadow: inset 0 0 0 1px var(--ink) }
.cb-rb-info { display: flex; flex-direction: column; gap: 12px; align-items: flex-start }
.cb-rb-info h3 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 400 }
.cb-rb-sum { display: flex; gap: 18px; flex-wrap: wrap; font-size: .84rem; padding: 12px 0; border-block: 1px solid var(--line); width: 100% }
.cb-rb-sum b { font-weight: 500 }
.cb-rb-specs { width: 100% }
.cb-rb-rev-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 34px); align-items: start }
.cb-rb-rev-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; box-shadow: inset 0 0 0 1px var(--line) }
.cb-rb-rev-card h3 { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500 }
.cb-rb-rev-card img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--soft) }
.cb-rb-rev-card ul { margin: 0; padding-left: 1.1em; font-size: .82rem; color: var(--ink-2) }
.cb-rb-rev-card label { display: flex; flex-direction: column; gap: 6px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase }
.cb-rb-rev-card select, .cb-rb-rev-card input { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line);
  padding: 11px 12px; letter-spacing: normal; text-transform: none }
.cb-rb-tot { display: flex; justify-content: space-between; font-size: .9rem }
.cb-rb-tot.grand { padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--serif); font-size: 1.35rem }
.cb-rb-restart { align-self: flex-start; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
@media (max-width: 1000px) {
  .cb-rb-g { grid-template-columns: 1fr }
  .cb-rb-filters { position: static }
  .cb-rb-detail-g { grid-template-columns: 1fr }
  .cb-rb-rev-g { grid-template-columns: 1fr }
}
@media (max-width: 560px) {
  .cb-rb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px }
  .cb-rb-table { font-size: .76rem }
  .cb-rb-table th:nth-child(6), .cb-rb-table td:nth-child(6),
  .cb-rb-table th:nth-child(8), .cb-rb-table td:nth-child(8) { display: none }
}

/* ---------- the mega menu (playbook Step 3) and its easing (Step 18) --------------------------- */
/* The demo's own mega rules target `.nav > div:hover`, a class this header does not use, so the
   behaviour is restated here for `.nav9 .nav-i` — same look, with the softer open the user asked
   for: a 0.3s fade and an 8px slide, and the panel stays put while the content cross-fades when
   the pointer moves from one item to the next. */
.h9h { position: relative }
.nav9 { align-items: stretch }
.nav9 .nav-i { position: static; display: flex; align-items: center }
.nav9 .nav-i > a { display: inline-flex; align-items: center; gap: 7px; height: 100% }
.nav9 .nav-i .chev { width: 10px; height: 6px; transition: transform .4s var(--ease) }
.nav9 .nav-i.open > a .chev { transform: rotate(180deg) }
.nav9 .mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
  background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 40px -30px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s }
.nav9 .nav-i.open .mega { opacity: 1; visibility: visible; transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease) }
.nav9 .mega-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 26px 30px; padding-block: 34px 38px; align-items: start }
.nav9 .mega-c.mega-2 { column-count: 2; column-gap: 24px }
.nav9 .mega-c.mega-2 h6 { column-span: all }
.nav9 .mega h6 { margin: 0 0 12px; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; color: var(--muted) }
.nav9 .mega a.ml { display: block; padding: 4px 0; font-size: .9rem; transition: transform .4s var(--ease), color .3s }
.nav9 .mega a.ml:hover { transform: translateX(6px) }
.nav9 .mcard { display: flex; flex-direction: column; gap: 9px }
.nav9 .mcard .mi { position: relative; aspect-ratio: 1.3; overflow: hidden; background: var(--soft); display: block }
.nav9 .mcard .mi img, .nav9 .mcard .mi .cb-ph { position: absolute; inset: 0; transition: transform 1.2s var(--ease) }
.nav9 .mcard:hover .mi img { transform: scale(1.06) }
.nav9 .mcard span { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500 }
.nav9 .mcard small { font-size: .78rem; color: var(--muted) }
@media (prefers-reduced-motion: reduce) {
  .nav9 .mega { transition: opacity .15s linear, visibility 0s .15s }
  .nav9 .nav-i.open .mega { transition: opacity .15s linear }
}
/* a scrim behind the open panel, outside the header's own stacking context so it cannot flicker
   under the nav (a bug this exact pattern caused in an earlier theme) */
.cb-mega-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(17,17,17,.28);
  opacity: 0; pointer-events: none; transition: opacity .3s }
.cb-mega-scrim.on { opacity: 1 }

/* ---------- the overlay's sub-groups (the phone's menu) ---------------------------------------- */
.ov-item { display: flex; flex-direction: column }
.ov-sub summary { list-style: none; cursor: pointer; padding: 4px 0 10px; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: #8d8d8d }
.ov-sub summary::-webkit-details-marker { display: none }
.ov-sub summary::after { content: " +" }
.ov-sub[open] summary::after { content: " −" }
.ov-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px 24px; padding-bottom: 18px }
.ov-g h6 { margin: 0 0 7px; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #777; font-weight: 500 }
.ov-g a { display: block; padding: 4px 0; font-family: var(--sans); font-size: .86rem; color: #bdbdbd }
.ov-g a:hover { color: #fff }

/* ---------- the announcement bar ---------------------------------------------------------------- */
.cb-util { background: var(--bg) }
.cb-util .util-in { display: flex; justify-content: space-between; align-items: center; height: 40px; gap: 16px }
.cb-util .soc { display: flex; gap: 14px }
.cb-util .soc svg { width: 14px; height: 14px }
.cb-util .util-r { display: flex; gap: 22px; align-items: center; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase }
@media (max-width: 900px) { .cb-util .util-mid, .cb-util .util-r .ot { display: none } }

/* ---------- the footer's four columns beside the newsletter ------------------------------------ */
.f9-top { grid-template-columns: minmax(0, 1.25fr) repeat(4, minmax(0, 1fr)) }
.f9-contact .s + .s { margin-top: 2px }
@media (max-width: 1100px) { .f9-top { grid-template-columns: repeat(2, minmax(0, 1fr)) } .f9-news { grid-column: 1 / -1 } }
@media (max-width: 620px) { .f9-top { grid-template-columns: 1fr } }

/* ---------- "Protect this item" (protect-this-item-rule.md) ----------------------------------- */
.cb-pc { grid-column: 1 / -1 }
.cb-pc-in { display: flex; flex-direction: column; gap: 14px; padding: 22px; margin-top: 16px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line) }
.cb-pc-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap }
.cb-pc-t { font-family: var(--serif); font-size: 1.4rem }
.cb-pc-lk { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted) }
.cb-pc-lk:hover { color: var(--ink) }
.cb-pc-s { margin: -6px 0 0; font-size: .8rem; line-height: 1.6; color: var(--muted) }
.cb-pc-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 6px }
.cb-pc-o { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px;
  min-width: 0; padding: 26px 8px 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer; text-align: center; font: inherit; transition: box-shadow .3s, background .3s }
.cb-pc-o.on { background: var(--soft); box-shadow: inset 0 0 0 1px var(--ink) }
.cb-pc-o:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px }
.cb-pc-r { position: absolute; top: 10px; left: 10px; width: 13px; height: 13px; border: 1px solid var(--muted); border-radius: 50% }
.cb-pc-o.on .cb-pc-r { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--bg) }
.cb-pc-n { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; font-weight: 500 }
.cb-pc-p { font-family: var(--serif); font-size: 1.5rem; line-height: 1 }
.cb-pc-u { font-size: .72rem; color: var(--muted) }
.cb-pc-top { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 3px 9px;
  background: var(--ink); color: var(--bg); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap }
.cb-pc-b { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line) }
.cb-pc-bt { font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 500 }
.cb-pc-bl { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 22px; font-size: .84rem; color: var(--ink-2) }
.cb-pc-bl li::before { content: "✓ "; color: var(--gold) }
.cb-pc-tot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 14px; border-top: 1px solid var(--line) }
.cb-pc-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; background: var(--soft); font-size: .76rem }
.cb-pc-badge.off { color: var(--muted) }
.cb-pc-it { display: flex; gap: 10px; align-items: baseline; font-size: .92rem }
.cb-pc-it span:last-child { font-family: var(--serif); font-size: 1.25rem }
html.cb-care-busy a[href="/checkout"], html.cb-care-busy [data-checkout] { opacity: .7; cursor: progress }
@media (max-width: 820px) {
  .cb-pc-in { padding: 16px 14px }
  .cb-pc-g { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .cb-pc-bl { grid-template-columns: 1fr }
}

/* ---------- skip link + a11y ------------------------------------------------------------------ */
.cb-skip { position: absolute; left: -9999px; top: 0; z-index: 400; background: var(--ink); color: var(--bg); padding: 12px 18px }
.cb-skip:focus { left: 8px; top: 8px }


/* ---------------------------------------------------------------- PDP gallery on a phone
   The demo's own rule turns the thumb strip into a flex ROW of fixed 64px buttons under the photo
   (`@media (max-width:900px){.gal9 .th{flex-direction:row}.gal9 .th button{width:64px}}`). A flex
   row does not wrap, so its min-content width is the whole row — and a `1fr` grid track has an
   `auto` minimum, so the track grew to the row's width (7 photos = 7x64 + gaps = 508px) and the
   WHOLE product page became 508px wide inside a 375px phone. It never showed on the demo because
   the demo's pieces carried fewer photos than this store's do, and `html{overflow-x:clip}` hid the
   cut-off part instead of producing a scrollbar.
   The row scrolls sideways instead. Nothing about the look changes. */
@media (max-width: 900px) {
  .pd-g, .gal9 { grid-template-columns: minmax(0, 1fr) }
  .gal9 .th {
    min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity; padding-bottom: 2px;
  }
  .gal9 .th button { flex: 0 0 64px; scroll-snap-align: start }
  .gal9 .th::-webkit-scrollbar { display: none }
}


/* ---------------------------------------------------------------- header on a phone
   The demo's header carries THREE controls (search, bag, burger) and its logo block is ~208px, so
   at 375px the row just fits. This theme has to carry two more — the account link and the wishlist
   with its count, both required by the md folder — and those 106 extra pixels pushed the BURGER
   right off the screen: at 375 the row ended at x=461. Because the header is `position:fixed`, an
   overflow sweep that skips fixed elements never sees it, and `overflow-x:clip` leaves no
   scrollbar. It is only visible in a screenshot — the menu button simply is not there.

   Nothing is removed and nothing moves: the mark, the wordmark and the gaps scale down with the
   screen until the five controls fit, and the account ICON drops out below 700px because the bar
   above the header already carries "Account" as a text link (same destination, demo's own bar).
   Below 360px the tagline line goes too, which is the last thing to give before the name clips. */
.logo9 { min-width: 0 }
@media (max-width: 980px) {
  .h9h-in { gap: clamp(8px, 2.6vw, 14px) }
  .h9h-r { gap: clamp(10px, 3.2vw, 20px) }
  .logo9 { gap: clamp(7px, 2.4vw, 12px) }
  .logo9 svg { width: clamp(28px, 8vw, 40px); height: clamp(28px, 8vw, 40px) }
  .logo9 b { font-size: clamp(.68rem, 3.4vw, 1.05rem); letter-spacing: .1em }
  .logo9 small { font-size: clamp(.42rem, 1.7vw, .54rem); letter-spacing: .22em }
}
@media (max-width: 700px) { .h9h-acct { display: none } }
@media (max-width: 360px) { .logo9 small { display: none } }

/* ---------------------------------------------------------------- touch targets on a phone
   The demo draws these controls at 21px and the overlay's menu rows at 36px; a finger needs 44px
   (the responsive rule in the md folder). The icons are NOT made bigger — that would change the
   demo's header — each control gets an invisible 44px-tall hit area centred on it, which takes no
   room in the layout. Its width stops at the gap, so two neighbours can never swallow each other's
   taps. */
@media (max-width: 980px) {
  .h9h-r > a, .h9h-r > button, .ov-links a, .ov-foot a { position: relative }
  .h9h-r > a::after, .h9h-r > button::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: calc(100% + clamp(10px, 3.2vw, 20px)); min-width: 100%; height: 44px;
    transform: translate(-50%, -50%);
  }
  .ov-links a::after, .ov-foot a::after {
    content: ''; position: absolute; left: 0; right: 0; top: 50%;
    height: 44px; transform: translateY(-50%);
  }
}


/* The same invisible 44px hit area for the controls a phone shopper actually aims at: the filter
   button and every row inside the filter drawer (the demo draws those rows 40px tall and its close
   button 20px), and the price rail, whose native thumb sits centred in a taller box so the track
   itself does not move. Nothing here changes a visible size. */
@media (max-width: 980px) {
  .cl-fbtn, .fd2-p a, .fd2-p button, .cl-sort button, .cl-chip { position: relative }
  .cl-fbtn::after, .fd2-p a::after, .fd2-p button::after, .cl-sort button::after, .cl-chip::after {
    content: ''; position: absolute; left: 50%; top: 50%;
    width: 100%; min-width: 44px; height: 44px; transform: translate(-50%, -50%);
  }
  .fd2-p input[type=range] { height: 44px }
}

/* the one line that explains a hidden price group (rule 3, platinum / silver) */
.fd2-note { margin: 0 28px 14px; font-size: .78rem; line-height: 1.5; color: var(--muted); }


/* ---------------------------------------------------------------- home: less scrolling
   Harsh, 18 Nov: "home page me scroling part bahut jyada he". Measured first, on the draft at
   1280x860: the home page was 24,211px = 28 screens, and four scroll-driven sections carried most
   of it -- the pinned rail (10.4 screens, handled in cb.js) and these three runways, at the demo's
   340 / 340 / 320vh.

   These heights are RUNWAY, not layout: each scene shows a 100vh sticky pin, and the rest of the
   height is only how far a shopper scrolls while that pin plays. Nothing is removed and nothing
   moves -- the same animation plays over about 200vh instead of 320-340vh. A deliberate step away
   from the demo's own numbers, because the demo's pacing is what made the page long.

   By ID, never by class: `.mn` is also the product gallery's photo tile (cb-product.liquid, and
   `.gal9 .mn`), so a bare `.mn{height}` would have made that photo 200vh tall. `:not(.mn-static)`
   leaves the reduced-motion fallback (`.mn-static{height:auto}`) alone. */
/* 20 Nov, second pass (extra-space report #2/#3/#4): 200vh -> 145vh. The pin is 100vh, so each
   scene still has 45vh of scroll to play over instead of 100vh. Home loses about 1,500px. */
#mn:not(.mn-static) { height: 145vh }
#sk9 { height: 145vh }
#az { height: 145vh }
@media (max-width: 900px) {
  /* a phone scrolls with a thumb: shorter still, and the scenes stay readable
     (the demo's own mobile rule was .mn{height:300vh}) */
  #mn:not(.mn-static), #sk9, #az { height: 135vh }
}


/* ==============================================================================================
   LIVE AUDIT FIXES — 18 Nov 2026 (hub's audit of www.caratandbloom.com, Harsh: "Yes, send all")
   Spec: D:\design\caratandbloom-1-audit-fixes.md. Each block says which numbered fix it is.
   ============================================================================================== */

/* [1] The desktop mega menu never opened. The demo's own `.mega` (cb.css) carries
   `clip-path: inset(0 0 100% 0)` and only lifts it on `.nav > div:hover`, a structure this header
   does not use. Our `.nav9 .nav-i.open .mega` turned visibility and opacity on but never touched
   clip-path, so a fully painted panel was clipped to zero height: the scrim dimmed the page and
   nothing appeared. The panel is ours to position, so it opts out of the demo's clip entirely. */
.nav9 .mega { clip-path: none }
/* ...and with the panel finally on screen, a second defect it had been hiding: the header is
   `color: var(--ivory)` because it floats over the dark hero, and the panel inherited that — cream
   links on the panel's own cream background, so only the column headings could be read. The panel
   brings its own background, so it states its own colours. */
.nav9 .mega { color: var(--ink) }
.nav9 .mega a.ml { color: var(--ink-2) }
.nav9 .mega a.ml:hover { color: var(--copper) }
.nav9 .mcard span { color: var(--ink) }

/* [14, root cause] "Recently viewed" showed its heading over an empty row even on a first visit,
   although the markup ships `hidden` on both. The heading is `.sec9 { display: flex }` and the grid
   is `.lgrid9 { display: grid }` — an author `display` beats the `hidden` attribute's UA rule, so
   `hidden` did nothing at all. This is theme-wide: the same pattern hides empty prices, the care
   row, the builder's summary chips. One guard, as the HTML spec itself recommends. */
[hidden] { display: none !important }

/* [3] Cart lines ran together — "…IN WHITE GOLDRing Size: US 3Metal Type: White Gold". The name
   and each property are inline elements, and this store puts two or three required options on
   every piece (the demo had none). One line each, in the drawer and on /cart. */
.ci .nm { display: block; margin-bottom: 5px }
.ci small { display: block; line-height: 1.55 }
.ci small + small { margin-top: 1px }
.ci .stepper { margin-top: 10px }

/* [4] The platform's chat widget sits bottom-right and covered the drawer's CHECKOUT, the cart
   summary's buttons and the PDP sticky bar's action. The widget is the platform's and stays; what
   is ours gets room underneath. `cb-has-widget` is set by cb.js only when the widget is really
   there, so a store without it keeps the tighter spacing. */
body.cb-has-widget .cart-foot { padding-bottom: 86px }
body.cb-has-widget .cb-bag-sum { padding-bottom: 92px }
@media (max-width: 900px) {
  body.cb-has-widget .sbar .sbar-in { padding-right: 76px }
}

/* [5] The phone's menu was unreadable: the demo dims these names to #5a5a5a and lights them on
   hover, and a phone has no hover — 1.9:1 against the panel. Where there is no pointer, they are
   readable from the start; the desktop keeps the demo's dim-until-hover. */
@media (max-width: 800px), (hover: none) {
  .ov-links a { color: #EFE9E1 }
  .ov-links a small { color: #B9B2A8 }
}

/* [10] Policy and content headings sat directly on the paragraph above. Cause: `.cl-sec` is
   `padding-block: var(--sec)`, and `--sec` is defined on `.cl` (cb.css) — a wrapper these pages do
   not have, so the whole padding resolved to nothing. Inside `.cl` the demo's own value still
   wins; only the orphans take this fallback. */
.cl-sec { padding-block: var(--sec, clamp(20px, 2.4vw, 28px)) }

/* [11] The footer's "Privacy · Terms · Returns" ran under the fixed back-to-top button, so
   "Returns" was unreadable (not truncated — covered). The row now ends before the button. */
@media (min-width: 901px) { .f9-base { padding-right: 62px } }

/* [13] On a phone the breadcrumb broke into five or six one-word lines, because every crumb is a
   flex item free to shrink to its narrowest word. One line, with the current page ellipsised. */
@media (max-width: 760px) {
  .crumb { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; min-width: 0 }
  .crumb > * { flex: 0 0 auto }
  /* with four crumbs on one line the page's own name was squeezed to 18px — nothing but an
     ellipsis. On a phone the trail is Home / <this page>, which is what a phone has room to say. */
  .crumb > :not(:first-child):not(:last-child):not(:nth-last-child(2)) { display: none }
  .crumb > :last-child { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis }
}

/* [15] On a phone the "Add to bag" pill is always shown (the demo reveals it on hover), and it is
   positioned against the card, so it sat on top of the price. Without a pointer it leaves the
   photo and takes its own row under the price. */
@media (hover: none), (max-width: 760px) {
  .ac .meta9 { order: 2 }
  .ac .qa9 { order: 3; position: static; transform: none; opacity: 1; align-self: center; margin-top: 2px }
}

/* [12] On the PDP the metal choices were plain underlined text with no swatch and no visible
   selection, while carat and purity were pills. Same trap as the collection card's metal dots: the
   demo styles `.mets button` / `.seg9 button`, and a linked option group is a LINK (each metal is
   its own product page), so not one of those rules applied. The demo's own declarations, restated
   for the anchors — the look is the demo's, only the selector changes. */
.og .mets a { display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: .72rem; color: var(--muted); width: 66px; text-align: center }
.og .mets a i { width: 40px; height: 40px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), inset -6px -8px 14px rgba(0,0,0,.12), inset 6px 6px 12px rgba(255,255,255,.7);
  transition: box-shadow .3s }
.og .mets a[aria-pressed="true"], .og .mets a[aria-current="page"] { color: var(--char) }
.og .mets a[aria-pressed="true"] i, .og .mets a[aria-current="page"] i {
  box-shadow: 0 0 0 2px var(--ivory), 0 0 0 3px var(--char), inset -6px -8px 14px rgba(0,0,0,.12) }
.og .seg9 a { min-width: 52px; padding: 10px 14px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); font-size: .86rem; text-align: center;
  transition: background .3s, color .3s, box-shadow .3s }
.og .seg9 a[aria-pressed="true"], .og .seg9 a[aria-current="page"] {
  background: var(--char); color: var(--ivory); box-shadow: none }


/* ---------------------------------------------------------------- listing cards: one size
   Harsh, 19 Nov: "product card ki size bahut badi he, chhota karo baaki saari theme ke jaise".
   Measured at 1366 before the change: the listing (`.cl-grid`, used by every collection and by
   search) drew 3 cards a row at 405x656 with a 471px photo, while the SAME card everywhere else in
   this theme — "You may also like" and "Recently viewed" (`.lgrid9`, `.cl-rv`) — draws 4 a row at
   300x583. The listing was the odd one out, so it comes to the theme's own size: 4 a row from
   1200px, 3 between 1000 and 1200, and the demo's 2 below that, with the row gap brought down to
   what `.lgrid9` uses so four rows do not drift apart. The card itself is untouched. */
@media (min-width: 1200px) {
  .cl-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) }
}
@media (min-width: 1001px) and (max-width: 1199px) {
  .cl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}
@media (min-width: 1001px) {
  .cl-grid { gap: clamp(34px, 3.4vw, 46px) clamp(14px, 1.8vw, 26px) }
}


/* ---------------------------------------------------------------- "Most loved": grid, not a rail
   Harsh, 19 Nov, pointing at the section on the draft: "is part me kuch change karo kyo ki nahi
   scroll me acha lag raha he or nahi card efect me acha lag raha he".

   The demo pinned this section to the screen and turned page scroll into sideways travel (.hz /
   .hz-pin / .hz-track), with its own .ac card: a tall cream box with the photo floating small in
   the middle of it. Both are dropped. The section now uses the theme's own card (.pc2) in the
   theme's own grid (.cl-grid, with the 4-per-row sizing from 19 Nov), so a piece here is the same
   object a shopper sees on a collection page, in "You may also like" and in search.

   Nothing here re-styles the card. These rules only place the grid, the tabs and the link. */
.pr9-i { display: flex; min-width: 0 }
.pr9-i > .pc2 { flex: 1 1 auto; min-width: 0 }

/* the tabs now sit beside the heading, at its baseline, instead of above a pinned track */
.pr9 .shead { align-items: flex-end }
/* the pills never fit beside a heading this size, so they get their own full-width line under it,
   starting where the heading starts (Harsh, 20 Nov - they used to sit at the right end). */
.pr9 .tabs9 { flex: 1 1 100%; margin: 0; justify-content: flex-start }

.pr9-more { margin-top: clamp(30px, 3.6vw, 48px); text-align: center }

@media (max-width: 900px) {
  .pr9-more { text-align: left }
}


/* ---------------------------------------------------------------- hero: one screen, not one and a bit
   Harsh, 19 Nov: "ek fram me image aa jaye vese set kar do".

   The demo's hero is `height:100svh`, but in this theme the announcement bar and the nav sit ABOVE
   it in the page flow (125px at 1366x768), so the hero ended 125px past the fold: the bottom of the
   photograph and the two buttons under the wordmark were cut off by the window edge. Measured on
   the draft before the change: hero 125 -> 893 in a 768 window, CTA bottom at 846.

   `--cb-hdr` is set by cb.js from the hero's own distance from the top of the document, so this
   follows the real header - announcement bar on or off, one row of nav or two.

   The portrait's width is restated with the same height: the demo sizes it from `100vh`, and
   leaving that alone would have kept a full-window-tall box inside a shorter hero, which crops more
   off the top and bottom of the photograph. Same height, same aspect, same framing. */
:root { --cb-hero-h: calc(100svh - var(--cb-hdr, 0px)) }

.hx9 { height: var(--cb-hero-h); min-height: 420px }
.hx9-zoom { width: min(62vw, calc(var(--cb-hero-h) * 1.1)) }
.hx9-stage::before { width: min(62vw, calc(var(--cb-hero-h) * 1.1)) }

@media (max-width: 760px) {
  /* the phone layout stacks the portrait and the words, so it needs the room it had */
  .hx9 { min-height: 520px }
}


/* ---------------------------------------------------------------- card photo fills its box
   Harsh, 19 Nov: "puri theme ke card me change karo abhi front me jo image he vo full box fit set
   kar do". The demo pads the front photo in by 13-14% and fits it `contain`, which left a wide
   stone-coloured margin around every piece. The photo now fills the whole frame, exactly as the
   hover photo always did, and as the demo's own `.cut.solo` variant already did.

   The `object-fit` itself is set inline by cb-photo (an inline style beats a class), so this only
   has to clear the padding and cover the `.solo` case. The wordmark placeholder for a piece with
   no photo is a <span>, not an <img>, and is untouched. */
.pc2-f .cut, .ac .ai .cut { padding: 0 }

/* ...and the frame takes the photos' own shape, so filling it crops NOTHING.
   Measured on the draft: every product photo this store serves is 900x675 (4:3) - all 16 loaded
   on the home page, not a sample of one. The demo's frame is 0.86 (portrait), so making the photo
   cover it threw away 35% of the width: at the small card that only ate white margin, but once the
   slider card grew to 408px the rings were visibly cut at the sides. Giving the frame the photos'
   own 4:3 means the picture fills the box edge to edge AND the whole piece stays in it. */
.pc2-f, .ac .ai { aspect-ratio: 4 / 3 }
.pc2-f .cut.solo, .ac .ai .cut.solo { padding: 0 }


/* ---------------------------------------------------------------- "Most loved": two-row slider
   Harsh, 19 Nov: "max 6 card rakho or one row me upper 2 erow set kar do lefte right move kar ne
   ka" - six cards to a row, two rows, and a way to move left and right.

   Six columns of two. The column is the SAME width the card has in the theme's own grid - four
   columns across the content width on a desktop, three below 1200, two below 1000 - so a piece
   here is the same object it is on a collection page, and the columns past the edge are reached
   with the arrows, a swipe or shift+wheel. The grid is an ordinary block inside the scroller, so
   its percentage column width resolves against the VISIBLE width and the extra columns overflow
   to the right; that overflow is what scrolls. Nothing is pinned, and the page does not get
   longer when there are more pieces. */
.pr9-rail { position: relative;
  /* the column variables live here so the arrows can use the same number the grid does */
  --pr9-cols: 6;
  --pr9-cgap: clamp(14px, 1.8vw, 26px);
  --pr9-col-w: calc((100% - (var(--pr9-cols) - 1) * var(--pr9-cgap)) / var(--pr9-cols)) }
.pr9-vp { overflow-x: auto; overflow-y: hidden; scroll-behavior: smooth; scroll-snap-type: x proximity;
  scrollbar-width: none; -ms-overflow-style: none }
.pr9-vp::-webkit-scrollbar { display: none }
.pr9-vp:focus-visible { outline: 2px solid var(--copper); outline-offset: 6px }

.pr9-g {
  /* Harsh, 19 Nov: six cards in view - and then "ye jo 3-3 card ki 2 row he usko 1 row me kar do
     6", so those six sit in ONE row of six, not two rows of three. The rest of the tab stays
     behind the arrows. The column count and gap are inherited from .pr9-rail. */
  display: grid;
  grid-template-rows: repeat(1, auto);
  grid-auto-flow: column;
  grid-auto-columns: var(--pr9-col-w);
  gap: clamp(34px, 3.4vw, 46px) var(--pr9-cgap);
  align-items: start;
}
.pr9-i { scroll-snap-align: start }
/* one row at every width - the column count just follows the room there is */
@media (max-width: 1199px) { .pr9-rail { --pr9-cols: 4 } }
@media (max-width: 1000px) { .pr9-rail { --pr9-cols: 3 } }
@media (max-width: 700px)  { .pr9-rail { --pr9-cols: 2 } }

/* Centred on the PHOTO, not on the whole card: the photo is three quarters of the column width
   (the 4:3 frame), so half of it is col-w * 0.375, less half the button. With one row the card is
   mostly title and price, and an arrow centred on the card would sit over the words.
   It has to be margin-top, not top: --pr9-col-w is built from 100%, and a percentage in 'top'
   resolves against the container HEIGHT while one in 'margin-top' resolves against its WIDTH -
   which is the width the columns are cut from. Measured with 'top' the arrow landed 52px off. */
.pr9-ar { position: absolute; top: 0; margin-top: calc(var(--pr9-col-w) * 0.375 - 23px); z-index: 3; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(247, 244, 239, .94); color: var(--ink);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  transition: opacity .3s, background .35s, color .35s, transform .4s var(--ease) }
.pr9-ar svg { width: 16px; height: 16px }
.pr9-ar:hover { background: var(--char); color: var(--ivory); transform: scale(1.06) }
.pr9-ar.prev { left: 6px }
.pr9-ar.next { right: 6px }
.pr9-ar[disabled] { opacity: 0; pointer-events: none }
@media (max-width: 900px) {
  .pr9-ar { width: 38px; height: 38px; margin-top: calc(var(--pr9-col-w) * 0.375 - 19px) }
  .pr9-ar svg { width: 14px; height: 14px }
}


/* ---------------------------------------------------------------- the header stays on screen
   Harsh, 19 Nov: "scroll kar ne par nave bar chala ja raha he to use fix karo".

   The demo's header is `position: fixed`. This theme overrode it to `position: relative` when the
   mega menu was built, because the panel is positioned against .h9h and needs a positioned
   ancestor - and that put the header back in the flow, so it scrolled away with the page.

   .h9h keeps `position: relative` (the mega menu is untouched); the GROUP around it sticks:
    * sticky, not fixed, so it stays in the flow and the hero's `100svh - header` sum still holds;
    * it rides up by the announcement bar's own height, so the ticker leaves and only the nav
      stays - 70px of chrome on screen instead of 111px, which matters on a phone;
    * z-index 70 is the header's own; the scrim (80) and drawers (90) still sit above it.
   The group's parent is <body>, which spans the whole document, so the sticky has somewhere to
   stick - a sticky element only sticks inside its own parent's box.

   The selector matches the END of the platform's section-wrapper id rather than writing the id in
   full: this theme's build guard refuses that platform's name inside a generated file, and the
   guard is worth more than the three characters it costs here. */
body > div[id$="-cb-header"] {
  position: sticky;
  top: calc(-1 * var(--cb-util, 41px));
  z-index: 70;
}


/* ---------------------------------------------------------------- every photo box is filled
   Harsh, 19 Nov, on the "Shop by budget" tiles: "puri theme me is tario ke ka box fit image nahi
   ho to fit kar do".

   Same rule the product card already follows: the BOX takes the photos' own shape (4:3 - measured,
   every product photo this store serves is 900x675), so the picture fills it edge to edge and
   nothing is cropped. Each box keeps the WIDTH it had and loses the height it was wasting, so no
   column anywhere gets wider.

   Where the box must stay round, the photo switches to `cover` instead (done in the render call,
   because cb-photo writes object-fit inline and an inline style beats a class). */

/* "Shop by budget" - the demo drew the photo at 72% of a 1.25 box, so it floated in the middle */
.bg2-i { aspect-ratio: 4 / 3 }
.bg2-i img { width: 100%; height: 100% }

/* bag line, bag drawer and the order page use the same thumb */
.ci .cimg { height: 63px }
.cb-bag-line .cimg { height: 83px }

/* predictive search result */
.sres-im { height: 42px }

/* the product gallery: a 4:3 photo sat in a 0.9 frame, so a third of it was empty stone */
.gal9 .mn { aspect-ratio: 4 / 3 }
.gal9 .th button { aspect-ratio: 4 / 3 }
.gal9 .th img.ct, .gal9 .mn img.ct { padding: 0 }

/* the round chips keep their circle; the padding that shrank the photo inside it goes */
.sbar img, .dk-p img, .bb3-sum img { padding: 0 }


/* ---------------------------------------------------------------- card name: two lines, then "..."
   card-title-two-lines.md (Harsh, 4 Nov). A long name used to run to three or four lines, so the
   swatches, price and badge of one card sat lower than its neighbour's and the row looked broken.

   The cut is CSS, never the Liquid `truncate` filter: the whole name has to stay in the HTML for
   search engines and screen readers - and for the hover box below, which reads it from the DOM.
   `min-height` reserves the second line even for a short name, which is what actually lines a row
   up. The name's own line-height (1.2) is used, so nothing about the type changes.

   Covers every card that shows a product name, because they all share these two classes: the
   collection grid, search, the home slider, "You may also like", recently viewed (built in JS) and
   the builder's setting grid. */
.pc2-n, .ac .meta9 b {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  min-height: calc(2 * 1.2em);
}

/* ---------------------------------------------------------------- the full name on hover
   collection-title-hover-rule.md (Harsh, 27 Oct, "Option A - dark tooltip"). One floating box on
   <body>, not a pseudo-element inside the card: the card clips its own overflow, and a box inside
   it would be cut off. It never takes the pointer, so a click still opens the product. */
.cb-nametip {
  position: absolute; z-index: 400; left: 0; top: 0;
  background: var(--char); color: var(--ivory);
  font-family: var(--sans, inherit); font-size: 14px; line-height: 1.45; letter-spacing: 0;
  padding: 10px 14px; border-radius: 6px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .45);
  pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .18s, transform .18s; text-transform: none; font-weight: 400;
}
.cb-nametip.on { opacity: 1; transform: none }
.cb-nametip::after {
  content: ""; position: absolute; top: 100%; left: 18px;
  border: 6px solid transparent; border-top-color: var(--char);
}
@media (hover: none), (pointer: coarse) { .cb-nametip { display: none } }


/* ---------------------------------------------------------------- filter shimmer
   filter-shimmer.md. The skeleton card is the real card's shape - a 4:3 picture box, two title
   lines and a price line - so the grid does not jump when the real products arrive. It reuses the
   sweep the card swap already uses (`cbShim`), so there is one animation in the theme. */
.cb-skel { display: flex; flex-direction: column; gap: 16px; min-width: 0; pointer-events: none }
.cb-skel span { display: block; position: relative; overflow: hidden; background: var(--stone) }
.cb-skel span::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .65) 50%, transparent 80%);
  background-size: 220% 100%; animation: cbShim 1.1s linear infinite;
}
.cb-skel-i { aspect-ratio: 4 / 3 }
.cb-skel-l { height: 14px; margin-inline: 4px }
.cb-skel-l.s { width: 60% }
.cb-skel-p { height: 16px; width: 40%; margin: 6px 4px 0 }
@media (prefers-reduced-motion: reduce) { .cb-skel span::after { animation: none } }


/* ---------------------------------------------------------------- /collections card picture
   collections-page-rule.md addendum B: every card on this page shows the theme's own mark instead
   of a product photograph, so the page reads as one set. It is the header's mark, rendered inline,
   so sixty cards cost no extra request. The frame, its size, the title, the count and the hover
   are untouched - only what is inside the picture box.

   This is the one place where a picture box is deliberately NOT filled: a logo that is cropped or
   stretched is a broken logo, so it is centred at about half the card's width. */
.cb-colcard-mark { display: grid; place-items: center; background: var(--soft, var(--stone)) }
/* The height must be definite, not `auto`: with `height:auto` the image has no area before it
   loads, so a lazy image never enters the viewport, never loads, and keeps its zero height - it
   deadlocks and the card stays blank (measured: 115x0, complete:false, 0 of 24 loaded). A fixed
   box plus `contain` gives the logo a real area and still never crops or stretches it. */
/* the lockup on a collection card: no card behind it, painted in the page's own ink */
.cb-colcard-mark > .cb-logo { width: 62%; height: auto; aspect-ratio: 6.84 / 1; color: var(--ink) }
.cb-colcard-mark > .cb-logo::before, .cb-colcard-mark > .cb-logo::after { -webkit-mask-position: center; mask-position: center }


/* ---------------------------------------------------------------- the brand logo in the header
   Harsh, 19 Nov, choosing between a reversed logo and a plate: the plate.

   The plate is the logo's OWN cream ground - the brand's SVG carries a full-bleed #E9DDD0 rect
   behind the wordmark - so nothing is painted behind it and no colour of the brand's is changed.
   This only sizes it, rounds the corners and keeps it off the edges of the bar.

   The height follows the header: the bar shrinks from 84px to 70px when it goes solid on scroll,
   and the plate shrinks with it on the same easing, so the two never fight. */
/* measured, not guessed:
   The brand file is a logo CARD, not a tight wordmark: measured off a canvas, the ink fills only
   58% of its width and 15% of its height, with 21% cream to the left and right and 41-44% above
   and below. Shown whole at header height the wordmark came out about 4px tall - unreadable. So the
   plate keeps a 4:1 window on the file and the file covers it, which trims the brand's own outer
   margin and leaves the wordmark about 120px wide. Nothing is recoloured and nothing of the
   wordmark is cut: at this window the ink sits well inside, measured top and bottom. */
.cb-logo {
  position: relative; display: block;
  height: var(--cb-logo-h, 26px); aspect-ratio: 6.84 / 1;
  transition: height .5s var(--ease);
}
/* Two masks, not a picture: the wordmark takes the surface's own colour - black on a pale box,
   ivory on a dark bar - and the ampersand with the ring stones keeps the brand's gold until a
   surface says otherwise. The box the brand file carries behind the mark is gone (Harsh, 20 Nov).
   The paths arrive on the element from snippets/cb-logo, so they keep the preview signature. */
.cb-logo::before, .cb-logo::after {
  content: ''; position: absolute; inset: 0;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: left center; mask-position: left center;
  -webkit-mask-size: contain; mask-size: contain;
}
.cb-logo::before { background-color: currentColor; -webkit-mask-image: var(--cb-logo-src); mask-image: var(--cb-logo-src) }
.cb-logo::after { background-color: var(--cb-logo-accent, #967650); -webkit-mask-image: var(--cb-logo-accent-src); mask-image: var(--cb-logo-accent-src) }

/* the header bar: dark, so the wordmark is ivory by the bar's own colour */
.logo9-hdr { display: block; line-height: 0 }
.logo9-hdr .cb-logo { --cb-logo-h: 25px }
.h9h.solid .logo9-hdr .cb-logo { --cb-logo-h: 21px }
@media (max-width: 980px) { .logo9-hdr .cb-logo { --cb-logo-h: 21px } .h9h.solid .logo9-hdr .cb-logo { --cb-logo-h: 19px } }
@media (max-width: 560px) { .logo9-hdr .cb-logo { --cb-logo-h: 18px } .h9h.solid .logo9-hdr .cb-logo { --cb-logo-h: 17px } }


/* ------------------------------------------------- the logo on every other surface it belongs on
   Harsh, 20 Nov: "bahut sari jagah par abhi bhi logo set nahi huva he ... jaha jaha par set nahi
   huva ho vaha vaha par set kar do". The header had it since yesterday; these are the rest.

   Every one of them renders snippets/cb-logo, so the plate rule above is the only place that knows
   how the file is cropped. A surface only says how tall its own plate is. */

/* the footer, dark: the same cream plate as the bar, with the newsletter's own 26px below it */
.f9-logo { display: block; line-height: 0 }
.f9-news .cb-logo { --cb-logo-h: 27px }
@media (max-width: 560px) { .f9-news .cb-logo { --cb-logo-h: 23px } }

/* the menu overlay covers the header, so the brand is here too. Its close button is absolute at
   the top left, and .ov-l is a space-between column, so this sits at the top of the flow. */
.ov-logo { align-self: flex-start; display: block }
.ov-l .cb-logo { --cb-logo-h: 23px }
@media (max-width: 560px) { .ov-l .cb-logo { --cb-logo-h: 19px } }

/* the page-transition arch and the veil. Neither is wired to any script in this build (nothing
   animates #arc9 or #veil, measured 20 Nov), so neither is on screen today - they carry the logo
   so that if the demo's transition is ever turned on, it is the brand that shows and not a drawn
   wordmark. */
.arc9 .cb-logo { --cb-logo-h: 29px }
.veil .cb-logo { --cb-logo-h: clamp(26px, 4.4vw, 40px) }

/* a piece with no photo in the store. The box is a container, so the plate is sized off the box's
   own width - a card, a cart line and a thumb rail all get a lockup that fits. Not lazy: an empty
   box has no second chance, and it is one cached file for the whole page. */
/* a piece with no photo: the box is a container, so the lockup is sized off the box's own width
   and painted in the placeholder's own muted ink - no card behind it any more */
.cb-ph__mark .cb-logo { height: auto; width: 72cqw; max-width: 300px; aspect-ratio: 6.84 / 1 }
.cb-ph__mark .cb-logo::before, .cb-ph__mark .cb-logo::after { -webkit-mask-position: center; mask-position: center }
@container (max-width: 110px) { .cb-ph__mark .cb-logo { width: 88cqw } }
@supports not (container-type: inline-size) { .cb-ph__mark .cb-logo { width: 170px } }


/* ------------------------------------------------- a collection card with a real picture in it
   The five main collections carry an editorial picture since 20 Nov; every other card in this
   list - 78 categories deep - still carries the brand logo on its plate. Only the plate rule
   existed, so a picture card was left at object-fit:fill and ran to its own 1024px height, with
   the card clipping what did not fit. :not() keeps this off the plate cards, which stay contain
   at half the width. */
.cb-colcard-i:not(.cb-colcard-mark) > img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}


/* ---------------------------------------------- the listing's chip row, for links as well
   The demo's rule is .cl-chips button, but every chip here navigates, so it is a link: the tag
   chips that link_to_remove_tag writes, and the price chip added on 20 Nov. Same pill, so the row
   does not come out as bare blue text. "Clear all" keeps its own quiet underline. */
.cl-chips a:not(.cl-clear) {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--stone);
  font-size: .8rem; text-decoration: none; color: inherit;
}
.cl-chips a:not(.cl-clear):hover { background: var(--char); color: var(--ivory) }


/* ------------------------------------------------ the lockup where the name used to be set
   Harsh, 20 Nov: the hero's title and the footer's watermark were still the name in type. Both sit
   on dark, and the brand file is ink on its own cream ground, so both take the plate he chose for
   the header on 19 Nov. */

/* The hero. The h1 keeps its place in the copy column; the picture takes the height the two lines
   of type used to take, so nothing below it moves. */
.hx9-title--logo { line-height: 0; white-space: normal }
.hx9-title--logo .cb-logo { --cb-logo-h: clamp(26px, 5.2vw, 68px) }
@media (max-width: 980px) { .hx9-title--logo .cb-logo { --cb-logo-h: clamp(24px, 7.4vw, 44px) } }

/* The footer's band. The name used to be drawn in 6% ivory and scaled to the full width by script;
   the lockup cannot be tinted that way - it is a picture - so it keeps the same quiet presence
   with opacity, and the plate's corners are squared off so it reads as a band and not a card. */
.f9-mark--logo { padding-top: 40px; line-height: 0 }
/* The band across the footer. There is no plate to fade out now - the mark itself is painted in
   the band's own 6% ivory, which is exactly what the name used to be set in, and the gold accent
   is taken down to that same ghost so one part of it does not shout. */
.f9-mark--logo .cb-logo {
  height: auto; width: 100%; aspect-ratio: 6.84 / 1;
  --cb-logo-accent: currentColor;
}


/* --------------------------------------------- the collection tabs, all on one line
   The demo wrote four columns into this row because it had four collections. We have five, so
   "05 Bracelets" fell to a second line (Harsh, 20 Nov). Letting the row make a column per tab
   means it also survives a sixth one, with no number to keep in step.

   Under 760px the demo puts the tabs in two columns and that stays: five of these on a phone
   would be unreadable. */
@media (min-width: 761px) {
  .ce-tabs {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    column-gap: clamp(8px, 1.4vw, 20px);
  }
  /* with five in a row the name needs to be able to wrap inside its own column rather than push
     the column wider */
  .ce-tabs button { min-width: 0 }
}


/* ------------------------------------- the collections panel keeps one height for all five tabs
   Before this the panel was as tall as the chosen pane, so it jumped between tabs (Harsh,
   20 Nov). All five now sit in the same cell of the frame's grid: the row is as tall as the
   tallest pane and stays there whichever tab is on. Nothing is measured or hard-coded, so a sixth
   collection, or a longer paragraph, is handled by itself.

   The ones not showing keep their place in the layout - that is what holds the height - so they
   are hidden with visibility, not display, and taken out of the tab order. */
.ce-frame > .ce-pane,
.ce-frame > .ce-pane.on {
  display: grid;
  grid-area: 1 / 1 / 2 / -1;
  grid-template-columns: inherit;
  gap: inherit;
}
.ce-frame > .ce-pane:not(.on) { visibility: hidden; pointer-events: none }


/* ------------------------------------------- the collections panel fits one screen (20 Nov)
   --cb-hdr is the bar's own height, measured by cb.js. The floor keeps the panel readable on a
   short laptop screen: under that it is better to scroll than to squash the words.

   .ce-pill and .ce-peek drop their fixed picture shapes and take the room that is left, so the
   heading and the paragraphs are never the thing that gets cut. */
@media (min-width: 981px) {
  .ce-frame {
    /* the demo's min-height is 640 and a min always beats a max, so the height is set outright:
       what is left of the screen under the bar, never under 520 (the words stop being readable)
       and never over 760 (a wall on a tall monitor). */
    min-height: 0;
    height: clamp(520px, calc(100svh - var(--cb-hdr, 84px) - clamp(16px, 2.4vw, 40px)), 760px);
  }
  .ce-mid, .ce-right, .ce-dark { min-height: 0 }
  .ce-pill {
    aspect-ratio: auto; flex: 1 1 0; min-height: 140px;
    margin-top: clamp(16px, 2vw, 28px);
  }
  .ce-peek { aspect-ratio: auto; flex: 1 1 0; min-height: 140px }
  /* the dark card's thumb is small already; it only needs to stop growing */
  .ce-dark .thumb { flex: 0 1 auto; min-height: 0 }
}


/* ==============================================================================================
   EXTRA SPACE - 20 Nov 2026. Harsh: "sab theek kar do".
   Report: D:\design\caratandbloom-1-extra-space-report.html

   Har gap pehle naapa gaya (1280x900, draft par, page do baar scroll karke settle karne ke baad)
   aur uska zimmedar CSS dhoondha gaya - tab jaakar ye numbers rakhe hain.
   ============================================================================================== */

/* ---------- #1  home: service ke card se "Most loved" rail tak - naapa 499px
   Teen hisse the: 252px us ivory block ka jo `aspect-ratio: 1` ki wajah se CHAUKOR hai aur apne
   content se kaafi lamba nikal jaata hai, 116px section ki apni neeche ki padding, aur 131px rail
   ki upar ki. Chaukor ki shart hata di - block ab apne content ke hisaab se lamba hai - aur dono
   padding kam. Block ka ivory rang aur chaudai waisi hi hai. */
@media (min-width: 901px) {
  .cs-circle { aspect-ratio: auto; padding: clamp(90px, 10vw, 170px) 0 clamp(48px, 5vw, 80px) }
}
.cs { padding-block: clamp(40px, 5vw, 64px) clamp(44px, 5vw, 72px) }
.pr9 { padding-block: clamp(56px, 7vw, 88px) }

/* ---------- #5  "The collections" ke upar-neeche - naapa 115px har taraf */
.ce { padding-block: clamp(56px, 7vw, 80px) }

/* ---------- #6  "Why Carat & Bloom" ki upar ki jagah */
.ga { padding-top: clamp(36px, 4vw, 48px) }

/* ---------- #8  PDP: description ke baad "Complete the look" tak - naapa 183px
   Isme 80px Details block (.ptabs) ki neeche ki padding thi. Wo kam ki; baaki 100px agle section
   ki apni jagah hai aur wo chhui nahi, warna do section ek doosre se chipak jaate. */
.ptabs { padding-block: clamp(44px, 5vw, 60px) }

/* ---------- #10 contact aur #11 khaali cart: form/button se trust row tak - naapa 176px / 206px
   Isme 102px us wrap ki neeche ki padding thi, wahi kam ki. Baaki 74px trust patti ke andar ki
   row ka hai (32px padding + uska icon) - usko chhedne par patti khud bigadti, isliye chhoda.
   (Pehle maine .sv par padding kam karne ki koshish ki thi, par .sv par padding thi hi nahi -
   wo rule ulta 48px JOD raha tha aur gap 186 ho gaya tha. Hata diya.) */
.wrap.two, .wrap.cb-bag { padding-bottom: clamp(44px, 5vw, 64px) }


/* ------------------------------------- the ring builder's 3-step rail starts at step 2 (20 Nov)
   ring-builder-step-strip.md, Harsh: "1 step me ye 3 step vali line nahi show ho ni chahiye".
   The product page does not draw the rail at all any more (sections/cb-product.liquid); this is
   the builder's own copy, which has to stay in the page because the builder remembers the
   shopper's state - /builder with no ?setting can open straight on step 3 - and its go(step)
   moves data-step as they walk. So the rail is hidden only while it says step 1, and comes back
   by itself at step 2 and step 3. Its wrap has no height of its own, so nothing is left behind. */
[data-build-bar][data-step="1"] { display: none }
