/* ====== کاروسل ====== */
main{
  min-height:calc(100vh - 56px);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:10px 0;
}

.stage{
  width:min(1100px,88%);
  height:var(--stage-h);
  margin:0 auto;
  perspective:1400px;
  position:relative;
}

.ring{
  width:100%;
  height:100%;
  position:relative;
  transform-style:preserve-3d;
  transition:transform .8s cubic-bezier(.2,.6,.2,1);
}

.card{
  position:absolute;
  top:50%;
  left:50%;
  transform-style:preserve-3d;
  width:min(260px,70vw);
  aspect-ratio:4/5;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:var(--shadow);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:linear-gradient(135deg,#223456,#1a2745);
  color:#fff;
}

.label{
  margin:12px;
  padding:.45rem .9rem;
  border-radius:999px;
  background:rgba(239,239,239,.12);
  color:var(--accent);
  font-weight:800;
  backdrop-filter:blur(4px);
}


.dots{
  display:flex;
  gap:6px;
  justify-content:center;
  margin-top:20px;
}
.dot{
  width:8px;
  height:8px;
  border:0;
  border-radius:999px;
  background:#385E9D;
  opacity:.6;
}
.dot.active{
  background:var(--accent);
  opacity:1;
}

/* نسخه اصلاح‌شده کارت و تصویر */
.card{
  position:absolute;
  top:50%;
  left:50%;
  transform-style:preserve-3d;
  width:min(260px, 70vw);
  aspect-ratio:4/5;
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255, 255, 255, .12);
  box-shadow:var(--shadow);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  background:#323643;
  color:#fff;
}

/* تصویر داخل کارت */
.card-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  transition:transform 0.3s ease;
}
.card:hover .card-img{
  transform:scale(1.05);
}

/* برچسب روی تصویر (override) */
.label{
  position:relative;
  z-index:1;
  margin:12px;
  padding:.45rem .9rem;
  border-radius:999px;
  background:#F7F7F7;
  color:var(--accent);
  font-weight:800;
  backdrop-filter:blur(4px);
}

/* ===== Home sections (minimal, non-breaking) ===== */
.container{
  width:min(1200px,92%);
  margin-inline:auto;
  padding:24px 0;
}
.home-sections{
  display:flex;
  flex-direction:column;
  gap:28px;
}

.card-box{
  background:rgba(0,0,0,.12);
  border:1px solid rgba(255,255,255,.12);
  border-radius:16px;
  padding:18px;
  box-shadow:0 8px 24px rgba(0,0,0,.15);
}
.card-box h2{
  margin:0 0 .4rem 0;
  color:var(--ink);
  font-size:1.25rem;
}
.card-box p{
  margin:.2rem 0 1rem 0;
  color:var(--ink);
  opacity:.9;
}

/* Buttons */
.btn-primary{
  background:var(--accent);
  color:#1b1b1b;
  font-weight:800;
  padding:.55rem 1rem;
  border-radius:999px;
  display:inline-block;
}
.btn-primary:hover{filter:brightness(1.05)}

.btn-link{
  color:var(--accent);
  font-weight:700;
}

.btn-ghost{
  border:1px solid var(--accent);
  color:var(--accent);
  padding:.55rem 1rem;
  border-radius:999px;
  display:inline-block;
}
.btn-ghost:hover{
  background:rgba(255,87,12,.08);
}

/* Header row in products */
.head-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.thumb-nav{
  display:flex;
  gap:6px;
}
.thumb-btn{
  width:38px;
  height:38px;
  border-radius:10px;
  border:0;
  background:rgba(255,255,255,.12);
  color:var(--accent);
  cursor:pointer;
}
.thumb-btn:hover{
  background:rgba(255,255,255,.2);
}

/* Thumbnail slider (square) */
.thumb-track{
  display:grid;
  grid-auto-flow:column;
  grid-auto-columns:140px;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scrollbar-width:thin;
  padding-bottom:6px;
}
.thumb{
  display:block;
  scroll-snap-align:center;
  width:140px;
  aspect-ratio:1/1;
  border-radius:12px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.12);
  background:#2f323b;
}
.thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* CTA */
.cta-box{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background:linear-gradient(135deg, rgba(0,0,0,.12), rgba(0,0,0,.18));
}
.cta-actions{
  display:flex;
  gap:10px;
}
.center{
  text-align:center;
  margin-top:10px;
}

/* ریسپانسیو: موبایل */
@media (max-width:720px){
  :root{ --stage-h:300px; }

  main{
    min-height:auto;
    padding:16px 0 0;
  }

  .stage{
    width:100%;
    touch-action:pan-y;
  }

  .card{
    width:min(200px,60vw);
    border-radius:14px;
  }

  .label{
    font-size:.82rem;
    padding:.35rem .75rem;
    margin:8px;
  }

  .dots{margin-top:14px}

  .card-box{padding:14px}
  .thumb-track{grid-auto-columns:110px}
  .thumb{width:110px}
  .cta-box{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media (max-width:400px){
  :root{ --stage-h:260px; }
  .card{width:min(170px,58vw)}
}

/* ریسپانسیو: دسکتاپ بزرگ */
@media (min-width:1200px){
  :root{ --stage-h:420px; }
}
