/* view.css */
html{
  overflow-x: hidden;
}
body {

    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    
  }
  body::-webkit-scrollbar {
    width: 8px;
    background-color: #f2f2f2;
  }
  
  body::-webkit-scrollbar-thumb {
    background-color: #132749;
    border-radius: 4px;
  }
  
  body::-webkit-scrollbar-thumb:hover {
    background-color: #132749;
  }
  
/* Logo Section */
.logo-container {
  width: fit-content;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  
}
.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: 0px 5px;

  border-radius: 5px;
}
.logo-link:hover{
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.logo-img {
  height: 40px;
  width: auto;
  margin-right: 10px;
  border-radius: 6px;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #132749;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
}

/* Responsive logo for small screens */
@media only screen and (max-width: 600px) {
  .logo-container {
    padding: 5px 10px;
    margin-bottom: 20px;
   
  }

  .logo-img {
    height: 30px;
    margin-right: 8px;
  }

  .logo-text {
    font-size: 16px;
  }
}



  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: fit-content;
    background-size: 800% 800%;
  }
 
  .product-image {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
  }

  .byNow-Dialog button {
    margin-top: 15px;
  }
  .button-section a{
    text-decoration: none;
  }
  .add-to-cart-button,
  .buy-now-button {
    width: 100%;
    display: block;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    background-color: #45a049;
    color: white;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s;
  }
  
  .add-to-cart-button:hover,
  .buy-now-button:hover {
    background-color: #2e6631;
  }
  
  .buy-now-button {
    background-color: #132749;
  }
  
  .buy-now-button:hover {
    background-color: #0c182c;
  }
  .up-image {
    flex: 3;
    width: 100%;
    height: 80%;
    display: flex;
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
    
  }

  .up-image img {
      padding: 20px;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain; /* Ensure the image covers the container */
  }
 .sub-image{
    flex: 1;
    width: 100%;
    height: 20%;
    display: flex;
    overflow-x: auto;
  }
  .sub-image::-webkit-scrollbar{
    height: 5px;
  }
  .sub-image::-webkit-scrollbar-track{
    background-color: #f1f1f1;
  }
  .sub-image::-webkit-scrollbar-thumb {
    background-color: #132749;
    border-radius: 4px;
  }
  
  .sub-image::-webkit-scrollbar-thumb:hover {
    background-color: #0d1a30;
  }
  .sub-image img{
    margin: 0px 3px;
    object-fit: contain;
    flex: 1;
  }

  .product-title {
    font-size: 24px;
    color: #333;
  }
  
  .product-price {
    font-size: 20px;
    margin-bottom: 5px;
    color: #666;
  }
  #quantity{
    color: #666;
  }
  .increment-input {
    padding: 10px;
    display: flex;
    align-items: center;
  }

  .increment-button {
    width: 30px;
    height: 30px;
    background-color: #f2f2f2;
    color: #333;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .increment-button:hover {
    background-color: #e6e6e6;
  }
  
  .increment-input input {
    width: 60px;
    height: 30px;
    text-align: center;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    margin: 0 10px;
  }
  
  .button-section {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }
  
  .product-info{
    padding: 10px;
  }
  .order-info{
    margin-left: 10px;
    padding: 10px;
  }
  .product-description {
    font-size: 16px;
    color: #666;
    margin-top: 20px;
    padding: 5px;
    text-align: justify;
    
  }
  
  #close-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ff0000;
    cursor: pointer;
    margin: 10px;
  }
  
  #div-des{
    text-align: start;
    margin: 0 10px;
    border: 1px solid #d7d7d7;
    padding: 10px;
    border-radius: 10px;
  }
   #div-des b{
    font-size: 20px;
    color: #0a1527;
   }
  
  
  /* view.css */

/* ...existing styles... */
/* Container for the related products */
.related-products {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Title of the related products section */
.related-products-title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

/* Flex container for the product list */
.related-product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the products horizontally */
  gap: 20px; /* Add some space between the products */
}

/* Individual product item */
.related-product {
 /* width: calc(100% / 4 - 40px);  Display four products per row */
  max-width: 200px; /* Limit the maximum width of each product */
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

/* Gradient overlay on hover */
.related-product::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(19, 39, 73, 0.8));
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Image inside the product */
.related-product-image {
  width: 100%;
  height: 150px; /* Set a fixed height for consistent display */
  object-fit: cover; /* Maintain aspect ratio of the image */
  border-radius: 5px 5px 0 0; /* Rounded corners at the top */
}

/* Title of the product */
.related-product-title {
  font-size: 16px;
  margin: 10px 0 5px;
  color: #333;
  text-align: center;
}

/* Price of the product */
.related-product-price {
  font-size: 14px;
  color: #666;
  text-align: center;
  margin-bottom: 10px;
}

/* Styling on hover */
.related-product:hover::after {
  opacity: 1;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

/* Clear floating for last product in a row */
.related-product:nth-child(4n) {
  margin-right: 0;
}
#see_more{
  padding: 5px;
  border-radius: 5px;
  margin-top: 10px;
  color: #132749;
  text-decoration: underline;
  cursor: pointer;
}

.comment-section {
  display: flex;
  margin: auto;
  max-width: 100%; /* Adjust as needed */
  padding: 20px;
  border-radius: 10px;
}
.add-comment{
  width: 30%;
}

.existing-comments {
  margin-left: 80px;
  width: 70%;
}

.user-image {
  width: 50px; /* Set the width and height according to your preference */
  height: 50px;
  border-radius: 50%; /* Create a circular effect */
  margin-right: 10px; /* Adjust spacing between image and text */
  object-fit: cover;
}

.default-user-image {
  width: 50px; /* Set the width and height according to your preference */
  height: 50px;
  border-radius: 50%; /* Create a circular effect */
  background-color: #e1e1e1; /* Set a default background color */
  margin-right: 10px; /* Adjust spacing between image and text */
}


#comment-h2{
  font-size: 24px;
  margin: 0 40px;
  color: #333;
}

.comment-section form {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.comment-section textarea {
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 8px;
  resize: none; /* Disable textarea resizing */
  margin-bottom: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.comment-section textarea:focus {
  border-color: #132749; /* Change border color on focus */
  box-shadow: 0 0 0 3px rgba(19, 39, 73, 0.1); /* Add a subtle box shadow on focus */
}

.comment-section .rating {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.comment-section .stars label {
  font-size: 24px;
  color: #ccc;
  cursor: pointer;
  margin-right: 10px;
  transition: color 0.3s;
}

.comment-section .stars input {
  display: none;
}

.comment-section .stars label:hover,
.comment-section .stars input:checked ~ label {
  color: #f8da3a;
}

.comment-section button[type="submit"] {
  background-color: #132749;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  padding: 12px 24px; /* Increase padding for better button size */
  transition: background-color 0.3s;
}

.comment-section button[type="submit"]:hover {
  background-color: #0a1527;
}


.comment-section .comment-info {
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.comment-section .comment-info:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.comment-section .comment-title h3 {
  font-size: 18px;
  margin: 0;
  color: #333;
}

.comment-section .comment-title p {
  font-size: 16px;
  color: #666;
  margin: 5px 0 0;
}

.comment-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between; /* Align stars to the end */
}

.comment-title {
  flex: 1;
}

.rating-stars {
  font-size: 24px;
  color: #f8da3a;
}


.image-dialog {
  display: none;
  position: fixed;
  z-index: 1000;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.image-dialog.active {
  display: flex;
}

.dialog-content {
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.main-dialog-image {
  max-width: 100%;
  max-height: 500px;
  border-radius: 12px;
  margin-bottom: 15px;
  object-fit: contain;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
}

.dialog-thumbnail {
  height: 70px;
  margin: 0 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s, border 0.3s;
  border: 2px solid transparent;
}

.dialog-thumbnail:hover,
.dialog-thumbnail.active {
  transform: scale(1.1);
  border-color: #132749;
}

.image-carousel {
  display: flex;
  overflow-x: auto;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  max-width: 100%;
}

.close-dialog {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s;
}

.close-dialog:hover {
  color: #f44336;
}

@media only screen and (max-width: 600px) {
  .main-dialog-image {
    max-height: 250px;
  }

  .dialog-thumbnail {
    height: 50px;
  }
}



/* Responsive Styles */

@media only screen and (max-width: 768px) {
  /* Display container and related products as columns on smaller screens */
  .container,
  .related-products {
    width: 100%;
  }
 .related-products{
  display: flex;
  flex-direction: column;
  align-items: center;
 }

 .related-product-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center the products horizontally */
  gap: 20px; /* Add some space between the products */
}

/* Individual product item */
.related-product {
  width: calc(50% - 20px); /* Display two products per row */
  max-width: 200px; /* Limit the maximum width of each product */
  border: 1px solid #ddd;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

/* Clear floating for last product in a row */
.related-product:nth-child(2n) {
  margin-right: 0;
}
  .comment-section {
    flex-direction: column;
    align-items: center;
    padding: 20px;
    margin: 20px; /* Adjust the margin for better spacing */
    height: auto; /* Allow the height to adjust based on content */
  }

  .comment-section form {
    width: 100%; /* Use full width for the form */
    margin-bottom: 15px; /* Adjust margin for better spacing */
  }
  .add-comment{
    width: 100%;
  }
  .existing-comments{
    margin: auto;
    width: 100%;
    
  }
  .Slide-image {
    width: 96%; /* Adjusted width for extra small screens */
    border-radius: 0; /* Remove border radius for small screens */
    margin: auto;
    background-color: red;
  }
  .up-image {
    background-color: red;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Horizontally center the content */
    align-items: center; /* Vertically center the content */
    
  }
  .sub-image {
      flex-direction: column; /* Stack sub-images vertically on small screens */
      overflow-x: hidden; /* Hide horizontal overflow */
  }
  .sub-image img{
    width: auto;
    height: 120px;
  }
}

 
  /*For Chat Button*/
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(0, 128, 0, 0.849);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}
.whatsapp-btn:hover {
  transform: scale(1.05);
  background-color: #25D366; /* Change color on hover */
}
.whatsapp-icon {
  font-size: 24px;
}
  
  
  
  
  