@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: normal;
}

body{
  font-family: 'Vazirmatn', Tahoma;
}

html{
  scroll-behavior: smooth;
}

#scrollTop{
  position:fixed;
  bottom:25px;
  left:25px;
  width:45px;
  height:45px;
  background:linear-gradient(45deg,#2563eb,#0ea5e9);
  border-radius:50%;
  display:flex;
  justify-content:center;
  align-items:center;
  color:#fff;
  cursor:pointer;
  box-shadow:0 10px 25px rgba(0,0,0,.3);
  display:none;
}



*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Vazir, Tahoma;
    direction:rtl;
    background:#f1f5f9;
    color:#0f172a;
}

/* ===== HEADER ===== */
.site-header{
    position:sticky;
    top:0;
    z-index:100;
    background:linear-gradient(135deg,#0c0c0c,#222222);
    padding:18px 60px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.logo{
    font-size:26px;
    font-weight:bold;
    color:#fff;
}

.site-header nav a{
    color:#fff;
    text-decoration:none;
    margin-right:22px;
    font-size:15px;
    position:relative;
}

.site-header nav a::after{
    content:'';
    position:absolute;
    right:0;
    bottom:-6px;
    width:0;
    height:2px;
    background:#fff;
    transition:.3s;
}

.site-header nav a:hover::after{
    width:100%;
}

/* ===== PRODUCTS ===== */
.products{
    max-width:1300px;
    margin:60px auto;
    padding:0 0px;
    display:grid;
    /* grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); */
	grid-template-columns:repeat(3,1fr);
    gap:30px;
}

.product-card{
    background:#fff;
    border-radius:18px;
    padding:20px;
    position:relative;
    transition:.3s;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
}

.product-card:hover{
    transform:translateY(-8px);
    box-shadow:0 25px 50px rgba(0,0,0,.15);
}

.product-card img{
    width:100%;
    height:180px;
    object-fit:cover;
    border-radius:25px;
}

.product-card h3{
    margin:15px 0 8px;
    font-size:18px;
}

.product-card p{
    font-size:14px;
    color:#475569;
    line-height:1.8;
}

/* ===== PRICE ===== */
.product-card del{
    color:#ef4444;
    font-size:14px;
}

.product-card strong{
    display:block;
    margin-top:5px;
    font-size:18px;
    color:#16a34a;
}

/* ===== DISCOUNT BADGE ===== */
.badge{
    position:absolute;
    top:15px;
    right:15px;
    background:linear-gradient(45deg,#ef4444,#dc2626);
    color:#fff;
    padding:6px 10px;
    font-size:13px;
    border-radius:999px;
    box-shadow:0 8px 20px rgba(239,68,68,.4);
}

/* ===== BUY BUTTON ===== */
.buy-btn{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin-top:15px;
    padding:10px;
    background:linear-gradient(45deg,#22c55e,#16a34a);
    color:#fff;
    text-decoration:none;
    border-radius:12px;
    font-size:15px;
    transition:.3s;
}

.buy-btn:hover{
    transform:scale(1.05);
    box-shadow:0 10px 25px rgba(34,197,94,.5);
}

.discount-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.loader-sm{
  width:16px;
  height:16px;
  border:2px solid #ccc;
  border-top-color:#2563eb;
  border-radius:50%;
  animation:spin 1s linear infinite;
  display:none;
}
@keyframes spin{
  to{transform:rotate(360deg)}
}



/* ===== SECTIONS ===== */
.about, .contact{
    max-width:1100px;
    margin:80px auto;
    padding:50px;
    background:#fff;
    border-radius:20px;
    box-shadow:0 15px 40px rgba(0,0,0,.08);
}

.about h2, .contact h2{
    margin-bottom:15px;
    color:#2563eb;
}

/* ===== FORM ===== */
.contact form{
    margin-top:20px;
    display:grid;
    gap:15px;
}

.contact input,
.contact textarea{
    width:100%;
    padding:14px;
    border-radius:12px;
    border:1px solid #cbd5f5;
    font-family:inherit;
}

.contact textarea{
    resize: vertical;
    min-height:120px;
    max-height:260px;
}


.contact button{
    background:linear-gradient(45deg,#2563eb,#0ea5e9);
    color:#fff;
    padding:12px;
    border:none;
    border-radius:12px;
    cursor:pointer;
}

.products,
.about,
.contact{
  max-width:1100px;
  margin:60px auto;
}


/* ===== FOOTER ===== */
footer{
    background:#020617;
    color:#cbd5e1;
    padding:40px 20px;
    text-align:center;
}

footer a{
    color:#38bdf8;
    text-decoration:none;
}


#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
}

/* ===== MODAL ===== */
#overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
  display:none;
  z-index:999;
}

#buyModal{
  position:fixed;
  top:50%;
  left:50%;
  /* transform:translate(-50%,-50%) scale(.85); */
  background:#fff;
  width:95%;
  max-width:10px;
  border-radius:22px;
  padding:28px;
  opacity:0;
  transition:.4s ease;
  /* z-index:-999; */
  max-width:520px;
  transform:translate(-50%,-50%) scale(0.1);
  z-index:1000;
}

#buyModal.show{
  transform:translate(-50%,-50%) scale(1);
  opacity:1; 
}

/* ===== HEADER ===== */
.modal-header{
  display:flex;
  gap:15px;
  align-items:center;
  margin-bottom:20px;
}

.modal-header img{
  width:70px;
  height:70px;
  object-fit:cover;
  border-radius:14px;
}

.modal-header h3{
  margin:0;
  font-size:18px;
}

.modal-header p{
  margin:4px 0 0;
  font-size:13px;
  color:#64748b;
}

/* ===== FORM ===== */
#buyModal form{
  display:grid;
  gap:14px;
}

#buyModal label{
  font-size:13px;
  color:#334155;
}

#buyModal input{
  padding:13px;
  border-radius:14px;
  border:1px solid #cbd5e1;
  font-family:inherit;
  transition:.3s;
}

#buyModal input:focus{
  outline:none;
  border-color:#2563eb;
  box-shadow:0 0 0 3px rgba(37,99,235,.15);
}

/* ===== RANGE ===== */
#quantityBox{
  display:none;
  margin-top:10px;
}

#quantityBox input[type=range]{
  width:100%;
}

.range-info{
  display:flex;
  justify-content:space-between;
  font-size:13px;
  color:#475569;
  margin-top:5px;
}

/* ===== DISCOUNT ===== */
.discount-row{
  display:flex;
  gap:10px;
  align-items:center;
}

.discount-row button{
  background:#e5e7eb;
  border:none;
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
}

/* ===== PAY ===== */
.pay-btn{
  margin-top:10px;
  padding:14px;
  background:linear-gradient(45deg,#22c55e,#16a34a);
  color:#fff;
  border:none;
  border-radius:16px;
  font-size:16px;
  cursor:pointer;
}

.pay-btn:hover{
  box-shadow:0 12px 30px rgba(34,197,94,.45);
}


@media (max-width: 768px){

  /* ===== HEADER ===== */
  .site-header{
    padding:16px 20px;
    flex-direction:column;
    gap:14px;
  }

  .logo{
    font-size:22px;
  }

  .site-header nav a{
    margin:0 10px;
    font-size:14px;
  }

  /* ===== PRODUCTS ===== */
  .products{
    grid-template-columns:1fr;
    gap:20px;
    padding:0 16px;
    margin:30px auto;
  }

  .product-card{
    padding:16px;
    border-radius:16px;
  }

  .product-card img{
    height:200px;
    border-radius:18px;
  }

  .product-card h3{
    font-size:18px;
    margin:14px 0 6px;
  }

  .product-card p{
    font-size:14px;
    line-height:1.9;
  }

  .product-card del{
    font-size:14px;
  }

  .product-card strong{
    font-size:18px;
  }

  .badge{
    top:12px;
    right:12px;
    font-size:12px;
    padding:6px 10px;
  }

  .buy-btn{
    margin-top:14px;
    padding:14px;
    font-size:15px;
    border-radius:14px;
  }

  /* ===== ABOUT & CONTACT ===== */
  .about,
  .contact{
    padding:24px;
    margin:40px 16px;
  }

  .about h2,
  .contact h2{
    font-size:20px;
  }

  .about p,
  .contact p{
    font-size:14px;
    line-height:2;
  }

  /* ===== FORMS ===== */
  .contact input,
  .contact textarea{
    font-size:14px;
    padding:14px;
  }

  .contact button{
    font-size:15px;
    padding:14px;
  }

  /* ===== MODAL ===== */
  #buyModal{
    width:92%;
    padding:22px;
  }

  .modal-header img{
    width:60px;
    height:60px;
  }

  .modal-header h3{
    font-size:16px;
  }

  #buyModal label{
    font-size:13px;
  }

  #buyModal input{
    font-size:14px;
    padding:14px;
  }

  .pay-btn{
    font-size:15px;
    padding:14px;
  }

  /* ===== FOOTER ===== */
  footer{
    padding:30px 16px;
  }

  footer img{
    width:120px;
  }

  /* ===== SCROLL TOP ===== */
  #scrollTop{
    width:44px;
    height:44px;
    font-size:18px;
  }
}



.contact-info div{
  display:flex;
  justify-content:space-between;
  padding:10px 0;
  border-bottom:1px dashed #cbd5e1;
}
.contact-info a{
  direction:ltr;
  unicode-bidi: embed;
  display:inline-block;
}


#loading{
  text-align:center;
  padding:40px;
}

footer{
  position:relative;
  overflow:hidden;
}

.footer-bg{
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}

.circle{
  position:absolute;
  border-radius:50%;
  background:white;
  filter:none;
}

@keyframes floatRandom{
  from{
    transform:translate(0,0);
  }
  to{
    transform:translate(var(--move-x), var(--move-y));
  }
}


.trustZarin,.trustEnamad{
  position:relative;
  z-index:200;
  opacity:0.35;
  transition:.7s;
}


.trustZarin:hover{
	opacity:1;
}
.trustEnamad:hover{
	opacity:1;
}


.footer-content::before{
  content:'';
  position:absolute ;
  inset:-50px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index:-1;
}





