/* Artwork defines its own shape. Never crop or mask category images. */
:root {
  --category-surface: var(--tw-surface);
  --category-text: var(--tw-text);
  --category-muted: var(--tw-muted);
  --category-accent: var(--tw-brand);
  --category-gap: 12px;
  --category-image-size: 160px;
}
.product-categories-section { padding-block: 42px 32px; background: var(--category-surface); }
.categories-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.categories-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0;    }
.categories-heading h2::before { content: ''; width: 19px; height: 8px; flex-shrink: 0; border-radius: 8px;  }
.categories-heading p { margin: 4px 29px 0 0; font-size: 13px; color: var(--category-muted); }
.category-strip {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: space-around;
  gap: var(--category-gap);
  list-style: none;
  margin: 0;
  padding: 8px 4px 20px;
}
.category-strip > .cat-item { flex: 0 0 calc((100% - 5 * var(--category-gap)) / 6); max-width: var(--category-image-size); min-width: 0; }
.category-strip .cat-item > a { display: flex; flex-direction: column; align-items: center; gap: 15px; text-align: center; padding: 3px; color: var(--category-text); }
.category-image { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 1; }
.category-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 0;
  /* No background, clip-path, mask or cover: transparent edges remain intact. */
}
.category-name { font-size: 15px; line-height: 1.9; overflow-wrap: anywhere; }
.category-strip a:hover .category-name { color: var(--category-accent); }
@media (max-width: 767px) {
  .product-categories-section { --category-gap: 4px; padding-block: 28px 20px; }
  .product-categories-section .category-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 8px; overflow-x: visible; }
  .product-categories-section .category-strip > .cat-item { width: 100%; max-width: none; }
  .categories-heading { gap: 10px; margin-bottom: 18px; }
  .categories-heading h2 {  }
  .categories-heading p { font-size: 11px; margin-inline-start: 0; }
  .category-name { font-size: 10px; max-width: 100%; }
  .category-strip .cat-item > a { gap: 8px; padding: 0; }
}

@media(max-width:767px) { .product-categories-section { padding-block:16px 10px; } .categories-heading { margin-bottom:12px; } .category-strip { padding-bottom:8px; } }
