/* =========================
   CLASSY MODERN THEME
========================= */

:root{
  --bg:#0b0c10;
  --panel:#10121a;
  --panel2:#0f1016;
  --line:rgba(255,255,255,.10);
  --line2:rgba(255,255,255,.16);
  --text:#f3f4f6;
  --muted:rgba(243,244,246,.66);
  --accent:#d9c59a; /* warm “luxury” accent */
  --accent2:#ffffff;
  --danger:#e11d48;
  --radius:18px;
  --shadow: 0 18px 60px rgba(0,0,0,.55);
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; background:var(--bg); color:var(--text); font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
img{ display:block; max-width:100%; }
a{ color:inherit; text-decoration:none; }
button{ font:inherit; border:0; background:transparent; color:inherit; cursor:pointer; }
.hidden{ display:none !important; }

.wrap{
  width:100%;
  max-width: 1560px;
  margin:0 auto;
  padding:0 22px;
}
@media (min-width: 1700px){ .wrap{ max-width: 1760px; } }
@media (max-width: 640px){ .wrap{ padding:0 16px; } }

.muted{ color:var(--muted); }
.fine{ font-size:12px; }
.row{ display:flex; align-items:center; justify-content:space-between; gap:12px; }

/* =========================
   TOPBAR + HEADER
========================= */

.topbar{
  background: rgba(255,255,255,.03);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(8px);
}
.topbar-row{
  height:34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:11px;
  letter-spacing:.16em;
  text-transform:uppercase;
  color: rgba(243,244,246,.75);
}

.linklike{
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
}
.linklike:hover{
  border-color: var(--line2);
  background: rgba(255,255,255,.04);
}

.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,12,16,.78);
  border-bottom:1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-row{
  height:64px;
  display:grid;
  grid-template-columns: auto 1fr auto;
  align-items:center;
  gap:18px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:12px;
  white-space:nowrap;
}
.brand-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  box-shadow: 0 0 0 6px rgba(217,197,154,.14);
}

.nav{
  display:flex;
  justify-content:center;
  gap:26px;
  white-space:nowrap;
}
.nav a{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: rgba(243,244,246,.74);
  padding:10px 12px;
  border-radius:999px;
  transition: .18s ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.05);
}

.actions{
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
}

.iconbtn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  height:38px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition:.18s ease;
}
.iconbtn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.06);
  border-color: var(--line2);
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  font-size:12px;
}

.mobileOnly{ display:none; }
@media (max-width: 820px){
  .nav{ display:none; }
  .mobileOnly{ display:inline-flex; }
}

/* =========================
   BUTTONS + FORMS
========================= */

.btn{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size:13px;
  transition:.18s ease;
}
.btn:hover{ background: rgba(255,255,255,.06); border-color: var(--line2); transform: translateY(-1px); }
.btn:disabled{ opacity:.55; cursor:not-allowed; transform:none; }
.btn.primary{
  background: linear-gradient(180deg, #fff, #ececec);
  color:#0b0c10;
  border-color: transparent;
}
.btn.primary:hover{ filter: brightness(.98); }
.btn.wide{ width:100%; }

.input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  outline:none;
}
.input::placeholder{ color: rgba(243,244,246,.40); }

select option{
  background:#0f1117;
  color:#fff;
}

/* =========================
   HERO
========================= */

.hero{
  margin:22px 0 8px;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--panel2);
}
.hero-media{
  height: 340px;
  background-size: cover;
  background-position: center;
  filter: contrast(1.04) saturate(1.06);
}
.hero-body{
  padding: 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.45) 35%, rgba(0,0,0,.82) 100%);
  margin-top: -120px;
}
.h1{
  margin:0;
  font-size: 42px;
  line-height:1.08;
  font-weight: 750;
  letter-spacing:-.02em;
}
.hero-sub{
  margin-top:10px;
  max-width: 680px;
  color: rgba(243,244,246,.72);
  font-size:13px;
  line-height:1.6;
}
.btnrow{ display:flex; gap:10px; margin-top:14px; flex-wrap:wrap; }

@media (max-width: 640px){
  .hero-media{ height: 280px; }
  .hero-body{ margin-top:-90px; }
  .h1{ font-size: 34px; }
}

/* =========================
   SECTIONS
========================= */

.section-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  margin: 24px 0 10px;
}
.h2{
  margin:0;
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  color: rgba(243,244,246,.84);
}
.navlink{
  font-size:11px;
  letter-spacing:.18em;
  text-transform:uppercase;
  color: rgba(243,244,246,.62);
}
.navlink:hover{ color: rgba(243,244,246,.92); }

/* =========================
   SHOP LAYOUT + FILTERS
========================= */

.shoplayout{
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  margin-top: 12px;
}
@media (max-width: 980px){
  .shoplayout{ grid-template-columns: 1fr; }
}

.filters{
  position: sticky;
  top: 92px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  padding:16px;
}
@media (max-width: 980px){
  .filters{ position:relative; top:auto; }
}

.filter-title{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  margin-bottom: 12px;
  color: rgba(243,244,246,.85);
}

.fgroup{ margin-bottom: 14px; }
.flabel{ font-size:12px; color: rgba(243,244,246,.65); margin-bottom:6px; }

.range{ width:100%; }

.checks{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}
.check{
  display:flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  font-size:12px;
  color: rgba(243,244,246,.84);
}
.check input{ accent-color: var(--accent); }

/* =========================
   PRODUCT GRID + CARD
========================= */

.grid{
  display:grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  margin-top: 12px;
}
@media (max-width: 640px){
  .grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

.card{
  display:flex;
  flex-direction:column;
}

.media{
  width:100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow:hidden;
  position:relative;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.media img{
  width:100%;
  height:100%;
  object-fit: cover;
  transition: transform .35s ease, filter .35s ease;
}
.card:hover .media img{
  transform: scale(1.03);
  filter: contrast(1.03);
}

.sold{
  position:absolute;
  left:12px;
  bottom:12px;
  background: var(--danger);
  color:#fff;
  font-size:11px;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:6px 10px;
  border-radius:999px;
}

.cardbody{
  padding: 10px 2px 0;
  min-height: 92px;
}

.pname{
  font-size:12px;
  font-weight:750;
  letter-spacing:.16em;
  text-transform:uppercase;
  line-height:1.3;
}

.price{
  margin-top:6px;
  font-size:13px;
  font-weight:700;
}

.sub{
  margin-top:6px;
  font-size:12px;
  color: rgba(243,244,246,.58);
}

.cardbtns{
  margin-top:10px;
  display:flex;
  gap:8px;
}
.cardbtns .btn{ height:40px; display:inline-flex; align-items:center; justify-content:center; }
.heart{ width:44px; }
.heart.on{ color: #ff4d6d; }

/* =========================
   OVERLAY / DRAWERS / MODAL / TOAST
========================= */

.overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  z-index:80;
}

.drawer{
  position:fixed;
  top:0;
  height:100%;
  width: min(420px, 92vw);
  background: rgba(16,18,26,.92);
  border:1px solid var(--line);
  backdrop-filter: blur(14px);
  z-index:90;
  box-shadow: var(--shadow);
  padding:14px;
}
.drawer.left{ left:0; border-left:0; }
.drawer.right{ right:0; border-right:0; }

.drawer-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:12px;
  border-bottom:1px solid var(--line);
  margin-bottom:12px;
}
.drawer-title{
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
}

.drawer-link{
  display:block;
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.22);
  margin-bottom:10px;
}
.drawer-link:hover{ background: rgba(255,255,255,.05); }

.drawer-body{ padding: 6px 2px; }
.drawer-foot{ margin-top: 10px; }

.totals{
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: rgba(0,0,0,.22);
  margin-bottom: 12px;
}
.total{ font-size:15px; }

.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:95;
  padding: 16px;
}
.modal-card{
  width: min(760px, 96vw);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(16,18,26,.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  padding: 14px;
}

.searchResults{
  margin-top: 12px;
  display:grid;
  gap: 10px;
}

.toast{
  position:fixed;
  left:50%;
  transform: translateX(-50%);
  bottom: 20px;
  background: rgba(16,18,26,.95);
  border:1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  z-index: 110;
  box-shadow: var(--shadow);
}
