/* =========================================================
   LA PUNTADA — SHOP / PRODUCT ARCHIVES
   Conversion-first catalog
   Version 1.0
========================================================= */


/* =========================================================
   BASE
========================================================= */

body.woocommerce-shop,
body.tax-product_cat,
body.tax-product_tag,
body.tax-product_attribute {
    background: #fff;
}

.lp-shop {
    padding: 0 0 82px;
}

.lp-shop .woocommerce {
    width: 100%;
}


/* =========================================================
   SHOP HERO
========================================================= */

.lp-shop-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 8vw, 105px) 0 clamp(52px, 7vw, 90px);
    border-bottom: 1px solid var(--lp-border);
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(168, 125, 99, .19),
            transparent 30%
        ),
        radial-gradient(
            circle at 8% 90%,
            rgba(112, 128, 107, .08),
            transparent 27%
        ),
        linear-gradient(
            135deg,
            #f8f3ed 0%,
            #f1e8df 100%
        );
}

.lp-shop-hero::before {
    content: "";
    position: absolute;
    right: -110px;
    top: -160px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(168, 125, 99, .18);
    border-radius: 50%;
}

.lp-shop-hero::after {
    content: "";
    position: absolute;
    right: 60px;
    bottom: -215px;
    width: 350px;
    height: 350px;
    border: 1px solid rgba(168, 125, 99, .1);
    border-radius: 50%;
}

.lp-shop-hero__content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.lp-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--lp-accent-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.lp-shop-hero__title {
    max-width: 900px;
    margin: 0;
    color: var(--lp-text);
    font-size: clamp(52px, 7vw, 92px);
    font-weight: 610;
    line-height: .91;
    letter-spacing: -.07em;
}

.lp-shop-hero__text {
    max-width: 610px;
    margin: 26px 0 0;
    color: var(--lp-muted);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.5;
}

.lp-shop-hero__trust {
    margin-top: 27px;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.lp-shop-hero__trust span {
    min-height: 34px;
    padding: 0 13px;
    border: 1px solid rgba(33,29,26,.1);
    border-radius: 999px;
    background: rgba(255,255,255,.6);
    display: inline-flex;
    align-items: center;
    color: var(--lp-text);
    font-size: 10px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}


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

.lp-shop__header {
    padding: 65px 0 24px;
}

.lp-shop__heading {
    max-width: 900px;
}

.lp-shop__title {
    margin: 0;
    color: var(--lp-text);
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 610;
    line-height: .96;
    letter-spacing: -.06em;
}

.lp-shop__heading .term-description,
.lp-shop__heading .page-description {
    max-width: 680px;
    margin-top: 18px;
    color: var(--lp-muted);
    font-size: 14px;
    line-height: 1.55;
}

.lp-shop__heading .term-description p,
.lp-shop__heading .page-description p {
    margin: 0;
}


/* =========================================================
   TOOLBAR
========================================================= */

.lp-shop-toolbar {
    min-height: 64px;
    margin-bottom: 24px;
    padding: 10px 0;
    border-top: 1px solid var(--lp-border);
    border-bottom: 1px solid var(--lp-border);
    display: flex;
    align-items: center;
}

.lp-shop-toolbar__result {
    width: 100%;
}

.lp-shop-toolbar__result::after {
    content: "";
    display: table;
    clear: both;
}


/* WooCommerce result count */

.lp-shop
.woocommerce-result-count {
    margin: 0;
    color: var(--lp-muted);
    font-size: 11px;
    line-height: 44px;
}


/* WooCommerce sorting */

.lp-shop
.woocommerce-ordering {
    margin: 0;
    float: right;
}

.lp-shop
.woocommerce-ordering select {
    min-height: 44px;
    padding: 0 38px 0 14px;
    border: 1px solid var(--lp-border);
    border-radius: 999px;
    background-color: #fff;
    color: var(--lp-text);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}


/* =========================================================
   PRODUCT LOOP RESET
========================================================= */

.lp-product-grid {
    width: 100%;
}

.lp-product-grid
ul.products {
    margin: 0 !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 38px 16px;
}

.lp-product-grid
ul.products::before,
.lp-product-grid
ul.products::after {
    display: none !important;
}

.lp-product-grid
ul.products li.product {
    position: relative;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    min-width: 0;
}

.lp-product-grid
ul.products li.product a {
    color: inherit;
    text-decoration: none;
}


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

.lp-product-grid
ul.products li.product
.woocommerce-LoopProduct-link {
    display: block;
}

.lp-product-grid
ul.products li.product img {
    width: 100%;
    margin: 0 0 15px !important;
    aspect-ratio: .84;
    border: 1px solid var(--lp-border);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 65% 20%,
            rgba(168,125,99,.07),
            transparent 31%
        ),
        #f5f1ec;
    object-fit: cover;
    transition:
        transform .45s cubic-bezier(.2,.7,.2,1),
        box-shadow .3s ease;
}

.lp-product-grid
ul.products li.product:hover img {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(33,29,26,.10);
}


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

.lp-product-grid
.onsale {
    top: 11px !important;
    right: auto !important;
    left: 11px !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 7px 10px !important;
    border-radius: 999px !important;
    background: var(--lp-text) !important;
    color: #fff !important;
    font-size: 8px !important;
    font-weight: 850 !important;
    line-height: 1 !important;
    letter-spacing: .05em;
}


/* =========================================================
   PRODUCT TITLE
========================================================= */

.lp-product-grid
.woocommerce-loop-product__title {
    min-height: 2.45em;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--lp-text);
    font-size: 14px !important;
    font-weight: 720 !important;
    line-height: 1.22 !important;
    letter-spacing: -.025em;
}


/* =========================================================
   PRODUCT PRICE
========================================================= */

.lp-product-grid
ul.products li.product .price {
    margin: 7px 0 0 !important;
    color: var(--lp-text) !important;
    font-size: 14px !important;
    font-weight: 720 !important;
}

.lp-product-grid
ul.products li.product .price del {
    margin-right: 5px;
    color: var(--lp-muted);
    opacity: .45;
    font-size: .78em;
}

.lp-product-grid
ul.products li.product .price ins {
    color: var(--lp-text);
    font-weight: inherit;
    text-decoration: none;
}


/* =========================================================
   RATING
========================================================= */

.lp-product-grid
.star-rating {
    margin: 7px 0 0 !important;
    font-size: 10px;
}


/* =========================================================
   PRODUCT LOOP BUTTON
========================================================= */

.lp-product-grid
ul.products li.product .button {
    position: relative;
    width: 100%;
    min-height: 44px;
    margin: 14px 0 0 !important;
    padding: 0 16px !important;
    border: 1px solid var(--lp-border) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--lp-text) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 11px !important;
    font-weight: 760 !important;
    line-height: 1 !important;
    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        transform .2s ease;
}

.lp-product-grid
ul.products li.product .button:hover {
    border-color: var(--lp-text) !important;
    background: var(--lp-text) !important;
    color: #fff !important;
    transform: translateY(-1px);
}


/* AJAX loading */

.lp-product-grid
ul.products li.product .button.loading {
    opacity: .5;
}

.lp-product-grid
ul.products li.product .added_to_cart {
    margin-top: 8px;
    display: block;
    color: var(--lp-green);
    font-size: 10px;
    font-weight: 750;
    text-align: center;
}


/* =========================================================
   CATEGORY CARDS IF WOO OUTPUTS CATEGORIES
========================================================= */

.lp-product-grid
ul.products li.product-category {
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: 22px;
    background: var(--lp-bg);
}

.lp-product-grid
ul.products li.product-category a {
    display: block;
}

.lp-product-grid
ul.products li.product-category img {
    border: 0;
    border-radius: 0;
}

.lp-product-grid
ul.products li.product-category h2 {
    margin: 0;
    padding: 17px 18px 20px;
    color: var(--lp-text);
    font-size: 18px;
    font-weight: 680;
}

.lp-product-grid
ul.products li.product-category mark {
    background: transparent;
    color: var(--lp-muted);
    font-size: .7em;
}


/* =========================================================
   PAGINATION
========================================================= */

.lp-shop-pagination {
    margin-top: 58px;
}

.lp-shop-pagination
.woocommerce-pagination {
    text-align: center;
}

.lp-shop-pagination
.woocommerce-pagination ul {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    display: inline-flex !important;
    gap: 7px;
}

.lp-shop-pagination
.woocommerce-pagination ul li {
    margin: 0 !important;
    border: 0 !important;
    float: none !important;
}

.lp-shop-pagination
.woocommerce-pagination ul li a,
.lp-shop-pagination
.woocommerce-pagination ul li span {
    width: 42px;
    height: 42px;
    padding: 0 !important;
    border: 1px solid var(--lp-border);
    border-radius: 50%;
    background: #fff;
    color: var(--lp-text);
    display: grid !important;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.lp-shop-pagination
.woocommerce-pagination ul li span.current,
.lp-shop-pagination
.woocommerce-pagination ul li a:hover {
    border-color: var(--lp-text);
    background: var(--lp-text);
    color: #fff;
}


/* =========================================================
   EMPTY SHOP
========================================================= */

.lp-shop-empty {
    min-height: 430px;
    padding: 50px 30px;
    border: 1px solid var(--lp-border);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 85% 15%,
            rgba(168,125,99,.13),
            transparent 30%
        ),
        var(--lp-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.lp-shop-empty__icon {
    width: 66px;
    height: 66px;
    margin-bottom: 20px;
    border-radius: 50%;
    background: var(--lp-surface-soft);
    color: var(--lp-accent-dark);
    display: grid;
    place-items: center;
    font-size: 28px;
}

.lp-shop-empty h2 {
    max-width: 580px;
    margin: 0;
    font-size: clamp(35px, 4vw, 54px);
    font-weight: 620;
    line-height: .98;
    letter-spacing: -.05em;
}

.lp-shop-empty p {
    max-width: 550px;
    margin: 17px 0 25px;
    color: var(--lp-muted);
    font-size: 14px;
}


/* =========================================================
   SHOP CONFIDENCE
========================================================= */

.lp-shop-confidence {
    padding: 0 0 85px;
    background: #fff;
}

.lp-shop-confidence__grid {
    overflow: hidden;
    border: 1px solid var(--lp-border);
    border-radius: 26px;
    background: var(--lp-bg);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.lp-shop-confidence__item {
    min-height: 135px;
    padding: 27px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.lp-shop-confidence__item +
.lp-shop-confidence__item {
    border-left: 1px solid var(--lp-border);
}

.lp-shop-confidence__icon {
    flex: 0 0 39px;
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #fff;
    color: var(--lp-accent-dark);
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .04em;
}

.lp-shop-confidence__item strong {
    display: block;
    margin: 2px 0 0;
    color: var(--lp-text);
    font-size: 14px;
}

.lp-shop-confidence__item p {
    max-width: 270px;
    margin: 5px 0 0;
    color: var(--lp-muted);
    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   WOOCOMMERCE NOTICES
========================================================= */

.lp-shop
.woocommerce-message,
.lp-shop
.woocommerce-info,
.lp-shop
.woocommerce-error {
    margin: 0 0 22px;
    padding: 14px 17px;
    border: 1px solid var(--lp-border);
    border-radius: 15px;
    background: #fff;
    color: var(--lp-text);
    box-shadow: none;
}

.lp-shop
.woocommerce-message {
    background: var(--lp-green-soft);
    border-color: rgba(112,128,107,.2);
}


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

@media (max-width: 1024px) {

    .lp-product-grid
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}


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

@media (max-width: 767px) {

    .lp-shop-hero {
        padding: 42px 0 40px;
    }

    .lp-shop-hero__title {
        font-size: clamp(45px, 13vw, 62px);
    }

    .lp-shop-hero__text {
        margin-top: 19px;
        font-size: 15px;
    }

    .lp-shop-hero__trust {
        margin-top: 18px;
        gap: 6px;
    }

    .lp-shop-hero__trust span {
        min-height: 30px;
        padding: 0 10px;
        font-size: 8px;
    }


    /* Header */

    .lp-shop__header {
        padding: 38px 0 18px;
    }

    .lp-shop__title {
        font-size: 40px;
    }


    /* Toolbar */

    .lp-shop-toolbar {
        min-height: 58px;
        margin-bottom: 18px;
        padding: 7px 0;
    }

    .lp-shop
    .woocommerce-result-count {
        line-height: 36px;
        font-size: 9px;
    }

    .lp-shop
    .woocommerce-ordering select {
        max-width: 170px;
        min-height: 38px;
        padding-left: 11px;
        font-size: 9px;
    }


    /* Grid */

    .lp-product-grid
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 10px;
    }

    .lp-product-grid
    ul.products li.product img {
        margin-bottom: 11px !important;
        border-radius: 17px;
    }

    .lp-product-grid
    .woocommerce-loop-product__title {
        min-height: 2.5em;
        font-size: 12px !important;
    }

    .lp-product-grid
    ul.products li.product .price {
        margin-top: 5px !important;
        font-size: 12px !important;
    }

    .lp-product-grid
    ul.products li.product .button {
        min-height: 39px;
        margin-top: 10px !important;
        padding: 0 9px !important;
        font-size: 9px !important;
    }

    .lp-product-grid
    .onsale {
        top: 7px !important;
        left: 7px !important;
        padding: 6px 8px !important;
        font-size: 7px !important;
    }


    /* Pagination */

    .lp-shop-pagination {
        margin-top: 42px;
    }

    .lp-shop-pagination
    .woocommerce-pagination ul li a,
    .lp-shop-pagination
    .woocommerce-pagination ul li span {
        width: 38px;
        height: 38px;
    }


    /* Confidence */

    .lp-shop-confidence {
        padding-bottom: 48px;
    }

    .lp-shop-confidence__grid {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .lp-shop-confidence__item {
        min-height: auto;
        padding: 17px;
    }

    .lp-shop-confidence__item +
    .lp-shop-confidence__item {
        border-top: 1px solid var(--lp-border);
        border-left: 0;
    }

}


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

@media (max-width: 390px) {

    .lp-shop-hero__title {
        font-size: 42px;
    }

    .lp-product-grid
    ul.products {
        gap: 25px 8px;
    }

    .lp-product-grid
    .woocommerce-loop-product__title {
        font-size: 11px !important;
    }

}


/* =========================================================
   ACCESSIBILITY / MOTION
========================================================= */

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

    .lp-product-grid
    ul.products li.product img,
    .lp-product-grid
    ul.products li.product .button {
        transition: none !important;
    }

}