/* =========================================================
   Collection pages (resources/views/collection-*.blade.php)
   Rules are scoped to .brx-col-page, or to the sidebar /
   overlay classes, which JS moves to <body> on mobile.
   ========================================================= */

/* ---------- Layout ---------- */
.brx-col-page .brx-col__layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}

/* ---------- Sidebar ---------- */
.brx-col__sidebar-inner {
    padding: 28px 26px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 18px 40px rgba(10, 22, 21, .06);
}

.brx-col__sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e6eceb;
}

.brx-col__sidebar-head h3 {
    margin: 0;
    font-family: var(--font_outfit);
    font-size: 22px;
    font-weight: 500;
    color: #141414;
}

.brx-col__sidebar-head h3 i {
    margin-right: 6px;
    font-size: 18px;
    color: var(--secondary);
}

.brx-col__reset {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.brx-col__close,
.brx-col__apply {
    display: none;
}

.brx-col__group {
    padding: 16px 0;
    border-bottom: 1px solid #e6eceb;
}

.brx-col__group-title {
    margin: 0 0 12px;
    font-family: var(--font_outfit);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a9896;
}

.brx-col__sizes,
.brx-col__checks {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Size links styled as radio rows */
.brx-col__sizes a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    font-size: 15px;
    color: #3d4746;
    transition: color .3s ease;
}

.brx-col__sizes a:hover,
.brx-col__sizes a.is-active {
    color: #141414;
}

.brx-col__sizes a.is-active {
    font-weight: 600;
}

.brx-col__radio {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #c3cfcd;
    border-radius: 50%;
    transition: border-color .3s ease;
}

.brx-col__sizes a:hover .brx-col__radio {
    border-color: var(--secondary);
}

.brx-col__sizes a.is-active .brx-col__radio {
    border-color: var(--secondary);
}

.brx-col__sizes a.is-active .brx-col__radio::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--secondary);
}

/* Surface checkboxes */
.brx-col__check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 36px;
    margin: 0;
    font-size: 15px;
    color: #3d4746;
    cursor: pointer;
}

.brx-col__check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.brx-col__box {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 1.5px solid #c3cfcd;
    border-radius: 6px;
    font-size: 11px;
    color: transparent;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.brx-col__check:hover .brx-col__box {
    border-color: var(--secondary);
}

.brx-col__check input:checked + .brx-col__box {
    border-color: var(--secondary);
    background: var(--secondary);
    color: var(--white);
}

.brx-col__check input:focus-visible + .brx-col__box {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

.brx-col__check-text {
    flex: 1;
}

.brx-col__count {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 20px;
    background: #eef4f3;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    color: var(--secondary);
}

/* Help links */
.brx-col__help {
    display: grid;
    gap: 8px;
    padding-top: 18px;
}

.brx-col__help a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: 1px solid #e1e7e6;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: #141414;
    transition: border-color .3s ease, background-color .3s ease, color .3s ease;
}

.brx-col__help a i {
    width: 18px;
    font-size: 17px;
    text-align: center;
    color: var(--secondary);
    transition: color .3s ease;
}

.brx-col__help a:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

.brx-col__help a.is-whatsapp {
    border-color: #141414;
    background: #141414;
    color: var(--white);
}

.brx-col__help a.is-whatsapp i {
    color: #25d366;
}

.brx-col__help a.is-whatsapp:hover {
    border-color: var(--secondary);
    background: var(--secondary);
}

/* ---------- Toolbar ---------- */
.brx-col-page .brx-col__toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.brx-col-page .brx-col__heading {
    margin: 0 0 4px;
    font-family: var(--font_outfit);
    font-size: 30px;
    font-weight: 500;
    color: #141414;
}

.brx-col-page .brx-col__meta {
    margin: 0;
    font-size: 15px;
    color: #6b7877;
}

.brx-col-page .brx-col__meta strong {
    color: #141414;
}

.brx-col-page .brx-col__tools {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brx-col-page .brx-col__filter-btn {
    display: none;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border: 1px solid #141414;
    border-radius: 40px;
    background: #141414;
    font-family: var(--font_outfit);
    font-size: 15px;
    font-weight: 500;
    color: var(--white);
}

.brx-col-page .brx-col__filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 20px;
    background: var(--secondary);
    font-size: 12px;
    font-weight: 600;
}

.brx-col-page .brx-col__filter-badge[hidden] {
    display: none;
}

/* ---------- Active filter chips ---------- */
.brx-col-page .brx-col__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    margin-bottom: 28px;
    padding: 10px 12px 10px 20px;
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(10, 22, 21, .05);
}

.brx-col-page .brx-col__chips[hidden] {
    display: none;
}

.brx-col-page .brx-col__chips-label {
    margin-right: 4px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #8a9896;
}

.brx-col-page .brx-col__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 36px;
    padding: 0 6px 0 16px;
    border: 0;
    border-radius: 40px;
    background: #141414;
    font-family: var(--font_outfit);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: background-color .3s ease;
}

.brx-col-page .brx-col__chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    font-size: 11px;
    transition: background-color .3s ease, color .3s ease;
}

.brx-col-page .brx-col__chip:hover {
    background: var(--secondary);
}

.brx-col-page .brx-col__chip:hover i {
    background: var(--white);
    color: var(--secondary);
}

.brx-col-page .brx-col__chip-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    margin-left: auto;
    padding: 0 14px;
    border: 0;
    border-radius: 40px;
    background: transparent;
    font-family: var(--font_outfit);
    font-size: 14px;
    font-weight: 500;
    color: #6b7877;
    transition: background-color .3s ease, color .3s ease;
}

.brx-col-page .brx-col__chip-clear:hover {
    background: #eef4f3;
    color: var(--secondary);
}

/* ---------- Grid ---------- */
.brx-col-page .brx-col__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 26px;
}

/* Frameless gallery card: the tile is the hero, details sit underneath */
.brx-col-page .brx-col__item {
    display: flex;
    flex-direction: column;
    animation: brxColIn .45s ease both;
}

.brx-col-page .brx-col__item.is-hidden {
    display: none;
}

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

.brx-col-page .brx-col__thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: var(--tile-ratio, 1);
    border-radius: 6px;
    background: #e6eae9;
    box-shadow: 0 1px 2px rgba(10, 22, 21, .08), 0 12px 28px -14px rgba(10, 22, 21, .35);
}

/* thin inner frame, like the edge of a real tile */
.brx-col-page .brx-col__thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: inherit;
    pointer-events: none;
}

.brx-col-page .brx-col__thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .8s cubic-bezier(.2, .7, .2, 1);
}

.brx-col-page .brx-col__item:hover .brx-col__thumb img {
    transform: scale(1.05);
}

.brx-col-page .brx-col__view {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    background: rgba(20, 20, 20, .82);
    font-family: var(--font_outfit);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--white);
    opacity: 0;
    transform: translate(-50%, 10px);
    backdrop-filter: blur(6px);
    transition: opacity .35s ease, transform .35s ease;
}

.brx-col-page .brx-col__item:hover .brx-col__view,
.brx-col-page .brx-col__thumb:focus-visible .brx-col__view {
    opacity: 1;
    transform: translate(-50%, 0);
}

.brx-col-page .brx-col__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 2px 0;
}

.brx-col-page .brx-col__info {
    min-width: 0;
}

.brx-col-page .brx-col__name {
    margin: 0;
    overflow: hidden;
    font-family: var(--font_outfit);
    font-size: 21px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #141414;
    transition: color .3s ease;
}

.brx-col-page .brx-col__item:hover .brx-col__name {
    color: var(--secondary);
}

.brx-col-page .brx-col__enquire {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border-radius: 40px;
    background: var(--white);
    box-shadow: 0 4px 14px rgba(10, 22, 21, .08);
    font-family: var(--font_outfit);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    color: var(--secondary);
    transition: background-color .3s ease, color .3s ease;
}

.brx-col-page .brx-col__enquire i {
    font-size: 16px;
}

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

/* ---------- Coming soon (size without designs yet) ---------- */
.brx-col-page .brx-col__soon {
    padding: 90px 24px;
    border: 1px dashed #c9d8d5;
    border-radius: 20px;
    background: #f6f9f8;
    text-align: center;
}

.brx-col-page .brx-col__soon > i {
    font-size: 42px;
    color: var(--secondary);
}

.brx-col-page .brx-col__soon-tag {
    display: table;
    margin: 18px auto 0;
    padding: 5px 18px;
    border-radius: 40px;
    background: var(--secondary);
    font-family: var(--font_outfit);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
}

.brx-col-page .brx-col__soon h3 {
    margin: 18px 0 10px;
    font-family: var(--font_outfit);
    font-size: 30px;
    font-weight: 500;
    color: #141414;
}

.brx-col-page .brx-col__soon p {
    max-width: 520px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 1.6;
    color: #6b7877;
}

.brx-col-page .brx-col__soon-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.brx-col-page .brx-col__soon-actions a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 50px;
    padding: 0 28px;
    border: 1px solid var(--secondary);
    border-radius: 40px;
    background: var(--secondary);
    font-family: var(--font_outfit);
    font-size: 16px;
    font-weight: 500;
    color: var(--white);
    transition: background-color .3s ease, color .3s ease;
}

.brx-col-page .brx-col__soon-actions a.is-outline,
.brx-col-page .brx-col__soon-actions a:hover {
    background: transparent;
    color: var(--secondary);
}

.brx-col-page .brx-col__soon-actions a.is-outline:hover {
    background: var(--secondary);
    color: var(--white);
}

@media (max-width: 767px) {
    .brx-col-page .brx-col__soon {
        padding: 60px 18px;
    }

    .brx-col-page .brx-col__soon h3 {
        font-size: 24px;
    }
}

/* ---------- Empty state & load more ---------- */
.brx-col-page .brx-col__empty {
    padding: 70px 20px;
    border: 1px dashed #d9e3e1;
    border-radius: 20px;
    text-align: center;
}

.brx-col-page .brx-col__empty[hidden],
.brx-col-page .brx-col__more[hidden] {
    display: none;
}

.brx-col-page .brx-col__empty i {
    font-size: 36px;
    color: #c3cfcd;
}

.brx-col-page .brx-col__empty h4 {
    margin: 14px 0 18px;
    font-family: var(--font_outfit);
    font-size: 20px;
    font-weight: 500;
    color: #141414;
}

.brx-col-page .brx-col__empty button,
.brx-col-page .brx-col__more button {
    height: 50px;
    padding: 0 30px;
    border: 1px solid #141414;
    border-radius: 40px;
    background: transparent;
    font-family: var(--font_outfit);
    font-size: 16px;
    font-weight: 500;
    color: #141414;
    transition: background-color .3s ease, color .3s ease;
}

.brx-col-page .brx-col__empty button:hover,
.brx-col-page .brx-col__more button:hover {
    background: #141414;
    color: var(--white);
}

.brx-col-page .brx-col__more {
    margin-top: 40px;
    text-align: center;
}

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

/* Tablet & mobile: sidebar becomes a slide-in drawer (moved to <body> by JS) */
@media (max-width: 1199px) {
    .brx-col-page .brx-col__layout {
        grid-template-columns: 1fr;
    }

    .brx-col-page .brx-col__filter-btn {
        display: inline-flex;
    }

    .brx-col__sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 16000200; /* above the floating chat widget */
        width: min(360px, 88vw);
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform .4s ease, visibility .4s;
    }

    .brx-col-drawer-open .brx-col__sidebar {
        transform: none;
        visibility: visible;
    }

    .brx-col__sidebar-inner {
        display: flex;
        flex-direction: column;
        height: 100%;
        overflow-y: auto;
        padding-bottom: 0;
        border-radius: 0 20px 20px 0;
    }

    .brx-col__close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 50%;
        background: #f3f5f5;
        font-size: 18px;
        color: #141414;
    }

    .brx-col__help {
        padding-bottom: 20px;
    }

    .brx-col__apply {
        position: sticky;
        bottom: 0;
        display: block;
        flex-shrink: 0;
        width: calc(100% + 52px);
        height: 56px;
        margin: auto -26px 0;
        border: 0;
        background: var(--secondary);
        font-family: var(--font_outfit);
        font-size: 16px;
        font-weight: 500;
        color: var(--white);
    }

    .brx-col-overlay {
        position: fixed;
        inset: 0;
        z-index: 16000190;
        background: rgba(10, 22, 21, .5);
        opacity: 0;
        visibility: hidden;
        transition: opacity .4s ease, visibility .4s;
    }

    .brx-col-drawer-open .brx-col-overlay {
        opacity: 1;
        visibility: visible;
    }

    .brx-col-drawer-open {
        overflow: hidden;
    }
}

@media (min-width: 1200px) {
    .brx-col-overlay {
        display: none;
    }
}

@media (max-width: 991px) {
    .brx-col-page .brx-col__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 18px;
    }

    .brx-col-page .brx-col__heading {
        font-size: 24px;
    }
}

@media (max-width: 575px) {
    .brx-col-page .brx-col__grid {
        gap: 24px 12px;
    }

    .brx-col-page .brx-col__body {
        align-items: flex-start;
        gap: 8px;
        padding-top: 12px;
    }

    .brx-col-page .brx-col__name {
        font-size: 17px;
    }

    /* narrow 2-column cards: button drops under the name, full width */
    .brx-col-page .brx-col__body {
        flex-direction: column;
        align-items: stretch;
    }

    .brx-col-page .brx-col__enquire {
        height: 36px;
    }

    .brx-col-page .brx-col__view {
        display: none;
    }
}
