/* code for footer.php nav links */
.hover-link:hover {
    color: #ffc107 !important;
    transition: color 0.15s ease-in-out;
}

/* code for search box in header.php */
.mw-200 {
    min-width: 200px;
}

/* Dynamic Navbar Logo Core Optimization rules */
.navbar-text-theme {
    color: var(--bs-body-color) !important;
}

/* Interactive effects for the lightbox modal close button */
.custom-lightbox-close-btn:hover {
    transform: scale(1.1);
    background-color: #ffca2c !important;
    border-color: #000 !important;
}

/* =========================================================================
   LIGHTBOX OVERRIDES FOR PRODUCT VIEWER (DESKTOP & MOBILE COMBINED)
   ========================================================================= */
/* 1. Universal: Force the inner modal content container to be borderless and transparent */
#imageLightboxModal .modal-content {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* 2. Universal: Remove standard padding and allow image overflow when zooming */
#imageLightboxModal .modal-body {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* 3. Universal Desktop Defaults: Max dimensions for standard monitors */
#id-lightbox-image-mirror {
    max-height: 85vh;
    object-fit: contain;
    width: 100%;
    pointer-events: auto;
    z-index: 1040;
    will-change: transform;
    /* Uses GPU acceleration for smooth mousewheel scrolling */
}

#imageLightboxModal .carousel-control-prev,
#imageLightboxModal .carousel-control-next {
    z-index: 1060 !important;
    width: 10%;
}

/* 4. Mobile Maximization: Activates on screens under 768px wide */
@media (max-width: 767.98px) {
    #imageLightboxModal .modal-dialog {
        margin: 0.25rem !important;
        max-width: 100% !important;
        width: auto !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #imageLightboxModal .modal-body {
        width: 100% !important;
        padding: 0 !important;
    }

    /* Force both portrait and landscape images to take up 92% of the mobile screen width */
    #id-lightbox-image-mirror {
        max-height: 90vh !important;
        width: 92vw !important;
        height: auto !important;
        object-fit: contain;
    }

    /* Center-align the descriptive lower label strip on narrow screens */
    #imageLightboxModal .modal-footer {
        width: 90% !important;
        margin-top: 1rem !important;
        padding: 0.5rem 1rem !important;
    }
}

/* =========================================================================
   HEADER ARCHITECTURE COMPACT LAYOUT ENGINE
   ========================================================================= */
/* 1. Tighten inner link heights inside the horizontal navigation list row container */
.navbar-expand-lg .navbar-nav .nav-link {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* 2. Scale down the language switcher flags and theme button for visual balance */
.custom-header-theme-toggle {
    height: 34px !important;
    width: 36px !important;
}

.id-live-search-container .form-control,
.id-live-search-container .btn {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
}

.id-live-search-container {
    max-height: 34px;
}

/* Previne pâlpâirea caruselului la reîncărcare până la identificarea slide-ului corect */
.carousel-loading .carousel-item.active {
    display: none !important;
}