/* ============================================
   AURUM – UNIVERSAL SLIDER STYLES
   File: assets/css/slider.css
   ============================================ */

/* ========== SHARED SLIDER WRAPPER ========== */
.aurum-slider-wrap {
  position: relative;
  overflow: hidden;
  width: 100%;
}

/* ========== SLIDER TRACK (moves on drag/arrow) ========== */
.aurum-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.aurum-slider-track.dragging {
  cursor: grabbing;
  transition: none;
}

/* ========== SLIDER ITEM (each card inside track) ========== */
.aurum-slider-item {
  flex: 0 0 auto;
  box-sizing: border-box;
}

/* ============================================
   CATEGORY SLIDER – slider.css
   ============================================ */
.category-slider-section {
  background: var(--bg-secondary);
  padding: 120px 0;
  overflow: hidden;
}
.category-slider-section .section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

/* Section header stays standard */
.category-slider-section .section-header {
  margin-bottom: 48px;
}

/* Outer wrapper – no overflow:hidden here so nav arrows can sit outside */
.category-slider-outer {
  position: relative;
}

/* The overflow clip lives here */
.category-slider-wrap {
  overflow: hidden;
}

.category-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.category-slider-track.dragging {
  cursor: grabbing;
  transition: none;
}

/* Each category card in the slider */
.category-slider-item {
  flex: 0 0 calc(25% - 15px); /* 4 visible by default */
  min-width: 0;
  box-sizing: border-box;
}

/* Category card itself – reuses existing .category-card rules,
   just override fixed height here */
.category-slider-item .category-card {
  height: 420px;
  width: 100%;
}

/* ========== SLIDER NAV ARROWS ========== */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid rgba(31, 116, 109, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}
.slider-arrow:hover {
  background: var(--gold);
  color: var(--bg-primary);
  border-color: var(--gold);
  box-shadow: 0 8px 32px rgba(31, 116, 109, 0.3);
}
.slider-arrow.disabled {
  opacity: 0.25;
  pointer-events: none;
}
.slider-arrow-prev {
  left: -24px;
}
.slider-arrow-next {
  right: -24px;
}

/* ========== SLIDER DOTS ========== */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(var(--ink-rgb), 0.15);
  border: 1px solid rgba(31, 116, 109, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
  outline: none;
}
.slider-dot:hover {
  background: rgba(31, 116, 109, 0.4);
}
.slider-dot.active {
  width: 24px;
  border-radius: 3px;
  background: var(--gold);
  border-color: var(--gold);
}

/* ============================================
   PRODUCT SLIDER (universal – used in all
   product sections via product-slider.php)
   ============================================ */
.product-slider-section {
  padding: 100px 0;
}
.product-slider-section .section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px;
}

.product-slider-outer {
  position: relative;
}
.product-slider-wrap {
  overflow: hidden;
}
.product-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.product-slider-track.dragging {
  cursor: grabbing;
  transition: none;
}
.product-slider-item {
  flex: 0 0 calc(25% - 15px); /* 4 visible */
  min-width: 0;
  box-sizing: border-box;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */
@media (max-width: 1200px) {
  .category-slider-item {
    flex: 0 0 calc(33.333% - 14px); /* 3 visible */
  }
  .product-slider-item {
    flex: 0 0 calc(33.333% - 14px);
  }
}
@media (max-width: 900px) {
  .category-slider-item {
    flex: 0 0 calc(50% - 10px); /* 2 visible */
  }
  .category-slider-item .category-card {
    height: 320px;
  }
  .product-slider-item {
    flex: 0 0 calc(50% - 10px);
  }
  .slider-arrow-prev { left: 4px; }
  .slider-arrow-next { right: 4px; }
  .category-slider-section .section-inner,
  .product-slider-section .section-inner {
    padding: 0 24px;
  }
}
@media (max-width: 600px) {
  .category-slider-item {
    flex: 0 0 calc(80%); /* 1.2 visible – peek effect */
  }
  .product-slider-item {
    flex: 0 0 calc(80%);
  }
}