﻿.product-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: 10px;
}

    .product-box:hover {
        transform: scale(1.03);
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.product-category {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-content {
    padding: 15px;
}

.product-title {
    font-size: 1.5rem;
    margin: 0;
}

.product-address {
    color: #555;
    font-size: 1rem;
    margin-top: 5px;
}

.load-more-btn {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

#loadMoreBtn {
    position: relative;
    background-color: #007bff;
    border: none;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #loadMoreBtn:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

.button-text {
    position: relative;
    z-index: 1;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    border: 3px solid #fff;
    border-top-color: transparent;
    transform: translateY(-50%) scale(0);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 0;
}

#loadMoreBtn.loading .loading-spinner {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1200px) {
    .product-box {
        margin: 15px;
    }
}

@media (max-width: 992px) {
    .product-box {
        margin: 10px;
    }
}

@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
}

@media only screen and (max-width: 768px) {
    .owl-carousel .owl-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
        display: block;
        max-height: 100vh;
    }
}

@media (max-width: 576px) {
    .product-title {
        font-size: 1.2rem;
    }

    .product-address {
        font-size: 0.9rem;
    }

    #loadMoreBtn {
        font-size: 16px;
        padding: 10px 20px;
    }
}







.owl-carousel .owl-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    position: relative;
}

.owl-carousel .image-popup img {
    width: 100%;
    height: auto;
    object-fit: cover;
}


.thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    margin: 0 5px;
}

    .thumbnail:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }

.main-image {
    text-align: center;
    position: relative;
}


@media only screen and (max-width: 768px) {
    .owl-carousel .owl-item img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
}




#toggleViewBtn {
    background: #f8f9fa;
    border: 1px solid #ced4da;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

    #toggleViewBtn i {
        font-size: 20px;
    }

    #toggleViewBtn:focus {
        outline: none;
    }

.table-image {
    width: 80px;
    height: auto;
    border-radius: 5px;
}

.table-sort {
    background: none;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
}

    .table-sort i {
        margin-left: 5px;
    }

    .table-sort:focus {
        outline: none;
    }

.form-select {
    padding: 5px;
}

@media (max-width: 768px) {
    #toggleViewBtn {
        font-size: 14px;
        padding: 6px 12px;
    }

        #toggleViewBtn i {
            font-size: 16px;
        }
}

.single-post-image {
    margin-bottom: 30px;
}

.main-image {
    max-width: 100%;
    margin-bottom: 15px;
    position: relative;
}

    .main-image img {
        width: 100%;
        height: auto; 
        object-fit: cover; 
        aspect-ratio: 16/9; 
    }

.thumbnail-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .thumbnail-container img {
        width: 100px;
        height: 75px;
        object-fit: cover;
        cursor: pointer;
        transition: transform 0.3s ease;
    }

        .thumbnail-container img:hover {
            transform: scale(1.1);
        }

@media (max-width: 768px) {
    .main-image img {
        height: 250px;
    }

    .thumbnail-container {
        gap: 5px;
    }

        .thumbnail-container img {
            width: 80px;
            height: 60px;
        }
}

@media (max-width: 480px) {
    .thumbnail-container img {
        width: 70px;
        height: 50px;
    }
}

.mfp-img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    object-fit: contain; 
}
