/* =========================================================
   Catalogue page only (resources/views/catalogue.blade.php)
   Every rule is scoped to .brx-cat-page so nothing here
   can affect any other page.
   ========================================================= */

/* ---------- Category tabs ---------- */
.brx-cat-page .brx-cat__tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    margin: 40px auto 26px;
    padding: 6px;
    background: var(--white);
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(10, 22, 21, .06);
}

.brx-cat-page .brx-cat__tab {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border: 0;
    border-radius: 60px;
    background: transparent;
    font-family: var(--font_outfit);
    font-size: 17px;
    font-weight: 500;
    color: #3d4746;
    white-space: nowrap;
    transition: background-color .3s ease, color .3s ease;
}

.brx-cat-page .brx-cat__tab span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 20px;
    background: #eef4f3;
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    transition: background-color .3s ease, color .3s ease;
}

.brx-cat-page .brx-cat__tab:hover {
    color: var(--secondary);
}

.brx-cat-page .brx-cat__tab.active {
    background: var(--secondary);
    color: var(--white);
}

.brx-cat-page .brx-cat__tab.active span {
    background: rgba(255, 255, 255, .18);
    color: var(--white);
}

/* ---------- Size tabs ---------- */
.brx-cat-page .brx-cat__sizes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.brx-cat-page .brx-cat__size {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid #d9e3e1;
    border-radius: 40px;
    background: transparent;
    font-family: var(--font_outfit);
    font-size: 15px;
    font-weight: 500;
    color: #3d4746;
    white-space: nowrap;
    transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

.brx-cat-page .brx-cat__size span {
    font-size: 12px;
    font-weight: 600;
    color: #8a9896;
    transition: color .3s ease;
}

.brx-cat-page .brx-cat__size:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.brx-cat-page .brx-cat__size.is-active {
    border-color: #141414;
    background: #141414;
    color: var(--white);
}

.brx-cat-page .brx-cat__size.is-active span {
    color: #9cc5bf;
}

/* ---------- Grid ---------- */
.brx-cat-page .brx-cat__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.brx-cat-page .brx-cat__item {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(10, 22, 21, .06);
    transition: transform .4s ease, box-shadow .4s ease;
    animation: brxCatIn .45s ease both;
}

.brx-cat-page .brx-cat__item.is-hidden {
    display: none;
}

.brx-cat-page .brx-cat__item:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 50px rgba(10, 22, 21, .12);
}

@keyframes brxCatIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}

.brx-cat-page .brx-cat__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    /* aspect-ratio: 376 / 280; */
    background: #eef1f0;
}

.brx-cat-page .brx-cat__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s ease;
}

.brx-cat-page .brx-cat__item:hover .brx-cat__thumb img {
    transform: scale(1.06);
}

.brx-cat-page .brx-cat__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .92);
    font-family: var(--font_outfit);
    font-size: 13px;
    font-weight: 600;
    color: #141414;
    backdrop-filter: blur(6px);
}

.brx-cat-page .brx-cat__view {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(47, 102, 98, .72);
    font-family: var(--font_outfit);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    opacity: 0;
    transition: opacity .35s ease;
}

.brx-cat-page .brx-cat__item:hover .brx-cat__view,
.brx-cat-page .brx-cat__thumb:focus-visible .brx-cat__view {
    opacity: 1;
}

.brx-cat-page .brx-cat__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 22px;
}

.brx-cat-page .brx-cat__label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--secondary);
}

.brx-cat-page .brx-cat__name {
    margin: 0;
    font-family: var(--font_outfit);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    color: #141414;
}

.brx-cat-page .brx-cat__download {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #eef4f3;
    font-size: 18px;
    color: var(--secondary);
    transition: background-color .3s ease, color .3s ease;
}

.brx-cat-page .brx-cat__download:hover {
    background: var(--secondary);
    color: var(--white);
}

/* ---------- Responsive ---------- */
@media (max-width: 1399px) {
    .brx-cat-page .brx-cat__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .brx-cat-page .brx-cat__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .brx-cat-page .brx-cat__tab {
        padding: 12px 20px;
        font-size: 15px;
    }

    /* size tabs scroll sideways instead of wrapping into many rows */
    .brx-cat-page .brx-cat__sizes {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin: 0 -15px 30px;
        padding: 0 15px 4px;
        scrollbar-width: none;
    }

    .brx-cat-page .brx-cat__sizes::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 575px) {
    .brx-cat-page .brx-cat__grid {
        grid-template-columns: 1fr;
    }

    .brx-cat-page .brx-cat__view {
        opacity: 0;
    }
}
