
:root{
  --bg:#f5f0e7;
  --surface:#fffdf8;
  --surface-soft:#faf6ee;
  --ink:#171410;
  --muted:#766e62;
  --gold:#b78a3d;
  --gold-light:#ddc488;
  --border:#e7ddca;
  --dark:#11100d;
  --success:#287a55;
  --danger:#b43d31;
  --shadow:0 16px 52px rgba(69,50,20,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:
    radial-gradient(circle at 86% -8%,rgba(183,138,61,.15),transparent 31%),
    linear-gradient(180deg,#fbf8f2 0%,var(--bg) 100%);
}
body.locked{overflow:hidden}
button,input{font:inherit}
button{cursor:pointer}
img{display:block}
a{color:inherit}
.shell{width:min(1180px,calc(100% - 26px));margin:0 auto}

.topbar{
  position:sticky;
  top:0;
  z-index:30;
  border-bottom:1px solid rgba(183,138,61,.13);
  background:rgba(251,248,242,.91);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.nav{
  height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.brand{
  display:flex;
  align-items:center;
  gap:11px;
  font-weight:900;
  letter-spacing:-.035em;
}
.brand-mark{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  border:1px solid #dbc79b;
  background:#fff;
  color:var(--gold);
  box-shadow:0 8px 22px rgba(52,39,16,.08);
}
.brand small{
  display:block;
  margin-top:2px;
  color:var(--gold);
  font-size:9px;
  font-weight:850;
  letter-spacing:.17em;
  text-transform:uppercase;
}
.cart-open{
  min-height:43px;
  border:0;
  border-radius:999px;
  padding:10px 14px;
  display:flex;
  align-items:center;
  gap:8px;
  background:var(--dark);
  color:#fff;
  font-weight:850;
  box-shadow:0 12px 28px rgba(17,16,13,.18);
}
.cart-count{
  min-width:23px;
  height:23px;
  padding:0 6px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:var(--gold-light);
  color:#241b0d;
  font-size:11px;
  font-weight:950;
}

.hero{padding:52px 0 28px}
.hero-grid{
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:26px;
  align-items:center;
}
.eyebrow{
  margin-bottom:11px;
  text-align:center;
  color:var(--gold);
  font-size:10px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
h1{
  margin:0 0 15px;
  text-align:center;
  font-size:clamp(42px,8vw,74px);
  line-height:.94;
  letter-spacing:-.06em;
}
.hero-copy{
  max-width:720px;
  margin:0 auto;
  text-align:center;
  color:var(--muted);
  font-size:15px;
  line-height:1.68;
}
.pricing{
  padding:21px;
  overflow:hidden;
  border:1px solid #dfcfb1;
  border-radius:28px;
  background:linear-gradient(145deg,#1a1814,#0d0c0a);
  color:#fff;
  box-shadow:var(--shadow);
  position:relative;
}
.pricing::after{
  content:"";
  position:absolute;
  width:210px;
  height:210px;
  right:-110px;
  top:-110px;
  border:1px solid rgba(219,193,132,.18);
  border-radius:50%;
  box-shadow:0 0 0 34px rgba(219,193,132,.035),0 0 0 70px rgba(219,193,132,.02);
}
.pricing-title{
  position:relative;
  z-index:1;
  text-align:center;
  color:#d9c69d;
  font-size:11px;
  font-weight:850;
  letter-spacing:.15em;
  text-transform:uppercase;
}
.tiers{
  position:relative;
  z-index:1;
  display:grid;
  gap:9px;
  margin-top:13px;
}
.tier{
  min-height:51px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  background:rgba(255,255,255,.045);
}
.tier span{color:#d0bd95;font-size:12px}
.tier strong{font-size:18px}
.tier small{font-size:9px;color:#d0bd95}
.tier.best{
  border-color:rgba(219,193,132,.38);
  background:linear-gradient(90deg,rgba(183,138,61,.20),rgba(255,255,255,.04));
}

.promo{
  margin:0 0 28px;
  padding:15px;
  border:1px solid #ddcfb3;
  border-radius:18px;
  background:rgba(255,255,255,.67);
  text-align:center;
  font-size:13px;
  line-height:1.45;
}
.promo strong{color:#8b611c}

.catalog-head{
  margin:24px 0 18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.catalog-head h2{
  margin:0;
  text-align:center;
  font-size:31px;
  letter-spacing:-.045em;
}
.catalog-head p{
  margin:0;
  text-align:center;
  color:var(--muted);
  font-size:13px;
}
.search{
  width:min(100%,370px);
  margin-top:4px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  outline:none;
  background:rgba(255,255,255,.82);
  text-align:center;
  color:var(--ink);
}

.products{
  padding-bottom:88px;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}
.product-card{
  min-width:0;
  min-height:100%;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  background:var(--surface);
  box-shadow:0 12px 36px rgba(74,55,22,.07);
  content-visibility:auto;
  contain-intrinsic-size:280px 580px;
}
.product-visual{
  width:100%;
  aspect-ratio:4/5;
  padding:0;
  border:0;
  display:grid;
  place-items:center;
  overflow:hidden;
  background:#fff;
  position:relative;
}
.product-visual img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}
.zoom-label{
  position:absolute;
  right:9px;
  bottom:9px;
  padding:6px 8px;
  border-radius:999px;
  background:rgba(17,16,13,.80);
  color:#fff;
  font-size:8px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
  opacity:.86;
}
.product-body{
  flex:1;
  padding:14px 14px 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
}
.spec-badge{
  margin-bottom:9px;
  padding:6px 9px;
  border-radius:999px;
  background:var(--dark);
  color:#fff;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.product-card h3{
  min-height:40px;
  margin:0 0 5px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:17px;
  line-height:1.15;
  letter-spacing:-.025em;
}
.reference{
  min-height:34px;
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:11px;
  line-height:1.42;
}
.unit-price{
  margin-top:12px;
  font-size:19px;
  font-weight:950;
}
.combo-price{
  min-height:29px;
  margin-top:3px;
  color:var(--muted);
  font-size:10px;
  line-height:1.35;
}
.add{
  width:100%;
  margin-top:12px;
  padding:12px;
  border:0;
  border-radius:14px;
  background:var(--dark);
  color:#fff;
  font-weight:850;
  transition:transform .18s ease,background .18s ease;
}
.add:hover{transform:translateY(-1px);background:#28241e}
.add:active{transform:scale(.99)}

.toast{
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom));
  z-index:100;
  max-width:calc(100% - 28px);
  padding:11px 15px;
  border-radius:999px;
  background:#15130f;
  color:#fff;
  font-size:12px;
  font-weight:800;
  box-shadow:0 16px 40px rgba(0,0,0,.25);
  opacity:0;
  visibility:hidden;
  transform:translate(-50%,12px);
  transition:.2s;
  text-align:center;
}
.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}

.backdrop{
  position:fixed;
  inset:0;
  z-index:60;
  background:rgba(5,4,3,.52);
  opacity:0;
  visibility:hidden;
  transition:.22s;
}
.backdrop.active{opacity:1;visibility:visible}

.drawer{
  position:fixed;
  top:0;
  right:0;
  z-index:61;
  width:min(450px,100%);
  height:100%;
  display:flex;
  flex-direction:column;
  background:#fbf8f1;
  box-shadow:-22px 0 65px rgba(0,0,0,.18);
  transform:translateX(103%);
  transition:transform .26s cubic-bezier(.2,.8,.2,1);
}
.drawer.active{transform:translateX(0)}
.drawer-head{
  min-height:74px;
  padding:15px 17px;
  border-bottom:1px solid var(--border);
  display:grid;
  grid-template-columns:40px 1fr 40px;
  align-items:center;
}
.drawer-head-copy{text-align:center}
.drawer-head h2{margin:0;font-size:22px}
.drawer-head .eyebrow{margin:0 0 3px}
.icon-button{
  width:40px;
  height:40px;
  border:1px solid var(--border);
  border-radius:13px;
  display:grid;
  place-items:center;
  background:#fff;
  color:var(--ink);
  font-weight:900;
}
.cart-body{
  flex:1;
  padding:13px 16px;
  overflow:auto;
}
.empty{
  padding:38px 18px;
  text-align:center;
  color:var(--muted);
  line-height:1.55;
}
.cart-line{
  padding:10px 0;
  border-bottom:1px solid #e8dfd0;
  display:grid;
  grid-template-columns:64px minmax(0,1fr) auto;
  gap:11px;
}
.cart-line img{
  width:64px;
  height:80px;
  object-fit:contain;
  border:1px solid #eee6d9;
  border-radius:12px;
  background:#fff;
}
.cart-name{font-size:13px;font-weight:850}
.cart-reference{margin-top:2px;color:var(--muted);font-size:10px;line-height:1.3}
.qty-control{
  margin-top:8px;
  display:flex;
  align-items:center;
  gap:6px;
}
.qty-control button{
  width:29px;
  height:29px;
  border:1px solid var(--border);
  border-radius:9px;
  display:grid;
  place-items:center;
  background:#fff;
  font-weight:900;
}
.qty-control span{
  min-width:22px;
  text-align:center;
  font-size:12px;
  font-weight:900;
}
.remove{
  margin-top:7px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--danger);
  font-size:10px;
}
.line-total{font-size:12px;font-weight:900;white-space:nowrap}
.cart-footer{
  padding:15px 17px calc(16px + env(safe-area-inset-bottom));
  border-top:1px solid var(--border);
  background:var(--surface);
}
.upsell{
  margin-bottom:12px;
  padding:11px 12px;
  border:1px solid #dcc79d;
  border-radius:15px;
  background:#fff8e7;
  color:#685128;
  text-align:center;
  font-size:11px;
  line-height:1.47;
}
.upsell strong{color:#8d621e}
.summary-row{
  margin:6px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-size:12px;
}
.summary-row.discount{color:var(--success)}
.summary-row.total{margin-top:10px;color:var(--ink);font-size:19px;font-weight:950}
.checkout{
  width:100%;
  margin-top:12px;
  padding:14px;
  border:0;
  border-radius:15px;
  background:linear-gradient(135deg,var(--gold),var(--gold-light));
  color:#20180d;
  font-weight:950;
}

.modal{
  position:fixed;
  inset:0;
  z-index:80;
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(5,4,3,.70);
  opacity:0;
  visibility:hidden;
  transition:.2s;
}
.modal.active{opacity:1;visibility:visible}
.modal-card{
  width:min(520px,100%);
  max-height:90vh;
  overflow:auto;
  padding:20px;
  border:1px solid #e1d2b6;
  border-radius:26px;
  background:var(--surface);
  box-shadow:0 30px 100px rgba(0,0,0,.30);
}
.modal-head{
  display:grid;
  grid-template-columns:40px 1fr 40px;
  align-items:start;
}
.modal-copy{text-align:center}
.modal-copy h3{margin:0;font-size:24px;letter-spacing:-.035em}
.modal-copy p{margin:6px 0 0;color:var(--muted);font-size:12px;line-height:1.52}
.checkout-total{
  margin:15px 0;
  padding:13px 14px;
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#15130f;
  color:#fff;
}
.checkout-total strong{color:#e7c779;font-size:21px}
.loading{
  padding:18px 8px;
  text-align:center;
  color:var(--muted);
  font-size:12px;
}
.error-box{
  display:none;
  margin-top:10px;
  padding:11px;
  border:1px solid #efc4be;
  border-radius:13px;
  background:#fff0ed;
  color:#8e372c;
  text-align:center;
  font-size:11px;
  line-height:1.45;
}
.error-box.active{display:block}
.payment-note{
  margin-top:10px;
  padding:11px;
  border:1px solid #ead7a5;
  border-radius:13px;
  background:#fff6df;
  color:#795e2d;
  text-align:center;
  font-size:10px;
  line-height:1.5;
}
.success-modal{text-align:center}
.success-icon{
  width:56px;
  height:56px;
  margin:0 auto 11px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e9f7f0;
  color:var(--success);
  font-size:27px;
  font-weight:950;
}
.receipt{
  display:block;
  margin-top:12px;
  padding:13px;
  border-radius:14px;
  background:var(--dark);
  color:#fff;
  text-decoration:none;
  font-weight:850;
}

.lightbox-card{
  width:min(760px,100%);
  padding:10px;
  position:relative;
  border-radius:24px;
  background:#fff;
}
.lightbox-card img{
  width:100%;
  max-height:calc(100vh - 52px);
  object-fit:contain;
  border-radius:17px;
}
.lightbox-close{
  position:absolute;
  top:17px;
  right:17px;
  z-index:2;
  background:rgba(17,16,13,.86);
  color:#fff;
  border-color:rgba(255,255,255,.2);
}

@media(max-width:960px){
  .hero-grid{grid-template-columns:1fr}
  .products{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:680px){
  .hero{padding-top:34px}
  .products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .product-body{padding:11px 10px 13px}
  .product-card h3{min-height:36px;font-size:15px}
  .reference{min-height:39px;font-size:10px}
  .unit-price{font-size:18px}
  .add{padding:11px 8px;font-size:12px}
  .brand-mark{width:37px;height:37px}
  .brand{font-size:14px}
  .cart-open{padding:9px 12px;font-size:12px}
  .zoom-label{font-size:7px}
}
@media(max-width:350px){
  .products{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}
