/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/

/* Catálogo Tienda inspirado en una colección editorial limpia. */
.post-type-archive-product .main-page-wrapper,
.woocommerce-shop .main-page-wrapper {
    background: #fff;
}

.post-type-archive-product .site-content,
.woocommerce-shop .site-content {
    padding-top: 0;
}

.woocommerce-shop .content-layout-wrapper {
    padding-top: 0;
}

.post-type-archive-product .woocommerce-breadcrumb,
.woocommerce-shop .woocommerce-breadcrumb {
    display: none;
}

.feazul-collection-heading {
    flex: 0 0 100%;
    width: 100%;
    margin-bottom: 18px;
    padding: 18px 0 34px;
    border-bottom: 1px solid #e8e8e5;
}

.post-type-archive-product .shop-loop-head > .wd-shop-tools:last-child,
.woocommerce-shop .shop-loop-head > .wd-shop-tools:last-child {
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.feazul-collection-heading h1 {
    margin: 0;
    color: #151515;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
}

.feazul-collection-heading h1 span {
    color: #777;
    font-weight: 400;
}

/* Portada exclusiva de la categoría Nutrabiotics. */
.term-nutrabiotics .page-title {
    display: none;
}

.feazul-category-cover {
    position: relative;
    display: flex;
    overflow: hidden;
    align-items: center;
    left: 50%;
    width: 100vw;
    min-height: clamp(360px, 38vw, 520px);
    margin: 0 0 38px -50vw;
    border-radius: 0;
    background-color: #eaf5fb;
    background-image: var(--feazul-cover-image);
    background-position: center center;
    background-size: cover;
}

.feazul-category-cover::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(241, 249, 253, .92) 0%, rgba(241, 249, 253, .58) 32%, rgba(241, 249, 253, 0) 58%);
    content: '';
    pointer-events: none;
}

.feazul-category-cover__content {
    position: absolute;
    top: 50%;
    left: clamp(28px, 5vw, 84px);
    z-index: 1;
    width: min(46%, 560px);
    padding: 0;
    transform: translateY(-50%);
}

.feazul-category-cover__content h1 {
    margin: 0;
    color: #173d5b;
    font-size: clamp(42px, 6vw, 76px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: 0;
}

.feazul-shop-cover::before {
    background: linear-gradient(90deg, rgba(248, 246, 238, .2) 0%, rgba(248, 246, 238, .72) 50%, rgba(248, 246, 238, .2) 100%);
}

.feazul-shop-cover .feazul-category-cover__content {
    left: 50%;
    width: min(80%, 700px);
    text-align: center;
    transform: translate(-50%, -50%);
}

.feazul-shop-cover .feazul-category-cover__content h1 {
    color: #0b2d55;
}

@media (min-width: 1025px) {
    .term-nutrabiotics .feazul-category-cover,
    .woocommerce-shop .feazul-shop-cover {
        left: 0;
        margin-left: calc(-1 * (max(0px, (100vw - 1600px) / 2) + min(25vw, 400px) + 15px));
    }

    .term-nutrabiotics .wd-sidebar,
    .woocommerce-shop .wd-sidebar {
        padding-top: calc(clamp(360px, 38vw, 520px) + 38px);
    }
}

.post-type-archive-product .page-title,
.woocommerce-shop .page-title {
    min-height: auto;
    padding: 42px 0 26px;
    background: #fff;
    border-bottom: 1px solid #e8e8e5;
}

.post-type-archive-product .page-title .title,
.woocommerce-shop .page-title .title,
.post-type-archive-product .woocommerce-products-header__title,
.woocommerce-shop .woocommerce-products-header__title {
    color: #161616;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: 0;
    text-transform: none;
}

.post-type-archive-product .shop-loop-head,
.woocommerce-shop .shop-loop-head {
    min-height: 64px;
    margin-bottom: 28px;
    padding: 12px 0;
    border-top: 0;
    border-bottom: 1px solid #e8e8e5;
    background: #fff;
}

.post-type-archive-product .woocommerce-result-count,
.woocommerce-shop .woocommerce-result-count,
.post-type-archive-product .woocommerce-ordering select,
.woocommerce-shop .woocommerce-ordering select {
    color: #333;
    font-size: 13px;
}

.post-type-archive-product .wd-products-per-page,
.woocommerce-shop .wd-products-per-page {
    display: none !important;
}

.post-type-archive-product .products.wd-products,
.woocommerce-shop .products.wd-products {
    --wd-prod-gap: 28px;
    row-gap: 48px;
}

.post-type-archive-product .product-grid-item,
.woocommerce-shop .product-grid-item {
    text-align: left;
}

.post-type-archive-product .product-grid-item .product-wrapper,
.woocommerce-shop .product-grid-item .product-wrapper {
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.post-type-archive-product .product-grid-item .product-wrapper:hover,
.woocommerce-shop .product-grid-item .product-wrapper:hover {
    box-shadow: none;
}

.post-type-archive-product .product-grid-item .product-element-top,
.woocommerce-shop .product-grid-item .product-element-top {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    margin-bottom: 18px;
    border-radius: 2px;
    background: #f5f6f3;
}

.post-type-archive-product .product-grid-item .product-image-link,
.woocommerce-shop .product-grid-item .product-image-link,
.post-type-archive-product .product-grid-item .product-image-link img,
.woocommerce-shop .product-grid-item .product-image-link img {
    width: 100%;
    height: 100%;
}

.post-type-archive-product .product-grid-item .product-image-link img,
.woocommerce-shop .product-grid-item .product-image-link img {
    object-fit: contain;
    transition: transform .35s ease;
}

.post-type-archive-product .product-grid-item:hover .product-image-link img,
.woocommerce-shop .product-grid-item:hover .product-image-link img {
    transform: scale(1.025);
}

.post-type-archive-product .product-grid-item .product-information,
.woocommerce-shop .product-grid-item .product-information {
    padding: 0 2px;
    text-align: left;
}

.feazul-product-brand {
    margin-bottom: 6px;
    color: #777;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.post-type-archive-product .product-grid-item .wd-entities-title,
.woocommerce-shop .product-grid-item .wd-entities-title {
    margin-bottom: 7px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
}

.post-type-archive-product .product-grid-item .wd-entities-title a,
.woocommerce-shop .product-grid-item .wd-entities-title a {
    color: #181818;
}

/* Acordeón de información del producto dentro del resumen. */
.single-product .summary .feazul-product-accordion {
    clear: both;
    width: 100%;
    margin: 20px 0 18px;
    border-top: 1px solid #e3e7ea;
}

.single-product .summary .feazul-product-accordion__item {
    border-bottom: 1px solid #e3e7ea;
}

.single-product .summary .feazul-product-accordion__item summary {
    position: relative;
    display: block;
    min-height: 54px;
    padding: 17px 34px 17px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
    list-style: none;
}

.single-product .summary .feazul-product-accordion__item summary::-webkit-details-marker {
    display: none;
}

.single-product .summary .feazul-product-accordion__item summary::after {
    position: absolute;
    top: 50%;
    right: 4px;
    color: #9aa0a6;
    font-size: 18px;
    line-height: 1;
    content: '+';
    transform: translateY(-50%);
}

.single-product .summary .feazul-product-accordion__item[open] summary {
    color: #173d5b;
}

.single-product .summary .feazul-product-accordion__item[open] summary::after {
    content: '−';
}

.single-product .summary .feazul-product-accordion__content {
    padding: 0 0 22px;
    color: #555;
    font-size: 14px;
    line-height: 1.62;
}

.single-product .summary .feazul-product-accordion__content h2 {
    margin: 18px 0 9px;
    color: #173d5b;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0;
    text-transform: none;
}

.single-product .summary .feazul-product-accordion__content h3,
.single-product .summary .feazul-product-accordion__content h4 {
    margin: 16px 0 8px;
    color: #173d5b;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
}

.single-product .summary .feazul-product-accordion__content p,
.single-product .summary .feazul-product-accordion__content li {
    color: #555;
    font-size: 14px;
    line-height: 1.62;
    letter-spacing: 0;
}

.single-product .summary .feazul-product-accordion__content .feazul-product-section-label {
    margin: 18px 0 6px;
    color: #173d5b;
    font-size: 13px;
    line-height: 1.35;
    text-transform: uppercase;
}

.single-product .summary .feazul-product-accordion__content .feazul-product-section-label:first-child {
    margin-top: 0;
}

.single-product .summary .feazul-product-accordion__content .feazul-product-section-label strong {
    color: inherit;
    font-size: inherit;
    font-weight: 700;
    letter-spacing: .02em;
}

.single-product .summary .feazul-product-accordion__content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .single-product .summary .feazul-product-accordion__content {
        font-size: 13.5px;
    }

    .single-product .summary .feazul-product-accordion__content h2 {
        font-size: 17px;
    }
}

.post-type-archive-product .product-grid-item .price,
.woocommerce-shop .product-grid-item .price {
    color: #252525;
    font-size: 14px;
    font-weight: 500;
}

.post-type-archive-product .product-grid-item .star-rating,
.woocommerce-shop .product-grid-item .star-rating,
.post-type-archive-product .product-grid-item .wd-star-rating,
.woocommerce-shop .product-grid-item .wd-star-rating,
.post-type-archive-product .product-grid-item .woocommerce-review-link,
.woocommerce-shop .product-grid-item .woocommerce-review-link,
.post-type-archive-product .product-grid-item .wd-product-cats,
.woocommerce-shop .product-grid-item .wd-product-cats {
    display: none !important;
}

.post-type-archive-product .product-grid-item .wd-product-header,
.woocommerce-shop .product-grid-item .wd-product-header {
    display: block !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) !important;
}

.post-type-archive-product .product-grid-item .wd-product-header > *,
.woocommerce-shop .product-grid-item .wd-product-header > * {
    width: 100%;
    max-width: 100%;
}

.post-type-archive-product .product-grid-item .wd-buttons,
.woocommerce-shop .product-grid-item .wd-buttons {
    right: 12px;
    top: 12px;
    border-radius: 2px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.post-type-archive-product .product-grid-item .wd-add-btn,
.woocommerce-shop .product-grid-item .wd-add-btn {
    margin-top: 12px;
}

.post-type-archive-product .product-grid-item .wd-add-btn a,
.woocommerce-shop .product-grid-item .wd-add-btn a {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #1d1d1d;
    border-radius: 2px;
    background: transparent;
    color: #1d1d1d;
    font-size: 12px;
}

.post-type-archive-product .product-grid-item .wd-add-btn a:hover,
.woocommerce-shop .product-grid-item .wd-add-btn a:hover {
    background: #1d1d1d;
    color: #fff;
}

@media (max-width: 1024px) {
    .post-type-archive-product .products.wd-products,
    .woocommerce-shop .products.wd-products {
        --wd-prod-gap: 20px;
        row-gap: 36px;
    }
}

@media (max-width: 767px) {
    .post-type-archive-product .site-content,
    .woocommerce-shop .site-content {
        padding-top: 18px;
    }

    .post-type-archive-product .page-title,
    .woocommerce-shop .page-title {
        padding: 28px 0 20px;
    }

    .feazul-collection-heading {
        margin-bottom: 12px;
        padding: 12px 0 24px;
    }

    .feazul-collection-heading h1 {
        font-size: 34px;
    }

    .feazul-category-cover {
        align-items: flex-end;
        width: 100vw;
        min-height: 410px;
        margin: 0 0 24px -50vw;
        background-position: 68% center;
    }

    .feazul-category-cover::before {
        background: linear-gradient(0deg, rgba(239, 248, 252, .96) 0%, rgba(239, 248, 252, .72) 27%, rgba(239, 248, 252, 0) 58%);
    }

    .feazul-category-cover__content {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 28px 24px;
        transform: none;
    }

    .feazul-category-cover__content h1 {
        font-size: 42px;
    }

    .feazul-shop-cover .feazul-category-cover__content {
        top: 50%;
        bottom: auto;
        left: 50%;
        width: calc(100% - 48px);
        padding: 0;
        transform: translate(-50%, -50%);
    }

    .post-type-archive-product .page-title .title,
    .woocommerce-shop .page-title .title,
    .post-type-archive-product .woocommerce-products-header__title,
    .woocommerce-shop .woocommerce-products-header__title {
        font-size: 34px;
    }

    .post-type-archive-product .shop-loop-head,
    .woocommerce-shop .shop-loop-head {
        min-height: 56px;
        margin-bottom: 20px;
    }

    .post-type-archive-product .products.wd-products,
    .woocommerce-shop .products.wd-products {
        --wd-prod-gap: 12px;
        row-gap: 30px;
    }

    .post-type-archive-product .product-grid-item .product-element-top,
    .woocommerce-shop .product-grid-item .product-element-top {
        margin-bottom: 12px;
    }

    .post-type-archive-product .product-grid-item .wd-entities-title,
    .woocommerce-shop .product-grid-item .wd-entities-title {
        font-size: 14px;
    }

    .feazul-product-brand {
        font-size: 10px;
    }
}
