/* Final card layout: media, preview copy, and controls each retain their own space. */
.bs-shop-theme .featured-products-section .featured-card .product-info {
  display: grid !important;
  grid-template-rows: minmax(0,1fr) auto !important;
  align-content: stretch !important;
  justify-content: stretch !important;
  min-width: 0 !important;
}
.bs-shop-theme .featured-products-section .featured-card .product-details {
  align-self: end;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  overflow: hidden;
}
.bs-shop-theme .featured-products-section .featured-card .product-title {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.17 !important;
  max-height: 2.34em;
}
.bs-shop-theme .featured-products-section .featured-card .product-subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 2px 0 0 !important;
  line-height: 1.2 !important;
}
.bs-shop-theme .featured-products-section .featured-card .product-bottom-row {
  align-self: end;
  min-width: 0;
  width: 100%;
}
.bs-shop-theme .featured-products-section .featured-card .price-box { min-width: 0; max-width: 100%; }
.bs-shop-theme .featured-products-section .featured-card .current-price,
.bs-shop-theme .featured-products-section .featured-card .old-price {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bs-shop-theme .featured-products-section .featured-card .bs-variant-picker {
  box-sizing: border-box;
  max-height: 32px;
  max-width: calc(100% - 16px);
  z-index: 5;
}
.bs-shop-theme .featured-products-section .featured-card .discount-badge {
  max-width: calc(100% - 16px);
  box-sizing: border-box;
  white-space: nowrap;
}
/* Variant choices follow the card in the carousel item, above the position dots. */
.bs-shop-theme .featured-products-section .featured-card-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch;
  box-sizing: border-box;
}
.bs-shop-theme .featured-products-section .featured-card-link > .bs-variant-picker {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 31px;
  margin: 10px 0 5px;
  padding: 3px 2px;
  border-radius: 0;
  background: transparent;
}
.bs-shop-theme .featured-products-section .featured-card-link > .bs-variant-scroll-meter {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 52px;
  height: 3px;
  margin: 0 auto 12px;
  border-radius: 3px;
  background: #625e5a;
}
.bs-shop-theme .featured-products-section .featured-card-link > .bs-variant-scroll-meter[hidden] { display: none !important; }
.bs-shop-theme .featured-products-section .bs-variant-scroll-thumb {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: #f58220;
  box-shadow: 0 0 5px rgba(245,130,32,.45);
  transition: left .08s linear;
}
.bs-shop-theme .featured-slider-wrapper .bs-scroll-indicator {
  margin-top: 14px !important;
}
.bs-shop-theme .mobile-brand-row .brand-tile { min-width: 0; box-sizing: border-box; padding-inline: 5px; overflow-wrap: anywhere; }
.bs-shop-theme .mobile-trust-panel > div > p { min-width: 0; }
@media (max-width: 768px) {
  .bs-shop-theme .categories-section .category-card::before {
    background: linear-gradient(90deg, transparent 0%, transparent 48%, rgba(21,20,19,.87) 57%, #171717 100%) !important;
  }
  .bs-shop-theme .categories-section .category-mobile-copy {
    left: auto !important;
    right: 0 !important;
    width: 44% !important;
    height: 100% !important;
    padding: clamp(4px,1.4vw,9px) clamp(5px,1.6vw,10px) !important;
    box-sizing: border-box;
    overflow: hidden;
    gap: clamp(1px,.4vw,4px);
    justify-content: center !important;
    align-items: flex-start !important;
  }
  .bs-shop-theme .categories-section .category-mobile-copy h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    max-width: 100%;
    overflow: hidden;
    margin: 0 !important;
    font-size: clamp(9px,2.75vw,11.4px) !important;
    line-height: 1.13 !important;
    overflow-wrap: anywhere;
  }
  .bs-shop-theme .categories-section .category-mobile-copy p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    overflow: hidden;
    margin: 0 !important;
    font-size: clamp(7px,2.05vw,8.16px) !important;
    line-height: 1.18 !important;
    overflow-wrap: anywhere;
  }
  .bs-shop-theme .featured-products-section .featured-card .product-info { padding: 8px !important; }
  .bs-shop-theme .featured-products-section .featured-card .product-bottom-row { margin-top: 5px !important; }
  .bs-shop-theme .best-sellers-section .featured-card .best-seller-cart {
    box-sizing: border-box;
    width: min(92px,100%) !important;
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
  }
  .bs-shop-theme .best-sellers-section .featured-card .best-seller-cart .cart-icon { flex-basis: 24px; }
  .bs-shop-theme .best-sellers-section .featured-card .best-seller-cart .cart-text {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    font-size: clamp(6px,2vw,8px) !important;
  }
  .bs-shop-theme .mobile-promo-card .mobile-promo-copy {
    position: absolute !important;
    z-index: 2;
    top: 14px !important;
    right: 10px !important;
    bottom: 14px !important;
    left: 12px !important;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: 0 !important;
  }
  .bs-shop-theme .mobile-promo-card .mobile-promo-copy h3 { flex: none; margin: 0 0 9px !important; line-height: 1.08 !important; }
  .bs-shop-theme .mobile-promo-card .mobile-promo-copy p { margin: 0 !important; overflow-wrap: anywhere; }
  .bs-shop-theme .mobile-promo-card .mobile-promo-copy span {
    align-self: flex-start;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: auto !important;
    white-space: normal;
    text-align: center;
  }
}
