/* Design 3 — tall pictures with a count (home-jewelry.html ~1826-1929: bare
 * <section>, .sect-heading.type-2.text-center, .category-v06.hover-img4).
 * Measured in styles.css: the section itself carries no padding utility (0
 * both sides — the heading's own margin is the only space above the slider);
 * portrait image 338x445, radius 16px, a white caption chip bottom-inline-
 * start 12px (mirrors in Arabic: styles.css has a literal
 * ".rtl .category-v06:not(.style-2) .cate-content" flip we get for free from
 * inset-inline-start); name h5 (clamp 22-24px/28-30px, fw 500); hover: image
 * scales 1.1 and a diagonal glare sweeps across (.hover-img4), name turns
 * var(--primary) (.link:hover).
 */
.mt-section.amer-category-carousel--d3 { padding-block: var(--mt-space-top, 0px) var(--mt-space-bottom, 0px); }
@media (max-width: 767px) {
  .mt-section.amer-category-carousel--d3 { padding-block: var(--mt-space-top-mobile, var(--mt-space-top, 0px)) var(--mt-space-bottom-mobile, var(--mt-space-bottom, 0px)); }
}

.amer-category-carousel--d3 .amer-cat-tile--portrait { position: relative; display: block; }
.amer-category-carousel--d3 .amer-cat-tile__media {
  position: relative;
  display: flex;
  aspect-ratio: 338 / 445;
  overflow: hidden;
  color: inherit;
  /* The template's own geometry (16px), not the look's recolourable
     --amer-radius-card: home-jewelry's picture radius stays 16px in every
     look, only the palette changes. */
  border-radius: 16px;
}
.amer-category-carousel--d3 .amer-cat-tile__media img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: all 1s; }
.amer-category-carousel--d3 .amer-cat-tile__media::after {
  content: "";
  position: absolute;
  inline-size: 200%;
  block-size: 0;
  inset-inline-start: 50%;
  inset-block-start: 50%;
  background-color: rgba(255, 255, 255, .3);
  transform: translate(-50%, -50%) rotate(-45deg);
  z-index: 1;
  pointer-events: none;
}
.amer-category-carousel--d3 .amer-cat-tile--portrait:hover .amer-cat-tile__media img { transform: scale(1.1); }
/* .hover-img4:hover .img-style4:after carries the 600ms transition on the
   hover state only: the glare sweeps in, and snaps back when the pointer
   leaves (no reverse sweep). */
.amer-category-carousel--d3 .amer-cat-tile--portrait:hover .amer-cat-tile__media::after { block-size: 250%; background-color: transparent; transition: all .6s linear; }
/* Keyboard focus on the name (the picture link is tabindex -1) shows the
   tile's hover. Own rules: a browser without :has() drops only these. */
.amer-category-carousel--d3 .amer-cat-tile--portrait:has(:focus-visible) .amer-cat-tile__media img { transform: scale(1.1); }
.amer-category-carousel--d3 .amer-cat-tile--portrait:has(:focus-visible) .amer-cat-tile__media::after { block-size: 250%; background-color: transparent; transition: all .6s linear; }
.amer-category-carousel--d3 .amer-cat-tile__caption {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-end: 12px;
  max-inline-size: calc(100% - 24px);
  padding-block: 12px;
  padding-inline: 20px;
  border-radius: 8px;
  background: var(--amer-bg);
  text-align: start;
}
.amer-category-carousel--d3 .amer-cat-tile__name {
  display: inline-block;
  margin-block-end: 4px;
  font-family: var(--amer-font-heading);
  font-weight: var(--amer-fw-heading);
  font-size: clamp(22px, 3vw, 24px);
  line-height: clamp(28px, 3.5vw, 30px);
  color: var(--amer-heading);
  transition: all .3s ease; /* .link */
}
.amer-category-carousel--d3 .amer-cat-tile__name:hover,
.amer-category-carousel--d3 .amer-cat-tile__name:focus-visible { color: var(--amer-accent); }
.amer-category-carousel--d3 .amer-cat-tile__count {
  display: block;
  font-size: var(--amer-fs-body);
  line-height: 1.625;
  color: var(--amer-muted);
}
/* The template's .tf-swiper .tf-sw-pagination gets margin-top:20px; the
   shared .amer-dots default (24px, core.css) is close but not exact.
   Swiper's own bullet margin (0 4px) puts 8px between two bullets, which is
   the shared .amer-dots gap; a margin of our own would now space them 32px
   apart (core.css's bullets are 24px boxes to tap since 2026-10-13). */
.amer-category-carousel--d3 .amer-dots { margin-block-start: 20px; }

/* .sect-heading.type-2 in the template's own type: .s-title is an h3
   (line-height clamp(36px, 4.5vw, 48px), not 1.2 x the size) and .s-desc is
   body text (16px/26px; 14px/22px up to 575px), not the 18px lead. */
/* .s-title is a full-width block with its own 8px margin under it (kept
   even when there is no description), not a gap in a shrink-wrapped grid. */
.amer-category-carousel--d3 .amer-head__main { inline-size: 100%; gap: 0; justify-items: stretch; }
.amer-category-carousel--d3 .amer-head__title { line-height: clamp(36px, 4.5vw, 48px); margin-block-end: 8px; }
.amer-category-carousel--d3 .amer-head__text { font-size: var(--amer-fs-body); line-height: 26px; }
@media (max-width: 575px) { .amer-category-carousel--d3 .amer-head__text { font-size: 14px; line-height: 22px; } }
