/*!
 * app/design/frontend/CW/Security/web/css/_glide-overrides.less
 * Your custom overrides for Glide.js styles
 */

/*———————————————————————————————————————————————————————————————
  1) Carousel container padding must match your “peek.after” value
———————————————————————————————————————————————————————————————*/
.glide {
  position: relative;
  padding: 0 30px;   /* ← same as peek.after in your JS */
  overflow: visible; /* allow arrows & peeks to show */
  margin-bottom: 3rem;
}

.wp-product-slider {
    margin-bottom: 3em;
}

/*———————————————————————————————————————————————————————————————
  2) Make each slide fill more width (shrink its internal padding)
———————————————————————————————————————————————————————————————*/
.glide__slide {
  padding: 4px 0;
}

/*———————————————————————————————————————————————————————————————
  3) Arrow controls
———————————————————————————————————————————————————————————————*/
.glide__arrows {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Wider screens – nudge arrows so they don’t overlap */
@media (min-width: 1024px) {
  .glide__arrows { top: 55%; }
}

.glide__arrow {
  pointer-events: all;
  background: #8ac5ff;
  border: 1px solid #ddd;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  color: #333;
  transition: background 0.2s, box-shadow 0.2s;
}

.glide__arrow:hover {
  background: #2a95ff;
}

/* custom focus ring instead of gray background */
.glide__arrow:focus {
  outline: none;
  background: #8ac5ff;
  box-shadow: 0 0 0 3px rgba(42,149,255,0.4);
}

/* active (mouse‑down) state */
.glide__arrow:active {
  background: #2579dd;
}

/*———————————————————————————————————————————————————————————————
  4) Pagination bullets
———————————————————————————————————————————————————————————————*/
.glide__bullets {
  display: flex;
  justify-content: center;
  bottom: -0.5rem !important;
}


.glide__bullet {
  width: 10px;
  height: 10px;
  margin: 0 4px;
  background: #ccc;
  border-radius: 50%;
  border: 1px solid #999;
  transition: background 0.2s, transform 0.2s;
}

.glide__bullet:hover {
  background: #bbb;
  transform: scale(1.2);
}

.glide__bullet.glide__bullet--active {
  background: #007bff;
  border-color: #0056b3;
}

/*———————————————————————————————————————————————————————————————
  5) Tweak for phones (mobile view)
———————————————————————————————————————————————————————————————*/
@media (max-width: 480px) {
  .glide {
    padding: 0 40px !important; /* match your mobile peek.after */
  }
  .glide__bullet {
    width: 6px;
    height: 6px;
    margin: 0 3px;
  }

  .glide__arrow--right {
        right: 1em;
   }
   .glide__arrow--left {
        left: 1em;
    }
  
}

/*centering add to cart button*/
.glide__slide.product-item .product-item-inner .actions-primary { text-align:center;}}

