/* =========================================================
   SPADE — HOMEPAGE NEW ARRIVALS
   Premium responsive product grid
   ========================================================= */

.spade-new-arrivals {
    width: 100%;
    padding: clamp(72px, 7vw, 112px) 0;
    background: #ffffff;
    color: #111111;
}

.spade-new-arrivals__inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(22px, 2.2vw, 36px);
}


/* =========================================================
   HEADER
   ========================================================= */

.spade-new-arrivals__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: clamp(28px, 3vw, 38px);
}

.spade-new-arrivals__eyebrow {
    margin: 0 0 8px;

    color: #ef3f78;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.spade-new-arrivals__title {
    margin: 0;

    color: #111111;

    font-family: var(--spade-font-heading, "DM Serif Display", Georgia, serif);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.025em;
}

.spade-new-arrivals__intro {
    margin: 13px 0 0;

    color: #777777;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 13px;
    line-height: 1.7;
}

.spade-new-arrivals__view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 5px;

    border-bottom: 1px solid #111111;

    color: #111111;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.1em;

    text-transform: uppercase;
    text-decoration: none;

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

.spade-new-arrivals__view-all span {
    transition: transform 0.2s ease;
}

.spade-new-arrivals__view-all:hover {
    color: #ef3f78;
    border-color: #ef3f78;
}

.spade-new-arrivals__view-all:hover span {
    transform: translateX(3px);
}


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

.spade-new-arrivals__track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.1vw, 18px);
    width: 100%;
}

.spade-new-product {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    background: #ffffff;
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.spade-new-product:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.spade-new-product__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #f4f4f2;
    text-decoration: none;
}

.spade-new-product__badge {
    position: absolute;
    top: 13px;
    left: 13px;
    z-index: 4;

    padding: 7px 10px;

    border: 1px solid rgba(17, 17, 17, 0.06);

    background: rgba(255, 255, 255, 0.94);
    color: #111111;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 8px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.12em;

    text-transform: uppercase;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.spade-new-product__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;

    background: #f6f6f4;

    padding: 0 !important;
    margin: 0 !important;
    image-rendering: auto;
    backface-visibility: hidden;
    transition:
        opacity 0.42s ease,
        transform 0.62s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.spade-new-product__image--primary {
    opacity: 1;
}

.spade-new-product__image--hover {
    opacity: 0;
}

.spade-new-product__media:hover .spade-new-product__image--primary {
    opacity: 0;
    transform: scale(1.018);
}

.spade-new-product__media:hover .spade-new-product__image--hover {
    opacity: 1;
    transform: scale(1.018);
}


/* If a product has no hover image, keep the primary visible */
.spade-new-product__media:not(:has(.spade-new-product__image--hover)):hover
.spade-new-product__image--primary {
    opacity: 1;
}


/* Quick Add / Select Options — overlays bottom of image */

.spade-new-product__quick-add {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 8;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 54px;
    padding: 0 18px;

    border: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 0 !important;

    background: rgba(17, 17, 17, 0.88) !important;
    color: #ffffff !important;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;

    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    transform: translateY(100%);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease,
        background-color 0.2s ease;
}

.spade-new-product:hover .spade-new-product__quick-add,
.spade-new-product__quick-add:focus-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.spade-new-product__quick-add:hover {
    background: rgba(0, 0, 0, 0.96) !important;
    color: #ffffff !important;
}

.spade-new-product__quick-add > span:last-child {
    font-size: 17px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.spade-new-product__quick-add:hover > span:last-child {
    transform: translateX(3px);
}

/* Never show WooCommerce's extra "View cart" link beside the card. */
.spade-new-product .added_to_cart,
.spade-new-product a.added_to_cart {
    display: none !important;
}


/* =========================================================
   PRODUCT INFORMATION
   ========================================================= */

.spade-new-product__info {
    padding: 18px 18px 20px;
    background: #ffffff;
}

.spade-new-product__brand {
    margin: 0 0 8px;
    color: #666666;
    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.spade-new-product__name {
    min-height: 2.8em;
    margin: 0;
    color: #111111;
    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.spade-new-product__name a {
    color: #111111;
    text-decoration: none;

    transition: color 0.2s ease;
}

.spade-new-product__name a:hover {
    color: #ef3f78;
}

.spade-new-product__price {
    margin-top: 11px;
    color: #111111;
    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: clamp(16px, 1.15vw, 19px);
    font-weight: 700;
    line-height: 1.35;
}

.spade-new-product__price del {
    margin-right: 6px;

    color: #999999;

    font-weight: 400;

    opacity: 1;
}

.spade-new-product__price ins {
    color: #111111;
    text-decoration: none;
}

.spade-new-product__bnpl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;

    margin: 16px 0 0;
    padding-top: 15px;

    border-top: 1px solid #e9e9e9;

    color: #555555;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif);
    font-size: 10px;
    line-height: 1.5;
}

.spade-new-product__bnpl-copy {
    white-space: nowrap;
}

.spade-new-product__bnpl strong {
    color: #222222;
    font-weight: 700;
}

.spade-new-product__bnpl-logos {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.spade-new-product__bnpl-logos img {
    display: block;
    width: auto !important;
    height: 18px !important;
    max-width: 58px !important;
    object-fit: contain;
}

.spade-new-product__bnpl-or {
    color: #b0b0b0;
    font-size: 9px;
}

.spade-new-arrivals__mobile-footer {
    display: none;
}


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

@media (max-width: 1024px) {

    .spade-new-arrivals__track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

}


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

@media (max-width: 700px) {

    .spade-new-arrivals {
        padding: 60px 0 68px;
    }

    .spade-new-arrivals__inner {
        padding: 0 14px;
    }

    .spade-new-arrivals__header {
        display: block;
        margin-bottom: 25px;
    }

    .spade-new-arrivals__header > .spade-new-arrivals__view-all {
        display: none;
    }

    .spade-new-arrivals__title {
        font-size: 38px;
    }

    .spade-new-arrivals__intro {
        font-size: 12px;
    }

    .spade-new-arrivals__track {
        display: flex;

        gap: 10px;

        overflow-x: auto;

        padding-bottom: 4px;

        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .spade-new-arrivals__track::-webkit-scrollbar {
        display: none;
    }

    .spade-new-product {
        flex: 0 0 74%;
        scroll-snap-align: start;
    }

    .spade-new-product__badge {
        top: 10px;
        left: 10px;

        padding: 6px 8px;
    }

    .spade-new-product__info {
        padding-top: 14px;
    }

    .spade-new-product__quick-add {
        right: 0;
        bottom: 0;
        left: 0;

        min-height: 48px;
        padding: 0 14px;

        font-size: 9px;

        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .spade-new-product__name {
        min-height: 2.8em;
        font-size: 14px;
        font-weight: 700;
    }

    .spade-new-product__price {
        font-size: 14px;
    }

    .spade-new-product__bnpl {
        gap: 6px;
        font-size: 9px;
    }

    .spade-new-product__bnpl-logos img {
        height: 13px !important;
        max-width: 40px !important;
    }

    .spade-new-arrivals__mobile-footer {
        display: block;

        margin-top: 28px;

        text-align: center;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .spade-new-product {
        flex-basis: 82%;
    }

}

/* =========================================================
   SPADE — NEW ARRIVALS FINAL FIX
   Add to Cart below image + compact Koko/Mintpay logos
   ========================================================= */

/* Keep product card stacking clean */
.spade-new-product {
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Image remains first */
.spade-new-product__media {
    order: 1 !important;
    flex: 0 0 auto !important;
}

/*
 * Add to Cart sits directly AFTER image and BEFORE brand/info.
 * Hidden on desktop until the whole product card is hovered.
 */
.spade-new-product__quick-add {
    position: relative !important;
    inset: auto !important;

    order: 2 !important;

    width: 100% !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;

    margin: 0 !important;
    padding: 0 16px !important;

    overflow: hidden !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #111111 !important;
    color: #ffffff !important;

    font-family: var(--spade-font-body, "Manrope", Arial, sans-serif) !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.11em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;

    opacity: 0 !important;
    visibility: hidden !important;
    transform: none !important;

    transition:
        height 0.26s ease,
        min-height 0.26s ease,
        max-height 0.26s ease,
        opacity 0.18s ease,
        visibility 0.18s ease,
        background-color 0.2s ease,
        color 0.2s ease !important;
}

.spade-new-product:hover > .spade-new-product__quick-add,
.spade-new-product__quick-add:focus-visible {
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;

    opacity: 1 !important;
    visibility: visible !important;
}

.spade-new-product__quick-add:hover {
    background: #ffffff !important;
    color: #111111 !important;
    border-top: 1px solid #111111 !important;
    border-bottom: 1px solid #111111 !important;
}

.spade-new-product__quick-add > span:last-child {
    font-size: 16px !important;
    font-weight: 300 !important;
}

/* Product information must stay below the quick add bar */
.spade-new-product__info {
    order: 3 !important;
    width: 100% !important;
    padding: 17px 18px 20px !important;
    background: #ffffff !important;
}

/* Hide WooCommerce's extra View Cart link beside card */
.spade-new-product .added_to_cart,
.spade-new-product a.added_to_cart {
    display: none !important;
}

/* =========================================================
   KOKO / MINTPAY LOGO SIZE FIX
   ========================================================= */

.spade-new-product__bnpl {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 8px 10px !important;
}

.spade-new-product__bnpl-logos {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;

    flex: 0 0 auto !important;
    width: auto !important;
}

.spade-new-product__bnpl-logos img {
    display: block !important;

    width: auto !important;
    height: 14px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    max-width: 42px !important;
    max-height: 14px !important;

    margin: 0 !important;
    padding: 0 !important;

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

.spade-new-product__bnpl-or {
    font-size: 8px !important;
    color: #aaaaaa !important;
}

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

@media (max-width: 700px) {

    /* No hover on touch — keep button visible */
    .spade-new-product__quick-add {
        height: 44px !important;
        min-height: 44px !important;
        max-height: 44px !important;

        opacity: 1 !important;
        visibility: visible !important;

        font-size: 9px !important;
    }

    .spade-new-product__bnpl {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 7px !important;
    }

    .spade-new-product__bnpl-logos img {
        height: 12px !important;
        max-height: 12px !important;
        max-width: 36px !important;
    }
}

/* =========================================================
   SPADE — NEW ARRIVALS BADGE COLOURS
   ========================================================= */

.spade-new-product__badge {
    border: 0 !important;
    border-radius: 3px !important;

    padding: 7px 11px !important;

    font-size: 9px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: 0.10em !important;

    color: #ffffff !important;
}


/* NEW — SPADE PINK + BIGGER */

.spade-new-product__badge--new {
    padding: 10px 16px !important;

    background: #E83D72 !important;
    color: #ffffff !important;

    font-size: 11px !important;
    letter-spacing: 0.12em !important;
}


/* SALE — DEEP RED */

.spade-new-product__badge--sale {
    background: #C62828 !important;
    color: #ffffff !important;
}


/* BEST SELLER — MUTED GOLD */

.spade-new-product__badge--best-seller {
    background: #D4A84F !important;
    color: #111111 !important;
}


/* TRENDING — DEEP PURPLE */

.spade-new-product__badge--trending {
    background: #6D4BC3 !important;
    color: #ffffff !important;
}


/* SOLD OUT — CHARCOAL */

.spade-new-product__badge--sold-out {
    background: #666666 !important;
    color: #ffffff !important;
}


/* MOBILE */

@media (max-width: 700px) {

    .spade-new-product__badge {
        padding: 6px 9px !important;
        font-size: 8px !important;
    }

    .spade-new-product__badge--new {
        padding: 8px 13px !important;
        font-size: 10px !important;
    }
}