/* ============================================================
   SARAMAD — HOME PAGE (page-specific styles)
   Depends on base.css tokens & components.
   ============================================================ */

/* ---------- Stories strip ---------- */
.stories-strip {
  position: relative;
  background:
    radial-gradient(620px 190px at 88% -20%, rgba(189, 214, 230, 0.30), transparent 65%),
    radial-gradient(480px 170px at 8% 120%, rgba(222, 132, 53, 0.08), transparent 60%),
    var(--color-surface-soft);
  border-bottom: 1px solid var(--color-hairline-soft);
  padding-block: var(--space-base) var(--space-lg);
}
.stories-head {
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  margin-bottom: var(--space-base);
}
.stories-title {
  margin: 0;
  font-size: var(--text-title-lg);
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-ink);
  position: relative;
  padding-inline-start: 14px;
  white-space: nowrap;
}
.stories-title::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 14%;
  bottom: 14%;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent-gold-light));
}
.stories-sub {
  margin: 0;
  font-size: var(--text-caption);
  color: var(--color-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stories-row {
  display: flex;
  gap: var(--space-base);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.stories-row::-webkit-scrollbar { display: none; }
.story-thumb {
  flex: 0 0 auto;
  width: 96px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  scroll-snap-align: start;
  -webkit-tap-highlight-color: transparent;
}
.story-ring {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-full);
  padding: 3px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent-gold-light) 58%, var(--color-accent-blue) 130%);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.story-ring img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 3px solid #fff;
  background: var(--color-surface-soft);
}
.story-thumb:hover .story-ring {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(222, 132, 53, 0.35);
}
.story-thumb:active .story-ring { transform: scale(0.97); }
.story-thumb.is-seen .story-ring {
  background: var(--color-hairline);
  box-shadow: none;
}
.story-thumb:focus-visible .story-ring {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.story-play {
  position: absolute;
  bottom: 1px;
  inset-inline-end: 1px;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--color-surface-dark);
  color: var(--color-on-dark);
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.story-play i { transform: translateX(1px); }

/* ---------- Story modal (image & video) ---------- */
.story-modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background: rgba(26, 26, 46, 0.84);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.story-modal.is-open { display: flex; }
.story-content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: min(1000px, 94vw);
  max-height: 86vh;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
  animation: story-fade-in 0.22s var(--ease);
}
@keyframes story-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}
.story-media { display: block; max-width: 100%; max-height: 86vh; }
.story-media--image { background: #fff; }
.story-media--video {
  width: min(1100px, 94vw);
  max-width: 100%;
  height: auto;
  background: #000;
}
.story-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 24px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: var(--color-on-dark);
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.story-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: rotate(90deg);
}
body.story-locked { overflow: hidden; }

/* ---------- Stories responsive ---------- */
@media (max-width: 1127.98px) {
  .story-thumb { width: 88px; }
}
@media (max-width: 743.98px) {
  .stories-strip { padding-block: var(--space-md) var(--space-base); }
  .stories-head { margin-bottom: var(--space-md); }
  .stories-title { font-size: var(--text-title-sm); }
  .stories-sub { display: none; }
  .stories-row { gap: var(--space-md); }
  .story-thumb { width: 78px; }
  .story-modal { padding: var(--space-sm); }
  .story-close { top: 12px; inset-inline-end: 12px; }
  .story-media { max-height: 80vh; }
  .story-media--video { width: 92vw; }
}

/* ---------- Hero stage (dark) ---------- */
.hero-stage {
  position: relative;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(222, 132, 53, 0.22), transparent 60%),
    radial-gradient(900px 380px at 10% 115%, rgba(189, 214, 230, 0.14), transparent 60%),
    var(--color-surface-dark);
  padding-block: var(--space-xxl);
  overflow: hidden;
}
.hero-stage--slim { padding-block: var(--space-xl); margin-top: var(--space-xxl); }
.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-pop);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(222, 132, 53, 0.25);
}
.hero-frame .keen-slider__slide { background: #fff; }
.hero-frame img { width: 100%; display: block; }
@media (max-width: 743.98px) {
  .hero-stage { padding-block: var(--space-lg); }
  .hero-frame { border-radius: var(--radius-lg); }
}

/* ---------- Specials band (شگفت‌انگیز, gold) ---------- */
.specials-band {
  position: relative;
  background: linear-gradient(130deg, var(--color-primary) 0%, var(--color-primary-active) 100%);
  color: #fff;
  padding-block: var(--space-xl);
  overflow: hidden;
}
.specials-band::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, #fff, transparent);
  opacity: 0.35;
}
.specials-wrap {
  display: flex;
  align-items: stretch;
  gap: var(--space-xl);
}
.specials-side {
  width: 250px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding-inline: var(--space-md);
  border-inline-end: 1px solid rgba(255, 255, 255, 0.28);
  text-align: center;
}
.specials-pct {
  font-size: 42px;
  line-height: 1;
  color: #fff;
  opacity: 0.95;
  text-shadow: 0 4px 14px rgba(26, 26, 46, 0.18);
}
.specials-title {
  margin: 0;
  font-size: var(--text-title-lg);
  font-weight: 800;
  line-height: 1.5;
  color: #fff;
}
.specials-band .countdown .time-box {
  min-width: 58px;
  min-height: 58px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.38);
}
.specials-band .countdown .time-box span { color: #fff; }
.specials-seeall {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  background: #fff;
  color: var(--color-primary-active);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 6px 18px rgba(26, 26, 46, 0.18);
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.specials-seeall:hover {
  background: var(--color-accent-gold-light);
  color: var(--color-primary-active);
  transform: translateY(-2px);
}
.specials-seeall i { font-size: 12px; }
.specials-slider { flex: 1; min-width: 0; position: relative; }

/* Minimal product cards inside the band (per reference) */
.specials-band .product-card { padding-bottom: 14px; }
.specials-band .product-card__cta { display: none; }
.specials-band .product-card__body { gap: 6px; padding: 12px 14px 4px; }
.specials-band .product-card__title { min-height: 0; font-size: 14px; }
.specials-band .product-card__price { padding-bottom: 8px; }
.specials-band .product-card__price .price-final { color: var(--color-ink); }
.specials-band .product-card__price .price-final .toman { color: var(--color-primary-active); }
.specials-band .product-card__badges .badge-sale {
  border-radius: var(--radius-full);
  padding: 3px 10px;
  font-size: 12px;
}

@media (max-width: 1127.98px) {
  .specials-wrap { flex-direction: column; gap: var(--space-lg); }
  .specials-side {
    width: 100%;
    border: 0;
    padding-inline: 0;
    gap: var(--space-sm);
  }
}
@media (max-width: 743.98px) {
  .specials-band { padding-block: var(--space-lg); }
  .specials-pct { font-size: 34px; }
}

/* ---------- Quick access ---------- */
.sec-title-center { text-align: center; margin-bottom: var(--space-xl); }
.sec-title-center h2 {
  display: inline-block;
  font-size: var(--text-display-md);
  font-weight: 800;
  color: var(--color-ink);
  position: relative;
  padding-bottom: 14px;
}
.sec-title-center h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 56px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold-light));
}
.qa-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-base);
}
@media (min-width: 744px) { .qa-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1440px) { .qa-grid { grid-template-columns: repeat(8, 1fr); gap: var(--space-md); } }
.qa-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-base);
  background: var(--color-surface-card);
  border: 1px solid var(--color-hairline-soft);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--color-body);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.qa-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(222, 132, 53, 0.4);
  color: var(--color-primary-active);
}
.qa-item__img {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-full);
  background: var(--color-accent-blue-soft);
  padding: 5px;
  transition: background-color 0.22s var(--ease);
}
.qa-item:hover .qa-item__img { background: var(--color-accent-gold-light); }
.qa-item__img img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-full); }
.qa-item h4 { margin: 0; font-size: 14px; font-weight: 700; }

/* ---------- Category browse (pill.html restyle) ---------- */
.cat-browse {
  background:
    radial-gradient(700px 260px at 15% 0%, rgba(189, 214, 230, 0.55), transparent 60%),
    var(--color-accent-blue-soft);
}
.cat-browse .nav-pills {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-card);
}
.cat-browse .nav-link { color: var(--color-ink); }
.cat-browse .nav-link.active { background: var(--color-primary); color: #fff; }
.cat-browse .all-products {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-active);
  min-height: 44px;
  margin-bottom: var(--space-sm);
}
.cat-browse .all-products:hover { color: var(--color-ink); }
.cat-browse .d-flex[style*="flex-wrap"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-base);
}
.cat-browse .cat-card { background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.8); }
.cat-browse .cat-card:hover { background: #fff; }
.cat-browse .hideContent { max-height: none; }

/* ---------- About band (misty) ---------- */
.about-band {
  background:
    radial-gradient(800px 320px at 85% 10%, rgba(222, 132, 53, 0.10), transparent 60%),
    var(--color-surface-soft);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 1128px) { .about-grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-xxl); } }
.about-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-base);
  padding-bottom: var(--space-lg);
}
.about-img {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: var(--space-sm);
}
.about-img img { width: 100%; height: 240px; object-fit: contain; }
.about-img--left { margin-top: var(--space-xl); }
.trust-card {
  position: absolute;
  bottom: 0;
  inset-inline-end: var(--space-base);
  max-width: 270px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card-hover);
  border: 1px solid var(--color-hairline-soft);
  border-inline-start: 4px solid var(--color-primary);
  padding: var(--space-base);
}
.trust-card__title { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; color: var(--color-ink); margin-bottom: 6px; }
.trust-card__check { color: var(--color-badge-green); }
.trust-card__text { font-size: 12px; color: var(--color-muted); line-height: 1.7; margin: 0; }
.trust-card__icon {
  position: absolute;
  top: -18px;
  inset-inline-end: -14px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(222, 132, 53, 0.4);
}
.about-title { font-size: var(--text-display-lg); font-weight: 800; color: var(--color-ink); margin-bottom: var(--space-md); }
.about-text { color: var(--color-muted); font-size: 15px; line-height: 1.9; margin-bottom: var(--space-lg); }
.trust-list { display: grid; gap: var(--space-base); }
.trust-item { display: flex; gap: var(--space-base); align-items: flex-start; background: #fff; border: 1px solid var(--color-hairline-soft); border-radius: var(--radius-md); padding: var(--space-base); box-shadow: var(--shadow-card); }
.trust-item__icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
}
.trust-item__icon--gold { background: var(--color-primary); }
.trust-item__icon--blue { background: #4f7fa8; }
.trust-item__icon--navy { background: var(--color-surface-dark); }
.trust-item__body h6 { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--color-ink); }
.trust-item__body p { margin: 0; font-size: 13px; color: var(--color-muted); line-height: 1.7; }

/* ---------- Banner duo ---------- */
.banner-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-base);
  padding-block: var(--space-lg) 0;
}
@media (min-width: 744px) { .banner-duo { grid-template-columns: 1fr 1fr; } }
.banner-duo__tile {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-hairline-soft);
  background: var(--color-surface-soft);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.banner-duo__tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.banner-duo__tile img { width: 100%; height: 220px; object-fit: cover; }
@media (max-width: 743.98px) { .banner-duo__tile img { height: 150px; } }

/* ---------- Category products (tabs) ---------- */
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center h2 { padding-inline-start: 0; }
.section-head--center h2::before { display: none; }
.section-head--center h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 2px;
  margin-top: 10px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-gold-light));
}
.section-head--center .section-sub { text-align: center; }
.cat-products .nav-pills { margin-bottom: var(--space-lg); }
.cat-products__bar { display: flex; justify-content: flex-start; margin-bottom: var(--space-sm); }
.cat-products__bar .all-products {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  min-height: 44px;
}
.cat-products__bar .all-products:hover { color: var(--color-link-hover); }

/* ---------- Brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-base);
  padding-block: var(--space-lg);
}
@media (min-width: 1128px) { .brand-grid { grid-template-columns: repeat(4, 1fr); } }
.brand-tile {
  display: block;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface-soft);
  border: 1px solid var(--color-hairline-soft);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.brand-tile img { width: 100%; height: 150px; object-fit: cover; }
@media (min-width: 1128px) { .brand-tile img { height: 170px; } }

/* ---------- Product / blog items in sliders ---------- */
.product-item { min-width: 0; }
.blog-item { min-width: 0; }

/* ---------- SEO description block ---------- */
.hideContent .body-post p { margin-bottom: var(--space-sm); }
