/* =========================
   FONT – VAZIR
   مسیر فونت‌ها: assets/fonts/
   ========================= */
@font-face{
  font-family:"Vazir";
  src:
    url("../fonts/Vazir.woff2") format("woff2"),
    url("../fonts/Vazir.woff") format("woff"),
    url("../fonts/Vazir.ttf") format("truetype");
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

/* =========================
   RESET & GLOBAL
   ========================= */
*{ box-sizing:border-box; }

html, body{
  max-width:100%;
  overflow-x:hidden;
}

body{
  margin:0;
  font-family:"Vazir", sans-serif;
  direction:rtl;
  background:#f8f5f0;
  color:#222;
}

a{ text-decoration:none; color:inherit; }

.container{
  width:90%;
  max-width:1200px;
  margin:auto;
}

/* جلوگیری از هر بک‌گراند تصویری ناخواسته */
body, main, section, header, footer{
  background-image:none !important;
}

/* ایمن‌سازی تصاویر */
img{
  max-width:100%;
  height:auto;
  display:block;
}

/* =========================
   HEADER (همون چیزی که گفتی خوبه)
   ========================= */
.header{
  background:#fff;
  border-bottom:1px solid #eee;
}

.header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:110px;
  padding:14px 0;
}

.logo{
  display:flex;
  align-items:center;
  max-height:100px;
  overflow:hidden;
}

.brand-logo{
  max-height:90px;
  width:auto;
  max-width:320px;
  object-fit:contain;
}

.header-actions{
  display:flex;
  align-items:center;
}

.btn-how{
  background:#fff;
  border:1px solid #e3e3e3;
  padding:12px 18px;
  border-radius:20px;
  font-size:14px;
  font-weight:700;
}

/* =========================
   HERO – نوار کرمی (فیکس قطعی لوگو)
   ========================= */
.hero-slide{
  background:#d7c1a4;
  border-radius:22px;
  overflow:hidden;
}

/* ارتفاع قطعی می‌دیم تا لوگو 100% نشه و گم نشه */
.hero-split{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:190px;            /* ✅ مهم */
}

/* متن سمت راست */
.hero-content{
  flex:1;
  padding:36px 42px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}

.hero-sub{
  margin:0 0 18px;
  color:#fff;
  font-size:26px;
  font-weight:900;
}

/* ستون لوگو سمت چپ */
.hero-logo-wrap{
  width:340px;
  height:190px;            /* ✅ هم‌قد نوار */
  background:rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;         /* ✅ اگر لوگو بزرگ بود بیرون نزنه */
}

/* خود لوگو: با max- محدود می‌کنیم تا حتماً دیده بشه */
.hero-logo-big{
  max-height:160px;
  max-width:300px;
  width:auto;
  height:auto;
  object-fit:contain;
}

/* =========================
   SECTION TITLE
   ========================= */
.section-title{
  text-align:center;
  margin:28px 0;
  font-size:22px;
}

/* =========================
   AMAZING SECTION (کارت‌ها چسبیده + تایمر متن زیر عدد)
   ========================= */
.amazing-section{
  background:linear-gradient(90deg,#7b1e3a,#c22b4f);
  border-radius:16px;
  padding:18px;
  margin:22px 0;
  color:#fff;
  display:grid;
  grid-template-columns:1fr 300px;
  gap:14px;
  overflow:hidden;
}

.amazing-track{
  display:flex;
  overflow:auto;
  gap:0;
}

/* کارت‌ها چسبیده مثل عکس */
.amazing-item{
  min-width:220px;
  background:#fff;
  color:#222;
  padding:10px;
  border-left:2px solid rgba(0,0,0,.06);
}

.amazing-item:first-child{
  border-radius:12px 0 0 12px;
}
.amazing-item:last-child{
  border-radius:0 12px 12px 0;
  border-left:none;
}

.amazing-item img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:10px;
  background:#f2f2f2;
}

.badge-amazing{
  position:absolute;
  top:10px;
  right:10px;
  background:#ff2d55;
  color:#fff;
  font-size:12px;
  padding:4px 8px;
  border-radius:10px;
}

.amazing-item .title{
  margin-top:10px;
  font-weight:700;
  font-size:13px;
  min-height:34px;
}

.price-row{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
  font-size:13px;
}
.old-price{ color:#999; text-decoration:line-through; font-size:12px; }
.new-price{ font-weight:900; }

.amazing-right{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:12px;
}

/* تایمر: متن زیر عدد */
.timer{
  display:flex;
  gap:8px;
  justify-content:center;
}

.timer span{
  background:#fff;
  color:#222;
  border-radius:10px;
  padding:10px 12px;
  min-width:62px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
}

.timer span b{
  font-size:16px;
  font-weight:900;
  line-height:1;
}

.timer span small{
  font-size:11px;
  opacity:.8;
  font-weight:700;
  line-height:1;
}

/* =========================
   PRODUCTS
   ========================= */
.products-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:24px;
}

.product-card{
  background:#fff;
  border-radius:16px;
  padding:14px;
}

.product-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:12px;
  background:#f2f2f2;
}

.product-card h3{
  font-size:14px;
  margin:10px 0 8px;
}

.product-card .price{
  font-weight:900;
}

.empty-box{
  background:#fff;
  border:1px solid #eee;
  border-radius:16px;
  padding:16px;
  color:#666;
}

/* =========================
   FOOTER
   ========================= */
.footer{
  background:#f3eadc;
  margin-top:40px;
  padding:30px 0;
}

.footer-content{
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:22px;
}

.footer-logo{
  max-height:70px;
  width:auto;
  object-fit:contain;
}

.footer-bottom{
  background:#8b5a2b;
  color:#fff;
  text-align:center;
  padding:10px;
  margin-top:20px;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width:900px){
  .hero-split{
    flex-direction:column;
    height:auto;
  }

  .hero-logo-wrap{
    width:100%;
    height:200px;
  }

  .hero-content{
    align-items:center;
    text-align:center;
  }

  .products-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .amazing-section{
    grid-template-columns:1fr;
  }
}

@media (max-width:520px){
  .products-grid{ grid-template-columns:1fr; }

  .hero-content{
    padding:26px;
  }

  .hero-sub{
    font-size:22px;
  }

  .hero-logo-big{
    max-height:150px;
    max-width:280px;
  }
}

/* ===== Empty Amazing Message (سمت راست، کمی پایین) ===== */
.amazing-track{
  min-height:220px;
  display:flex;
  align-items:flex-start;   /* ⬆️ از بالا شروع */
}

.amazing-empty{
  margin-top:120px;          /* ⬇️ کمی پایین‌تر */
  padding-right:170px;      /* فاصله از راست */
  
  color:#fff;
  font-size:28px;
  font-weight:900;
  opacity:.95;

  text-align:right;        /* ✅ سمت راست */
  direction:rtl;

  white-space:nowrap;
}

.empty-products {
    width: 100%;
    text-align: center;
    padding: 80px 20px;
    font-size: 20px;
    color: #555;
    background: #f9f6ef;
    border-radius: 12px;
    margin: 40px 0;
}

/* فقط پایین آوردن متن معرفی فوتر */
.footer-desc{
  margin-top: 70px;   /* اگر کم بود: 48px */
  line-height: 2.1;
}

/* =========================
   MOBILE IMPROVE (Add to end)
   ========================= */
@media (max-width:520px){

  .container{
    width: 92%;
  }

  /* Header جمع‌وجورتر */
  .header-row{
    min-height: 82px;
    padding: 10px 0;
    gap: 10px;
    flex-wrap: wrap;
  }

  .brand-logo{
    max-height: 60px;
    max-width: 220px;
  }

  .btn-how{
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 13px;
    width: 100%;
    text-align: center;
  }

  /* Hero بهتر روی موبایل */
  .hero-content{
    padding: 18px 16px;
  }

  .hero-sub{
    font-size: 18px;
    margin-bottom: 12px;
  }

  .hero-logo-wrap{
    height: 160px;
  }

  .hero-logo-big{
    max-height: 120px;
    max-width: 220px;
  }

  /* Amazing کارت‌ها کوچیک‌تر و روان‌تر */
  .amazing-section{
    padding: 12px;
    border-radius: 14px;
    gap: 12px;
  }

  .amazing-item{
    min-width: 170px;
    padding: 8px;
  }

  .timer span{
    min-width: 54px;
    padding: 8px 10px;
  }

  .amazing-empty{
    margin-top: 110px;
    padding-right: 20px;   /* روی موبایل 170px زیاد بود */
    font-size: 20px;
    white-space: normal;
  }

  /* Products فاصله و متن بهتر */
  .product-card{
    padding: 12px;
  }
  .product-card h3{
    font-size: 13px;
  }

  /* Footer: متن معرفی پایین‌تر ولی نه خیلی */
  .footer{
    padding: 22px 0;
  }

  .footer-desc{
    margin-top: 18px;   /* ✅ 70 برای موبایل زیادیه */
    font-size: 13px;
  }

  .footer-bottom{
    font-size: 12px;
    padding: 10px 8px;
  }
}

/* تبلت کوچک هم بهتر */
@media (max-width:900px){
  .amazing-section{
    grid-template-columns: 1fr;
  }
}
