/* =========================================================
   SAVVY LEATHER CRAFT
   PREMIUM TRENDING PRODUCT CARDS
   ========================================================= */

.trending-products-section {
    width: 100%;
    padding: 95px 0 105px;
    background: #ffffff;
    overflow: hidden;
}


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

.trending-products-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.trending-title-area {
    max-width: 700px;
}

.trending-eyebrow {
    margin: 0 0 12px;

    color: #7b7168;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2.5px;
    text-transform: uppercase;
}

.trending-title-area h2 {
    margin: 0;

    color: #15120f;

    font-family: Georgia, "Times New Roman", serif;

    font-size: clamp(42px, 5vw, 62px);
    font-weight: 400;

    line-height: 1;
    letter-spacing: -2px;
}

.trending-view-all {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding-bottom: 8px;

    border-bottom: 1px solid #211c18;

    color: #211c18;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;
    white-space: nowrap;

    transition:
        gap 0.3s ease,
        opacity 0.3s ease;
}

.trending-view-all span {
    font-size: 17px;
}

.trending-view-all:hover {
    gap: 15px;
    opacity: 0.65;
}


/* =========================================================
   SLIDER
   ========================================================= */

.trending-products-slider-wrap {
    position: relative;
    width: 100%;
}

.trending-products-slider {
    display: flex;
    gap: 18px;

    width: 100%;

    overflow-x: auto;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.trending-products-slider::-webkit-scrollbar {
    display: none;
}


/* =========================================================
   PRODUCT CARD
   ========================================================= */

.trending-product-card {
    position: relative;

    flex: 0 0 calc(25% - 13.5px);

    width: calc(25% - 13.5px);

    min-width: 0;

    scroll-snap-align: start;
}


/* =========================================================
   IMAGE AREA
   ========================================================= */

.trending-product-image-wrap {
    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1.08;

    overflow: hidden;

    background: #f5f3f0;
}


/* Image link */

.trending-product-image-link {
    display: block;

    width: 100%;
    height: 100%;

    overflow: hidden;
}

.trending-product-image-link img {
    display: block;

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

    object-fit: cover;
    object-position: center;

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

.trending-product-card:hover
.trending-product-image-link img {
    transform: scale(1.055);
}


/* =========================================================
   IMAGE OVERLAY
   ========================================================= */

.trending-image-overlay {
    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.02) 50%,
            rgba(0, 0, 0, 0.08)
        );

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.35s ease;
}

.trending-product-card:hover
.trending-image-overlay {
    opacity: 1;
}


/* =========================================================
   SALE BADGE
   ========================================================= */

.trending-sale-badge {
    position: absolute;

    top: 16px;
    left: 16px;

    z-index: 5;

    display: inline-flex;

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

    min-width: 68px;
    height: 32px;

    padding: 0 12px;

    border-radius: 50px;

    background: #d9413e;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.4px;

    box-shadow:
        0 5px 15px rgba(
            217,
            65,
            62,
            0.18
        );
}


/* =========================================================
   HEART
   ========================================================= */

.trending-heart {
    position: absolute;

    top: 15px;
    right: 15px;

    z-index: 6;

    display: flex;

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

    width: 40px;
    height: 40px;

    padding: 0;

    border: 1px solid rgba(
        30,
        27,
        24,
        0.12
    );

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.94
    );

    color: #211c18;

    font-family: Arial, sans-serif;

    font-size: 22px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    opacity: 0;

    transform:
        translateY(-5px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

.trending-product-card:hover
.trending-heart {
    opacity: 1;

    transform:
        translateY(0);
}

.trending-heart:hover {
    background: #211c18;
    color: #ffffff;
}


/* =========================================================
   QUICK VIEW
   ========================================================= */

.trending-quick-view {
    position: absolute;

    left: 50%;
    bottom: 16px;

    z-index: 6;

    transform:
        translate(-50%, 12px);

    width: calc(100% - 32px);

    padding: 13px 18px;

    border: none;

    background: rgba(
        255,
        255,
        255,
        0.96
    );

    color: #211c18;

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;

    cursor: pointer;

    opacity: 0;

    transition:
        opacity 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease,
        color 0.3s ease;
}

.trending-product-card:hover
.trending-quick-view {
    opacity: 1;

    transform:
        translate(-50%, 0);
}

.trending-quick-view:hover {
    background: #211c18;
    color: #ffffff;
}


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

.trending-product-info {
    padding: 17px 2px 0;
}


/* =========================================================
   PRODUCT NAME
   ========================================================= */

.trending-product-name {
    margin: 0;

    color: #181512;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 17px;
    font-weight: 600;

    line-height: 1.35;
}

.trending-product-name a {
    color: inherit;
    text-decoration: none;

    transition:
        opacity 0.25s ease;
}

.trending-product-name a:hover {
    opacity: 0.6;
}


/* =========================================================
   PRICE ROW
   ========================================================= */

.trending-product-meta {
    display: flex;

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

    gap: 12px;

    margin-top: 8px;
}

.trending-product-price {
    display: flex;

    align-items: baseline;

    flex-wrap: wrap;

    gap: 8px;
}

.trending-current-price {
    color: #37312c;

    font-size: 15px;
    font-weight: 600;
}

.trending-compare-price {
    color: #8a8179;

    font-size: 13px;

    text-decoration: line-through;
}


/* =========================================================
   SWATCHES
   ========================================================= */

.trending-swatches {
    display: flex;

    align-items: center;

    gap: 5px;

    flex-shrink: 0;
}

.trending-swatch {
    width: 16px;
    height: 16px;

    border: 1px solid #d1cbc4;

    box-shadow:
        inset 0 0 0 2px #ffffff;

    box-sizing: border-box;
}


/* =========================================================
   SLIDER ARROWS
   ========================================================= */

.trending-arrow {
    position: absolute;

    top: 43%;

    z-index: 10;

    display: flex;

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

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid #d8d1ca;

    border-radius: 50%;

    background: rgba(
        255,
        255,
        255,
        0.97
    );

    color: #211c18;

    font-size: 24px;

    cursor: pointer;

    box-shadow:
        0 7px 24px rgba(
            0,
            0,
            0,
            0.08
        );

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.trending-arrow:hover {
    background: #211c18;

    color: #ffffff;

    transform: scale(1.06);
}

.trending-prev {
    left: -23px;
}

.trending-next {
    right: -23px;
}


/* =========================================================
   PROGRESS
   ========================================================= */

.trending-progress {
    width: 38%;

    height: 2px;

    margin: 45px auto 0;

    background: #e4dfd9;

    overflow: hidden;
}

.trending-progress span {
    display: block;

    width: 25%;
    height: 100%;

    background: #211c18;

    transition:
        width 0.35s ease;
}


/* =========================================================
   LOADING
   ========================================================= */

.trending-loading {
    display: flex;

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

    width: 100%;

    min-height: 350px;

    color: #756c64;

    font-size: 14px;
}


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

@media (max-width: 1100px) {

    .trending-product-card {
        flex-basis:
            calc(33.333% - 12px);

        width:
            calc(33.333% - 12px);
    }

}


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

@media (max-width: 800px) {

    .trending-products-section {
        padding: 70px 0 80px;
    }

    .trending-products-header {
        align-items: flex-start;

        flex-direction: column;

        margin-bottom: 30px;
    }

    .trending-product-card {
        flex-basis:
            calc(50% - 9px);

        width:
            calc(50% - 9px);
    }

    .trending-heart {
        opacity: 1;

        transform: none;
    }

    .trending-quick-view {
        display: none;
    }

    .trending-prev {
        left: 7px;
    }

    .trending-next {
        right: 7px;
    }

}


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

@media (max-width: 520px) {

    .trending-products-section {
        padding: 60px 0 70px;
    }

    .trending-title-area h2 {
        font-size: 38px;

        letter-spacing: -1px;
    }

    .trending-product-card {
        flex-basis: 82%;
        width: 82%;
    }

    .trending-product-name {
        font-size: 16px;
    }

    .trending-current-price {
        font-size: 14px;
    }

    .trending-compare-price {
        font-size: 12px;
    }

    .trending-sale-badge {
        top: 12px;
        left: 12px;

        height: 30px;

        min-width: 64px;

        font-size: 10px;
    }

    .trending-heart {
        top: 11px;
        right: 11px;

        width: 36px;
        height: 36px;

        font-size: 20px;
    }

    .trending-arrow {
        width: 38px;
        height: 38px;

        font-size: 20px;
    }

    .trending-progress {
        width: 65%;

        margin-top: 35px;
    }

}