#product-page{
    margin-top:100px;
}

#thumbnail-product {
    position: relative;
}

#main-img{
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.thumbnail-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#thumbnail-product #grote_image{
    width:auto;
    height: 600px;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.product-wishlist-icon{
    position: absolute;
    top: 10px;
    right: 10px; 
    z-index: 10;
    background-color:rgb(185 185 185 / 70%);
    /* padding: 5px; */
    border-radius: 50%;
    border: 0px;
}

.product-wishlist-icon .wishlist-btn {
    background-color:transparent;
    color: #000;
    border: 0px ;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
  }

  .product-wishlist-icon .wishlist-btn svg{
    width: 100%;
    height: 100%;
  }
  .product-wishlist-icon .wishlist-btn:hover {
    color: #fff;
    /* background-color: #000; */
  }
  
#thumbnail-product .thumbnail-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 10px;
    margin: 0px 16px;
    scroll-behavior: smooth; 
}

#thumbnail-product .thumbnail-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome, Safari and other WebKit browsers */
}

#thumbnail-product .thumbnail {
    flex: 0 0 auto; 
    width: 100px;
    height: 100px;
    margin:20px 0px 9px 20px;
    background-color: white;
    box-shadow: 0px 0px 2px 3px #e6e6e6;
    padding: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    }

.thumbnail:first-child {
    margin-left: 0px !important;
}

#thumbnail-product .thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
}

/* Navigation buttons */
.thumbnail-nav {
    position: absolute;
    top: 50%;
    background-color: rgb(210 210 210 / 20%);
    color: #525252;
    border: none;
    padding: 0px;
    cursor: pointer;
    z-index: 100;
    width: 32px;
    height: 32px;
    border-radius: 27px;
    transform: translateY(-50%);
    font-size: 20px;
}

.thumbnail-nav.prev {
    left: -15px;
}

.thumbnail-nav.next {
    right: -15px;
}

.thumbnail-nav:hover {
    background-color: rgba(179, 179, 179, 0.336);
}

/* .product-info span{
    font-size: 20px;
    color: #6C757D;
} */

.product-info{
    margin-bottom:5px !important;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    #thumbnail-product .thumbnail {
        width: 80px;
        height: 80px;
        margin: 17px 8px 23px 8px;
    }

    #thumbnail-product #grote_image {
        height: 400px;
    }

    #product-page {
        margin-top: 20px;
    }

    .price-review {
        padding: 0px 0px !important;
    }

    .price-review .stars{
        padding: 0px !important;
    }

    .product-info{
        margin-bottom: 0px !important;
    }

    .top-detail-header .path {
        font-size: 16px;
    }
    
    .main-product-name{
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    #thumbnail-product .thumbnail {
        width: 80px;
        height: 80px;
    }

    #product-page {
        margin-top: 20px;
    }

    .price-review {
        padding: 0px 0px !important;
    }

    .price-review .stars{
        padding: 0px !important;
    }

    .top-detail-header .path {
        font-size: 14px;
    }
    
    .main-product-name{
        font-size: 26px;
    }
}

@media (max-width: 340px) {
#thumbnail-product .thumbnail {
    width: 70px;
    height: 70px;
    margin: 10px 7px 15px 0px;
}
.rating {
    margin: 8px 3px !important;
}

#thumbnail-product #grote_image {
    height: 340px;
}

.top-detail-header .path {
    font-size: 14px;
    margin-bottom: 7px;
}

.main-product-name{
    font-size: 22px;
}

}

.top-detail-header .path a{
    font-weight: 600;
    text-decoration: none;
    color: #9b9ca6;
    padding-right: 5px;
}

.top-detail-header .path{
    font-weight: 600;
    display: flex;
    margin-bottom: 7px;
}

.top-detail-header .path p{
    font-weight: 600;
    padding-left: 5px;
}
 
.back-arrow {
    text-decoration: none;
    color: #000;
}

.title {
    font-size: 24px;
    font-weight: 400;
    color: #1C1B1F;
    margin: 0;
}

#productDescription{
    margin:10px 0px;
}

#productDescription p{
    margin-bottom: 10px !important;
}
.description-title{
    padding-bottom: 5px;
    border-bottom: 1px solid rgb(222, 222, 222);
    font-size: 22px;
    font-weight: 400;
}

.description-text{
    width: fit-content;
    text-align: justify;
}
      

.description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.rating {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.price-review{
    padding: 20px 0px;
}

.price {
    font-size: 24px;
    margin: auto;
}
.review {
    display: flex;
    align-items: center;
}
.stars {
    color: #D89B3E;
}
.rating {
    margin: 8px;
    font-size: 18px;
    color: #D1D1D8;
}

.quantity {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.quantity input {
    width: 50px;
    text-align: center;
    margin: 0 10px;
}

.quantity-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #A2A3B1;
    border-radius: 4px;
    width: 160px;
    justify-content: space-between;
    padding: 0 10px;
}

.quantity-wrapper input {
    width: 50px;
    padding: 10px;
    text-align: center;
    border: none;
    outline: none;
}

.btn-decrease, .btn-increase {
    background-color: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    outline: none;
}

.btn-add-to-cart {
    display: block;
    width: 160px;
    padding: 10px 0px;
    font-size: 16px;
    color: white;
    background: linear-gradient(90deg, #D89B3E 0%, #89541A 70.4%, #4F2100 100%);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

.btn-add-to-cart:hover {
    background: linear-gradient(90deg, #C88B2E 0%, #79440A 70.4%, #3F1100 100%);
}


/* Media queries for smaller screens */
@media (max-width: 768px) {
    .quantity-wrapper {
        width: 100%;
        justify-content: space-around;
    }

    .btn-add-to-cart {
        width: 100%;
    }
}

/* review-section start */


#review-heading{
    margin: 29px 0px 10px 20px 
}

.review-card {
    margin: 10px 5px;
    border: 0px solid transparent;
    border-radius: 10px;
    padding: 15px;
    background-color: #f4f4f4;
}

.review-description h1 {
    font-size: 24px;
}

.review-description h2 {
    font-size: 18px;
}

.review-stars {
    display: inline-block;
    margin: 10px 0;
}

.review-star {
    font-size: 18px;
    color: #D89B3E;
}

.review-star.checked {
    color: #D89B3E;
}

.review-star {
    color: #e4e5e9;
}

.review-img{
    max-width: 100px;
    max-height: 100px;
}
.review-img img{
    width: 100px;
    height: 100px;
    border-radius: 10px;
}

.review-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0px;
}

.review-description p{
    margin-bottom: 0px;
}

.read-more {
    background: none;
    border: none;
    color: #D89B3E;
    cursor: pointer;
    padding: 0;
}

.review_section .add-review{
    color: #D89B3E;
    display: inline-block;
    margin:0px 0px 30px 13px;
}

.review_section .add-review-btn{
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    color: #D89B3E;
    box-shadow: inset 0 1px 1px #e1e1e1;
    padding:0px 10px;
    font-size:23px;
    cursor: pointer;
}

.review_section .add-review-btn:hover {
    border: 1px solid #ccc;
    background-color: #fff;
}

.review_section *:focus,.review_section *:active
{
  outline:0 !important;
}

.review_section *{
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0) !important;
}

/* review- modal start */

#modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    border: 1px solid #666;
    border-radius: 10px;
    opacity: 0;
    transition: all .3s;
    overflow: hidden;
    background-color: #eee;
    display: none;
  }

#modal.show {
    opacity: 1;
    display: flex;
}

.modal-overlay {
    width: 100%;
    height: 100%;
    z-index: 2;
    background-color: #000;
    opacity: 0;
    transition: all .3s;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    margin: 0;
    padding: 0;
}
.modal-overlay.show {
    display: block;
    opacity: 0.5;  
}

#modal .close-btn {
    align-self: flex-end;
    font-size: 1.4em;
    margin: 8px 8px 0;
    padding: 0 8px;
    cursor: pointer;
}

#modal form {
    width:70vw;
    padding: 0 20px 20px 20px;
}

#modal input,
  #modal select,#modal .rate, #modal textarea, #modal .button {
    background: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: inset 0 1px 1px #e1e1e1;
    font-size: 16px;
    padding: 8px;
  }
  #modal input[type="radio"] {
    box-shadow: none;
    outline:0 !important;
  }
  #modal .button {
    min-width: 48px;
    min-height: 48px;
  }
  #modal .button:hover {
    border: 1px solid #ccc;
    background-color: #fff;
  }
  #modal .button#review-add-btn, 
  #modal .button.close-btn, 
  #modal .button#submit-review-btn {
    min-height: 40px;
  }
  #modal .button#submit-review-btn {
    font-weight: bold;
    cursor: pointer;
    padding: 0 16px;
  }
  
  #modal .fieldset {
    margin-top: 20px;
    flex: 1;
  }
  #modal .right {
    align-self: flex-end;
  }
  #modal #review-form-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    padding: 0 20px 26px;
    color: #333;
    overflow: hidden;
  }
  #modal #review-form-container h2 {
    margin: 0 0 0 6px;
  }
  #modal #review-form {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;

    max-height: 700px; /* Set a maximum height for scrolling */
    overflow-y: auto; /* Enable vertical scroll if content exceeds max-height */
  }
  #modal #review-form label, #modal #review-form input {
    display: block;
  }
  #modal #review-form label {
    font-weight: bold;
    margin-bottom: 5px;
  }
  
  #modal #review-form .rate label,#modal  #review-form .rate input,
  #modal #review-form .rate1 label,#modal  #review-form .rate1 input {
    display: inline-block;
  }

  #modal .rate {
    height: 36px;
    display: inline-flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: flex-end;
  }
  #modal #review-form .rate > label {
    margin-bottom: 0;
    margin-top: -5px;
    height: 30px;
  }
  #modal .rate:not(:checked) > input {
    top: -9999px;
    margin-left: -24px;
    width: 20px;
    padding-right: 14px;
    z-index: -10;
  }
  #modal .rate:not(:checked) > label {
    float:right;
    width:1em;
    overflow:hidden;
    white-space:nowrap;
    cursor:pointer;
    font-size:30px;
    color:#ccc;
  }

  #modal .rate2 {
    float: none;
  }
  #modal .rate:not(:checked) > label::before {
    content: '★ ';
    position: relative;
    top: -10px;
    left: 2px;
  }
  #modal .rate > input:checked ~ label {
    color: #D89B3E;

  }

  #modal .rate:not(:checked) > label:hover,
  #modal .rate:not(:checked) > label:hover ~ label {
    color: #D89B3E;
  }
  .rate > input:checked + label:hover,
  .rate > input:checked + label:hover ~ label,
  .rate > input:checked ~ label:hover,
  .rate > input:checked ~ label:hover ~ label,
  .rate > label:hover ~ input:checked ~ label {
    color: #D89B3E;
  }
  #modal #submit-review {
    align-self: flex-end;
  }
  
#modal input,#modal textarea{
    width:100%;
    font-family: 'Raleway', sans-serif;
    font-size:14px;
}

#modal #review-form .image-preview {
    margin-top: 10px;
    max-width: 100px;
}
  
#modal #review-form .image-preview img {
    width: 100px;
    height: 100px;
    border-radius: 10px;
}
/* Media Queries */

/* For screens smaller than 1024px (before tablet screens) */
@media only screen and (max-width: 1024px) {
#modal #review-form-container {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
}

#modal #review-form {
    width: 100%;
    margin-top: 10px;
    padding-top: 10px;
}

#modal .fieldset {
    margin-top: 10px;
}

#modal .rate label {
    display: block;
    margin: 5px 0;
}

#modal .image-preview {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}
}

/* For screens larger than 1024px */
@media only screen and (min-width: 1024px) {
#modal .fieldset {
    margin-top: 10px;
}
}

@media only screen and (max-width: 700px) {
    #modal {
        width: 100%;
    }
}

@media (max-height: 700px)  {
    #modal {
      width: 88%;
    }
  
    #modal #review-form-container {
      padding: 0px 10px; 
    }
  
    #modal input {
      font-size: 14px;
    }

    #modal textarea {
        height: 32px;
    }
  }