/* =========================================================
   SAVVY LEATHER CRAFT
   FEATURED PRODUCTS
   ========================================================= */


/* =========================================================
   FEATURED SECTION
   Main wrapper for the Featured Products section
   ========================================================= */

.featured-section {

    position: relative;

    padding:
        90px 0
        105px;

    background:
        #f6f2eb;

    overflow: hidden;
}


/* =========================================================
   FEATURED SECTION HEADER
   Uses the existing:
   .section-heading-row
   .eyebrow
   .section-link
   ========================================================= */

.featured-section .section-heading-row {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 42px;
}


/* =========================================================
   FEATURED EYEBROW
   Existing class:
   .eyebrow
   ========================================================= */

.featured-section .eyebrow {

    margin: 0 0 12px;

    color:
        #866d5c;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2.2px;

    line-height: 1.2;

    text-transform: uppercase;
}


/* =========================================================
   FEATURED TITLE
   ========================================================= */

.featured-section .section-heading-row h2 {

    margin: 0;

    color:
        #151310;

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

    font-size:
        clamp(
            38px,
            4.5vw,
            58px
        );

    font-weight: 500;

    line-height: 1.03;

    letter-spacing: -1.8px;
}


/* =========================================================
   SHOP ALL LINK
   Existing class:
   .section-link
   ========================================================= */

.featured-section .section-link {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding-bottom: 7px;

    border-bottom:
        1px solid
        #151310;

    color:
        #151310;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;

    transition:
        opacity .3s ease,
        gap .3s ease;
}


.featured-section .section-link:hover {

    gap: 13px;

    opacity: .6;
}


/* =========================================================
   FEATURED PRODUCT GRID
   Existing class:
   .product-grid
   Existing ID:
   #featured-products-grid
   ========================================================= */

.featured-section .product-grid {

    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 22px;

    width: 100%;
}


/* =========================================================
   PRODUCT CARD
   Existing dynamic class:
   .product-card
   ========================================================= */

.featured-section .product-card {

    position: relative;

    min-width: 0;

    width: 100%;
}


/* =========================================================
   PRODUCT IMAGE
   Existing dynamic class:
   .product-image

   This creates the large fashion-style product image.
   ========================================================= */

.featured-section .product-image {

    position: relative;

    display: block;

    width: 100%;

    aspect-ratio:
        4 / 5;

    overflow: hidden;

    background:
        #ebe3d8;
}


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

.featured-section .product-image img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

    object-position: center;

    transition:
        transform
        .75s
        cubic-bezier(
            .2,
            .7,
            .2,
            1
        );
}


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

.featured-section .product-card:hover
.product-image img {

    transform:
        scale(1.055);
}


/* =========================================================
   IMAGE HOVER OVERLAY
   Gives the card a more premium fashion feel.
   ========================================================= */

.featured-section .product-image::after {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 2;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,.02) 35%,
            rgba(0,0,0,.10) 100%
        );

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .35s ease;
}


.featured-section .product-card:hover
.product-image::after {

    opacity: 1;
}


/* =========================================================
   PRODUCT SALE / BADGE
   Existing class:
   .product-badge
   ========================================================= */

.featured-section .product-badge {

    position: absolute;

    top: 15px;

    left: 15px;

    z-index: 5;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 31px;

    padding:
        0 12px;

    border-radius:
        999px;

    background:
        #211c18;

    color:
        #ffffff;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1px;

    line-height: 1;

    text-transform: uppercase;

    box-shadow:
        0 7px 18px
        rgba(0,0,0,.12);
}


/* =========================================================
   PRODUCT INFORMATION
   Existing class:
   .product-info
   ========================================================= */

.featured-section .product-info {

    padding:
        17px
        2px
        0;
}


/* =========================================================
   PRODUCT NAME
   Existing class:
   .product-name
   ========================================================= */

.featured-section .product-name {

    margin: 0;

    color:
        #151310;

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

    font-size: 19px;

    font-weight: 500;

    line-height: 1.3;

    letter-spacing: -.2px;
}


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

.featured-section .product-name a {

    color: inherit;

    text-decoration: none;

    transition:
        color .3s ease,
        opacity .3s ease;
}


.featured-section .product-name a:hover {

    color:
        #60493c;
}


/* =========================================================
   PRODUCT PRICE ROW
   Existing class:
   .product-price
   ========================================================= */

.featured-section .product-price {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 9px;
}


/* =========================================================
   CURRENT PRICE
   Existing class:
   .current-price
   ========================================================= */

.featured-section .current-price {

    color:
        #60493c;

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

    font-size: 13px;

    font-weight: 800;

    line-height: 1.2;
}


/* =========================================================
   COMPARE PRICE
   Existing class:
   .compare-price
   ========================================================= */

.featured-section .compare-price {

    color:
        #756b62;

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

    font-size: 11px;

    line-height: 1.2;

    text-decoration:
        line-through;
}


/* =========================================================
   LOADING STATE
   Existing class:
   .product-loading
   ========================================================= */

.featured-section .product-loading {

    grid-column:
        1 / -1;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 300px;

    color:
        #756b62;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   EMPTY STATE
   Supports future JS states.
   ========================================================= */

.featured-section .product-empty {

    grid-column:
        1 / -1;

    padding:
        60px 20px;

    color:
        #756b62;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   ERROR STATE
   Supports future JS states.
   ========================================================= */

.featured-section .product-error {

    grid-column:
        1 / -1;

    padding:
        60px 20px;

    color:
        #8b3d35;

    font-size: 13px;

    text-align: center;
}


/* =========================================================
   TABLET
   3 PRODUCT CARDS
   ========================================================= */

@media (max-width: 1100px) {

    .featured-section .product-grid {

        grid-template-columns:
            repeat(
                3,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   SMALL TABLET
   2 PRODUCT CARDS
   ========================================================= */

@media (max-width: 800px) {

    .featured-section {

        padding:
            75px 0
            85px;
    }


    .featured-section
    .section-heading-row {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap: 18px;

        margin-bottom:
            30px;
    }


    .featured-section
    .section-heading-row h2 {

        font-size:
            clamp(
                36px,
                7vw,
                48px
            );
    }


    .featured-section .product-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 20px;
    }

}


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

@media (max-width: 550px) {

    .featured-section {

        padding:
            65px 0
            75px;
    }


    .featured-section
    .product-grid {

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap:
            16px;
    }


    .featured-section
    .product-image {

        aspect-ratio:
            4 / 5;
    }


    .featured-section
    .product-info {

        padding:
            12px
            1px
            0;
    }


    .featured-section
    .product-name {

        font-size:
            16px;

        line-height:
            1.3;
    }


    .featured-section
    .current-price {

        font-size:
            12px;
    }


    .featured-section
    .compare-price {

        font-size:
            10px;
    }


    .featured-section
    .product-badge {

        top: 10px;

        left: 10px;

        min-height:
            28px;

        padding:
            0 9px;

        font-size:
            8px;
    }

}


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

@media (max-width: 380px) {

    .featured-section
    .product-grid {

        gap:
            13px;
    }


    .featured-section
    .product-name {

        font-size:
            15px;
    }


    .featured-section
    .product-info {

        padding-top:
            10px;
    }


    .featured-section
    .current-price {

        font-size:
            11px;
    }


    .featured-section
    .compare-price {

        font-size:
            9px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .featured-section
    .product-image img,

    .featured-section
    .product-image::after,

    .featured-section
    .section-link,

    .featured-section
    .product-name a {

        transition:
            none;
    }

}