/* style2.css */

/* Reset default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #f5f5f5;
  color: #2d373c;
}

/* Pagination */
.pagination {
  padding: 15px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin: 20px auto;
  max-width: 1200px;
}

.pagination p {
  font-size: 14px;
  color: #666;
}

.pagination a {
  color: #54A15D;
  text-decoration: none;
  margin: 0 5px;
  transition: color 0.3s ease;
}

.pagination a:hover {
  color: #FFD700;
}

/* Product Container */
.product-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Image Card */
.img-card {
  flex: 1;
  min-width: 300px;
}

#featured-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease;
}

#featured-image:hover {
  transform: scale(1.02);
}

.small-Card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.small-Card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.small-Card img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Product Info */
.product-info {
  flex: 1;
  min-width: 300px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-info h1 {
  font-size: 2rem;
  color: #2d373c;
  margin-bottom: 15px;
}

.price-section {
  margin-bottom: 20px;
}

.price {
  font-size: 1.5rem;
  color: #54A15D;
  margin-bottom: 10px;
}

.duration-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.duration-label {
  font-size: 1rem;
  color: #2d373c;
}

.duration-value {
  font-size: 1rem;
  color: #54A15D;
  font-weight: 600;
}

.submit-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #54A15D;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
  background-color: #468c4a;
  transform: translateY(-2px);
}

.submit-button:active {
  background-color: #3a753e;
  transform: translateY(0);
}

/* Description */
.description {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  color: #2d373c;
}

.description p, .description ul, .description li {
  font-size: 1rem;
  margin-bottom: 15px;
}

.description strong {
  color: #54A15D;
}

.description a {
  color: #54A15D;
  text-decoration: none;
}

.description a:hover {
  color: #FFD700;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}

.close, .prev, .next {
  position: absolute;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close {
  top: 20px;
  right: 20px;
}

.prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.close:hover, .prev:hover, .next:hover {
  color: #FFD700;
}

/* Ratings Section */
.ratings-section {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ratings-section h2 {
  font-size: 1.8rem;
  color: #2d373c;
  margin-bottom: 15px;
}

.ratings-list {
  list-style: none;
}

.rating-item {
  padding: 15px;
  border-bottom: 1px solid #e8ecef;
}

.rating-item:last-child {
  border-bottom: none;
}

.rating-item p {
  font-size: 1rem;
  color: #2d373c;
  margin-bottom: 5px;
}

.rating-item strong {
  color: #54A15D;
}

.comment {
  font-style: italic;
  color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
  .product-container {
      flex-direction: column;
  }

  #featured-image {
      height: 300px;
  }

  .small-Card img {
      width: 80px;
      height: 80px;
  }

  .product-info h1 {
      font-size: 1.5rem;
  }

  .price {
      font-size: 1.2rem;
  }

  .modal-image {
      max-height: 70vh;
  }
}