/* Tema Gema · NovaShop
 * Paleta mineral: piedra luna (fondo), nácar (superficies), hematites (texto), amatista (acción), acero (detalles).
 * Tipografía: Marcellus (titulares, de inspiración epigráfica: como un grabado en metal) + Hanken Grotesk (texto).
 * Dos formas propias: el cabujón (círculo de piedra pulida) y el arco de expositor de joyería.
 */
:root {
  --bg: #eef0ef; --surface: #fbfbfa; --ink: #2a2730; --accent: #5e3f78; --steel: #8c9198; --gold: #a88449;
  --muted: color-mix(in srgb, var(--ink) 66%, var(--bg));
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --tile: color-mix(in srgb, var(--ink) 5%, var(--bg));
  --display: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 3px;
  --wrap: 1280px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.ns-lock { overflow: hidden; }
body { margin: 0; font: 400 16px/1.6 var(--text); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 4.4vw, 52px); }
h2 { font-size: clamp(25px, 2.8vw, 31px); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--bg); padding: 10px 14px; z-index: 200; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.center { text-align: center; }
.link { font-size: 15px; color: var(--ink); text-decoration: underline; }
.link:hover { color: var(--accent); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--ink); }
.empty { text-align: center; padding: 64px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { color: var(--muted); max-width: 46ch; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 26px; border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: var(--surface); font-weight: 600; font-size: 15px; letter-spacing: .01em; text-decoration: none; cursor: pointer; position: relative; transition: background .15s, color .15s, border-color .15s; }
.btn:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 86%, #000); border-color: color-mix(in srgb, var(--accent) 86%, #000); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--surface); }
.btn-lg { height: 54px; font-size: 16px; padding: 0 32px; }
.btn-block { width: 100%; }
.btn.is-loading, [data-ns-quick-add].is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after, [data-ns-quick-add].is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid var(--surface); border-right-color: transparent; border-radius: 50%; animation: spin .6s linear infinite; }
[data-ns-quick-add].is-loading::after { border-color: var(--ink); border-right-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cabujón y arco ---------- */
.cabochon { display: inline-block; flex-shrink: 0; width: var(--size, 64px); height: var(--size, 64px); border-radius: 50%; box-shadow: inset 0 calc(var(--size, 64px) * -.08) calc(var(--size, 64px) * .16) rgba(0,0,0,.28), inset 0 calc(var(--size, 64px) * .05) calc(var(--size, 64px) * .1) rgba(255,255,255,.35), 0 calc(var(--size, 64px) * .08) calc(var(--size, 64px) * .2) rgba(42,39,48,.2); }
.cabochon-dot { box-shadow: inset 0 -1px 2px rgba(0,0,0,.3), 0 0 0 1.5px var(--surface); }
.arch { display: block; overflow: hidden; border-radius: 999px 999px var(--r) var(--r); background: var(--tile); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Cabecera ---------- */
.preview-bar { background: #fff1c2; color: #5e4200; text-align: center; font-size: 13px; padding: 6px; }
.announcement { background: var(--ink); color: var(--bg); text-align: center; font-size: 13.5px; padding: 9px 16px; }
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 76px; gap: 16px; }
.logo { font-family: var(--display); font-size: 28px; letter-spacing: .06em; text-decoration: none; text-align: center; white-space: nowrap; }
.logo img { max-height: 44px; width: auto; margin: 0 auto; }
.main-nav { display: flex; gap: 26px; align-items: center; font-size: 15px; }
.main-nav a { text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current] { border-bottom-color: currentColor; }
.nav-langs { display: none; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 0; background: none; border-radius: 50%; cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--tile); }
.menu-btn, .search-link, .nav-close { display: none; }
.header-search { position: relative; }
.header-search input { width: 190px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0 36px 0 12px; font-size: 14.5px; }
.header-search svg { position: absolute; right: 11px; top: 11px; color: var(--muted); pointer-events: none; }
.lang-switch select { border: 0; background: none; font-size: 14px; cursor: pointer; padding: 6px; }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

/* ---------- Secciones ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding-top: 24px; }
.section + .section { padding-top: 0; }
.section-title { margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.section-head .section-title { margin: 0; }

/* Portada */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero h1 { font-size: clamp(38px, 5.4vw, 66px); margin-bottom: 22px; max-width: 13ch; }
.hero-lead { font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 40ch; margin-bottom: 32px; }
.hero-media { position: relative; max-width: 520px; justify-self: end; width: 100%; }
.arch-hero { aspect-ratio: 4 / 5; }
.hero-stones { position: absolute; left: -36px; bottom: 34px; width: 150px; height: 150px; }
.hero-stone { position: absolute; }
.hero-stone-1 { left: 0; bottom: 0; }
.hero-stone-2 { left: 74px; bottom: 58px; }
.hero-stone-3 { left: 30px; bottom: 96px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-stone { animation: settle .9s cubic-bezier(.2, .9, .3, 1.2) both; }
  .hero-stone-2 { animation-delay: .12s; }
  .hero-stone-3 { animation-delay: .24s; }
  @keyframes settle { from { opacity: 0; transform: translateY(-28px) scale(.7); } }
}

/* Compra por piedra */
.stones { padding-top: 0; }
.stone-row { list-style: none; margin: 0; padding: 4px 0 8px; display: flex; gap: clamp(18px, 3vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stone-row::-webkit-scrollbar { display: none; }
.stone-row li { scroll-snap-align: start; }
.stone { display: flex; flex-direction: column; align-items: center; gap: 12px; text-decoration: none; min-width: 84px; font-size: 14.5px; text-align: center; }
.stone .cabochon { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.stone:hover .cabochon { transform: translateY(-4px); }
.stone:hover span:last-child { text-decoration: underline; }

/* Colecciones */
.collections { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); }
.collection { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.collection .arch { aspect-ratio: 3 / 4; margin-bottom: 12px; }
.collection .arch img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.collection:hover .arch img { transform: scale(1.035); }
.collection-name { font-family: var(--display); font-size: 22px; }
.collection-count { color: var(--muted); font-size: 14px; }

/* Rejilla de productos */
.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px) clamp(14px, 2vw, 24px); }
.card { position: relative; display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: var(--tile); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s ease; }
.card-media-alt { opacity: 0; }
.card:hover .card-media-alt { opacity: 1; }
.card-badge { position: absolute; left: 10px; top: 10px; background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: var(--r); }
.card-badge.is-sale { background: var(--accent); color: #fff; }
.card-badge.is-out { background: var(--ink); color: var(--bg); }
.card-visual { position: relative; }
.card-add { position: absolute; right: 10px; bottom: 10px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 10px rgba(42,39,48,.14); transition: background .15s, color .15s; }
.card-add:hover { background: var(--accent); color: #fff; }
.card-body { padding-top: 14px; }
.card-title { display: block; text-decoration: none; font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.card-title:hover { text-decoration: underline; }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.price { display: inline-flex; gap: 8px; align-items: baseline; font-variant-numeric: tabular-nums; }
.price .is-sale { color: var(--accent); font-weight: 600; }
.price s { color: var(--muted); font-size: .88em; }
.card-stones { display: inline-flex; }
.card-stones .cabochon + .cabochon { margin-left: -4px; }

/* Materiales */
.steel { background: var(--ink); color: var(--bg); padding: clamp(56px, 7vw, 96px) 0 !important; margin-bottom: clamp(48px, 7vw, 96px); }
.steel-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.steel-title { font-size: clamp(30px, 3.6vw, 44px); margin: 0; max-width: 12ch; }
.steel-points { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; margin: 0; }
.steel-points div { border-top: 1px solid color-mix(in srgb, var(--bg) 25%, transparent); padding-top: 16px; }
.steel-points dt { font-family: var(--display); font-size: 21px; margin-bottom: 6px; }
.steel-points dd { margin: 0; color: color-mix(in srgb, var(--bg) 72%, var(--ink)); max-width: 34ch; }

/* Regalo */
.gift-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.arch-gift { aspect-ratio: 4 / 5; max-width: 420px; }
.gift-text p { color: var(--muted); max-width: 46ch; font-size: 17px; margin-bottom: 26px; }

/* Cabecera de páginas */
.page-head { padding: clamp(32px, 5vw, 56px) 0 8px; }
.page-head .lead { color: var(--muted); max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 15px; font-size: 14.5px; background: var(--surface); }
.chips a:hover { border-color: var(--ink); }
.chips a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.toolbar-form { display: flex; gap: 18px; align-items: center; }
.toolbar select { height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0 10px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.pager a { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.pager a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.stone-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.stone-head h1 { margin: 0 0 4px; }
.stone-head .lead { margin: 0; }
.search-big { display: flex; gap: 8px; max-width: 620px; }
.search-big input { flex: 1; height: 52px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 0 16px; font-size: 16px; }

/* ---------- Producto ---------- */
.breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); padding: 22px 0; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.product-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.gallery { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 96px; }
.gallery-main { grid-column: 2; aspect-ratio: 4 / 5; background: var(--tile); border-radius: var(--r); overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs button { padding: 0; border: 1px solid transparent; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--tile); aspect-ratio: 4 / 5; }
.gallery-thumbs button.is-active { border-color: var(--ink); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery:not(:has(.gallery-thumbs)) { grid-template-columns: 1fr; }
.gallery:not(:has(.gallery-thumbs)) .gallery-main { grid-column: 1; }
.product-title { font-size: clamp(30px, 3vw, 40px); margin-bottom: 12px; }
.price-lg { font-size: 21px; }
.tax-note { color: var(--muted); font-size: 13.5px; margin: 4px 0 20px; }
.product-short { font-size: 16.5px; }
.product-stones { list-style: none; margin: 0 0 24px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.product-stones li { display: flex; gap: 14px; align-items: center; }
.product-stones strong { display: block; font-weight: 600; }
.product-stones small { display: block; color: var(--muted); font-size: 14px; }
.option { border: 0; padding: 0; margin: 0 0 20px; }
.option legend { display: flex; justify-content: space-between; width: 100%; font-size: 14.5px; margin-bottom: 10px; padding: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 8px; min-width: 48px; justify-content: center; height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; font-size: 14.5px; }
.pill input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pill.is-unavailable span { color: var(--muted); text-decoration: line-through; }
.pill-metal span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 -1px 2px rgba(0,0,0,.25); background: linear-gradient(135deg, #f4f5f6, #a9adb3 55%, #e3e5e8); }
.pill-dorado span::before, .pill-oro span::before, .pill-gold span::before { background: linear-gradient(135deg, #f7e2a8, #b8893e 55%, #f0d58d); }
.pill-oro-rosa span::before, .pill-rose-gold span::before { background: linear-gradient(135deg, #f8d7c9, #c48a75 55%, #f1c4b2); }
.stock { margin: 0 0 18px; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3f8f63; }
.stock[data-level=low] { color: #9a4317; font-weight: 600; }
.stock[data-level=low]::before { background: #d06a2a; }
.stock[data-level=out] { color: var(--muted); }
.stock[data-level=out]::before { background: var(--steel); }
.gift-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 18px; }
.check { display: inline-flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.gift-message { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.gift-message textarea { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; resize: vertical; background: #fff; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty-input { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); height: 54px; background: var(--surface); }
.qty-input button { width: 40px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; }
.qty-input input { width: 38px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.qty-input input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qty-sm { height: 38px; }
.qty-sm button { width: 32px; }
.form-error { color: #a3261b; font-size: 14px; margin: 10px 0 0; }
.urgency-stack { margin-top: 14px; }
.details { margin-top: 28px; border-top: 1px solid var(--line); }
.details details { border-bottom: 1px solid var(--line); }
.details summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.details summary::-webkit-details-marker { display: none; }
.details summary::after { content: "+"; font-family: var(--display); font-size: 24px; line-height: 1; font-weight: 400; }
.details details[open] summary::after { content: "−"; }
.details details > :not(summary) { margin-bottom: 18px; }
.materials { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 10px; }
.materials li { display: flex; flex-direction: column; padding-left: 22px; position: relative; }
.materials li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, #f4f5f6, #a9adb3 55%, #e3e5e8); box-shadow: inset 0 -1px 2px rgba(0,0,0,.3); }
.materials span { color: var(--muted); font-size: 14.5px; }
.policy-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.sku { color: var(--muted); font-size: 13px; margin-top: 18px; }
.rte { line-height: 1.7; }
.rte ul { padding-left: 20px; }
.size-guide { border: 0; border-radius: 6px; padding: 0; max-width: 440px; width: calc(100% - 32px); color: var(--ink); background: var(--surface); box-shadow: 0 20px 60px rgba(42,39,48,.25); }
.size-guide::backdrop { background: rgba(42,39,48,.45); }
.size-guide-inner { padding: 24px; }
.size-guide-head { display: flex; justify-content: space-between; align-items: center; }
.size-guide-head h2 { margin: 0; font-size: 26px; }
.size-guide-head .icon-btn { font-size: 26px; }
.size-guide table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-variant-numeric: tabular-nums; }
.size-guide th, .size-guide td { text-align: left; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.size-guide th { font-weight: 600; font-size: 14px; color: var(--muted); }

/* ---------- Carrito (página) ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.cart-line-img img { width: 96px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--tile); }
.cart-line-title { font-weight: 600; text-decoration: none; }
.cart-line-row { display: flex; gap: 16px; align-items: center; margin-top: 12px; }
.cart-line-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-summary { background: var(--surface); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 100px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; }
.sum-row.is-discount { color: var(--accent); font-weight: 600; font-size: 14.5px; }
.sum-total { font-size: 18px; }
.notice { background: #fff4dc; border-radius: var(--r); padding: 12px 14px; margin-bottom: 16px; }

/* ---------- Carrito lateral (SDK) ---------- */
.ns-drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.ns-drawer.is-open { visibility: visible; }
.ns-drawer-backdrop { position: absolute; inset: 0; background: rgba(42,39,48,.45); opacity: 0; transition: opacity .25s; }
.ns-drawer.is-open .ns-drawer-backdrop { opacity: 1; }
.ns-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); }
.ns-drawer.is-open .ns-drawer-panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .ns-drawer-panel, .ns-drawer-backdrop { transition: none; } }
.ns-drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.ns-drawer-head strong { font-family: var(--display); font-weight: 400; font-size: 24px; }
.ns-drawer-close { background: none; border: 0; font-size: 30px; line-height: 1; cursor: pointer; color: var(--ink); width: 40px; height: 40px; }
.ns-drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.ns-drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.ns-drawer-foot:empty { display: none; }
.ns-line { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); transition: opacity .2s; }
.ns-line.is-busy { opacity: .45; pointer-events: none; }
.ns-line-img img { width: 76px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--tile); }
.ns-line-title { font-weight: 600; text-decoration: none; font-size: 15px; }
.ns-line-variant { color: var(--muted); font-size: 13.5px; }
.ns-line-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.ns-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); height: 34px; }
.ns-qty button { width: 32px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 16px; }
.ns-qty button:disabled { opacity: .3; }
.ns-qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 14px; }
.ns-line-remove { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: 13px; padding: 0; }
.ns-line-price { text-align: right; font-weight: 600; font-size: 15px; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.ns-line-price s { color: var(--muted); font-weight: 400; font-size: 13px; }
.ns-line-urgency { color: #9a4317; font-size: 13px; font-weight: 600; margin-top: 2px; }
.ns-subtotal { display: flex; justify-content: space-between; font-size: 18px; }
.ns-note { color: var(--muted); font-size: 13px; margin: 0; }
.ns-savings { color: var(--accent); font-weight: 600; font-size: 14.5px; }
.ns-discount { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--accent); font-weight: 600; }
.ns-btn { height: 54px; border-radius: var(--r); border: 1px solid var(--accent); font-weight: 600; font-size: 16px; cursor: pointer; padding: 0 22px; }
.ns-btn-primary { background: var(--accent); color: #fff; }
.ns-btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.ns-empty { text-align: center; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ns-drawer-msg { background: #fff4dc; border-radius: var(--r); padding: 10px 12px; margin: 10px 0; font-size: 14px; }
.ns-progress { background: var(--bg); border-radius: var(--r); padding: 12px 14px; margin: 12px 0; font-size: 14px; }
.ns-progress p { margin: 0 0 8px; }
.ns-progress-bar { height: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); border-radius: 2px; overflow: hidden; }
.ns-progress-bar span { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .4s; }

/* Urgencia con datos reales */
.ns-urgency { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; padding: 12px 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin: 10px 0; }
.ns-urgency-icon { font-size: 16px; line-height: 1.3; }
.ns-urgency-sub { color: var(--muted); font-size: 13.5px; }
.ns-urgency-offer { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.ns-urgency [data-ns-countdown] { font-variant-numeric: tabular-nums; font-weight: 700; }
.ns-urgency-social { background: none; border: 0; padding: 4px 0; color: var(--muted); font-size: 14px; }
.ns-drawer-foot .ns-urgency { margin: 10px 0 0; font-size: 13.5px; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; font-size: 15px; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.logo-footer { color: var(--ink) !important; text-align: left; font-size: 26px; padding: 0 0 10px !important; }
.footer-brand p { color: var(--muted); max-width: 34ch; }
.footer-h { font-family: var(--text); font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.socials { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom { margin-top: 48px; font-size: 13.5px; color: var(--muted); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.closed-stones { display: flex; gap: 10px; }

/* ---------- Adaptable ---------- */
@media (max-width: 1080px) {
  .grid-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-search input { width: 150px; }
}
@media (max-width: 900px) {
  .header-grid { grid-template-columns: auto 1fr auto; height: 64px; }
  .logo { font-size: 23px; }
  .menu-btn, .search-link { display: inline-grid; }
  .header-search, .lang-switch { display: none; }
  .site-header { backdrop-filter: none; background: var(--bg); }
  .main-nav { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); background: var(--surface); flex-direction: column; align-items: stretch; gap: 0; padding: 64px 24px 24px; transform: translateX(-100%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility 0s .3s; z-index: 60; overflow-y: auto; }
  .main-nav.is-open { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: 0 0 0 100vmax rgba(42,39,48,.4); }
  .nav-close { display: grid !important; position: absolute; top: 12px; right: 12px; font-size: 28px; }
  .main-nav a { font-family: var(--display); font-size: 24px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-langs { display: flex; gap: 16px; margin-top: 20px; }
  .nav-langs a { font-family: var(--text); font-size: 15px; border: 0; }
  .nav-langs a[aria-current] { text-decoration: underline; }
  .hero-grid, .gift-grid, .steel-grid, .product-grid, .cart-grid { grid-template-columns: 1fr; }
  .hero-media { justify-self: start; max-width: min(300px, 78vw); margin-left: 28px; }
  .hero-stones { left: -36px; bottom: 12px; transform: scale(.75); transform-origin: bottom left; }
  .collections { grid-template-columns: repeat(2, 1fr); }
  .gallery { position: static; grid-template-columns: 1fr; }
  .gallery-main { grid-column: 1; }
  .gallery-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
  .gallery-thumbs button { width: 64px; flex-shrink: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .cart-summary { position: static; }
  .arch-gift { max-width: 360px; }
}
@media (max-width: 600px) {
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .steel-points { grid-template-columns: 1fr; gap: 22px; }
  .card-add { width: 38px; height: 38px; right: 8px; }
  .card-title { font-size: 14.5px; }
  .search-big { flex-direction: column; }
  .cart-line { grid-template-columns: 76px 1fr; }
  .cart-line-price { grid-column: 2; }
  .cart-line-img img { width: 76px; }
}
.footer-bottom-links { display: inline-flex; gap: 18px; align-items: center; flex-wrap: wrap; }
