/* ============================================================
   PickVU Design System v2.0 — Big-Box E-commerce (Amazon-style)
   Light theme / dense info / high trust / conversion-first
   Palette: header #131921 · nav #232f3e · body #EAEDED
            link #007185 · star #DE7921 · cta #FFD814 · prime #067D62
   ============================================================ */

:root {
  --hd: #131921;
  --hd2: #232f3e;
  --body: #EAEDED;
  --card: #ffffff;
  --card-2: #f7f8f8;
  --border: #d5d9d9;
  --border-2: #e3e6e6;
  --text: #0f1111;
  --text-2: #565959;
  --text-3: #8a8f8f;
  --link: #007185;
  --link-hover: #c7511f;
  --star: #de7921;
  --cta: #FFD814;
  --cta-hover: #F7CA00;
  --cta-2: #FFA41C;
  --prime: #067D62;
  --deal-red: #CC0C39;
  --badge-bs: #C45500;
  --badge-choice: #1F6E8C;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 100px;
  --sh-1: 0 1px 2px rgba(15,17,17,.08);
  --sh-2: 0 4px 12px rgba(15,17,17,.12);
  --sh-3: 0 8px 24px rgba(15,17,17,.16);
  --font: "Inter", "Amazon Ember", -apple-system, "Segoe UI", Arial, sans-serif;
  --header-h: 60px;
  --nav-h: 38px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--body);
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.45;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }
::selection { background: #ffd81499; }

/* ================= TOP HEADER (bar 1) ================= */
.hd1 {
  background: var(--hd);
  color: #fff;
}
.hd1-in {
  display: flex; align-items: center; gap: 12px;
  height: var(--header-h);
  padding: 0 20px;
  width: 100%;
}
.hd-logo {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border: 1px solid transparent; border-radius: var(--r-sm);
}
.hd-logo:hover { border-color: #fff; text-decoration: none; }
.hd-logo img { width: 34px; height: 34px; }
.hd-logo .b { font-size: 21px; font-weight: 800; color: #fff; letter-spacing: -.5px; }
.hd-logo .b em { font-style: normal; color: var(--cta); }
.hd-loc {
  display: flex; align-items: flex-end; gap: 4px;
  padding: 8px 10px; border: 1px solid transparent; border-radius: var(--r-sm);
  color: #fff; line-height: 1.2;
}
.hd-loc:hover { border-color: #fff; text-decoration: none; }
.hd-loc .ic { font-size: 17px; }
.hd-loc .t { font-size: 11px; color: #ccc; }
.hd-loc .v { font-size: 13px; font-weight: 700; }
/* search */
.hd-search-wrap { position: relative; flex: 1 1 auto; display: flex; min-width: 260px; }
.hd-search {
  flex: 1; height: 42px;
  display: flex;
  border-radius: var(--r-sm); overflow: hidden;
  background: #fff;
}
.hd-search:focus-within {
  box-shadow: 0 0 0 3px rgba(255,162,28,.7);
  border-radius: var(--r-sm);
}
.hd-search select {
  border: 0; border-right: 1px solid #cdcdcd;
  background: #E6E6E6; color: var(--text);
  font-size: 12px; padding: 0 6px; max-width: 110px;
  outline: none; cursor: pointer;
}
.hd-search input {
  flex: 1; border: 0; outline: none; padding: 0 14px;
  font-size: 15px; color: var(--text); min-width: 60px;
}
.hd-search input::placeholder { color: #888; }
.hd-search button {
  width: 48px; background: var(--cta-2); display: grid; place-items: center;
  transition: background .15s;
}
.hd-search button:hover { background: #ff9414; }
.hd-act {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
}
.hd-act > a, .hd-act > div {
  color: #fff; padding: 9px 10px; border: 1px solid transparent;
  border-radius: var(--r-sm); line-height: 1.2; white-space: nowrap;
}
.hd-act > a:hover, .hd-act > div:hover { border-color: #fff; text-decoration: none; }
.hd-act .t { font-size: 11px; color: #ccc; }
.hd-act .v { font-size: 13px; font-weight: 700; }
.hd-flag { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.hd-flag select {
  background: transparent; color: #fff; border: 0; font-size: 13px;
  font-weight: 700; outline: none; cursor: pointer;
}
.hd-flag select option { color: var(--text); }
.hd-cart { display: flex; align-items: center; gap: 6px; }
.hd-cart .n {
  position: relative; font-size: 22px;
}
.hd-cart .c {
  position: absolute; top: -4px; left: 12px;
  color: var(--cta); font-size: 15px; font-weight: 800;
}

/* search suggest dropdown */
.sugg {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: #fff; color: var(--text);
  border-radius: var(--r-sm); box-shadow: var(--sh-3);
  max-height: 380px; overflow-y: auto; display: none; z-index: 300;
}
.sugg.on { display: block; }
.sugg-it {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; cursor: pointer;
}
.sugg-it:hover { background: #f0f2f2; }
.sugg-it img { width: 44px; height: 44px; object-fit: contain; }
.sugg-it .t { flex: 1; font-size: 13px; color: var(--text); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.sugg-it .p { font-size: 13px; font-weight: 700; color: var(--text); }
.sugg-it .s { font-size: 11px; color: var(--prime); }

/* ================= NAV (bar 2) ================= */
.hd2 { background: var(--hd2); }
.hd2-in {
  display: flex; align-items: center; gap: 2px;
  width: 100%; padding: 0 14px;
  overflow-x: auto; scrollbar-width: none;
}
.hd2-in::-webkit-scrollbar { display: none; }
.hd2 a, .hd2 button {
  color: #fff; font-size: 13.5px; font-weight: 500;
  padding: 9px 12px; border: 1px solid transparent;
  border-radius: var(--r-sm); white-space: nowrap;
}
.hd2 a:hover, .hd2 button:hover {
  border-color: #fff; text-decoration: none;
}
.hd2 .all { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.hd2 .deal { color: #febd69; font-weight: 700; }
.hd2 .spacer { flex: 1; }
.hd2 .promo { font-size: 13px; color: #fff; }

/* ================= HERO BANNER ================= */
.hero {
  position: relative;
  background: linear-gradient(180deg, #cfe8ff 0%, #e8f4ff 55%, var(--body) 100%);
  padding: 28px 0 66px;
}
.hero-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; width: 100%; padding: 0 20px;
}
.hero-card {
  background: var(--card); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--sh-1);
  display: flex; flex-direction: column; gap: 10px; min-height: 150px;
}
.hero-card h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.hero-card .sub { color: var(--text-2); font-size: 13px; }
.hero-card .tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto;
}
.hero-card .tiles a {
  text-align: center; font-size: 11.5px; color: var(--text-2);
}
.hero-card .tiles img { width: 100%; height: 78px; object-fit: contain; margin-bottom: 4px; }
.hero-card .lnk { margin-top: auto; font-size: 13px; }
.hero-stats {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  width: 100%; margin: 18px 0 0; padding: 0 20px;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--border-2);
  border-radius: var(--r-pill); padding: 6px 14px;
  font-size: 12.5px; font-weight: 600; color: var(--text-2);
  box-shadow: var(--sh-1);
}
.chip b { color: var(--text); font-weight: 800; }

/* ================= SECTION SHELL ================= */
.sect { width: 100%; margin: 18px 0; padding: 0 20px; }
.sect-hd {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 2px 12px;
}
.sect-hd h2 { font-size: 21px; font-weight: 800; color: var(--text); }
.sect-hd .see { font-size: 13px; }
.sect-hd .count { font-size: 12.5px; color: var(--text-3); }

/* ================= CATEGORY GRID ================= */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--sh-1); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: block;
}
.cat-card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); text-decoration: none; }
.cat-card .ci {
  height: 104px; display: grid; place-items: center;
  background: linear-gradient(160deg, #ffffff 0%, #f2f7fa 100%);
  color: #14606b;
}
.cat-card .ci .cat-ic { width: 44px; height: 44px; }
.cat-card:hover .ci { color: #0b4650; }
.cat-card .cb { padding: 10px 12px 14px; }
.cat-card .cn { font-size: 13px; font-weight: 700; color: var(--text); }
.cat-card .cc { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* hero quick-icon tiles */
.hero-ic {
  text-align: center; padding: 8px 4px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 10.5px; line-height: 1.3;
}
.hero-ic:hover { background: #f0f4f6; text-decoration: none; color: var(--text); }
.hero-ic .cat-ic { width: 34px; height: 34px; margin: 0 auto 6px; color: #14606b; }
.hero-ic span { display: block; }

/* directory department tiles */
.dept-hero {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 18px 20px; margin-bottom: 16px;
}
.dept-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 8px 12px; border-radius: var(--r-md);
  border: 1px solid transparent;
}
.dept-tile:hover { background: #f2f7fa; border-color: var(--border-2);
  text-decoration: none; }
.dept-tile .cat-ic { width: 40px; height: 40px; color: #14606b; }
.dept-tile .dt-n { font-size: 12px; font-weight: 700; color: var(--text);
  text-align: center; line-height: 1.3; }

/* ================= PRODUCT GRID & CARD ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}
.pc {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--sh-1); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .2s;
  position: relative;
}
.pc:hover { box-shadow: var(--sh-2); }
.pc-img {
  padding: 18px; display: grid; place-items: center;
  height: 210px; background: #fff;
}
.pc-img img {
  max-height: 100%; max-width: 100%; object-fit: contain;
  transition: transform .25s;
}
.pc:hover .pc-img img { transform: scale(1.04); }
.pc-badge { position: absolute; top: 10px; left: 10px; display: flex;
  flex-direction: column; gap: 4px; align-items: flex-start; z-index: 2; }
.bdg {
  font-size: 11px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 8px; border-radius: var(--r-sm); color: #fff;
  box-shadow: var(--sh-1);
}
.bdg.bs { background: var(--badge-bs); }
.bdg.choice { background: var(--badge-choice); }
.bdg.deal { background: var(--deal-red); }
.bdg.bought { background: #fff; color: var(--prime); border: 1px solid var(--prime); }
.pc-bd { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-t {
  font-size: 13px; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.pc-t:hover { color: var(--link-hover); }
.pc-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.stars { color: var(--star); font-size: 13px; letter-spacing: 1px; }
.rc { font-size: 12px; color: var(--link); }
.bsr { font-size: 11px; color: var(--text-3); }
.pc-price { margin-top: auto; display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.pc-price .cur { font-size: 20px; font-weight: 800; color: var(--text); }
.pc-price .old { font-size: 12.5px; color: var(--text-3); text-decoration: line-through; }
.pc-price .off { font-size: 12px; font-weight: 800; color: var(--deal-red); }
.pc-ship { font-size: 11.5px; color: var(--prime); font-weight: 600; }
.pc-cta {
  margin-top: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--cta); color: var(--text);
  font-size: 13px; font-weight: 700;
  border-radius: var(--r-pill); padding: 9px 14px;
  transition: background .15s;
  border: 1px solid #FCD200;
}
.pc-cta:hover { background: var(--cta-hover); text-decoration: none; color: var(--text); }
.brand-line { font-size: 12px; color: var(--text-2); }
.brand-line a { font-size: 12px; }

/* ================= LIST LAYOUT (filters + results) ================= */
.list-wrap {
  display: grid; grid-template-columns: 230px 1fr; gap: 16px;
  width: 100%; padding: 0 20px 24px;
  align-items: start;
}
.filters {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 16px;
  position: sticky; top: calc(var(--header-h) + var(--nav-h) + 10px);
}
.filters h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.filters .grp { border-top: 1px solid var(--border-2); padding: 12px 0; }
.filters .grp h4 { font-size: 13px; font-weight: 800; margin-bottom: 8px; }
.filters .grp a {
  display: block; font-size: 12.5px; padding: 4px 0; color: var(--text);
}
.filters .grp a:hover { color: var(--link-hover); }
.filters .grp a.on { color: var(--link); font-weight: 700; }
.result-bar {
  background: var(--card); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 10px 16px;
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  flex-wrap: wrap;
}
.result-bar .rt { font-size: 14px; }
.result-bar .rt b { font-weight: 800; }
.result-bar select {
  margin-left: auto; padding: 7px 10px; font-size: 13px;
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: #f0f2f2; cursor: pointer; outline: none;
}

/* ================= DETAIL PAGE ================= */
.dp-wrap {
  display: grid;
  grid-template-columns: 44px minmax(0,1fr) minmax(0,1.15fr) 320px;
  gap: 18px;
  width: 100%; padding: 18px 20px;
  align-items: start;
}
.dp-thumbs { display: flex; flex-direction: column; gap: 8px; }
.dp-thumbs img {
  width: 40px; height: 40px; object-fit: contain;
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  padding: 2px; cursor: pointer;
}
.dp-thumbs img.on, .dp-thumbs img:hover { border: 2px solid var(--cta-2); padding: 1px; }
.dp-main {
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1);
  padding: 24px; display: grid; place-items: center; min-height: 420px;
}
.dp-main img { max-height: 420px; object-fit: contain; }
.dp-info { padding: 4px 0; }
.dp-info h1 { font-size: 20px; font-weight: 500; line-height: 1.35; margin-bottom: 8px; }
.dp-brand { font-size: 13px; margin-bottom: 6px; }
.dp-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border-2); }
.dp-rating .stars { font-size: 16px; }
.dp-rating a { font-size: 13px; }
.dp-rating .bought { font-size: 12.5px; color: var(--prime); font-weight: 600; margin-left: 4px; }
.dp-price-row { font-size: 26px; font-weight: 500; margin: 10px 0 2px; }
.dp-price-row .sm { font-size: 13px; vertical-align: top; }
.dp-price-old { font-size: 13px; color: var(--text-3); }
.dp-price-old s { font-size: 13px; }
.dp-price-old .off { color: var(--deal-red); font-weight: 800; }
.dp-box {
  background: var(--card); border-radius: var(--r-md); box-shadow: var(--sh-1);
  padding: 18px; position: sticky; top: calc(var(--header-h) + var(--nav-h) + 10px);
}
.dp-box .pr { font-size: 26px; font-weight: 500; margin-bottom: 4px; }
.dp-box .pr .sm { font-size: 13px; vertical-align: top; }
.dp-box .ship { font-size: 12.5px; color: var(--text-2); margin-bottom: 12px; }
.dp-box .ship b { color: var(--text); }
.dp-box .stock { font-size: 16px; color: var(--prime); font-weight: 700; margin-bottom: 12px; }
.btn-cta {
  display: block; width: 100%;
  background: var(--cta); border: 1px solid #FCD200;
  border-radius: var(--r-pill); padding: 10px;
  font-size: 14px; font-weight: 700; color: var(--text);
  margin-bottom: 8px; transition: background .15s; text-align: center;
}
.btn-cta:hover { background: var(--cta-hover); text-decoration: none; color: var(--text); }
.btn-buy {
  display: block; width: 100%;
  background: var(--cta-2); border: 1px solid #ff8f00;
  border-radius: var(--r-pill); padding: 10px;
  font-size: 14px; font-weight: 700; color: var(--text);
  transition: background .15s; text-align: center;
}
.btn-buy:hover { background: #ff9414; text-decoration: none; color: var(--text); }
.dp-box .safe { font-size: 11.5px; color: var(--text-3); text-align: center; margin-top: 10px; }
.dp-desc { border-top: 1px solid var(--border-2); margin-top: 8px; padding-top: 12px; }
.dp-desc h3 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.dp-desc p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.crumbs { width: 100%; padding: 12px 22px 0;
  font-size: 12.5px; color: var(--text-2); }
.crumbs a { font-size: 12.5px; }
.crumbs .sep { color: var(--text-3); margin: 0 5px; }

/* ================= FOOTER ================= */
.backtop {
  background: var(--hd2); color: #fff; text-align: center;
  padding: 14px; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s;
}
.backtop:hover { background: #37475a; }
.ft1 { background: #232f3e; color: #fff; padding: 40px 16px; }
.ft1-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; width: 100%; padding: 0 20px;
}
.ft1 h4 { font-size: 15px; font-weight: 800; margin-bottom: 12px; color: #fff; }
.ft1 a { display: block; color: #ddd; font-size: 13px; padding: 4px 0; }
.ft1 a:hover { color: #fff; text-decoration: underline; }
.ft2 { background: #131A22; padding: 26px 16px; }
.ft2-in { width: 100%; padding: 0 20px; }
.ft2 .logo { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 14px; }
.ft2 .logo em { font-style: normal; color: var(--cta); }
.ft2 .disc { color: #999; font-size: 12px; line-height: 1.6; width: 100%; }
.ft2 .cr { color: #ddd; font-size: 12px; margin-top: 14px; }
.ft-lang { margin: 16px 0 8px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.ft-lang a {
  color: #ddd; font-size: 12px; border: 1px solid #3a4553;
  padding: 6px 12px; border-radius: var(--r-sm);
}
.ft-lang a:hover { border-color: #fff; color: #fff; text-decoration: none; }

/* ================= PAGINATION ================= */
.pager { display: flex; justify-content: center; gap: 6px; padding: 28px 0; }
.pager a, .pager span {
  min-width: 40px; height: 40px; display: grid; place-items: center;
  padding: 0 12px; border-radius: var(--r-sm);
  background: #fff; box-shadow: var(--sh-1);
  font-size: 13.5px; color: var(--link); border: 1px solid var(--border-2);
}
.pager a:hover { border-color: var(--cta-2); color: var(--link-hover); text-decoration: none; }
.pager .cur { background: #fff; color: var(--text); font-weight: 800;
  border: 1px solid var(--cta-2); }
.pager .dots { border: none; box-shadow: none; background: transparent; }

/* ================= CAROUSEL ROWS ================= */
.row-sect { padding: 0 20px; margin: 14px 0; }
.row-head {
  display: flex; align-items: baseline; gap: 14px;
  padding: 8px 2px 10px;
}
.row-head h2 { font-size: 20px; font-weight: 800; }
.row-head .see { font-size: 13px; }
.row-arrows { margin-left: auto; display: flex; gap: 6px; align-self: center; }
.row-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  background: #fff; box-shadow: var(--sh-2);
  font-size: 20px; line-height: 1; color: var(--text);
  display: grid; place-items: center; border: 1px solid var(--border-2);
}
.row-arrow:hover { background: #f0f2f2; }
.row-arrow:active { transform: scale(.94); }
.row-track {
  display: flex; gap: 10px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 8px;
}
.row-track::-webkit-scrollbar { display: none; }
.row-track .pc {
  flex: 0 0 205px; scroll-snap-align: start;
}
.row-track .pc-img { height: 165px; padding: 12px; }

/* mini cards (JS-rendered rows) */
.mcard {
  flex: 0 0 175px; scroll-snap-align: start;
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-1);
  padding: 12px; display: flex; flex-direction: column; gap: 6px;
}
.mcard:hover { box-shadow: var(--sh-2); text-decoration: none; }
.mcard img { height: 140px; width: 100%; object-fit: contain; }
.mc-t { font-size: 12px; color: var(--text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.mc-p { font-size: 16px; font-weight: 800; }
.mc-s { font-size: 11px; }
.mc-s .stars { color: var(--star); }
.mc-s .rc { color: var(--link); }

/* ================= ALL-DEPARTMENTS DRAWER ================= */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15,17,17,.65);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 400;
}
.drawer-mask.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 365px; max-width: 88vw;
  background: #fff; z-index: 401;
  transform: translateX(-102%); transition: transform .28s ease;
  display: flex; flex-direction: column;
  box-shadow: var(--sh-3);
}
.drawer.on { transform: translateX(0); }
.drawer-top {
  background: var(--hd2); color: #fff;
  padding: 15px 20px; display: flex; align-items: center;
  justify-content: space-between; font-size: 17px; font-weight: 800;
}
.drawer-x { color: #fff; font-size: 16px; padding: 4px 8px; }
.drawer-x:hover { background: rgba(255,255,255,.15); border-radius: var(--r-sm); }
.drawer-scroll { overflow-y: auto; flex: 1; padding-bottom: 30px; }
.drawer-sec { border-bottom: 1px solid var(--border-2); padding: 10px 0; }
.drawer-sec h3 {
  font-size: 16px; font-weight: 800; color: var(--text);
  padding: 8px 20px 6px;
}
.drawer-sec > a, .drawer-item summary {
  display: block; padding: 9px 20px;
  font-size: 14px; color: var(--text); cursor: pointer;
}
.drawer-sec > a:hover, .drawer-item summary:hover { background: #eaeded; }
.drawer-item summary { list-style: none; display: flex; justify-content: space-between; }
.drawer-item summary::after { content: '›'; color: var(--text-3); }
.drawer-item[open] summary::after { content: '⌄'; }
.drawer-subs { background: #f7f8f8; padding: 6px 0; }
.drawer-subs a {
  display: block; padding: 7px 20px 7px 32px; font-size: 13px; color: var(--text);
}
.drawer-subs a:hover { background: #eaeded; }
.drawer-all {
  display: block; padding: 12px 20px; font-weight: 800; font-size: 14px;
  color: var(--text);
}

/* ================= DIRECTORY PAGE ================= */
.dir-wrap {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 28px; background: #fff; border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 22px 24px;
}
.dir-col { padding: 10px 0 18px; }
.dir-root {
  display: block; font-size: 14.5px; font-weight: 800; color: var(--text);
  padding: 4px 0;
}
.dir-root:hover { color: var(--link-hover); }
.dir-n { color: var(--text-3); font-weight: 400; font-size: 12px; }
.dir-sub { display: block; font-size: 13px; padding: 3px 0 3px 10px;
  color: var(--text-2); }
.dir-sub:hover { color: var(--link-hover); }
.dir-more { display: block; font-size: 13px; padding: 5px 0 0 10px;
  font-weight: 700; }

/* ================= MISC ================= */
.empty { text-align: center; padding: 70px 20px; }
.empty .ic { font-size: 44px; opacity: .6; margin-bottom: 10px; }
.empty p { color: var(--text-2); }
.sk { background: linear-gradient(90deg,#f0f2f2 25%,#e3e6e6 50%,#f0f2f2 75%);
  background-size: 200px 100%; animation: skw 1.4s infinite; border-radius: var(--r-md); }
@keyframes skw { 0%{background-position:-200px 0} 100%{background-position:200px 0} }

/* ================= ADMIN (light) ================= */
.adm { display: flex; min-height: 100vh; background: var(--body); }
.adm-side {
  width: 230px; background: #fff; border-right: 1px solid var(--border-2);
  padding: 16px 0; flex-shrink: 0;
}
.adm-side .lg { padding: 8px 20px 16px; font-weight: 800; font-size: 16px; }
.adm-side a {
  display: block; padding: 11px 20px; font-size: 13.5px; color: var(--text);
}
.adm-side a:hover, .adm-side a.on {
  background: #eaf5fb; color: var(--link); text-decoration: none;
  border-left: 3px solid var(--link);
}
.adm-main { flex: 1; padding: 24px; width: 100%; }
.adm-card {
  background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-1);
  padding: 22px; margin-bottom: 16px;
}
.adm-card h3 { font-size: 16px; font-weight: 800; margin-bottom: 14px; }
.adm-stat { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 12px; margin-bottom: 16px; }
.adm-stat .adm-card .num { font-size: 26px; font-weight: 800; color: var(--link); }
.adm-stat .adm-card .lb { font-size: 12.5px; color: var(--text-2); }
.adm-form label { display: block; font-size: 12.5px; font-weight: 700;
  color: var(--text-2); margin-bottom: 5px; }
.adm-form input {
  width: 100%; max-width: 420px; padding: 9px 12px; font-size: 13.5px;
  border: 1px solid var(--border); border-radius: var(--r-sm); outline: none;
}
.adm-form input:focus { border-color: var(--cta-2);
  box-shadow: 0 0 0 3px rgba(255,162,28,.35); }
.adm-form .row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-form .row > div { flex: 1; min-width: 200px; }
.btn-p {
  background: #ffd814; border: 1px solid #fcd200; border-radius: var(--r-pill);
  padding: 9px 22px; font-weight: 700; font-size: 13px;
}
.btn-p:hover { background: #f7ca00; }
.adm table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm th { text-align: left; color: var(--text-2); font-size: 12px;
  border-bottom: 1px solid var(--border-2); padding: 8px; }
.adm td { border-bottom: 1px solid var(--border-2); padding: 8px; }
.login-box {
  width: 360px; margin: 0 auto; background: #fff;
  border-radius: var(--r-md); box-shadow: var(--sh-2); padding: 26px;
}
.login-page { display: grid; place-items: center; min-height: 100vh; background: var(--body); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1500px) {
  /* dp: fold thumb rail on mid screens */
  .dp-wrap { grid-template-columns: minmax(0,1fr) minmax(0,1.1fr) 300px; }
  .dp-thumbs {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap;
    position: static; order: -1;
  }
  .dp-main { grid-column: 1; }
  .dp-info { grid-column: 2; }
  .dp-box { grid-column: 3; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: repeat(2, 1fr); }
  .ft1-grid { grid-template-columns: repeat(2, 1fr); }
  .dp-wrap { grid-template-columns: 1fr; }
  .dp-main, .dp-info, .dp-box { grid-column: auto; }
  .dp-thumbs { flex-direction: row; overflow-x: auto; }
  .dp-box { position: static; }
  .dept-hero { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
}
@media (max-width: 900px) {
  .list-wrap { grid-template-columns: 1fr; }
  .filters {
    position: static; display: flex; gap: 0; overflow-x: auto;
    padding: 8px 6px; scrollbar-width: none;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filters h3 { display: none; }
  .filters .grp {
    border-top: none; border-right: 1px solid var(--border-2);
    padding: 4px 14px; min-width: 170px; flex: 0 0 auto;
  }
  .filters .grp h4 { margin-bottom: 4px; }
}
@media (max-width: 768px) {
  .hd1-in { flex-wrap: wrap; height: auto; padding: 8px 10px; gap: 6px; }
  .hd-search-wrap { order: 3; flex-basis: 100%; max-width: none; }
  .hd-loc, .hd-act .t { display: none; }
  .hd-act { gap: 0; margin-left: 0; }
  .hd-act > a { padding: 9px 7px; }
  .hd2-in a, .hd2-in button { padding: 8px 9px; font-size: 12.5px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 12px 0 36px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 8px; }
  .pc-img { height: 140px; padding: 10px; }
  .pc-price .cur { font-size: 16px; }
  .pc-cta { padding: 7px 10px; font-size: 12px; }
  .sect-hd h2, .row-head h2 { font-size: 17px; }
  .row-track .pc { flex: 0 0 160px; }
  .row-track .pc-img { height: 120px; }
  .mcard { flex: 0 0 148px; }
  .mcard img { height: 120px; }
  .drawer { width: 88vw; }
  .dept-hero { grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 10px; }
  .dept-tile { min-width: 0; padding: 10px 4px 8px; }
  .dept-tile .cat-ic { width: 30px; height: 30px; }
  .dept-tile .dt-n { font-size: 10px; overflow-wrap: anywhere; }
  .result-bar { padding: 8px 10px; }
  .crumbs { overflow-x: auto; white-space: nowrap; }
  .pager a, .pager span { min-width: 34px; height: 34px; padding: 0 9px; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card .ci { height: 74px; }
  .cat-card .ci .cat-ic { width: 34px; height: 34px; }
  .ft1-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 8px; }
  .chip { font-size: 11px; padding: 5px 10px; }
}
