/* Product details */
[hidden]{display:none!important}
.product-open{border:0;padding:0;margin:0;color:inherit;font:inherit;background:transparent;cursor:pointer;text-align:left;border-radius:0}
.card .card-img.product-open{width:100%;background:#131219;flex-shrink:0}
.card .card-name.product-open{font-size:.92rem;font-weight:600;line-height:1.3}
.details-link{font:inherit;font-size:.8rem;color:var(--bronze-2);border:0;background:transparent;padding:0;cursor:pointer;text-align:left;text-decoration:underline;text-underline-offset:3px;align-self:flex-start}
.product-open:focus-visible,.details-link:focus-visible{outline:2px solid var(--bronze-2);outline-offset:-3px}
.card[data-product]{cursor:pointer}
body.product-details-open{overflow:hidden}
.product-dialog{color:var(--ink);background:var(--bg-2);border:1px solid var(--line);padding:0;width:min(560px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 24px 80px #0008}
.product-dialog::backdrop{background:#000b}
.product-dialog-head{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;background:var(--bg-2);border-bottom:1px solid var(--line);padding:12px 20px}
.product-dialog-head .btn{min-width:44px;min-height:44px}
.product-dialog-body{padding:20px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));overflow-wrap:anywhere}
.detail-image{height:230px;background:#131219;display:grid;place-items:center;margin-bottom:20px}
.detail-image img{height:100%;width:100%;object-fit:contain;max-height:230px}
.product-dialog h2{font-size:1.35rem;line-height:1.3}
.product-dialog h3{font-size:.95rem;margin-top:20px}
#detail-sku{font-size:.8rem;margin:8px 0 14px}
.detail-price-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.detail-specs{display:grid;grid-template-columns:100px minmax(0,1fr);gap:8px 16px;padding:16px 0;margin:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.detail-specs dt{color:var(--muted);font-size:.85rem}
.detail-specs dd{margin:0;font-weight:600}
.detail-description{white-space:pre-wrap;line-height:1.65;font-size:.92rem;margin-bottom:24px}
#detail-add{margin-top:20px;min-height:48px}
@media(max-width:480px){.product-dialog-body{padding:16px}.detail-image{height:190px}.detail-image img{max-height:190px}.product-dialog h2{font-size:1.15rem}}

:root{
  --bg:#101015;
  --bg-2:#191820;
  --line:#312b3e;
  --ink:#f2efe9;
  --muted:#8f887b;
  --bronze:#ad90c9;
  --bronze-2:#d4b7f5;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:Archivo,system-ui,sans-serif;
  line-height:1.5;
}

h1,h2,h3{
  font-weight:800;
  letter-spacing:-.02em;
  margin:0;
}

a{color:inherit;text-decoration:none}
.muted{color:var(--muted)}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

.btn{
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  padding:10px 16px;
  font:inherit;
  font-weight:600;
  cursor:pointer;
  border-radius:0;
}

.btn:hover{border-color:var(--bronze)}

.btn-primary{
  background:var(--bronze);
  border-color:var(--bronze);
  color:#101015;
}

.btn-primary:hover{background:var(--bronze-2)}
.btn-ghost{border:0;font-size:1.6rem;padding:0 6px}
.wide{width:100%}

.input,.select{
  width:100%;
  background:var(--bg-2);
  border:1px solid var(--line);
  color:var(--ink);
  padding:10px;
  font:inherit;
  border-radius:0;
}

.lbl{
  display:block;
  margin:12px 0 4px;
  font-size:.8rem;
  color:var(--muted);
}

/* gate */
.gate{
  position:fixed;
  inset:0;
  background:var(--bg);
  z-index:60;
  display:grid;
  place-items:center;
  text-align:center;
}

.gate.hidden{display:none}
.gate-box{max-width:420px;padding:32px}

.gate-logo{
  font-size:3rem;
  font-weight:800;
  letter-spacing:.1em;
  color:var(--bronze-2);
}

.gate-sub{
  color:var(--muted);
  margin:.2rem 0 1.5rem;
  text-transform:uppercase;
  letter-spacing:.3em;
  font-size:.7rem;
}

.gate h1{margin:1rem 0}

.gate-actions{
  display:flex;
  gap:10px;
  justify-content:center;
  margin-top:20px;
}

/* topbar */
.topbar{
  border-bottom:1px solid var(--line);
  position:sticky;
  top:0;
  background:rgba(14,13,11,.95);
  backdrop-filter:blur(8px);
  z-index:40;
}

.topbar-inner{
  display:flex;
  align-items:center;
  gap:16px;
  padding:12px 20px;
}

.brand{
  display:flex;
  flex-direction:column;
  line-height:1;
}

.brand span{
  font-weight:800;
  font-size:1.5rem;
  letter-spacing:.15em;
  color:var(--bronze-2);
}

.brand small{
  color:var(--muted);
  font-size:.6rem;
  letter-spacing:.2em;
}

.search{flex:1}

.search input{
  width:100%;
  background:var(--bg-2);
  border:1px solid var(--line);
  color:var(--ink);
  padding:10px 14px;
  font:inherit;
  border-radius:0;
}

.badge{
  display:inline-block;
  min-width:20px;
  padding:0 6px;
  background:#101015;
  color:var(--bronze-2);
  border-radius:0;
  font-size:.75rem;
}

/* hero */
.hero{
  padding:40px 0 24px;
  border-bottom:1px solid var(--line);
}

.hero h2{font-size:clamp(1.6rem,4vw,2.6rem)}

/* brand bar */
.brandbar{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:16px 20px;
  scrollbar-width:none;
}

.brandbar::-webkit-scrollbar{display:none}

.chip{
  white-space:nowrap;
  border:1px solid var(--line);
  padding:7px 14px;
  cursor:pointer;
  font-size:.85rem;
  color:var(--muted);
  background:transparent;
}

.chip.active{
  border-color:var(--bronze);
  color:var(--bronze-2);
}

/* controls */
.controls{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:12px auto;
}

.controls .select{width:auto}

/* grid */
.grid{
  display:grid;
  gap:16px;
  padding-bottom:60px;
  grid-template-columns:repeat(auto-fill,minmax(200px,1fr));
}

.card{
  border:1px solid var(--line);
  background:var(--bg-2);
  display:flex;
  flex-direction:column;
  overflow:hidden;
}

.card-img{
  aspect-ratio:1;
  background:#131219;
  display:grid;
  place-items:center;
  overflow:hidden;
}

.card-img img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.card-body{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:8px;
  flex:1;
}

.card-cat{
  font-size:.65rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--bronze);
}

.card-name{
  font-size:.92rem;
  font-weight:600;
  line-height:1.3;
  flex:1;
}

.card-price{font-weight:800;font-size:1.05rem}
.card .btn{padding:8px}
.oos{font-size:.7rem;color:var(--muted)}
.empty{text-align:center;padding:60px 0}

/* cart */
.cart{
  position:fixed;
  top:0;
  right:0;
  width:380px;
  max-width:92vw;
  height:100vh;
  height:100dvh;
  background:var(--bg-2);
  border-left:1px solid var(--line);
  z-index:50;
  transform:translateX(100%);
  transition:transform .25s;
  display:flex;
  flex-direction:column;

  /* Scroll products and checkout details together */
  overflow-y:auto;
  overflow-x:hidden;
  overscroll-behavior-y:contain;
  -webkit-overflow-scrolling:touch;
  scroll-padding-top:80px;
  padding-bottom:env(safe-area-inset-bottom,0px);
}

.cart.open{transform:translateX(0)}

.cart-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px;
  padding-top:calc(16px + env(safe-area-inset-top,0px));
  border-bottom:1px solid var(--line);
  background:var(--bg-2);
  position:sticky;
  top:0;
  z-index:2;
  flex:0 0 auto;
}

.cart-items{
  flex:0 0 auto;
  overflow:visible;
  padding:12px;
}

.ci{
  display:flex;
  gap:10px;
  padding:10px 0;
  border-bottom:1px solid var(--line);
}

.ci img{
  width:52px;
  height:52px;
  flex-shrink:0;
  object-fit:contain;
  background:#131219;
}

.ci-info{
  flex:1;
  min-width:0;
  font-size:.85rem;
  overflow-wrap:anywhere;
}

.qty{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:6px;
}

.qty button{
  width:24px;
  height:24px;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  cursor:pointer;
}

.cart-foot{
  flex:0 0 auto;
  margin-top:auto;
  padding:16px;
  border-top:1px solid var(--line);
}

.row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin:4px 0;
  font-size:.9rem;
}

.row.total{
  font-weight:800;
  font-size:1.1rem;
  color:var(--bronze-2);
  margin-top:8px;
}

/* Prevent input zoom on iPhones */
.cart .input,
.cart .select{
  font-size:16px;
}

/* footer */
.footer{
  border-top:1px solid var(--line);
  padding:20px 0;
  color:var(--muted);
  font-size:.8rem;
  text-align:center;
}

/* Transparent FEEL brand artwork */
.brand{flex-shrink:0}
.brand-logo{display:block;width:104px;height:104px;object-fit:contain}
.gate-box{max-height:100vh;max-height:100dvh;overflow-y:auto}
.gate-logo{line-height:0}
.gate-logo img{display:block;width:220px;height:220px;max-width:65vw;object-fit:contain;margin:0 auto 20px}
@media(max-width:600px){
  .topbar-inner{flex-wrap:wrap;gap:12px}
  .brand-logo{width:88px;height:88px}
  .cart-btn{margin-left:auto}
  .search{order:3;flex:1 0 100%;min-width:0}
  .gate-box{padding:24px}
  .gate-logo img{width:180px;height:180px;margin-bottom:16px}
}

/* Native brand dropdown: keyboard and mobile friendly. */
.brand-filter{padding-top:18px;padding-bottom:6px}
.brand-filter .lbl{margin:0 0 6px}
.brand-filter .select{display:block;width:100%;max-width:420px;min-height:48px;font-size:16px;cursor:pointer}
.brand-filter .select:disabled{opacity:.6;cursor:default}
.brand-filter .select:focus-visible{outline:2px solid var(--bronze-2);outline-offset:2px}
@media(max-width:600px){.brand-filter .select{max-width:none}.controls{gap:12px;flex-wrap:wrap}}

.product-variation { display:grid; gap:5px; min-width:0; font-size:.9rem; }
.product-variation[hidden] { display:none; }
.product-variation .select { width:100%; min-width:0; min-height:44px; }
#detail-variation-label { margin:0 0 12px; }

.sale-prices { display:grid; justify-items:start; gap:3px; }
.sale-prices del { font-size:.9rem; font-weight:500; opacity:.75; }
.sale-prices strong { font-weight:800; }
.sale-badge { padding:2px 6px; border:1px solid var(--bronze); color:var(--bronze); font-size:.72rem; }

.promo-entry { display:flex; gap:8px; align-items:stretch; }
.promo-entry .input { flex:1; min-width:0; }
.promo-entry button { min-height:44px; }
#promo-feedback { margin:6px 0; font-size:.85rem; }
#promo-discount-row[hidden] { display:none; }
