/* nexsole — home sliders: wide banner hero + product carousels.
 * Our colours only (navy #0f172a, blue #1d4ed8, sale red #dc2626).
 * No library, no extra requests. */

/* ---------- wide banner hero (4 slides) ----------
 * Short on purpose: ~420px max on desktop, stacked and compact on mobile.
 * The old square .hero-photo crop (aspect-ratio 1/1) is gone — the photo is
 * now a white card with the product shown whole (object-fit: contain). */
.hero-slider {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  color: #fff;
  overflow: hidden;
}
.hero-slide { display: none; padding: 28px 0 52px; }
.hero-slide.is-active { display: block; }
.hero-inner { display: grid; gap: 20px; align-items: center; }
@media (min-width: 768px) {
  .hero-slide { padding: 36px 0 56px; }
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 40px; }
}
.hero-slide .hero-copy p { color: #dbeafe; }
.hero-slide h1,
.hero-slide h2.hero-title { font-size: 1.9rem; margin: .4em 0; letter-spacing: -1px; line-height: 1.08; color: #fff; }
@media (min-width: 768px) {
  .hero-slide h1,
  .hero-slide h2.hero-title { font-size: 2.6rem; }
}
.hero-price { font-size: 1.5rem; font-weight: 800; margin: .5em 0 0; color: #fff; }
.hero-price s { font-weight: 400; font-size: 1.05rem; color: #bfdbfe; margin-left: 8px; }
.hero-photo { max-width: 520px; margin: 0 auto; width: 100%; }
.hero-photo a {
  display: block; background: #fff; border-radius: 16px; padding: 14px;
  aspect-ratio: 4 / 3; box-shadow: 0 12px 32px rgba(2, 8, 30, .35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (min-width: 768px) {
  .hero-photo { margin: 0; justify-self: end; }
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
}
.hero-arrow:hover { background: rgba(255, 255, 255, .28); }
.hero-arrow.prev { left: 10px; }
.hero-arrow.next { right: 10px; }
@media (min-width: 768px) {
  .hero-arrow.prev { left: 20px; }
  .hero-arrow.next { right: 20px; }
}
.hero-dots {
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 3;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0;
  background: rgba(255, 255, 255, .45); cursor: pointer;
}
.hero-dot.is-active { background: #fff; width: 26px; }
.hero-counter {
  position: absolute; right: 16px; bottom: 16px;
  padding: 4px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(15, 23, 42, .55); color: #fff;
  font-size: .85rem; font-variant-numeric: tabular-nums; z-index: 3;
}
.hero-slider.single .hero-arrow,
.hero-slider.single .hero-counter,
.hero-slider.single .hero-dots { display: none; }

/* ---------- hero title links + Buy Now form (1 Dec 2026) ----------
 * The slide title is a link to the product's buy box; keep it white on
 * the navy banner like the plain title was. The Buy Now form must not
 * add any margin of its own. */
.hero-slide h1 a,
.hero-slide h2.hero-title a { color: #fff; text-decoration: none; }
.hero-slide h1 a:hover,
.hero-slide h2.hero-title a:hover { text-decoration: underline; }
.hero-buy { margin: 0; }

/* ---------- product carousels (kept — other pages may use them) ---------- */
.head-side { display: flex; gap: 12px; align-items: center; }
.pcar-nav { display: flex; gap: 8px; }
.pcar-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid #dbe3ef; background: #fff; color: #0f172a;
  font-size: 1.15rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.pcar-btn:hover:not(:disabled) { border-color: #1d4ed8; color: #1d4ed8; }
.pcar-btn:disabled { opacity: .35; cursor: default; }
.pcarousel-track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
}
.pcarousel-track::-webkit-scrollbar { display: none; }
.pcarousel-track .product-card { flex: 0 0 46%; scroll-snap-align: start; }
@media (min-width: 640px) { .pcarousel-track .product-card { flex-basis: 31%; } }
@media (min-width: 1024px) { .pcarousel-track .product-card { flex-basis: 23.5%; } }
