/*
Theme Name: Balaio de Gato Theme
Theme URI: https://balaiodegato.com.br/
Author: MMM / Balaio de Gato
Description: Tema oficial do e-commerce Balaio de Gato, preparado para WooCommerce e integração com Balaio Core.
Version: 0.1.1
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: balaiodegato
*/

:root {
  --bdg-black: #000000;
  --bdg-white: #ffffff;
  --bdg-gray: #808080;
  --bdg-green-dark: #006633;
  --bdg-green: #009933;
  --bdg-cyan: #00ffff;
  --bdg-pink: #ff9999;
  --bdg-wine: #9a0019;
  --bdg-gold: #ba9400;
  --bdg-yellow: #ffcc00;
  --bdg-bg: #f7f7f5;
  --bdg-text: #171717;
  --bdg-muted: #666666;
  --bdg-border: #e6e4df;
  --bdg-radius: 14px;
  --bdg-shadow: 0 8px 28px rgba(0,0,0,.08);
  --bdg-max: 1440px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bdg-white);color:var(--bdg-text);font-family:Arial,Helvetica,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto}
.bdg-container{width:min(calc(100% - 32px),var(--bdg-max));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}

.bdg-topbar{background:#171717;color:#fff;font-size:13px}
.bdg-topbar .bdg-container{display:flex;justify-content:space-between;align-items:center;min-height:34px;gap:18px}
.bdg-topbar__benefits{display:flex;gap:28px;flex-wrap:wrap}
.bdg-topbar__benefits span{opacity:.92}

.bdg-header{background:#fff;border-bottom:1px solid var(--bdg-border);position:relative;z-index:20}
.bdg-header-main{display:grid;grid-template-columns:250px minmax(280px,1fr) auto;align-items:center;gap:28px;padding:16px 0}
.bdg-brand img{display:block;max-height:76px;width:auto;object-fit:contain}
.bdg-brand .custom-logo{max-height:76px;width:auto}
.bdg-search form,.woocommerce-product-search{display:flex;width:100%;border:1px solid #d9d6ce;border-radius:10px;overflow:hidden;background:#fff}
.bdg-search input,.woocommerce-product-search .search-field{width:100%;border:0;padding:14px 16px;font-size:16px;outline:none;background:#fff}
.bdg-search button,.woocommerce-product-search button{border:0;background:var(--bdg-wine);color:#fff;padding:0 22px;font-size:16px;font-weight:700;cursor:pointer}
.bdg-header-actions{display:flex;align-items:center;gap:18px;font-size:14px}
.bdg-header-actions a{display:flex;align-items:center;gap:8px;white-space:nowrap}
.bdg-header-actions .bdg-icon{font-size:24px;line-height:1}
.bdg-cart-count{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 5px;border-radius:999px;background:var(--bdg-wine);color:#fff;font-size:11px;font-weight:700}

.bdg-nav{border-top:1px solid #f0eee9;background:#fbfaf7}
.bdg-nav .bdg-container{display:flex;align-items:stretch;gap:4px}
.bdg-categories-trigger{background:var(--bdg-wine);color:#fff;padding:13px 20px;font-weight:700;display:flex;gap:10px;align-items:center;border:0;cursor:pointer;border-radius:8px 8px 0 0}
.bdg-nav-menu{display:flex;align-items:center;gap:2px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.bdg-nav-menu a{display:block;padding:13px 16px;font-size:14px;font-weight:600}
.bdg-nav-menu a:hover{color:var(--bdg-wine)}
.bdg-mobile-toggle{display:none}

.bdg-category-strip{background:#fff;padding:18px 0 12px;border-bottom:1px solid var(--bdg-border)}
.bdg-category-scroll{display:flex;gap:20px;overflow-x:auto;padding:4px 2px 8px;scrollbar-width:thin}
.bdg-category-item{flex:0 0 90px;text-align:center;font-size:13px;font-weight:600}
.bdg-category-icon{width:72px;height:72px;border-radius:50%;background:#f7f6f2;border:1px solid #e8e6df;display:flex;align-items:center;justify-content:center;margin:0 auto 8px;overflow:hidden;transition:.2s ease}
.bdg-category-icon img{width:44px;height:44px;object-fit:contain}
.bdg-category-item:hover .bdg-category-icon{transform:translateY(-3px);box-shadow:var(--bdg-shadow);border-color:#d9d4c8}
.bdg-category-fallback{font-size:28px;color:var(--bdg-wine)}

.bdg-hero{position:relative;min-height:330px;background:#262018 center/cover no-repeat;overflow:hidden;color:#fff}
.bdg-hero::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.72),rgba(0,0,0,.23) 58%,rgba(0,0,0,.05))}
.bdg-hero .bdg-container{position:relative;z-index:1;display:flex;align-items:center;min-height:330px}
.bdg-hero__content{max-width:620px;padding:44px 0}
.bdg-hero h1{font-size:clamp(34px,4vw,58px);line-height:1.02;margin:0 0 14px;letter-spacing:-1.5px}
.bdg-hero h1 strong{color:var(--bdg-yellow)}
.bdg-hero p{font-size:18px;max-width:560px;margin:0 0 24px;color:#f5f5f5}
.bdg-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:13px 20px;font-weight:800;cursor:pointer;background:var(--bdg-wine);color:#fff}
.bdg-button--gold{background:var(--bdg-yellow);color:#111}

.bdg-benefits{border-bottom:1px solid var(--bdg-border);background:#fff}
.bdg-benefits-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.bdg-benefit{display:flex;gap:12px;align-items:center;padding:18px 20px;border-right:1px solid var(--bdg-border)}
.bdg-benefit:last-child{border-right:0}.bdg-benefit__icon{font-size:27px}.bdg-benefit strong{display:block}.bdg-benefit small{display:block;color:var(--bdg-muted)}

.bdg-main{background:var(--bdg-bg);padding:28px 0 44px}
.bdg-section{margin-bottom:30px}
.bdg-section-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;margin:0 0 14px}
.bdg-section-heading h2{font-size:26px;margin:0;letter-spacing:-.4px}.bdg-section-heading a{font-size:14px;color:var(--bdg-wine);font-weight:700}
.bdg-product-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.bdg-card{background:#fff;border:1px solid var(--bdg-border);border-radius:var(--bdg-radius);padding:12px;position:relative;display:flex;flex-direction:column;min-width:0;transition:.2s ease;overflow:hidden}
.bdg-card:hover{transform:translateY(-2px);box-shadow:var(--bdg-shadow)}
.bdg-card__media{position:relative;aspect-ratio:1/1;background:#fff;border-radius:10px;overflow:hidden;margin-bottom:10px}.bdg-card__media img{width:100%;height:100%;object-fit:contain}
.bdg-card__badge{position:absolute;top:8px;left:8px;background:var(--bdg-wine);color:#fff;border-radius:5px;padding:5px 7px;font-size:12px;font-weight:800;z-index:2}
.bdg-card__type{display:inline-flex;align-self:flex-start;background:var(--bdg-green-dark);color:#fff;padding:4px 8px;border-radius:999px;font-size:11px;font-weight:800;margin-bottom:8px;text-transform:uppercase}
.bdg-card h3{font-size:15px;line-height:1.3;margin:0 0 8px;min-height:39px}.bdg-card__meta{font-size:12px;color:var(--bdg-muted);margin-bottom:8px}.bdg-card__price{font-size:20px;font-weight:800;color:var(--bdg-wine);margin-top:auto}.bdg-card__price del{display:block;color:#777;font-size:12px;font-weight:400}.bdg-card__price ins{text-decoration:none}.bdg-card__pix{font-size:12px;color:var(--bdg-green-dark);font-weight:700;margin:2px 0 10px}.bdg-card .bdg-button{width:100%;font-size:14px;padding:10px 12px}

.bdg-promo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.bdg-promo{min-height:150px;border-radius:var(--bdg-radius);padding:24px;display:flex;align-items:center;background:#fff;border:1px solid var(--bdg-border);overflow:hidden;position:relative}.bdg-promo h3{font-size:23px;margin:0 0 4px}.bdg-promo p{margin:0 0 14px}.bdg-promo--green{background:#006633;color:#fff}.bdg-promo--wine{background:#7f0016;color:#fff}.bdg-promo--gold{background:#ffcc00;color:#111}

.bdg-shop-shell{padding:32px 0}.bdg-content{min-height:360px}
.woocommerce .woocommerce-breadcrumb{margin-bottom:18px;color:#777}.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{background:#fff;border:1px solid var(--bdg-border);border-radius:var(--bdg-radius);padding:14px;overflow:hidden}.woocommerce ul.products li.product .button{background:var(--bdg-wine);color:#fff;border-radius:8px}.woocommerce div.product p.price,.woocommerce div.product span.price,.woocommerce ul.products li.product .price{color:var(--bdg-wine)}

.bdg-footer{background:#171717;color:#fff;padding:38px 0 0}.bdg-footer-grid{display:grid;grid-template-columns:1.3fr repeat(3,1fr);gap:32px}.bdg-footer h3{font-size:15px;margin:0 0 12px}.bdg-footer ul{list-style:none;margin:0;padding:0}.bdg-footer li{margin:7px 0}.bdg-footer a{color:#ddd;font-size:14px}.bdg-footer a:hover{color:#fff}.bdg-footer-logo img{max-width:230px;background:#fff;border-radius:10px;padding:10px}.bdg-footer-bottom{border-top:1px solid #383838;margin-top:34px;padding:18px 0;color:#aaa;font-size:12px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap}.bdg-watermark{font-style:italic;color:#ddd;opacity:.8}

@media(max-width:1100px){.bdg-header-main{grid-template-columns:190px 1fr}.bdg-header-actions{grid-column:1/-1;justify-content:flex-end;margin-top:-6px}.bdg-product-grid{grid-template-columns:repeat(4,1fr)}.bdg-benefits-grid{grid-template-columns:repeat(2,1fr)}.bdg-benefit:nth-child(2){border-right:0}.bdg-benefit:nth-child(-n+2){border-bottom:1px solid var(--bdg-border)}}
@media(max-width:820px){.bdg-topbar__benefits span:nth-child(n+3){display:none}.bdg-header-main{display:flex;flex-wrap:wrap;gap:12px}.bdg-brand{width:160px}.bdg-search{order:3;width:100%}.bdg-header-actions{margin-left:auto;gap:12px}.bdg-header-actions .bdg-action-label{display:none}.bdg-mobile-toggle{display:block;margin-left:auto;background:none;border:0;font-size:24px;padding:12px}.bdg-nav .bdg-container{flex-wrap:wrap}.bdg-nav-menu{display:none;width:100%;padding:8px 0}.bdg-nav-menu.is-open{display:block}.bdg-nav-menu li{width:100%}.bdg-categories-trigger{border-radius:7px}.bdg-product-grid{grid-template-columns:repeat(2,1fr)}.bdg-promo-grid{grid-template-columns:1fr}.bdg-footer-grid{grid-template-columns:repeat(2,1fr)}.bdg-hero,.bdg-hero .bdg-container{min-height:290px}}
@media(max-width:520px){.bdg-container{width:min(calc(100% - 20px),var(--bdg-max))}.bdg-topbar .bdg-container{justify-content:center}.bdg-topbar__benefits{gap:12px}.bdg-topbar__right{display:none}.bdg-brand{width:145px}.bdg-header-actions a:nth-child(2){display:none}.bdg-category-item{flex-basis:76px}.bdg-category-icon{width:62px;height:62px}.bdg-product-grid{gap:9px}.bdg-card{padding:9px}.bdg-card h3{font-size:14px}.bdg-card__price{font-size:18px}.bdg-benefits-grid{grid-template-columns:1fr}.bdg-benefit{border-right:0!important;border-bottom:1px solid var(--bdg-border)!important}.bdg-benefit:last-child{border-bottom:0!important}.bdg-footer-grid{grid-template-columns:1fr}.bdg-hero__content{padding:32px 0}.bdg-hero h1{font-size:36px}.bdg-hero p{font-size:16px}}

/* ===== Contato ===== */
.bdg-contact-page{background:#f7f7f5}
.bdg-contact-hero{position:relative;overflow:hidden;background:linear-gradient(115deg,#171717 0%,#2c171a 58%,#7b0014 100%);color:#fff}
.bdg-contact-hero::before{content:"";position:absolute;width:440px;height:440px;border:1px solid rgba(255,204,0,.18);border-radius:50%;right:-90px;top:-230px;box-shadow:0 0 0 55px rgba(255,204,0,.035),0 0 0 110px rgba(255,204,0,.025)}
.bdg-contact-hero__inner{position:relative;min-height:300px;display:flex;align-items:center;justify-content:space-between;gap:40px;padding-block:48px}
.bdg-contact-kicker{display:inline-flex;align-items:center;gap:8px;margin-bottom:10px;color:var(--bdg-yellow);font-weight:800;text-transform:uppercase;letter-spacing:.11em;font-size:12px}
.bdg-contact-kicker::before{content:"";width:28px;height:2px;background:currentColor}
.bdg-contact-hero h1{font-size:clamp(38px,5vw,68px);line-height:1.02;letter-spacing:-1.8px;margin:0 0 16px;max-width:780px}
.bdg-contact-hero h1 strong{color:var(--bdg-yellow)}
.bdg-contact-hero p{font-size:18px;max-width:700px;color:#eee;margin:0}
.bdg-contact-hero__mark{width:120px;height:120px;border:1px solid rgba(255,255,255,.22);border-radius:50%;display:grid;place-items:center;color:var(--bdg-yellow);font-size:54px;flex:0 0 auto;background:rgba(255,255,255,.04);backdrop-filter:blur(3px)}
.bdg-contact-section{padding:48px 0 64px}
.bdg-contact-layout{display:grid;grid-template-columns:minmax(280px,.82fr) minmax(0,1.35fr);gap:30px;align-items:start}
.bdg-contact-aside{background:#fff;border:1px solid var(--bdg-border);border-radius:20px;padding:28px;box-shadow:0 10px 35px rgba(0,0,0,.045)}
.bdg-contact-aside__brand{padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid var(--bdg-border)}
.bdg-contact-aside__brand img{max-height:76px;width:auto}
.bdg-contact-aside h2{font-size:27px;line-height:1.12;margin:0 0 12px;letter-spacing:-.5px}
.bdg-contact-aside>p{margin:0;color:var(--bdg-muted)}
.bdg-contact-info-list{display:grid;gap:14px;margin-top:26px}
.bdg-contact-info{display:flex;gap:13px;align-items:flex-start;padding:14px;background:#fbfaf7;border-radius:13px}
.bdg-contact-info__icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#fff3c6;color:#7b0014;font-weight:900;border:1px solid #f2df97}
.bdg-contact-info strong,.bdg-contact-info small{display:block}
.bdg-contact-info strong{font-size:14px;margin:1px 0 3px}
.bdg-contact-info small{font-size:12px;line-height:1.45;color:var(--bdg-muted)}
.bdg-contact-card{background:#fff;border:1px solid var(--bdg-border);border-radius:20px;padding:34px;box-shadow:0 12px 40px rgba(0,0,0,.06)}
.bdg-contact-card__head{margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid var(--bdg-border)}
.bdg-contact-card__head>span{display:inline-flex;background:#fbe9ec;color:var(--bdg-wine);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.09em;border-radius:999px;padding:6px 10px;margin-bottom:9px}
.bdg-contact-card__head h2{font-size:32px;line-height:1.1;margin:0 0 6px;letter-spacing:-.6px}
.bdg-contact-card__head p{margin:0;color:var(--bdg-muted)}
.bdg-contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.bdg-field{margin:0}
.bdg-field-full{grid-column:1/-1}
.bdg-field label{display:block;font-size:13px;font-weight:800;margin:0 0 7px;color:#292929}
.bdg-field input,.bdg-field textarea{width:100%;border:1px solid #d9d7d1;border-radius:10px;background:#fff;padding:13px 14px;font:inherit;color:#171717;outline:none;transition:border-color .18s ease,box-shadow .18s ease}
.bdg-field textarea{resize:vertical;min-height:150px}
.bdg-field input:focus,.bdg-field textarea:focus{border-color:var(--bdg-wine);box-shadow:0 0 0 3px rgba(154,0,25,.09)}
.bdg-contact-submit{display:flex;align-items:center;gap:18px;margin-top:22px;flex-wrap:wrap}
.bdg-contact-submit .bdg-button{min-width:190px}
.bdg-contact-submit small{color:var(--bdg-muted);max-width:330px}
.bdg-contact-notice{display:flex;gap:6px;flex-direction:column;border-radius:12px;padding:14px 16px;margin:0 0 20px;border:1px solid}
.bdg-contact-notice.is-success{background:#eef9f2;border-color:#b8dfc6;color:#075b2d}
.bdg-contact-notice.is-error{background:#fff0f2;border-color:#efc0c8;color:#7b0014}
.bdg-contact-notice span{font-size:13px}
.bdg-honeypot{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media(max-width:900px){.bdg-contact-layout{grid-template-columns:1fr}.bdg-contact-aside{order:2}.bdg-contact-hero__mark{display:none}}
@media(max-width:600px){.bdg-contact-hero__inner{min-height:260px;padding-block:36px}.bdg-contact-hero h1{font-size:40px}.bdg-contact-hero p{font-size:16px}.bdg-contact-section{padding:28px 0 44px}.bdg-contact-card,.bdg-contact-aside{padding:22px;border-radius:16px}.bdg-contact-fields{grid-template-columns:1fr}.bdg-field-full{grid-column:auto}.bdg-contact-submit{align-items:stretch;flex-direction:column}.bdg-contact-submit .bdg-button{width:100%}}
