/* Departments share one photographic rail and a single selection rule. */
.department-section .categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(8px, 1.4vw, 22px);
  padding: 0;
  margin: 0;
  border-bottom: 1px solid #444447;
}
.categories .category {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  min-width: 0;
  min-height: 0;
  padding: 5px 2px 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  color: #dcdbd8;
  background: transparent;
  text-align: center;
  transition: color .16s, border-color .16s;
}
.categories .category::before, .categories .category::after { content: none; }
.categories .category:hover { color: white; border-bottom-color: #787779; }
.categories .category[aria-pressed="true"] {
  color: #fff;
  border-bottom-color: #f04e5d;
  background: transparent;
}
.categories .category:focus-visible { outline-offset: -3px; }
.category .category-label {
  align-self: auto;
  font-family: 'Instrument Sans', 'DM Sans', sans-serif;
  line-height: 1.2;
  font-size: clamp(.875rem, 1.2vw, 1.06rem);
  font-weight: 600;
  letter-spacing: -.025em;
}
.categories .category .category-count { color: #b4b2b1; font-size: .8125rem; font-weight: 400; }
.category .department-photo {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(100%, 130px);
  height: 62px;
  margin-bottom: 6px;
}
.department-photo::before {
  content: '';
  position: absolute;
  inset: 12% 0 -6%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 73%, #908b8040, transparent 69%);
}
.department-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 2px 3px #0007);
}
.department-collection img { position: absolute; bottom: 0; width: 45%; height: 82%; }
.department-collection img:nth-child(1) { left: 2%; height: 100%; }
.department-collection img:nth-child(2) { right: 0; bottom: 9%; width: 65%; }
.department-collection img:nth-child(3) { left: 29%; height: 63%; width: 38%; }

/* Product media use the Black Friday backdrop defined by .photo. */
.catalog .products { gap: 30px clamp(14px, 1.6vw, 25px); }
.products .p-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}
.p-card .photo-link { display: block; border-radius: 13px; }
.p-card .photo:not(.missing-media) {
  height: auto;
  aspect-ratio: 1.18;
  border: 0;
  border-radius: 13px;
}
.p-card .photo img {
  padding: clamp(15px, 1.45vw, 24px) clamp(14px, 1.5vw, 25px);
  transition: transform .22s ease;
}
.p-card .series-photo {
  left: 8px;
  bottom: 7px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #151617ed;
  color: #eeeef1;
  font-size: .75rem;
  line-height: 1.2;
}
.products .p-body { padding: 13px 2px 0; }
.p-card .product-meta { gap: 3px 8px; margin: 0 0 5px; flex-wrap: wrap; align-items: baseline; }
.p-card .brand { font-size: .75rem; color: #f2b6ac; font-weight: 700; letter-spacing: .065em; }
.p-card .sku-summary { font-size: .75rem; color: #b6b4b2; font-variant-numeric: tabular-nums; }
.p-card .product-name { font-size: clamp(1rem, 1.35vw, 1.25rem); line-height: 1.24; letter-spacing: -.025em; }
.p-card .product-name, .p-card .price { font-family: 'Instrument Sans', 'DM Sans', sans-serif; }
.p-card .feature { color: #c0bfbb; margin-top: 5px; line-height: 1.42; }
.p-card .price-row { padding-top: 16px; column-gap: 9px; }
.p-card .price { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-variant-numeric: lining-nums; }
.p-card .price-row del { color: #b5b4b6; font-size: .8125rem; }
.p-card .big-saving { color: #e9d99f; }
.p-card .card-actions { margin-top: 10px; }
.p-card .wa-card, .p-card .add-card { min-height: 44px; border-radius: 8px; }
.p-card .add-card { border-color: #555457; background: transparent; }
.p-card .variant-select { border-radius: 7px; color: #f6f5f2; font-size: 1rem; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .p-card .photo-link:hover img { transform: scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  .department-section .category, .p-card .photo img { transition: none; }
}

@media (max-width: 700px) {
  .department-section .categories {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #5b5856 transparent;
  }
  .department-section .categories::-webkit-scrollbar { display: block; height: 3px; }
  .department-section .categories::-webkit-scrollbar-thumb { background: #5b5856; }
  .categories .category {
    flex: 1 0 clamp(85px, 21vw, 105px);
    scroll-snap-align: start;
    padding: 3px 2px 9px;
  }
  .category .department-photo { width: min(100%, 79px); height: 43px; margin-bottom: 4px; }
  .category .category-label { font-size: .875rem; white-space: nowrap; }
  .categories .category .category-count { display: none; }
}
@media (max-width: 650px) {
  .catalog .products { gap: 25px 12px; }
  .p-card .photo-link, .p-card .photo:not(.missing-media) { border-radius: 10px; }
  .p-card .photo:not(.missing-media) { aspect-ratio: 1; }
  .p-card .photo img { padding: 12px 10px; }
  .products .p-body { padding: 10px 0 0; }
  .p-card .product-meta { align-items: baseline; justify-content: flex-start; column-gap: 5px; }
  .p-card .feature { font-size: .8125rem; }
  .p-card .price-row { padding-top: 12px; row-gap: 3px; }
  .p-card .wa-card, .p-card .add-card { min-height: 46px; }
}
@media (max-width: 359px) {
  .p-card .photo:not(.missing-media) { aspect-ratio: 1.45; }
}
