/* ============================================================
   RS PrimeCommerce — Homepage Styles
   ============================================================ */

/* ── Hero Slider ────────────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  background: #0a1628;
  height: clamp(380px, 55vw, 620px);
}
.hero-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.72);
}
.hero-slide-content {
  position: relative; z-index: 2;
  max-width: 1320px; margin: 0 auto; padding: 0 24px;
  width: 100%;
}
.hero-label {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
  border: 1px solid rgba(232,93,4,0.5); border-radius: var(--radius-full);
  padding: 4px 14px;
}
.hero-title {
  font-size: clamp(1.8rem, 5vw, 3.2rem); font-weight: 800;
  color: #fff; line-height: 1.15; margin-bottom: 16px;
  max-width: 520px;
}
.hero-title span { color: var(--teal); }
.hero-desc {
  font-size: 1rem; color: rgba(255,255,255,0.78);
  max-width: 400px; margin-bottom: 28px; line-height: 1.7;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-arrows {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 16px; z-index: 10; pointer-events: none;
}
.hero-arrow {
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); backdrop-filter: blur(8px);
  color: #fff; display: flex; align-items: center; justify-content: center;
  pointer-events: auto; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.2);
}
.hero-arrow:hover { background: var(--primary); border-color: var(--primary); transform: scale(1.08); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-dots {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,0.4); transition: var(--transition);
  cursor: pointer; border: none;
}
.hero-dot.active { background: var(--teal); width: 24px; border-radius: var(--radius-full); }

/* ── Promo Blocks ───────────────────────────────────────────── */
.promo-blocks { padding: 32px 0; background: var(--card); border-bottom: 1px solid var(--border-light); }
.promo-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border);
}
.promo-block {
  background: var(--card); padding: 20px 24px;
  display: flex; align-items: center; gap: 14px;
  transition: var(--transition-fast);
}
.promo-block:hover { background: var(--bg); }
.promo-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(21,32,72,0.1), rgba(232,93,4,0.1));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.promo-icon svg { width: 24px; height: 24px; color: var(--primary); }
.promo-block h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 2px; }
.promo-block p { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

/* ── New Arrivals ───────────────────────────────────────────── */
.new-arrivals { background: var(--bg); }
.products-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

/* ── Product Card ───────────────────────────────────────────── */
.product-card {
  background: var(--card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--bg-alt);
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .product-card-img img { transform: scale(1.06); }
.product-badges {
  position: absolute; top: 10px; left: 10px;
  display: flex; flex-direction: column; gap: 4px; z-index: 2;
}
.product-actions {
  position: absolute; bottom: -50px; left: 0; right: 0;
  display: flex; gap: 8px; padding: 12px;
  transition: var(--transition); z-index: 2;
  justify-content: center;
}
.product-card:hover .product-actions { bottom: 0; }
.product-action-btn {
  flex: 1; padding: 9px 10px; font-size: 0.8rem; font-weight: 600;
  border-radius: var(--radius-sm); transition: var(--transition-fast);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer; border: none;
}
.btn-add-cart {
  background: linear-gradient(135deg, var(--primary), var(--teal-dark));
  color: #fff;
}
.btn-add-cart:hover { opacity: 0.9; }
.btn-wishlist {
  width: 36px; flex: none;
  background: rgba(255,255,255,0.92); color: var(--text-2);
  border-radius: var(--radius-sm); backdrop-filter: blur(4px);
}
.btn-wishlist:hover { color: var(--error); background: #fff; }
.btn-wishlist svg { width: 16px; height: 16px; }
.product-card-info { padding: 14px 16px; }
.product-category { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--teal-dark); font-weight: 600; margin-bottom: 4px; }
.product-name { font-size: 0.9rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.4; }
.product-name a:hover { color: var(--primary); }
.product-rating { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; }
.product-price { display: flex; align-items: center; gap: 8px; }
.price-current { font-size: 1.05rem; font-weight: 700; color: var(--primary); }
.price-original { font-size: 0.85rem; color: var(--muted-light); text-decoration: line-through; }
.price-discount { font-size: 0.75rem; font-weight: 700; color: var(--success); }

/* ── Brands Marquee ─────────────────────────────────────────── */
.brands-section { background: var(--card); padding: 40px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.brands-track-wrapper { overflow: hidden; position: relative; }
.brands-track-wrapper::before,
.brands-track-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.brands-track-wrapper::before { left: 0; background: linear-gradient(to right, var(--card), transparent); }
.brands-track-wrapper::after  { right: 0; background: linear-gradient(to left, var(--card), transparent); }
.brands-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 22s linear infinite;
}
.brands-track:hover { animation-play-state: paused; }
.brand-item {
  width: 160px; height: 72px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0 28px; border-right: 1px solid var(--border-light);
  font-weight: 700; font-size: 0.9rem; color: var(--muted-light);
  letter-spacing: 1px; text-transform: uppercase;
  transition: var(--transition-fast);
}
.brand-item:hover { color: var(--primary); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Newsletter Strip ───────────────────────────────────────── */
.newsletter-strip {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--teal-dark) 100%);
  padding: 56px 0;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; text-align: center; padding: 0 24px; }
.newsletter-inner h2 { color: #fff; font-size: clamp(1.3rem, 3vw, 1.8rem); margin-bottom: 10px; }
.newsletter-inner p { color: rgba(255,255,255,0.8); font-size: 0.9rem; margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 0; max-width: 420px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 13px 20px;
  border: none; border-radius: var(--radius-full) 0 0 var(--radius-full);
  font-size: 0.9rem; outline: none;
  background: rgba(255,255,255,0.95);
}
.newsletter-form button {
  padding: 13px 24px;
  background: #0a1628; color: #fff; font-weight: 600; font-size: 0.88rem;
  border: none; border-radius: 0 var(--radius-full) var(--radius-full) 0;
  cursor: pointer; transition: var(--transition-fast); white-space: nowrap;
}
.newsletter-form button:hover { background: var(--teal-dark); }

/* ── Category Grid (Homepage) ───────────────────────────────── */
.category-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
.cat-card {
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  aspect-ratio: 4/3; cursor: pointer;
}
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.cat-card:hover img { transform: scale(1.06); }
.cat-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,22,40,0.75) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 20px;
}
.cat-name { color: #fff; font-weight: 700; font-size: 1.05rem; }
.cat-count { color: rgba(255,255,255,0.7); font-size: 0.8rem; }

/* ── Section See All ────────────────────────────────────────── */
.section-see-all {
  font-size: 0.85rem; font-weight: 600; color: var(--primary);
  display: flex; align-items: center; gap: 4px; transition: var(--transition-fast);
}
.section-see-all:hover { color: var(--teal-dark); }
.section-see-all svg { width: 16px; height: 16px; }

/* ── Responsive Home ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .promo-grid    { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide-content { padding: 0 16px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .promo-grid    { grid-template-columns: 1fr; }
  .hero-title    { font-size: 1.5rem; }
}
