/* =========================================================================
   Batiself — Product/category shortcode styling (split out of custom.css).

   These blocks (availability, gallery, attributes, reviews, frequently-bought,
   child-categories) are ONLY rendered on single-product + product_cat + shop
   pages via the batiself shortcodes. Loading them site-wide (the old behaviour)
   wasted ~18 KB on every other page. Now enqueued conditionally by
   inc/product-enqueue.php + inc/category-enqueue.php + the shop archive.

   Moved verbatim from custom.css (2026-06 perf pass) — no rule changes.
   ========================================================================= */

/* =========================================================================
   LEGACY SHORTCODES — partial migration status:
     - Colors:     MIGRATED to the strict 6-color palette via tokens.
     - Typography: NOT migrated to the role system yet (still uses rem
                   font-sizes and hardcoded font-weights).
   The blocks below (availability, FBT, reviews, etc.) will be fully
   re-typed when each shortcode is itself redesigned/replaced.
   When you touch one, replace remaining raw values with:
     - font   → var(--bs-type-{role}-{prop}) from tokens.css
   ========================================================================= */

/*********************************
 PRODUCT AVAILABILITY (shortcode) — LEGACY
*********************************/

.batiself-availability {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  overflow: hidden;
  width: 100%;
}

.batiself-availability__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: var(--bs-color-primary);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.batiself-availability__row:hover {
  background-color: rgba(0, 91, 170, 0.04);
}

.batiself-availability__item + .batiself-availability__item {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.batiself-availability__icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-color-primary);
}

.batiself-availability__icon svg {
  width: 100%;
  height: 100%;
}

.batiself-availability__text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.batiself-availability__title {
  font-family: var(--bs-font-family), sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--bs-color-primary);
  line-height: 1.3;
}

.batiself-availability__desc {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--bs-font-family), sans-serif;
  font-size: 0.9rem;
  color: var(--bs-color-muted);
  line-height: 1.4;
}

.batiself-availability__desc strong {
  font-weight: 700;
  color: var(--bs-color-primary);
}

/* Status dot — palette-strict. Variants:
     .is-available  → green (stock OK at the selected store)
     .is-unavailable→ red   (stock 0)
     .is-unknown    → yellow (store chosen but stock data missing)
     .is-none       → blue  (no store chosen — info)
   The accompanying label carries the semantic; the dot is just a visual hint. */
.batiself-availability__dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--bs-color-accent);
}
.batiself-availability__dot.is-available   { background: #16a34a; }
.batiself-availability__dot.is-unavailable { background: #c82333; }
.batiself-availability__dot.is-unknown     { background: var(--bs-color-accent); }
.batiself-availability__dot.is-none        { background: var(--bs-color-primary); }

/* The first row is now a clickable BUTTON (changes the preferred store);
   reset native button styling so it looks identical to the sibling links. */
button.batiself-availability__row {
  width: 100%;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.batiself-availability__chevron {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--bs-color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.batiself-availability__chevron svg {
  width: 100%;
  height: 100%;
}

/* ---- Accordion: each row opens a panel with the available choices ------- */
.batiself-availability__chevron { transition: transform 0.22s ease; }
.batiself-availability__item.is-open > .batiself-availability__row .batiself-availability__chevron {
  transform: rotate(90deg);
}
.batiself-availability__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
  background: var(--bs-color-bg-alt);
}
.batiself-availability__item.is-open > .batiself-availability__panel {
  grid-template-rows: 1fr;
}
.batiself-availability__panel-inner { overflow: hidden; }
.batiself-availability__item.is-open > .batiself-availability__panel > .batiself-availability__panel-inner {
  padding: 2px 20px 18px 64px;   /* aligns under the row text (icon 28 + gap 16 + pad 20) */
}
.batiself-availability__panel-hint {
  margin: 0 0 10px;
  font-family: var(--bs-font-family), sans-serif;
  font-size: 0.84rem;
  color: var(--bs-color-muted);
}
.batiself-availability__stores {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.batiself-availability__store-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--bs-color-border);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.batiself-availability__store-btn:hover { border-color: var(--bs-color-primary); }
.batiself-availability__store.is-active .batiself-availability__store-btn {
  border-color: var(--bs-color-primary);
  background: rgba(0, 91, 167, 0.06);
}
.batiself-availability__store-name {
  font-family: var(--bs-font-family), sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--bs-color-primary);
}
.batiself-availability__store.is-active .batiself-availability__store-name::before {
  content: "✓ ";
  color: #16a34a;
}
.batiself-availability__store-stock {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.batiself-availability__store-stock.is-available   { color: #16a34a; }
.batiself-availability__store-stock.is-unavailable { color: #c82333; }
.batiself-availability__store-stock.is-unknown     { color: var(--bs-color-muted); }
.batiself-availability__methods {
  list-style: none;
  margin: 0;
  padding: 0;
}
.batiself-availability__methods li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  font-family: var(--bs-font-family), sans-serif;
  font-size: 0.9rem;
  color: var(--bs-color-text);
}
.batiself-availability__methods li:last-child { border-bottom: 0; }
.batiself-availability__method-price {
  flex: 0 0 auto;
  font-weight: 700;
  color: var(--bs-color-primary);
  white-space: nowrap;
}
.batiself-availability__panel-link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--bs-font-family), sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--bs-color-primary);
  text-decoration: underline;
}


/*********************************
 PRODUCT GALLERY (shortcode)
*********************************/

.batiself-product-gallery {
  display: grid;
  grid-template-columns: 96px minmax(300px, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.batiself-product-gallery__thumbs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batiself-product-gallery__thumb {
  margin: 0;
  padding: 0;
  background: #fff;
  border: 2px solid transparent;
  border-radius: 0;
  cursor: pointer;
  overflow: hidden;
  width: 96px;
  height: 96px;
  transition: border-color 0.2s ease;
}

.batiself-product-gallery__thumb:hover {
  border-color: rgba(0, 91, 170, 0.4);
}

.batiself-product-gallery__thumb.is-active {
  border-color: var(--bs-color-accent);
}

.batiself-product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.batiself-product-gallery__main {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
}

/* Desktop: the track fills the square box; only the active slide is shown
   (cross-fade), the thumbnails switch it. */
.batiself-product-gallery__track { position: absolute; inset: 0; }
.batiself-product-gallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity .25s ease;
}
.batiself-product-gallery__slide.is-active { opacity: 1; }

@media (max-width: 767px) {
  .batiself-product-gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
  }

  .batiself-product-gallery__thumbs {
    grid-row: 2;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .batiself-product-gallery__main {
    grid-row: 1;
  }

  .batiself-product-gallery__thumb {
    width: 72px;
    height: 72px;
  }

  /* Mobile: the main becomes a native swipe carousel of all images. */
  .batiself-product-gallery__track {
    position: static;
    display: flex;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .batiself-product-gallery__track::-webkit-scrollbar { display: none; }
  .batiself-product-gallery__slide {
    position: static;
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    opacity: 1;                /* all visible — the swipe is the navigation */
    scroll-snap-align: center;
  }
}

.batiself-attributes {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.batiself-attributes__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: #fff;
}

.batiself-attributes__row.is-tinted {
  background: rgba(0, 91, 167, 0.15);
}

.batiself-attributes__label {
  font-weight: 600;
  color: var(--bs-color-text);
}

.batiself-attributes__value {
  font-weight: 400;
  color: var(--bs-color-text);
}

@media (max-width: 600px) {
  .batiself-attributes__row {
    padding: 12px 16px;
    gap: 12px;
  }
}


/*********************************
 PRODUCT REVIEWS (shortcode)
*********************************/

.batiself-reviews {
  --reviews-blue: var(--bs-color-primary);
  --reviews-gold: var(--bs-color-accent);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  width: 100%;
  font-family: var(--bs-font-family), sans-serif;
  color: var(--bs-color-text);
}

.batiself-reviews__divider {
  width: 1px;
  background: rgba(0, 0, 0, 0.15);
}

.batiself-reviews__summary {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.batiself-reviews__heading {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.batiself-reviews__title {
  margin: 0;
  font-family: var(--bs-font-family), sans-serif;
  letter-spacing: var(--bs-tracking-normal);
  color: var(--reviews-blue);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1;
}

.batiself-reviews__title span {
  font-weight: 400;
}

.batiself-reviews__title strong {
  font-weight: 800;
}

.batiself-reviews__global {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.batiself-reviews__stars {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--reviews-blue);
}

.batiself-reviews__star {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.batiself-reviews__total {
  font-family: var(--bs-font-family), sans-serif;
  font-size: 1rem;
  color: var(--reviews-blue);
}

.batiself-reviews__breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batiself-reviews__bar-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 16px;
}

.batiself-reviews__bar-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--reviews-blue);
  font-weight: 600;
  font-size: 1rem;
}

.batiself-reviews__bar-label .batiself-reviews__star {
  width: 18px;
  height: 18px;
}

.batiself-reviews__bar-track {
  position: relative;
  width: 100%;
  height: 14px;
  border: 1px solid var(--reviews-gold);
  background: transparent;
  overflow: hidden;
}

.batiself-reviews__bar-fill {
  display: block;
  height: 100%;
  background: var(--reviews-gold);
}

.batiself-reviews__bar-count {
  text-align: left;
  font-size: 1rem;
  color: var(--bs-color-text);
}

.batiself-reviews__slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.batiself-reviews__swiper {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.batiself-reviews__slide {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
}

.batiself-reviews__slide-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.batiself-reviews__author {
  font-weight: 700;
  color: var(--bs-color-text);
  font-size: 1rem;
}

.batiself-reviews__slide-head .batiself-reviews__star {
  width: 18px;
  height: 18px;
}

.batiself-reviews__slide-title {
  margin: 0;
  font-family: var(--bs-font-family), sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--bs-color-text);
}

.batiself-reviews__slide-text {
  margin: 0;
  font-family: var(--bs-font-family), sans-serif;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--bs-color-muted);
}

.batiself-reviews__nav {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--reviews-blue);
  background: transparent;
  color: var(--reviews-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
  padding: 0;
}

.batiself-reviews__nav:hover {
  background: var(--reviews-blue);
  color: #fff;
}

.batiself-reviews__nav svg {
  width: 18px;
  height: 18px;
}

.batiself-reviews__nav.swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ---- Google variant (.batiself-reviews--google) ---- */
.batiself-reviews__google {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--bs-color-text);
}
.batiself-reviews__google svg { display: block; }
.batiself-reviews__google-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--bs-color-bg-alt);
  border: 1px solid var(--bs-color-border);
}
.batiself-reviews__google-note {
  margin: 0;
  color: var(--bs-color-muted);
  font-size: 0.95rem;
}
.batiself-reviews__slide-date {
  display: block;
  margin-top: -4px;
  color: var(--bs-color-muted);
  font-size: 0.8rem;
}

/* Google block: no per-star count → 2-column bars (label + track). */
.batiself-reviews--google .batiself-reviews__bar-row {
  grid-template-columns: 56px minmax(0, 1fr);
}

/* "Laisser un avis" CTA — white Google-style button (colored G reads on white). */
.batiself-reviews__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 22px;
  background: #fff;
  border: 1px solid var(--bs-color-border);
  border-radius: 999px;
  color: var(--bs-color-primary);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.batiself-reviews__cta:hover {
  border-color: var(--bs-color-primary);
  background: var(--bs-color-bg-alt);
}

/* Home: the section already shows a standard .home-section__title, so hide the
   block's own "AVIS CLIENTS" sub-heading there (avoid a duplicate title). */
.home-reviews .batiself-reviews__title { display: none; }

@media (max-width: 900px) {
  .batiself-reviews {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .batiself-reviews__divider {
    width: 100%;
    height: 1px;
  }
}


/*********************************
 FREQUENTLY BOUGHT TOGETHER (shortcode)
*********************************/

.batiself-fbt {
  --fbt-blue: var(--bs-color-primary);
  --fbt-gold: var(--bs-color-accent);
  display: flex;
  align-items: stretch;
  gap: 32px;
  width: 100%;
  font-family: var(--bs-font-family), sans-serif;
  color: var(--bs-color-text);
}

.batiself-fbt__list {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
}

.batiself-fbt__card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.batiself-fbt__card-image-link {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.batiself-fbt__card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.batiself-fbt__card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.batiself-fbt__card-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 20px 16px;
  flex: 1 1 auto;
}

.batiself-fbt__card-infos {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.batiself-fbt__card-title {
  display: block;
  min-width: 0;
  font-family: var(--bs-font-family), sans-serif;
  font-size: var(--bs-text-base);
  font-weight: var(--bs-weight-medium);
  line-height: var(--bs-leading-normal);
  letter-spacing: var(--bs-tracking-normal);
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batiself-fbt__card-title a {
  display: block;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.batiself-fbt__card-brand {
  font-family: var(--bs-font-family), sans-serif;
  font-size: calc(var(--bs-text-base) * 0.7);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: var(--bs-tracking-normal);
  color: #000;
}

.batiself-fbt__card-price {
  font-family: var(--bs-font-family), sans-serif;
  font-size: var(--bs-text-sm);
  font-weight: var(--bs-weight-bold);
  text-transform: uppercase;
  line-height: var(--bs-leading-snug);
  letter-spacing: var(--bs-tracking-wide);
  color: #000;
  margin-top: 4px;
}

.batiself-fbt__card-price .woocommerce-Price-amount {
  color: inherit;
}

.batiself-fbt__card-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--fbt-blue);
}

.batiself-fbt__stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--fbt-blue);
}

.batiself-fbt__star {
  width: 14px;
  height: 14px;
}

.batiself-fbt__rating-count {
  font-size: 0.8rem;
  color: var(--bs-color-muted);
}

.batiself-fbt__variants {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--bs-color-text);
  text-decoration: none;
}

.batiself-fbt__variants svg {
  width: 16px;
  height: 16px;
}

.batiself-fbt__variants:hover {
  text-decoration: underline;
}

.batiself-fbt__cart-btn {
  display: block;
  text-align: center;
  background: var(--fbt-blue);
  color: #fff;
  text-decoration: none;
  padding: 16px;
  font-weight: 600;
  font-size: 1rem;
  transition: opacity 0.2s ease;
}

.batiself-fbt__cart-btn:hover {
  opacity: 0.92;
  color: #fff;
}

.batiself-fbt__sep {
  flex: 0 0 auto;
  align-self: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--fbt-gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
}

.batiself-fbt__sep--equals {
  margin: 0 16px;
}

.batiself-fbt__total {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 8px 0;
}

.batiself-fbt__total-label {
  font-family: var(--bs-font-family), sans-serif;
  font-size: var(--bs-text-base);
  font-weight: var(--bs-weight-regular);
  line-height: var(--bs-leading-normal);
  letter-spacing: var(--bs-tracking-normal);
  color: var(--bs-color-text);
}

.batiself-fbt__total-amount {
  font-family: var(--bs-font-family), sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  color: var(--bs-color-text);
  line-height: 1;
  white-space: nowrap;
}

.batiself-fbt__total-amount .woocommerce-Price-amount,
.batiself-fbt__total-amount bdi {
  white-space: nowrap;
  display: inline;
}

.batiself-fbt__total-amount .woocommerce-Price-amount {
  color: inherit;
}

.batiself-fbt__total-btn {
  display: inline-block;
  text-align: center;
  background: var(--fbt-blue);
  color: #fff;
  text-decoration: none;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 1rem;
  margin-top: 16px;
  transition: opacity 0.2s ease;
}

.batiself-fbt__total-btn:hover {
  opacity: 0.92;
  color: #fff;
}

@media (max-width: 1100px) {
  .batiself-fbt {
    flex-direction: column;
    gap: 24px;
  }

  .batiself-fbt__total {
    flex: 1 1 auto;
    width: 100%;
  }
}

@media (max-width: 700px) {
  .batiself-fbt__list {
    flex-direction: column;
  }

  .batiself-fbt__sep--equals {
    margin: 0;
  }
}


/*********************************
 CHILD CATEGORIES (shortcode)
*********************************/

.batiself-child-cats { 
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  width: 100%;
  grid-template-columns: repeat(var(--cc-cols, 7), minmax(0, 1fr));
}

.batiself-child-cats--cols-1 { --cc-cols: 1; }
.batiself-child-cats--cols-2 { --cc-cols: 2; }
.batiself-child-cats--cols-3 { --cc-cols: 3; }
.batiself-child-cats--cols-4 { --cc-cols: 4; }
.batiself-child-cats--cols-5 { --cc-cols: 5; }
.batiself-child-cats--cols-6 { --cc-cols: 6; }
.batiself-child-cats--cols-7 { --cc-cols: 7; }
.batiself-child-cats--cols-8 { --cc-cols: 8; }

.batiself-child-cats__item {
  margin: 0;
  padding: 0;
}

.batiself-child-cats__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 0.75rem;
  background: var(--bs-color-bg-alt);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.batiself-child-cats__link:hover {
  background: var(--bs-color-bg-alt);
}

.batiself-child-cats__media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.batiself-child-cats__img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  display: block;
} 

.batiself-child-cats__body {
  flex: 0 0 auto;
  display: flex; 
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  width: 100%;
}

.batiself-child-cats__name {
  font-family: var(--bs-font-family), sans-serif;
  font-size: calc(var(--bs-text-base) * 0.85);
  font-weight: var(--bs-weight-medium);
  line-height: var(--bs-leading-normal);
  letter-spacing: var(--bs-tracking-normal);
  color: #000; 
}

.batiself-child-cats__count {
  font-family: var(--bs-font-family), sans-serif;
  font-size: 0.85rem;
  color: var(--bs-color-muted);
}

@media (max-width: 1300px) {
  .batiself-child-cats--cols-7,
  .batiself-child-cats--cols-8 {
    --cc-cols: 6;
  }
}

@media (max-width: 1100px) {
  .batiself-child-cats--cols-5,
  .batiself-child-cats--cols-6,
  .batiself-child-cats--cols-7,
  .batiself-child-cats--cols-8 {
    --cc-cols: 5;
  }
} 
 
@media (max-width: 900px) {
  .batiself-child-cats {
    --cc-cols: 4 !important;
  }
}

@media (max-width: 700px) {
  .batiself-child-cats {
    --cc-cols: 3 !important;
  }
}

@media (max-width: 480px) {
  .batiself-child-cats {
    --cc-cols: 2 !important;
  }
}

@media (max-width: 540px) {
  .batiself-child-cats {
    --cc-cols: 2 !important;
  }
}