/* AHS Woo Product Slider */
.ahs-product-slider{
  --ahs-gap: 18px;
  --ahs-radius: 18px;
  --ahs-card-bg: #f5f3f1;
  --ahs-text: #111111;
  --ahs-muted: #68749a;
  --ahs-arrow-size: 46px;
  width: 100%;
  position: relative;
  color: var(--ahs-text);
  box-sizing: border-box;
}

.ahs-product-slider *,
.ahs-product-slider *::before,
.ahs-product-slider *::after{
  box-sizing: border-box;
}

.ahs-slider-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:48px;
}

.ahs-slider-title{
  margin:0;
  font:inherit;
  font-size:var(--ahs-heading-size, 40px);
  line-height:1.05;
  font-weight:400;
  color:inherit;
  letter-spacing:-0.02em;
}

.ahs-slider-subtitle{
  margin-top:22px;
  font-size:var(--ahs-subtitle-size, 18px);
  line-height:1.4;
  color:var(--ahs-muted);
}

.ahs-slider-arrows{
  display:flex;
  align-items:center;
  gap:12px;
}

.ahs-arrow{
  width:var(--ahs-arrow-size, 46px);
  height:var(--ahs-arrow-size, 46px);
  min-width:var(--ahs-arrow-size, 46px);
  min-height:var(--ahs-arrow-size, 46px);
  border-radius:999px;
  border:0;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:var(--ahs-arrow-icon-size, 14px);
  line-height:1;
  cursor:pointer;
  box-shadow:none;
  transition:transform .18s ease, opacity .18s ease;
  flex-shrink:0;
}

.ahs-arrow:hover{
  transform:translateY(-1px);
}

.ahs-prev,
.ahs-next{
  background:#111111;
  color:#ffffff;
}

.ahs-arrow:disabled{
  background:#b0b0b0;
  color:#ffffff;
  opacity:1;
  cursor:not-allowed;
  transform:none;
}

.ahs-slider-viewport{
  width:100%;
  overflow:hidden;
}

.ahs-slider-track{
  display:flex;
  gap:var(--ahs-gap);
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  -ms-overflow-style:none;
  scroll-behavior:smooth;
  overscroll-behavior-inline:contain;
}

.ahs-slider-track::-webkit-scrollbar{ display:none; }

.ahs-product-card{
  flex:0 0 calc((100% - (var(--ahs-gap) * (var(--ahs-columns) - 1))) / var(--ahs-columns));
  min-width:0;
  scroll-snap-align:start;
  border-radius:var(--ahs-radius);
  overflow:hidden;
  background:var(--ahs-card-bg);
  color:inherit;
}

.ahs-card-media{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  background:#f8f8f8;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}

.ahs-card-image-link{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
}

.ahs-card-image{
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  max-height:100% !important;
  object-fit:contain !important;
  object-position:center center;
  display:block;
  transition:transform .35s ease;
}

.ahs-product-card:hover .ahs-card-image{
  transform:scale(1.015);
}

.ahs-card-cart-wrap{
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  display:flex;
  justify-content:center;
  padding:0 12px;
  opacity:0;
  transform:translateY(8px);
  pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}

.ahs-product-card:hover .ahs-card-cart-wrap,
.ahs-product-card:focus-within .ahs-card-cart-wrap{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}

.ahs-product-slider .ahs-card-cart,
.ahs-product-slider .ahs-card-cart.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:12px 30px;
  border:0;
  border-radius:999px;
  background:#000;
  color:#fff;
  text-decoration:none;
  font-size:var(--ahs-price-size, 17px);
  font-weight:600;
  line-height:1;
  box-shadow:none;
  white-space:nowrap;
}

.ahs-card-info{
  min-height:146px;
  padding:20px 22px 24px;
}

.ahs-card-title{
  margin:0 0 8px;
  padding:0;
  font:inherit;
  font-size:var(--ahs-product-title-size, 22px);
  line-height:1.16;
  font-weight:400;
  letter-spacing:-0.015em;
  color:inherit;
  display:block;
  width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ahs-card-title a{
  color:inherit;
  text-decoration:none;
  display:block;
  width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.ahs-card-rating{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin:2px 0 10px;
  font-size:var(--ahs-subtitle-size-mobile, 16px);
  line-height:1;
}

.ahs-stars{
  display:inline-flex;
  gap:1px;
}

.ahs-stars span{
  color:#c8c8c8;
}

.ahs-stars span.is-filled{
  color:#222;
}

.ahs-rating-count{
  font-size:14px;
  line-height:1;
}

.ahs-card-price{
  margin-top:6px;
  font-size:17px;
  line-height:1.25;
  color:inherit;
}

.ahs-card-price del{
  opacity:.55;
  margin-right:6px;
}

.ahs-card-price ins{
  text-decoration:none;
}

.ahs-mobile-controls{
  display:none;
}

/* Tablet */
@media (max-width: 1024px){
  .ahs-product-slider{
    --ahs-columns: 2;
  }
}

/* Mobile — matches the supplied reference: one large card, progress line, arrows below */
@media (max-width: 767px){
  .ahs-product-slider{
    --ahs-gap:12px;
    --ahs-radius:17px;
    --ahs-arrow-size:var(--ahs-arrow-size-mobile, 46px);
    --ahs-arrow-icon-size:var(--ahs-arrow-icon-size-mobile, 14px);
  }

  .ahs-slider-head{
    margin-bottom:24px;
  }

  .ahs-slider-title{
    font-size:var(--ahs-heading-size-mobile, 30px);
  }

  .ahs-slider-subtitle{
    margin-top:10px;
    font-size:16px;
  }

  .ahs-slider-arrows--desktop{
    display:none;
  }

  .ahs-slider-viewport{
    overflow:visible;
  }

  .ahs-slider-track{
    gap:12px;
    padding-right:0;
    scroll-padding-inline:0;
  }

  .ahs-product-card{
    flex:0 0 100%;
    width:100%;
  }

  .ahs-card-media{
    aspect-ratio:1 / 1;
    padding:12px;
  }

  .ahs-card-info{
    min-height:104px;
    padding:19px 23px 22px;
  }

  .ahs-card-title{
    font-size:22px;
    line-height:1.2;
    margin-bottom:8px;
  }

  .ahs-card-price{
    font-size:17px;
  }

  .ahs-card-rating{
    margin-top:4px;
  }

  .ahs-card-price{
    font-size:var(--ahs-price-size-mobile, 17px);
  }

  /* Screenshot mobile version has no floating cart button */
  .ahs-card-cart-wrap{
    display:none;
  }

  .ahs-mobile-controls{
    display:block;
    margin-top:12px;
  }

  .ahs-progress{
    width:100%;
    height:8px;
    background:#d5d5d5;
    border-radius:999px;
    overflow:hidden;
  }

  .ahs-progress-bar{
    display:block;
    width:0;
    height:100%;
    border-radius:inherit;
    background:#151515;
    transition:width .15s linear;
  }

  .ahs-slider-arrows--mobile{
    justify-content:center;
    gap:12px;
    margin-top:12px;
  }
}

/* Very small screens */
@media (max-width: 420px){
  .ahs-card-title{
    font-size:var(--ahs-product-title-size-mobile, 20px);
  }

  .ahs-card-info{
    padding-left:20px;
    padding-right:20px;
  }
}


.ahs-arrow img{
  width:var(--ahs-arrow-icon-size, 14px);
  height:var(--ahs-arrow-icon-size, 14px);
  display:block;
  object-fit:contain;
  pointer-events:none;
}


/* Hide WooCommerce "View cart" button/link inside the slider */
.ahs-product-slider a.added_to_cart,
.ahs-product-slider .added_to_cart{
  display:none !important;
}


/* Prevent double-tap zoom on mobile slider controls */
.ahs-product-slider .ahs-arrow{
  touch-action:manipulation;
  -ms-touch-action:manipulation;
  user-select:none;
  -webkit-user-select:none;
  -webkit-tap-highlight-color:transparent;
}

.ahs-product-slider .ahs-slider-track{
  touch-action:pan-x pan-y;
  -webkit-overflow-scrolling:touch;
}


.ahs-arrow span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:var(--ahs-arrow-icon-size, 14px);
  height:var(--ahs-arrow-icon-size, 14px);
  line-height:1;
}
