/* BCSHP Premium Products Slider v10.25.50.11.
   Typography is deliberately left to the existing YOOtheme/WooCommerce theme.
   Opt-in: Products > Advanced > Classes: lazy-render bcshp-products-slider.
   No rules are applied to product lists that do not opt in. */
.bcshp-products-slider {
  --bcshp-ps-gap: 14px;
  --bcshp-ps-cols: 5;
  --bcshp-ps-bg: #15191c;
  --bcshp-ps-red: #f1393e;
  min-width: 0;
}
/* Container queries honor actual Products block width, including the YOOtheme editor sidebar. */
.bcshp-products-slider:not(ul):not(ol):not(.uk-grid):not([uk-grid]):not([data-uk-grid]) {
  container: bcshp-product-area / inline-size;
}
/* Fallback before JS for non-wrapper roots and older browsers. */
@media (max-width: 1199px) { .bcshp-products-slider { --bcshp-ps-cols: 4; } }
@media (max-width: 959px) { .bcshp-products-slider { --bcshp-ps-cols: 3; --bcshp-ps-gap: 12px; } }
@media (max-width: 639px) { .bcshp-products-slider { --bcshp-ps-cols: 2; --bcshp-ps-gap: 10px; } }
@media (max-width: 349px) { .bcshp-products-slider { --bcshp-ps-cols: 1.45; } }
@container bcshp-product-area (min-width: 990px) {
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products, .uk-grid, [uk-grid], [data-uk-grid]) { --bcshp-ps-cols: 5; --bcshp-ps-gap: 14px; }
}
@container bcshp-product-area (min-width: 750px) and (max-width: 989.98px) {
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products, .uk-grid, [uk-grid], [data-uk-grid]) { --bcshp-ps-cols: 4; --bcshp-ps-gap: 14px; }
}
@container bcshp-product-area (min-width: 560px) and (max-width: 749.98px) {
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products, .uk-grid, [uk-grid], [data-uk-grid]) { --bcshp-ps-cols: 3; --bcshp-ps-gap: 12px; }
}
@container bcshp-product-area (min-width: 330px) and (max-width: 559.98px) {
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products, .uk-grid, [uk-grid], [data-uk-grid]) { --bcshp-ps-cols: 2; --bcshp-ps-gap: 10px; }
}
@container bcshp-product-area (max-width: 329.98px) {
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products, .uk-grid, [uk-grid], [data-uk-grid]) { --bcshp-ps-cols: 1.45; --bcshp-ps-gap: 10px; }
}
/* Preflight selectors prevent 2-row flash even when FlyingPress defers JS.
   CSS selectors never escape the explicit opt-in wrapper. */
:is(
  .bcshp-products-slider:is(ul.products, ol.products, .uk-grid, [uk-grid], [data-uk-grid]),
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .price),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .woocommerce-Price-amount),
  .bcshp-products-slider-track[data-bcshp-products-track="1"]
) {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
  gap: var(--bcshp-ps-gap) !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.bcshp-products-slider-track[data-bcshp-products-track="1"]::-webkit-scrollbar { display: none; }
:is(
  .bcshp-products-slider:is(ul.products, ol.products, .uk-grid, [uk-grid], [data-uk-grid]),
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .price),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .woocommerce-Price-amount),
  .bcshp-products-slider-track[data-bcshp-products-track="1"]
) > * {
  display: flex !important;
  flex-direction: column;
  position: relative;
  float: none !important;
  clear: none !important;
  box-sizing: border-box !important;
  flex: 0 0 calc((100% - (var(--bcshp-ps-cols) - 1) * var(--bcshp-ps-gap)) / var(--bcshp-ps-cols)) !important;
  width: calc((100% - (var(--bcshp-ps-cols) - 1) * var(--bcshp-ps-gap)) / var(--bcshp-ps-cols)) !important;
  min-width: 0 !important;
  max-width: calc((100% - (var(--bcshp-ps-cols) - 1) * var(--bcshp-ps-gap)) / var(--bcshp-ps-cols)) !important;
  margin: 0 !important;
  padding: 0 0 14px !important;
  scroll-snap-align: start;
  background: var(--bcshp-ps-bg) !important;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 13px;
  overflow: hidden;
}
/* Suppress UIkit card's secondary surface, preserving its native content layout. */
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * > .uk-card {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
/* Covers occupy the entire width, never clip photos or force pixel sizing. */
:is(
  .bcshp-products-slider:is(ul.products, ol.products, .uk-grid, [uk-grid], [data-uk-grid]),
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .price),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .woocommerce-Price-amount),
  .bcshp-products-slider-track[data-bcshp-products-track="1"]
) > * :is(
  .uk-card-media-top, .uk-card-media, .uk-card-media-top > a, .uk-card-media > a,
  .uk-cover-container, .woocommerce-LoopProduct-link, .woocommerce-loop-product__link,
  .wc-block-grid__product-image, .product-image, .product-thumbnail,
  .product-image > a, .product-thumbnail > a, picture, figure
) {
  box-sizing: border-box !important;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto;
  margin-inline: auto;
}
:is(
  .bcshp-products-slider:is(ul.products, ol.products, .uk-grid, [uk-grid], [data-uk-grid]),
  .bcshp-products-slider :is(ul.products, ol.products, .wc-block-grid__products),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .price),
  .bcshp-products-slider :is(.uk-grid, [uk-grid], [data-uk-grid]):has(> :nth-child(3) .woocommerce-Price-amount),
  .bcshp-products-slider-track[data-bcshp-products-track="1"]
) > * :is(
  img.wp-post-image, img.attachment-woocommerce_thumbnail, img.woocommerce-placeholder,
  .wc-block-grid__product-image img, .uk-card-media-top img, .uk-card-media img,
  .uk-cover-container img, .product-image img, .product-thumbnail img,
  a > img:first-child, picture > img, figure > img
) {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: contain !important;
  object-position: center !important;
  margin: 0 auto !important;
}
/* Keep product typography EXACTLY as the site's native YOOtheme/WooCommerce
   rendering: no font-family, font-size, font-weight, line-height, letter-spacing,
   capitalization, color, text clipping or title-margin overrides. Existing theme
   typography remains authoritative on desktop and mobile. The min-width rule
   only prevents a flex item with a long product name from overflowing a card. */
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * :is(.woocommerce-loop-product__title, .uk-card-title, .wc-block-grid__product-title, .el-title) {
  min-width: 0;
}
/* Spacing/layout only: do not style the font or text of product information. */
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * > :is(.woocommerce-loop-product__title, .uk-card-title, .price, .star-rating, .woocommerce-product-rating, .button, a.button, .added_to_cart) {
  margin-left: 11px;
  margin-right: 11px;
}
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * :is(.uk-card-body) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 11px !important;
  min-width: 0;
}
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * .uk-card-body > :last-child { margin-top: auto; }
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * :is(.uk-card-body, .uk-card-footer) :is(.uk-button, .button, a.button) {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
}
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * > :is(a.button, button.button, .add_to_cart_button) {
  margin-top: auto !important;
  align-self: flex-start;
  max-width: calc(100% - 22px);
  box-sizing: border-box;
  white-space: normal;
}
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * :is(a.button, button.button, .uk-button) {
  border-radius: 24px;
  transition: background-color .16s ease, border-color .16s ease;
}
.bcshp-products-slider-track[data-bcshp-products-track="1"] > * > .uk-card-footer { flex-shrink: 0; }
.bcshp-products-slider-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 40px;
  gap: 9px;
  margin: 0 0 10px;
  box-sizing: border-box;
}
.bcshp-products-slider-controls[hidden], .bcshp-products-slider-dots[hidden] { display: none !important; }
.bcshp-products-slider-counter { font-family: inherit; margin-inline-end: 2px; font-size: 12px; font-weight: 600; line-height: 1.4; font-variant-numeric: tabular-nums; color: #dedfe3; white-space: nowrap; }
.bcshp-products-slider-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 35px;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.23);
  border-radius: 50%;
  background: #262b30;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  appearance: none;
  transition: background-color .16s ease, border-color .16s ease;
}
.bcshp-products-slider-arrow:not(:disabled):hover { background: #d52531; border-color: #ff4b4b; }
.bcshp-products-slider-arrow:disabled { opacity: .36; cursor: default; }
.bcshp-products-slider-arrow:focus-visible, .bcshp-products-slider-dot:focus-visible { outline: 2px solid #ffd700; outline-offset: 3px; }
.bcshp-products-slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  min-height: 25px;
  width: 100%;
  gap: 7px;
  margin: 9px 0 3px;
}
.bcshp-products-slider-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #343b40;
  cursor: pointer;
  appearance: none;
  transition: background-color .16s ease, transform .16s ease;
}
.bcshp-products-slider-dot[aria-current="true"] { background: #f03b3e; transform: scale(1.12); }
.bcshp-products-slider-dot:not([aria-current="true"]):hover { background: #737b81; }
@media (hover: hover) and (pointer: fine) {
  .bcshp-products-slider-track[data-bcshp-products-track="1"] > * { transition: border-color .16s ease; }
  .bcshp-products-slider-track[data-bcshp-products-track="1"] > *:hover { border-color: rgba(255,255,255,.18); }
}
@media (max-width: 639px) {
  .bcshp-products-slider-controls { min-height: 36px; margin-bottom: 8px; }
  .bcshp-products-slider-arrow { width: 32px; height: 32px; flex-basis: 32px; }
  .bcshp-products-slider-track[data-bcshp-products-track="1"] > * :is(.uk-button, .button, a.button) { padding: 7px 9px; }
}
@media (prefers-reduced-motion: reduce) {
  .bcshp-products-slider-arrow, .bcshp-products-slider-dot, .bcshp-products-slider-track[data-bcshp-products-track="1"] > * { transition: none !important; }
  .bcshp-products-slider-track[data-bcshp-products-track="1"] { scroll-behavior: auto !important; }
}
