/* 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 --------------------- */
/* 2 Dec (2dec-2 #2): only the root is locked. With `overflow:hidden` on body as well, body became its own
   scroll box (the root no longer takes over its overflow), every position:sticky inside it stuck to that
   unscrolled box instead of the page, and the product gallery jumped up out of view the moment the bag
   opened. `overflow:visible` keeps body from ever being a scroll box while the root is locked. */
html.cb-locked { overflow: hidden }
html.cb-locked body { overflow: visible }

/* 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: 5;
  --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 */
/* 27 Nov (Himanshu's "make the product picture box SQUARE", applied here by Harsh): new product pictures
   come square (1800x1800), so the main box and the thumbnails are square; pictures stay `contain`
   (an older 4:3 picture shows at the same width with room above and below). Was 4 / 3. */
.gal9 .mn { aspect-ratio: 1 / 1; background: #fff }
.gal9 .th button { aspect-ratio: 1 / 1; background: #fff }
/* laptops: the gallery is sticky 96px from the top, so the square is capped to the window's height
   less that and a margin — the whole square is always in view once it sticks */
@media (min-width: 901px) {
  .gal9 .mn { width: min(100%, calc(100svh - 120px)); justify-self: center }
}
/* the 360 view takes the picture's own place and size (it was `absolute; inset: 0` over the whole
   gallery, thumbnails included, and on a phone ran the height of the page) */
.gal9 .pd-3d { position: relative; inset: auto; aspect-ratio: 1 / 1; width: 100%; grid-column: 2; grid-row: 1 }
@media (min-width: 901px) { .gal9 .pd-3d { width: min(100%, calc(100svh - 120px)); justify-self: center } }
@media (max-width: 900px) { .gal9 .pd-3d { grid-column: 1; grid-row: 1 } }
.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 }


/* ==============================================================================================
   EXTRA SPACE, round 2 — 27 Nov 2026. Harsh, two screenshots of the home page with the browser
   zoomed out (the page is then ~2860px wide): "ye extra space he is ko remove karo or proper view me
   set karo". Measured on theme dev at 2860 and 1905 before changing anything.
   ============================================================================================== */

/* "Building something to keep, together": #1 above kept 90–170px of padding on top of the panel
   (room for the old circle). With the panel now full-width it only showed as an empty band before
   the heading (234px at 1905). The section's own padding is the only space left. */
.cs { padding-block: clamp(48px, 5vw, 80px) }
.cs-circle { padding: 0 }
@media (min-width: 901px) { .cs-circle { padding: 0 } }

/* "What makes every piece different": #6 above put a band back over the panel; the panel is the
   section now (cb.css: .ga is stone, .ga-shape full width). */
.ga { padding-top: 0 }

/* Wide screens (and a zoomed-out browser): every block was capped in px (container 1440, service
   cards 1000, promises 1160, headings 54–64px), so past 1905px wide the content stayed put and the
   sides filled with empty colour (35–48% of the width used at 2860). Past 1905px these grow with the
   screen at the same share they have at 1905, so the page keeps its 1905 proportions. */
@media (min-width: 1906px) {
  .wrap { max-width: 75.6vw }
  .cs-head { max-width: 46.2vw }
  .cs-head h2 { font-size: 2.86vw }
  .cs-sub { max-width: 32.5vw; font-size: .92rem }
  .cs-cards { width: min(88%, 64vw); gap: 1.8vw }
  .ga-in { max-width: 60.9vw }
  .ga-intro { font-size: 3.36vw }
}


/* ==============================================================================================
   COLLECTIONS PANEL PICTURES — 27 Nov 2026. Harsh, screenshot of "Five ways to wear light" at 1920:
   "ye sabhi image sahi tari e se set nahi lag rahi he ... image sahi he lekin choti koy cut ho gai".
   Measured at 1905: the dark card's picture was a fixed 220x152 in a 431x760 card; the piece's own
   photo (800x600, the piece on white) was COVER-cropped into a 360x389 box resting on the panel's
   bottom edge, so the piece was cut; the "next" picture was a 213x473 sliver pushed 18% off the edge.
   Each picture now takes its card's full width and the height that is left, and the piece's photo
   is shown whole (contain, on white) with room under it.
   ============================================================================================== */
.ce-pill { background: #fff }
.ce-pill img { object-fit: contain }
@media (min-width: 981px) {
  .ce-dark { justify-content: flex-start }
  .ce-dark .thumb { width: 100%; align-self: stretch; aspect-ratio: auto; flex: 1 1 0; min-height: 160px }
  .ce-mid { padding-bottom: clamp(24px, 3vw, 48px) }
  .ce-pill { width: 100%; align-self: stretch; margin-top: clamp(16px, 2vw, 28px) }
  .ce-peek { width: 100%; align-self: stretch; margin-right: 0 }
  .ce-peek img { object-position: 50% 40% }
}
@media (max-width: 980px) {
  .ce-dark .thumb { width: 100%; aspect-ratio: 16 / 10 }
  .ce-mid { padding-bottom: clamp(20px, 5vw, 32px) }
  .ce-pill { width: 100%; aspect-ratio: 4 / 3 }
  .ce-right { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) }
}

/* Harsh 27 Nov (carat-bloom-dark-theme-final.zip): the centre slot shows the collection's own dark
   editorial picture, edge to edge (cover, no white). A piece photo (no picture) keeps contain on white. */
.ce-pill.is-art { background: var(--char) }
.ce-pill.is-art img { object-position: 50% 55% }
@media (max-width: 980px) { .ce-pill.is-art { aspect-ratio: 16 / 10 } }

/* "In focus" with the picture of the whole set (Harsh 27 Nov). The pieces sit in the middle and the
   ring at about a quarter from the left, so the words keep to the dark fabric on the left: a narrower
   column, a heading sized to it, and on wide screens the crop anchored left so the empty fabric stays
   in view. On a phone the picture is centred and the words sit over the shaded band. */
.az.az-art .az-over h2 { font-size: clamp(2.1rem, 2.9vw, 3.4rem); line-height: 1.02 }
.az.az-art .az-over p { font-size: .95rem; line-height: 1.7 }
@media (min-width: 1024px) {
  .az.az-art .az-over { left: clamp(24px, 5vw, 96px); max-width: min(400px, 18vw); transform: translateY(-50%) }
  .az.az-art .az-frame img { object-position: 0% 50% }
}
@media (max-width: 1023px) {
  .az.az-art .az-frame img { object-position: 50% 50% }
  .az.az-art .az-over { max-width: min(460px, 84vw) }
}
@media (max-width: 1023px) {
  /* phone and tablet: the words sit at the bottom over a dark band, the pieces stay clear above them */
  .az.az-art .az-frame::after { background: linear-gradient(0deg, rgba(20,18,16,.92) 0, rgba(20,18,16,.82) 42%, rgba(20,18,16,0) 70%) }
  .az.az-art .az-over { top: auto; bottom: clamp(28px, 7vh, 64px); transform: none }
  .az.az-art .az-frame img { object-position: 50% 30% }
}

/* "Shop the look" in one screen (Harsh 27 Nov: "one frame me sab set ho jaye"). On a laptop or desktop
   the heading, the four pictures and the bar now fit under the header together: the pictures take the
   screen's height less the header (~72px) and the rest of the section (~330px), between 260 and 560px,
   and the padding follows the screen's height. Tablets and phones keep their own layout. */
@media (min-width: 1024px) {
  .stl9 { padding-block: clamp(32px, 4.5vh, 64px) }
  .stl9-head { margin-bottom: clamp(20px, 2.6vh, 32px) }
  .stl9-t { height: clamp(260px, calc(100svh - 72px - 330px), 560px) }
  .stl9-bar { margin-top: clamp(18px, 2.4vh, 28px); padding-top: clamp(14px, 2vh, 22px) }
}

/* Shop the look: the light on each piece is a link to that piece's own page (Harsh 27 Nov) — it sits
   above the picture's select button, with a "View the piece" tip on hover / keyboard focus. */
.stl9-dot { pointer-events: auto; z-index: 3; cursor: pointer; text-decoration: none }
.stl9-dot:focus-visible { outline: 2px solid var(--copper-2); outline-offset: 2px; border-radius: 50% }
.stl9-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); white-space: nowrap; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; padding: 7px 10px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s }
.stl9-dot:hover .stl9-tip, .stl9-dot:focus-visible .stl9-tip { opacity: 1; transform: translate(-50%, 0) }
@media (hover: none) { .stl9-tip { display: none } }

/* collection page: "Recently viewed" now sits between the trust row and the FAQ (Harsh 27 Nov); with
   nothing seen yet its section is hidden whole so no empty band is left there */
.cl-rv-sec:not(:has(#cbRecent:not([hidden]))) { display: none }

/* ==============================================================================================
   PRODUCT CARD — design "E · Shop-first" (Harsh 27 Nov, chosen from
   https://claude.ai/artifact/NT7CnX9kiRUnewioBtTwDE). Markup in snippets/cb-card.liquid (.pc2e).
   ============================================================================================== */
.pc2e { position: relative; gap: 12px; background: #fff; padding: 12px 12px 18px; box-shadow: 0 0 0 1px #E2DCD4; transition: box-shadow .35s }
.pc2e:hover { box-shadow: 0 0 0 1px var(--char) }
.pc2e .pc2-f { aspect-ratio: 1 / 1; background: #fff }
.pc2e .pc2-f .cut { padding: 0 }
/* the sale tag — and, while it runs, the Black Friday pill — sit in the picture's top-left corner */
.pc2e .pc2-tag { left: 0; top: 0; transform: none; background: #34312E; color: #F7F4EF; border-radius: 0; font-weight: 600; font-size: .62rem; letter-spacing: .14em; padding: 8px 10px }
.pc2e .bf-pill { position: absolute !important; left: 12px; top: 12px; margin: 0 !important; z-index: 3; display: inline-block !important; width: auto !important; max-width: calc(100% - 80px); background: #34312E !important; border-radius: 0; font: 600 10px/1 var(--sans) !important; letter-spacing: .14em !important; padding: 8px 10px !important; white-space: nowrap }
.pc2e .bf-pill, .pc2e .bf-pill *, article.pc2e .pc2-p > .bf-pill, article.pc2e .pc2-p > .bf-pill .bf-pl { color: #F7F4EF !important }
.pc2e .bf-pill-txt::before { background: #F7F4EF !important }
.pc2e .pc2-act { right: 6px; top: 6px; bottom: auto }
.pc2e .pc2-act button { background: transparent; box-shadow: none }
.pc2e .pc2-act button:hover { background: rgba(247, 244, 239, .92); color: var(--char) }
/* on hover: the piece's own action and "View the piece" */
.pc2-hov { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; gap: 6px; padding: 10px; opacity: 0; transform: translateY(12px); transition: opacity .35s, transform .45s var(--ease); pointer-events: none }
.pc2e:hover .pc2-hov, .pc2e:focus-within .pc2-hov { opacity: 1; transform: none; pointer-events: auto }
.pc2-hov .pc2-b1, .pc2-hov .pc2-b2 { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-family: var(--sans); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; text-decoration: none }
.pc2-b1 { background: var(--char); color: var(--ivory) !important }
.pc2-b1:hover { background: #43403B }
.pc2-b2 { background: rgba(247, 244, 239, .96); color: var(--char) !important; box-shadow: inset 0 0 0 1px #CFC7BB }
@media (hover: none) { .pc2-hov { display: none } }
/* text */
.pc2e .pc2-i { gap: 10px; padding-inline: 0 }
.pc2-mt { display: flex; justify-content: space-between; align-items: center; gap: 4px 10px; flex-wrap: wrap }
.pc2-ml { font-size: .72rem; letter-spacing: .06em; color: #6E6962 }
.pc2-ml b { color: var(--char); font-weight: 500 }
.pc2-eb { font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: #6E6962 }
.pc2e .pc2-sw { gap: 10px }
.pc2e .pc2-sw [data-card-swatch] { width: 24px; height: 24px }
.pc2e .pc2-m { display: none !important }
.pc2e .pc2-n { font-size: 1.06rem; line-height: 1.35 }
.pc2e .pc2-p { justify-content: flex-start; flex-wrap: wrap; gap: 4px 10px; border-top: 0; padding-top: 0; margin-top: 0 }
.pc2e .pc2-p b { font-family: var(--serif); font-weight: 400; font-size: 1.3rem }
.pc2e .pc2-p s { font-size: .8rem; color: #6E6962 }
.pc2e .pc2-p .pc2-you { font-size: .74rem; font-weight: 500; color: #9A5E35 }
.pc2-tr { display: flex; gap: 14px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--stone); font-size: .68rem; color: #6E6962 }
@media (max-width: 600px) {
  .pc2e { padding: 8px 8px 12px }
  .pc2e .pc2-sw { gap: 8px }
  .pc2e .pc2-sw [data-card-swatch] { width: 20px; height: 20px }
  .pc2e .pc2-p b { font-size: 1.1rem }
  .pc2e .pc2-n { font-size: .95rem }
  .pc2-eb { display: none }
  .pc2-tr { gap: 8px; font-size: .62rem }
  .pc2e .bf-pill { left: 8px; top: 8px; font-size: 8.5px !important; padding: 6px 7px !important; letter-spacing: .08em !important; white-space: normal; max-width: calc(100% - 56px); line-height: 1.3 !important; opacity: 1 !important; color: #F7F4EF !important }
  .pc2e .bf-pill .bf-pl { display: block; white-space: nowrap; font: inherit !important; letter-spacing: inherit !important; color: #F7F4EF !important; opacity: 1 !important }
}

/* ---------- DIAMOND SHAPE PHOTOS (Harsh 27 Nov, change 20) -------------------------------------------
   diamond-shapes.zip → assets/demo/shapes/shape-<slug>.webp, printed by snippets/cb-shape-icon.liquid
   (and shapeIc() in cb-builder.js) beside every shape name. .cb-shape = the big picture (collection
   filter, shape guide); .cb-shape.is-in = the small one in front of a name. */
.cb-shape { width: 44px; height: 44px; object-fit: contain; display: inline-block }
.cb-shape.is-in { width: 22px; height: 22px; flex: none; margin-right: 8px; vertical-align: middle }
.nav9 .mega a.ml:has(.cb-shape), .mega a.ml:has(.cb-shape) { display: flex; align-items: center; gap: 0; justify-content: flex-start }
.ov-g a:has(.cb-shape) { display: flex; align-items: center; gap: 0; justify-content: flex-start }
.ov-g a .cb-shape.is-in { width: 24px; height: 24px; margin-right: 10px }
.pc2-eb:has(.cb-shape) { display: inline-flex; align-items: center }
.pc2-eb .cb-shape.is-in { width: 16px; height: 16px; margin-right: 6px }
.eyb .cb-shape.is-in, .hx9-l2 .cb-shape.is-in { width: 18px; height: 18px; margin-right: 6px; vertical-align: -4px }
.cb-shape-v { display: inline-flex; align-items: center }
.cb-shape-v .cb-shape.is-in { width: 20px; height: 20px }
.cb-rb-shapes button:has(.cb-shape) { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 10px; padding-bottom: 8px; min-width: 76px }
.cb-rb-shapes button .cb-shape.is-in { width: 34px; height: 34px; margin: 0 }
.cb-rb-spec .cb-shape.is-in { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px }
.cb-rb-shapetd .cb-shape.is-in { width: 20px; height: 20px; vertical-align: -5px }
.cb-rb-ph img.cb-rb-shapeph { position: absolute; inset: 0; margin: auto; width: 56%; height: 56%; object-fit: contain }

/* ---------- HOME RAIL 5 CARDS + CARD TAG FIT (Harsh 27 Nov, change 21) ------------------------------
   "Most loved" shows 5 cards a row (was 6; --pr9-cols above). The card picture is square now, so the
   rail arrows sit on the middle of the picture (12px padding + half of width-24px = half the column). The sale tag keeps clear of
   the heart on any card width: it may break onto a second line ("BLACK FRIDAY" / "−50%") instead of
   running under the heart, and the text inside always uses the tag's own size. */
.pr9-ar { margin-top: calc(var(--pr9-col-w) * 0.5 - 23px) }
.pc2e .bf-pill { max-width: calc(100% - 64px); white-space: normal !important; line-height: 1.35 !important }
.pc2e .bf-pill .bf-pl { white-space: nowrap; font: inherit !important; letter-spacing: inherit !important }
@media (max-width: 900px) { .pr9-ar { margin-top: calc(var(--pr9-col-w) * 0.5 - 19px) } }
/* one card, one shape: on a narrow card (rail, 4+ across) the "shape · style" line always sits on its
   own line under "Metal:", "You save" always under the price, the title always takes two lines — so
   every card in a row has the same rows; and the rail stretches the cards to one height. */
.pc2e { container-type: inline-size }
.pc2e .pc2-n { min-height: calc(2 * 1.35em) }
@container (max-width: 300px) {
  .pc2e .pc2-mt { flex-direction: column; align-items: flex-start; gap: 6px }
  .pc2e .pc2-p .pc2-you { flex-basis: 100% }
}
.pr9-g { align-items: stretch }
.pr9-i > .pc2e { height: 100% }
.pc2e .pc2-eb-none { visibility: hidden }

/* ---------- FILTER PANEL ON THE LEFT + TIDY (Harsh 27 Nov, change 24) ---------------------------------
   "filtter view sahi nahi he or usko left said lelo": the Refine panel slides in from the LEFT (was the
   right, where the chat button also sat over "Show pieces"); stone shapes sit in two even columns with
   one photo size; "Clear all" is a proper button beside "Show pieces". */
.fd2-p { left: 0; right: auto; transform: translateX(-100%); box-shadow: 30px 0 60px -30px rgba(0, 0, 0, .35) }
.fd2.on .fd2-p { transform: none }
.fd2-h { padding-inline: 28px }
.fd2-g { gap: 16px }
.fd2-opts:has(.cb-shape) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.fd2-opts button:has(.cb-shape) { justify-content: flex-start; gap: 10px; padding: 7px 14px 7px 8px; min-height: 48px; border-radius: 999px; text-align: left }
.fd2-opts button .cb-shape { width: 32px; height: 32px; flex: none; margin: 0 }
.fd2-f { align-items: stretch }
.fd2-f .cl2 { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; padding: 0 26px; min-height: 50px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line); background: #fff; color: var(--ink); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; text-decoration: none }
.fd2-f .cl2:hover { box-shadow: inset 0 0 0 1px var(--char) }
.fd2-f .ap { flex: 1 1 auto; min-height: 50px }
@media (max-width: 380px) { .fd2-opts:has(.cb-shape) { grid-template-columns: 1fr 1fr } .fd2-opts button:has(.cb-shape) { padding-right: 10px; font-size: .8rem } }
/* while the Refine panel is open, the back-to-top arrow (bottom left, over "Clear all") and the chat
   bubble (over the panel on a phone) step aside; both come back when the panel closes */
body:has(.fd2.on) #cbTop { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important }
@media (max-width: 600px) { body:has(.fd2.on) #relay-widget-host { visibility: hidden !important } }
/* change 25: the Refine panel's scroll bar on its LEFT side (the panel itself sits on the left now);
   the list is flipped for the bar only and flipped back for its content, so nothing else moves */
.fd2-b { direction: rtl; scrollbar-width: thin; scrollbar-color: #B9B1A6 transparent; overscroll-behavior: contain }
.fd2-b > * { direction: ltr }
.fd2-b::-webkit-scrollbar { width: 6px }
.fd2-b::-webkit-scrollbar-thumb { background: #B9B1A6; border-radius: 6px }
.fd2-b::-webkit-scrollbar-track { background: transparent }
/* the panel lives inside the collection section, whose z-index:1 kept the whole panel (its "Refine /
   Close" head too) under the sticky site header; while the panel is open that section is lifted above
   the header — the panel's own dark veil still covers the page around it */
body:has(.fd2.on) .shopify-section:has(.fd2.on) { z-index: 120 !important }
/* change 26 (Harsh 27 Nov, "is ko hata do"): the metal quick-pick row beside "Filters" on collection
   pages is gone; metal is still chosen in the Refine panel. The markup stays (the script still fills
   its counts), it is just not shown. */
.cl-qm { display: none !important }
/* change 27: a card's hover fades its photo out for the second ("life") photo — a card with no second
   photo (recently viewed, a piece with one photo) went blank. With nothing to show instead, the photo
   stays and only zooms a little. */
.pc2:hover .pc2-f:not(:has(.life)) .cut { opacity: 1; transform: scale(1.04) }

/* ---------- INFO PAGES TIDY (Harsh 27 Nov, change 29: "sabhi page me ja ke dekho … sahi set kar do") -----
   1. Contact and Sign in: `.form` is a two-column grid made for loose fields, but the platform wraps
      the fields in a <form>, so the whole form sat in ONE column (inputs 294px of a 604px column;
      sign-in 331 of 678, "Link expired?" 222 of 460). The form now spans the box and its fields stack
      at full width with an even gap.
   2. One heading voice: the in-page headings of Care, Size guide, Shipping, Returns, Privacy, Terms
      (`.cb-prose h2`) and the closing call-out (`.cb-cta h2`) were Playfair, beside section titles in
      Forum on the same page. They now use the section-title face and size.
   3. Room to breathe: the last block of a page no longer runs straight into the dark promise band;
      the "Link expired?" box's form also spans its box. */
.form > form { grid-column: 1 / -1; width: 100%; display: flex; flex-direction: column; gap: 18px }
.form > form .field { width: 100% }
.form > form button, .form > form [type=submit] { width: 100% }
.cb-prose h2, .cb-cta h2 { font-family: var(--caps); font-weight: 400; letter-spacing: .02em; line-height: 1.04 }
.cb-prose h2 { font-size: clamp(1.9rem, 3.6vw, 3.07rem) }
.cb-cta h2 { font-size: clamp(2.1rem, 4vw, 3.4rem) }
.cb-auth-alt > .form { width: 100%; align-self: stretch }
.cl-sec:has(+ .sv) { padding-bottom: clamp(48px, 5vw, 80px) }

/* change 30 (Harsh 27 Nov, "font bahut bade he chote kar do"): the product title on the product page
   was up to 3.4rem (54px) — a long setting name ran to 8 lines. Same face and capitals, about half the
   size, a little more line height so the smaller lines still read as one block. */
.pi9 h1 { font-size: clamp(1.3rem, 1.7vw, 2rem); line-height: 1.18; letter-spacing: .01em }

/* ---------- PRODUCT TRUST BADGES (Harsh 27 Nov, change 32: "is ki design sahi karo") ---------------
   The badges were a 4-column grid, and a product with 5 (Appraisal, Insurance, Secure payment, IGI,
   Shipping) dropped the 5th alone onto a second row with broken dividers. Now one even row whatever
   the count (a hidden IGI badge takes no room): equal boxes, hairline dividers drawn by a 1px gap on
   a line-coloured backing, icon over two lines of text. On a phone they wrap 3 + 2 and the last row
   still fills the width. */
.trust9 { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-left: 0; border-right: 0 }
.trust9 > div { flex: 1 1 0; min-width: 0; border-left: 0 !important; background: var(--ivory, #F7F4EF);
  padding: 16px 8px 14px; gap: 8px; justify-content: flex-start; font-size: .72rem; line-height: 1.35; letter-spacing: .01em }
.trust9 > [hidden] { display: none !important }
.trust9 img, .trust9 svg { width: 26px; height: 26px }
@media (max-width: 600px) {
  .trust9 > div { flex: 1 1 calc(33.333% - 1px); padding: 14px 6px 12px; font-size: .7rem }
  /* fewer than five showing: two a row (4 → 2 + 2) */
  .trust9:not(:has(> :nth-child(5 of :not([hidden])))) > div { flex-basis: calc(50% - 1px) }
}

/* ---------- HEADER ICONS ON ONE LINE (Harsh 27 Nov, change 34: "sabhi ek line me nahi he") ----------
   Search, wishlist, bag and menu are <button>s laid out inline-flex and centred; Account is an <a>,
   which sat on the text baseline — 3.5px higher than the rest. Every icon in the row is now the same
   40px-tall centred box, and the two counts (wishlist, bag) wear the same small round badge instead of
   one dark pill and one bare number. */
.h9h-r > a, .h9h-r > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; line-height: 1 }
.h9h-r svg { display: block; flex: none }
.h9h .h9h-r .ccw, .h9h .h9h-r .ccn { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: rgba(247, 244, 239, .16) !important; color: #F7F4EF !important; font-size: .66rem; font-weight: 500; line-height: 1 }

/* ---------- HEADER ALWAYS DARK (Harsh 1 Dec, change 1) --------------------------------------------
   "nave bar ke sare option bahut der ke bad aa rahe he … scroll ho ne par nave bar ka background chala
   ja raha he or sirf text rehte he". The bar's dark ground only came with the `solid` class: cb.js
   added it after load on inner pages (until then ivory text sat on the ivory page — only the copper
   parts of the logo showed) and on home only past 60px of scroll (so back near the top the ground
   went and the text floated over the page). The ground now belongs to the header itself, at every
   width and scroll position, from the first paint; `solid` only keeps its job of the compact 70px bar. */
.h9h { background: rgba(52, 49, 46, .96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); color: var(--ivory, #F7F4EF) }

/* ---------- NO OVERLAP IN THE HEADER / MEGA MENU (Harsh 1 Dec, change 2: "text overlap ho raha he") -----
   Measured with the real fonts on the draft: on a tablet in landscape (iPad Pro 13 = 1032px, iPad
   1180px) the six menu names ran into the logo ("Carat & Bloom × Engagement Rings"), and in the open
   mega menu the two-column groups (Shop by shape, Ring styles, Gemstone rings) were split into ~90px
   halves, so long names ran into the next column ("Contemporary × Double Halo", "Marquise × Three
   Stone", "Aquamarine × Moissanite") — up to 1366px.
   1. Up to 1279px the header uses the ≡ menu (the phone layout), which has room for every name.
   2. From 1280px the mega columns are a flex row: a two-column group gets 1.7 shares of the width,
      and it only splits into two columns when each column has 108px (the longest name); narrower,
      it stays one column. Names never overlap, whatever the screen. */
@media (max-width: 1279px) {
  .nav9 { display: none }
  .burg9 { display: inline-flex }
  .h9h-in { grid-template-columns: auto 1fr auto; gap: 14px }
  .h9h-in .logo9 { justify-self: center }
}
@media (min-width: 1280px) {
  .nav9 .mega-in { display: flex; gap: 26px 28px; align-items: flex-start }
  .nav9 .mega-in > * { flex: 1 1 0; min-width: 0 }
  .nav9 .mega-in > .mega-c.mega-2 { flex-grow: 1.7 }
  .nav9 .mega-c.mega-2 { column-count: 2; column-width: 108px; column-gap: 18px }
  .nav9 .mega a.ml { font-size: .86rem; overflow-wrap: normal }
}
/* 1280–1439: the six names sit a little closer so "About" keeps clear of the search icon */
@media (min-width: 1280px) and (max-width: 1439px) { .nav9 { gap: clamp(18px, 1.7vw, 26px) } .h9h-r { gap: 16px } }

/* ---------- RING BUILDER: FILTERS ON TOP (Harsh 2 Dec, change 6) ----------------------------------
   "ring builder me filtter sab se pehale said me se top me lelo". Step two's filters were a 270px
   column beside the results; they now sit in a panel ABOVE the results, which take the full width.
   Desktop: origin + shapes on the first row, carat / colour / clarity / price side by side, then the
   advanced grades and Reset. Tablet: two columns. Phone: one. */
.cb-rb-g { grid-template-columns: minmax(0, 1fr) }
.cb-rb-filters { position: static; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px clamp(18px, 2.4vw, 34px);
  align-items: start; padding: 0 0 clamp(22px, 2.6vw, 30px); border-bottom: 1px solid var(--line) }
.cb-rb-filters > .cb-rb-origin { grid-column: 1; align-self: start; margin-top: 27px }
.cb-rb-filters > [data-rb-f="shape"] { grid-column: 2 / -1 }
.cb-rb-filters > .cb-rb-adv { grid-column: 1 / span 3 }
.cb-rb-filters > .cb-rb-adv > .cb-rb-f { display: inline-block; vertical-align: top; width: calc(25% - 22px); margin: 0 22px 16px 0 }
.cb-rb-filters > .cb-rb-adv > .cb-rb-f:has([data-rb-labs]) { width: calc(25% - 22px) }
.cb-rb-filters > .cb-rb-reset { grid-column: -2 / -1; justify-self: end; align-self: start; padding: 10px 0 }
@media (max-width: 1000px) {
  .cb-rb-filters { grid-template-columns: repeat(2, minmax(0, 1fr)) }
  .cb-rb-filters > .cb-rb-origin { grid-column: 1 / -1; margin-top: 0; max-width: 360px }
  .cb-rb-filters > [data-rb-f="shape"] { grid-column: 1 / -1 }
  .cb-rb-filters > .cb-rb-adv { grid-column: 1 / -1 }
  .cb-rb-filters > .cb-rb-adv > .cb-rb-f, .cb-rb-filters > .cb-rb-adv > .cb-rb-f:has([data-rb-labs]) { width: calc(50% - 22px) }
  .cb-rb-filters > .cb-rb-reset { grid-column: 1 / -1; justify-self: start }
}
@media (max-width: 560px) {
  .cb-rb-filters { grid-template-columns: minmax(0, 1fr) }
  .cb-rb-filters > .cb-rb-origin { max-width: none }
  .cb-rb-filters > .cb-rb-adv > .cb-rb-f, .cb-rb-filters > .cb-rb-adv > .cb-rb-f:has([data-rb-labs]) { display: block; width: auto; margin-right: 0 }
}

/* ---------- NECKLACE PICTURE SHOWN WHOLE (Harsh 2 Dec, change 7) ----------------------------------
   "necklaces, bracelets same product image show": the collections slider's centre pill cropped the
   wide tennis-necklace picture to the middle of its loop, which looked exactly like the bracelet
   slide. On the necklace slide the whole picture is shown, on a ground matched to its own edges
   (#21180f at the top, #17100a at the bottom), so the full necklace loop reads as a necklace. */
.ce-pill.is-art.is-whole { background: linear-gradient(180deg, #21180f 0%, #1c140d 50%, #17100a 100%) }
.ce-pill.is-art.is-whole img { object-fit: contain !important; object-position: 50% 50% !important }
/* change 7, take two: no bands above and below — on the necklace slide the pill takes the picture's
   own 2:1 shape and sits at the foot of the column, so the whole necklace fills it edge to edge */
.ce-pill.is-art.is-whole { aspect-ratio: 2 / 1 !important; flex: 0 0 auto !important; min-height: 0 !important; height: auto; margin-top: auto }

/* ---------- FOOTER BAND LOGO, VISIBLE (Harsh 2 Dec, change 8) -------------------------------------
   "logo are not proper visible": the big CARAT & BLOOM across the foot of the footer was painted in
   6% ivory with the gold taken down to the same ghost, so on the dark footer it nearly vanished.
   It now reads: the wordmark in 32% ivory, the ampersand and ring stones in the brand's own gold. */
.f9-mark--logo { color: rgba(247, 244, 239, .32) }
.f9-mark--logo .cb-logo { --cb-logo-accent: #967650 }

/* ---------- PROMISES BOX CLOSED AT THE FOOT (Harsh 2 Dec, change 9) --------------------------------
   "start me jis tari ke se box ki line he vo end me nahi he": the hairline box round "What makes every
   piece different … Surround yourself with light" stood 18px in from the top and the sides, but its
   foot was left open (inset 18px 18px 0, no bottom border), so the side lines ran straight into the
   dark "Shop the look" band. It now closes 18px above the section's end, the same as at the top. */
.ga-shape::before { inset: 18px; border-bottom: 1px solid rgba(191, 123, 74, .35) }

/* ---------- SPACE ABOVE EACH OPTION DIVIDER (Harsh 2 Dec, change 10) --------------------------------
   "option and line divider both are connected so set some space": on the product page the rows built
   from the store's option tree (Total Diamond Weight, Backing Type, Diamond Color, Diamond Clarity,
   Gold Purity …) sit in two plain blocks, [data-v1-rows] and [data-v1-nested], so each row's buttons
   touched the next row's divider line (0px), while the rows outside them (Diamond shape, Metal) have
   20px. Both blocks now stack their rows with the same 20px. */
[data-v1-rows], [data-v1-nested] { display: flex; flex-direction: column; gap: 20px }
[data-v1-nested]:empty { display: none }

/* ---------- ONE NAME, ONE COLUMN (Harsh 2 Dec, change 15) -----------------------------------------
   "one option different different column show one name divide 2 different part": the two-column
   groups of the mega menus are CSS columns, and a column may break INSIDE a box — at 1366px
   "Green Sapphire" (Gemstone rings) put "Green" at the foot of the first column and "Sapphire" at the
   top of the second. Every menu link is now kept whole in one column. */
.mega a.ml, .mega-c a, .ov-sub a { break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid }

/* ---------- RING BUILDER STEP THREE, WHITEMOON LAYOUT (Harsh 2 Dec, change 17) ---------------------
   "white moon me jis tari ke ka 3 step pe page open ho raha he vese hi same hamare me open karvao":
   step three follows whitemoonjewels.com's — the ring named, the setting's picture with the diamond
   in a bubble, the rows (Setting, Ring size, Your diamond, Engraving, Subtotal, Add ring to bag) and a
   sticky "Your ring" card beside it — in Carat & Bloom's own colours and type. */
[data-rb-step="3"] > .cl-head { display: none }
.rv3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(24px, 3.4vw, 56px); align-items: start; padding-top: clamp(8px, 1.5vw, 20px) }
.rv3-st { display: flex; align-items: center; gap: 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--copper); margin: 0 0 14px }
.rv3-st i { width: 10px; height: 10px; border-radius: 50%; background: var(--char) }
.rv3-h { font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; margin: 0 0 12px; text-transform: none }
.rv3-sub { color: var(--ink-2); font-weight: 300; font-size: .92rem; line-height: 1.6; margin: 0 0 clamp(20px, 2.4vw, 30px); max-width: 70ch }
.rv3-media { display: grid; grid-template-columns: minmax(0, 1fr) 84px; gap: 14px; margin-bottom: clamp(22px, 2.6vw, 34px) }
.rv3-pic { position: relative; background: #fff; aspect-ratio: 1 / .92; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line) }
.rv3-pic > img { width: 100%; height: 100%; object-fit: contain }
.rv3-bub { position: absolute; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 14px; background: rgba(247, 244, 239, .94); border-radius: 999px; box-shadow: 0 6px 20px rgba(52, 49, 46, .12); font-size: .78rem; color: var(--ink) }
.rv3-bub img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #fff }
.rv3-th { display: flex; flex-direction: column; gap: 10px }
.rv3-th button { padding: 0; aspect-ratio: 1; background: #fff; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden }
.rv3-th button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px var(--ink) }
.rv3-th img { width: 100%; height: 100%; object-fit: contain }
.rv3-row { padding: 18px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px }
.rv3-row:first-of-type { border-top-color: var(--ink) }
.rv3-k { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted) }
.rv3-lk { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--ink-2) }
.rv3-lk a, .rv3-m a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
.rv3-row h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.3; margin: 0 }
.rv3-m { margin: 0; font-size: .86rem; color: var(--ink-2) }
.rv3-row select, .rv3-row input[type=text], .rv3-row input:not([type]) { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: 13px 14px; width: 100% }
.rv3-row select:disabled { opacity: .5 }
.rv3-chk { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--ink-2) }
.rv3-sum { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-top: 1px solid var(--line); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2) }
.rv3-sum b, .rv3-tot b { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.4rem); letter-spacing: 0; text-transform: none; color: var(--ink) }
.rv3-add { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 17px 22px; border-radius: 999px; background: var(--char); color: var(--ivory, #F7F4EF); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; transition: background .3s }
.rv3-add:hover { background: var(--copper) }
.rv3-note { margin: 14px 0 0; text-align: center; font-size: .8rem; color: var(--muted) }
.rv3-note .cb-rb-restart { margin-left: 8px; text-decoration: underline; text-underline-offset: 3px }
.rv3-side { position: sticky; top: calc(var(--cb-hdr, 84px) + 90px); padding: 22px; background: var(--soft, #efe9e1); display: flex; flex-direction: column; gap: 14px }
.rv3-tag { align-self: flex-start; padding: 4px 10px; background: var(--bg, #F7F4EF); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2) }
.rv3-side-img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff }
.rv3-li { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid rgba(52, 49, 46, .15) }
.rv3-li small { display: block; font-size: .72rem; letter-spacing: .06em; color: var(--muted) }
.rv3-li b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.02rem; line-height: 1.35; margin: 2px 0 }
.rv3-r { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; white-space: nowrap; font-size: .86rem }
.rv3-r a { font-size: .78rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px }
.rv3-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid rgba(52, 49, 46, .15); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2) }
@media (max-width: 1000px) {
  .rv3 { grid-template-columns: minmax(0, 1fr) }
  .rv3-side { position: static }
}
@media (max-width: 560px) {
  .rv3-media { grid-template-columns: minmax(0, 1fr) }
  .rv3-th { flex-direction: row }
  .rv3-th button { width: 64px }
  .rv3-bub { right: 10px; bottom: 10px; font-size: .7rem }
  .rv3-bub img { width: 42px; height: 42px }
}

/* ---------- LESS EMPTY SPACE ON PHONES AND TABLETS (Harsh 2 Dec, change 18) ---------------------
   "remove this extra space" — three bands boxed on an iPhone, each ~100px of nothing:
   product page, trust badges → Details tabs (.pd-g bottom 60px + .ptabs top 44px);
   product page, "About this piece" → "Complete the look" (.ptabs bottom 44px + .rel9 top 60px);
   home, "04 Cared for" → "Surround yourself with light" (.ga-feat bottom 24px + .ga-col top 80px).
   Up to 1000px each band is now about a third of that; desktop is unchanged. */
@media (max-width: 1000px) {
  .pd-g { padding-bottom: 8px }
  .ptabs { padding-top: 4px; padding-bottom: 14px }
  .rel9 { padding-top: 34px }
  .ga-feat { padding-bottom: 12px }
  .ga-col { margin-top: 28px }
}

/* ---------- "MADE TO BLOOM" ON A PHONE, LAID OUT STILL (Harsh 2 Dec, change 19) -----------------
   cb.js adds .az-static up to 760px instead of building the pinned scroll scene: the first word,
   the picture full width, the second word, then the eyebrow, heading, text and button on the page's
   own ground. No sticky pin, no scrubbed sizes, so nothing overlaps and the thumb scrolls normally. */
@media (max-width: 760px) {
  #az.az-static { height: auto }
  .az.az-static .az-pin { position: relative; height: auto; overflow: visible; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: clamp(40px, 11vw, 64px) 16px clamp(36px, 10vw, 56px) }
  .az.az-static .az-w { position: static; transform: none !important; font-size: clamp(3rem, 15vw, 4.6rem); line-height: 1; white-space: nowrap; opacity: 1 !important }
  .az.az-static .az-w.l { align-self: flex-start }
  .az.az-static .az-w.r { align-self: flex-end; margin-top: -4px }
  /* the copy lives INSIDE the picture's frame in the markup: the frame steps aside (display:contents) so
     the picture and the copy are laid out as their own rows — word, picture, word, copy */
  .az.az-static .az-frame { display: contents }
  .az.az-static .az-w.l { order: 0 }
  .az.az-static .az-frame img, .az.az-static .az-frame .cb-ph { order: 1; position: relative; inset: auto; display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transform: none !important; object-position: 50% 40% }
  .az.az-static .az-w.r { order: 2 }
  .az.az-static .az-over { order: 3 }
  .az.az-static .az-frame::after { display: none }
  .az.az-static .az-over { position: static; transform: none !important; opacity: 1 !important; max-width: none; color: var(--ink); gap: 14px; margin-top: 18px }
  .az.az-static .az-over .eyebrow9 { color: var(--copper) !important }
  .az.az-static .az-over h2 { font-size: clamp(2rem, 9vw, 2.6rem); color: var(--char) }
  .az.az-static .az-over p { color: var(--ink-2) }
  .az.az-static .az-over .btn.white { background: var(--char); color: var(--ivory, #F7F4EF) }
  .az.az-static .az-hint { display: none }
}

/* ---------- THE FACTS TABLE, ONE FORMAT (Harsh 2 Dec, change 20) ------------------------------------
   "sahi format me nahi he or extra space bhi he" (/about "In short" on a phone): each value was pushed
   to the right edge, so every value started at a different place (x 70…270 at 375px) and a long one
   wrapped back to the left. The facts table now reads as a table — the labels in one column, every
   value starting on the same line, left-aligned — and on phones the band above it is tighter.
   Scoped to `.cb-facts`; the product page's Details list (`.spec2`) is untouched. */
.cb-facts > div { display: grid; grid-template-columns: minmax(96px, 34%) minmax(0, 1fr); gap: 16px; align-items: baseline; justify-content: stretch }
.cb-facts > div > span:last-child { text-align: left; color: var(--ink) }
@media (max-width: 1000px) {
  .two:has(+ .cb-facts-sec) { padding-bottom: 12px }
  .cb-facts-sec { padding-top: 8px }
}

/* ---------- builder carat: the quick chips sit 10px under the two boxes (Harsh 2 Dec, change 24 —
   "design me problem he"; they were touching the boxes) */
.cb-rb-f .cb-rb-range[data-rb-range="carat"] + .cb-rb-quick, .cb-rb-f .cb-rb-quick { margin-top: 10px }

/* ---------- SITE SWEEP 2 DEC (change 26) — the bag drawer on phones --------------------------------
   The items list was its own small scroll box (flex: 1, overflow-y: auto) under a footer that, on a
   phone, takes half the screen (subtotal, gift note, Checkout, Share, View bag): measured at 375×812
   the list got 284px for a 665px line, so the line's options and its − / + were hidden behind the
   footer with nothing saying "scroll here". On phones the whole drawer scrolls instead: the line is
   shown in full, the footer follows it. */
@media (max-width: 600px) {
  .drawer.cart { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain }
  .drawer.cart .cart-items { flex: 0 0 auto; overflow: visible }
}
/* (sweep, change 26) product page: on phones and tablets the page began 106px under the header — the
   desktop offset (.pd 96px + its top row) — against 50px on every other page; brought in line */
@media (max-width: 900px) { .pd { padding-top: calc(30px + env(safe-area-inset-top, 0px)) } }
/* (sweep) the sale badge on cards was 8.5px on phones — readable now — and the announcement bar 10px */
@media (max-width: 767px) {
  .pc2e .bf-pill, body .pc2e .bf-pill { font-size: 10px !important; letter-spacing: .06em !important }
  body .bf-bar .bf-hl { font-size: 11px !important }
}
/* (sweep) card metal dots: 16px dots with a 22px touch area were too small to hit with a thumb; on touch
   screens each dot answers over ~32px (the dot itself is unchanged, the dots sit a little further apart) */
@media (hover: none), (max-width: 820px) {
  .pc2-sw { gap: 12px }
  .pc2-sw [data-card-swatch]::before { inset: -8px }
}
/* (sweep) the register page's checkbox was a 13px target */
.cb-acct input[type="checkbox"], form input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--char) }
/* (sweep) at 320px the 11px bar wrapped to two lines — the smallest phones keep 10px */
@media (max-width: 359px) { body .bf-bar .bf-hl { font-size: 10px !important } }

/* (sweep, change 26) the product page's sticky bar on phones: picture, name + variant, price and the
   button shared one row that the chat widget's 76px also took from, so the name column got 43px — the
   title vanished, "White Gold · Round" broke one word per line and the price sat on top of it. On
   phones it is two lines on the left (name, then price) and the button on the right. */
@media (max-width: 600px) {
  .sbar .sbar-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; row-gap: 2px; align-items: center; min-height: 0; padding-top: 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)) }
  .sbar .sbar-in > img, .sbar .sbar-in > .cb-ph { display: none }
  .sbar .t { grid-column: 1; grid-row: 1; min-width: 0 }
  .sbar .t b { display: block; font-size: .98rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
  .sbar .t span { display: none }
  .sbar [data-pdp-price3] { grid-column: 1; grid-row: 2; font-size: 1.05rem !important; line-height: 1.2 }
  .sbar .main { grid-column: 2; grid-row: 1 / 3; padding: 13px 18px; font-size: .7rem; letter-spacing: .12em }
}

/* (sweep, change 26) /collections, search results and the 404: the block under the page title had
   `padding-block: clamp(36px,4vw,56px) var(--sec)` — `--sec` is only defined on the collection page's
   `.cl` wrapper; outside it the declaration is invalid, so the padding was 0: the first row touched the title's hairline and the
   pager / the 404's buttons sat on the footer. Real values now; and the search box under a centred title
   is centred too (it hugged the left edge). */
.ptitle ~ .cl-grid-w { padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 100px) }
.ptitle .cb-searchbar { margin-left: auto; margin-right: auto }
/* (sweep) the small logo on the dark header and the dark ≡ menu: the brand gold #967650 on charcoal is
   about 2.9:1, and at 17px the "&" and the two cushion "OO" stones all but vanished ("CARAT BL  M").
   On those dark bars the same gold is drawn a step lighter; the footer's larger logo keeps #967650. */
#h9h .cb-logo, #ov .cb-logo { --cb-logo-accent: #C8A276 }
/* (sweep) on phones the footer's decorative ring (svg.rays4, top right) ran straight through the
   newsletter heading "Closer to light, every month"; it is left out there (tablets and up keep it
   in the corner, clear of the words) */
@media (max-width: 760px) { .f9 .rays4 { display: none } }
/* (sweep) the fixed scroll-progress rail (.prog9, a hairline with a "+") sits 19px from the right edge;
   on tablets the content runs to 22px from the edge, so the rail ran along fields, tables and buttons
   (sign-in, contact, care). It shows only where the margin can hold it (1101px and up). */
@media (max-width: 1100px) { .prog9 { display: none !important } }

/* (sweep) home, phones: the "Why Carat & Bloom" text and pictures started 2px inside the box's
   18px frame line, so the words touched the line. Everything except the feature grid (which has its
   own padding) now sits 14px clear of it. */
@media (max-width: 760px) {
  .ga-in > :not(.ga-feats) { padding-inline: 14px; box-sizing: border-box }
}
/* (sweep) home, phones: five collection tabs in two columns left "05 Bracelets" alone under an empty
   cell. The last odd tab now spans both columns, so the grid closes evenly. */
@media (max-width: 760px) {
  .ce-tabs > :last-child:nth-child(odd) { grid-column: 1 / -1 }
}

/* (sweep) collection pages, under 1101px: the active tile's copper corner sat 58-62px above the tile's
   bottom, which is the top of a ONE-line title. Names that wrap ("Engagement / Rings", "Wedding / Bands")
   are two lines tall, so the corner ran through the first word. It now closes the tile's own bottom
   corner, below the count, clear of the text whatever its length. */
@media (max-width: 1100px) { .cc2-fr::after { bottom: 0 } }

/* (sweep) ring builder Colour / Clarity sliders, and the price slider in the collection filter drawer,
   were the browser's own blue controls - the only blue on the site. Same behaviour, drawn in the
   house style: a hairline track and a charcoal knob with a stone ring; copper while held. */
.cb-rb-range input[type=range], .fd2-p input[type=range] {
  -webkit-appearance: none; appearance: none; background: transparent; height: 28px; margin: 0; cursor: pointer; accent-color: var(--char)
}
.cb-rb-range input[type=range]::-webkit-slider-runnable-track, .fd2-p input[type=range]::-webkit-slider-runnable-track { height: 2px; background: rgba(52,49,46,.22); border-radius: 0 }
.cb-rb-range input[type=range]::-moz-range-track, .fd2-p input[type=range]::-moz-range-track { height: 2px; background: rgba(52,49,46,.22); border-radius: 0 }
.cb-rb-range input[type=range]::-webkit-slider-thumb, .fd2-p input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px; margin-top: -7px; border-radius: 50%; background: var(--char); border: 3px solid var(--stone, #F3EEE8); box-shadow: 0 0 0 1px var(--char); transition: background .3s, box-shadow .3s
}
.cb-rb-range input[type=range]::-moz-range-thumb, .fd2-p input[type=range]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: var(--char); border: 3px solid var(--stone, #F3EEE8); box-shadow: 0 0 0 1px var(--char) }
.cb-rb-range input[type=range]:active::-webkit-slider-thumb, .fd2-p input[type=range]:active::-webkit-slider-thumb,
.cb-rb-range input[type=range]:focus-visible::-webkit-slider-thumb, .fd2-p input[type=range]:focus-visible::-webkit-slider-thumb { background: var(--copper); box-shadow: 0 0 0 1px var(--copper) }
.cb-rb-range input[type=range]:focus-visible, .fd2-p input[type=range]:focus-visible { outline: none }
@media (max-width: 760px) { .cb-rb-range input[type=range], .fd2-p input[type=range] { height: 44px } }

/* (sweep) ring builder step rail: a chosen step's short label ("Your setting") keeps its own width and
   the setting's name beside it gives way (that name already ends in "…"). */
.bb3-s.done .bb3-t, a.bb3-s .bb3-t { flex-shrink: 0 }
.bb3-sum { flex: 0 1 auto } .bb3-sum > span { min-width: 0 } .bb3-sum b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap }

/* (sweep) product page quantity: the − 1 + control was stretched to the full column width with 30px
   buttons huddled at its left edge. It is now a compact 3-cell stepper with 44px touch cells. */
.og-qty .stepper { align-self: flex-start; width: auto; height: 44px; align-items: stretch }
.og-qty .stepper button { width: 44px; height: 44px; font-size: 1.05rem; transition: background .3s }
.og-qty .stepper button:hover { background: var(--stone) }
.og-qty .stepper span { min-width: 44px; font-size: .95rem; box-shadow: inset 1px 0 0 var(--line), inset -1px 0 0 var(--line) }

/* (sweep) product page Details / Care lists on phones: each row pushed label and value apart with
   space-between, so short labels ("Every day") and long ones ("Every month") started their values at
   different places and the column looked ragged. Phones get a fixed label column. */
@media (max-width: 760px) {
  .spec2 div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: baseline }
  .spec2 div span:first-child { white-space: nowrap }
  .spec2 div span:last-child { text-align: right; justify-self: end }
}

/* (sweep) "Hover to zoom" under the main photo means nothing on a touch screen - hidden there. */
@media (hover: none) { .gal9 .mn .zh { display: none } }

/* (sweep) product page breadcrumb at tablet widths: each crumb wrapped inside itself ("ENGAGEMENT /
   RINGS" over two lines, the title over three). Crumbs stay on one line; the product title, last,
   gives way with "…". */
@media (max-width: 1100px) {
  .pd-top { min-width: 0 } .pd-top .crumb { flex-wrap: nowrap; min-width: 0; max-width: 100% }
  .pd-top .crumb > * { white-space: nowrap; flex: none }
  .pd-top .crumb > [aria-current] { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis }
}

/* (sweep) product page tabs on phones: the four tab names are ~370px on one line, so CARE sat past the
   right edge with nothing to say the row scrolls. Under 480px they sit two by two, all in view; the
   copper underline still marks the open one. */
@media (max-width: 480px) {
  .ptabs-n { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; overflow: visible }
  .ptabs-n button { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); margin-bottom: -1px }
  .ptabs-n button::after { bottom: -1px }
}

/* (sweep) form fields: the contact Subject select kept the browser's own chevron and was a few px taller
   than the inputs beside it; it now draws the same thin chevron as the rest of the site and matches
   the inputs. The register "Email me…" checkbox sat in the uppercase field-label style and its second
   line ran back under the box; it now reads as a sentence with the text hanging beside the box. */
.field select { -webkit-appearance: none; appearance: none; height: 48px; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334312E' stroke-width='1.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px }
.field input:not([type=checkbox]):not([type=radio]) { height: 48px }
.field label:has(> input[type=checkbox]) { display: flex; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 400; line-height: 1.5; cursor: pointer }
.field label:has(> input[type=checkbox]) input { flex: none; margin: 2px 0 0 }

/* (sweep) policy, size-guide and care pages: the first section began 28px under the title band's
   rule, so "WHAT WE COLLECT" sat almost on the line while every later section had a full gap above it. */
.ptitle + .cl-sec { padding-top: clamp(44px, 5.5vw, 76px) }

/* (sweep) size guide / care numbered steps (.tl): the grid has three columns but each row has two
   children, so the words were squeezed into the middle column and the widest column stayed empty
   (text 224px wide at 768, lines of three or four words). The text now spans both columns. */
@media (min-width: 761px) { .tl > :not(b) { grid-column: 2 / -1; max-width: 68ch } }

/* (sweep) the empty journal ("No stories yet") had a small sans heading; it now takes the serif used
   for every other empty state (.cl-empty b). */
.cl-empty h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; line-height: 1.15 }

/* (sweep) sign-in and register: the email form began 20px under the title band's rule while the
   "Link expired?" box beside it was framed and inset, so the two columns started at different heights.
   Both now start a full gap below the rule, and the plain form sits level with the box's own contents. */
.ptitle + .cb-auth { padding-top: clamp(40px, 5vw, 64px) }
@media (min-width: 861px) { .cb-auth > .form { padding-top: 26px } }

/* (sweep) phone/overlay menu: shape links carry a 24px diamond picture, the style links beside them
   are text only, so the two columns had different row heights and never lined up. Every link in a
   group is now one 34px row. */
#ov .ov-g a { display: flex; align-items: center; min-height: 34px; padding: 0 }

/* (sweep) home manifesto on phones: "The house of Carat & Bloom" was held to 12 characters a line
   (right for the desktop side column) and broke into four short lines beside the roman numeral.
   On phones it gets room for two lines and a touch more size. */
@media (max-width: 760px) { .mn-eb { max-width: 22ch; font-size: .72rem } }

/* (change 28) the ring-size select the shopper must fill before going on: a copper edge until a size is picked */
.cb-sel.is-missing { border-color: var(--copper) !important; box-shadow: 0 0 0 1px var(--copper) }

/* ---------- bag drawer line: Remove on the quantity row, as on Whitemoon (2 Dec, 2dec-2 #2) ----------
   It sat right under the price at the top of the line. The right column now runs the full height of the
   line: price at the top, Remove at the bottom, level with the − 1 + stepper. */
.ci:has(.stepper) { align-items: stretch }
.ci:has(.stepper) > .cimg { align-self: center }
.ci:has(.stepper) > div:not(.ci-r) { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end }
.ci:has(.stepper) > div:not(.ci-r) > .stepper { align-self: flex-start }
.ci:has(.stepper) > .ci-r { justify-content: space-between }
.ci:has(.stepper) > .ci-r .up { margin-top: auto; display: inline-flex; align-items: center; min-height: 30px; padding: 0 }

/* ---------- product cards: border on the home rail, heart level with the sale tag, equal grid gaps (2 Dec, 2dec-2 #3) ----------
   1. The card's 1px frame is an outer box-shadow, and the home rail's scroller (.pr9-vp, overflow) cut it off,
      so home cards had no frame while the listing's had one. On the rail the frame is drawn INSIDE the card
      (outline, offset -1px), which no scroller can clip; same colour, same dark frame on hover.
   2. The heart sat 12px (phones 3.5px) below the centre of the CYBER WEEK tag. The picture box clips its
      overflow, so the heart's box is sized to the tag instead of moved up: 30px tall at the picture's top-right
      corner = the tag's own height, and 12px from the card edge like the tag (phones: 34px tap size, 8px). */
.pr9-vp .pc2e, .pr9-vp .pc2e:hover { box-shadow: none }
.pr9-vp .pc2e { outline: 1px solid var(--soft-2, #E2DCD4); outline-offset: -1px }
.pr9-vp .pc2e:hover { outline-color: var(--char) }
.pc2e .pc2-act { top: 0; right: 0 }
.pc2e .pc2-act button { width: 30px; height: 30px }
@media (max-width: 600px) {
  .pc2e .pc2-act { top: 2px; right: 0 }
  .pc2e .pc2-act button { width: 34px; height: 34px }
}
/* 3. The listing grid's row gap now equals its column gap at every width (it was 46 vs 26 on desktop). */
.cl-grid { row-gap: clamp(18px, 2.2vw, 32px) }
@media (min-width: 1001px) { .cl-grid { row-gap: clamp(14px, 1.8vw, 26px) } }
@media (max-width: 540px) { .cl-grid { row-gap: 12px } }

/* ---------- home: no empty bands around the manifesto, less air above "Most loved" (2 Dec, 2dec-2 #4) ----------
   The manifesto's pin was a full screen (100vh) with its content centred in it, so ~180px of empty ruled
   paper showed under the hero and again before "The collections". The pin is now as tall as its content
   (plus a little air) and sticks centred under the header (--mn-top, set by cb.js); the scroll runway stays
   45vh (phones 35vh) through an empty spacer after the pin, so the scene plays over the same distance. */
#mn:not(.mn-static) { height: auto }
#mn:not(.mn-static)::after { content: ""; display: block; height: 45vh }
#mn:not(.mn-static) .mn-pin { height: auto; top: var(--mn-top, 0px); padding-block: clamp(40px, 4.5vw, 72px) }
@media (max-width: 900px) { #mn:not(.mn-static)::after { height: 35vh } }
/* services cards -> "Most loved": 80px + 88px of padding (189px of empty paper) down to about 95px */
#shopify-section-services > .cs { padding-bottom: clamp(24px, 2.2vw, 32px) }
#shopify-section-rail > .pr9 { padding-top: clamp(36px, 3.4vw, 48px) }

/* ---------- the ≡ menu on phones and tablets, laid out like Panaroma's (2 Dec, 2dec-2 #7) ----------
   It was "Close ✕" at the top, the logo under it, then ~170px of empty panel before the list, because
   .ov-l spreads logo / list / footer with space-between under a 100px top padding. Now the logo and a
   ✕ share the top row, the list starts right under them, and each item is one row with a hairline
   under it: copper number + name on the left, a chevron on the right that opens its sub-links (the
   same <details>, so nothing changes in the markup and the desktop panel is untouched). */
@media (max-width: 800px) {
  #ov .ov-l { padding: calc(14px + env(safe-area-inset-top, 0px)) 20px 32px; justify-content: flex-start; gap: 0 }
  #ov .ov-logo { display: flex; align-items: center; min-height: 52px; margin: 0 56px 10px 0 }
  #ov .ov-close { top: calc(14px + env(safe-area-inset-top, 0px)); left: auto; right: 12px; width: 52px; height: 52px;
    display: flex; align-items: center; justify-content: center; font-size: 0; letter-spacing: 0; color: #EFE9E1 }
  #ov .ov-close::before { content: "\2715"; font-size: 20px; line-height: 1 }
  #ov .ov-links { display: flex; flex-direction: column }
  #ov .ov-item { position: relative; border-bottom: 1px solid rgba(239, 233, 225, .14) }
  #ov .ov-links .ov-item > a { min-height: 64px; padding: 8px 56px 8px 0; align-items: center; gap: 14px;
    font-size: clamp(1.7rem, 7.6vw, 2.2rem); line-height: 1.1 }
  #ov .ov-links .ov-item > a small { min-width: 1.6em; color: var(--copper-2, #D9A57C) }
  #ov .ov-links .ov-item > a:hover { padding-left: 0 }
  #ov .ov-sub summary { position: absolute; top: 0; right: 0; z-index: 2; width: 52px; height: 64px; padding: 0;
    display: flex; align-items: center; justify-content: flex-end; font-size: 0; letter-spacing: 0 }
  #ov .ov-sub summary::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 1.5px solid #B9B2A8;
    border-bottom: 1.5px solid #B9B2A8; transform: translateY(-3px) rotate(45deg); transition: transform .3s }
  #ov .ov-sub[open] summary::after { content: ""; transform: translateY(2px) rotate(-135deg) }
  #ov .ov-subs { padding: 2px 0 18px }
  #ov .ov-foot { margin-top: 24px }
}

/* ---------- product page: the metal choices on ONE line on phones (2 Dec, 2dec-2 #8) ----------
   Five 66px swatches + 10px gaps need ~370px; a phone's column is 288-361px, so Silver dropped to a
   second line and "Yellow Gold" broke over two. On phones the row no longer wraps, each choice may
   shrink below 66px, the dot is smaller and the name stays on one line. */
@media (max-width: 600px) {
  .og .mets { flex-wrap: nowrap; gap: 4px }
  .og .mets a { flex: 0 1 66px; min-width: 0; width: auto; gap: 5px; white-space: nowrap;
    font-size: clamp(9px, 2.85vw, 11.5px); letter-spacing: 0 }
  .og .mets a i { width: clamp(28px, 8.4vw, 34px); height: clamp(28px, 8.4vw, 34px); flex: none }
}

/* ---------- search starts at 3 characters: the hint under a search form (2 Dec, 2dec-2 #9) ---------- */
.cb-sq-hint { margin: 8px 0 0; font-size: .82rem; color: var(--copper) }
.search .cb-sq-hint { color: var(--copper-2, #D9A57C) }

/* ---------- ring builder step 2: the 11 diamond shapes as 6 + 5 (2 Dec, 2dec-2 #10) ----------
   From 1200px up all 11 fit on one line and stay that way. Below that the wrapping row broke them
   8 + 3 (tablets), 9 + 2 (820px) or 4 + 4 + 3 (phones). Now they sit in a 6-column grid: 6 on the
   first line, 5 on the second, every tile the same size. Phones get a smaller icon and name so six fit. */
@media (max-width: 1199px) {
  .cb-rb-shapes { display: grid; grid-template-columns: repeat(6, minmax(0, 96px)); gap: 6px }
  .cb-rb-shapes button:has(.cb-shape) { min-width: 0; width: 100%; padding-inline: 4px }
}
@media (max-width: 600px) {
  .cb-rb-shapes { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px }
  .cb-rb-shapes button:has(.cb-shape) { padding: 8px 2px 6px; gap: 4px; font-size: clamp(8.5px, 2.6vw, 11px); line-height: 1.15; text-align: center }
  .cb-rb-shapes button .cb-shape.is-in { width: clamp(22px, 7vw, 30px); height: clamp(22px, 7vw, 30px) }
}

/* ---------- bag page "Protect this item": easy to see (2 Dec, 2dec-2 #11) ----------
   The box had the page's own ivory background and a #DDD6CC hairline, so it melted into the page. Its small
   print (the one-line terms, "What is covered", "Manufacturing faults") was #8C867E: 3.3:1, below the
   4.5:1 readable minimum. The picked plan was only a shade darker than the rest.
   Now:
   - the box is white with a darker frame
   - every line of small print is #5B5752 (7:1 or better)
   - the plans have a clear frame
   - the picked plan is filled charcoal with ivory text
   - the ticks are a deeper copper */
.cb-pc-in { background: #fff; box-shadow: inset 0 0 0 1px #CFC6BA }
.cb-pc-t { color: var(--ink) }
.cb-pc-s, .cb-pc-u, .cb-pc-badge.off { color: var(--ink-2) }
.cb-pc-lk { color: var(--ink); text-decoration: underline; text-underline-offset: 3px }
.cb-pc-lk:hover { color: var(--gold) }
.cb-pc-o { background: var(--bg); box-shadow: inset 0 0 0 1px #BDB3A6; color: var(--ink) }
.cb-pc-o:hover { box-shadow: inset 0 0 0 1px var(--ink) }
.cb-pc-r { border-color: var(--ink-2) }
.cb-pc-o.on { background: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--bg) }
.cb-pc-o.on .cb-pc-n, .cb-pc-o.on .cb-pc-p, .cb-pc-o.on .cb-pc-u { color: var(--bg) }
.cb-pc-o.on .cb-pc-r { border-color: var(--bg); background: var(--bg); box-shadow: inset 0 0 0 3px var(--ink) }
.cb-pc-top { background: #A0623A; color: #fff; box-shadow: 0 0 0 2px #fff }
.cb-pc-b { background: var(--soft); box-shadow: inset 0 0 0 1px #CFC6BA }
.cb-pc-bt { color: var(--ink) }
.cb-pc-bl { color: var(--ink) }
.cb-pc-bl li::before { color: #A0623A; font-weight: 600 }
.cb-pc-tot { border-top-color: #CFC6BA }
.cb-pc-badge { background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px #CFC6BA }

/* ---------- home "Five ways to wear light" fits a phone screen (2 Dec, 2dec-2 #12) ----------
   On a phone the panel stacked three full blocks (dark card 465px + centre 478px + "next" 266px) =
   1,210px, about 1.4 screens, so it was always cut at the top or the bottom while scrolling.
   On phones and tablets (up to 980px, where the three blocks stack) it is now compact:
   - the dark card puts its photo as a 96px square beside the words
   - the centre keeps its heading, first line and the piece's photo (16:9)
   - the "next" block is one row: Next · name on the left, the arrows on the right
   Tabs, words and links are all still there; only the second centre paragraph and the big "next"
   photo are left out on phones. */
@media (max-width: 980px) {
  .ce-tabs { margin-bottom: 14px }
  .ce-tabs button { padding: 11px 4px 10px; font-size: 1rem }
  .ce-frame { min-height: 0; border-radius: 18px 18px 0 0 }
  .ce-dark { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 14px; row-gap: 6px;
    padding: 18px; align-content: center; align-items: start }
  .ce-dark .thumb { grid-row: 1 / span 3; width: 96px; height: 96px; aspect-ratio: 1; align-self: center; flex: none; min-height: 0 }
  .ce-dark h3 { margin: 0; font-size: 1.3rem; line-height: 1.15 }
  .ce-dark p { margin: 0; font-size: .8rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden }
  .ce-dark .lk9 { font-size: .7rem }
  .ce-mid { padding: 20px 18px 18px; gap: 10px }
  .ce-mid h2 { font-size: 2rem }
  .ce-mid p { font-size: .84rem; line-height: 1.55 }
  .ce-mid > p + p { display: none }
  .ce-pill { aspect-ratio: 16 / 9; max-height: 38vh; margin-top: 6px }
  .ce-right { display: block; padding: 12px 18px }
  .ce-peek { display: none }
  .ce-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px; align-items: center }
  .ce-next small { grid-column: 1 }
  .ce-next b { grid-column: 1; font-size: 1.35rem }
  .ce-next .ce-arrows { grid-column: 2; grid-row: 1 / span 2; margin: 0 }
  .ce-arrows button { width: 44px; height: 44px }
}
@media (max-width: 600px) {
  .ce-mid { padding: 16px 18px 14px; gap: 8px }
  .ce-mid h2 { line-height: 1 }
}
@media (max-width: 360px) {
  .ce-mid h2 { font-size: 1.75rem }
  .ce-pill { aspect-ratio: 2 / 1 }
  .ce-tabs button { font-size: .92rem; padding: 9px 2px 8px }
  .ce-dark p { -webkit-line-clamp: 2 }
}
