/*
Theme Name: Cavacas de Pinhel
Theme URI: https://cavacasdepinhel.pt/
Author: Cavacas de Pinhel
Description: Tema artesanal e responsivo para a loja Cavacas de Pinhel, com integração completa com WooCommerce.
Version: 1.1.3
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: cavacas-pinhel
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

@import url('https://fonts.googleapis.com/css2?family=Aboreto&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root{--wine:#6f1d27;--wine-dark:#3d0d14;--cream:#f6f0e5;--paper:#fffdf8;--gold:#c49a52;--ink:#2f2522;--muted:#776b65;--line:#e5dace;--radius:4px;--shadow:0 20px 55px rgba(61,13,20,.12)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif;font-size:16px;line-height:1.65}img{max-width:100%;height:auto}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}.container{width:min(1180px,calc(100% - 40px));margin-inline:auto}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.announcement{padding:8px 20px;background:var(--wine-dark);color:#fff;text-align:center;font-size:12px;letter-spacing:.12em;text-transform:uppercase}.site-header{position:sticky;top:0;z-index:100;background:rgba(255,253,248,.96);border-bottom:1px solid rgba(111,29,39,.12);backdrop-filter:blur(12px)}.header-inner{height:92px;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px}.site-logo img,.custom-logo{display:block;width:auto;max-height:72px}.main-nav ul{display:flex;align-items:center;gap:30px;margin:0;padding:0;list-style:none}.main-nav a{font-size:13px;font-weight:600;letter-spacing:.08em;text-transform:uppercase}.main-nav a:hover,.current-menu-item>a{color:var(--wine)}.header-actions{display:flex;justify-content:flex-end;align-items:center;gap:12px}.icon-link{display:inline-grid;place-items:center;width:42px;height:42px;border:1px solid var(--line);border-radius:50%;transition:.2s}.icon-link:hover{color:#fff;background:var(--wine);border-color:var(--wine)}.cart-link{position:relative}.cart-count{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:20px;background:var(--gold);color:#fff;font-size:10px;line-height:18px;text-align:center}.menu-toggle{display:none;border:0;background:none;color:var(--wine);padding:8px}
.hero{position:relative;min-height:720px;display:flex;align-items:center;isolation:isolate;overflow:hidden;background:var(--wine-dark) url('assets/images/hero.jpg') center 48%/cover no-repeat;color:#fff}.hero:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(43,7,13,.88) 0%,rgba(61,13,20,.63) 42%,rgba(61,13,20,.09) 72%)}.hero-content{max-width:650px;padding-block:100px}.eyebrow{display:flex;align-items:center;gap:12px;margin:0 0 18px;color:var(--gold);font-size:12px;font-weight:700;letter-spacing:.22em;text-transform:uppercase}.eyebrow:before{content:"";width:42px;height:1px;background:currentColor}.hero h1{margin:0 0 24px;font:400 clamp(52px,7vw,98px)/.96 'Aboreto',serif;letter-spacing:-.04em}.hero h1 em{display:block;font:600 italic .65em/1.1 'Playfair Display',serif;color:#f0d7a9}.hero p{max-width:560px;margin:0 0 34px;font-size:18px;color:#f3eae5}.btn,.button,.wp-element-button,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button{display:inline-flex!important;align-items:center;justify-content:center;min-height:50px;padding:12px 26px!important;border:1px solid var(--wine)!important;border-radius:var(--radius)!important;background:var(--wine)!important;color:#fff!important;font-size:12px!important;font-weight:700!important;letter-spacing:.1em;text-transform:uppercase;transition:.2s}.btn:hover,.button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--wine-dark)!important;border-color:var(--wine-dark)!important}.btn-light{background:#fff!important;border-color:#fff!important;color:var(--wine)!important}.hero-notes{position:absolute;right:max(20px,calc((100% - 1180px)/2));bottom:38px;display:flex;gap:28px;color:#fff;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.hero-notes span{display:flex;align-items:center;gap:8px}.hero-notes span:before{content:'✦';color:var(--gold)}
.section{padding:100px 0}.section-cream{background:var(--cream)}.section-wine{background:var(--wine);color:#fff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:45px}.section-heading h2,.page-title{margin:0;font:400 clamp(38px,5vw,62px)/1.05 'Aboreto',serif;color:var(--wine)}.section-wine .section-heading h2{color:#fff}.section-heading p{max-width:530px;margin:0;color:var(--muted)}.section-wine .section-heading p{color:#ead9d6}.heritage-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:70px;align-items:center}.heritage-image{position:relative}.heritage-image img{display:block;width:100%;aspect-ratio:4/4.5;object-fit:cover;box-shadow:var(--shadow)}.heritage-image:after{content:'Receita tradicional';position:absolute;right:-25px;bottom:30px;padding:18px 24px;background:var(--wine);color:#fff;font:italic 600 22px 'Playfair Display',serif}.heritage-copy h2{margin:0 0 25px;font:400 clamp(38px,5vw,66px)/1.08 'Aboreto',serif;color:var(--wine)}.heritage-copy p{color:var(--muted)}.signature{margin-top:24px;font:italic 600 26px 'Playfair Display',serif;color:var(--wine)}
.products-grid,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;margin:0!important;padding:0!important}.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}.woocommerce ul.products li.product,.product-card{float:none!important;width:auto!important;margin:0!important;position:relative;background:#fff}.woocommerce ul.products li.product a img,.product-card img{width:100%;aspect-ratio:4/5;object-fit:cover;margin:0 0 18px!important;background:var(--cream);transition:transform .45s}.woocommerce ul.products li.product:hover a img,.product-card:hover img{transform:scale(1.02)}.woocommerce ul.products li.product .woocommerce-loop-product__title,.product-card h3{padding:0!important;margin:0 0 6px!important;font:600 20px/1.3 'Playfair Display',serif!important;color:var(--ink)}.woocommerce ul.products li.product .price,.product-price{color:var(--wine)!important;font-weight:700!important}.woocommerce span.onsale{min-width:auto;min-height:auto;line-height:1;margin:14px!important;padding:8px 10px!important;border-radius:0;background:var(--wine);font-size:10px;letter-spacing:.08em;text-transform:uppercase}.woocommerce ul.products li.product .button{width:100%;margin-top:14px!important}
.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.17)}.trust-item{padding:38px 28px;background:var(--wine);text-align:center}.trust-icon{display:block;margin-bottom:12px;color:var(--gold);font-size:28px}.trust-item h3{margin:0 0 6px;font:600 19px 'Playfair Display',serif}.trust-item p{margin:0;color:#e4ceca;font-size:13px}.newsletter{display:grid;grid-template-columns:1fr auto;align-items:center;gap:50px}.newsletter h2{margin:0 0 8px;font:400 clamp(34px,4vw,54px) 'Aboreto',serif;color:var(--wine)}.newsletter p{margin:0;color:var(--muted)}.newsletter-form{display:flex;min-width:440px}.newsletter-form input{flex:1;min-width:0;border:1px solid var(--line);border-right:0;padding:14px;background:#fff}.newsletter-form button{border-radius:0;background:var(--wine);color:#fff;border:0;padding:0 24px;font-weight:700}
.page-hero{padding:80px 0;background:var(--cream);text-align:center}.breadcrumbs{margin-top:14px;color:var(--muted);font-size:13px}.content-area{padding:70px 0;min-height:45vh}.content-area>:first-child{margin-top:0}.entry-content{max-width:900px}.entry-content h2,.entry-content h3{font-family:'Playfair Display',serif;color:var(--wine)}
.woocommerce .woocommerce-breadcrumb{margin:0 0 26px;color:var(--muted)}.woocommerce div.product{display:grid;grid-template-columns:1fr 1fr;gap:60px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none;width:auto;margin:0}.woocommerce div.product .product_title{font:400 clamp(36px,4vw,58px)/1.1 'Aboreto',serif;color:var(--wine)}.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--wine);font-size:23px}.woocommerce div.product form.cart{display:flex;gap:10px}.woocommerce .quantity .qty{height:50px;border:1px solid var(--line)}.woocommerce-tabs{grid-column:1/-1}.woocommerce table.shop_table{border-color:var(--line);border-radius:0}.woocommerce-info,.woocommerce-message{border-top-color:var(--wine);background:var(--cream)}.woocommerce-info:before,.woocommerce-message:before{color:var(--wine)}.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.select2-container--default .select2-selection--single{padding:12px;border:1px solid var(--line);border-radius:0;background:#fff}.woocommerce-checkout #payment{background:var(--cream)}
.site-footer{background:var(--wine-dark);color:#e8dcd8}.footer-main{display:grid;grid-template-columns:1.3fr .8fr .8fr 1fr;gap:50px;padding:75px 0}.footer-brand img{width:190px;max-height:140px;object-fit:contain;object-position:left center;opacity:.96}.footer-brand p{max-width:330px;color:#cdbab6}.footer-title{margin:0 0 18px;color:#fff;font-size:12px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}.footer-menu{margin:0;padding:0;list-style:none}.footer-menu li{margin:8px 0}.footer-menu a:hover{color:var(--gold)}.footer-contact p{margin:8px 0}.footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid rgba(255,255,255,.12);color:#bda9a5;font-size:12px}.socials{display:flex;gap:15px}.socials a:hover{color:var(--gold)}
@media(max-width:980px){.header-inner{grid-template-columns:auto 1fr auto}.menu-toggle{display:block}.main-nav{position:absolute;left:0;right:0;top:100%;display:none;padding:20px;background:var(--paper);border-top:1px solid var(--line)}.main-nav.is-open{display:block}.main-nav ul{align-items:stretch;flex-direction:column;gap:0}.main-nav a{display:block;padding:12px}.site-logo{justify-self:center}.products-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.heritage-grid{gap:35px}.trust-grid{grid-template-columns:repeat(2,1fr)}.newsletter{grid-template-columns:1fr}.newsletter-form{min-width:0}.footer-main{grid-template-columns:1fr 1fr}.woocommerce div.product{grid-template-columns:1fr}.header-actions .account-link{display:none}}
@media(max-width:620px){.container{width:min(100% - 28px,1180px)}.announcement{font-size:10px}.header-inner{height:76px}.site-logo img,.custom-logo{max-height:60px}.hero{min-height:650px;background-position:60% center}.hero:before{background:rgba(45,7,13,.68)}.hero h1{font-size:48px}.hero-notes{display:none}.section{padding:70px 0}.section-heading{align-items:start;flex-direction:column}.heritage-grid{grid-template-columns:1fr}.heritage-image:after{right:-8px}.trust-grid{grid-template-columns:1fr}.footer-main{grid-template-columns:1fr;padding:55px 0}.footer-bottom{flex-direction:column}.newsletter-form{flex-direction:column}.newsletter-form input{border-right:1px solid var(--line);min-height:52px}.newsletter-form button{min-height:52px}.woocommerce div.product form.cart{flex-wrap:wrap}}
