/* Electro Theme Partner Brands Carousel & Footer Trust Widgets */

/* 1. Partner Brands Slider */
.electro-brands-section {
    position: relative;
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.electro-brands-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f1f5f9;
}

.electro-brands-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text, #1e293b);
    margin: 0;
}

.electro-brands-track-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 0;
}

.electro-brands-track {
    display: flex;
    align-items: center;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0.35rem 0.25rem 0.5rem 0.25rem;
    scroll-snap-type: x mandatory;
    box-sizing: border-box;
}

.electro-brands-track::-webkit-scrollbar {
    display: none;
}

/* Brand item sizing inside slider -> 6 items visible per view on desktop */
.electro-brands-track .electro-brand-item {
    flex: 0 0 calc((100% - 5rem) / 6) !important;
    width: calc((100% - 5rem) / 6) !important;
    min-width: calc((100% - 5rem) / 6) !important;
    max-width: calc((100% - 5rem) / 6) !important;
    height: 54px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.75rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    box-sizing: border-box !important;
    scroll-snap-align: start !important;
    scroll-snap-stop: always !important;
}

.electro-brand-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent, #2563eb);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
}

.electro-brand-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #475569;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.electro-brand-item:hover .electro-brand-name {
    color: var(--accent, #2563eb);
}

/* 2. Footer 4-Column Trust Widgets Grid */
.electro-footer-widgets {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px dashed #cbd5e1;
    border-bottom: 1px dashed #cbd5e1;
}

.electro-widgets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.electro-widget-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.electro-widget-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.electro-widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #eff6ff;
    color: var(--accent, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.electro-widget-content {
    display: flex;
    flex-direction: column;
}

.electro-widget-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text, #0f172a);
    margin: 0 0 0.2rem 0;
}

.electro-widget-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 991px) {
    .electro-brands-track .electro-brand-item {
        flex: 0 0 calc((100% - 3rem) / 4) !important;
        width: calc((100% - 3rem) / 4) !important;
        min-width: calc((100% - 3rem) / 4) !important;
        max-width: calc((100% - 3rem) / 4) !important;
    }

    .electro-widgets-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .electro-brands-track .electro-brand-item {
        flex: 0 0 calc((100% - 1rem) / 2) !important;
        width: calc((100% - 1rem) / 2) !important;
        min-width: calc((100% - 1rem) / 2) !important;
        max-width: calc((100% - 1rem) / 2) !important;
    }

    .electro-widgets-grid {
        grid-template-columns: 1fr;
    }
}
