.shop-page-wrap{
    padding: 20px;
}
.shop-top-content{
    border-bottom: 1px solid #e7e7e7;
}
.shop-top-content .breadcrumb{
    background-color: #fff;
    margin-bottom: 0;
}
.shop-top-content .breadcrumb .breadcrumb-item a{
    color: rgb(119, 119, 119)  !important;
}
.shop-top-content .breadcrumb .breadcrumb-item.active{
    text-decoration: underline;
}
.shop-top-content .breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    color: rgb(119, 119, 119);
    font-family: "Font Awesome 6 Free"; /* Correct font family */
    font-weight: 900; /* Required for solid icons */
    content: "\f105"; /* Correct Unicode */
}
.shop-card-content{
    margin: 1rem 0;
}
.shop-card-content #sort {
    padding: .3rem;
    border: 1px solid #e7e7e7;
    margin-left: 1rem;
}
.gap-1 {
    gap: .25rem !important;
}
  /* Grid Container */
  .product-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr); /* 5 columns on large screens */
    gap: 20px;
}

/* Responsive for Smaller Screens */
@media (max-width:1400px){
    .product-container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 1200px) {
    .product-container {
        grid-template-columns: repeat(3, 1fr); /* 3 per row on medium screens */
    }
}

@media (max-width: 768px) {
    .product-container {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on tablets */
    }
}
@media (max-width: 480px) {
    .product-container {
        grid-template-columns: repeat(1, 1fr); /* 1 per row on mobile */
    }
}

/* Product Card */
.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    padding: 10px;
}

.product-image {
    position: relative;
    text-align: center;
    /* padding: 10px; */
}

.product-image img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}
.product-image:hover img {
    transform: scale(1.1); /* Slightly enlarge the image on hover */
}


/* List View */
.product-container.list-view {
    display: flex;
    flex-direction: column;
}

.product-container.list-view .product-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    padding: 15px;
    gap: 20px;
}

.product-container.list-view .product-image {
    flex: 0 0 120px;
}

.product-container.list-view .product-image img {
    width: 100%;
    height: auto;
}

.product-container.list-view .product-info {
   flex-direction: row;
   position: relative;
}
.product-container.list-view .product-info .product-button {
    width: fit-content;
 }
 .product-container.list-view .product-info .sku-shop-num{
    position: absolute;
    bottom: 0;
 }

/* View Toggle Icons */
.fa-th, .fa-list {
    font-size: 1.7rem;
    padding: 0.1rem;
    border: 1px solid rgb(231, 231, 231);
    cursor: pointer;
    color: gray;
    margin-left: 10px;
}

.fa-th.active, .fa-list.active {
    color: black;
}
.sku-shop-num{
    background-color: #f8f9fa;
    color: #212529;
    width: fit-content;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
}

.stock-badge {
    position: absolute;
    top:3px;
    left: 0px;
    background: #d1e7dd;
    color: #198754;
    padding: 3px 8px;
    font-size: 12px;
    border-radius: 4px;
    z-index: 1;
    font-weight: 700;
}

.wishlist-icon {
    position: absolute;
    top: 3px;
    right: 0px;
    font-size: 18px;
    color: #000;
    cursor: pointer;
    z-index: 1;
}

.wishlist-icon:hover {
    color: #e74c3c;
}

.product-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* padding: 10px; */
}

.product-title {
    font-size: 16px;
    line-height: 20px;
    color: #212529;
    z-index: 1;
    min-height: 50px;
    font-weight: 500;
}
.product-title a {
    color: #212529;
    text-decoration: none;
}
.product-title a:hover{
    color: #0d6efd;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    /* justify-content: center; */
    row-gap: 10px;
    margin: 10px 0;
}

.tags span {
    background: #fff3cd;
    color: #212529;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    margin: 3px;
    font-weight: 700;
}

.product-button {
    width: 100%;
    background: #6c757d;
    color: #fff;
    border: none;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 4px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.product-button:hover {
    background: #5c636a;
}

/* Styling for the pagination */
.shop-pagination-wrap .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
}

.shop-pagination-wrap .pagination .page-item .page-link {
    border: none;
    color: black;
    font-size: 16px;
    margin: 0 5px;
}

/* Active page styling */
.shop-pagination-wrap .pagination .page-item.active .page-link {
    background-color: #e0e0e0; /* Light grey background */
    border-radius: 50%; /* Circular background */
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 15px;
    /* font-weight: bold; */
    border: none;
}

/* Disabled previous button */
.shop-pagination-wrap .pagination .page-item.disabled .page-link {
    color: #ccc; /* Light grey */
}

/* Arrow buttons */
.shop-pagination-wrap .pagination .page-item .page-link {
    background: transparent;
}

/* Hover effect for page numbers */
.shop-pagination-wrap .pagination .page-item:not(.active) .page-link:hover {
    background-color: #f0f0f0;
    border-radius: 50%;
}

/* Hover effect for arrows */
.shop-pagination-wrap .pagination .page-item:not(.disabled) .page-link:hover {
    color: #333; /* Darker color */
}


/* .....shop-detail-page-styling-start..... */
.recommended-product-content {
    max-height: 450px; /* Adjust height as needed */
    overflow-y: auto; /* Enables vertical scrolling */
    overflow-x: hidden; /* Hides horizontal scrolling */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #ccc transparent; /* For Firefox */
}

.recommended-product-wrap h1{
    font-size: 24px;
    line-height: 28px;
    font-weight: 400;
    color: #212529;
}
.recommended-product-wrap ul{
    padding: 0;
}
.recommended-product-wrap ul li{
    list-style-type: none;
}
.recommended-card{
    border: 1px solid rgba(0, 0, 0, .175);
    border-radius: 5px;
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
    
}
.recommended-card:hover{
    text-decoration: none;
}
.recomed-img-wrap{
    width: 75px;
    width: 75px;
    border: 1px solid rgba(0, 0, 0, .175);
    border-radius: 5px;
}
.recomed-img-wrap img{
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.recomend-title{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* Show 2 lines before truncating */
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    color: #212529;
    font-weight: 500;
    line-height: 1.5; /* Adjust based on your design */
    max-height: 3em; /* Approx. 2 lines of text */
    width: 100%;
}
/* Hide scroll buttons (arrows) */
.recommended-product-content::-webkit-scrollbar-button {
    width: 0px;
    height: 0px;
    display: none;
}
/* Hide the scrollbar track arrows in Edge */
.recommended-product-content::-webkit-scrollbar-button:single-button {
    display: none;
}
.product-right-title{
    font-size: 30px;
    line-height: 34px;
    font-weight: 700;
    margin-bottom: 5px;
}
.price-area a{
    color: #0071dc;
    font-size: 24px;
    font-weight: 600;
    text-decoration: none;
}
.sku-text{
    color: #212529;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}
.sku-text span, .sku-text span a{
    color: #777777;
    margin-left: 5px;
    text-decoration: none;
}

.product-detail-left{
    padding: 2%;
    
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* align-items: center; */
    flex-wrap: wrap;
    align-content: center;
    justify-content: center;
}

.wrapper {
    position: relative;
    margin: 0 auto;
    width: 100%;
    display: flex; /* Use flexbox for proper alignment */
    flex-direction: column-reverse;
  }
  
  .img-selection {
    display: flex; /* Align thumbnails vertically */
    margin-right: 10px;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
  }
  
  .img-thumbnail:first-of-type {
    margin-top: 0;
  }
  
  .img-thumbnail {
    margin-bottom: 10px; /* Adjust spacing between thumbnails */
    width: 90px; /* Adjust thumbnail width */
    height: 90px; /* Adjust thumbnail height */
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.3s ease;
    opacity: 0.5;
  }
  
  .img-thumbnail:hover {
    opacity: 1;
  }
  
  .img-thumbnail.selected {
    opacity: 1;
  }
  
  .big-img {
    position: relative;
    width: 100%;
    height: auto;
    /* border: 1px solid #ddd; */
    cursor: zoom-in;
    overflow: hidden;
    margin: 0 auto;
    border: 1px solid #DDDDDD;
  }
  
  .big-img img.display-img {
    width: 100%;
  }
  .big-img img.zoom {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* Default size before zoom */
    opacity: 0; /* Initially hidden */
    transition: width 0.3s ease, opacity 0.3s ease, top 0.3s ease, left 0.3s ease;
  }
  .product-logo img{
    max-width: 50%;
    margin: 0 auto;
    display: block;
    padding-top: 25px;
  }
  .mobile-product-detail-title{
    position: absolute;
    z-index: 1;
    left: 20px;
    bottom: 0;
  }
  .modal-icon-wrap{
    position: absolute;
    bottom: 5px;
    right: 10px;
    z-index: 1;
    cursor: pointer;
  }


  .prev-btn, .next-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    position: absolute;
    top: 45%;
    transform: translateY(-45%);
    font-size: 18px;
    z-index: 10;
    opacity: 0;  /* Initially hidden */
    transition: opacity 0.3s ease;
    /* border-radius: 50%; */
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.wrapper:hover .prev-btn,
.wrapper:hover .next-btn {
    opacity: 1;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}


  
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 80%;
    max-width: 450px;
    animation: fadeIn 0.3s;
}

#modal-img {
    display: block;
    width: 100%;
    height: auto;
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #000;
    font-size: 25px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close i {
    font-size: 25px;
}
.product-container.list-view .product-button {
    margin-top: 0;
}
.product-container.list-view .product-info {
    align-items: center;
}

.list-product-card{
    background: white;
    border: 1px solid #d2d2d2;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    padding: 20px;
    align-items: center;
    position: relative;
    margin-bottom: 0.5rem;
}
.list-stock-badge{
    position: inherit !important;
    display: block;
    width: fit-content;
}
.list-product-card .product-button {
    margin-top: 0;
}
.recommended-product-wrap.mobileRecommendWrap {
    display: none;
}
@media(max-width: 767px) {
    .recommended-product-wrap {
        display: none;
    }
    .recommended-product-wrap.mobileRecommendWrap {
        display: block;
        margin: 10px 0;
    }
}
@media (max-width: 600px) {
    .list-product-card {
        display: inline-block;
        width: 100%;
    }
    .list-product-card .product-image {
        width: 100% !important;
    }
    .list-product-card .product-title {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .list-product-card .tags span {
        margin: 0 0px 3px 0px;
        display: inline-block;
    }
}
