/* css/style.css
   برای: /irancell-zaarand/css/style.css
   ویژگی‌ها: RTL, responsive, header, banner, products, product-detail, cart, forms, footer
*/

:root{
  --brand:#ff7f00; /* نارنجی ایرانسل مانند */
  --brand-dark:#e46a00;
  --bg:#f5f5f5;
  --card:#ffffff;
  --text:#333;
  --muted:#666;
  --radius:12px;
  --max-width:1200px;
}

/* پایه */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: "Tahoma", "Vazir", sans-serif;
  background:var(--bg);
  color:var(--text);
  direction:rtl; /* راست‌به‌چپ */
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}

/* ظرف کلی */
.container{
  width:94%;
  max-width:var(--max-width);
  margin:0 auto;
  padding:20px 0;
}

/* لینک‌ها و دکمه‌ها */
a{color:inherit; text-decoration:none}
.btn{
  display:inline-block;
  background:var(--brand);
  color:#fff;
  padding:10px 16px;
  border-radius:8px;
  text-decoration:none;
  font-weight:600;
  transition:background .15s ease, transform .08s ease;
}
.btn:hover{background:var(--brand-dark); transform:translateY(-1px)}
.btn-secondary{
  background:#fff;
  color:var(--brand);
  border:1px solid var(--brand);
}

/* Header / Nav */
header{
  background:var(--brand);
  color:#fff;
  padding:12px 0;
  box-shadow:0 2px 6px rgba(0,0,0,.06);
  position:sticky;
  top:0;
  z-index:50;
}
header .container{display:flex;align-items:center;justify-content:space-between;gap:10px}
.logo a{color:#fff;font-size:20px;font-weight:700}
nav ul{list-style:none;display:flex;gap:18px;align-items:center;margin:0;padding:0}
nav ul li a{color:#fff;font-weight:600}

/* موبایل: منوی ساده (قابل توسعه به هَمبرگر) */
@media (max-width:800px){
  header .container{flex-wrap:wrap}
  nav ul{flex-wrap:wrap;gap:10px}
  .logo a{font-size:18px}
}

/* بنر */
.banner{
  position:relative;
  background:linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,0.4));
  margin-top:18px;
  border-radius:14px;
  overflow:hidden;
  display:flex;
  align-items:center;
  min-height:240px;
}
.banner-img{
  width:40%;
  object-fit:cover;
  height:100%;
  display:block;
}
.banner-text{
  padding:28px;
  flex:1;
}
.banner-text h1{font-size:28px;margin-bottom:8px}
.banner-text p{color:var(--muted);margin-bottom:14px}
@media (max-width:900px){
  .banner{flex-direction:column; text-align:center}
  .banner-img{width:100%; height:200px}
  .banner-text{padding:16px}
}

/* بخش محصولات (grid) */
.products{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  margin-top:18px;
  align-items:start;
}
.product-card{
  background:var(--card);
  border-radius:var(--radius);
  box-shadow:0 6px 20px rgba(0,0,0,.05);
  padding:14px;
  text-align:center;
  transition:transform .12s ease, box-shadow .12s ease;
}
.product-card:hover{transform:translateY(-6px); box-shadow:0 10px 30px rgba(0,0,0,.08)}
.product-card img{width:100%; height:160px; object-fit:cover; border-radius:10px}
.product-card h3{margin:12px 0 6px; font-size:16px}
.product-card p{color:var(--muted); margin-bottom:10px}
.product-card .btn{padding:8px 12px; font-size:14px}

/* واکنش‌گرایی گرید */
@media (max-width:1100px){ .products{grid-template-columns:repeat(3,1fr)} }
@media (max-width:800px){ .products{grid-template-columns:repeat(2,1fr)} }
@media (max-width:480px){ .products{grid-template-columns:repeat(1,1fr)} }

/* صفحه جزئیات محصول */
.product-detail .product-card-detail{
  display:flex;
  gap:20px;
  align-items:flex-start;
  margin-top:20px;
  background:var(--card);
  padding:18px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.04);
}
.product-card-detail img{width:360px; max-width:40%; border-radius:10px; object-fit:cover}
.product-info{flex:1}
.product-info h2{margin-top:0}
.product-info .price{font-weight:700;color:var(--brand); margin:10px 0}

/* واکنش‌گرایی جزئیات */
@media (max-width:900px){
  .product-detail .product-card-detail{flex-direction:column}
  .product-card-detail img{width:100%; max-width:100%}
}

/* بخش درباره ما و اخبار */
.about-us, .news{
  margin-top:26px;
  background:linear-gradient(180deg, #fff, #fff);
  padding:18px;
  border-radius:12px;
  box-shadow:0 6px 20px rgba(0,0,0,.03);
}

/* جدول سبد خرید */
.cart table{width:100%;border-collapse:collapse;margin-top:12px;background:var(--card);border-radius:10px;overflow:hidden}
.cart thead th{background:#fafafa;padding:12px;text-align:right;border-bottom:1px solid #eee;font-weight:700}
.cart tbody td{padding:12px;border-bottom:1px solid #f0f0f0}
.cart input[type="number"]{width:80px;padding:6px;border:1px solid #ddd;border-radius:6px;text-align:center}
.btn-remove{display:inline-block;background:transparent;color:#d9534f;border:1px solid #f4d8d8;padding:6px 8px;border-radius:6px}

/* فرم‌ها */
form input[type="text"], form input[type="password"], form input[type="email"], form textarea{
  width:100%;
  padding:10px 12px;
  margin-bottom:10px;
  border:1px solid #ddd;
  border-radius:8px;
  background:#fff;
}
form textarea{min-height:120px;resize:vertical}

/* هدر سرفصل‌ها */
h1,h2{color:var(--text);margin:8px 0}
h2{font-size:20px}

/* فوتر */
footer{
  margin-top:32px;
  background:#222;
  color:#ddd;
  padding:18px 0;
  text-align:center;
  border-top:4px solid rgba(255,255,255,.03);
}
footer p{margin:0}

/* المان‌های کوچک */
.badge{
  display:inline-block;
  background:rgba(255,255,255,.12);
  color:#fff;
  padding:4px 8px;
  border-radius:999px;
  font-size:13px;
}

/* کمک‌های دسترس‌پذیری */
.sr-only{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* تنظیمات چاپ (اختیاری) */
@media print{
  header, footer, .btn {display:none}
  body{background:#fff;color:#000}
}



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

.contact-section h1 {
    text-align: center;
    margin-bottom: 25px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
}

.contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.contact-form textarea {
    height: 140px;
}

.success {
    background: #d4ffc4;
    padding: 12px;
    border-radius: 8px;
    color: #056901;
    margin-bottom: 15px;
}

.error {
    background: #ffe1e1;
    padding: 12px;
    border-radius: 8px;
    color: #b30000;
    margin-bottom: 15px;
}

.contact-info {
    max-width: 600px;
    margin: 30px auto;
    background: #fafafa;
    padding: 20px;
    border-radius: 10px;
    border-right: 5px solid #ffd700;
}

.categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.categories a {
    padding: 10px 20px;
    background: #f1f1f1;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 16px;
    transition: 0.3s;
    border: 1px solid #ddd;
}

.categories a:hover {
    background: #ffd000;
    color: #000;
    border-color: #ffcc00;
}