/* ---------- Base / Theme (Mobile-first) ---------- */
:root{
  --bg: #0b0c10;
  --panel: #101218;
  --panel-2: #0f1117;
  --card: rgba(18, 21, 29, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);

  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.68);
  --soft: rgba(255, 255, 255, 0.12);

  --gold: #c8a25a;
  --gold-2: #e0c27b;
  --good: #3bd67f;
  --bad: #ff6b6b;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 18px 55px rgba(0,0,0,0.55);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color:var(--text);
  background:
    radial-gradient(1200px 700px at 15% -10%, rgba(200,162,90,0.20), transparent 60%),
    radial-gradient(900px 600px at 90% 10%, rgba(255,255,255,0.06), transparent 55%),
    linear-gradient(180deg, #07080b, var(--bg));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.45;
}

a{ color:inherit; text-decoration:none; }
a:hover{ color:var(--gold-2); }

.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Mobile-first spacing */
.section{ padding: 26px 0; }
.section-tight{ padding: 18px 0; }

.muted{ color: var(--muted); }
.mono{ font-variant-numeric: tabular-nums; }
.gold{ color: var(--gold-2); }

/* ---------- Header (Mobile-first) ---------- */
.site-header{
  position: sticky;
  top:0;
  z-index:50;
  background: rgba(10, 11, 15, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.header-inner{
  display:flex;
  flex-direction: column;          /* mobile */
  align-items:flex-start;
  gap: 10px;
  padding: 12px 0;
}

.brand{
  display:flex;
  gap:12px;
  align-items:center;
}

.brand-mark{
  width:42px; height:42px;
  border-radius: 14px;
  display:grid; place-items:center;
  font-weight:800;
  letter-spacing:0.5px;
  color:#0b0c10;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 10px 30px rgba(200,162,90,0.22);
}

.brand-name{ font-weight:800; }
.brand-tag{ font-size:12px; color: var(--muted); margin-top:2px; }

/* Mobile nav becomes a wrapping pill row */
.nav{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.nav-link{
  font-size: 13px;
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}
.nav-link:hover{ background: rgba(255,255,255,0.07); color: var(--text); }
.nav-link.is-active{
  color: var(--text);
  background: rgba(200,162,90,0.14);
  border-color: rgba(200,162,90,0.20);
}

/* ---------- Typography ---------- */
h1{
  margin:0 0 10px;
  font-size: clamp(26px, 5.5vw, 44px);
  letter-spacing: -0.02em;
}
h2, h3{ letter-spacing: -0.01em; }

/* ---------- Forms / Inputs ---------- */
.field{ width:100%; }
label{
  display:block;
  font-size:12px;
  color: var(--muted);
  margin-bottom: 6px;
}

input, select, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(10, 11, 15, 0.55);
  color: var(--text);
  outline: none;
}

textarea{
  resize: vertical;
  min-height: 130px;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(200,162,90,0.55);
  box-shadow: 0 0 0 4px rgba(200,162,90,0.12);
}

/* ---------- Buttons (Touch-friendly) ---------- */
.btn{
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
  user-select:none;
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #0b0c10;
  box-shadow: 0 12px 34px rgba(200,162,90,0.22);
}
.btn-primary:hover{ filter: brightness(1.03); }

.btn-ghost{
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-color: rgba(255,255,255,0.10);
}
.btn-ghost:hover{
  border-color: rgba(200,162,90,0.35);
  background: rgba(200,162,90,0.10);
}
.btn[disabled]{
  opacity:0.55;
  cursor:not-allowed;
  filter: grayscale(0.25);
}

.btn-full{ width:100%; }

/* ---------- Card + Glow ---------- */
.card{
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow);
  padding: 14px;
}

.glow{
  position:absolute;
  inset:auto -40px -60px auto;
  width:220px;
  height:220px;
  background: radial-gradient(circle at 30% 30%, rgba(200,162,90,0.30), transparent 60%);
  filter: blur(8px);
}

/* ---------- Section Head ---------- */
.section-head{
  display:flex;
  flex-direction: column;          /* mobile */
  gap: 6px;
  margin-bottom: 14px;
}
.section-head h2{ margin:0; font-size: 20px; }
.section-sub{ margin:0; color: var(--muted); }

/* ---------- Hero (if you use it on index) ---------- */
.hero{ padding: 28px 0 18px; }

.hero-inner{
  display:grid;
  grid-template-columns: 1fr;      /* mobile */
  gap: 16px;
  align-items: start;
}

.subhead{
  margin:0 0 14px;
  color: var(--muted);
  max-width: 60ch;
}

.search-panel{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: var(--shadow);
  padding: 14px;
}

.search-row{
  display:flex;
  flex-direction: column;          /* mobile */
  gap: 10px;
  align-items: stretch;
}

.filter-row{
  display:grid;
  grid-template-columns: 1fr;      /* mobile */
  gap: 10px;
  margin-top: 10px;
}

.micro{
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}

/* ---------- Detail Page ---------- */
.detail-head{
  display:grid;
  grid-template-columns: 1fr;      /* mobile */
  gap: 16px;
  align-items:start;
}

.crumbs{
  color: rgba(255,255,255,0.60);
  font-size: 12px;
  margin-bottom: 8px;
}
.crumbs a:hover{ color: var(--gold-2); }
.crumbs span{ margin: 0 6px; opacity: .6; }

.detail-title{ margin:0 0 6px; font-size: 26px; }
.detail-sub{ margin:0 0 10px; color: var(--muted); }

.pills{ display:flex; gap: 8px; flex-wrap: wrap; }
.pill{
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  padding: 6px 10px;
  border-radius: 999px;
}

/* Summary card */
.detail-summary .summary-card{
  position: relative;
  overflow:hidden;
}
.summary-kicker{ color: var(--muted); font-size: 12px; }
.summary-price{
  font-size: 34px;
  font-weight: 900;
  color: var(--gold-2);
  margin: 6px 0 2px;
}
.summary-price span{ font-size: 14px; color: var(--muted); font-weight: 800; }
.summary-sub{ color: rgba(255,255,255,0.70); font-size: 12px; margin-bottom: 12px; }

#bestPerStick{
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ---------- Tabs (Wrap on mobile) ---------- */
.tabs{
  display:flex;
  gap: 10px;
  margin: 16px 0 10px;
  flex-wrap: wrap;
}
.tab{
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor:pointer;
  font-weight: 900;
}
.tab.is-active{
  background: rgba(200,162,90,0.16);
  border-color: rgba(200,162,90,0.28);
}

/* ---------- Card head tools (stack on mobile) ---------- */
.card-head{
  display:flex;
  flex-direction: column;          /* mobile */
  align-items:flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.card-head h2{ margin:0; font-size: 16px; }

.card-tools{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
}
.tool-text{ color: var(--muted); font-size: 12px; }

.select-inline{
  display:flex;
  align-items:center;
  gap: 8px;
}
.select-inline select{
  width: auto;
  padding: 10px 12px;
}

/* ---------- Table (Mobile-friendly scroll) ---------- */
.table-wrap{
  overflow:auto;
  margin-top: 12px;
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
}
.lux-table{
  width:100%;
  border-collapse: collapse;
  min-width: 720px;               /* allows swipe horizontal on phones */
}

.lux-table th, .lux-table td{
  padding: 12px 10px;
  text-align:left;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  vertical-align: middle;
}
.lux-table thead th{
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.lux-table tbody tr:hover{
  background: rgba(255,255,255,0.04);
}
.row-muted{ opacity: 0.60; }

.lux-table td[colspan]{
  padding: 18px 10px;
  color: rgba(255,255,255,0.70);
  text-align: center;
}

/* Retailer cell */
.retailer{
  display:flex;
  gap: 10px;
  align-items:center;
}
.retailer-logo{
  width:34px;
  height:34px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-weight: 900;
  color: #0b0c10;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(200,162,90,0.35));
  border: 1px solid rgba(255,255,255,0.10);
}
.retailer-name{ font-weight: 900; }
.retailer-sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Status pills */
.status{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.10);
}
.status-good{
  color: #0b0c10;
  background: rgba(59,214,127,0.95);
  border-color: rgba(59,214,127,0.25);
}
.status-bad{
  color: #0b0c10;
  background: rgba(255,107,107,0.95);
  border-color: rgba(255,107,107,0.25);
}

/* ---------- Switch ---------- */
.switch{
  position: relative;
  display:inline-block;
  width: 44px;
  height: 26px;
}
.switch input{ display:none; }
.slider{
  position:absolute; inset:0;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  cursor:pointer;
  transition: .15s ease;
}
.slider:before{
  content:"";
  position:absolute;
  height:20px; width:20px;
  left:3px; top:2px;
  background: rgba(255,255,255,0.88);
  border-radius: 50%;
  transition: .15s ease;
}
.switch input:checked + .slider{
  background: rgba(200,162,90,0.25);
  border-color: rgba(200,162,90,0.35);
}
.switch input:checked + .slider:before{
  transform: translateX(18px);
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

/* ---------- Layout grids ---------- */
/* Mobile-first: one column */
.grid{ display:grid; grid-template-columns: 1fr; gap: 16px; }
.grid-2{ display:grid; grid-template-columns: 1fr; gap: 16px; }

/* ---------- Specs ---------- */
.specs{
  display:grid;
  grid-template-columns: 1fr;      /* mobile */
  gap: 12px;
  margin: 14px 0 0;
}
.specs div{
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(0,0,0,0.16);
  border-radius: 14px;
  padding: 10px 12px;
}
dt{ color: rgba(255,255,255,0.62); font-size: 12px; }
dd{ margin: 4px 0 0; font-weight: 900; }

/* ---------- Callout ---------- */
.callout{
  margin-top: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(200,162,90,0.20);
  background: rgba(200,162,90,0.10);
  padding: 12px;
}
.callout-title{ font-weight: 900; margin-bottom: 4px; }
.callout-text{ color: rgba(255,255,255,0.72); }

/* ---------- Footer ---------- */
.site-footer{
  margin-top: 26px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: rgba(10, 11, 15, 0.62);
}
.footer-inner{
  padding: 18px 0;
  display:flex;
  flex-direction: column;          /* mobile */
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-brand{ font-weight: 900; }
.footer-note{ color: var(--muted); font-size: 12px; margin-top: 6px; }
.footer-right{ display:flex; gap: 14px; flex-wrap: wrap; }
.footer-right a{ color: var(--muted); font-size: 13px; }
.footer-right a:hover{ color: var(--gold-2); }

/* =========================================================
   BREAKPOINTS (scale up)
   ========================================================= */

/* >= 640px */
@media (min-width: 640px){
  .filter-row{ grid-template-columns: 1fr 1fr; }
  .specs{ grid-template-columns: 1fr 1fr; }
  .section-head{ flex-direction: row; align-items: baseline; justify-content: space-between; }
}

/* >= 900px */
@media (min-width: 900px){
  .header-inner{
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 0;
  }

  .nav{
    width: auto;
    background: none;
    border: none;
  }

  .nav-link{
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 8px 10px;
  }
  .nav-link:hover{ background: rgba(255,255,255,0.06); }

  .hero-inner{ grid-template-columns: 1.2fr 0.8fr; gap: 22px; }
  .search-row{ flex-direction: row; align-items: end; }
  .filter-row{ grid-template-columns: repeat(4, 1fr); }

  .detail-head{ grid-template-columns: 1.2fr 0.8fr; }
  .card-head{ flex-direction: row; align-items: center; justify-content: space-between; }

  .grid{ grid-template-columns: repeat(3, 1fr); }
  .grid-2{ grid-template-columns: 1fr 1fr; }

  .footer-inner{ flex-direction: row; align-items: flex-start; }
}