/* ===========================================================
   Shop by Category — carousel module (redesign)
   =========================================================== */
#categories { padding-top: 0; }
.cat-module {
  position: relative;
  z-index: 5;
  margin-top: -90px;
  background: #fff;
  border-radius: 28px;
  padding: 26px 28px 22px;
  box-shadow: 0 18px 42px rgba(69,49,31,0.12);
  border: 1px solid rgba(31,74,58,0.05);
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.cat-module-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.cat-eyebrow {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 800; color: var(--green);
}
.cat-module-head h2 {
  font: 500 30px 'Cormorant Garamond', serif;
  margin: 4px 0 3px;
}
.cat-module-head p { margin: 0; color: var(--ink-dim); font-size: 11px; }
.cat-controls { display: flex; align-items: center; gap: 7px; flex: none; }
.cat-browse { color: var(--green); font-size: 11px; font-weight: 800; margin-right: 8px; }
.cat-arrow {
  width: 32px; height: 32px; border: 1px solid var(--line);
  background: #fff; color: var(--green); border-radius: 50%;
  cursor: pointer; transition: 0.2s;
}
.cat-arrow:hover { background: var(--green); color: #fff; }
.cat-viewport { overflow: hidden; position: relative; }
.cat-track {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-behavior: smooth; scrollbar-width: none;
  padding: 3px 2px 8px; scroll-snap-type: x mandatory;
}
.cat-track::-webkit-scrollbar { display: none; }
.cat-tile {
  flex: 0 0 calc((100% - 48px) / 5);
  min-width: 150px;
  scroll-snap-align: start;
  text-decoration: none; color: var(--ink);
  border: 1px solid transparent; border-radius: 18px;
  padding: 8px; background: #fff; transition: 0.25s; display: block;
}
.cat-tile:hover, .cat-tile.active {
  border-color: #dcd0c3;
  box-shadow: 0 9px 22px rgba(31,74,58,0.09);
  transform: translateY(-3px);
}
.cat-tile-img {
  aspect-ratio: 1.18; border-radius: 13px; overflow: hidden;
  background: var(--cream); position: relative;
  display: grid; place-items: center;
}
.cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.35s; }
.cat-tile:hover .cat-tile-img img, .cat-tile.active .cat-tile-img img { transform: scale(1.05); }
.cat-tile-empty { font-size: 40px; color: var(--gold-2); font-family: 'Cormorant Garamond', serif; }
.cat-tile-copy {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 9px 3px 3px;
}
.cat-tile-copy strong { font-size: 12px; white-space: nowrap; }
.cat-tile-copy span { font-size: 8px; color: var(--ink-dim); white-space: nowrap; }
.cat-selected {
  margin-top: 12px; border-radius: 16px; background: var(--cream);
  padding: 13px 16px; display: flex; align-items: center;
  justify-content: space-between; gap: 15px;
}
.cat-selected-label { color: var(--green); font-size: 8px; font-weight: 800; letter-spacing: 1.4px; }
.cat-selected h3 { margin: 2px 0 1px; font-size: 18px; font-family: 'Cormorant Garamond', serif; }
.cat-selected p { margin: 0; color: var(--ink-dim); font-size: 10px; }
.cat-selected-btn {
  flex: none; background: var(--green); color: #fff;
  border-radius: 999px; padding: 10px 14px; font-size: 10px; font-weight: 800;
}
.cat-selected-btn:hover { background: var(--green-2); }

@media (max-width: 900px) {
  /* Below 900px the hero switches to its compact mobile layout (see style.css
     "MOBILE HERO" blocks) with content anchored to the bottom. -46px cut
     ~20px into the visible trust-row pill; -26px clears it while keeping
     the card floating up over the hero's bottom edge. */
  .cat-module {
    margin-top: -26px;
    width: calc(100% - 18px); margin-left: auto; margin-right: auto;
    padding: 20px 16px 17px; border-radius: 20px 20px 22px 22px;
  }
  .cat-tile { flex-basis: calc((100% - 24px) / 3); }
  .cat-module-head { align-items: center; margin-bottom: 13px; }
  .cat-module-head h2 { font-size: 25px; }
  .cat-module-head p { font-size: 9px; }
  .cat-browse { font-size: 10px; margin-right: 0; }
  .cat-arrow { display: none; }
}
@media (max-width: 800px) {
  .cat-tile { flex-basis: calc((100% - 10px) / 2); min-width: 145px; border-radius: 16px; }
  .cat-track { gap: 10px; padding-bottom: 6px; }
  .cat-tile-copy { display: block; }
  .cat-tile-copy strong { display: block; font-size: 11px; }
  .cat-tile-copy span { display: block; margin-top: 2px; }
  .cat-selected { padding: 12px; }
  .cat-selected h3 { font-size: 17px; }
  .cat-selected p { font-size: 9px; max-width: 230px; }
  .cat-selected-btn { font-size: 9px; padding: 9px 11px; }
}
@media (max-width: 500px) {
  .cat-module { padding: 18px 12px 14px; }
  .cat-module-head h2 { font-size: 23px; }
  .cat-module-head p { display: none; }
  .cat-tile { flex-basis: calc((100% - 10px) / 2); min-width: 135px; }
  .cat-tile-img { aspect-ratio: 1.12; }
  .cat-selected { align-items: flex-start; }
  .cat-selected p { max-width: 180px; }
}
