/* =======================================================
   🟣 SpencoGEL – قالب فروشگاهی مدرن
   نسخه نهایی حرفه‌ای، ریسپانسیو و هماهنگ با Django
   ======================================================= */

/* Estedad — self-hosted from the exact Bunny Fonts WOFF2 files. */
/* latin */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-400-normal.4b261ffb80e6.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* arabic */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-arabic-400-normal.3a76e0776c8a.woff2") format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

/* latin-ext */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-ext-400-normal.a65809f36211.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* vietnamese */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 400;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-vietnamese-400-normal.a246e446379c.woff2") format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* latin */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-500-normal.209c3b3cb7ed.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* arabic */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-arabic-500-normal.232931c2e883.woff2") format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

/* latin-ext */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-ext-500-normal.058416d9dd33.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* vietnamese */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 500;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-vietnamese-500-normal.90881800b1af.woff2") format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* latin */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-600-normal.627c8ddc0012.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* arabic */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-arabic-600-normal.2475ccdeb3da.woff2") format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

/* latin-ext */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-ext-600-normal.0fcf8e325d14.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* vietnamese */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 600;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-vietnamese-600-normal.cbc09225f323.woff2") format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* latin */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-700-normal.2d0e4b751f0b.woff2") format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* arabic */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-arabic-700-normal.367bec62dd91.woff2") format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

/* latin-ext */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-latin-ext-700-normal.c3d2a73c167c.woff2") format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* vietnamese */
@font-face {
  font-family: 'Estedad';
  font-style: normal;
  font-weight: 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("../fonts/estedad/estedad-vietnamese-700-normal.df204ad1ab09.woff2") format('woff2');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* 🎨 تنظیمات پایه */


:root {
  --spg-purple: #7F2A7D;
  --spg-purple-dark: #5a1f5a;
  --text-color: #222;
  --bg-light: #faf7fb;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Estedad", sans-serif;
  color: var(--text-color);
  background: #fff;
  line-height: 1.7;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

a:hover {
  color: var(--spg-purple);
}

.container {
  width: 92%;
  max-width: 1300px;
  margin: 0 auto;
}

/* =======================================================
   🔹 کنترل نسخه‌ها
   ======================================================= */
.only-desktop { display: block; }
.only-mobile { display: none; }

@media (max-width: 768px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: block !important; }
}


/* =======================================================
   🦶 درباره‌ما
   ======================================================= */
/* =========================
   ABOUT SECTION – Digi-like Minimal (Final)
   - compact text
   - button: subtle (not big)
   - mobile: stacked + neat spacing
   ========================= */

.about-section{
  background:
    radial-gradient(900px 380px at 15% 10%, rgba(222,200,237,.35), transparent 60%),
    radial-gradient(800px 320px at 85% 25%, rgba(255,246,218,.55), transparent 55%),
    linear-gradient(180deg, #fbf9fe, #ffffff);
  padding: 72px 20px;
}

.about-content{
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

/* ---------- Text ---------- */
.about-text{
  flex: 1;
  min-width: 0;
}

.about-text h2{
  color: var(--spg-purple);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 14px;
}

.about-text p{
  color: rgba(20,20,20,.78);
  font-size: 15px;
  line-height: 1.95;
  margin: 0 0 16px;
  max-width: 560px;

  /* متن طولانی تو صفحه‌ی خانه جمع‌وجور دیده بشه */
  display: -webkit-box;
  -webkit-line-clamp: 5;          /* تعداد خط‌ها */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Button (subtle, brandy) */
.about-text .btn-primary{
  display: inline-flex;
  align-items: center;
  gap: 8px;

  background: transparent;
  color: var(--spg-purple);

  padding: 0;
  border-radius: 0;
  text-decoration: none;

  font-size: 14px;
  font-weight: 800;

  border-bottom: 1px solid rgba(153,64,153,.35);
  transition: .2s ease;
}

.about-text .btn-primary:hover{
  color: var(--spg-purple-dark);
  border-bottom-color: rgba(153,64,153,.65);
}

/* ---------- Image ---------- */
.about-image{
  flex: 0 0 420px;
  max-width: 420px;
}

.about-image img{
  width: 100%;
  display: block;
  border-radius: 18px;

  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

/* =========================
   TABLET
   ========================= */
@media (max-width: 992px){
  .about-section{ padding: 60px 18px; }
  .about-content{ gap: 36px; }
  .about-image{ flex-basis: 360px; max-width: 360px; }
  .about-text h2{ font-size: 24px; }
}

/* =========================
   MOBILE
   ========================= */
@media (max-width: 768px){
  .about-section{
    padding: 44px 16px;
  }

  .about-content{
    flex-direction: column;
    text-align: center;
    gap: 22px;
  }

  .about-text h2{
    font-size: 20px;
    margin-bottom: 10px;
  }

  .about-text p{
    font-size: 14px;
    line-height: 1.9;
    max-width: 100%;
    -webkit-line-clamp: 6; /* موبایل کمی بیشتر */
    margin-bottom: 14px;
  }

  /* دکمه در موبایل هم بزرگ و دکمه‌ای نشه */
  .about-text .btn-primary{
    justify-content: center;
    font-size: 13.5px;
  }

  .about-image{
    width: 100%;
    max-width: 360px;
  }

  .about-image img{
    border-radius: 16px;
  }
}

/* =======================================================
   🩶 SpencoGEL Footer – Clean, Minimal, SEO Friendly
   ======================================================= */

.footer{
  background:#f8f8f8;
  border-top:1px solid rgba(0,0,0,.05);
  padding:48px 0 24px;
  font-family: Estedad, Vazirmatn, Arial;
  font-size:14px;
  color:#444;
}

.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:40px;
  padding-bottom:32px;
}

/* -----------------------
   About / Brand
----------------------- */
.f-about img{
  height:42px;
  margin-bottom:14px;
}

.f-about p{
  font-size:13.5px;
  line-height:1.9;
  color:#555;
  margin-bottom:14px;
}

.certs{
  display:flex;
  gap:10px;
  align-items:center;
}

.certs img{
  height:36px;
  opacity:.85;
  transition:.2s;
}
.certs img:hover{
  opacity:1;
  transform:translateY(-2px);
}

/* -----------------------
   Columns
----------------------- */
.footer h4{
  font-size:15px;
  font-weight:700;
  color:var(--spg-purple);
  margin-bottom:12px;
}

.footer a{
  display:block;
  font-size:14px;
  color:#555;
  margin:6px 0;
  transition:.2s;
  text-decoration:none;
}
.footer a:hover{
  color:var(--spg-purple);
}

/* -----------------------
   Contact & Social
----------------------- */
.f-col p{
  font-size:13.5px;
  margin:6px 0;
  color:#555;
}

.f-col i{
  color:var(--spg-purple);
  margin-left:6px;
}

.socials{
  display:flex;
  gap:14px;
  margin-top:10px;
}

.socials a{
  font-size:18px;
  color:#666;
  transition:.25s;
}
.socials a:hover{
  color:var(--spg-purple);
  transform:translateY(-2px);
}

/* -----------------------
   Footer Bottom
----------------------- */
.footer-bottom{
  border-top:1px solid rgba(0,0,0,.05);
  padding-top:16px;
}

.footer-bottom p{
  text-align:center;
  font-size:12.8px;
  color:#777;
}

/* ===========================
  جستوجو موبایل
=========================== */
.search-results .item img {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover !important;
    border-radius: 8px;
}

.search-results {
    max-height: 300px;
    overflow-y: auto;
}

/* ===========================
   🔍 جستجوی زنده – نسخه نهایی
   =========================== */

.search-results {
    position: absolute;
    top: 48px;
    right: 0;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,.1);
    display: none;
    padding: 8px 0;
    z-index: 9999;
    max-height: 300px;
    overflow-y: auto;
}

.search-results .item {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-results .item:hover {
    background: #f7f7f7;
}

.search-results .item img {
    width: 45px !important;
    height: 45px !important;
    object-fit: cover;
    border-radius: 8px;
}

/* جلوگیری از بزرگ شدن نتایج */
.search-results,
.search-results * {
    max-width: 100% !important;
    box-sizing: border-box !important;
}
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.search-card {
    background: #fff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    text-align: center;
    transition: .3s;
    display: block;
}

.search-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 15px rgba(0,0,0,.12);
}

.search-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    border-radius: 8px;
    background: #fafafa;

}
/* =========================
دسته بندی ========================= */

.condition-section {
  padding: 40px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 24px;
  color: #7F2A7D;
}

.condition-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* دسکتاپ */
  gap: 20px;
}

.condition-card {
  background: #fff;
  border: 1px solid rgba(153, 64, 153, 0.15);
  border-radius: 16px;
  padding: 16px;
}

.condition-card h3 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #333;
}

.condition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* ۴ آیتم */
  gap: 10px;
}

.condition-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  gap: 6px;
  text-decoration: none;
  color: #333;
}

.condition-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(153, 64, 153, 0.15);
  transition: 0.25s ease;
}

.condition-item span {
  font-size: 0.8rem;
}

.condition-item:hover img {
  transform: scale(1.03);
  border-color: #7F2A7D;
}


/* 📱 موبایل */
@media (max-width: 992px) {
  .condition-cards {
    grid-template-columns: 1fr; /* کارت‌ها زیر هم */
  }
}
