/* Styling for the new buttons */
.product-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-overview-btn,
.add-to-wishlist-btn,
.compare-btn {
    padding: 10px 20px;
    border: 1px solid #ccc;
    background-color: #f8f9fa;
    color: #333;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.quick-overview-btn:hover,
.add-to-wishlist-btn:hover,
.compare-btn:hover {
    background-color: #e2e6ea;
}

.product-actions .btn--primary {
    background-color: transparent;
    border: 1px solid #c4c4c4;
    color: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.product-actions .btn--primary i {
    font-size: 18px;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    position: relative;
    border-radius: 8px;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-btn:hover,
.close-btn:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

/* Displaying product count */
.product-colors span,
.product-sizes span {
    position: relative;
    cursor: pointer;
}

.product-colors span::after,
.product-sizes span::after {
    content: attr(data-count);
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

.product-colors span.active {
    border: 2px solid #000;
    transform: scale(1.1);
}

.product-sizes .action-btn-info.active {
    background-color: #000 !important;
    color: #fff !important;
}

/* Adjusted Product Image Layout */
.product-details .product-details-slider-gallery {
    margin-top: 15px !important;
}

.product-details .sm-gallery {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    /* width: 115px; */
    height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    object-fit: cover;
}

.product-details .sm-gallery img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.product-details .sm-gallery:hover {
    border-color: #ccc;
}

.product-details .sm-gallery.swiper-slide-thumb-active {
    border-color: #000 !important;
}

/* Fix image height consistency */
.product-details-slider-single {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-details-slider-single img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .product-details-slider-single {
        height: 350px;
    }
}
.product-color {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.product-color p {
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    margin: 0px;
}

.product-colors {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 12px;
}

.product-colors span {
    width: 50px;
    min-width: 50px;
    height: 25px;
    border-radius: 5px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    line-height: 1;
    background-color: var(--quaternary-color);
    cursor: pointer;
}