:root{
  --bg:#050505;
  --panel:#111111;
  --panel-soft:#181314;
  --cream:#ffffff;
  --muted:#aaa3a3;
  --accent:#8f1d2c;
  --accent-light:#b52d40;
  --accent-dark:#651725;
  --gold:#c9a35c;
  --gold-light:#e2c27b;
  --line:#2a2022;
  --radius:20px;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  background:
    radial-gradient(circle at 80% 10%,rgba(143,29,44,.10),transparent 25%),
    radial-gradient(circle at 20% 35%,rgba(101,23,37,.08),transparent 30%),
    var(--bg);
  color:var(--cream);
  font-family:Inter,system-ui,-apple-system,sans-serif;
}

button,
a{
  font:inherit;
}

/* =========================
   BOOT SCREEN
========================= */

.booting>:not(.boot-screen):not(script){
  visibility:hidden;
}

.boot-screen{
  position:fixed;
  inset:0;
  z-index:9999;
  display:grid;
  place-content:center;
  justify-items:center;
  gap:15px;
  background:
    radial-gradient(circle at 50% 35%,#4a1018,#050505 52%);
  color:var(--cream);
  transition:opacity .18s ease;
}

.boot-screen[hidden]{
  display:none;
}

.boot-mark{
  display:grid;
  place-items:center;
  width:66px;
  height:66px;
  border:1px solid var(--gold);
  border-radius:20px;
  color:var(--gold);
  background:
    linear-gradient(
      145deg,
      rgba(201,163,92,.08),
      rgba(143,29,44,.08)
    );
  box-shadow:
    0 0 25px rgba(143,29,44,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
  font:700 27px Georgia,serif;
}

.boot-screen strong{
  font-size:15px;
  letter-spacing:.04em;
}

.boot-spinner{
  width:28px;
  height:28px;
  border:3px solid rgba(201,163,92,.25);
  border-top-color:var(--gold);
  border-radius:50%;
  animation:bootSpin .7s linear infinite;
}

@keyframes bootSpin{
  to{
    transform:rotate(360deg);
  }
}

/* =========================
   REDIRECT BAR
========================= */

.redirect-bar{
  position:sticky;
  top:0;
  z-index:50;
  min-height:88px;
  padding:14px 16px 18px;
  background:#f5f3f3;
  color:#171111;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.45);
}

.redirect-bar[hidden]{
  display:none;
}

.redirect-bar div{
  flex:1;
}

.redirect-bar strong{
  font-family:Georgia,serif;
  font-size:21px;
  color:#2a1115;
}

.redirect-bar p{
  margin:4px 0 0;
  font-size:14px;
  color:#675b5d;
}

.redirect-bar button,
.button{
  border:0;
  border-radius:999px;
  background:
    linear-gradient(
      180deg,
      var(--accent-light),
      var(--accent)
    );
  color:#fff;
  padding:11px 16px;
  font-weight:800;
  text-decoration:none;
  box-shadow:
    0 5px 16px rgba(143,29,44,.30),
    inset 0 1px 0 rgba(255,255,255,.13);
}

.redirect-bar button:hover,
.button:hover{
  filter:brightness(1.08);
}

.progress{
  position:absolute;
  left:0;
  bottom:0;
  height:5px;
  width:100%;
  background:
    linear-gradient(
      90deg,
      var(--accent-dark),
      var(--accent-light),
      var(--gold)
    );
  transform-origin:left;
}

/* =========================
   HEADER
========================= */

.header{
  height:72px;
  padding:0 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:20;
  background:rgba(5,5,5,.95);
  box-shadow:
    0 8px 20px rgba(0,0,0,.18);
}

.header::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:-1px;
  height:1px;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(143,29,44,.75),
      rgba(201,163,92,.45),
      transparent
    );
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  color:inherit;
  text-decoration:none;
}

.brand-mark{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid var(--gold);
  color:var(--gold);
  border-radius:12px;
  font-weight:900;
  background:
    linear-gradient(
      145deg,
      rgba(143,29,44,.22),
      rgba(5,5,5,.8)
    );
  box-shadow:
    0 0 20px rgba(143,29,44,.15),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.brand b,
.brand small{
  display:block;
}

.brand b{
  color:#fff;
}

.brand small{
  color:var(--muted);
  font-size:11px;
  margin-top:2px;
}

.icon-button{
  background:#0d0d0d;
  border:1px solid var(--line);
  color:var(--cream);
  width:42px;
  height:42px;
  border-radius:12px;
  transition:.2s ease;
}

.icon-button:hover{
  border-color:var(--accent);
  color:var(--gold);
}

/* =========================
   NAVIGATION
========================= */

.nav{
  display:none;
  position:absolute;
  z-index:19;
  right:16px;
  top:68px;
  background:
    linear-gradient(
      160deg,
      #151112,
      #0b0b0b
    );
  border:1px solid var(--line);
  border-radius:14px;
  padding:8px;
  min-width:170px;
  box-shadow:
    0 18px 35px rgba(0,0,0,.45);
}

.nav.open{
  display:grid;
}

.nav a{
  color:var(--cream);
  padding:12px;
  text-decoration:none;
  border-radius:9px;
  transition:.2s ease;
}

.nav a:hover{
  background:rgba(143,29,44,.13);
  color:var(--gold-light);
}

/* =========================
   HERO
========================= */

.hero{
  min-height:580px;
  position:relative;
  display:flex;
  align-items:flex-end;
  overflow:hidden;
  background:
    radial-gradient(
      circle at 70% 20%,
      #651725,
      #171113 48%,
      #050505 75%
    );
}

.hero::before{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  top:-160px;
  right:-140px;
  border-radius:50%;
  background:
    radial-gradient(
      circle,
      rgba(181,45,64,.20),
      transparent 68%
    );
  filter:blur(12px);
  z-index:1;
}

.hero img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-shade{
  position:absolute;
  inset:0;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.05),
      rgba(5,5,5,.35) 45%,
      rgba(5,5,5,.94)
    );
}

.hero-copy{
  position:relative;
  z-index:2;
  padding:42px 20px 54px;
  max-width:680px;
}

.eyebrow{
  color:var(--gold);
  font-size:11px;
  font-weight:900;
  letter-spacing:.18em;
  text-shadow:
    0 0 12px rgba(201,163,92,.20);
}

.hero h1{
  font:
    700 clamp(43px,12vw,80px)/.98 Georgia,serif;
  margin:12px 0 18px;
  color:#fff;
  text-shadow:
    0 3px 18px rgba(0,0,0,.55);
}

.hero p{
  color:#ded5d6;
  line-height:1.6;
  margin:0 0 26px;
}

/* =========================
   SECTION
========================= */

.section{
  padding:58px 18px;
  max-width:1180px;
  margin:auto;
}

.section h2{
  font:
    700 34px/1.1 Georgia,serif;
  margin:8px 0 22px;
  color:#fff;
}

/* =========================
   CHIPS
========================= */

.chips{
  display:flex;
  gap:8px;
  overflow:auto;
  margin-bottom:22px;
  scrollbar-width:none;
}

.chips::-webkit-scrollbar{
  display:none;
}

.chip{
  white-space:nowrap;
  border:1px solid var(--line);
  background:
    linear-gradient(
      180deg,
      #171314,
      #0e0e0e
    );
  color:var(--muted);
  padding:9px 14px;
  border-radius:999px;
  transition:.2s ease;
}

.chip:hover{
  border-color:rgba(143,29,44,.65);
  color:#fff;
}

.chip.active{
  background:
    linear-gradient(
      180deg,
      var(--accent-light),
      var(--accent)
    );
  color:#fff;
  border-color:var(--accent);
  box-shadow:
    0 6px 18px rgba(143,29,44,.20);
}

/* =========================
   PRODUCT GRID
========================= */

.product-grid{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));
  gap:12px;
}

.card{
  background:
    linear-gradient(
      160deg,
      #161213,
      #0c0c0c
    );
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:
    transform .2s ease,
    border-color .2s ease,
    box-shadow .2s ease;
}

.card:hover{
  transform:translateY(-3px);
  border-color:rgba(143,29,44,.50);
  box-shadow:
    0 18px 35px rgba(0,0,0,.28),
    0 0 24px rgba(143,29,44,.08);
}

.card img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
  background:#1a1516;
}

.card-body{
  padding:13px;
}

.card h3{
  font-size:15px;
  margin:0 0 6px;
  color:#fff;
}

.price{
  font-weight:900;
  color:var(--gold);
}

.old-price{
  font-size:12px;
  color:#756d6e;
  text-decoration:line-through;
  margin-left:5px;
}

.stock{
  font-size:11px;
  color:var(--muted);
  margin-top:7px;
}

.card a{
  display:block;
  text-align:center;
  margin-top:12px;
  padding:10px;
  border-radius:10px;
  background:
    linear-gradient(
      180deg,
      var(--accent-light),
      var(--accent)
    );
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
  box-shadow:
    0 5px 14px rgba(143,29,44,.20);
  transition:.2s ease;
}

.card a:hover{
  filter:brightness(1.08);
}

/* =========================
   EMPTY STATE
========================= */

.empty{
  grid-column:1/-1;
  padding:48px 22px;
  text-align:center;
  border:1px dashed #453237;
  border-radius:var(--radius);
  color:var(--muted);
  background:
    linear-gradient(
      160deg,
      rgba(143,29,44,.04),
      rgba(255,255,255,.01)
    );
}

.empty b,
.empty span{
  display:block;
}

.empty b{
  color:var(--cream);
  margin-bottom:8px;
}

/* =========================
   ABOUT
========================= */

.about{
  border-top:1px solid var(--line);
}

.about p{
  color:var(--muted);
  line-height:1.8;
}

/* =========================
   FOOTER
========================= */

footer{
  border-top:1px solid var(--line);
  padding:28px 18px 42px;
  display:flex;
  justify-content:space-between;
  gap:18px;
  color:var(--muted);
  font-size:13px;
  background:#050505;
}

footer b{
  color:var(--cream);
}

/* =========================
   TOAST
========================= */

.toast{
  position:fixed;
  z-index:99;
  left:50%;
  bottom:22px;
  transform:translateX(-50%);
  background:#fff;
  color:#211b1d;
  padding:12px 18px;
  border-radius:999px;
  box-shadow:
    0 12px 30px rgba(0,0,0,.5);
}

/* =========================
   DETAIL PAGE
========================= */

.detail{
  max-width:1000px;
  margin:auto;
  padding:28px 18px 64px;
}

.detail-grid{
  display:grid;
  gap:26px;
}

.detail-image{
  width:100%;
  border-radius:24px;
  aspect-ratio:4/5;
  object-fit:cover;
  background:#1a1516;
  border:1px solid var(--line);
  box-shadow:
    0 20px 45px rgba(0,0,0,.28);
}

.detail h1{
  font:
    700 42px/1.05 Georgia,serif;
  color:#fff;
}

.detail .description{
  color:var(--muted);
  line-height:1.7;
}

.back{
  color:var(--gold);
  text-decoration:none;
  font-weight:700;
}

.back:hover{
  color:var(--gold-light);
}

.detail-price{
  font-size:27px;
  color:var(--gold);
  font-weight:900;
}

/* =========================
   DESKTOP
========================= */

@media(min-width:720px){

  .nav{
    display:flex;
    position:static;
    background:transparent;
    border:0;
    box-shadow:none;
  }

  .icon-button{
    display:none;
  }

  .header{
    padding:0 5vw;
  }

  .hero-copy{
    padding-left:6vw;
  }

  .product-grid{
    grid-template-columns:
      repeat(4,1fr);
  }

  .section{
    padding-left:24px;
    padding-right:24px;
  }

  .detail-grid{
    grid-template-columns:
      1fr 1fr;
    align-items:center;
  }

}