/* ══════════════════════════════════════════════════════════════════════════
   IRAM FATIMA CLOTHING — ENHANCEMENTS
   Best Sellers Slider · Sale Nav & Floating Button · Sales Page
   On-Sale Section · Mobile Improvements
   ══════════════════════════════════════════════════════════════════════════ */

/* ── NAV SALE LINK ─────────────────────────────────────────────────────── */
.nav-sale-link {
  background: linear-gradient(135deg, #b42318, #e53935) !important;
  color: #fff !important;
  border-radius: 8px !important;
  position: relative;
  animation: navSalePulse 2.8s ease-in-out infinite;
}
.nav-sale-link:hover {
  background: linear-gradient(135deg, #c0392b, #ef5350) !important;
  color: #fff !important;
}
.nav-sale-flame {
  font-size: 0.82rem;
  margin-left: 0.15rem;
}
@keyframes navSalePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.6); }
  55%       { box-shadow: 0 0 0 7px rgba(180, 35, 24, 0); }
}
@media (max-width: 960px) {
  .nav-sale-link {
    animation: none;
    box-shadow: none;
    border: 1px solid rgba(180, 35, 24, 0.35) !important;
  }
}

/* ── FLOATING SALE BUTTON ──────────────────────────────────────────────── */
.float-sale-btn {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: linear-gradient(135deg, #b42318, #e53935);
  color: #fff;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(180, 35, 24, 0.45);
  z-index: 998;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: floatSaleBounce 3.2s ease-in-out infinite;
}
.float-sale-btn i {
  font-size: 1.25rem;
  line-height: 1;
}
.float-sale-btn span {
  font-size: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1;
}
.float-sale-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 28px rgba(180, 35, 24, 0.55);
  animation: none;
}
@keyframes floatSaleBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* ══════════════════════════════════════════════════════════════════════════
   BEST SELLERS FOCUSED SLIDER
   ══════════════════════════════════════════════════════════════════════════ */
.bs-section {
  background: var(--soft, #fbfaf8);
}

.bs-slider {
  position: relative;
  user-select: none;
}

.bs-stage {
  position: relative;
  height: 520px;
  margin: 1.5rem 0 0.75rem;
}

/* All items start hidden — JS sets positions */
.bs-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 268px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.72);
  transition:
    transform 0.56s cubic-bezier(0.4, 0, 0.2, 1),
    opacity   0.45s ease;
}

/* ── Position states ── */
.bs-item.is-center {
  transform: translate(-50%, -56%) scale(1.09);
  opacity: 1;
  z-index: 10;
  pointer-events: auto;
}
.bs-item.is-left {
  transform: translate(calc(-50% - 278px), -50%) scale(0.87);
  opacity: 0.78;
  z-index: 5;
  pointer-events: auto;
}
.bs-item.is-right {
  transform: translate(calc(-50% + 278px), -50%) scale(0.87);
  opacity: 0.78;
  z-index: 5;
  pointer-events: auto;
}
.bs-item.is-hidden-left {
  transform: translate(calc(-50% - 560px), -50%) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}
.bs-item.is-hidden-right {
  transform: translate(calc(-50% + 560px), -50%) scale(0.7);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── Card ── */
.bs-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--line, #e8e6e1);
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.35s ease;
}
.bs-item.is-center .bs-card {
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.17);
}

.bs-card-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(180deg, #f7f4ef, #f0ebe3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bs-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.52s ease;
}
.bs-item.is-center:hover .bs-card-img img {
  transform: scale(1.04);
}
.bs-card-placeholder {
  font-size: 3rem;
  color: var(--line, #e8e6e1);
}

.bs-card-body {
  padding: 0.92rem 1.1rem 1.1rem;
}
.bs-card-brand {
  display: block;
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--accent, #a38f6c);
  margin-bottom: 0.22rem;
}
.bs-card-name {
  margin: 0 0 0.45rem;
  font-family: "Playfair Display", serif;
  font-size: 0.97rem;
  font-weight: 500;
  color: var(--primary, #111);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.bs-card-price {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary, #111);
}
/* Subtle "tap to view" hint on center card only */
.bs-item.is-center .bs-card-body::after {
  content: "Click to view";
  display: block;
  margin-top: 0.55rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--accent, #a38f6c);
  font-weight: 600;
}

/* ── Navigation arrows ── */
.bs-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-62%);
  z-index: 20;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line, #e8e6e1);
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary, #111);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
  font-size: 0.88rem;
  backdrop-filter: blur(8px);
  transition:
    background  0.22s ease,
    color       0.22s ease,
    transform   0.22s ease,
    box-shadow  0.22s ease;
}
.bs-nav-btn:hover {
  background: var(--accent, #a38f6c);
  color: #fff;
  border-color: var(--accent, #a38f6c);
  transform: translateY(-62%) scale(1.07);
  box-shadow: 0 8px 24px rgba(163, 143, 108, 0.32);
}
.bs-prev { left: 0.75rem; }
.bs-next { right: 0.75rem; }

/* ── Indicator dots ── */
.bs-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding-bottom: 0.25rem;
}
.bs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line, #e8e6e1);
  cursor: pointer;
  transition: background 0.3s ease, width 0.3s ease;
}
.bs-dot.is-active {
  background: var(--accent, #a38f6c);
  width: 24px;
  border-radius: 999px;
}

/* ── Mobile: single card ── */
@media (max-width: 640px) {
  .bs-stage {
    height: 455px;
    margin: 1rem 0 0.5rem;
  }
  .bs-item.is-left,
  .bs-item.is-right {
    opacity: 0;
    pointer-events: none;
  }
  .bs-item.is-center {
    transform: translate(-50%, -52%) scale(1);
    width: 242px;
  }
  .bs-nav-btn {
    width: 40px;
    height: 40px;
    font-size: 0.78rem;
  }
  .bs-prev { left: 0.2rem; }
  .bs-next { right: 0.2rem; }
  .bs-item.is-center .bs-card-body::after { display: none; }
}
@media (max-width: 380px) {
  .bs-stage { height: 405px; }
  .bs-item.is-center { width: 212px; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ON-SALE SECTION (HOMEPAGE STRIP)
   ══════════════════════════════════════════════════════════════════════════ */
.sale-strip-hero {
  background: linear-gradient(120deg, #7a1f12 0%, #b42318 55%, #c0392b 100%);
  color: #fff;
  border-radius: 18px;
  padding: 1.75rem 1.75rem;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.sale-strip-hero::before {
  content: "SALE";
  position: absolute;
  right: -18px;
  top: -22px;
  font-size: 9rem;
  font-family: "Playfair Display", serif;
  font-weight: 900;
  opacity: 0.07;
  color: #fff;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.sale-strip-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  margin: 0 0 0.25rem;
  line-height: 1.2;
}
.sale-strip-sub {
  margin: 0;
  opacity: 0.88;
  font-size: 0.88rem;
}
.sale-strip-cta {
  background: #fff;
  color: #b42318;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.72rem 1.45rem;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.sale-strip-cta:hover {
  background: #f9f0ee;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
}
@media (max-width: 640px) {
  .sale-strip-hero { border-radius: 12px; padding: 1.35rem 1.25rem; }
  .sale-strip-hero::before { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   SALES PAGE
   ══════════════════════════════════════════════════════════════════════════ */
.sale-page-hero {
  background: linear-gradient(120deg, #111 0%, #2d1a18 50%, #111 100%);
  color: #fff;
  padding: 3.5rem 0 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sale-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(180, 35, 24, 0.32), transparent 55%),
    radial-gradient(ellipse at 75% 40%, rgba(163, 143, 108, 0.18), transparent 55%);
  pointer-events: none;
}
.sale-page-hero-inner {
  position: relative;
  z-index: 1;
}
.sale-page-badge {
  display: inline-block;
  background: linear-gradient(135deg, #b42318, #e53935);
  color: #fff;
  padding: 0.42rem 1.15rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 1rem;
  box-shadow: 0 4px 18px rgba(180, 35, 24, 0.42);
}
.sale-page-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0 0 0.75rem;
  line-height: 1.1;
}
.sale-page-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0 auto 1.5rem;
  max-width: 540px;
  line-height: 1.6;
}
.sale-page-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}
.sale-page-stat {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  font-size: 0.76rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

/* Sale toolbar */
.sale-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.sale-results-count {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0;
}

/* Sale price display */
.sale-price-new {
  color: #b42318 !important;
}
.sale-price-old {
  color: var(--muted) !important;
  text-decoration: line-through !important;
  font-weight: 500 !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   TRENDING NOW BADGE
   ══════════════════════════════════════════════════════════════════════════ */
.trending-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #5a3e00;
  padding: 0.3rem 0.78rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.45rem;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.28);
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS (< 640px)
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  /* Tighter section spacing */
  .section { padding: 1.75rem 0; }
  .section-head { margin-bottom: 0.85rem; }

  /* Announcement bar */
  .announcement { font-size: 13px; padding: 9px 0; }

  /* Trust badges: smaller on tiny screens */
  .trust-badge i { font-size: 1.15rem; }
  .trust-badge-label { font-size: 0.7rem; }
  .trust-badge-sub  { font-size: 0.62rem; }

  /* Why Us: 2 columns */
  .why-us-desc { font-size: 0.82rem; }

  /* Reviews */
  .review-tile-text { font-size: 0.86rem; line-height: 1.56; }
  .reviews-big-score { font-size: 2.2rem; }

  /* Sale page hero */
  .sale-page-hero { padding: 2rem 0 1.75rem; }
  .sale-page-title { font-size: clamp(1.65rem, 8vw, 2.4rem); }

  /* Countdown */
  .countdown-number { font-size: 1.5rem; min-width: 44px; padding: 0.35rem 0.42rem; }
}
@media (max-width: 420px) {
  .sale-page-stats { gap: 0.45rem; }
  .sale-page-stat  { font-size: 0.7rem; padding: 0.38rem 0.72rem; }
}
