/* NinaVova × Nivoda: Diamonds and Gemstones pages.
   Built on the tokens of the ninavova.com homepage sections (.nv-process, .nv-guides, .nv-path):
   Belda Norm headings with italic gold emphasis, Inter for UI, ink/gold/cream palette,
   square corners, hairline-bordered grids and small tracked uppercase buttons.
   Classes use the nvd- prefix so they never collide with the site's own nv- sections. */

.nvd-root {
  --nvd-ink: #1d1d1b;
  --nvd-night: #1d1a17;
  --nvd-night-2: #221e1a;
  --nvd-night-3: #2a251f;
  --nvd-night-line: #342f2a;
  --nvd-gold: #c39255;
  --nvd-gold-deep: #a87c4a;
  --nvd-cream: #fffaf2;
  --nvd-cream-2: #f7f1e8;
  --nvd-stone: #f7f6f3;
  --nvd-paper: #fffdf9;
  --nvd-well: #eee9e1;
  --nvd-line: #ddd5ca;
  --nvd-line-2: #cfc5b8;
  --nvd-text: #7c766f;
  --nvd-text-2: #4f4a45;
  --nvd-text-night: #8f8881;
  --nvd-serif: 'Belda Norm Regular', Georgia, serif;
  --nvd-sans: Inter, Arial, sans-serif;
  --nvd-header: var(--wd-header-h, 90px);
  font-family: var(--nvd-sans);
  color: var(--nvd-ink);
}
.nvd-root, .nvd-root *, .nvd-root *::before, .nvd-root *::after { box-sizing: border-box; }

/* Neutralise WoodMart's element styles inside our pages */
.nvd-root :is(h1, p, dl, dt, dd, fieldset, legend, label, form) { margin: 0; padding: 0; }
.nvd-root fieldset { border: 0; min-width: 0; }
.nvd-root label { display: block; color: inherit; font-weight: inherit; vertical-align: baseline; }
.nvd-root :is(button, input, select) {
  box-sizing: border-box;   /* the theme's reset sets search boxes to content-box, which made them overflow */
  font-family: var(--nvd-sans); letter-spacing: normal; text-transform: none;
  box-shadow: none; min-height: 0; line-height: normal;
}
.nvd-root a { box-shadow: none; }
.nvd-root a:hover { text-decoration: none; }
.nvd-root img { max-width: 100%; }

.nvd-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Full-bleed sections, same technique as the homepage sections */
.nvd-hero, .nvd-body {
  position: relative; left: 50%; right: 50%;
  width: 100vw; max-width: 100vw; margin-left: -50vw; margin-right: -50vw;
  overflow: hidden;
}
.nvd-wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
/* Search and stone pages use more of wide screens, like the large marketplaces do. */
.nvd-search .nvd-wrap { max-width: 1840px; padding: 0 clamp(24px, 3.4vw, 64px); }
.nvd-detail .nvd-wrap { max-width: 1560px; padding: 0 clamp(24px, 3.4vw, 64px); }

/* Shared type */
.nvd-root .nvd-kicker {
  font-family: var(--nvd-sans); font-size: 11px; font-weight: 600; line-height: 1.5;
  letter-spacing: .18em; text-transform: uppercase; color: var(--nvd-gold); margin: 0 0 18px;
}
.nvd-root .nvd-title {
  font-family: var(--nvd-serif); font-weight: 400; font-size: clamp(40px, 4.4vw, 66px);
  line-height: 1.07; letter-spacing: -.02em; text-transform: none; color: var(--nvd-cream-2); margin: 0;
}
.nvd-root .nvd-title em { font-style: italic; font-weight: 400; color: var(--nvd-gold); }

/* Buttons and links, matching .nv-process-btn and .nv-process-link */
.nvd-root .nvd-btn, .nvd-root .nvd-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 0; cursor: pointer; white-space: nowrap;
  font-family: var(--nvd-sans); font-size: 10px; font-weight: 700; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}
.nvd-root .nvd-btn { background: var(--nvd-ink); color: var(--nvd-cream); border: 1px solid var(--nvd-ink); }
.nvd-root .nvd-btn:hover { background: var(--nvd-gold); border-color: var(--nvd-gold); color: var(--nvd-cream); }
.nvd-root .nvd-ghost { background: transparent; color: var(--nvd-ink); border: 1px solid var(--nvd-ink); }
.nvd-root .nvd-ghost:hover { background: var(--nvd-ink); color: var(--nvd-cream); }
.nvd-root .nvd-ghost[disabled] { opacity: .5; cursor: default; }

.nvd-root .nvd-link {
  position: relative; display: inline-block; padding: 0 0 5px; margin: 0;
  background: none; border: 0; border-radius: 0; cursor: pointer;
  font-family: var(--nvd-sans); font-size: 10px; font-weight: 700; line-height: 1.2;
  letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--nvd-ink);
  transition: color .25s ease;
}
.nvd-root .nvd-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(29, 29, 27, .28); transition: background-color .25s ease;
}
.nvd-root .nvd-link:hover { color: var(--nvd-gold); }
.nvd-root .nvd-link:hover::after { background: var(--nvd-gold); }
.nvd-root .nvd-link-gold { color: var(--nvd-gold); }
.nvd-root .nvd-link-gold::after { background: var(--nvd-gold); }

.nvd-root :is(.nvd-btn, .nvd-ghost, .nvd-link, .nvd-card, select, input):focus-visible,
.nvd-root .nvd-tile input:focus-visible + .nvd-tile-face,
.nvd-root .nvd-chip input:focus-visible + span {
  outline: 2px solid var(--nvd-gold); outline-offset: 2px;
}

/* ---------- Hero (dark, sits under WoodMart's transparent header) ---------- */
.nvd-hero {
  background: var(--nvd-night); color: var(--nvd-cream);
  padding: calc(var(--nvd-header) + 72px) 0 80px;
}
.nvd-hero-head { max-width: 720px; margin-bottom: 56px; }
.nvd-root .nvd-intro {
  font-family: var(--nvd-sans); font-size: 15px; line-height: 1.8; color: var(--nvd-text-night);
  max-width: 600px; margin: 22px 0 0;
}

/* Shape and gem tiles: a hairline grid like .nv-path-grid */
.nvd-tiles {
  display: grid; grid-template-columns: repeat(10, minmax(0, 1fr));
  border-top: 1px solid var(--nvd-night-line); border-left: 1px solid var(--nvd-night-line);
}
.nvd-tiles-gems { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.nvd-root .nvd-tile { position: relative; cursor: pointer; margin: 0; }
.nvd-root .nvd-tile input, .nvd-root .nvd-chip input {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none;
}
.nvd-tile-face {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  height: 100%; padding: 28px 8px 24px;
  border-right: 1px solid var(--nvd-night-line); border-bottom: 1px solid var(--nvd-night-line);
  background: var(--nvd-night); transition: background-color .25s ease;
}
.nvd-tile:hover .nvd-tile-face { background: var(--nvd-night-2); }
.nvd-shape-svg {
  width: 36px; height: 36px; fill: none; stroke: var(--nvd-gold);
  stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round;
}
.nvd-tile-label {
  font-family: var(--nvd-sans); font-size: 10px; font-weight: 700; line-height: 1.2;
  letter-spacing: .14em; text-transform: uppercase; color: var(--nvd-text-night); text-align: center;
  transition: color .25s ease;
}
.nvd-tile:hover .nvd-tile-label { color: var(--nvd-cream); }
.nvd-tile input:checked + .nvd-tile-face { background: var(--nvd-night-3); box-shadow: inset 0 -2px 0 var(--nvd-gold); }
.nvd-tile input:checked + .nvd-tile-face .nvd-tile-label { color: var(--nvd-cream); }
.nvd-dot {
  position: relative; display: block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--nvd-dot, #d9c6b6);
}
.nvd-dot::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.nvd-tiles-gems .nvd-tile-face { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 22px 20px; }
.nvd-tiles-gems .nvd-tile-label { text-align: left; }

/* ---------- Body ---------- */
.nvd-body { background: var(--nvd-paper); padding: 64px 0 104px; }
/* WoodMart leaves 40px of grey under the page content; carry the section colour into it. */
.nvd-body:last-child { box-shadow: 0 40px 0 0 var(--nvd-paper); }
.nvd-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (min-width: 1840px) { .nvd-search .nvd-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Filters */
.nvd-filters-head { display: none; }
.nvd-filters:focus { outline: none; }
.nvd-group { padding: 0 0 26px !important; margin: 0 0 26px !important; border-bottom: 1px solid var(--nvd-line) !important; }
.nvd-root .nvd-group-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%;
  margin: 0 0 14px; font-family: var(--nvd-sans); font-size: 11px; font-weight: 700; line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--nvd-ink);
}
.nvd-hint { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--nvd-text); }

.nvd-chips {
  display: grid; grid-template-columns: repeat(var(--nvd-cols, 4), minmax(0, 1fr));
  border-top: 1px solid var(--nvd-line); border-left: 1px solid var(--nvd-line);
}
.nvd-root .nvd-chip { position: relative; cursor: pointer; margin: 0; }
.nvd-chip span {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 40px;
  padding: 8px 6px; text-align: center;
  border-right: 1px solid var(--nvd-line); border-bottom: 1px solid var(--nvd-line);
  background: var(--nvd-paper); color: var(--nvd-ink);
  font-family: var(--nvd-sans); font-size: 12px; font-weight: 500; line-height: 1.25;
  transition: background-color .2s ease, color .2s ease;
}
.nvd-chip:hover span { background: var(--nvd-cream-2); }
.nvd-chip input:checked + span { background: var(--nvd-ink); color: var(--nvd-cream); }

.nvd-range { display: flex; align-items: center; gap: 10px; }
.nvd-root .nvd-range label { flex: 1; min-width: 0; margin: 0; }
.nvd-range-sep { font-size: 12px; color: var(--nvd-text); }
.nvd-input-wrap { position: relative; display: block; }
.nvd-unit { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 13px; color: var(--nvd-text); pointer-events: none; }
.nvd-root .nvd-range input[type="number"] {
  width: 100%; height: 42px; margin: 0; padding: 0 12px;
  border: 1px solid var(--nvd-line); border-radius: 0; background: var(--nvd-paper); color: var(--nvd-ink);
  font-size: 14px; -moz-appearance: textfield; appearance: textfield;
}
.nvd-root .nvd-range input::-webkit-outer-spin-button, .nvd-root .nvd-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nvd-root .nvd-unit + input[type="number"] { padding-left: 26px; }
.nvd-root .nvd-range input[type="number"]:focus { border-color: var(--nvd-ink); outline: none; }
.nvd-root .nvd-range input::placeholder { color: #a39c94; opacity: 1; }

/* Two-handled sliders (carat, price, color, clarity, cut) */
.nvd-rs { --nvd-thumb: 22px; position: relative; height: 30px; margin: 2px 0 0; touch-action: none; }
.nvd-rs-track {
  position: absolute; left: calc(var(--nvd-thumb) / 2); right: calc(var(--nvd-thumb) / 2); top: 50%;
  height: 3px; margin-top: -1.5px; background: var(--nvd-line);
}
.nvd-rs-fill { position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: var(--nvd-ink); }
.nvd-root .nvd-rs input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 30px; margin: 0; padding: 0;
  background: none; border: 0; outline: none; pointer-events: none; z-index: 1;
  -webkit-appearance: none; appearance: none;
}
.nvd-root .nvd-rs input[type="range"]::-webkit-slider-runnable-track { height: 30px; background: none; border: 0; }
.nvd-root .nvd-rs input[type="range"]::-moz-range-track { height: 30px; background: none; border: 0; }
.nvd-root .nvd-rs input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: var(--nvd-thumb); height: var(--nvd-thumb); margin-top: calc((30px - var(--nvd-thumb)) / 2);
  border-radius: 50%; background: var(--nvd-ink); border: 0; box-shadow: 0 0 0 3px var(--nvd-paper);
  transition: box-shadow .2s ease;
}
.nvd-root .nvd-rs input[type="range"]::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: var(--nvd-thumb); height: var(--nvd-thumb);
  border-radius: 50%; background: var(--nvd-ink); border: 0; box-shadow: 0 0 0 3px var(--nvd-paper);
}
.nvd-root .nvd-rs input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.nvd-root .nvd-rs input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--nvd-paper), 0 0 0 5px var(--nvd-gold); }
.nvd-root .nvd-rs input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--nvd-paper), 0 0 0 5px var(--nvd-gold); }
.nvd-root .nvd-rs input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--nvd-paper), 0 0 0 5px var(--nvd-gold); }
.nvd-rs + .nvd-range { margin-top: 14px; }
/* Price and carat sliders need JavaScript; the min/max boxes work without it. */
.nvd-search:not(.nvd-js) .nvd-rs[data-scale="log"] { display: none; }

/* Grade ladders: a notch at every grade, labels underneath */
.nvd-rs-grades .nvd-rs-track {
  background:
    repeating-linear-gradient(90deg, var(--nvd-line) 0 calc(100% / var(--nvd-steps) - 3px), transparent 0 calc(100% / var(--nvd-steps)));
}
.nvd-rs-ticks { position: relative; height: 18px; margin: 6px 11px 0; }
.nvd-rs-ticks span {
  position: absolute; top: 0; left: calc(var(--i) / var(--nvd-steps) * 100%); transform: translateX(-50%);
  font-size: 12px; line-height: 1.4; color: #8f8881; white-space: nowrap; transition: color .2s ease;
}
.nvd-rs-ticks span.is-on { color: var(--nvd-ink); font-weight: 500; }
.nvd-rs-ticks-ends span:not(:first-child):not(:last-child) { visibility: hidden; }
.nvd-rs-readout { text-align: right; }
.nvd-rs-ticks-words span { font-size: 11px; }
.nvd-rs-ticks-words span:first-child { transform: translateX(-11px); }
.nvd-rs-ticks-words span:last-child { transform: translateX(calc(-100% + 11px)); }

/* WooCommerce messages (sold, held, price changed) */
.nvd-notices { margin: 0 0 32px; }
.nvd-notices :is(.woocommerce-error, .woocommerce-message, .woocommerce-info) {
  margin: 0; padding: 16px 20px; list-style: none; border: 1px solid var(--nvd-line); border-left: 3px solid var(--nvd-gold);
  background: var(--nvd-paper); color: var(--nvd-ink); font-family: var(--nvd-sans); font-size: 14px; line-height: 1.5;
}
.nvd-notices .woocommerce-error { border-left-color: #a8322d; }

/* Search */
.nvd-search-box { position: relative; display: block; }
.nvd-root .nvd-search-box input[type="search"] {
  box-sizing: border-box; width: 100%; max-width: 100%; height: 44px; margin: 0; padding: 0 14px 0 38px;
  border: 1px solid var(--nvd-line); border-radius: 0; color: var(--nvd-ink);
  background: var(--nvd-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' fill='none' stroke='%237c766f' stroke-width='1.4'%3E%3Ccircle cx='6.5' cy='6.5' r='5.2'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E") no-repeat 13px center;
  font-size: 14px; -webkit-appearance: none; appearance: none;
}
.nvd-root .nvd-search-box input[type="search"]:focus { border-color: var(--nvd-ink); outline: none; }
.nvd-root .nvd-search-box input::placeholder { color: #a39c94; opacity: 1; }

/* Checklists for facets with many values */
.nvd-list { max-height: 232px; overflow-y: auto; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; }
.nvd-root .nvd-check {
  display: grid; grid-template-columns: 16px 1fr auto; align-items: center; gap: 12px;
  padding: 7px 0; cursor: pointer; font-size: 13px; line-height: 1.35; color: var(--nvd-ink);
}
.nvd-root .nvd-check input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.nvd-check-box { width: 16px; height: 16px; border: 1px solid var(--nvd-line-2); background: var(--nvd-paper); transition: background-color .2s ease, border-color .2s ease; }
.nvd-check:hover .nvd-check-box { border-color: var(--nvd-ink); }
.nvd-check input:checked + .nvd-check-box {
  background: var(--nvd-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' fill='none' stroke='%23fffaf2' stroke-width='1.6'%3E%3Cpath d='M1 4l2.8 2.8L9 1.2'/%3E%3C/svg%3E") no-repeat center;
  border-color: var(--nvd-ink);
}
.nvd-check input:focus-visible + .nvd-check-box { outline: 2px solid var(--nvd-gold); outline-offset: 2px; }
.nvd-check-count { font-size: 12px; color: var(--nvd-text); font-variant-numeric: tabular-nums; }

.nvd-filter-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nvd-search.nvd-js .nvd-apply { display: none; }

/* Toolbar */
.nvd-toolbar { display: flex; align-items: flex-end; gap: 14px; margin: 0 0 24px; }
.nvd-root .nvd-count {
  margin: 0 auto 0 0; font-family: var(--nvd-serif); font-size: 26px; line-height: 1.1; color: var(--nvd-ink);
}
.nvd-root .nvd-open-filters { display: none; }
.nvd-root .nvd-sort select {
  height: 42px; padding: 0 38px 0 14px; margin: 0;
  border: 1px solid var(--nvd-line); border-radius: 0; color: var(--nvd-ink);
  background: var(--nvd-paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d1d1b' stroke-width='1.3'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; cursor: pointer;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}

/* Results grid: hairline cells like .nv-guides-grid */
.nvd-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--nvd-line); border-left: 1px solid var(--nvd-line);
  transition: opacity .2s ease;
}
.nvd-loading .nvd-grid { opacity: .45; }
.nvd-root .nvd-card {
  display: flex; flex-direction: column; color: var(--nvd-ink); text-decoration: none;
  background: var(--nvd-paper); border-right: 1px solid var(--nvd-line); border-bottom: 1px solid var(--nvd-line);
  transition: background-color .25s ease;
}
.nvd-root .nvd-card:hover { background: var(--nvd-stone); color: var(--nvd-ink); }
.nvd-card-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden; background: transparent;
}
.nvd-root .nvd-card-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.nvd-card-video, .nvd-stage-video {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  object-fit: contain; background: transparent; opacity: 0; transition: opacity .25s ease;
  mix-blend-mode: multiply;   /* the player's white background takes the page colour */
}
.nvd-root :is(.nvd-card-video, .nvd-stage-video).is-fixed { inset: 0 auto auto 0; max-width: none; transform-origin: 0 0; }
/* Once the 360 is playing, hide the photo under it so the two don't show through each other. */
.is-playing > img { visibility: hidden; }
.nvd-card-video { pointer-events: none; }
.nvd-card-video.is-ready, .nvd-stage-video.is-ready { opacity: 1; }
.nvd-placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.nvd-placeholder .nvd-shape-svg { width: 34%; height: 34%; stroke: var(--nvd-line-2); stroke-width: 1; }
.nvd-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.nvd-card-title { font-family: var(--nvd-serif); font-size: 22px; line-height: 1.16; color: var(--nvd-ink); margin: 0 0 8px; }
.nvd-card-specs { font-size: 13px; line-height: 1.6; color: var(--nvd-text); }
.nvd-card-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: auto; padding-top: 18px;
}
.nvd-tag { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nvd-gold-deep); line-height: 1.3; }
.nvd-price { font-family: var(--nvd-serif); font-size: 22px; line-height: 1; color: var(--nvd-ink); white-space: nowrap; }
.nvd-price .woocommerce-Price-amount, .nvd-detail-price .woocommerce-Price-amount { color: inherit; font-weight: inherit; }

.nvd-more-wrap { margin-top: 44px; text-align: center; }
.nvd-empty { grid-column: 1 / -1; padding: 72px 24px; text-align: center; background: var(--nvd-paper); border-right: 1px solid var(--nvd-line); border-bottom: 1px solid var(--nvd-line); }
.nvd-root .nvd-empty p { max-width: 30ch; margin: 0 auto 26px; font-family: var(--nvd-serif); font-size: 24px; line-height: 1.3; color: var(--nvd-ink); }
.nvd-detail .nvd-empty { border: 1px solid var(--nvd-line); }

/* ---------- Detail page ---------- */
.nvd-hero-detail { padding-bottom: 60px; }
.nvd-root .nvd-back { color: var(--nvd-text-night); margin-bottom: 40px; }
.nvd-root .nvd-back::after { background: rgba(255, 250, 242, .3); }
.nvd-root .nvd-back:hover { color: var(--nvd-gold); }
.nvd-hero-detail .nvd-title { font-size: clamp(38px, 4vw, 60px); max-width: 24ch; }
.nvd-hero-detail .nvd-title em { white-space: nowrap; }

.nvd-detail-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.nvd-media-frame {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; overflow: hidden; background: var(--nvd-paper); border: 1px solid var(--nvd-line);
}
.nvd-root .nvd-media-frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.nvd-media-frame { position: relative; touch-action: pan-y; }
.nvd-media-frame.is-spin { cursor: grab; user-select: none; -webkit-user-select: none; }
.nvd-media-frame.is-grabbing { cursor: grabbing; }
.nvd-root .nvd-media-frame.is-spin img { pointer-events: none; }
.nvd-root .nvd-media-tip { margin: 12px 0 0; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--nvd-text); }
.nvd-thumbs { display: flex; gap: 12px; margin-top: 16px; }
.nvd-root .nvd-thumb {
  display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 92px; padding: 0; margin: 0;
  background: var(--nvd-paper); border: 1px solid var(--nvd-line); border-radius: 0; cursor: pointer;
  color: var(--nvd-ink); box-shadow: none; transition: border-color .2s ease;
}
.nvd-root .nvd-thumb:hover { border-color: var(--nvd-ink); background: var(--nvd-paper); color: var(--nvd-ink); }
.nvd-root .nvd-thumb.is-on { border-color: var(--nvd-ink); box-shadow: inset 0 0 0 1px var(--nvd-ink); }
.nvd-thumb-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; background: var(--nvd-paper); overflow: hidden; }
.nvd-root .nvd-thumb-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.nvd-thumb-img .nvd-shape-svg { width: 46%; height: 46%; stroke: var(--nvd-line-2); stroke-width: 1; }
.nvd-thumb-label { padding: 7px 0 6px; font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; line-height: 1; text-align: center; }

.nvd-root .nvd-detail-price { font-family: var(--nvd-serif); font-size: 46px; line-height: 1; color: var(--nvd-ink); margin: 6px 0 14px; }
.nvd-root .nvd-detail-sub { font-size: 15px; line-height: 1.7; color: var(--nvd-text-2); margin: 0; }
.nvd-actions { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 30px 0 44px; }

.nvd-root .nvd-specs {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--nvd-line); border-left: 1px solid var(--nvd-line); margin: 0 0 30px;
}
.nvd-specs div { padding: 16px 20px 18px; background: var(--nvd-paper); border-right: 1px solid var(--nvd-line); border-bottom: 1px solid var(--nvd-line); }
.nvd-root .nvd-specs dt {
  margin: 0 0 6px; font-family: var(--nvd-sans); font-size: 10px; font-weight: 700; line-height: 1.3;
  letter-spacing: .16em; text-transform: uppercase; color: var(--nvd-text);
}
.nvd-root .nvd-specs dd { margin: 0; overflow-wrap: anywhere; font-family: var(--nvd-serif); font-size: 20px; line-height: 1.25; color: var(--nvd-ink); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .nvd-layout { grid-template-columns: 1fr; gap: 0; }
  .nvd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nvd-tiles-gems { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .nvd-detail-grid { grid-template-columns: 1fr; gap: 44px; }
  .nvd-media { max-width: 640px; }

  .nvd-filters { margin-bottom: 40px; }
  .nvd-search.nvd-js .nvd-filters {
    position: fixed; inset: 0; z-index: 100000; margin: 0; overflow-y: auto;
    padding: 24px 24px 120px; background: var(--nvd-paper);
    transform: translateY(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
  }
  .nvd-search.nvd-js.nvd-sheet-open .nvd-filters { transform: none; visibility: visible; }
  .nvd-search.nvd-js .nvd-filters-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
  .nvd-filters-title { font-family: var(--nvd-serif); font-size: 30px; line-height: 1; }
  .nvd-search.nvd-js .nvd-filter-actions {
    position: fixed; left: 0; right: 0; bottom: 0; padding: 14px 24px calc(14px + env(safe-area-inset-bottom));
    background: var(--nvd-paper); border-top: 1px solid var(--nvd-line);
  }
  .nvd-search.nvd-js .nvd-apply { display: inline-flex; flex: 1; }
  .nvd-search.nvd-js .nvd-open-filters { display: inline-flex; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  .nvd-wrap { padding: 0 24px; }
  .nvd-hero { padding: calc(var(--wd-header-general-sm-h, 60px) + 52px) 0 56px; }
  .nvd-hero-head { margin-bottom: 40px; }
  .nvd-root .nvd-title { font-size: clamp(36px, 11vw, 48px); line-height: 1.06; }
  .nvd-root .nvd-intro { font-size: 14px; line-height: 1.75; margin-top: 18px; }

  .nvd-tiles:not(.nvd-tiles-gems) {
    display: flex; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-right: -24px;
  }
  .nvd-tiles:not(.nvd-tiles-gems)::-webkit-scrollbar { display: none; }
  .nvd-tiles:not(.nvd-tiles-gems) .nvd-tile { flex: 0 0 96px; scroll-snap-align: start; }
  .nvd-tiles-gems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvd-tiles-gems .nvd-tile-face { padding: 18px 16px; }

  .nvd-body { padding: 40px 0 72px; }
  .nvd-toolbar { flex-wrap: wrap; align-items: center; }
  .nvd-root .nvd-count { flex: 1 0 100%; font-size: 24px; margin-bottom: 4px; }
  .nvd-root .nvd-open-filters, .nvd-root .nvd-sort { flex: 1; }
  .nvd-root .nvd-sort select { width: 100%; }
  .nvd-root .nvd-open-filters { height: 42px; padding: 0 16px; }

  .nvd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvd-card-body { padding: 16px 14px 18px; }
  .nvd-card-title { font-size: 18px; }
  .nvd-card-specs { font-size: 12px; line-height: 1.55; }
  .nvd-card-foot { flex-direction: column; align-items: flex-start; gap: 8px; padding-top: 14px; }
  .nvd-price { font-size: 20px; }

  .nvd-root .nvd-back { margin-bottom: 28px; }
  .nvd-root .nvd-detail-price { font-size: 38px; }
  .nvd-actions { gap: 20px; margin: 26px 0 36px; }
  .nvd-actions .nvd-buy, .nvd-actions .nvd-btn { width: 100%; }
}
@media (max-width: 420px) {
  .nvd-wrap { padding: 0 20px; }
  .nvd-hero-detail .nvd-title em { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .nvd-root *, .nvd-search.nvd-js .nvd-filters { transition: none !important; }
}
