/*
Theme Name: CozyCorner - Child Theme
Theme URI: https://demo.theme-sky.com/cozycorner/
Author: Theme Sky Team
Author URI: https://theme-sky.com/
Description: A Premium and Responsive WordPress theme, designed for E-Commerce websites
Version: 1.1.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: two-columns, left-sidebar, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: cozycorner
*/

:root {
    --verde: #265052;
    --marrom: #DB8F3E;
}

html {
    scroll-behavior: smooth;
    max-width: 1920px;
    margin: 0 auto;
}

.f-verde {
    color: var(--verde);
}

.f-marrom {
    color: var(--marrom);
}

h1.entry-title {
    display: none !important;
}

.lista-marrom ul li::before {
    background-color: var(--marrom) !important;
}

.tag-banner {
    &.esquerda {
        margin-right: auto;
        margin-left: 0;
    }
    border: 1px solid #FFF;
    padding: 4px 16px;
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
    width: max-content;   /* Força a largura a se ajustar exatamente ao texto */
    display: block;
    border-radius: 20px;
    line-height: 100%;
    margin-block-end: 6px;
    margin-left: auto;

    &.marrom {
        color: var(--marrom);
        border-color: var(--marrom);
    }

    &.verde {
        color: var(--verde);
        border-color: var(--verde);
    }
}

#main-content {
    position: relative;
}

h1.product-category-name {
    font-size: 40px;
    line-height: 34px;
    color: #FFF;
    font-weight: 700;
    margin: 0;
}

/*
    post-1023 -> home
    post-10933 -> contato
    post-10925 -> quem somos
*/

#main-content:not(:has(article.post-1023.page, .type-product))::before {
    content: "";
    position: absolute;
    top: 400px;
    left: 0;
    width: 180px;
    height: 480px;
    background: url('https://seniorhouse.com.br/wp-content/uploads/2026/07/bg-destaque-esq-01.webp') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

#main-content:not(:has(article.post-10933.page, article.post-1023.page, article.post-10925.page, .type-product))::after {
    content: "";
    position: absolute;
    bottom: 200px;
    right: 0;
    width: 306px;
    height: 480px;
    background: url('https://seniorhouse.com.br/wp-content/uploads/2026/07/bg-destaque-dir-01.webp') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.breadcrumb-title-wrapper {
    border-top: 1px solid #DB8F3E;
    border-bottom: 1px solid #DB8F3E;
}

.redes-sociais .list-items a {
    background-color: #EDF6F2;
    &:hover {
        background-color: #d3e2db;
    }
}

/* ========================================
 * FIX: Exibir meta-wrapper-2 e meta-wrapper-3 em TODAS as colunas
 * + Botão Comprar (buy-now-button)
 * ======================================== */

/* Mostrar meta-wrapper-2 (add-to-cart + qtd) em todas as colunas */
.woocommerce .products .product .meta-wrapper-2,
.woocommerce .products .product .meta-wrapper-3
{
	display: flex;
}

/* Ajustes para colunas 3, 4, 5 - layout em linha */
.columns-3 .woocommerce .products .product .meta-wrapper-2,
.columns-4 .woocommerce .products .product .meta-wrapper-2,
.columns-5 .woocommerce .products .product .meta-wrapper-2 {
	flex-wrap: wrap;
	align-items: start;
	gap: 16px;
	padding-top: 8px;
    height: 100%;
}

.columns-3 .woocommerce .products .product .meta-wrapper-2 .quantity,
.columns-4 .woocommerce .products .product .meta-wrapper-2 .quantity,
.columns-5 .woocommerce .products .product .meta-wrapper-2 .quantity {
	width: auto;
	max-width: 90px;
    display: none;
}

.columns-3 .woocommerce .products .product .meta-wrapper-2 .quantity .number-button,
.columns-4 .woocommerce .products .product .meta-wrapper-2 .quantity .number-button,
.columns-5 .woocommerce .products .product .meta-wrapper-2 .quantity .number-button {
	width: 100%;
}


/* Ajuste para meta-wrapper-3 em colunas altas */
.columns-3 .woocommerce .products .product .meta-wrapper-3,
.columns-4 .woocommerce .products .product .meta-wrapper-3,
.columns-5 .woocommerce .products .product .meta-wrapper-3 {
	padding-top: 6px;
	width: 100%;
    display: none;
}

.product-wrapper > .meta-wrapper:not(.meta-wrapper-2):not(.meta-wrapper-3) .price {
    display: none;
}

.product-group-button-meta .loop-add-to-cart .button-tooltip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.product-group-button-meta div.loop-add-to-cart a.button {
    display: inline-flex;
    max-width: 265px;
    vertical-align: bottom;
    width: 100%;
}

table.group_table .woocommerce-grouped-product-list-item__label a, .ts-fbt-form .item .product-name, .woocommerce ul.cart_list li .product-name a, .woocommerce ul.product_list_widget li .product-name a, .woocommerce ul.product_list_widget li .ts-wg-meta > a, .woocommerce .products .product .product-name {
    margin-top: 16px;
}


.columns-1 .woocommerce .products .product .meta-wrapper-3 {
    width: 16%;
    display: none;
}
 :is(.columns-1, .columns-1-1, .columns-2) .woocommerce .products .product .meta-wrapper-3 {
    display: none;
}

.woocommerce .products .product-wrapper, .woocommerce .products .product .meta-wrapper-2 { /*.woocommerce .products .product .meta-wrapper-3*/
    display: flex;
    flex-direction: column;
    gap: 14px 0;
    position: relative;
    align-items: flex-start;
    height: 100%;
}

.woocommerce .products .product .meta-wrapper > * {
    margin-top: auto;
    z-index: 2;
}

.product-style-v1.woocommerce .products .product-wrapper .thumbnail-wrapper, .product-style-v1 .woocommerce .products .product-wrapper .thumbnail-wrapper {
    overflow: visible;
}

.ts-product-columns-selector, .product-on-sale-form {
    display: none;
}

.destaque-somos-esq .e-con-inner, .destaque-somos-dir .e-con-inner {
    position: relative;
    z-index: 2;
}

.destaque-somos-esq::before {
    content: "";
    position: absolute;
    top: 30px;
    left: 0;
    width: 228px;
    height: 445px;
    background: url('https://seniorhouse.com.br/wp-content/uploads/2026/07/bg-quem-somos-destaque-01.webp') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

.destaque-somos-dir::after {
    content: "";
    position: absolute;
    bottom: 30px;
    right: 0;
    width: 252px;
    height: 445px;
    background: url('https://seniorhouse.com.br/wp-content/uploads/2026/07/bg-quem-somos-destaque-02.webp') no-repeat center center;
    background-size: cover;
    z-index: 1;
}

@media screen and (max-width: 1660px) {
    #main-content::before, #main-content::after {
        display: none;
    }

    .destaque-somos-esq::before, .destaque-somos-dir::after {
        display: none;
    }
}

@media screen and (min-width: 1201px) and (max-width: 1440px) {
    header .container .header-left {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

}