/* CSS cho slider hình ảnh sản phẩm */

/* Wrapper chính cho slider */
.hh-product-slider-wrapper {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 20px 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Tiêu đề slider */
.hh-product-slider-title {
    font-size: 20px;
    font-weight: bold;
    padding-left: 2.5px;
    margin-bottom: 20px;
    text-align: left;
    color: #333;
}

/* Container cho slider */
.hh-product-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
}

/* Inner container cho slides */
.hh-product-slider-inner {
    display: flex;
    transition: transform 0.5s ease;
}

/* Mỗi slide trong slider */
.hh-product-slider-slide {
    flex: 0 0 33.333%;
    max-width: 33.333%;
    padding: 0 2.5px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

/* Hình ảnh trong mỗi slide */
.hh-product-slider-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.hh-product-slider-slide img.loaded {
    opacity: 1;
}

/* Nút điều hướng slider */
.hh-product-slider-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    color: #333 !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    font-size: 20px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    padding: 0 !important;
    min-height: auto !important;
}

.hh-product-slider-button:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4) !important;
    color: #333 !important;
}

.hh-product-slider-button-prev { left: 10px !important; }
.hh-product-slider-button-next { right: 10px !important; }

/* Dots navigation */
.hh-product-slider-dots {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.hh-product-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hh-product-slider-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* Lightbox styles */
.hh-product-lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.hh-product-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hh-product-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.hh-product-lightbox-close:hover {
    color: #bbb;
}

/* Nút điều hướng trong lightbox */
.hh-product-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    color: #333;
    font-size: 30px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hh-product-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hh-product-lightbox-prev { left: 20px; }
.hh-product-lightbox-next { right: 20px; }

.hh-product-lightbox-content {
    cursor: pointer;
}

.hh-product-lightbox-counter {
    position: absolute;
    top: 40px; 
    left: 20px;
    color: #f1f1f1;
    font-size: 16px;
    z-index: 1010;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 5px;
}

.hh-product-lightbox-title {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 18px;
    padding: 10px;
}

/* Media queries cho responsive design */
@media (max-width: 767px) {
    .hh-product-slider-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Điều chỉnh kích thước nút trong lightbox cho điện thoại */
    .hh-product-lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .hh-product-lightbox-prev { left: 10px; }
    .hh-product-lightbox-next { right: 10px; }
}
