/* ================================
   Sticky Product Tabs (full code)
   ================================ */

/* Full-width fixed sticky bar under your fixed header */
.product-sticky-tabs {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--sticky-top, 0);
  z-index: 10;
  background: #fff;
  border-bottom: 1px solid #eee;
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.product-sticky-tabs.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Inner wrapper aligns to your site’s container width */
.product-sticky-tabs .container {
  /* rename if your theme uses a different class */
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* Horizontal, scrollable list */
.product-sticky-tabs__list {
  display: flex;
  gap: .75rem;
  /* keep original spacing */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  padding: 0.2rem 0;
  margin: 0 40px;
}

.product-sticky-tabs__item {
  flex: 0 0 auto;
}

/* Links: turn pills into plain text labels */
.product-sticky-tabs__link {
  display: inline-block;
  padding: .3rem .75rem;
  text-decoration: none;
  white-space: nowrap;
  font-size: .95rem;
  border-radius: 0;
  /* no pill radius */
  border: 0 !important;
  /* hide pill border */
  background: transparent !important;
  /* no pill bg */
  cursor: pointer;
  color: #656A76;
  /* default text */
  font-weight: 500;
  /* per spec */
  position: relative;
  /* for underline */
}

/* Active state: darker text + blue underline */
.product-sticky-tabs__link.is-active,
.product-sticky-tabs__link[aria-current="true"] {
  color: #05559F;
}

.product-sticky-tabs__link.is-active::after,
.product-sticky-tabs__link[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  /* underline sits at bottom without changing bar height */
  height: 3px;
  border-radius: 3px;
  background: #05559F;
  /* blue underline */
}

/* Optional subtle hover on desktop */
@media (hover:hover) {
  .product-sticky-tabs__link:hover {
    color: #021B32;
  }
}

/* Smooth anchor offset so content isn't hidden under the fixed bar */
.single-product .site-main,
.single-product .content-area {
  scroll-padding-top: calc(var(--sticky-top, 0px) + 56px);
}

/* Native smooth scroll (fallback for anchor jumps) */
:root {
  scroll-behavior: smooth;
}

/* --- mobile-first controls (trigger + drawer) --- */
.product-tabs-trigger,
.product-tabs-drawer {
  position: fixed;
  left: 0;
  right: 0;
  top: 30px;
  /* same offset under header */
  z-index: 1001;
  /* above the bar */
}

/* Hide desktop list on mobile, show trigger */
.product-sticky-tabs__list {
  display: none;
}

.product-tabs-trigger {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 auto;
  max-width: 800px;
  /* keeps it centered; optional */
  padding: 0;
  /* circular button only */
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #E1E5EA;
  box-shadow: 0 2px 8px rgba(7, 42, 82, .08);
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.product-sticky-tabs.is-visible .product-tabs-trigger {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
  color: unset;
}

/* Trigger contents: icon only on mobile */
.product-tabs-trigger .label {
  display: none;
}

/* hide any label text */
.product-tabs-trigger .icon {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
  color: #021B32;
}

/* Drawer (dropdown under trigger) */
.product-tabs-drawer {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  margin: 52px auto 0;
  /* below trigger; tweak if needed */
  max-width: 800px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}

.product-tabs-drawer.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-tabs-drawer__list {
  list-style: none;
  padding: .5rem;
  margin: 0;
  max-height: 60vh;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.product-tabs-drawer__item {
  margin: 0;
}

.product-tabs-drawer__link {
  display: block;
  padding: .75rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  color: #021B32;
  font-weight: 500;
}

.product-tabs-drawer__link.is-active,
.product-tabs-drawer__link[aria-current="true"] {
  font-weight: 600;
  background: #f6f6f6;
}

/* Desktop: show horizontal tabs; hide mobile UI */
@media (min-width: 768px) {
  .product-sticky-tabs__list {
    display: flex;
  }

  .product-tabs-trigger,
  .product-tabs-drawer {
    display: none;
  }

 

}
/* Mobile */
@media (max-width: 768px) {
   .product-tabs-trigger {
    margin: 0 3%;
    padding: 0 !important;
    display: block;
  }
.product-tabs-drawer {
  margin: 12% 4%;
}
}