/* ===== RESET ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Tahoma, sans-serif;
  background: #f4f5f7;
  direction: rtl;
  color: #333;
}



/* ================= HEADER ================= */
.header {
  background: linear-gradient(135deg, #2c3e50, #4ca1af);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo img {
  width: 250px; /* اندازه لوگو در لپ‌تاپ */
  height: auto;
  object-fit: contain;
}

/* Nav */
.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: white;
  text-decoration: none;
  font-size: 20px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .header {
    justify-content:space-between ; 
  }
  .nav {
    margin-top: 10px;
    justify-content: center; /* منو هم وسط */
    gap: 20px;
  }
  .logo img {
    width: 200px; /* لوگو کوچکتر در موبایل */
  }
  .nav a {
  color: white;
  text-decoration: none;
  font-size: 15px;
}
}

/* ================= HERO ================= */
.hero {
  background: #34495e;
  color: white;
  text-align: center;
  padding: 50px 15px;
}







/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 12px;
}

/* ===== PRODUCT SLIDER ===== */
.product-slider {
  background: #fff;
  border-radius: 16px;
  padding-bottom: 12px;
}

.slider-window {
  width: 100%;
  overflow: hidden;
  border-radius: 16px;
  direction: ltr;
}

.slider-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.slide {
  flex: 0 0 100%;
}

/* ===== SLIDER IMAGE ===== */
.slide img {
  width: 100%;
  height: 260px;
  object-fit: contain;   /* ✅ کل عکس دیده میشه */
  background: #f3f4f6;
  display: block;
}

@media (min-width: 768px) {
  .slide img {
    height: 340px;     /* برای دسکتاپ */
    object-fit: contain;
  }
}


.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== SIMILAR PRODUCTS IMAGE ===== */
.similar-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;   /* 🔹 عکس کل کادر کارت مشابه را می‌پوشاند */
  background: #f3f4f6;
  border-radius: 12px;
}

.slider-dots {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slider-dots .dot {
  width: 12px;
  height: 12px;
  background: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.slider-dots .dot.active {
  background: #ef4056;
}

/* ===== INFO / BUY ===== */
.info,
.buy,
.specs {
  background: #fff;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
}

.info h1 {
  margin: 0 0 6px;
  font-size: 18px;
}

.info p {
  font-size: 14px;
  color: #666;
}

.buy {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 20px;
  color: #e53935;
  font-weight: bold;
}

.buy button {
  background: linear-gradient(135deg,#3f87ff,#4bc6ff);
  color: #fff;
  border: none;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
}

/* ===== SPECS ===== */
.specs table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.specs td {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

.specs td:first-child {
  color: #666;
  width: 35%;
}

/* ===== DESCRIPTION ===== */
.product-description {
  background: #fff;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
}

.product-description h3 {
  margin-top: 0;
  font-size: 16px;
}

.product-description p {
  font-size: 14px;
  line-height: 1.9;
  color: #444;
}

/* ===== SIMILAR ===== */
.similar-products {
  background: #fff;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
}

.similar-track {
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.similar-card {
  flex: 0 0 140px;
  background: #eef2ff;
  border-radius: 14px;
  padding: 10px;
  text-align: center;
}

.similar-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  background: #f3f4f6;
  border-radius: 12px;
}

.similar-card p {
  font-size: 13px;
}

/* ===== CART (CLONE SHOP) ===== */
.cart-box {
  position: fixed;
  top: 0;
  left: -400px;
  width: 360px;
  height: 100vh;
  background: #fff;
  transition: left .4s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.cart-box.show {
  left: 0;
}

.cart-header {
  padding: 16px;
  background: #111827;
  color: #fff;
  display: flex;
  justify-content: space-between;
}

.cart-info {
  padding: 10px;
  background: #f1f5f9;
  font-size: 14px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 36px 1fr 50px 2fr;
  align-items: center;
  background: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.remove-item {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: none;
  background: #ef4444;
  color: #fff;
  cursor: pointer;
}

.qty-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.qty-controls button {
  width: 22px;
  height: 22px;
  margin: 2px 0;
  border: none;
  background: #3f87ff;
  color: #fff;
  border-radius: 4px;
  cursor: pointer;
}

.cart-middle {
  text-align: center;
  font-weight: bold;
}

.cart-title {
  text-align: right;
  font-size: 14px;
}

.cart-footer {
  padding: 16px;
}

.cart-total {
  font-weight: bold;
  margin-bottom: 10px;
}

.checkout-btn {
  display: block;
  background: linear-gradient(135deg,#22c55e,#16a34a);
  color: #fff;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  text-decoration: none;
}

/* ===== ZOOM ===== */
.image-zoom {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-zoom img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

/* ===== MOBILE ===== */
@media (max-width: 480px) {
  .cart-box {
    width: 25vw;
    left: -25vw;
  }
}















/* ===== Footer ===== */
.footer {
  background: #111827;
  color: #fff;
  padding: 30px 20px 15px;
  font-family: 'Vazirmatn', sans-serif;
}

.footer a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.footer a:hover {
  color: #4bc6ff;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}


/* ===== Footer Logo ===== */
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* پیش‌فرض برای لپ‌تاپ */
  gap: 1px;
}

.footer-logo img {
  width: 250px; /* اندازه لوگو در لپ‌تاپ */
  height: auto;
  object-fit: contain;
  display: inline-block;
}

/* ===== Footer Info ===== */
.footer-info p {
  margin: 5px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ===== Footer Social ===== */
.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social i {
  font-size: 22px;
  transition: transform 0.3s, color 0.3s;
}

.footer-social i:hover {
  color: #ff6b6b;
  transform: scale(1.3);
}

/* ===== Footer Responsive ===== */
@media (max-width: 768px) {
  .footer-top {
    flex-direction: column;
    align-items: center; /* همه آیتم‌ها در مرکز */
    gap: 15px;
  }

  .footer-logo {
    justify-content: center; /* لوگو در وسط */
    gap: 0; /* متن که حذف شده نیازی به فاصله نیست */
  }

  .footer-logo img {
    width: 200px; /* لوگو کوچکتر در موبایل */
  }

  .footer-info {
    text-align: center; /* متن‌ها هم وسط چین شوند */
  }

  .footer-info p {
    font-size: 13px;
  }

  .footer-social {
    justify-content: center; /* آیکون‌ها هم وسط چین */
    margin-top: 10px;
  }
}



.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 10px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {

  .footer-social {
    margin-top: 10px;
  }
}









/* ===== ADD TO CART BUTTON ===== */
.add-to-cart-btn {
  background: linear-gradient(135deg,#3f87ff,#4bc6ff);
  color: #fff;
  border: none;
  padding: 14px 26px;
  border-radius: 14px;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}

.add-to-cart-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(63,135,255,.35);
}

.add-to-cart-btn:active {
  transform: scale(.97);
}







/* ================= USAGE WARNING ================= */
.usage-warning {
  background: #fff3cd; /* زرد ملایم برای هشدار */
  border: 1px solid #ffeeba;
  border-radius: 12px;
  padding: 16px 20px;
  margin: 20px 0;
}

.usage-warning h3 {
  color: #856404; /* رنگ تیره‌تر برای عنوان */
  font-size: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.usage-warning h3::before {
  content: "⚠️"; /* آیکون هشدار */
  font-size: 18px;
}

.usage-warning ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.usage-warning ul li {
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.6;
  color: #856404;
}

/* موبایل */
@media (max-width: 768px) {
  .usage-warning {
    padding: 12px 16px;
  }

  .usage-warning h3 {
    font-size: 14px;
  }

  .usage-warning ul li {
    font-size: 13px;
  }
}