/*
 * =========================================================
 * HPD RECENTLY VIEWED PRODUCTS
 * FINAL — MATCHES EXPLORE MORE HEADER
 *
 * Explore More is the visual master.
 * - Exact header dimensions copied from category-products
 * - White background
 * - Same top divider
 * - Same bottom divider
 * - Same typography
 * - Same orange accent
 * - Border ONLY around product image
 * - NO border around title or price
 * - NO shadows
 * =========================================================
 */


/* =========================================================
   SECTION
   EXACTLY MATCH EXPLORE MORE
   ========================================================= */

.hpd-recently-viewed {
    clear: both;
    width: 100%;

    margin: 42px 0 24px !important;
    padding: 28px 0 10px !important;

    border: 0 !important;
    border-top: 1px solid #e3e9ef !important;

    background: #ffffff !important;

    box-shadow: none !important;
}


/* =========================================================
   HEADER
   EXACTLY MATCH EXPLORE MORE
   ========================================================= */

.hpd-recently-viewed-header {
    position: relative;

    margin: 0 0 24px !important;
    padding: 0 0 14px !important;

    border: 0 !important;
    border-bottom: 1px solid #e3e9ef !important;

    background: transparent !important;
}


/* =========================================================
   ORANGE KICKER
   EXACTLY MATCH EXPLORE MORE
   ========================================================= */

.hpd-recently-viewed-kicker {
    display: block;

    margin: 0 0 4px !important;
    padding: 0 !important;

    color: #ff8a00 !important;

    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    letter-spacing: 1.2px !important;

    text-transform: uppercase !important;
}


/* =========================================================
   MAIN TITLE
   EXACTLY MATCH EXPLORE MORE
   ========================================================= */

.hpd-recently-viewed-title {
    margin: 0 !important;
    padding: 0 !important;

    color: #0e2a47 !important;

    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}


/* =========================================================
   ORANGE ACCENT
   EXACTLY MATCH EXPLORE MORE
   ========================================================= */

.hpd-recently-viewed-accent {
    position: absolute;

    left: 0;
    bottom: -1px;

    display: block;

    width: 62px;
    height: 3px;

    background: #ff8a00;
}


/* =========================================================
   PRODUCT GRID
   Recently Viewed keeps maximum 6 products.
   ========================================================= */

.hpd-recently-viewed ul.products {
    display: grid !important;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 16px;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;

    border: 0 !important;
    background: transparent !important;

    box-shadow: none !important;
}


.hpd-recently-viewed ul.products::before,
.hpd-recently-viewed ul.products::after {
    display: none !important;
    content: none !important;
}


/* =========================================================
   PRODUCT CARD
   NO CARD BORDER
   ========================================================= */

.hpd-recently-viewed
ul.products
li.product {
    float: none !important;
    clear: none !important;

    width: auto !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #ffffff !important;

    box-shadow: none !important;
}


/* =========================================================
   PRODUCT LINK
   ========================================================= */

.hpd-recently-viewed
ul.products
li.product
a.woocommerce-LoopProduct-link {
    display: block;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    text-decoration: none !important;

    box-shadow: none !important;
}


/* =========================================================
   PRODUCT IMAGE
   NAVY BORDER ONLY AROUND IMAGE
   ========================================================= */

.hpd-recently-viewed
ul.products
li.product
a
img {
    display: block;

    width: 100% !important;
    height: 145px !important;

    margin: 0 0 8px !important;
    padding: 0 !important;

    object-fit: contain;

    background: #ffffff !important;

    border: 1px solid #0e2a47 !important;
    border-radius: 2px !important;

    box-shadow: none !important;
}


/* =========================================================
   PRODUCT TITLE
   NO BORDER
   ========================================================= */

.hpd-recently-viewed
ul.products
li.product
.woocommerce-loop-product__title {
    min-height: 42px;

    margin: 0 0 7px !important;
    padding: 0 !important;

    color: #0e2a47 !important;

    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    border: 0 !important;
    background: transparent !important;

    box-shadow: none !important;
}


/* =========================================================
   PRODUCT PRICE
   NO BORDER
   ========================================================= */

.hpd-recently-viewed
ul.products
li.product
.price {
    display: block;

    margin: 0 !important;
    padding: 0 !important;

    color: #0e2a47 !important;

    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;

    border: 0 !important;
    background: transparent !important;

    box-shadow: none !important;
}


.hpd-recently-viewed
ul.products
li.product
.price
ins {
    text-decoration: none !important;
}


/* =========================================================
   NO SHADOWS
   ========================================================= */

.hpd-recently-viewed *,
.hpd-recently-viewed *::before,
.hpd-recently-viewed *::after {
    box-shadow: none !important;
}


/* =========================================================
   TABLET
   Match Explore More section spacing
   ========================================================= */

@media (max-width: 980px) {

    .hpd-recently-viewed {
        margin-top: 36px !important;
        padding-top: 24px !important;
    }

    .hpd-recently-viewed ul.products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 16px;
    }

    .hpd-recently-viewed
    ul.products
    li.product
    a
    img {
        height: 165px !important;
    }
}


/* =========================================================
   MOBILE
   Match Explore More header
   ========================================================= */

@media (max-width: 767px) {

    .hpd-recently-viewed {
        margin-top: 30px !important;
        padding-top: 22px !important;
    }

    .hpd-recently-viewed-header {
        margin-bottom: 18px !important;
    }

    .hpd-recently-viewed-title {
        font-size: 22px !important;
    }

    .hpd-recently-viewed ul.products {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 12px;
    }

    .hpd-recently-viewed
    ul.products
    li.product
    a
    img {
        height: 140px !important;
        margin-bottom: 9px !important;
    }

    .hpd-recently-viewed
    ul.products
    li.product
    .woocommerce-loop-product__title {
        min-height: 0;

        font-size: 13px !important;
        line-height: 1.35 !important;
    }

    .hpd-recently-viewed
    ul.products
    li.product
    .price {
        font-size: 13px !important;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 420px) {

    .hpd-recently-viewed ul.products {
        gap: 10px;
    }

    .hpd-recently-viewed
    ul.products
    li.product
    a
    img {
        height: 120px !important;
    }
}

/* =========================================================
   HPD RECENTLY VIEWED — QUICK CLEANUP
   ========================================================= */

/* Remove YOUR RECENT ITEMS */
.hpd-recently-viewed-kicker {
    display: none !important;
}

/* Remove top gray line */
.hpd-recently-viewed {
    border-top: 0 !important;
}

/* Make Recently Viewed Products larger + stronger */
.hpd-recently-viewed-title {
    margin: 0 !important;
    padding: 0 !important;

    color: #0e2a47 !important;

    font-family: inherit !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    font-weight: 600 !important;
}