
/* ============================================================
   A1 CASH & CARRY - RESPONSIVE BRAND SLIDER
   ============================================================ */

.brand-section {
    width: 100%;
    padding: 36px 0 42px;
    overflow: hidden;
    background: var(--surface, #f7f9f8);
}

.brand-section-inner {
    width: min(92%, 1600px);
    margin: 0 auto;
}

.brand-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.brand-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #e40505;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.brand-heading h2 {
    margin: 0;
    color: var(--text, #172033);
    font-size: clamp(22px, 2.2vw, 30px);
    font-weight: 800;
    line-height: 1.25;
}

.brand-heading p {
    margin: 8px 0 0;
    color: var(--text-light, #667085);
    font-size: 13px;
    line-height: 1.6;
}

.brand-view-all {
    flex-shrink: 0;
    color: #ed170c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.brand-view-all:hover {
    color: #ec1c15;
    text-decoration: underline;
}

.brand-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 8px 0 14px;
}

#brandTrack {
    display: flex !important;
    flex-flow: row nowrap !important;
    align-items: stretch;
    gap: 0 !important;
    width: max-content !important;
    max-width: none !important;
    margin: 0;
    padding: 0;
    will-change: transform;
}

#brandTrack .brand-group {
    display: flex;
    flex: 0 0 auto;
    flex-flow: row nowrap;
    align-items: stretch;
    gap: 22px;
    width: max-content;
    padding-right: 22px;
}

#brandTrack .brand-card {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 175px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;

    width: 175px;
    min-width: 175px;
    min-height: 210px;
    padding: 14px;

    color: #172033;
    text-decoration: none;
    background: #fff;
    border: 1px solid #e7e9ec;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.055);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

#brandTrack .brand-card:hover {
    border-color: #b8dfc0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.11);
}

#brandTrack .brand-logo-box {
    box-sizing: border-box;
    display: flex;
    flex: 0 0 140px;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 140px;
    padding: 15px;
    overflow: hidden;

    background: #f3f4f6;
    border: 1px solid #ededed;
    border-radius: 14px;
}

#brandTrack .brand-logo-image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

#brandTrack [hidden] {
    display: none !important;
}

#brandTrack .brand-wordmark {
    max-width: 100%;
    color: #172033;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    overflow-wrap: anywhere;
}

#brandTrack .brand-card-name {
    display: block;
    width: 100%;
    min-height: 20px;
    color: #263246;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    overflow-wrap: anywhere;
}

#brandTrack .brand-card:focus-visible {
    outline: 3px solid #07862a;
    outline-offset: 3px;
}

/* Dark mode */

body.dark-mode .brand-section {
    background: #091522;
}

body.dark-mode .brand-heading h2 {
    color: #f5f7fa;
}

body.dark-mode .brand-heading p {
    color: #a8b6c8;
}

body.dark-mode #brandTrack .brand-card {
    color: #f5f7fa;
    background: #111f30;
    border-color: #26384a;
}

body.dark-mode #brandTrack .brand-card-name {
    color: #f5f7fa;
}

body.dark-mode #brandTrack .brand-logo-box {
    background: #f3f4f6;
}

body.dark-mode #brandTrack .brand-wordmark {
    color: #172033;
}

/* Tablet */

@media (max-width: 900px) {
    .brand-section-inner {
        width: 94%;
    }

    #brandTrack .brand-group {
        gap: 16px;
        padding-right: 16px;
    }

    #brandTrack .brand-card {
        flex-basis: 155px;
        width: 155px;
        min-width: 155px;
        min-height: 185px;
        padding: 11px;
        gap: 10px;
    }

    #brandTrack .brand-logo-box {
        flex-basis: 120px;
        height: 120px;
        padding: 12px;
    }

    #brandTrack .brand-card-name {
        font-size: 12px;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .brand-section {
        padding: 28px 0 32px;
    }

    .brand-section-inner {
        width: 92%;
    }

    .brand-heading {
        align-items: flex-start;
        gap: 10px;
    }

    .brand-heading h2 {
        font-size: 22px;
    }

    .brand-heading p {
        font-size: 12px;
    }

    .brand-view-all {
        font-size: 11px;
        white-space: nowrap;
    }

    #brandTrack .brand-group {
        gap: 12px;
        padding-right: 12px;
    }

    #brandTrack .brand-card {
        flex-basis: 132px;
        width: 132px;
        min-width: 132px;
        min-height: 155px;
        padding: 9px;
        gap: 8px;
    }

    #brandTrack .brand-logo-box {
        flex-basis: 95px;
        height: 95px;
        padding: 10px;
    }

    #brandTrack .brand-card-name {
        font-size: 11px;
    }

    #brandTrack .brand-wordmark {
        font-size: 15px;
    }
}
