/* ==========================================================
   BRAND DETAIL
   SOSMedical
========================================================== */

.brand-detail-page {
    background: var(--background);
}

/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.brand-detail-breadcrumb {
    padding: 28px 0 0;
}

.brand-detail-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    color: var(--text-light);
    font-size: 13px;
}

.brand-detail-breadcrumb__link {
    color: var(--secondary);
    font-weight: 600;

    transition: color var(--transition);
}

.brand-detail-breadcrumb__link:hover {
    color: var(--primary);
}

.brand-detail-breadcrumb__separator {
    color: #a3afbb;
}

/*
|--------------------------------------------------------------------------
| Hero
|--------------------------------------------------------------------------
*/

.brand-detail-hero {
    position: relative;
    overflow: hidden;

    padding: 52px 0 92px;

    background:
        radial-gradient(
            circle at 82% 22%,
            rgba(0, 153, 216, 0.16),
            transparent 27%
        ),
        radial-gradient(
            circle at 12% 85%,
            rgba(0, 182, 122, 0.08),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #f9fcfe 0%,
            #eef8fc 50%,
            #ffffff 100%
        );
}

.brand-detail-hero::before {
    position: absolute;
    top: -190px;
    right: -150px;

    width: 570px;
    height: 570px;

    content: "";
    pointer-events: none;

    border: 80px solid rgba(0, 153, 216, 0.035);
    border-radius: 50%;
}

.brand-detail-hero__grid {
    position: relative;
    z-index: 2;

    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 0.88fr) minmax(430px, 1.12fr);
    gap: clamp(50px, 8vw, 110px);
}

.brand-detail-hero__content {
    min-width: 0;
}

.brand-detail-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 7px 13px;

    color: var(--secondary);
    font-family: var(--font-title);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;

    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 153, 216, 0.14);
    border-radius: 999px;

    box-shadow: 0 8px 24px rgba(11, 35, 65, 0.06);
}

.brand-detail-hero__label::before {
    width: 8px;
    height: 8px;

    content: "";

    background: var(--success);
    border-radius: 50%;

    box-shadow: 0 0 0 5px rgba(0, 182, 122, 0.1);
}

.brand-detail-hero__logo-wrap {
    display: flex;
    align-items: center;

    min-height: 105px;
    margin-top: 22px;
}

.brand-detail-hero__logo {
    width: auto;
    max-width: 250px;
    max-height: 95px;

    object-fit: contain;
}

.brand-detail-hero__title {
    margin-top: 24px;

    color: var(--primary);
    font-size: clamp(42px, 6vw, 72px);
    letter-spacing: -0.04em;
    line-height: 1.04;
}

.brand-detail-hero__description {
    max-width: 690px;
    margin-top: 22px;

    color: var(--text-light);
    font-size: 17px;
    line-height: 1.85;
}

.brand-detail-hero__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 26px;
}

.brand-detail-hero__stat {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 10px 14px;

    color: var(--primary);
    font-size: 13px;
    font-weight: 700;

    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 999px;

    box-shadow: 0 8px 20px rgba(11, 35, 65, 0.06);
}

.brand-detail-hero__stat-icon {
    display: inline-flex;

    color: var(--secondary);
}

.brand-detail-hero__stat-icon svg {
    width: 17px;
    height: 17px;
}

.brand-detail-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;

    margin-top: 32px;
}

/*
|--------------------------------------------------------------------------
| Hero visual
|--------------------------------------------------------------------------
*/

.brand-detail-hero__visual {
    position: relative;

    min-height: 520px;
}

.brand-detail-hero__cover {
    position: absolute;
    inset: 0;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #eaf6fb,
            #f8fcfe
        );
    border: 1px solid rgba(11, 35, 65, 0.07);
    border-radius: 30px;

    box-shadow: var(--shadow-lg);
}

.brand-detail-hero__cover::after {
    position: absolute;
    inset: 0;

    content: "";

    background:
        linear-gradient(
            180deg,
            rgba(11, 35, 65, 0) 45%,
            rgba(11, 35, 65, 0.2) 100%
        );
}

.brand-detail-hero__cover-image {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.brand-detail-hero__featured {
    position: absolute;
    right: -20px;
    bottom: 34px;
    z-index: 3;

    max-width: 260px;
    padding: 20px;

    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 18px;

    box-shadow: 0 22px 50px rgba(11, 35, 65, 0.14);

    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.brand-detail-hero__featured-label {
    color: var(--secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-detail-hero__featured-title {
    margin-top: 7px;

    color: var(--primary);
    font-size: 17px;
    line-height: 1.3;
}

.brand-detail-hero__featured-text {
    margin-top: 7px;

    color: var(--text-light);
    font-size: 12px;
    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| Categories
|--------------------------------------------------------------------------
*/

.brand-categories {
    padding: 90px 0;

    background: var(--white);
}

.brand-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;

    margin-bottom: 42px;
}

.brand-section-heading__content {
    max-width: 720px;
}

.brand-section-heading__eyebrow {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.brand-section-heading__title {
    margin-top: 10px;

    font-size: clamp(32px, 4.5vw, 50px);
}

.brand-section-heading__text {
    margin-top: 15px;

    color: var(--text-light);
    font-size: 16px;
    line-height: 1.8;
}

.brand-categories__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.brand-category-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 17px;

    min-height: 150px;
    padding: 24px;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 18px;

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.brand-category-card:hover {
    border-color: rgba(0, 153, 216, 0.2);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.brand-category-card__icon {
    display: grid;
    flex-shrink: 0;

    width: 52px;
    height: 52px;

    color: var(--secondary);

    background: rgba(0, 153, 216, 0.09);
    border-radius: 15px;

    place-items: center;
}

.brand-category-card__icon svg {
    width: 24px;
    height: 24px;
}

.brand-category-card__title {
    color: var(--primary);
    font-size: 18px;
}

.brand-category-card__description {
    display: -webkit-box;
    overflow: hidden;

    margin-top: 7px;

    color: var(--text-light);
    font-size: 13px;
    line-height: 1.6;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
}

.brand-category-card__count {
    display: inline-flex;

    margin-top: 12px;
    padding: 6px 10px;

    color: var(--secondary);
    font-size: 11px;
    font-weight: 700;

    background: rgba(0, 153, 216, 0.08);
    border-radius: 999px;
}

/*
|--------------------------------------------------------------------------
| Products
|--------------------------------------------------------------------------
*/

.brand-products {
    padding: 100px 0 110px;

    background:
        radial-gradient(
            circle at 8% 18%,
            rgba(0, 153, 216, 0.045),
            transparent 25%
        ),
        var(--background);
}

.brand-products__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    margin-bottom: 30px;
    padding: 18px 20px;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: var(--radius-md);

    box-shadow: var(--shadow-sm);
}

.brand-products__count {
    color: var(--primary);
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 700;
}

.brand-products__count span {
    color: var(--secondary);
}

.brand-products__sort {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-products__sort-label {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 600;
}

.brand-products__sort-select {
    min-width: 185px;
    min-height: 42px;
    padding: 9px 38px 9px 13px;

    color: var(--primary);
    font-size: 13px;
    font-weight: 600;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.brand-products__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.brand-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-top: 48px;
}

.brand-pagination__link {
    display: inline-grid;

    min-width: 44px;
    height: 44px;
    padding: 0 12px;

    color: var(--primary);
    font-size: 13px;
    font-weight: 700;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;

    place-items: center;

    transition:
        color var(--transition),
        background-color var(--transition),
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.brand-pagination__link:hover,
.brand-pagination__link.is-active {
    color: var(--white);
    background: var(--secondary);
    border-color: var(--secondary);

    box-shadow: 0 10px 22px rgba(0, 153, 216, 0.18);
}

.brand-pagination__link:hover {
    transform: translateY(-2px);
}

.brand-pagination__link.is-disabled {
    opacity: 0.42;
    pointer-events: none;
}

/*
|--------------------------------------------------------------------------
| Related brands
|--------------------------------------------------------------------------
*/

.related-brands {
    padding: 95px 0;

    background: var(--white);
}

.related-brands__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.related-brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 190px;
    padding: 25px;

    text-align: center;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: 20px;

    box-shadow: var(--shadow-sm);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

.related-brand-card:hover {
    border-color: rgba(0, 153, 216, 0.18);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.related-brand-card__logo {
    width: auto;
    max-width: 135px;
    max-height: 65px;

    object-fit: contain;
}

.related-brand-card__name {
    margin-top: 18px;

    color: var(--primary);
    font-size: 16px;
}

.related-brand-card__count {
    margin-top: 7px;

    color: var(--text-light);
    font-size: 12px;
}

/*
|--------------------------------------------------------------------------
| CTA
|--------------------------------------------------------------------------
*/

.brand-detail-cta {
    padding: 85px 0 110px;

    background: var(--white);
}

.brand-detail-cta__box {
    position: relative;
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 45px;
    overflow: hidden;

    padding: clamp(42px, 6vw, 72px);

    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(255, 255, 255, 0.16),
            transparent 26%
        ),
        linear-gradient(
            135deg,
            var(--secondary),
            #007fb8 55%,
            var(--primary)
        );
    border-radius: 30px;

    box-shadow: 0 32px 75px rgba(0, 153, 216, 0.22);
}

.brand-detail-cta__box::before {
    position: absolute;
    top: -140px;
    right: -90px;

    width: 360px;
    height: 360px;

    content: "";

    border: 68px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.brand-detail-cta__content {
    position: relative;
    z-index: 2;
}

.brand-detail-cta__eyebrow {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.brand-detail-cta__title {
    margin-top: 11px;

    color: var(--white);
    font-size: clamp(32px, 4.5vw, 54px);
}

.brand-detail-cta__text {
    max-width: 680px;
    margin-top: 16px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.8;
}

.brand-detail-cta__action {
    position: relative;
    z-index: 2;
}

/*
|--------------------------------------------------------------------------
| Empty state
|--------------------------------------------------------------------------
*/

.brand-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    min-height: 390px;
    padding: 50px 30px;

    text-align: center;

    background: var(--white);
    border: 1px solid rgba(11, 35, 65, 0.08);
    border-radius: var(--radius-lg);

    box-shadow: var(--shadow-sm);
}

.brand-empty__icon {
    display: grid;

    width: 78px;
    height: 78px;

    color: var(--secondary);

    background: rgba(0, 153, 216, 0.08);
    border-radius: 22px;

    place-items: center;
}

.brand-empty__icon svg {
    width: 35px;
    height: 35px;
}

.brand-empty__title {
    margin-top: 22px;

    color: var(--primary);
    font-size: 24px;
}

.brand-empty__text {
    max-width: 520px;
    margin-top: 10px;

    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
}

.brand-empty__action {
    margin-top: 23px;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 1200px) {
    .brand-detail-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(390px, 0.9fr);
        gap: 50px;
    }

    .brand-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-brands__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .brand-detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .brand-detail-hero__content {
        max-width: 780px;
    }

    .brand-detail-hero__visual {
        max-width: 760px;
        min-height: 460px;
    }

    .brand-detail-hero__featured {
        right: 20px;
    }

    .brand-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand-detail-cta__box {
        grid-template-columns: 1fr;
    }

    .brand-detail-cta__action {
        justify-self: start;
    }
}

@media (max-width: 768px) {

    /*
    |--------------------------------------------------------------------------
    | Breadcrumb
    |--------------------------------------------------------------------------
    */

    .brand-detail-breadcrumb {
        padding-top: 20px;
    }

    .brand-detail-breadcrumb__list {
        gap: 6px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Hero
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero {
        padding: 32px 0 55px;
    }

    .brand-detail-hero__grid {
        gap: 32px;
    }

    .brand-detail-hero__label {
        padding: 6px 10px;

        font-size: 9px;
    }

    .brand-detail-hero__logo-wrap {
        min-height: 75px;
        margin-top: 18px;
    }

    .brand-detail-hero__logo {
        max-width: 210px;
        max-height: 75px;
    }

    .brand-detail-hero__title {
        margin-top: 18px;

        font-size: clamp(34px, 9vw, 44px);
        line-height: 1.05;
    }

    .brand-detail-hero__description {
        display: -webkit-box;
        overflow: hidden;

        margin-top: 16px;

        font-size: 14px;
        line-height: 1.65;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    .brand-detail-hero__meta {
        gap: 8px;

        margin-top: 20px;
    }

    .brand-detail-hero__stat {
        padding: 8px 11px;

        font-size: 10px;
    }

    .brand-detail-hero__stat-icon svg {
        width: 15px;
        height: 15px;
    }

    .brand-detail-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;

        margin-top: 24px;
    }

    .brand-detail-hero__actions .btn {
        width: 100%;
    }


    /*
    |--------------------------------------------------------------------------
    | Imagen de portada
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__visual {
        min-height: 330px;
    }

    .brand-detail-hero__cover {
        border-radius: 24px;
    }

    .brand-detail-hero__featured {
        right: 12px;
        bottom: 14px;

        max-width: 220px;
        padding: 16px;
    }

    .brand-detail-hero__featured-title {
        font-size: 15px;
    }

    .brand-detail-hero__featured-text {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Encabezados
    |--------------------------------------------------------------------------
    */

    .brand-section-heading {
        gap: 20px;

        margin-bottom: 30px;
    }

    .brand-section-heading__eyebrow {
        font-size: 9px;
    }

    .brand-section-heading__title {
        margin-top: 8px;

        font-size: 30px;
        line-height: 1.12;
    }

    .brand-section-heading__text {
        margin-top: 12px;

        font-size: 13px;
        line-height: 1.65;
    }


    /*
    |--------------------------------------------------------------------------
    | Categorías
    |--------------------------------------------------------------------------
    */

    .brand-categories {
        padding: 58px 0;
    }

    .brand-categories__grid {
        display: grid;
        grid-auto-columns: minmax(250px, 82vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 13px;

        overflow-x: auto;

        margin-right: -14px;
        padding-right: 14px;
        padding-bottom: 12px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .brand-categories__grid::-webkit-scrollbar {
        display: none;
    }

    .brand-category-card {
        min-height: 140px;
        padding: 19px;

        scroll-snap-align: start;
    }

    .brand-category-card__icon {
        width: 45px;
        height: 45px;

        border-radius: 13px;
    }

    .brand-category-card__icon svg {
        width: 21px;
        height: 21px;
    }

    .brand-category-card__title {
        font-size: 16px;
    }

    .brand-category-card__description {
        font-size: 11px;
    }

    .brand-category-card__count {
        margin-top: 9px;

        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Productos
    |--------------------------------------------------------------------------
    */

    .brand-products {
        padding: 62px 0 70px;
    }

    .brand-products__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .brand-products__toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;

        margin-bottom: 24px;
        padding: 15px;
    }

    .brand-products__count {
        font-size: 13px;
    }

    .brand-products__sort {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;

        width: 100%;
    }

    .brand-products__sort-select {
        width: 100%;
        min-height: 46px;
    }


    /*
    |--------------------------------------------------------------------------
    | Paginación
    |--------------------------------------------------------------------------
    */

    .brand-pagination {
        gap: 6px;

        margin-top: 35px;
    }

    .brand-pagination__link {
        min-width: 40px;
        height: 40px;
    }


    /*
    |--------------------------------------------------------------------------
    | Marcas relacionadas
    |--------------------------------------------------------------------------
    */

    .related-brands {
        padding: 58px 0;
    }

    .related-brands__grid {
        display: grid;
        grid-auto-columns: minmax(190px, 62vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        gap: 13px;

        overflow-x: auto;

        margin-right: -14px;
        padding-right: 14px;
        padding-bottom: 12px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .related-brands__grid::-webkit-scrollbar {
        display: none;
    }

    .related-brand-card {
        min-height: 155px;
        padding: 20px;

        scroll-snap-align: start;
    }

    .related-brand-card__logo {
        max-width: 115px;
        max-height: 55px;
    }

    .related-brand-card__name {
        margin-top: 14px;

        font-size: 14px;
    }

    .related-brand-card__count {
        font-size: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | CTA
    |--------------------------------------------------------------------------
    */

    .brand-detail-cta {
        padding: 55px 0 70px;
    }

    .brand-detail-cta__box {
        grid-template-columns: 1fr;
        gap: 28px;

        padding: 36px 22px;

        border-radius: 23px;
    }

    .brand-detail-cta__title {
        font-size: 30px;
        line-height: 1.12;
    }

    .brand-detail-cta__text {
        font-size: 13px;
        line-height: 1.65;
    }

    .brand-detail-cta__action,
    .brand-detail-cta__action .btn {
        width: 100%;
    }
}

@media (max-width: 520px) {

    /*
    |--------------------------------------------------------------------------
    | Breadcrumb
    |--------------------------------------------------------------------------
    */

    .brand-detail-breadcrumb {
        padding-top: 15px;
    }

    .brand-detail-breadcrumb__list {
        gap: 5px;

        font-size: 10px;
        line-height: 1.4;
    }

    .brand-detail-breadcrumb__list li:last-child {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | Hero
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero {
        padding: 24px 0 44px;
    }

    .brand-detail-hero__grid {
        gap: 24px;
    }

    .brand-detail-hero__label {
        padding: 5px 9px;

        font-size: 8px;
        letter-spacing: .07em;
    }

    .brand-detail-hero__label::before {
        width: 6px;
        height: 6px;

        box-shadow:
            0 0 0 4px
            rgba(0, 182, 122, .09);
    }


    /*
    |--------------------------------------------------------------------------
    | Logo
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__logo-wrap {
        min-height: 58px;
        margin-top: 14px;
    }

    .brand-detail-hero__logo {
        max-width: 175px;
        max-height: 62px;
    }


    /*
    |--------------------------------------------------------------------------
    | Título
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__title {
        margin-top: 14px;

        font-size: 31px;
        letter-spacing: -.03em;
        line-height: 1.05;
    }


    /*
    |--------------------------------------------------------------------------
    | Descripción
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__description {
        margin-top: 13px;

        font-size: 13px;
        line-height: 1.55;

        -webkit-line-clamp: 3;
    }


    /*
    |--------------------------------------------------------------------------
    | Datos rápidos
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__meta {
        gap: 7px;

        margin-top: 16px;
    }

    .brand-detail-hero__stat {
        gap: 6px;

        padding: 7px 9px;

        font-size: 9px;
    }

    .brand-detail-hero__stat-icon svg {
        width: 13px;
        height: 13px;
    }


    /*
    |--------------------------------------------------------------------------
    | Botones
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__actions {
        gap: 8px;

        margin-top: 19px;
    }

    .brand-detail-hero__actions .btn {
        min-height: 44px;
        padding-inline: 15px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Portada
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__visual {
        min-height: 255px;
    }

    .brand-detail-hero__cover {
        border-radius: 19px;
    }


    /*
    |--------------------------------------------------------------------------
    | Bloque destacado
    |--------------------------------------------------------------------------
    |
    | En teléfonos lo quitamos para evitar repetir información
    | sobre respaldo y soporte que ya aparece arriba.
    |--------------------------------------------------------------------------
    */

    .brand-detail-hero__featured {
        display: none;
    }


    /*
    |--------------------------------------------------------------------------
    | Encabezados de sección
    |--------------------------------------------------------------------------
    */

    .brand-section-heading {
        gap: 14px;

        margin-bottom: 24px;
    }

    .brand-section-heading__eyebrow {
        font-size: 8px;
        letter-spacing: .08em;
    }

    .brand-section-heading__title {
        margin-top: 7px;

        font-size: 27px;
        line-height: 1.1;
    }

    .brand-section-heading__text {
        display: -webkit-box;
        overflow: hidden;

        margin-top: 9px;

        font-size: 12px;
        line-height: 1.55;

        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }


    /*
    |--------------------------------------------------------------------------
    | Categorías
    |--------------------------------------------------------------------------
    */

    .brand-categories {
        padding: 48px 0;
    }

    .brand-categories__grid {
        grid-auto-columns:
            minmax(230px, 86vw);
        gap: 10px;

        margin-right: -11px;
        padding-right: 11px;
        padding-bottom: 10px;
    }

    .brand-category-card {
        gap: 13px;

        min-height: 125px;
        padding: 16px;

        border-radius: 15px;
    }

    .brand-category-card__icon {
        width: 40px;
        height: 40px;

        border-radius: 11px;
    }

    .brand-category-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .brand-category-card__title {
        font-size: 15px;
    }

    .brand-category-card__description {
        margin-top: 5px;

        font-size: 10px;
        line-height: 1.45;
    }

    .brand-category-card__count {
        margin-top: 7px;
        padding: 5px 8px;

        font-size: 9px;
    }


    /*
    |--------------------------------------------------------------------------
    | Productos
    |--------------------------------------------------------------------------
    */

    .brand-products {
        padding: 50px 0 58px;
    }

    .brand-products
    .brand-section-heading {
        margin-bottom: 20px;
    }

    /*
     * El botón de catálogo general ocupa demasiado espacio
     * al lado del encabezado. En móvil lo dejamos a ancho total.
     */

    .brand-products
    .brand-section-heading
    > .btn {
        width: 100%;
        min-height: 44px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Toolbar
    |--------------------------------------------------------------------------
    */

    .brand-products__toolbar {
        gap: 12px;

        margin-bottom: 20px;
        padding: 13px;

        border-radius: 15px;
    }

    .brand-products__count {
        font-size: 12px;
    }

    .brand-products__sort-label {
        font-size: 10px;
    }

    .brand-products__sort-select {
        min-height: 44px;
        padding:
            8px 34px
            8px 11px;

        font-size: 12px;
    }


    /*
    |--------------------------------------------------------------------------
    | Grid productos
    |--------------------------------------------------------------------------
    */

    .brand-products__grid {
        gap: 16px;
    }


    /*
    |--------------------------------------------------------------------------
    | Paginación
    |--------------------------------------------------------------------------
    */

    .brand-pagination {
        gap: 5px;

        margin-top: 28px;
    }

    .brand-pagination__link {
        min-width: 37px;
        height: 37px;
        padding: 0 9px;

        font-size: 11px;

        border-radius: 10px;
    }


    /*
    |--------------------------------------------------------------------------
    | Marcas relacionadas
    |--------------------------------------------------------------------------
    */

    .related-brands {
        padding: 48px 0;
    }

    .related-brands__grid {
        grid-auto-columns:
            minmax(160px, 58vw);
        gap: 10px;

        margin-right: -11px;
        padding-right: 11px;
        padding-bottom: 10px;
    }

    .related-brand-card {
        min-height: 130px;
        padding: 16px;

        border-radius: 16px;
    }

    .related-brand-card__logo {
        max-width: 100px;
        max-height: 45px;
    }

    .related-brand-card__name {
        margin-top: 11px;

        font-size: 13px;
    }

    .related-brand-card__count {
        margin-top: 5px;

        font-size: 9px;
    }

    .related-brands
    .brand-section-heading
    > .btn {
        width: 100%;
        min-height: 44px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | CTA
    |--------------------------------------------------------------------------
    */

    .brand-detail-cta {
        padding: 45px 0 55px;
    }

    .brand-detail-cta__box {
        gap: 22px;

        padding: 30px 18px;

        border-radius: 19px;
    }

    .brand-detail-cta__eyebrow {
        font-size: 8px;
    }

    .brand-detail-cta__title {
        margin-top: 8px;

        font-size: 27px;
        line-height: 1.1;
    }

    .brand-detail-cta__text {
        margin-top: 12px;

        font-size: 12px;
        line-height: 1.55;
    }

    .brand-detail-cta__action .btn {
        min-height: 46px;

        font-size: 11px;
    }


    /*
    |--------------------------------------------------------------------------
    | Estado vacío
    |--------------------------------------------------------------------------
    */

    .brand-empty {
        min-height: 280px;
        padding: 32px 18px;

        border-radius: 18px;
    }

    .brand-empty__icon {
        width: 60px;
        height: 60px;

        border-radius: 17px;
    }

    .brand-empty__icon svg {
        width: 27px;
        height: 27px;
    }

    .brand-empty__title {
        margin-top: 17px;

        font-size: 20px;
    }

    .brand-empty__text {
        margin-top: 8px;

        font-size: 12px;
        line-height: 1.55;
    }

    .brand-empty__action {
        width: 100%;
        margin-top: 18px;
    }

    .brand-empty__action .btn {
        width: 100%;
    }
}

/*
|--------------------------------------------------------------------------
| Reduced motion
|--------------------------------------------------------------------------
*/

@media (prefers-reduced-motion: reduce) {
    .brand-detail-breadcrumb__link,
    .brand-category-card,
    .brand-pagination__link,
    .related-brand-card {
        transition: none;
    }

    .brand-category-card:hover,
    .brand-pagination__link:hover,
    .related-brand-card:hover {
        transform: none;
    }
}

#brandProducts {
    scroll-margin-top: calc(var(--header-height) + 24px);
}
