/* Preciosa do Brasil — shop window (index.html) and piece page (peca.html). Same palette as sourcing.html. */
:root{
  --navy:#0B1830; --navy-2:#10213F; --navy-soft:#1B2C4D;
  --gold:#B08D42; --gold-light:#D4B876; --amethyst:#6F5A8C;
  --ivory:#FBFAF6; --ivory-2:#F3F0E9; --ink:#1A1B1E; --muted:#6b6558;
  --line:rgba(176,141,66,0.35); --hair:rgba(16,33,63,0.10);
  font-family:'Inter', -apple-system, sans-serif;
}
*{ box-sizing:border-box; }
body{
  margin:0; background:var(--ivory); color:var(--ink); -webkit-font-smoothing:antialiased;
  padding-bottom:env(safe-area-inset-bottom,0px); overflow-x:hidden;
}
h1,h2,h3,.serif{ font-family:'Cormorant Garamond', Georgia, serif; font-weight:600; letter-spacing:0.01em; }
a{ color:inherit; }
img,video{ max-width:100%; display:block; }
button,input,select,textarea{ font:inherit; color:inherit; }
.wrap{ max-width:1320px; margin:0 auto; padding:0 28px; }
@media (max-width:640px){ .wrap{ padding:0 16px; } }

/* ---------- nav ---------- */
nav{
  position:sticky; top:0; z-index:40; background:rgba(251,250,246,0.92); backdrop-filter:blur(8px);
  border-bottom:1px solid var(--hair); padding-top:env(safe-area-inset-top,0px);
}
.navrow{ max-width:1320px; margin:0 auto; padding:14px 28px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.navmark{
  font-family:'Cormorant Garamond', serif; font-weight:600; font-size:1.15rem; color:var(--navy-2);
  letter-spacing:0.02em; text-decoration:none; display:flex; align-items:center; gap:8px; white-space:nowrap;
}
.navmark img{ height:22px; width:auto; }
.navright{ display:flex; align-items:center; gap:22px; }
.navlinks{ display:flex; gap:20px; font-size:0.85rem; font-weight:500; }
.navlinks a{ text-decoration:none; color:var(--navy-soft); padding-bottom:2px; border-bottom:1px solid transparent; white-space:nowrap; }
.navlinks a:hover,.navlinks a[aria-current]{ border-bottom-color:var(--gold); }
.navcart{ display:inline-flex; align-items:center; gap:5px; }
.navcart svg{ flex:none; }
.cartn{ background:var(--gold); color:#fff; border-radius:100px; min-width:18px; height:18px; padding:0 5px; font-size:0.7rem; font-weight:600; display:inline-grid; place-items:center; }
.langtoggle{ display:inline-flex; border:1px solid rgba(16,33,63,0.22); border-radius:100px; overflow:hidden; font-size:0.78rem; }
.langtoggle button{ border:0; background:transparent; padding:6px 11px; cursor:pointer; font-weight:600; color:var(--navy-2); }
.langtoggle button.active{ background:var(--navy-2); color:var(--ivory); }
@media (max-width:760px){
  .navrow{ padding:12px 16px; gap:10px; }
  .navlinks a.hide-sm{ display:none; }
  .navlinks{ gap:14px; }
  .navcart .lbl{ display:none; }
  .navright{ gap:10px; }
  .langtoggle button{ padding:6px 8px; }
}
@media (max-width:420px){ .navmark span{ display:none; } }

/* ---------- footer ---------- */
footer{ background:var(--navy); color:#C9C2B0; padding:44px 28px 34px; text-align:center; margin-top:72px; }
footer .fmark{ font-family:'Cormorant Garamond',serif; color:var(--ivory); font-size:1.15rem; margin-bottom:10px; }
footer .fmeta{ font-size:0.82rem; line-height:1.8; }
footer a{ text-decoration:none; border-bottom:1px solid rgba(201,194,176,0.35); }

/* ---------- shop window ---------- */
.hero{
  position:relative; color:var(--ivory); background:var(--navy) center/cover no-repeat;
  background-image:linear-gradient(90deg, rgba(11,24,48,0.88) 0%, rgba(11,24,48,0.55) 55%, rgba(11,24,48,0.25) 100%), url('/banner.webp');
}
.hero .wrap{ padding-top:56px; padding-bottom:52px; }
.hero h1{ font-size:clamp(2rem, 4.4vw, 3.1rem); margin:0 0 12px; max-width:16em; line-height:1.1; }
.hero p{ margin:0; max-width:36em; color:#E6DFCD; line-height:1.6; font-size:0.98rem; }
@media (max-width:640px){ .hero .wrap{ padding-top:34px; padding-bottom:30px; } }
/* short screens (laptops with Windows zoom at 125–150 %): slimmer band so the pieces show without scrolling */
@media (min-width:641px) and (max-height:820px){
  .hero .wrap{ padding-top:26px; padding-bottom:24px; }
  .hero h1{ font-size:clamp(1.7rem, 3vw, 2.2rem); margin-bottom:6px; }
  .hero p{ font-size:0.88rem; line-height:1.5; }
  .shop{ margin-top:22px; }
}

.shop{ display:grid; grid-template-columns:250px 1fr; gap:40px; margin-top:36px; align-items:start; }
@media (max-width:999px){ .shop{ grid-template-columns:1fr; gap:0; margin-top:20px; } }

.toolbar{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.count{ color:var(--muted); font-size:0.88rem; }
.toolbar-right{ display:flex; gap:10px; align-items:center; }
.btn-filters{
  display:none; border:1px solid rgba(16,33,63,0.25); background:#fff; border-radius:100px; padding:8px 16px;
  font-size:0.85rem; font-weight:600; color:var(--navy-2); cursor:pointer;
}
.btn-filters .n{ background:var(--gold); color:#fff; border-radius:100px; padding:1px 7px; margin-left:6px; font-size:0.75rem; }
@media (max-width:999px){ .btn-filters{ display:inline-flex; align-items:center; } }
select.sort{
  border:1px solid rgba(16,33,63,0.25); background:#fff; border-radius:100px; padding:8px 14px;
  font-size:0.85rem; color:var(--navy-2); cursor:pointer;
}

/* filters: fixed column on desktop, sliding panel on phones/tablets */
.filters{ position:sticky; top:84px; font-size:0.9rem; max-height:calc(100vh - 100px); overflow-y:auto; padding-right:4px; }
.filters-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.filters-head h2{ margin:0; font-size:1.35rem; color:var(--navy-2); }
.linkbtn{ border:0; background:none; padding:0; color:var(--gold); font-weight:600; font-size:0.82rem; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.fgroup{ border-top:1px solid var(--hair); padding:16px 0; }
.fgroup h3{ font-family:'Inter',sans-serif; font-size:0.74rem; text-transform:uppercase; letter-spacing:0.09em; color:var(--muted); margin:0 0 10px; font-weight:600; }
.chips{ display:flex; flex-wrap:wrap; gap:6px; }
.chip{
  border:1px solid rgba(16,33,63,0.2); background:#fff; border-radius:100px; padding:6px 12px; cursor:pointer;
  font-size:0.84rem; color:var(--navy-soft); display:inline-flex; align-items:center; gap:6px;
}
.chip[aria-pressed="true"]{ background:var(--navy-2); border-color:var(--navy-2); color:var(--ivory); }
.chip .k{ opacity:0.55; font-size:0.75rem; }
.range{ display:flex; align-items:center; gap:8px; }
.range input{ width:100%; min-width:0; border:1px solid rgba(16,33,63,0.2); border-radius:8px; padding:8px 10px; background:#fff; font-size:0.86rem; }
.range span{ color:var(--muted); }
.filters-close{ display:none; }
@media (max-width:999px){
  .filters{
    position:fixed; inset:0 0 0 auto; width:min(360px, 92vw); top:0; z-index:60; background:var(--ivory); max-height:none;
    padding:20px 20px calc(90px + env(safe-area-inset-bottom,0px)); overflow-y:auto;
    transform:translateX(100%); transition:transform .25s ease, visibility .25s; visibility:hidden;
  }
  .filters.open{ transform:none; visibility:visible; box-shadow:-12px 0 40px rgba(11,24,48,0.18); }
  .filters-close{
    display:block; position:fixed; bottom:0; right:0; width:min(360px, 92vw); padding:14px 20px calc(14px + env(safe-area-inset-bottom,0px));
    background:var(--ivory); border-top:1px solid var(--hair);
  }
  .filters-close button{ width:100%; }
  .scrim{ position:fixed; inset:0; background:rgba(11,24,48,0.4); z-index:55; }
}

.grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(190px, 1fr)); gap:28px 20px; }
@media (max-width:640px){ .grid{ grid-template-columns:1fr 1fr; gap:22px 12px; } }
.card{ text-decoration:none; color:inherit; display:block; }
.card .ph{
  position:relative; aspect-ratio:1/1; background:var(--ivory-2); border-radius:6px; overflow:hidden;
}
.card .ph img{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; transition:opacity .35s ease, transform .5s ease; }
.card .ph img.alt{ opacity:0; background:var(--ivory-2); } /* covers the main photo when the shapes differ */
/* hover slideshow (slidesNoHover in loja.js): the 3rd photo onwards, and videos, over the two above */
.card .ph .slides{ position:absolute; inset:0; transition:opacity .35s ease; }
.card .ph .slides.out{ opacity:0; }
.card .ph .slides img, .card .ph .slides video{
  position:absolute; inset:0; width:100%; height:100%; object-fit:contain; background:var(--ivory-2); transform:none;
  opacity:0; transition:opacity .35s ease;
}
.card .ph .slides .on{ opacity:1; }
@media (hover:hover){
  .card:hover .ph img.alt{ opacity:1; }
  .card:hover .ph > img:not(.alt):only-of-type{ transform:scale(1.04); }
}
.card .noph{ position:absolute; inset:0; display:grid; place-items:center; }
.card .noph img{ position:static; width:44px; height:auto; opacity:0.35; }
.badge{
  position:absolute; top:10px; left:10px; background:var(--amethyst); color:#fff; font-size:0.7rem; font-weight:600;
  letter-spacing:0.05em; text-transform:uppercase; padding:4px 9px; border-radius:100px;
}
.badge.set{ left:auto; right:10px; background:var(--navy-2); }
/* set (ensemble): its pieces on the set page, and the link from a piece to its set */
.members{ margin:22px 0 0; }
.members h2{ margin:0 0 10px; font-size:1.35rem; color:var(--navy-2); }
.members ul{ list-style:none; margin:0; padding:0; border-top:1px solid var(--hair); }
.members li a{ display:flex; gap:12px; align-items:center; padding:10px 0; border-bottom:1px solid var(--hair); text-decoration:none; }
.members li img{ width:56px; height:56px; object-fit:cover; border-radius:6px; background:var(--ivory-2); flex:none; }
.members .m-name{ color:var(--navy-2); font-weight:500; font-size:0.95rem; }
.members .m-meta{ color:var(--muted); font-size:0.8rem; }
.in-set{ background:var(--ivory-2); border:1px solid var(--line); border-radius:8px; padding:12px 14px; margin:12px 0; font-size:0.9rem; line-height:1.5; }
.in-set a{ color:var(--navy-2); font-weight:600; }
.card h3{ margin:12px 0 2px; font-size:1.2rem; color:var(--navy-2); line-height:1.2; }
.card .meta{ font-size:0.8rem; color:var(--muted); }
.card .price{ margin-top:6px; font-weight:600; color:var(--navy-2); font-size:0.95rem; }
@media (max-width:640px){ .card h3{ font-size:1.05rem; } }
.empty{ padding:60px 0; text-align:center; color:var(--muted); }

.btn{
  display:inline-flex; justify-content:center; align-items:center; gap:8px; border:1px solid var(--navy-2); background:var(--navy-2); color:var(--ivory);
  border-radius:100px; padding:12px 22px; font-weight:600; font-size:0.9rem; cursor:pointer; text-decoration:none;
}
.btn.ghost{ background:transparent; color:var(--navy-2); }
.btn:disabled{ opacity:0.6; cursor:default; }

/* ---------- piece page ---------- */
.back{ display:inline-block; margin:22px 0 18px; font-size:0.85rem; color:var(--navy-soft); text-decoration:none; }
.back:hover{ text-decoration:underline; text-underline-offset:3px; }
.piece{ display:grid; grid-template-columns:minmax(0, 1.25fr) minmax(0, 1fr); gap:52px; align-items:start; }
@media (max-width:899px){ .piece{ grid-template-columns:minmax(0, 1fr); gap:26px; } }

.gallery .main{
  position:relative; aspect-ratio:1/1; background:var(--ivory-2); border-radius:8px; overflow:hidden; cursor:zoom-in;
}
.gallery .main img,.gallery .main video{ position:absolute; inset:0; width:100%; height:100%; object-fit:contain; }
.gallery .main video{ cursor:default; background:#000; }
.gallery .nav-arrow{
  position:absolute; top:50%; transform:translateY(-50%); width:40px; height:40px; border-radius:50%; border:0;
  background:rgba(251,250,246,0.9); color:var(--navy-2); font-size:1.3rem; cursor:pointer; display:grid; place-items:center;
  box-shadow:0 2px 10px rgba(11,24,48,0.15);
}
.gallery .nav-arrow.prev{ left:12px; } .gallery .nav-arrow.next{ right:12px; }
.thumbs{ display:flex; gap:10px; margin-top:12px; overflow-x:auto; padding-bottom:4px; }
.thumbs button{
  flex:none; width:78px; height:78px; border-radius:6px; overflow:hidden; border:2px solid transparent; padding:0;
  background:var(--ivory-2); cursor:pointer; position:relative;
}
.thumbs button[aria-current="true"]{ border-color:var(--gold); }
.thumbs img,.thumbs video{ width:100%; height:100%; object-fit:cover; }
.thumbs .play{ position:absolute; inset:0; display:grid; place-items:center; color:#fff; font-size:1.3rem; text-shadow:0 1px 6px rgba(0,0,0,0.6); }

.info .ref{ font-size:0.78rem; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
.info h1{ font-size:clamp(2rem, 3.6vw, 2.7rem); margin:6px 0 4px; color:var(--navy-2); line-height:1.1; }
.info .unique{ font-family:'Cormorant Garamond',serif; font-style:italic; color:var(--gold); font-size:1.15rem; }
.info .bigprice{ font-size:1.6rem; font-weight:600; color:var(--navy-2); margin:18px 0 4px; }
.info .reserved-note{ background:#efeaf5; color:#4b3c63; border-radius:8px; padding:12px 14px; font-size:0.88rem; margin:12px 0; }
.buy{ display:flex; gap:10px; flex-wrap:wrap; margin:16px 0 4px; }
.buy .btn{ padding:13px 26px; }
.specs{ margin:26px 0; border-top:1px solid var(--hair); }
.specs div{ display:flex; justify-content:space-between; gap:16px; padding:11px 0; border-bottom:1px solid var(--hair); font-size:0.92rem; }
.specs dt{ color:var(--muted); }
.specs dd{ margin:0; text-align:right; color:var(--navy-2); font-weight:500; }
.ask{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:22px; margin-top:8px; }
.ask h2{ margin:0 0 6px; font-size:1.5rem; color:var(--navy-2); }
.ask p{ margin:0 0 16px; color:var(--muted); font-size:0.9rem; line-height:1.55; }
.ask .actions{ display:flex; gap:10px; flex-wrap:wrap; }
.ask form{ display:grid; gap:12px; margin-top:18px; }
.ask label{ font-size:0.78rem; font-weight:600; color:var(--navy-soft); display:block; margin-bottom:4px; }
.ask input,.ask textarea{ width:100%; border:1px solid rgba(16,33,63,0.2); border-radius:8px; padding:10px 12px; background:var(--ivory); font-size:0.92rem; }
.ask textarea{ min-height:110px; resize:vertical; }
.ask .hp{ position:absolute; left:-9999px; }
.ask .status{ font-size:0.88rem; }
.ask .status.ok{ color:#2f6b3a; } .ask .status.err{ color:#a33; }

/* short screens (laptops with Windows zoom at 125–150 %): photo fits the window height, tighter details,
   so photo, price and the request box are visible together */
@media (min-width:900px) and (max-height:820px){
  .back{ margin:12px 0 10px; }
  .piece{ gap:36px; }
  .gallery .main{ aspect-ratio:auto; height:calc(100vh - 210px); min-height:300px; }
  .thumbs{ margin-top:8px; }
  .thumbs button{ width:58px; height:58px; }
  .info h1{ font-size:2rem; margin:2px 0 2px; }
  .info .unique{ font-size:1rem; }
  .info .bigprice{ font-size:1.35rem; margin:10px 0 2px; }
  .specs{ margin:14px 0; }
  .specs div{ padding:7px 0; font-size:0.86rem; }
  .ask{ padding:16px 18px; }
  .ask h2{ font-size:1.3rem; }
  .ask p{ margin-bottom:12px; font-size:0.85rem; }
  .btn{ padding:10px 18px; }
}

/* full screen photo */
.lightbox{ position:fixed; inset:0; z-index:100; background:rgba(11,24,48,0.96); display:flex; align-items:center; justify-content:center; }
.lightbox img,.lightbox video{ max-width:94vw; max-height:88vh; object-fit:contain; }
.lightbox button{ position:absolute; border:0; background:rgba(251,250,246,0.12); color:#fff; width:48px; height:48px; border-radius:50%; font-size:1.5rem; cursor:pointer; }
.lightbox .x{ top:calc(16px + env(safe-area-inset-top,0px)); right:16px; }
.lightbox .prev{ left:16px; top:50%; transform:translateY(-50%); }
.lightbox .next{ right:16px; top:50%; transform:translateY(-50%); }
.lightbox .counter{ position:absolute; bottom:calc(18px + env(safe-area-inset-bottom,0px)); color:#C9C2B0; font-size:0.85rem; }

[hidden]{ display:none !important; }

/* ---------- cart / order (panier.html) ---------- */
.cart-title{ font-size:clamp(2rem, 3.4vw, 2.6rem); color:var(--navy-2); margin:0 0 18px; }
.notice{ background:#f6efe0; border:1px solid var(--line); color:#6a531f; border-radius:8px; padding:12px 14px; font-size:0.9rem; margin-bottom:18px; }
.checkout{ display:grid; grid-template-columns:minmax(0, 1fr) 360px; gap:36px; align-items:start; }
@media (max-width:899px){ .checkout{ grid-template-columns:minmax(0, 1fr); gap:20px; } }
.cart-items{ list-style:none; margin:0 0 22px; padding:0; border-top:1px solid var(--hair); }
.cart-items li{ display:grid; grid-template-columns:88px minmax(0, 1fr) auto; gap:16px; align-items:center; padding:14px 0; border-bottom:1px solid var(--hair); }
.ci-ph{ width:88px; height:88px; border-radius:6px; overflow:hidden; background:var(--ivory-2); display:grid; place-items:center; }
.ci-ph img{ width:100%; height:100%; object-fit:contain; }
.ci-ph img.noimg{ width:34px; height:auto; opacity:0.35; }
.ci-name{ font-family:'Cormorant Garamond',serif; font-size:1.25rem; font-weight:600; color:var(--navy-2); text-decoration:none; }
.ci-meta{ font-size:0.8rem; color:var(--muted); margin:2px 0 6px; }
.ci-price{ font-weight:600; color:var(--navy-2); white-space:nowrap; }
@media (max-width:520px){ .cart-items li{ grid-template-columns:64px minmax(0, 1fr) auto; gap:12px; } .ci-ph{ width:64px; height:64px; } }
.co-box{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:18px 20px; margin:0 0 18px; min-width:0; }
.co-box legend{ font-family:'Cormorant Garamond',serif; font-size:1.3rem; font-weight:600; color:var(--navy-2); padding:0 6px; margin-left:-6px; }
.radio{ display:flex; gap:10px; align-items:center; padding:6px 0; font-size:0.92rem; cursor:pointer; }
.radio input{ accent-color:var(--navy-2); width:17px; height:17px; }
.co-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px 14px; }
.co-grid .span2{ grid-column:1 / -1; }
@media (max-width:520px){ .co-grid{ grid-template-columns:1fr; } }
.co-grid label{ font-size:0.78rem; font-weight:600; color:var(--navy-soft); display:block; margin-bottom:4px; }
.co-grid input,.co-grid select,.co-grid textarea{ width:100%; border:1px solid rgba(16,33,63,0.2); border-radius:8px; padding:10px 12px; background:var(--ivory); font-size:0.92rem; }
.co-grid textarea{ min-height:80px; resize:vertical; }
.checkout .hp{ position:absolute; left:-9999px; }
.co-summary{ position:sticky; top:84px; }
@media (max-width:899px){ .co-summary{ position:static; } }
.sumline{ display:flex; justify-content:space-between; gap:12px; padding:8px 0; font-size:0.94rem; }
.sumline.total{ border-top:1px solid var(--hair); margin-top:6px; padding-top:12px; font-weight:600; font-size:1.1rem; color:var(--navy-2); }
.sumnote{ font-size:0.8rem; color:var(--muted); line-height:1.5; margin:4px 0 10px; }
.ts{ margin:14px 0 10px; min-height:65px; }
.btn.wide{ width:100%; padding:14px 20px; font-size:0.95rem; }
.status.err{ color:#a33; font-size:0.86rem; }
.thanks{ background:#fff; border:1px solid var(--line); border-radius:10px; padding:30px; max-width:640px; }
.thanks h2{ margin:0 0 10px; font-size:1.9rem; color:var(--navy-2); }
.thanks p{ line-height:1.6; }
/* thank-you page once paid: order summary, next steps, invoice */
#t-det{ border-top:1px solid var(--line); margin:22px 0 8px; padding-top:18px; }
#t-det h3{ font-size:1.25rem; color:var(--navy-2); margin:0 0 10px; }
#t-det .td-l{ display:flex; justify-content:space-between; gap:16px; padding:7px 0; border-bottom:1px solid var(--line); font-size:.95rem; }
#t-det .td-l small{ display:block; color:#8a8574; font-size:.8rem; }
#t-det .td-l span:last-child{ white-space:nowrap; }
#t-det .td-sub{ border-bottom:0; padding-bottom:2px; color:#5b5648; }
#t-det .td-tot{ font-weight:700; border-bottom:0; border-top:1px solid var(--navy-2); margin-bottom:14px; }
#t-det .td-onde small{ display:block; color:#8a8574; font-size:.8rem; text-transform:uppercase; letter-spacing:.05em; }
#t-det .td-passos{ margin:0 0 16px; padding-left:20px; line-height:1.6; }
#t-det .btn-claro{ background:transparent; color:var(--navy-2); border:1px solid var(--navy-2); }
#t-det .td-q{ color:#5b5648; font-size:.9rem; }

/* ---------- legal pages (generated by Legal/build.mjs) and their footer links ---------- */
.legal{ max-width:820px; padding-top:34px; line-height:1.7; color:var(--ink); }
.legal h1{ font-size:clamp(2rem, 4vw, 2.7rem); color:var(--navy-2); margin:0 0 6px; line-height:1.15; }
.legal h1 + p{ color:var(--muted); margin-top:0; }
.legal h2{ font-size:1.5rem; color:var(--navy-2); margin:34px 0 8px; }
.legal h3{ font-size:1.2rem; color:var(--navy-2); margin:22px 0 6px; }
.legal p,.legal li{ font-size:0.95rem; }
.legal a{ color:var(--navy-2); text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }
.legal hr{ border:0; border-top:1px solid var(--line); margin:36px 0; }
.legal .tabela{ overflow-x:auto; margin:12px 0 18px; }
.legal table{ border-collapse:collapse; width:100%; font-size:0.86rem; min-width:560px; }
.legal th,.legal td{ border-bottom:1px solid var(--hair); padding:9px 10px; text-align:left; vertical-align:top; }
.legal th{ color:var(--muted); font-weight:600; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.05em; }
mark.todo{ background:#ffe1a8; color:#7a4a00; padding:1px 5px; border-radius:4px; font-weight:600; }
footer .flegal{ margin-top:14px; font-size:0.76rem; line-height:2; }
footer .flegal a{ white-space:nowrap; }
footer .flegal a[aria-current]{ color:var(--ivory); }

/* checkout: CGV box (unticked by default, required) */
.cgv-ok{ display:flex; gap:9px; align-items:flex-start; font-size:0.84rem; line-height:1.45; margin:4px 0 14px; cursor:pointer; color:var(--navy-soft); }
.cgv-ok input{ width:18px; height:18px; margin-top:1px; flex:none; accent-color:var(--navy-2); }
.cgv-ok a{ color:var(--navy-2); text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:2px; }

/* ---------- stone page (pedra.html, texts in pedras.js) ---------- */
.stone-hero{ background-position:center 35%; }
.stone-hero .wrap{ padding-top:14px; padding-bottom:64px; }
.stone-hero .back{ color:#E6DFCD; margin:8px 0 34px; }
.stone-hero h1{ font-size:clamp(2.4rem, 5.4vw, 3.8rem); }
.stone-hero p{ font-size:1.05rem; }
@media (max-width:640px){ .stone-hero .wrap{ padding-bottom:38px; } .stone-hero .back{ margin-bottom:22px; } }
.stone{ display:grid; grid-template-columns:minmax(0, 1fr) 320px; gap:64px; align-items:start; margin-top:44px; }
@media (max-width:899px){ .stone{ grid-template-columns:minmax(0, 1fr); gap:8px; margin-top:26px; } .stone-facts{ order:-1; } }
.stone-text{ max-width:720px; }
.stone-text section{ scroll-margin-top:84px; }
.stone-text section + section{ margin-top:38px; padding-top:30px; border-top:1px solid var(--line); }
.stone-text h2{ font-size:clamp(1.7rem, 2.6vw, 2.1rem); color:var(--navy-2); margin:0 0 12px; }
.stone-text p{ font-size:1rem; line-height:1.75; margin:0 0 14px; color:#2b2c30; }
.stone-text b{ color:var(--navy-2); font-weight:600; }
.stone-facts{ position:sticky; top:84px; background:#fff; border:1px solid var(--line); border-radius:10px; padding:20px 22px; }
@media (max-width:899px){ .stone-facts{ position:static; } }
.stone-facts h2{ font-size:1.35rem; color:var(--navy-2); margin:0 0 6px; }
.stone-facts .specs{ margin:0 0 20px; }
.stone-facts .specs div{ font-size:0.86rem; padding:9px 0; }
.stone-facts .specs dd{ max-width:62%; }
.toc{ margin:0; padding-left:20px; font-size:0.9rem; line-height:1.9; }
.toc a{ color:var(--navy-soft); text-decoration:none; border-bottom:1px solid var(--line); }
.toc a:hover{ border-bottom-color:var(--gold); }
.stone-pieces{ margin-top:64px; padding-top:34px; border-top:1px solid var(--line); }
.stone-pieces-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.stone-pieces-head h2{ font-size:clamp(1.8rem, 3vw, 2.4rem); color:var(--navy-2); margin:0 0 4px; }
.stone-pieces-head p{ margin:0; color:var(--muted); font-size:0.9rem; }
/* piece page: the stone links to its page */
.specs dd a{ color:inherit; text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:3px; }
