/* =========================================================
   ARITRIWOOD - PRODUCTO INDIVIDUAL
   ========================================================= */

body.aw-product-live {
    --aw-bg: #f8f5ee;
    --aw-paper: #ffffff;
    --aw-green: #39452c;
    --aw-green-dark: #29331f;
    --aw-navy: #15263a;
    --aw-text: #24231f;
    --aw-muted: #716d64;
    --aw-border: #ded9cf;
    --aw-gold: #c89b62;

    background: var(--aw-bg) !important;
}


/* =========================================================
   HEADER / FOOTER ANTIGUOS
   ========================================================= */

body.aw-product-live #masthead,
body.aw-product-live .site-header,
body.aw-product-live .site-top-header-wrap,
body.aw-product-live .kadence-top-header,
body.aw-product-live #colophon,
body.aw-product-live .site-footer {
    display: none !important;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

body.aw-product-live .content-container,
body.aw-product-live #primary,
body.aw-product-live .content-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}


body.aw-product-live .site-main {
    width: min(1180px, calc(100% - 44px)) !important;

    margin: 0 auto !important;

    padding: 38px 0 65px !important;
}


/* =========================================================
   BREADCRUMBS
   ========================================================= */

body.aw-product-live .woocommerce-breadcrumb {
    margin: 0 0 22px !important;

    color: #8a857c !important;

    font-size: 11px !important;
}


body.aw-product-live .woocommerce-breadcrumb a {
    color: var(--aw-green) !important;
    text-decoration: none !important;
}


body.aw-product-live .woocommerce-breadcrumb a:hover {
    text-decoration: underline !important;
}


/* =========================================================
   GALERÍA
   ========================================================= */

body.aw-product-live
.woocommerce div.product
.woocommerce-product-gallery {
    width: 52% !important;

    padding: 20px !important;

    box-sizing: border-box;

    border: 1px solid var(--aw-border);
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 6px 22px rgba(30,30,20,.04);
}


body.aw-product-live
.woocommerce-product-gallery__wrapper {
    margin: 0 !important;
}


body.aw-product-live
.woocommerce-product-gallery__image img {
    width: 100% !important;

    border-radius: 7px;

    background: #f1efeb;
}


/* thumbnails */

body.aw-product-live
.flex-control-thumbs {
    display: flex !important;

    gap: 8px;

    margin: 12px 0 0 !important;
    padding: 0 !important;
}


body.aw-product-live
.flex-control-thumbs li {
    width: 64px !important;
    margin: 0 !important;
}


body.aw-product-live
.flex-control-thumbs img {
    width: 64px !important;
    height: 64px !important;

    object-fit: cover;

    border: 1px solid var(--aw-border);
    border-radius: 5px;

    opacity: .65;
}


body.aw-product-live
.flex-control-thumbs img.flex-active {
    border-color: var(--aw-green);

    opacity: 1;
}


/* =========================================================
   OFERTA
   ========================================================= */

body.aw-product-live
.woocommerce span.onsale {
    top: 14px !important;
    left: 14px !important;

    min-width: 0 !important;
    min-height: 0 !important;

    padding: 7px 11px !important;

    border-radius: 4px !important;

    background: var(--aw-green) !important;

    color: #ffffff !important;

    font-size: 10px !important;
    font-weight: 700 !important;
    line-height: 1 !important;

    text-transform: uppercase;
}


/* =========================================================
   RESUMEN PRODUCTO
   ========================================================= */

body.aw-product-live
.woocommerce div.product
.summary.entry-summary {
    width: 44% !important;

    padding: 31px 32px !important;

    box-sizing: border-box;

    border: 1px solid var(--aw-border);
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 6px 22px rgba(30,30,20,.04);
}


/* título */

body.aw-product-live
.product_title {
    margin: 0 0 13px !important;

    color: var(--aw-navy) !important;

    font-size: clamp(27px, 3vw, 38px) !important;
    font-weight: 800 !important;

    line-height: 1.08 !important;
}


/* rating */

body.aw-product-live
.woocommerce-product-rating {
    margin-bottom: 18px !important;
}


body.aw-product-live
.star-rating {
    color: var(--aw-gold) !important;
}


body.aw-product-live
.woocommerce-review-link {
    color: var(--aw-green) !important;

    font-size: 11px;

    text-decoration: none;
}


/* =========================================================
   PRECIO
   ========================================================= */

body.aw-product-live
.summary .price {
    margin: 0 0 20px !important;

    color: var(--aw-green-dark) !important;

    font-size: 24px !important;
    font-weight: 800 !important;
}


body.aw-product-live
.summary .price del {
    margin-right: 7px;

    color: #a29d93 !important;

    font-size: 16px !important;
    font-weight: 400;
}


body.aw-product-live
.summary .price ins {
    color: var(--aw-green-dark) !important;

    text-decoration: none !important;
}


/* =========================================================
   DESCRIPCIÓN CORTA
   ========================================================= */

body.aw-product-live
.woocommerce-product-details__short-description {
    margin-bottom: 22px;

    color: #555148;

    font-size: 13px;
    line-height: 1.7;
}


body.aw-product-live
.woocommerce-product-details__short-description ul {
    padding-left: 19px;
}


body.aw-product-live
.woocommerce-product-details__short-description li {
    margin-bottom: 7px;
}


/* =========================================================
   STOCK
   ========================================================= */

body.aw-product-live
.stock {
    margin: 0 0 12px !important;

    color: var(--aw-green) !important;

    font-size: 12px !important;
    font-weight: 600;
}


/* =========================================================
   CANTIDAD + AÑADIR
   ========================================================= */

body.aw-product-live
form.cart {
    display: flex !important;

    align-items: center;

    gap: 10px;

    margin: 18px 0 22px !important;
}


body.aw-product-live
.quantity {
    margin: 0 !important;
}


body.aw-product-live
.quantity input.qty {
    width: 64px !important;
    height: 44px !important;

    border: 1px solid var(--aw-border) !important;
    border-radius: 5px !important;

    background: #ffffff !important;

    color: var(--aw-text);

    font-size: 13px;

    box-shadow: none !important;
}


/* botón */

body.aw-product-live
.single_add_to_cart_button {
    min-height: 44px !important;

    padding: 0 22px !important;

    border: 1px solid var(--aw-green) !important;
    border-radius: 5px !important;

    background: var(--aw-green) !important;

    color: #ffffff !important;

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

    text-transform: uppercase;

    box-shadow: none !important;

    transition:
        background .2s ease,
        transform .2s ease;
}


body.aw-product-live
.single_add_to_cart_button:hover {
    background: var(--aw-green-dark) !important;

    border-color: var(--aw-green-dark) !important;

    transform: translateY(-1px);
}


/* =========================================================
   META
   ========================================================= */

body.aw-product-live
.product_meta {
    padding-top: 15px;

    border-top: 1px solid #ece8df;

    color: #8b867d;

    font-size: 10px !important;
}


body.aw-product-live
.product_meta a {
    color: var(--aw-green) !important;
}


/* =========================================================
   TABS
   ========================================================= */

body.aw-product-live
.woocommerce-tabs {
    clear: both !important;

    padding: 30px !important;

    margin: 45px 0 0 !important;

    border: 1px solid var(--aw-border);
    border-radius: 10px;

    background: #ffffff;

    box-shadow:
        0 6px 22px rgba(30,30,20,.035);
}


body.aw-product-live
.woocommerce-tabs ul.tabs {
    display: flex !important;

    gap: 7px;

    margin: 0 0 27px !important;
    padding: 0 0 15px !important;

    border-bottom: 1px solid var(--aw-border);

    list-style: none !important;
}


body.aw-product-live
.woocommerce-tabs ul.tabs::before {
    display: none !important;
}


body.aw-product-live
.woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 5px !important;

    background: #f3f0e8 !important;
}


body.aw-product-live
.woocommerce-tabs ul.tabs li::before,
body.aw-product-live
.woocommerce-tabs ul.tabs li::after {
    display: none !important;
}


body.aw-product-live
.woocommerce-tabs ul.tabs li a {
    padding: 10px 15px !important;

    color: #565249 !important;

    font-size: 11px !important;
    font-weight: 600 !important;

    text-decoration: none !important;
}


body.aw-product-live
.woocommerce-tabs ul.tabs li.active {
    background: var(--aw-green) !important;
}


body.aw-product-live
.woocommerce-tabs ul.tabs li.active a {
    color: #ffffff !important;
}


/* contenido */

body.aw-product-live
.woocommerce-tabs .panel {
    margin: 0 !important;
    padding: 0 !important;

    color: #514e46;

    font-size: 13px;
    line-height: 1.75;
}


body.aw-product-live
.woocommerce-tabs .panel h2 {
    color: var(--aw-navy) !important;

    font-size: 23px !important;
}


/* =========================================================
   PRODUCTOS RELACIONADOS
   ========================================================= */

body.aw-product-live
.related.products {
    clear: both;

    margin-top: 50px !important;
}


body.aw-product-live
.related.products > h2 {
    margin-bottom: 24px !important;

    color: var(--aw-navy) !important;

    font-size: 26px !important;
    font-weight: 800 !important;
}


/* Grid */

body.aw-product-live
.related.products ul.products {
    display: grid !important;

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

    gap: 20px !important;

    margin: 0 !important;
}


body.aw-product-live
.related.products
li.product {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;

    margin: 0 !important;
    padding: 0 0 15px !important;

    overflow: hidden;

    border: 1px solid var(--aw-border);
    border-radius: 9px;

    background: #ffffff;

    box-shadow:
        0 5px 18px rgba(30,30,20,.04);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


body.aw-product-live
.related.products
li.product:hover {
    transform: translateY(-3px);

    box-shadow:
        0 11px 25px rgba(30,30,20,.08);
}


/* imágenes REALES */

body.aw-product-live
.related.products
li.product
img.attachment-woocommerce_thumbnail {
    width: 100% !important;
    height: auto !important;

    aspect-ratio: 1 / 1;

    margin: 0 !important;

    object-fit: contain !important;

    background: #f1efeb;
}


/* Evitar emojis gigantes */

body.aw-product-live
.related.products
li.product img.emoji,
body.aw-product-live
.related.products
li.product img.wp-smiley {
    display: inline-block !important;

    width: 1em !important;
    height: 1em !important;

    max-width: 1em !important;

    margin: 0 .08em !important;

    background: transparent !important;

    vertical-align: -.1em;
}


/* nombre */

body.aw-product-live
.related.products
.woocommerce-loop-product__title {
    margin: 0 !important;

    padding: 14px 14px 5px !important;

    color: var(--aw-text) !important;

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

    line-height: 1.4 !important;
}


/* precio */

body.aw-product-live
.related.products .price {
    margin: 0 !important;

    padding: 0 14px 10px !important;

    color: var(--aw-green-dark) !important;

    font-size: 12px !important;
    font-weight: 700 !important;
}


body.aw-product-live
.related.products .price del {
    color: #9d988f !important;

    font-size: 10px;
}


/* botón personalizado */

body.aw-product-live
.related.products
.aw-related-product-button {
    display: flex !important;

    width: calc(100% - 28px);

    min-height: 37px;

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

    gap: 9px;

    margin:
        auto
        14px
        0 !important;

    padding: 8px !important;

    border-radius: 4px;

    background: var(--aw-green) !important;

    color: #ffffff !important;

    font-size: 9px !important;
    font-weight: 700;

    text-decoration: none !important;

    text-transform: uppercase;
}


/* Ocultar botón Woo estándar si aparece */

body.aw-product-live
.related.products
li.product > .button {
    display: none !important;
}


/* =========================================================
   FOOTER NUEVO
   ========================================================= */

body.aw-product-live .aw-footer {
    width: 100%;

    background: #303826 !important;

    color: #f3f0e8;
}


body.aw-product-live .aw-footer-main {
    padding: 48px 0 42px;
}


body.aw-product-live .aw-footer-container {
    width: min(1220px, calc(100% - 48px));

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        1.45fr .8fr .9fr .9fr 1.25fr;

    gap: 42px;
}


body.aw-product-live .aw-footer-logo {
    max-width: 92px !important;
    max-height: 82px !important;

    margin-bottom: 18px !important;

    filter: brightness(0) invert(1);
}


body.aw-product-live .aw-footer h3 {
    margin: 2px 0 18px;

    color: #ffffff;

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

    text-transform: uppercase;
}


body.aw-product-live .aw-footer p {
    color: rgba(255,255,255,.70);

    font-size: 12px;
    line-height: 1.65;
}


body.aw-product-live .aw-footer ul {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


body.aw-product-live .aw-footer li {
    margin: 0 0 9px !important;
}


body.aw-product-live .aw-footer a {
    color: rgba(255,255,255,.72) !important;

    font-size: 12px;

    text-decoration: none !important;
}


body.aw-product-live .aw-footer a:hover {
    color: #ffffff !important;
}


/* redes */

body.aw-product-live .aw-footer-social {
    display: flex;

    gap: 10px;

    margin-top: 18px;
}


body.aw-product-live .aw-footer-social a,
body.aw-product-live .aw-footer-social-disabled {
    display: flex !important;

    width: 38px !important;
    height: 38px !important;

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

    border:
        1px solid rgba(255,255,255,.28);

    border-radius: 50%;
}


body.aw-product-live .aw-footer-social img {
    width: 17px !important;
    height: 17px !important;

    filter: brightness(0) invert(1);
}


/* pie */

body.aw-product-live .aw-footer-bottom {
    border-top:
        1px solid rgba(255,255,255,.12);

    background: #293020;
}


body.aw-product-live .aw-footer-bottom-inner {
    width: min(1220px, calc(100% - 48px));

    min-height: 52px;

    margin: 0 auto;

    display: flex;

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

    color: rgba(255,255,255,.56);

    font-size: 10px;
}


/* =========================================================
   BUSCADOR FOOTER
   ========================================================= */

body.aw-product-live
.aw-footer .dgwt-wcas-search-wrapp {
    width: 100% !important;
    max-width: 265px !important;

    margin: 14px 0 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;

    box-shadow: none !important;
}


body.aw-product-live
.aw-footer .dgwt-wcas-search-form,
body.aw-product-live
.aw-footer .dgwt-wcas-sf-wrapp {
    position: relative !important;

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

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: transparent !important;
}


body.aw-product-live
.aw-footer .dgwt-wcas-search-input {
    width: 100% !important;
    height: 46px !important;

    padding:
        0
        48px
        0
        16px !important;

    border:
        1px solid rgba(255,255,255,.28) !important;

    border-radius: 6px !important;

    background:
        rgba(255,255,255,.06) !important;

    color: #ffffff !important;

    box-shadow: none !important;
}


body.aw-product-live
.aw-footer .dgwt-wcas-search-input::placeholder {
    color:
        rgba(255,255,255,.58) !important;
}


body.aw-product-live
.aw-footer .dgwt-wcas-search-submit {
    position: absolute !important;

    top: 50% !important;
    right: 10px !important;
    left: auto !important;

    width: 30px !important;
    height: 30px !important;

    display: flex !important;

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

    padding: 0 !important;

    transform: translateY(-50%) !important;

    border: 0 !important;

    background: transparent !important;
}


body.aw-product-live
.aw-footer .dgwt-wcas-search-submit svg {
    width: 14px !important;
    height: 14px !important;

    position: static !important;

    fill: none !important;
    stroke: #ffffff !important;

    stroke-width: 1.7 !important;

    transform: none !important;
}


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

@media (max-width: 900px) {

    body.aw-product-live
    .woocommerce div.product
    .woocommerce-product-gallery,

    body.aw-product-live
    .woocommerce div.product
    .summary.entry-summary {
        width: 100% !important;

        float: none !important;
    }


    body.aw-product-live
    .summary.entry-summary {
        margin-top: 20px;
    }


    body.aw-product-live
    .related.products ul.products {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }


    body.aw-product-live
    .aw-footer-container {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 34px;
    }


    body.aw-product-live
    .aw-footer-brand {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   MÓVIL
   ========================================================= */

@media (max-width: 600px) {

    body.aw-product-live .site-main {
        width: calc(100% - 26px) !important;

        padding: 24px 0 42px !important;
    }


    body.aw-product-live
    .woocommerce div.product
    .woocommerce-product-gallery {
        padding: 10px !important;
    }


    body.aw-product-live
    .woocommerce div.product
    .summary.entry-summary {
        padding: 23px 19px !important;
    }


    body.aw-product-live
    .product_title {
        font-size: 26px !important;
    }


    body.aw-product-live
    form.cart {
        align-items: stretch;

        flex-wrap: wrap;
    }


    body.aw-product-live
    .single_add_to_cart_button {
        flex: 1 1 auto;
    }


    body.aw-product-live
    .woocommerce-tabs {
        padding: 20px 17px !important;

        margin-top: 28px !important;
    }


    body.aw-product-live
    .woocommerce-tabs ul.tabs {
        overflow-x: auto;

        white-space: nowrap;
    }


    body.aw-product-live
    .related.products ul.products {
        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;

        gap: 11px !important;
    }


    body.aw-product-live
    .related.products
    .woocommerce-loop-product__title {
        padding:
            10px
            9px
            4px !important;

        font-size: 11px !important;
    }


    body.aw-product-live
    .related.products .price {
        padding:
            0
            9px
            8px !important;

        font-size: 10px !important;
    }


    body.aw-product-live
    .related.products
    .aw-related-product-button {
        width: calc(100% - 18px);

        margin:
            auto
            9px
            0 !important;

        font-size: 8px !important;
    }


    body.aw-product-live
    .aw-footer-container {
        width: calc(100% - 36px);

        grid-template-columns: 1fr;

        gap: 0;
    }


    body.aw-product-live
    .aw-footer-brand,
    body.aw-product-live
    .aw-footer-column {
        padding: 23px 0;

        border-bottom:
            1px solid rgba(255,255,255,.12);
    }


    body.aw-product-live
    .aw-footer-bottom-inner {
        width: calc(100% - 36px);

        min-height: 68px;

        flex-direction: column;

        justify-content: center;

        gap: 5px;
    }

}
