/*
Theme Name: CoguAzul Vitrine
Theme URI: https://coguazul.com.br
Author: CoguAzul
Description: Tema classico inspirado no modelo visual CoguAzul, com home de vitrine e suporte ao WooCommerce.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: coguazul-vitrine
*/

:root {
    --cz-blue: #0b78c8;
    --cz-blue-dark: #075f9e;
    --cz-deep: #0e453d;
    --cz-ink: #142f2b;
    --cz-muted: #4b5a56;
    --cz-soft: #eef8f4;
    --cz-paper: #fffdf7;
    --cz-card: #ffffff;
    --cz-border: #dbe8e4;
    --cz-footer: #dff2fb;
    --cz-cream: #fbf7ed;
    --cz-peach: #f8cf7c;
    --cz-shadow: 0 18px 42px rgba(20, 47, 43, .08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cz-soft);
    color: var(--cz-ink);
    font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

body.admin-bar .site-header {
    top: 32px;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--cz-blue);
}

button,
input,
textarea,
select {
    font: inherit;
    letter-spacing: 0;
}

.shell {
    width: min(100% - 56px, 1200px);
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 20px;
    top: -80px;
    z-index: 1000;
    background: var(--cz-blue);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
}

.skip-link:focus {
    top: 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(20, 47, 43, .08);
    box-shadow: 0 1px 0 rgba(20, 47, 43, .02);
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--cz-blue);
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
}

.brand-logo,
.footer-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.primary-nav {
    margin-left: auto;
}

.nav-list,
.footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-list a {
    color: #141b1a;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.nav-list a:hover,
.footer-list a:hover {
    color: var(--cz-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.icon-link {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    position: relative;
    color: #101817;
}

.icon-link svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.icon-link:hover {
    color: var(--cz-blue);
}

.cart-badge {
    min-width: 17px;
    height: 17px;
    position: absolute;
    right: 0;
    top: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--cz-blue);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.site-main {
    background: var(--cz-soft);
}

.hero-section {
    min-height: 526px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(239, 249, 244, .72), rgba(255, 253, 247, .92) 22%, rgba(255, 253, 247, .96) 56%, rgba(246, 250, 243, .9)),
        var(--cz-paper);
    border-bottom: 1px solid rgba(20, 47, 43, .05);
}

.hero-section::before {
    content: "";
    position: absolute;
    right: -64px;
    top: 62px;
    width: 220px;
    height: 150px;
    background: rgba(248, 207, 124, .78);
    clip-path: polygon(20% 0, 100% 0, 100% 82%, 58% 100%, 18% 74%, 0 28%);
}

.hero-section::after {
    content: "";
    position: absolute;
    left: -80px;
    top: -90px;
    width: 380px;
    height: 250px;
    background: rgba(214, 237, 232, .75);
    clip-path: polygon(0 0, 100% 0, 76% 70%, 36% 100%, 0 72%);
}

.hero-shell {
    min-height: 526px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 520px;
    align-items: center;
    gap: 42px;
    position: relative;
    z-index: 1;
}

.hero-copy {
    max-width: 620px;
    padding-left: 70px;
}

.eyebrow {
    margin: 0 0 16px;
    color: var(--cz-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 600px;
    margin: 0 0 24px;
    color: var(--cz-deep);
    font-size: 58px;
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: 0;
}

.hero-copy p {
    max-width: 525px;
    margin: 0 0 34px;
    color: #34423f;
    font-size: 17px;
    line-height: 1.78;
}

.primary-button,
.outline-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.primary-button {
    min-width: 142px;
    padding: 0 22px;
    background: linear-gradient(180deg, #0c82d6, var(--cz-blue-dark));
    color: #fff;
    box-shadow: 0 12px 24px rgba(11, 120, 200, .2);
}

.primary-button:hover {
    color: #fff;
    background: linear-gradient(180deg, #0b74bf, #064f85);
}

.hero-visual {
    height: 430px;
    position: relative;
}

.hero-visual img {
    width: 560px;
    max-width: none;
    position: absolute;
    right: -12px;
    bottom: -18px;
    opacity: .72;
    filter: grayscale(.15) sepia(.08);
}

.hero-wash {
    position: absolute;
    right: 34px;
    top: 42px;
    width: 385px;
    height: 280px;
    background: rgba(216, 232, 220, .58);
    clip-path: polygon(17% 14%, 64% 0, 100% 31%, 88% 80%, 42% 100%, 0 68%);
}

.hero-leaf-left {
    width: 300px;
    max-width: none;
    position: absolute;
    left: -120px;
    bottom: -32px;
    z-index: 1;
    opacity: .13;
}

.featured-section {
    position: relative;
    padding: 62px 0 78px;
    background:
        linear-gradient(180deg, rgba(238, 248, 244, .96), rgba(240, 249, 245, .96)),
        var(--cz-soft);
}

.section-heading {
    text-align: center;
    margin: 0 0 26px;
}

.section-heading .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
}

.section-heading h2 {
    margin: 0;
    color: var(--cz-deep);
    font-size: 35px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.section-heading::after {
    content: "";
    width: 36px;
    height: 2px;
    display: block;
    margin: 12px auto 0;
    background: var(--cz-blue);
}

.products-grid {
    width: min(780px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 40px;
}

.product-card {
    overflow: hidden;
    padding: 8px 8px 21px;
    background: var(--cz-card);
    border: 1px solid var(--cz-border);
    border-radius: 8px;
    box-shadow: var(--cz-shadow);
    text-align: center;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(20, 47, 43, .12);
}

.product-image {
    aspect-ratio: 16 / 11;
    display: block;
    overflow: hidden;
    border-radius: 4px;
    background: #f6f8f5;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.025);
}

.product-image--contain {
    background: #fff;
}

.product-image--contain img {
    object-fit: contain;
    padding: 28px;
}

.product-card-body {
    padding: 19px 10px 0;
}

.product-card h3 {
    margin: 0 0 10px;
    color: var(--cz-deep);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.product-card .price,
.woocommerce ul.products li.product .price {
    margin: 0 0 15px;
    color: #2a3633;
    font-size: 14px;
    line-height: 1.3;
}

.outline-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
    min-width: 116px;
    min-height: 38px;
    padding: 0 17px;
    border: 1px solid var(--cz-blue);
    background: #fff;
    color: var(--cz-blue);
}

.outline-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
    background: var(--cz-blue);
    color: #fff;
}

.site-footer {
    position: relative;
    overflow: hidden;
    padding: 44px 0 24px;
    background:
        linear-gradient(180deg, rgba(223, 242, 251, .96), rgba(227, 245, 250, .96)),
        var(--cz-footer);
    border-top: 1px solid rgba(20, 47, 43, .06);
}

.footer-botanical {
    width: 220px;
    max-width: none;
    position: absolute;
    left: -105px;
    bottom: -18px;
    opacity: .12;
}

.footer-shape {
    position: absolute;
    right: -66px;
    bottom: -30px;
    width: 210px;
    height: 184px;
    background: rgba(92, 176, 229, .5);
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 18% 100%, 0 65%, 24% 34%);
}

.footer-shell {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(140px, .8fr) minmax(180px, .9fr);
    gap: 48px;
    padding-bottom: 24px;
}

.footer-brand {
    margin-bottom: 16px;
    font-size: 20px;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-about p {
    max-width: 340px;
    margin: 0;
    color: #354743;
    font-size: 14px;
    line-height: 1.62;
}

.footer-column h2 {
    margin: 8px 0 14px;
    color: #192824;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.footer-list {
    display: grid;
    gap: 8px;
}

.footer-list a {
    color: #263936;
    font-size: 14px;
    line-height: 1.35;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(20, 47, 43, .14);
}

.footer-bottom p {
    margin: 0;
    color: #263936;
    font-size: 13px;
}

.content-area {
    min-height: 56vh;
    padding: 72px 0;
    background: var(--cz-soft);
}

.content-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 42px;
    background: #fff;
    border: 1px solid var(--cz-border);
    border-radius: 8px;
    box-shadow: var(--cz-shadow);
}

.content-card h1 {
    margin: 0 0 22px;
    color: var(--cz-deep);
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: 0;
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content a {
    color: var(--cz-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.woocommerce-area {
    background: var(--cz-soft);
}

.woocommerce .woocommerce-breadcrumb {
    color: var(--cz-muted);
    font-size: 13px;
}

.woocommerce .page-title,
.woocommerce div.product .product_title {
    color: var(--cz-deep);
    font-size: 38px;
    line-height: 1.2;
    letter-spacing: 0;
}

.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 8px 8px 20px;
    background: #fff;
    border: 1px solid var(--cz-border);
    border-radius: 8px;
    box-shadow: var(--cz-shadow);
    text-align: center;
}

.woocommerce ul.products li.product a img {
    aspect-ratio: 16 / 11;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    color: var(--cz-deep);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
}

.woocommerce span.onsale {
    min-width: 46px;
    min-height: 46px;
    background: var(--cz-blue);
    color: #fff;
}

@media (max-width: 980px) {
    body.admin-bar .site-header {
        top: 0;
    }

    .shell {
        width: min(100% - 32px, 920px);
    }

    .header-inner {
        gap: 18px;
    }

    .nav-list {
        gap: 18px;
    }

    .hero-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 72px 0 48px;
    }

    .hero-copy {
        padding-left: 0;
    }

    .hero-copy h1 {
        font-size: 44px;
    }

    .hero-visual {
        display: none;
    }

    .products-grid {
        gap: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 28px;
    }

    .woocommerce ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        min-height: 72px;
    }

    .brand {
        font-size: 20px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .primary-nav {
        display: none;
    }

    .hero-section {
        min-height: auto;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .products-grid,
    .woocommerce ul.products {
        grid-template-columns: 1fr;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .content-card {
        padding: 28px;
    }

    .content-card h1 {
        font-size: 32px;
    }
}
