
/* =========================================
   BRAND PAGE
========================================= */

.brand-page {
    width: 100%;
    min-height: 70vh;
    padding: 30px 0 50px;
    background: #f6f6f6;
    box-sizing: border-box;
}

.brand-page * {
    box-sizing: border-box;
}

.brand-page .container-fluid {
    width: 100%;
}

/* =========================================
   PAGE HEADER
========================================= */

.brand-header {
    margin-bottom: 25px !important;
}

.brand-header h2 {
    color: #222;
    font-size: 26px;
    font-weight: 700;
}

.brand-header p {
    color: #777;
    font-size: 13px;
}

/* =========================================
   BRAND GRID
========================================= */

.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    align-items: stretch;
}

/* =========================================
   BRAND CARD
========================================= */

.brand-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 14px;

    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;

    text-decoration: none !important;
    color: inherit;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: #e0e0e0;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

/* =========================================
   BRAND IMAGE
========================================= */

.brand-image {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 135px;
    min-height: 135px;

    overflow: hidden;
    border-radius: 10px;
    background: #f8f8f8;

    margin-bottom: 13px;
}

.brand-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;

    object-fit: contain;
    object-position: center;

    transition: transform 0.3s ease;
}

.brand-card:hover .brand-image img {
    transform: scale(1.05);
}

/* Image fallback */

.brand-image-placeholder {
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    background: #f1f1f1;
    color: #555;
    font-size: 35px;
    font-weight: 700;
}

/* =========================================
   BRAND CONTENT
========================================= */

.brand-content {
    width: 100%;
    min-width: 0;
}

.brand-content h4 {
    margin: 0 0 7px;

    color: #222;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;

    overflow-wrap: anywhere;
}

.brand-content p {
    margin: 0;

    color: #777;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

/* =========================================
   LOAD MORE SECTION
========================================= */

.brand-load-more-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 35px 0 10px;
}

.brand-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: 175px;
    min-height: 46px;
    padding: 12px 28px;

    border: none;
    border-radius: 8px;

    background: #ff6257;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 4px 12px rgba(255, 98, 87, 0.18);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.brand-load-more:hover {
    background: #ed5147;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 98, 87, 0.25);
}

.brand-load-more:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.brand-load-more-spinner {
    display: none;

    width: 17px;
    height: 17px;

    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;

    animation: brandSpinner 0.7s linear infinite;
}

.brand-load-more.loading .brand-load-more-spinner {
    display: inline-block;
}

.brand-load-more.loading .brand-load-more-text {
    opacity: 0.9;
}

@keyframes brandSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* =========================================
   LOAD MORE STATUS
========================================= */

.brand-load-status {
    margin-top: 12px;

    color: #777;
    font-size: 12px;
    text-align: center;
}

.brand-load-status.error {
    color: #dc3545;
}

/* =========================================
   NEW CARD ANIMATION
========================================= */

.brand-card.brand-new-card {
    animation: brandCardAppear 0.4s ease both;
}

@keyframes brandCardAppear {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   EMPTY STATE
========================================= */

.brand-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 280px;
    padding: 40px 20px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;

    text-align: center;
}

.brand-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 65px;
    height: 65px;
    margin-bottom: 18px;

    border-radius: 50%;
    background: #fff0ef;

    color: #ff6257;
    font-size: 25px;
}

.brand-empty-state h4 {
    color: #222;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.brand-empty-state p {
    color: #777;
    font-size: 13px;
    margin: 0;
}

/* =========================================
   LAPTOP
========================================= */

@media (max-width: 1200px) {
    .brand-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 768px) {
    .brand-page {
        padding: 20px 0 35px;
    }

    .brand-header h2 {
        font-size: 22px;
    }

    .brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .brand-card {
        padding: 10px;
    }

    .brand-image {
        height: 115px;
        min-height: 115px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {
    .brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .brand-image {
        height: 105px;
        min-height: 105px;
    }

    .brand-content h4 {
        font-size: 13px;
    }

    .brand-content p {
        font-size: 11px;
    }

    .brand-load-more {
        width: 100%;
        max-width: 240px;
    }
}
