
/* ==== Layout adjustments (keep this near top of your CSS) ==== */
:root{
  --gold: #fbb710;
  --gold-700: #d6bc63;
  --ink: #111827;
  --muted: #6b7280;
  --card-bg: #ffffff;
  --surface: #fbfbfc;
  --radius: 14px;
  --gap: 28px;
  --maxwide: 1280px;
}

/* container */
.shop-neo {
  max-width: var(--maxwide);
  margin: 28px auto;
  padding: 30px 24px 60px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--gap);
}

/* keep aside sticky but robust: use max-height so it doesn't overflow */
/* scrollbar will be hidden visually but still scrollable */
.shop-neo__aside {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto; /* keep scrolling behaviour */
  padding-right: 6px;
  -webkit-overflow-scrolling: touch;

  /* hide scrollbar but keep scroll functionality */
  scrollbar-width: none; /* Firefox */
}
.shop-neo__aside::-webkit-scrollbar { width: 0; height: 0; display: none; } /* Chrome, Safari */

/* ========== cards (unchanged but consolidated) ========== */
.neo-card {
  background: var(--card-bg);
  border: 1px solid #edf1f7;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,.05);
  margin-bottom: 16px;
  overflow: hidden;
}
.neo-card__hd { padding: 14px 16px; border-bottom: 1px solid #edf1f7; }
.neo-card__hd h6 { margin: 0; font-weight: 700; letter-spacing:.3px; color:var(--muted); font-size:.85rem; text-transform:uppercase; }
.neo-card__bd { padding: 14px 16px; display:flex; flex-direction:column; gap:10px; }

/* lists / radios */
.neo-list { list-style: none; margin: 0; padding: 0; display:flex; flex-direction:column; gap:6px; }
.neo-list li { margin: 0; }
.neo-list a { color: #555; text-decoration: none; display:inline-block; padding:6px 0; }
.neo-list li.active a { color: var(--gold); font-weight: 700; }

/* radio rows */
.neo-radio { display:flex; flex-direction:column; gap:6px; }
.neo-radio .radio { display: flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.neo-radio input { accent-color: var(--gold); }

/* colors */
.neo-colors { display: flex; flex-wrap: wrap; gap: 10px; align-items:center; }
.color-dot {
  --dot: #ccc;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid #e3e7ee;
  display: inline-block;
  background: var(--dot);
  transition: transform .12s ease, box-shadow .12s ease;
}
.color-dot:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.color-dot.active { border-color: var(--gold-700); box-shadow: 0 6px 20px rgba(214,160,23,0.08); transform:translateY(-3px); }
.color-dot.all {
  background: linear-gradient(135deg,#fff 48%, #c1c9d6 50%, #fff 52%);
  border-style: dashed;
}

/* price row */
.neo-price .price-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.neo-price .field label { display:block; font-size:.8rem; color:var(--muted); margin-bottom: 4px; }
.neo-price .field input { width:100%; border:1px solid #e4e7ee; border-radius:10px; padding:10px 12px; outline:none; background:#fff; }
.neo-price .field input:focus { border-color:var(--gold-700); box-shadow:0 0 0 4px rgba(251,183,16,.12); }
.neo-price .sep { color:#9aa3af; }
.range-text { margin-top:10px; color:var(--muted); font-size:.9rem; }

/* buttons */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; padding:10px 16px; border-radius:12px; border:none; cursor:pointer; font-weight:700; }
.btn-gold { background:var(--gold); color:#111; box-shadow: 0 6px 18px rgba(251,183,16,.22); }
.btn-gold:hover { filter:brightness(.98) }
.btn-light { background:#fff; border:1px solid #edf1f7; color:var(--ink) }
.btn-ghost { background:#fff; border:1px solid #e5e7eb }
.w-100 { width:100% }
.mt-10 { margin-top:10px }

/* switch row */
.switch-row { display:flex; align-items:center; gap:10px; user-select:none; }
.switch-row input { width:18px; height:18px; accent-color:var(--gold); }

/* topbar above grid */
.neo-topbar {
  display:flex; align-items:center; justify-content:space-between;
  padding: 4px 6px 16px; border-bottom:1px solid #edf1f7; margin-bottom:16px;
}
.neo-topbar .count { font-weight:700; letter-spacing:.3px; color:var(--muted) }
.neo-topbar .controls { display:flex; align-items:center; gap:8px; }
.neo-topbar .control { display:flex; align-items:center; gap:8px; }
.neo-topbar select { border:1px solid #e4e7ee; border-radius:10px; padding:8px 10px; outline:none; background:#fff; }
.neo-topbar select:focus { border-color:var(--gold-700); box-shadow:0 0 0 4px rgba(251,183,16,.09); }

/* catchy heading (use in HTML) */
.section-head {
  display:flex; align-items:flex-start; gap:18px; justify-content:space-between; flex-wrap:wrap; margin-bottom:18px;
}
.section-head .title { font-size:28px; font-weight:800; margin:0; letter-spacing:-0.02em; color:var(--ink) }
.section-head .subtitle { color:var(--muted); margin-top:6px; font-size:14px }

/* grid — responsive and cleaner using auto-fit */
.neo-grid {
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* product card */
.neo-card.neo-product {
  border-radius:12px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:var(--card-bg);
  border:1px solid #eef2f7;
  position:relative; /* required for stock badge */
}

/* STOCK INDICATOR (added) */
/* STOCK INDICATOR */
.stock-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  z-index: 20;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  display:inline-flex;
  align-items:center;
  white-space:nowrap;
  letter-spacing: .2px;
  background: #fee2e2;
  color: #991b1b;
}


.section-head--center {
  justify-content: center;
  text-align: center;
}

.section-head--center .title {
  font-size: 32px; /* a bit larger for emphasis */
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}


.stock-indicator.in-stock { background: #d1fae5; color: #065f46; }
.stock-indicator.out-stock { background: #fee2e2; color: #991b1b; }

/* product image area */
.neo-product__img { position:relative; display:block; width:100%; border-bottom:1px solid #edf1f7; overflow:hidden; border-radius:12px 12px 0 0; }
.neo-product__img img { width:100%; height:260px; object-fit:cover; display:block; transition: transform .45s ease, opacity .3s ease; }
.neo-product__img .img-hover { position:absolute; inset:0; opacity:0; transform:scale(1.03); transition: opacity .35s ease, transform .4s ease; }
.neo-product:hover .img-hover { opacity:1; transform:scale(1); }
.neo-product:hover .img-main { opacity:0; transform:scale(1.02); }

.neo-product__img .dot { position:absolute; right:12px; top:12px; width:14px; height:14px; border-radius:50%; background:var(--dot); border:2px solid #fff; box-shadow:0 3px 10px rgba(0,0,0,.12); }

.neo-product__meta { padding: 12px 14px 0; display:flex; align-items:center; justify-content:space-between; gap:8px; }
.neo-product__meta .price { font-weight:800; letter-spacing:.2px; color:var(--ink) }
.neo-product__meta .name { color:var(--ink); text-decoration:none; font-weight:700; font-size:15px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

.neo-product__actions { display:flex; gap:10px; padding: 12px 14px 16px; }

/* empty state */
.neo-empty { text-align:center; border:1px dashed #e5e7eb; border-radius:12px; padding:28px; grid-column:1/-1; background:#fff }

/* pager */
.neo-pager { display:flex; justify-content:flex-end; gap:8px; margin-top:18px; }
.neo-pager .page { display:inline-block; padding:8px 12px; border-radius:10px; border:1px solid #edf1f7; text-decoration:none; color:#111 }
.neo-pager .page.active { background:#111; color:#fff; border-color:#111 }

/* navbar / header styles (kept compact) */
.nav-neo { position: sticky; top: 0; z-index: 1000; background: #ffffff; border-bottom: 1px solid #edf1f7; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.nav-neo__inner { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 18px; }
.nav-neo__brand { display:inline-flex; align-items:center; gap:10px; font-weight:900; color:var(--ink); font-size:1.1rem; }

/* small screen: hide aside and show mobile controls + filter drawer */
.mobile-controls { display:none; gap:8px; align-items:center; justify-content:space-between; margin-bottom:10px; }
@media (max-width: 980px) {
  .shop-neo { display:block; padding: 18px 16px 40px; }
  .shop-neo__aside { display:none; }
  .mobile-controls { display:flex; }
  .neo-topbar { flex-direction:column; align-items:stretch; gap:12px; padding: 5px; }
  .neo-topbar .controls { width:100%; justify-content:space-between; }
}

/* filter drawer */
.filter-drawer { display:none; position:fixed; inset:0; z-index:120; }
/* keep overlay scroll hidden but panel scrollable; hide panel scrollbar visually too */
.filter-drawer.open { display:block; }
.filter-drawer .overlay { position:absolute; inset:0; background: rgba(0,0,0,0.36); }
.filter-drawer .panel {
  position:absolute; top:0; left:0; height:100%; width:92%; max-width:380px;
  background:var(--card-bg); box-shadow: 0 28px 80px rgba(0,0,0,0.32);
  padding:16px; border-radius:0 12px 12px 0; overflow:auto;
  transform: translateX(-6px); transition: transform .28s cubic-bezier(.2,.9,.25,1);
  -webkit-overflow-scrolling: touch;
}
/* hide scrollbar in panel but keep scroll */
.filter-drawer .panel { scrollbar-width: none; }
.filter-drawer .panel::-webkit-scrollbar { width:0; display:none; }
.filter-drawer.open .panel { transform: translateX(0); }

/* accessibility focus */
a:focus, button:focus, input:focus, select:focus { outline: 3px solid rgba(214,160,23,0.12); outline-offset: 2px; }

/* small touch-friendly tweaks */
@media (max-width: 560px) {
  .neo-product__img img { height:220px; }
  .neo-product__meta .name { font-size:14px }
  .section-head .title { font-size:22px }
}

/* ---- alignment improvements for filters (compact, consistent spacing) ---- */
.neo-card__bd > * { margin: 0; }
.neo-card .btn { width:100%; box-sizing:border-box; }

/* ensure filter controls stack neatly on tablet */
@media (max-width: 1200px) {
  .shop-neo { gap: 20px; grid-template-columns: 280px 1fr; padding: 22px; }
  .neo-topbar { padding-bottom:12px; }
}

/* small visual polish for stock + actions on smaller cards */
@media (max-width: 760px) {
  .stock-indicator { top:10px; left:10px; padding:5px 8px; font-size:11px; border-radius:10px; }
  .neo-product__img img { height:220px; }
  .neo-product__actions { gap:8px; padding:10px 12px; }
}

/* fallback to ensure product images not too tall on very small screens */
@media (max-width: 420px) {
  .neo-product__img img { height:180px; }
}