/* ============================================================
   Beshop Product Slider v2.0.0 — front.css
   ============================================================ */

.beshop-ps { margin: 4em 5px; }

/* Header */

/* Grid */
.beshop-ps__grid {
  display: grid;
  grid-template-columns: repeat(var(--per-view, 4), 1fr);
  gap: 20px;
}
/* Breakpoints: los ajusta el JS (data-breakpoints) sobreescribiendo --per-view
   por ancho de viewport, igual que el slider. Este es el fallback responsive
   por si el JS no corre. */
@media (max-width: 991px) {
  .beshop-ps__grid { grid-template-columns: repeat(var(--per-view-tablet, 3), 1fr); }
}
@media (max-width: 575px) {
  .beshop-ps__grid { grid-template-columns: repeat(var(--per-view-mobile, 2), 1fr); }
}

/* Glide wrapper */
.beshop-ps__glide { position: relative; }
.beshop-ps__slides { list-style: none; margin: 0; padding: 0; }

/* Controles slider */
.beshop-ps__prev,
.beshop-ps__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10;
}
.beshop-ps__prev { left: -20px; }
.beshop-ps__next { right: -20px; }
.beshop-ps__prev button,
.beshop-ps__next button {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid #ddd; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: box-shadow .15s;
}
.beshop-ps__prev button:hover,
.beshop-ps__next button:hover { box-shadow: 0 4px 16px rgba(0,0,0,.15); }

/* Card */
.beshop-ps-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #eee; border-radius: 6px;
  overflow: hidden; transition: box-shadow .15s;
  text-decoration: none; color: inherit;
}
.beshop-ps-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }

.beshop-ps-card__img-wrap { display: block; aspect-ratio: 1; overflow: hidden; background: #f9f9f9; }
.beshop-ps-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; display: block; }
.beshop-ps-card:hover .beshop-ps-card__img { transform: scale(1.04); }

.beshop-ps-card__body { padding: 12px; }
.beshop-ps-card__name { margin: 0 0 6px; font-size: .875rem; font-weight: 600; }
.beshop-ps-card__name a { text-decoration: none; color: inherit; }
.beshop-ps-card__name a:hover { opacity: .75; }

.beshop-ps-card__price { font-size: .875rem; }
.beshop-ps-card__price--old { text-decoration: line-through; color: #999; margin-right: 6px; font-size: .8rem; }
.beshop-ps-card__price--current { font-weight: 700; }
.beshop-ps__glide .glide__slides {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
}

.beshop-ps__glide .glide__slide {
  flex-shrink: 0;
  width: calc(100% / var(--per-view));
}

.beshop-ps__header {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
}

.beshop-ps__title {
  font-family: inherit;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #000;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.beshop-ps__title::after {
  content: '';
  display: block;
  width: 60px;
  height: 0.5px;
  background: var(--beshop-primary, #0e0e0e);
  flex-shrink: 0;
  transition: width 0.2s ease;
}

.beshop-ps__title-link {
  text-decoration: none;
  color: inherit;
}

.beshop-ps__title-link:hover .beshop-ps__title::after {
  width: 90px;
}

.beshop-ps__desc {
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  color: #000;
  margin: 0;
  letter-spacing: 0.02em;
}