/* Header and Navbar */
header {
  background-color: #fff;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  flex: 1; /* Space for the logo on the left */
}

.logo img {
  width: 100px;
  height: auto;
}

.navbar {
  flex: 1;
  display: flex;
  justify-content: center; /* Center the navigation links */
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 40px; /* Space between the links */
  margin: 0;
  padding: 0;
}

.navbar ul li {
  display: inline-block;
}

.navbar ul li a {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: bold;
}

.currency-cart {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end; /* Push the icons to the far right */
  flex: 1; /* Ensure this takes up space on the right */
}

.currency-selection {
  display: flex;
  align-items: center;
  gap: 5px; /* Space between flag, USD text, and dropdown */
}

.currency-selection img {
  width: 20px; /* Adjust icon/flag size */
  height: auto;
}

.user-icons {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between user and cart icons */
}

.user-icons img {
  width: 18px; /* Smaller size for better clarity */
  height: auto;
}

.popup-modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  width: 400px;
  text-align: center;
  position: relative;
}

.popup-content h2 {
  margin-bottom: 20px;
}

.popup-content input {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.submit-btn {
  background-color: #38a169;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  font-size: 16px;
}

.submit-btn:hover {
  background-color: #2f855a;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

.product-details {
    padding: 40px 20px;
}

.product-details .container {
    display: flex; /* Aligns product image and product info side by side */
    gap: 40px; /* Space between the image and the product info */
    padding: 20px;
}

.product-gallery {
  display: flex; /* This aligns the main image and thumbnails side by side */
  gap: 20px; /* Space between the main image and the thumbnails */
  align-items: flex-start; /* Ensures the thumbnails and the main image align at the top */
}

.gallery-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 40px;
}

.gallery-thumbnails img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
}

.main-image {
  flex: 1; /* Ensures the main image takes the remaining space */
  margin-top: 40px;
}

.main-image img {
  width: 400px;
  height: auto;
  border-radius: 10px;
}

.product-info {
    flex: 1; /* Give the product info 1 part of the available space */
    display: flex;
    flex-direction: column;
}

.product-info h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #38a169;
    margin-bottom: 20px;
}

.product-options,
.quantity-selector {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}

.quantity-selector button {
  background-color: #38a169;
  border: none;
  color: white;
  padding: 5px 15px;
  cursor: pointer;
  font-size: 14px; /* Make the buttons more prominent */
  border-radius: 5px;
}

.quantity-selector button:hover {
  background-color: #2f855a;
}

.quantity-selector input {
  width: 50px;
  text-align: center;
  font-size: 16px; /* Larger font for better readability */
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.add-to-cart {
    background-color: #38a169;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.add-to-cart:hover {
    background-color: #2f855a;
}

.cart-container {
    position: relative;
    display: inline-block;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 5px;
    font-size: 12px;
    font-weight: bold;
}

/* Footer Styles */
.newsletter-footer {
    background: linear-gradient(to bottom right, #f0faf2, #d9ece9);
    padding: 50px 20px;
    color: #333;
  }
  
  .footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .footer-texts {
    flex: 2;
  }
  
  .footer-logo {
    width: 120px;
    margin-bottom: 20px;
  }
  
  .footer-texts h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2d3748;
  }
  
  .footer-texts p {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 20px;
  }
  
  .email-input {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
  }
  
  .email-input input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    flex: 1;
  }
  
  .email-input button {
    background-color: #38a169;
    padding: 8px;
    border: none;
    border-radius: 5px;
    margin-left: 10px;
    cursor: pointer;
  }
  
  .email-input button img {
    width: 21px;
    height: 21px;
  }
  
  /* Footer Links */
  .footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
  }
  
  .footer-column {
    flex: 1;
  }
  
  .footer-column h4 {
    font-size: 18px;
    color: #2d3748;
    margin-bottom: 10px;
  }
  
  .footer-column ul {
    list-style: none;
    padding: 0;
  }
  
  .footer-column ul li {
    margin-bottom: 10px;
  }
  
  .footer-column ul li a {
    color: #4a5568;
    text-decoration: none;
  }
  
  .footer-column ul li a:hover {
    color: #38a169;
  }
  
  /* Social Links */
  .footer-social {
    margin-top: 20px;
  }
  
  .footer-social h4 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .social-icons {
    display: flex;
    gap: 20px;
  }
  
  .social-icons img {
    width: 24px;
    height: 24px;
  }
  
  .review-thumbnails img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 5px;
}

.customer-reviews {
    padding: 40px 20px;
}

.review {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Cart Modal */
.cart-modal {
    display: none; /* Hide modal by default */
    position: fixed; /* Fix modal to screen */
    z-index: 1000; /* Ensure modal is above other elements */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
}

.cart-modal-content {
    background-color: white;
    margin: 10% auto; /* Center vertically */
    padding: 20px;
    border-radius: 10px;
    width: 400px; /* Width of the modal */
    position: relative;
}

.close-btn {
    color: gray;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cart-items {
    margin: 20px 0;
}

.checkout-btn {
    background-color: #284855;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.checkout-btn:hover {
    background-color: #2f855a;
}

  /* Footer Image */
  .footer-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
  }
  
  .footer-image img {
    margin-left: 150px;
    margin-right: 0px;
    width: 480px; /* Adjust image size as necessary */
    height: 560px;
  }
  
  /* Bottom Footer */
  .footer-bottom {
    text-align: center;
    margin-top: 40px;
  }
  
  .footer-bottom p {
    font-size: 14px;
    color: #4a5568;
  }
  
  .footer-bottom a {
    color: #4a5568;
    text-decoration: none;
  }
  
  .footer-bottom a:hover {
    color: #38a169;
  }

  /* General Styles */
body {
  background-color: #f7fbf8;
}

/* Customer Reviews Section */
.customer-reviews {
  padding: 20px;
  background-color: #f9f9f9;  /* Light background for the review section */
  border-radius: 8px;
  max-width: 1300px;
  margin: 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Slight shadow for depth */
}

.customer-reviews h2 {
  text-align: center;
  color: #284855;  /* Darker color for the heading */
  margin-bottom: 20px;
  font-size: 24px;
}

.review-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.review-summary span {
  font-size: 18px;
  color: #666;
}

.review-summary .write-review {
  padding: 10px 20px;
  background-color: #284855;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.review-summary .write-review:hover {
  background-color: #45a049;  /* Slightly darker green on hover */
}

/* Individual Review Style */
.review {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);  /* Shadow for individual reviews */
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.review-header span {
  font-size: 16px;
  color: #555;
}

.review h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
}

.review p {
  font-size: 16px;
  color: #777;
  line-height: 1.5;
}

.review-thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
}

/* Delete Button */
.delete-review {
  padding: 5px 10px;
  background-color: #284855;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.delete-review:hover {
  background-color: #c0392b;  /* Darker red on hover */
}

/* Popup Styling */
#review-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);  /* Semi-transparent black background */
  justify-content: center;
  align-items: center;
}

.popup-content {
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  position: relative;
}

.popup-content h2 {
  margin-bottom: 20px;
  text-align: center;
  color: #333;
  font-size: 22px;
}

.popup-content label {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: #333;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.popup-content button {
  width: 100%;
  padding: 10px;
  background-color: #284855;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.popup-content button:hover {
  background-color: #45a049;  /* Slightly darker green on hover */
}

.close-btn, .close-btn2{
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 24px;
  color: #aaa;
  cursor: pointer;
}

.close-btn:hover {
  color: #333;
}

/* Review Form Styling */
textarea {
  height: 100px;
}

/* Review Image Input */
input[type="file"] {
  padding: 5px;
}

/* Media Queries for Mobile */
@media screen and (max-width: 600px) {
  .review-summary {
      flex-direction: column;
      align-items: flex-start;
  }

  .popup-content {
      width: 95%;
  }
}