/* Custom Trust & UI Badges Styles */

/* 1. Top Trust Bar below main header */
.top-trust-bar {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 8px 0;
    text-align: center;
}
.top-trust-bar-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
}
.top-trust-item {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 500;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 4px 10px;
}
.top-trust-item i {
    color: #222;
    margin-right: 6px;
    font-size: 12px;
}

/* 2. Product Detail Page Trust Card */
.product-trust-card {
    margin-top: 25px;
    padding: 18px;
    background-color: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
}
.trust-card-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}
.trust-card-item:last-child {
    margin-bottom: 0;
}
.trust-card-icon {
    font-size: 16px;
    color: #222;
    margin-top: 3px;
    margin-right: 12px;
    width: 20px;
    text-align: center;
}
.trust-card-text {
    display: flex;
    flex-direction: column;
}
.trust-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}
.trust-card-desc {
    font-size: 11px;
    color: #666;
    margin-top: 1px;
}

/* 3. Floating Google Reviews Badge */
.floating-reviews-badge {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    text-decoration: none !important;
    display: block;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}
.floating-reviews-badge:hover {
    transform: translate(-50%, -4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}
.reviews-badge-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}
.reviews-badge-logo {
    margin-right: 10px;
    display: flex;
    align-items: center;
}
.reviews-badge-text {
    display: flex;
    flex-direction: column;
}
.reviews-badge-title {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}
.reviews-badge-stars {
    display: flex;
    align-items: center;
    margin-top: 3px;
}
.reviews-badge-rating {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-right: 6px;
    line-height: 1;
}
.reviews-badge-stars i {
    color: #ffc107;
    font-size: 11px;
    margin-right: 2px;
}

/* 4. Fix Product Image Modal Thumbnails */
#product-modal .modal-dialog {
    max-width: 95%; /* Make the modal use most of the screen */
    margin: 1.75rem auto;
}
#product-modal .modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#product-modal figure {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center horizontally on mobile */
}
#product-modal .js-modal-product-cover {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 85vh; /* Allow it to be taller */
}
#product-modal .product-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}
#product-modal .thumb-container {
    width: 90px;
    height: 90px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    border-radius: 4px;
    cursor: pointer;
}
#product-modal .thumb-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (min-width: 992px) {
    #product-modal .modal-dialog {
        max-width: 1200px; /* Max width on desktop */
    }
    #product-modal .modal-body {
        flex-direction: row;
        align-items: flex-start;
        justify-content: center; /* Center the whole block */
    }
    #product-modal figure {
        width: auto;
        flex: 1;
        padding-right: 30px;
        align-items: flex-end; /* Push image to the right towards thumbnails */
    }
    #product-modal .thumbnails {
        width: 120px;
        flex-shrink: 0;
    }
    #product-modal .product-images {
        flex-direction: column;
        gap: 12px;
        margin-top: 0;
    }
    #product-modal .thumb-container {
        width: 100%;
        height: 120px;
        max-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Hide search widgets in top header on mobile */
@media (max-width: 991px) {
    .header-mobile .search-widget,
    .header-mobile #search_widget,
    .header-mobile .leoproductsearch,
    #_mobile_cart .search-widget,
    .mobile-header .search-widget {
        display: none !important;
    }
    
    /* Style for the search bar injected inside the lateral menu */
    .mobile-menu-search-form {
        padding: 15px;
        background: #f8f9fa;
        border-bottom: 1px solid #eaeaea;
    }
    .mobile-menu-search-form .input-group {
        display: flex;
        width: 100%;
    }
    .mobile-menu-search-form .form-control {
        flex: 1;
        padding: 10px 15px;
        border: 1px solid #ddd;
        border-radius: 4px 0 0 4px;
        font-size: 14px;
    }
    .mobile-menu-search-form .btn-primary {
        padding: 10px 18px;
        background-color: #222;
        color: #fff;
        border: 1px solid #222;
        border-radius: 0 4px 4px 0;
    }
}

/* 5. Align WhatsApp floating button with Back to Top button */
#fcn .bt_widget-bottom-left,
#fcn .bt_widget-bottom-right {
    bottom: 20px !important;
    left: 20px !important;
    margin: 0 !important;
}
#fcn .bt_whatsapp {
    margin: 0 !important;
}