/* ==========================================================================
   TAJ MINAR & TAJ SALES - Auxiliary Component Styles
   ========================================================================== */

/* Search Overlay Modal */
.search-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(6, 38, 28, 0.92);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.search-modal-backdrop.active {
    display: flex;
    animation: fadeIn 0.25s ease-out;
}
.search-modal-box {
    background: #ffffff;
    border: 2px solid var(--gold);
    border-radius: 12px;
    width: 100%;
    max-width: 680px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
    position: relative;
}
.search-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--muted-gray);
    cursor: pointer;
}
.search-modal-close:hover {
    color: var(--primary-green);
}
.search-results-list {
    max-height: 320px;
    overflow-y: auto;
    margin-top: 20px;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    border-radius: 6px;
    transition: var(--transition-smooth);
}
.search-result-item:hover {
    background: var(--ivory);
}
.search-result-thumb {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    object-fit: cover;
}

/* Lightbox Modal for Product & Gallery Images */
.lightbox-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.lightbox-modal.active {
    display: flex;
}
.lightbox-img-wrap {
    max-width: 90vw;
    max-height: 80vh;
    position: relative;
}
.lightbox-img-wrap img {
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid var(--gold);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.8);
}
.lightbox-caption {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 18px;
    margin-top: 15px;
    text-anchor: middle;
}
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
}
.lightbox-nav-btn:hover {
    background: var(--gold);
    color: var(--dark-green);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 3100;
    transition: var(--transition-smooth);
}
.lightbox-close:hover {
    color: var(--dark-green);
    background: var(--gold);
}

/* Offcanvas Filter Drawer on Mobile */
@media (max-width: 991px) {
    .mega-menu-content {
        position: static;
        box-shadow: none;
        padding: 15px;
    }
    .hero-title {
        font-size: 32px;
    }
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(212, 175, 55, 0.2);
        padding: 15px 0;
    }
}

/* Floating Quick Action Bar (Phone + WhatsApp Icons on Right Side) */
.floating-quick-actions {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.float-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: var(--transition-smooth);
    text-decoration: none;
    padding: 10px;
}
.float-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.float-btn:hover {
    transform: scale(1.12);
}
.float-whatsapp {
    background-color: #25D366;
}
.float-whatsapp:hover {
    background-color: #1ebc57;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}
.float-phone {
    background-color: var(--primary-green);
    border: 2px solid var(--gold);
}
.float-phone:hover {
    background-color: var(--dark-green);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}
