/* ==================== PRODUCT GALLERY HORIZONTAL CARD STYLE START ==================== */

/* Horizontal product grid container */
.horizontal-product-grid {
    margin: 10px 0;
}

/* Product item - Horizontal card layout */
.products-container .product-row .product-item,
.horizontal-product-grid .products-container .product-item,
.product-module .products-container .product-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #fff !important;
    border: 1px solid #e5e5e5 !important;
    border-radius: 8px !important;
    padding: 5px !important;
    margin-bottom: 15px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    overflow: visible !important;
    height: auto !important;
    min-height: 120px !important;
}

.products-container .product-row .product-item:hover {
    border-color: #ddd !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

/* Product image container - Left side, fixed width */
.products-container .product-item .product-image {
    flex: 0 0 100px !important;
    width: 100px !important;
    height: 100px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0px !important;
    margin: 0 !important;
    margin-right: 10px !important;
    background: #f9f9f9 !important;
    border-radius: 6px !important;
}

.products-container .product-item .product-image a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.products-container .product-item .product-image img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Product details - Right side, flexible width */
.products-container .product-item .product-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    padding: 0 !important;
    text-align: left !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Product name */
.products-container .product-item .product-details .product-name,
.products-container .product-item .product-details h4.product-name {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 0 0 8px 0 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: #333 !important;
    text-align: left !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    max-height: 42px !important;
}

.products-container .product-item .product-details .product-name a {
    color: #333 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    display: block !important;
}

.products-container .product-item .product-details .product-name a:hover {
    color: #ef4a23 !important;
}

/* Star ratings */
.products-container .product-item .product-details .rating,
.products-container .product-item .product-details .reviews {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 5px 0 8px 0 !important;
    font-size: 12px !important;
    color: #ffa500 !important;
}

.products-container .product-item .product-details .rating .fa-star {
    color: #ffa500 !important;
}

/* Product price container */
.products-container .product-item .product-details .product-price {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-top: 5px !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Current price - Red, bold */
.products-container .product-item .product-details .product-price .current-price,
.products-container .product-item .product-details .product-price .special-price {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ef4a23 !important;
    margin: 0 !important;
}

/* Original price - Strikethrough, gray */
.products-container .product-item .product-details .product-price .regular-price,
.products-container .product-item .product-details .product-price .old-price {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #999 !important;
    text-decoration: line-through !important;
    margin: 0 !important;
}

/* Discount badge - Top left corner */
.products-container .product-item .discount-badge,
.products-container .product-item .product-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #ef4a23 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    z-index: 10 !important;
    display: block !important;
}

/* ==================== ADDITIONAL CSS UPDATES START ==================== */

/* Specification section header */
#specification .section-head {
    padding: 14px 22px;
    background: #fff;
    font-size: 20px;
    border: 0px solid #f2792073;
    border-top-width: 0;
    border-bottom-width: 0;
}

/* Navigation tabs */
.nav-tab-bars {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0px;
    border-bottom: 2px solid #e0e0e0;
    padding-left: 0;
    gap: 5px;
}

/* Data table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Related product header */
.related-product h3 {
    background: #ec7a25;
    font-size: 16px;
    color: #fff;
    padding: 6.5px 18px;
    margin-bottom: 0;
    font-weight: normal;
}

/* Buy now button */
.additional-btn button.buy-now {
    background: #1d4a97;
    padding: 8.5px 30px;
    margin: 0px 19px;
    color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s all ease-in-out;
    line-height: normal;
}

/* Header logo */
.header-logo img {
    margin-top: -16px;
    height: 38px;
    width: 208px;
    margin-left: 3%;
    margin-bottom: -40px;
}

/* ==================== BRAND GRID ALIGNMENT FIX START ==================== */

/* Brand grid container */
.brand-grid-container {
    padding: 40px 0;
    background: #fff;
}

/* Brand grid header */
.brand-grid-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-grid-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

/* Brand grid - Centered alignment */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

/* Brand grid item */
.brand-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    /* border: 1px solid #e5e5e5; */
    border-radius: 8px;
    padding: 4px;
    transition: all 0.3s ease;
    text-align: center;
}

.brand-grid-item:hover {
    border-color: #1d4a97;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Brand grid link */
.brand-grid-link {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Brand image container */
.brand-grid-image-container {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.brand-grid-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Brand name */
.brand-grid-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-top: 8px;
}

/* See all brands button container */
.see-all-brands-container {
    text-align: center;
    margin-top: 20px;
}

.see-all-brands-btn {
    display: inline-block;
    background: #1d4a97;
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.see-all-brands-btn:hover {
    background: #ec7a25;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 122, 37, 0.3);
}

/* ==================== BRAND GRID ALIGNMENT FIX END ==================== */

/* ==================== FOOTER SOCIAL ICONS ALIGNMENT FIX START ==================== */

/* Social wrapper - Horizontal alignment */
.ftm-social-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    justify-content: flex-start !important;
    margin-top: 15px !important;
    flex-wrap: nowrap !important;
}

/* Social title */
.ftm-social-title {
    color: #fff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

/* Social list - Horizontal */
.ftm-social-list {
    display: flex !important;
    gap: 0.75rem !important;
    align-items: center !important;
    flex-wrap: wrap !important;
}

/* Social link */
.ftm-social-link {
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    flex-shrink: 0 !important;
}

.ftm-social-link:hover {
    transform: translateY(-2px) scale(1.1) !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2) !important;
}

.ftm-social-link.ftm-facebook:hover {
    background: #1877f2 !important;
    color: white !important;
}

.ftm-social-link.ftm-youtube:hover {
    background: #ff0000 !important;
    color: white !important;
}

.ftm-social-link.ftm-linkedin:hover {
    background: #0077b5 !important;
    color: white !important;
}

.ftm-social-link.ftm-instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%) !important;
    color: white !important;
}

.ftm-social-link i {
    font-size: 0.875rem !important;
}

/* ==================== FOOTER SOCIAL ICONS ALIGNMENT FIX END ==================== */

/* Responsive adjustments */
@media (max-width: 768px) {
    .products-container .product-item .product-image {
        flex: 0 0 80px !important;
        width: 80px !important;
        height: 80px !important;
        margin-right: 12px !important;
    }

    .products-container .product-item .product-details .product-name {
        font-size: 13px !important;
    }

    .products-container .product-item .product-details .product-price .current-price {
        font-size: 16px !important;
    }

    /* Brand grid responsive */
    .brand-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    /* Social icons responsive */
    .ftm-social-wrapper {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .products-container .product-item .product-image {
        flex: 0 0 70px !important;
        width: 70px !important;
        height: 70px !important;
        margin-right: 10px !important;
    }

    .products-container .product-item .product-details .product-name {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
    }

    /* ==================== MODERN COMPARE POPUP START ==================== */

    /* Popup overlay */
    .modern-compare-popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 99999;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .modern-compare-popup-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* Popup container */
    .modern-compare-popup {
        background: #fff;
        border-radius: 12px;
        padding: 40px 30px 30px 30px;
        max-width: 500px;
        width: 90%;
        position: relative;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
        transform: scale(0.9);
        transition: transform 0.3s ease;
    }

    .modern-compare-popup-overlay.active .modern-compare-popup {
        transform: scale(1);
    }

    /* Close button */
    .modern-compare-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: transparent;
        border: none;
        font-size: 28px;
        color: #999;
        cursor: pointer;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        line-height: 1;
    }

    .modern-compare-close:hover {
        background: #f5f5f5;
        color: #333;
    }

    /* Success icon */
    .modern-compare-icon {
        text-align: center;
        margin-bottom: 20px;
    }

    .modern-compare-icon i {
        font-size: 60px;
        color: #28a745;
    }

    /* Content */
    .modern-compare-content {
        text-align: center;
        margin-bottom: 25px;
    }

    .modern-compare-content h3 {
        font-size: 24px;
        font-weight: 700;
        color: #333;
        margin: 0 0 15px 0;
    }

    .modern-compare-content p {
        font-size: 16px;
        color: #666;
        margin: 0 0 15px 0;
        line-height: 1.5;
    }

    .modern-compare-content strong {
        color: #333;
        font-weight: 600;
    }

    /* Compare info */
    .modern-compare-info {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #f8f9fa;
        padding: 12px 20px;
        border-radius: 8px;
        margin-top: 15px;
    }

    .modern-compare-info i {
        color: #1d4a97;
        font-size: 18px;
    }

    .modern-compare-info span {
        font-size: 14px;
        color: #666;
        font-weight: 500;
    }

    /* Action buttons */
    .modern-compare-actions {
        display: flex;
        gap: 12px;
        margin-top: 25px;
    }

    .modern-compare-btn {
        flex: 1;
        padding: 14px 20px;
        border-radius: 8px;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .modern-compare-primary {
        background: #1d4a97;
        color: #fff;
    }

    .modern-compare-primary:hover {
        background: #163a7a;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(29, 74, 151, 0.3);
        color: #fff;
    }

    .modern-compare-secondary {
        background: #f8f9fa;
        color: #666;
        border: 1px solid #e0e0e0;
    }

    .modern-compare-secondary:hover {
        background: #e9ecef;
        color: #333;
    }

    /* ==================== MODERN COMPARE POPUP END ==================== */

    /* ==================== STICKY COMPARE BUTTON COUNTER START ==================== */

    /* Sticky compare button with counter */
    .sticky-btn.cmpr-toggler {
        position: relative;
    }

    .sticky-btn.cmpr-toggler .value {
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ef4a23;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        min-width: 20px;
        height: 20px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
        border: 2px solid #fff;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .sticky-btn.cmpr-toggler .label {
        font-size: 12px;
        margin-top: 4px;
    }

    /* ==================== STICKY COMPARE BUTTON COUNTER END ==================== */

    /* Responsive for popup */
    @media (max-width: 576px) {
        .modern-compare-popup {
            padding: 30px 20px 20px 20px;
            width: 95%;
        }

        .modern-compare-icon i {
            font-size: 50px;
        }

        .modern-compare-content h3 {
            font-size: 20px;
        }

        .modern-compare-content p {
            font-size: 14px;
        }

        .modern-compare-actions {
            flex-direction: column;
        }

        .modern-compare-btn {
            width: 100%;
        }
    }
}

/* ==================== FONT AWESOME BRANDS FIX ==================== */

.fa-brands,
.fab {
    margin-top: 1px;
    font-family: "Font Awesome 6 Brands";
    font-weight: 400;
}

/* ==================== FONT AWESOME BRANDS FIX END ==================== */

/* ==================== PRODUCT GALLERY HORIZONTAL CARD STYLE END ==================== */