/**
 * ============================================================
 * SPADE — BRAND COLLECTION
 * Compact logo-first hero + product grid
 * ============================================================
 */

.spade-brand-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
}


/* Hide Blocksy archive hero/breadcrumb output */
body.tax-product_brand .hero-section,
body.tax-pwb-brand .hero-section,
body.tax-yith_product_brand .hero-section,
body.tax-pa_brand .hero-section,
body[class*="tax-"] .spade-brand-page ~ .hero-section {
    display: none !important;
}


/* =========================================================
   COMPACT BRAND HERO
   ========================================================= */

.spade-brand-hero {
    width: 100%;
    border-bottom: 1px solid #ececec;
    background: #fff;
}

.spade-brand-hero__inner {
    width: min(980px, calc(100% - 40px));
    margin: 0 auto;
    padding: 30px 0 30px;
    text-align: center;
}

.spade-brand-hero__eyebrow {
    margin: 0 0 14px;

    color: #777;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.spade-brand-hero__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 72px;
}

.spade-brand-hero__logo {
    display: block;
    width: auto;
    max-width: 340px;
    max-height: 105px;
    object-fit: contain;
}

.spade-brand-hero__title {
    margin: 0;

    color: #111;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(38px, 4.4vw, 58px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.025em;
}

.spade-brand-hero__sr-title {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.spade-brand-hero__description {
    max-width: 720px;
    margin: 12px auto 0;

    color: #707070;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.7;
}


/* =========================================================
   COLLECTION
   ========================================================= */

.spade-brand-products {
    width: 100%;
    background: #fff;
}

.spade-brand-products__inner {
    width: min(1580px, calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 64px;
}

.spade-brand-products__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 22px;
}

.spade-brand-products__eyebrow {
    margin: 0 0 8px;

    color: #6f6f6f;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.spade-brand-products__title {
    margin: 0;

    color: #15283f;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.02em;
}

.spade-brand-products__count {
    flex: 0 0 auto;
    margin: 0 0 4px;

    color: #777;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}


/* =========================================================
   PRODUCT GRID
   ========================================================= */

.spade-brand-products__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;

    border-top: 1px solid #e7e7e7;
    border-left: 1px solid #e7e7e7;
    background: #e7e7e7;
}

.spade-brand-products__grid .spade-new-product {
    min-width: 0;
    margin: 0 !important;
    background: #fff;
    border: 0 !important;
    border-right: 1px solid #e7e7e7 !important;
    border-bottom: 1px solid #e7e7e7 !important;
}


/*
 * Reset carousel rules that homepage CSS may apply globally.
 */
.spade-brand-products__grid .spade-new-product {
    flex: none !important;
    width: auto !important;
    max-width: none !important;
}


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

.spade-brand-products__empty {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 38px 20px;

    border: 1px solid #e8e8e8;
    text-align: center;
}

.spade-brand-products__empty h3 {
    margin: 0 0 12px;

    color: #15283f;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: clamp(25px, 2.5vw, 34px);
    font-weight: 400;
}

.spade-brand-products__empty p {
    margin: 0 0 22px;
    color: #777;
    font-size: 12px;
}

.spade-brand-products__empty a {
    color: #111;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-decoration: none;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.spade-brand-pagination {
    padding-top: 34px;
}

.spade-brand-pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.spade-brand-pagination a,
.spade-brand-pagination span {
    display: inline-flex;
    width: 40px;
    height: 40px;

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

    border: 1px solid #ddd;

    color: #111;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 11px;
    text-decoration: none;
}

.spade-brand-pagination .current {
    border-color: #111;
    background: #111;
    color: #fff;
}


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

@media (max-width: 1100px) {

    .spade-brand-products__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


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

@media (max-width: 700px) {

    .spade-brand-hero__inner {
        width: min(100% - 28px, 720px);
        padding: 24px 0 23px;
    }

    .spade-brand-hero__logo {
        max-width: 240px;
        max-height: 78px;
    }

    .spade-brand-hero__title {
        font-size: 40px;
    }

    .spade-brand-hero__description {
        margin-top: 12px;
        font-size: 11px;
        line-height: 1.6;
    }


    .spade-brand-products__inner {
        width: calc(100% - 20px);
        padding: 25px 0 46px;
    }

    .spade-brand-products__header {
        align-items: flex-end;
        margin-bottom: 16px;
    }

    .spade-brand-products__title {
        font-size: 32px;
    }

    .spade-brand-products__count {
        font-size: 8px;
    }

    .spade-brand-products__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* Very small screens */
@media (max-width: 380px) {

    .spade-brand-products__title {
        font-size: 29px;
    }

    .spade-brand-products__header {
        gap: 10px;
    }

}
