/* ============================================================
   RK Keys — sections.css
   Hero, Brands, Featured, New Arrivals, Best Sellers
   ============================================================ */

/* ── Hero Slider ─────────────────────────────────────────── */
.hero-section {
	position: relative;
	background: #1a2e30;
	overflow: hidden;
	padding: 20px 0;
	border-top: 1px solid #42979d;
}
@media (max-width: 768px) {
	.hero-section {
		padding: 0 !important;
		border-top: none !important;
		background: #fff !important;
	}
	.hero-section .container {
		max-width: 100% !important;
		padding: 0 !important;
	}
}

.hero-slider-track::-webkit-scrollbar {
  display: none;
}

.hero-slide {
  position: relative;
  scroll-snap-align: start;
  flex: 0 0 100%;
}

.hero-slide img {
  width: 100%;
  height: auto;
}

.swiper-slide-active .hero-slide__bg {
  transform: scale(1);
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(26, 46, 48, 0.88) 0%, rgba(26, 46, 48, 0.4) 60%, transparent 100%);
}

/* ── Offers Slider (banner strip, no heading) ────────────── */
.offers-section {
  background: var(--clr-white);
  padding: var(--space-md) 0;
}

.offers-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.offers-slider-track::-webkit-scrollbar {
  display: none;
}

.offer-slide {
  scroll-snap-align: start;
  flex: 0 0 100%;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}
.offer-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.offers-prev,
.offers-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(26, 46, 48, 0.08);
  color: var(--clr-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-gray-200);
  cursor: pointer;
  transition: background 0.2s;
}
.offers-prev:hover,
.offers-next:hover {
  background: rgba(26, 46, 48, 0.15);
}
.offers-prev {
  left: 0.5rem;
}
.offers-next {
  right: 0.5rem;
}
.offers-prev:disabled,
.offers-next:disabled {
  opacity: 0.35;
  cursor: default;
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  padding: var(--space-xl) var(--space-md);
  max-width: 560px;
}

@media (min-width: 768px) {
  .hero-slide__content {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.hero-slide__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

.hero-slide__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--clr-white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero-slide__subtitle {
  font-size: clamp(0.85rem, 2vw, 1.05rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.hero-slide__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-pagination {
  position: absolute;
  bottom: 1rem !important;
  z-index: 10;
}

/* ── Brands Section ──────────────────────────────────────── */
.brands-section {
  padding: var(--space-lg) 0;
  background: var(--clr-white);
  border-bottom: 1.5px solid var(--clr-gray-100);
}

/* Slider wrapper — arrows sit outside the viewport */
.brands-slider-wrap {
  position: relative;
  padding: 0 2.5rem;
}

@media (max-width: 767px) {
  .brands-slider-wrap {
    padding: 0 var(--space-md);
  }
}

/* Prev / Next arrow buttons */
.brands-prev,
.brands-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 36px;
  height: 36px;
  background: var(--clr-white);
  border: 1.5px solid var(--clr-gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--clr-text);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
  flex-shrink: 0;
}

.brands-prev {
  left: 0;
}

.brands-next {
  right: 0;
}

.brands-prev:hover,
.brands-next:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: var(--clr-white);
}

/* Viewport clips the track */
.brands-slider-viewport {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  .brands-slider-viewport {
    margin: 0 calc(-1 * var(--space-md));
    padding-left: var(--space-md);
    padding-right: var(--space-md);
    padding-bottom: 1rem;
  }

  .brands-prev,
  .brands-next {
    display: none !important;
  }
}

.brands-slider-viewport::-webkit-scrollbar {
  display: none;
}

/* Track — flex row, animated by JS transform */
.brands-track {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
}

/* Each brand card */
.brand-card {
  flex: 0 0 128px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0.75rem;
  border: 1.5px solid var(--clr-gray-100);
  border-radius: var(--radius-md);
  background: var(--clr-white);
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.brand-card:hover {
  border-color: var(--clr-primary);
  background: var(--clr-primary-bg);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(66, 151, 157, 0.15);
}

/* Logo circle */
.brand-card__logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--clr-gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  flex-shrink: 0;
}

.brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Initials fallback */
.brand-card__initials {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--clr-primary);
  line-height: 1;
}

/* Name label */
.brand-card__name {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--clr-text);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}


/* ── Featured Products Section ───────────────────────────── */
/* Clean white with subtle top border accent */
.featured-section {
  background: var(--clr-white);
  border-top: 4px solid var(--clr-primary);
  padding: var(--space-xl) 0;
}

@media (min-width: 1024px) {
  .featured-section {
    padding: var(--space-2xl) 0;
  }
}

/* ── New Arrivals Section ────────────────────────────────── */
/* DIFFERENTIATION: Dark background, diagonal divider, accent underline */
.new-arrivals-section {
  position: relative;
  background: var(--clr-dark);
  padding: var(--space-xl) 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .new-arrivals-section {
    padding: var(--space-2xl) 0;
  }
}

/* Teal diagonal stripe in background */
.new-arrivals-section::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(66, 151, 157, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.new-arrivals-section::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(232, 197, 71, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* Cards on dark bg get slight transparency boost */
.new-arrivals-section .product-card {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(255, 255, 255, 0.12);
}

.new-arrivals-section .view-all {
  color: var(--clr-accent);
}

/* ── Best Sellers Section ────────────────────────────────── */
/* DIFFERENTIATION: Teal-tinted light bg, horizontal scrollable on mobile */
.bestsellers-section {
  background: var(--clr-primary-bg);
  border-top: 4px solid var(--clr-accent);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .bestsellers-section {
    padding: var(--space-2xl) 0;
  }
}

/* Geometric pattern */
.bestsellers-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: repeating-linear-gradient(45deg,
      rgba(66, 151, 157, 0.05) 0px,
      rgba(66, 151, 157, 0.05) 1px,
      transparent 1px,
      transparent 14px);
  pointer-events: none;
}

.bestsellers-section .section-title::after {
  background: var(--clr-accent);
}

.bestsellers-section .view-all {
  color: var(--clr-primary-dark);
}

/* Rank badge on bestseller cards */
.product-card__rank {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 28px;
  height: 28px;
  background: var(--clr-accent);
  color: var(--clr-dark);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 900;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Horizontal scroll on mobile for bestsellers */
@media (max-width: 767px) {
  .bestsellers-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    padding-right: var(--space-md);
  }

  .bestsellers-scroll::-webkit-scrollbar {
    display: none;
  }

  .bestsellers-scroll .product-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
  }
}

@media (min-width: 768px) {
  .bestsellers-scroll {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .bestsellers-scroll {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

/* ── Promo Banner ────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--clr-primary-dark) 0%, var(--clr-primary) 50%, var(--clr-primary-light) 100%);
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
}

.promo-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.promo-banner__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .promo-banner__inner {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.promo-banner__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 900;
  color: var(--clr-white);
  margin-bottom: 0.4rem;
}

.promo-banner__text p {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Section divider label ───────────────────────────────── */
/* Used for New Arrivals label on dark bg */
.section-eyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary-light);
  margin-bottom: 0.35rem;
  display: block;
}

.new-arrivals-section .section-eyebrow {
  color: rgba(255, 255, 255, 0.5);
}

/* ── "Shop All Products" buttons under Featured / New Arrivals (phones only) ── */
.rk-shop-all { display: none; }

@media (max-width: 767px) {
  .rk-shop-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
    min-height: 48px;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md, 10px);
    background: var(--clr-primary);
    color: var(--clr-white);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  .rk-shop-all:active { background: var(--clr-primary-dark); }

  /* On the dark New Arrivals section: white button, brand-teal text */
  .rk-shop-all--white {
    background: var(--clr-white);
    color: var(--clr-primary);
  }
  .rk-shop-all--white:active { background: var(--clr-primary-bg); }
}

/* Banner-only offer on the homepage slider: a plain image, not clickable */
.offer-slide--static { cursor: default; }

/* ── Shop by Categories: every category in a grid ─────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.categories-grid .brand-card {
  flex: none;
  min-width: 0;
  padding: 0.75rem 0.4rem;
}
.categories-grid .brand-card__name {
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}
@media (min-width: 600px) {
  .categories-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
}
@media (min-width: 900px) {
  .categories-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .categories-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}
