/* استایل این صفحه فقط بخش‌های ضروری رو اضافه می‌کنه */

/* بک‌گراند و فونت و رنگ‌ها رو از styles.css اصلی می‌گیریم */
body.shop {
  /* برای اطمینان از اینکه کلاس shop فقط تو این صفحه هست */
}

/* بخش فروشگاه */
.shop-page {
  padding: var(--section-padding, 60px 0);
}

.products {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.product-media {
  width: 100%;
  aspect-ratio: 4 / 3;             /* نسبت کادر — قابل تغییر */
  background-size: contain;        /* تصویر کامل دیده میشه */
  background-position: center;     /* وسط‌چین بشه */
  background-repeat: no-repeat;    /* تکرار نشه */
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.product-card {
  font-size: 0.9rem;
}

/* لایه پاپ‌آپ (اگر ندارید) */
.popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.25s ease;
  z-index: 999;
}

.popup-content {
  position: relative;
  background: rgba(22,10,42,0.95);
  padding: 22px;
  max-width: 360px;
  width: calc(100% - 32px);
  text-align: center;
  animation: scaleIn 0.25s ease;
}
.close-btn {
  position: absolute;
  top: 8px; left: 12px; /* RTL */
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
}

/* دکمه کپی مدرن */
.actions { margin-top: 14px; }
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.10), rgba(255,255,255,0.06));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 8px 24px rgba(255,0,204,0.18);
}
.copy-btn .icon { width: 18px; height: 18px; }
.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255,0,204,0.28);
  background: linear-gradient(180deg, rgba(255,0,255,0.16), rgba(255,0,255,0.08));
}
.copy-btn:active { transform: translateY(0); }
.copy-btn.copied {
  background: linear-gradient(90deg, #16a34a, #22c55e);
  box-shadow: 0 8px 24px rgba(34,197,94,0.35);
}
.copy-btn.copied .icon { display: none; }
.copy-btn.copied span::before {
  content: "کپی شد ✓";
}

/* Toast اعلان */
.toast {
  position: fixed;
  bottom: 22px; right: 50%;
  transform: translateX(50%) translateY(20px);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1000;
  font-weight: 600;
}
.toast.show {
  opacity: 1;
  transform: translateX(50%) translateY(0);
}

/* انیمیشن‌ها */
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes scaleIn { from{transform:scale(.92)} to{transform:scale(1)} }


@font-face{
    font-family: vazir;
        src: url(./images/Vazir-Bold-FD-WOL.ttf);
}

*{
    direction: rtl;
    font-family: vazir;
    box-sizing: border-box;
}

body{

    font-size: 16px ;
    margin: 0px ;
}

a{

    text-decoration: none;
}


.custom-popover {
    --bs-popover-max-width: 200px;
    --bs-popover-border-color: var(--bd-violet-bg);
    --bs-popover-header-bg: var(--bd-violet-bg);
    --bs-popover-header-color: var(--bs-white);
    --bs-popover-body-padding-x: 1rem;
    --bs-popover-body-padding-y: .5rem;
  }