/* ==========================================================================
   The Scents - category listing
   Loaded on product/category. The product card itself lives in thumb.twig and
   is styled in dexie.css; this sheet is the shelf around it.
   ========================================================================== */

/* ---------- 1. the shelf label ------------------------------------------ */
.dx-shelf {
  padding: 8px 0 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.dx-shelf__eyebrow {
  display: block;
  font-size: 10.5px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 10px;
}
.dx-shelf__name {
  font-size: clamp(30px, 5.2vw, 52px);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  color: var(--ink);
  margin: 0;
  text-transform: uppercase;
}
.dx-shelf__note {
  max-width: 62ch;
  margin-top: 12px;
  font-size: 14px; line-height: 1.65; color: var(--ink-2);
}
.dx-shelf__note p:last-child { margin-bottom: 0; }

/* ---------- 2. the accord strip - this page's one flourish -------------- */
/* The note families read off the bottles on this shelf. It answers the only
   question a fragrance shopper has before they scroll, in the trade's own
   words, and every value in it came out of a real product description. */
.dx-accords {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0 14px;
  margin: 18px 0 0;
}
.dx-accords__label {
  font-size: 10px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.dx-accords__note {
  position: relative;
  font-size: 13px; font-weight: 650; letter-spacing: .02em;
  color: var(--ink);
  padding-right: 14px;
}
.dx-accords__note::after {
  content: "";
  position: absolute; right: 0; top: 50%;
  width: 3px; height: 3px; margin-top: -1px;
  background: var(--accent);
}
.dx-accords__note:last-child { padding-right: 0; }
.dx-accords__note:last-child::after { display: none; }

/* ---------- 3. the other shelves at this level -------------------------- */
.dx-shelves {
  /* nowrap on purpose: with wrap, a long first tab took a row to itself and
     left its accent underline stranded above the others. It scrolls instead. */
  display: flex; flex-wrap: nowrap; gap: 0;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dx-shelves::-webkit-scrollbar { display: none; }
.dx-shelves__tab {
  flex: 0 0 auto;
  padding: 15px 20px 13px;
  font-size: 12px; font-weight: 750; letter-spacing: .08em;
  text-transform: uppercase; white-space: nowrap;
  color: var(--ink-3); text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color .16s, border-color .16s;
}
.dx-shelves__tab:first-child { padding-left: 0; }
.dx-shelves__tab:hover { color: var(--ink); }
.dx-shelves__tab.is-here { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- 4. what is inside this one ---------------------------------- */
.dx-within {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px;
  margin: 0 0 26px;
}
.dx-within__label {
  font-size: 10px; font-weight: 800; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-3);
}
.dx-within__link {
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
  border-bottom: 1px solid var(--rule-2);
  padding-bottom: 1px;
  transition: color .16s, border-color .16s;
}
.dx-within__link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 5. sort and how many ---------------------------------------- */
.dx-listbar {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px;
  margin: 0 0 22px;
}
.dx-listbar__field { display: flex; align-items: center; gap: 9px; }
.dx-listbar__field label {
  margin: 0;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-3);
  white-space: nowrap;
}
.dx-listbar__field .form-select {
  width: auto; min-width: 150px;
  padding: 8px 30px 8px 11px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink);
  background-color: var(--surface);
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
}
.dx-listbar__field .form-select:focus {
  border-color: var(--ink);
  box-shadow: none;
  outline: none;
}
@media (max-width: 560px) {
  .dx-listbar { justify-content: stretch; }
  .dx-listbar__field { flex: 1 1 100%; }
  .dx-listbar__field .form-select { flex: 1 1 auto; min-width: 0; }
}

/* ---------- 6. the grid -------------------------------------------------- */
/* Deliberately not id="product-list": common.js rewrites that element's class
   on every page load, which would delete this grid. */
/* The hairline lattice is drawn by the cells, not by a grey sheet showing
   through 1px gaps. The old way worked only when the last row was full: two
   products in a four-wide row left a large grey rectangle where the two empty
   tracks were. Each cell now casts its own 1px rule and adjacent ones overlap
   into a single line, so an unfilled track is simply the page. */
.dx-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  margin-bottom: 30px;
}
@media (min-width: 760px)  { .dx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .dx-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.dx-grid__cell {
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--rule);
  min-width: 0;
  transition: background .16s;
}
.dx-grid__cell:hover { background: var(--ground); }

@media (prefers-reduced-motion: reduce) {
  .dx-shelves__tab, .dx-within__link, .dx-grid__cell { transition: none; }
}

/* ---------- 7. the stray column ------------------------------------------ */
/* The Category layout assigns opencart.category to column_left, and this
   template prints {{ column_left }} outside the content block - so it landed
   as a 279px box above the masthead. What it contains is the same tree as the
   main menu, repeated with &nbsp; indentation, and the shelf tabs above do the
   same job in context. If a category banner is ever wanted, that is a separate
   decision and a different component. */
/* !important is not optional here: the column carries Bootstrap's .d-md-block,
   and every Bootstrap display utility is itself !important. */
#product-category > #column-left,
#product-category > #column-right { display: none !important; }

/* ---------- 8. the empty shelf ------------------------------------------- */
/* Eight of the twenty-four categories have nothing in them, so this is a real
   screen, not an edge case. It offers the other shelves rather than a dead end. */
.dx-empty__links {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px;
}
.dx-empty__links a {
  padding: 9px 15px;
  border: 1px solid var(--rule-2);
  border-radius: var(--radius);
  font-size: 11.5px; font-weight: 750; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-2);
  text-decoration: none;
  transition: color .16s, border-color .16s;
}
.dx-empty__links a:hover { color: var(--accent); border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) { .dx-empty__links a { transition: none; } }
