/**
 * Arzoon — Homepage Figma Alignment Layer
 * Overrides & additions for pixel-accurate match to arzonfrosh2 design.
 * Load after home-2026.css and home-responsive.css.
 */

/* ── Page canvas ── */
.sf-home-page .sf-home.hp26 {
  background: #f4f5f7;
}

.sf-home-page .hb-hero {
  background: #f4f5f7;
}

/* ── Section headers (Figma typography) ── */
.hp26 .hp26-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8f0b13;
}

.hp26 .hp26-eyebrow.hp26-eyebrow--on-dark {
  color: #B8860B;
}

.hp26 .hp26-head__title {
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  letter-spacing: -0.02em;
  color: #16181d;
}

/* سکشن تیره (اعتماد هزاران مشتری): عنوان سفید */
.hp26 .hp26-section--dark .hp26-head__title {
  color: #fff;
}

.hp26 .hp26-link {
  font-size: 0.75rem;
  color: #8f0b13;
}

/* ═══════════════════════════════════════════════════════════
   Categories — 8 pastel icon pills (no section header)
   ═══════════════════════════════════════════════════════════ */
.hp26-cats--figma {
  padding-block: clamp(1.25rem, 2.5vw, 2rem);
}

.hp26-cats--figma .hp26-cats__grid {
  --cats-visible: 4;
  gap: 0;
  padding-block: 0;
  margin-block-end: 0;
  justify-content: space-between;
}

@media (min-width: 576px) { .hp26-cats--figma .hp26-cats__grid { --cats-visible: 5; } }
@media (min-width: 768px) { .hp26-cats--figma .hp26-cats__grid { --cats-visible: 6; } }
@media (min-width: 992px) { .hp26-cats--figma .hp26-cats__grid { --cats-visible: 8; } }

.hp26-cats--figma .hp26-cat {
  gap: 0.67rem;
  padding: 1.25rem clamp(0.5rem, 2vw, 2.4rem);
  border-radius: 2rem;
  flex: 0 0 calc((100% - (var(--cats-visible) - 1) * 0px) / var(--cats-visible));
}

.hp26-cats--figma .hp26-cat__circle {
  width: 5rem;
  height: 5rem;
  border-radius: 1.26rem;
  border: none;
  background: var(--cat-bg, #beb2dc);
  color: #16181d;
  box-shadow: none;
  font-size: 1.65rem;
  overflow: hidden;
}

.hp26-cats--figma .hp26-cat__img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.hp26-cats--figma .hp26-cat__circle--has-img {
  background: var(--cat-bg, #beb2dc);
  border: none;
}

.hp26-cats--figma .hp26-cat:hover .hp26-cat__circle {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.08);
}

.hp26-cats--figma .hp26-cat__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #16181d;
}

.hp26-cats--figma .hp26-cat__count {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   پیشنهاد شگفت‌انگیز — Flash deals rail + carousel
   ═══════════════════════════════════════════════════════════ */
.hp26-shegft__box {
  position: relative;
  display: grid;
  grid-template-columns: 9.125rem minmax(0, 1fr);
  min-height: 18.375rem;
  border-radius: 1rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 35% 55% at 8% 30%, rgba(143, 11, 19, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 28% 45% at 92% 70%, rgba(212, 160, 23, 0.08) 0%, transparent 52%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(255, 248, 250, 0.7) 0%, transparent 65%),
    linear-gradient(171deg, #fcfbfd 0%, #f5f3f7 50%, #ede9ef 100%);
}

.hp26-shegft__ambient {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(circle at 72% 80%, rgba(143, 11, 19, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 28% 20%, rgba(184, 134, 11, 0.05) 0%, transparent 40%);
  pointer-events: none;
}

.hp26-shegft__rail {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  padding: 1.25rem 0.85rem;
  text-align: center;
}

.hp26-shegft__logo {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.15;
  color: #8f0b13;
}

.hp26-shegft__logo-accent {
  font-size: 0.82rem;
  letter-spacing: -0.02em;
}

.hp26-shegft__ticket {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-block: 0.35rem 0.15rem;
  font-size: 2rem;
  color: #8f0b13;
  opacity: 0.9;
}

.hp26-shegft__upto {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 900;
  color: #8f0b13;
  letter-spacing: -0.03em;
}

.hp26-shegft__more {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.75rem;
  color: #8f0b13;
  text-decoration: none;
  transition: gap 0.18s ease;
}

.hp26-shegft__more:hover {
  gap: 0.45rem;
  color: #6d0910;
}

.hp26-shegft__carousel {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding: 1.25rem 0.5rem 1.25rem 1rem;
}

.hp26-shegft-swiper {
  overflow: hidden;
  padding-inline: 0.25rem;
}

.hp26-shegft-swiper .swiper-slide {
  width: 10rem;
  height: auto;
}

.hp26-shegft__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #16181d;
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.08);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

@media (min-width: 768px) {
  .hp26-shegft__nav { display: flex; }
}

.hp26-shegft__nav:hover {
  background: #8f0b13;
  color: #fff;
}

.hp26-shegft__nav--prev { inset-inline-start: 0.15rem; }
.hp26-shegft__nav--next { inset-inline-end: 0.15rem; }

/* Flash product card — Figma 160×254 */
.hp26-shegft .az-product-card--flash .az-product-card__shell {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 6px 10.9px rgba(209, 199, 184, 0.27);
  min-height: 15.875rem;
}

.hp26-shegft .az-product-card--flash:hover .az-product-card__shell {
  transform: translateY(-3px);
  box-shadow: 0 10px 18px rgba(209, 199, 184, 0.35);
}

.hp26-shegft .az-product-card--flash .az-product-card__media {
  aspect-ratio: auto;
  height: 8.5rem;
  padding: 0.5rem;
}

.hp26-shegft .az-product-card--flash .az-product-card__media::before {
  display: none;
}

.hp26-shegft .az-product-card--flash .az-product-card__img {
  object-fit: contain;
  max-height: 100%;
}

.hp26-shegft .az-product-card--flash .az-product-card__badges,
.hp26-shegft .az-product-card--flash .az-product-card__wishlist {
  display: none;
}

.hp26-shegft .az-product-card--flash .az-product-card__body {
  align-items: stretch;
  text-align: right;
  padding: 0 0.75rem 0.75rem;
  gap: 0.35rem;
}

.hp26-shegft .az-product-card--flash .az-product-card__title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #20090e;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp26-shegft .az-product-card--flash .az-product-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffa700;
}

.hp26-shegft .az-product-card--flash .az-product-card__rating-star {
  color: #ffa700;
  font-size: 0.7rem;
}

.hp26-shegft .az-product-card--flash .az-product-card__price-stack {
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.hp26-shegft .az-product-card--flash .az-product-card__price-old {
  font-size: 0.75rem;
  color: #b2b4c2;
}

.hp26-shegft .az-product-card--flash .az-product-card__price .price-discount {
  font-size: 0.875rem;
  font-weight: 900;
  color: #b5002a;
}

.hp26-shegft .az-product-card--flash .az-product-card__price .az-price-unit {
  font-size: 0.625rem;
  font-weight: 700;
  color: #b5002a;
}

.hp26-shegft .az-product-card--flash .az-product-card__footer {
  justify-content: space-between;
  margin-top: 0.15rem;
}

.hp26-shegft .az-product-card--flash .az-product-card__cart-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: #f5f6f9;
  box-shadow: none;
  color: #16181d;
}

.hp26-shegft .az-product-card--flash .az-product-card__cart-btn:hover {
  background: #8f0b13;
  color: #fff;
  transform: scale(1.04);
}

/* ── Wide banner CTA (Figma copy) ── */
.hp26-wide .hp26-btn--ghost {
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* ── Promo cards — Figma 24px radius ── */
.hp26-promo {
  border-radius: 1.5rem;
  min-height: 14rem;
}

/* ── Section rhythm ── */
.hp26-section--tight {
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {
  .hp26-shegft__box {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .hp26-shegft__rail {
    order: -1;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    gap: 0.5rem 1rem;
  }

  .hp26-shegft__logo {
    flex-direction: row;
    gap: 0.35rem;
    font-size: 0.85rem;
  }

  .hp26-shegft__ticket {
    width: auto;
    height: auto;
    margin: 0;
    font-size: 1.5rem;
  }

  .hp26-shegft__upto {
    font-size: 1.1rem;
  }

  .hp26-shegft__more {
    margin-top: 0;
    padding-top: 0;
  }

  .hp26-shegft__carousel {
    padding: 0 0.5rem 1rem;
  }

  .hp26-cats--figma .hp26-cats__grid {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .hp26-cats--figma .hp26-cat {
    flex: 0 0 calc((100% - 1.5rem) / 3.5);
    padding-inline: 0.75rem;
  }
}
