/* استایل صفحه مغازه (shop.php) */
.shop-page {
  max-width: 900px;
  margin: 32px auto 32px auto;
  padding: 0 16px;
  font-family: "Vazir", Tahoma, Arial, sans-serif;
}
.shop-header {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  margin-bottom: 24px;
  padding: 24px 20px;
  align-items: center;
}
.shop-image {
  flex: 0 0 180px;
  margin-left: 32px;
  text-align: center;
}
.shop-image img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid #eee;
  background: #fafafa;
}
.shop-info {
  flex: 1 1 300px;
  min-width: 220px;
}
.shop-info h1 {
  font-size: 1.7rem;
  margin: 10px 0 30px 0;
  color: #222;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

.shop-category {
  color: #888;
  font-size: 1.1em;
  margin-bottom: 12px;
}
.shop-rating {
  margin-bottom: 12px;
  font-size: 1.2em;
  color: #f7b731;
  display: flex;
  align-items: center;
  gap: 8px;
}
.shop-rating .rating-text {
  color: #666;
  font-size: 1em;
}
.shop-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 8px;
  padding: 0 10px;
}
.meta-item {
  display: flex;
  align-items: center;
  color: #444;
  font-size: 1em;
  gap: 4px;
}
.shop-map {
  margin: 24px 0;
  text-align: center;
}
.shop-map img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.shop-description {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  padding: 20px 18px;
  margin-bottom: 24px;
}
.shop-description h2 {
  font-size: 1.2em;
  color: #444;
  margin-bottom: 8px;
}
.shop-description p {
  color: #333;
  line-height: 1.8;
}
.shop-reviews {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
  padding: 20px 18px;
  margin-bottom: 24px;
}
.shop-reviews h2 {
  font-size: 1.2em;
  color: #444;
  margin-bottom: 12px;
}
.review-list {
  margin-bottom: 24px;
}
.review-item {
  background: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 14px 12px;
  margin-bottom: 14px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.review-author {
  font-weight: bold;
  color: #2d98da;
}
.review-date {
  color: #888;
  font-size: 0.95em;
}
.review-rating {
  color: #f7b731;
  font-size: 1.1em;
}
.review-content {
  color: #333;
  line-height: 1.7;
}
.no-reviews {
  color: #888;
  text-align: center;
  margin: 18px 0;
}
.add-review {
  background: #f4f6fb;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  padding: 18px 14px;
}
.add-review h3 {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 10px;
}
.add-review .form-group {
  margin-bottom: 12px;
}
.add-review label {
  display: block;
  color: #555;
  margin-bottom: 4px;
  font-size: 0.98em;
}
.add-review input[type="text"],
.add-review textarea,
.add-review select {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
  margin-bottom: 2px;
  transition: border 0.2s;
}
.add-review input[type="text"]:focus,
.add-review textarea:focus,
.add-review select:focus {
  border-color: #2d98da;
  outline: none;
}
.add-review textarea {
  min-height: 70px;
  resize: vertical;
}
.submit-review-btn {
  background: #2d98da;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 22px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.submit-review-btn:hover {
  background: #2176b6;
}
.alert {
  padding: 10px 14px;
  border-radius: 7px;
  margin-bottom: 14px;
  font-size: 1em;
}
.alert.error {
  background: #ffeaea;
  color: #e74c3c;
  border: 1px solid #f5b7b1;
}
@media (max-width: 700px) {
  .shop-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 0 16px 0;
  }
  .shop-image {
    margin-left: 0;
    margin-bottom: 16px;
  }
  .shop-info {
    min-width: 0;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .shop-page {
    padding: 0 4px;
  }
}
/* استایل جدید برای عکس اصلی */
.shop-main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
}

.shop-main-image:hover {
  transform: scale(1.02);
}

/* استایل برای پاپ آپ عکس */
.image-popup {
  display: block;
  position: relative;
}

/* جلوگیری از باز شدن پاپ آپ برای عکس پیش‌فرض */
.shop-image img[src*="defaultimageshop.jpg"] {
  cursor: default;
  pointer-events: none;
}
/* استایل بنر */
.shop-banner {
  width: 100%;
  height: 400px;
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.banner-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  cursor: pointer;
  transition: transform 0.5s;
}

.banner-image:hover {
  transform: scale(1.05);
}

/* تنظیمات جدید برای shop-header */
.shop-header {
  padding: 0 20px;
  margin-top: -50px; /* برای همپوشانی جزئی با بنر */
  position: relative;
  z-index: 2;
}

.shop-info {
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
/* مودال گزارش */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: 0.25s;
}
.modal-overlay.show {
  visibility: visible;
  opacity: 1;
}
.modal-box {
  background: #fff;
  width: 90%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 25px 30px 30px;
  transform: scale(0.9);
  transition: 0.25s;
}
.modal-overlay.show .modal-box {
  transform: scale(1);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #e74c3c;
}
.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
}
.modal-text {
  margin: 0 0 22px;
  font-size: 1rem;
  color: #444;
}
.modal-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.btn-modal {
  border: none;
  padding: 9px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.2s;
}
.btn-confirm {
  background: #e74c3c;
  color: #fff;
}
.btn-confirm:hover {
  background: #c0392b;
}
.btn-cancel {
  background: #ecf0f1;
  color: #333;
}
.btn-cancel:hover {
  background: #bdc3c7;
}

/* مدیا کوئری برای رفع فاصله بیش از حد در موبایل */
@media (max-width: 768px) {
  .shop-banner {
    height: 250px;
    margin-bottom: 15px;
  }

  .shop-gallery {
    margin: 10px 0 !important;
  }
}
