/* ===================================
   Custom Lightbox & Custom Element Styles
====================================== */

/* Custom Category Image Lightbox Styling */
.category-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.category-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: visible;
    background: #111;
}

.category-lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    display: block;
}

/* Close button - right side top of the image */
.lightbox-close {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 44px;
    height: 44px;
    background-color: #e53e3e;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, transform 0.2s;
    z-index: 10010;
}

.lightbox-close:hover {
    background-color: #c53030;
    transform: scale(1.1);
}

.lightbox-close:focus {
    outline: none;
}

/* Responsive styling for mobile screen close button */
@media (max-width: 767px) {
    .lightbox-close {
        top: -15px;
        right: -15px;
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

/* Homepage and dark hero headers (keep text/logo white on laptop/desktop view) */
@media (min-width: 992px) {
    header nav.navbar.dark-hero-navbar .navbar-brand .text-dark-gray {
        color: #ffffff !important;
    }

    header nav.navbar.dark-hero-navbar .navbar-nav .nav-link {
        color: #ffffff !important;
    }
}

/* Custom Product Grid Aspect Ratio */
.decor-store-product-grid .shop-image {
    aspect-ratio: 6 / 7;
    overflow: hidden;
}

.decor-store-product-grid .shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Decor Store Feature Row Styles */
.decor-store-feature-row .feature-box {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.decor-store-feature-row .feature-box-icon {
    width: 100%;
    height: 60px;
    margin-right: 0 !important;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.decor-store-feature-row .feature-box-icon img,
.decor-store-feature-row .feature-box-icon i {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}
