.spade-shop-categories {
    padding: 78px 0 92px;
    background: #ffffff;
}

.spade-shop-categories__inner {
    width: 100%;
    margin-inline: auto;
    padding-inline: clamp(16px, 1.6vw, 28px);
}

.spade-shop-categories__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;

    margin-bottom: 34px;
}

.spade-shop-categories__eyebrow {
    margin: 0 0 4px;

    color: #111111;

    font-family: Inter, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.spade-shop-categories__title {
    margin: 0;

    color: #111111;

    font-family: Inter, Arial, sans-serif;
    font-size: clamp(30px, 2.6vw, 42px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.spade-shop-categories__controls {
    display: flex;
    gap: 10px;
}

.spade-category-arrow {
    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    border: 1px solid #dedede;
    border-radius: 50%;

    background: #ffffff;
    color: #111111;

    font-size: 28px;
    font-weight: 300;
    line-height: 1;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.spade-category-arrow:hover {
    border-color: #111111;
    background: #111111;
    color: #ffffff;
    transform: translateY(-1px);
}

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

.spade-shop-category {
    position: relative;

    display: block;
    min-width: 0;
    aspect-ratio: 4 / 5.25;

    overflow: hidden;

    background: #eeeeee;
    color: #ffffff;
}

.spade-shop-category img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.spade-shop-category:hover img {
    transform: scale(1.045);
}

.spade-shop-category__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.48) 0%,
            rgba(0, 0, 0, 0.08) 35%,
            rgba(0, 0, 0, 0) 62%
        );
}

.spade-shop-category h3 {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 2;

    margin: 0;

    color: #ffffff;

    font-family: Inter, Arial, sans-serif;
    font-size: clamp(27px, 2.4vw, 44px);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .spade-shop-categories__track {
        display: flex;
        gap: 4px;

        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .spade-shop-categories__track::-webkit-scrollbar {
        display: none;
    }

    .spade-shop-category {
        flex: 0 0 calc(50% - 2px);
        scroll-snap-align: start;
    }
}

@media (max-width: 600px) {
    .spade-shop-categories {
        padding-block: 62px 74px;
    }

    .spade-shop-categories__header {
        align-items: center;
        margin-bottom: 26px;
    }

    .spade-shop-categories__title {
        font-size: 29px;
    }

    .spade-category-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .spade-shop-category {
        flex-basis: 82%;
    }

    .spade-shop-category h3 {
        font-size: 32px;
    }
}

/* =========================================================
   SPADE — HOMEPAGE SHOP BY BAG
   ========================================================= */

.spade-shop-by-bag {
    width: 100%;
    margin: 0;
    padding: clamp(70px, 7vw, 112px) 0;
    background: #ffffff;
    color: #111111;
}

.spade-shop-by-bag__inner {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-inline: clamp(18px, 2vw, 32px) !important;
    box-sizing: border-box !important;
}

.spade-shop-by-bag__header {
    max-width: 680px;
    margin: 0 auto clamp(36px, 4vw, 58px);
    text-align: center;
}

.spade-shop-by-bag__eyebrow {
    margin: 0 0 10px;
    color: #ef3f78;
    font-family: var(--spade-font-body, Arial, sans-serif);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.spade-shop-by-bag__title {
    margin: 0;
    color: #111111;
    font-family: var(--spade-font-heading, Georgia, serif);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
}

.spade-shop-by-bag__intro {
    margin: 16px 0 0;
    color: #737373;
    font-family: var(--spade-font-body, Arial, sans-serif);
    font-size: 13px;
    line-height: 1.7;
}

.spade-shop-by-bag__grid {
    display: grid;
    width: 100%;
}

.spade-shop-by-bag__grid--primary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 22px);
    margin-bottom: clamp(12px, 1.5vw, 22px);
}

.spade-shop-by-bag__grid--secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 22px);
}

.spade-shop-by-bag__card {
    position: relative;
    min-width: 0;
    display: block;
    overflow: hidden;
    background: #f4f4f2;
    color: #111111;
    text-decoration: none;
}

.spade-shop-by-bag__media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f7f5 0%, #eeeeeb 100%);
}

.spade-shop-by-bag__card--primary .spade-shop-by-bag__media {
    aspect-ratio: 4 / 4.35;
}

.spade-shop-by-bag__card--secondary .spade-shop-by-bag__media {
    aspect-ratio: 4 / 4.2;
}

.spade-shop-by-bag__media img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    transform: scale(1.001);
    transition:
        transform 0.65s cubic-bezier(.2,.65,.3,1),
        filter 0.35s ease;
}

.spade-shop-by-bag__card:hover .spade-shop-by-bag__media img {
    transform: scale(1.045);
}

.spade-shop-by-bag__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,.9),
            rgba(239,239,235,.9)
        );
}

.spade-shop-by-bag__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-top: 0;
}

.spade-shop-by-bag__name {
    color: #111111;
    font-family: var(--spade-font-body, Arial, sans-serif);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.055em;
    text-transform: uppercase;
}

.spade-shop-by-bag__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    color: #777777;
    font-family: var(--spade-font-body, Arial, sans-serif);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    transition:
        color .2s ease,
        transform .2s ease;
}

.spade-shop-by-bag__card:hover .spade-shop-by-bag__cta {
    color: #ef3f78;
    transform: translateX(2px);
}

@media (max-width: 980px) {
    .spade-shop-by-bag__grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spade-shop-by-bag__content {
        min-height: 70px;
        padding: 16px;
    }

    .spade-shop-by-bag__cta {
        display: none;
    }
}

@media (max-width: 680px) {
    .spade-shop-by-bag {
        padding: 58px 0;
    }

    .spade-shop-by-bag__inner {
        padding: 0 14px;
    }

    .spade-shop-by-bag__header {
        margin-bottom: 30px;
    }

    .spade-shop-by-bag__title {
        font-size: 38px;
    }

    .spade-shop-by-bag__intro {
        font-size: 12px;
    }

    .spade-shop-by-bag__grid--primary,
    .spade-shop-by-bag__grid--secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 10px;
    }

    .spade-shop-by-bag__card--primary:first-child {
        grid-column: 1 / -1;
    }

    .spade-shop-by-bag__card--primary:first-child .spade-shop-by-bag__media {
        aspect-ratio: 16 / 12;
    }

    .spade-shop-by-bag__card--primary .spade-shop-by-bag__media,
    .spade-shop-by-bag__card--secondary .spade-shop-by-bag__media {
        aspect-ratio: 1 / 1.08;
    }

    .spade-shop-by-bag__content {
        min-height: 58px;
        padding: 13px 12px;
    }

    .spade-shop-by-bag__name {
        font-size: 10px;
        letter-spacing: .04em;
    }
}

/* =========================================================
   SPADE — SHOP BY BAG FINAL OVERLAY FIX
   ========================================================= */

.spade-shop-by-bag__card {
    position: relative !important;
    overflow: hidden !important;

    background: #eeeeee !important;
    color: #ffffff !important;
}


/* Make image fill whole card */

.spade-shop-by-bag__card--primary {
    aspect-ratio: 4 / 4.8 !important;
}

.spade-shop-by-bag__card--secondary {
    aspect-ratio: 4 / 4.65 !important;
}

.spade-shop-by-bag__media {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;
}

.spade-shop-by-bag__media img {
    position: absolute !important;
    inset: 0 !important;

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;
    object-position: center !important;
}


/* Remove white information section completely */

.spade-shop-by-bag__content {
    position: absolute !important;

    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;

    z-index: 5 !important;

    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;

    padding: 24px !important;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


/* Category name */

.spade-shop-by-bag__name {
    color: #ffffff !important;

    font-size: 14px !important;
    font-weight: 700 !important;

    letter-spacing: 0.04em !important;

    text-transform: uppercase !important;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.45) !important;
}


/* Shop now */

.spade-shop-by-bag__cta {
    display: inline-flex !important;

    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 700 !important;

    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.45) !important;
}


/* Dark fade behind bottom text */

.spade-shop-by-bag__card::after {
    content: "" !important;

    position: absolute !important;
    inset: 0 !important;

    z-index: 2 !important;

    pointer-events: none !important;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.55) 0%,
            rgba(0, 0, 0, 0.22) 22%,
            rgba(0, 0, 0, 0) 52%
        ) !important;
}


/* Keep hover zoom */

.spade-shop-by-bag__card:hover
.spade-shop-by-bag__media img {
    transform: scale(1.045) !important;
}


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

@media (max-width: 700px) {

    .spade-shop-by-bag__card--primary,
    .spade-shop-by-bag__card--secondary {
        aspect-ratio: 4 / 5 !important;
    }

    .spade-shop-by-bag__card--primary:first-child {
        grid-column: 1 / -1 !important;
        aspect-ratio: 16 / 11 !important;
    }

    .spade-shop-by-bag__content {
        padding: 14px !important;
    }

    .spade-shop-by-bag__name {
        font-size: 10px !important;
    }

    .spade-shop-by-bag__cta {
        display: none !important;
    }

    .spade-shop-by-bag__card--primary:first-child
    .spade-shop-by-bag__cta {
        display: inline-flex !important;
        font-size: 8px !important;
    }
}

/* =========================================================
   SPADE — TRUE VIEWPORT-WIDTH BREAKOUT
   Escapes any Blocksy / page-content max-width wrapper
   ========================================================= */

.spade-shop-by-bag {
    position: relative !important;

    width: 100vw !important;
    max-width: none !important;

    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;

    box-sizing: border-box !important;
}

.spade-shop-by-bag__inner {
    width: 100% !important;
    max-width: none !important;

    margin: 0 !important;

    padding-left: clamp(18px, 2vw, 32px) !important;
    padding-right: clamp(18px, 2vw, 32px) !important;

    box-sizing: border-box !important;
}

.spade-shop-by-bag__grid,
.spade-shop-by-bag__grid--primary,
.spade-shop-by-bag__grid--secondary {
    width: 100% !important;
    max-width: none !important;
}

@media (max-width: 700px) {

    .spade-shop-by-bag {
        width: 100vw !important;

        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
    }

    .spade-shop-by-bag__inner {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

/* Shop by Category — clean solid white text */

.spade-shop-categories .spade-shop-category h3 {
    color: #ffffff !important;

    -webkit-text-stroke: 0 !important;

    paint-order: normal !important;

    text-shadow: none !important;

    filter: none !important;

    font-weight: 700 !important;
}