/* CASA VALORA V40.7 — homologação somente; restaura a identidade aprovada e compacta páginas internas.
   Nenhuma rotina financeira, de catálogo, pedidos ou backend foi modificada. */
#cv-preview-notice{background:#94702e;color:#fffaf0;text-align:center;padding:9px 16px;font:700 11px/1.45 Inter,Arial,sans-serif;letter-spacing:.02em}
/* Header + footer únicos nas páginas internas, idênticos à V40.5 */
body.cv-inner-page .bv-top .bv-wrap,body.cv-inner-page .bv-header .bv-wrap,body.cv-inner-page .bv-footer .bv-wrap{width:min(1200px,calc(100% - 40px));margin-left:auto;margin-right:auto}
body.cv-inner-page .bv-header{position:relative;top:auto}
body.cv-inner-page .bv-main-nav{display:flex}
body.cv-inner-page .bv-menu{display:none}
body.cv-inner-page .bv-footer-logo img{background:#fff8ee!important}
body.cv-inner-page main{min-height:42vh}
body.cv-inner-page .wa-float{display:flex!important;align-items:center;justify-content:center;font-size:12px!important;min-width:initial;height:auto;padding:12px 16px!important}
body.cv-inner-page .wa-float:after{content:none!important}
/* Dense but readable institutional pages */
body.cv-inner-page .page-hero{padding:33px 0 28px!important;background:#f7f0e5}
body.cv-inner-page .page-hero h1{font:500 clamp(30px,3vw,44px)/1.14 'Playfair Display',Georgia,serif;margin:4px 0 10px;color:#153b2e}
body.cv-inner-page .page-hero p{font-size:14px;line-height:1.65;margin:0}
body.cv-inner-page .section{padding:36px 0 48px}
body.cv-inner-page .legal-content{width:min(100%,850px);max-width:850px;background:#fffdf9;padding:28px 34px;border:1px solid #ece5db;border-radius:20px;box-shadow:0 10px 30px #173f3508}
body.cv-inner-page .legal-content h2{font:500 clamp(22px,2vw,28px)/1.3 'Playfair Display',Georgia,serif;margin:12px 0 10px}
body.cv-inner-page .legal-content h2:first-child{margin-top:0}
body.cv-inner-page .legal-content p{font-size:14px;line-height:1.75;margin:0 0 21px}
body.cv-inner-page .legal-content p:last-child{margin-bottom:0}
body.cv-inner-page .faq-layout{max-width:860px}
body.cv-inner-page .faq-group{margin-bottom:28px}
body.cv-inner-page .faq-group h2{font-size:25px;margin-bottom:12px}
body.cv-inner-page .faq-group details{padding:15px 18px}
/* Catalog cards proportionate to available grid, without giant whitespace */
body.cv-inner-page .catalog-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(175px,230px) auto;gap:12px;padding:12px 14px;border-radius:16px}
body.cv-inner-page .catalog-toolbar input,body.cv-inner-page .catalog-toolbar select{min-height:43px;padding:9px 13px}
body.cv-inner-page #catalog-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:stretch}
body.cv-inner-page #catalog-products .product-card{width:100%;min-width:0;display:flex;flex-direction:column}
body.cv-inner-page #catalog-products .product-image{aspect-ratio:1/1;min-height:0;padding:12px!important}
body.cv-inner-page #catalog-products .product-image img{object-fit:contain;width:100%;height:100%}
body.cv-inner-page #catalog-products .product-body{flex:1;padding:13px 14px}
body.cv-inner-page #catalog-products h3{font:600 13px/1.45 Inter,Arial,sans-serif;min-height:2.9em;margin:4px 0}
body.cv-inner-page #catalog-products .card-price strong{font-size:18px}
body.cv-inner-page #catalog-products .product-actions-card{display:flex;flex-direction:column;gap:7px}
body.cv-inner-page #catalog-products .product-actions-card .btn{font-size:11px;min-height:38px}
/* Product: split compact gallery + buybox, avoid image dominating viewport */
body.cv-inner-page .product-page-section{padding:22px 0 50px}
body.cv-inner-page .product-page-section>.container{max-width:1140px}
body.cv-inner-page .breadcrumb{margin-bottom:18px;font-size:12px}
body.cv-inner-page .product-page-grid{display:grid;grid-template-columns:minmax(0,.96fr) minmax(0,1.04fr);gap:26px;align-items:start}
body.cv-inner-page .product-gallery{position:relative;top:auto;min-width:0}
body.cv-inner-page .gallery-main{background:#fff;border:1px solid #e8ded0;border-radius:18px}
body.cv-inner-page .gallery-placeholder{aspect-ratio:1.08/1;padding:12px;max-height:475px;min-height:0}
body.cv-inner-page .gallery-real img{max-height:445px;object-fit:contain;max-width:100%;width:100%;height:100%}
body.cv-inner-page .cv-gallery-video{max-height:445px;object-fit:contain}
body.cv-inner-page .product-buybox{padding:22px 25px;border-radius:18px;box-shadow:0 8px 28px #173f3510}
body.cv-inner-page .product-buybox h1{font:500 clamp(25px,2.45vw,36px)/1.13 'Playfair Display',Georgia,serif;letter-spacing:-.03em;margin:6px 0 9px}
body.cv-inner-page .product-description{font-size:14px;line-height:1.55;margin:10px 0 14px}
body.cv-inner-page .price-block{padding:12px 0;margin:13px 0}
body.cv-inner-page .price-main{font-size:27px;margin:3px 0}
body.cv-inner-page .price-note{font-size:11px;line-height:1.5;margin-top:5px}
body.cv-inner-page .shipping-box{border-radius:12px;padding:12px 14px;margin:12px 0}
body.cv-inner-page .product-actions-main{gap:9px}
body.cv-inner-page .product-actions-main .btn{min-height:42px}
body.cv-inner-page .trust-list{margin-top:15px;gap:9px}
body.cv-inner-page .trust-list div{padding-top:9px}
body.cv-inner-page .product-info-tabs{margin-top:30px;gap:18px}
body.cv-inner-page .info-card{padding:21px;border-radius:16px}
body.cv-inner-page .info-card h2{font-size:23px}
body.cv-inner-page .related-products{margin-top:38px}
/* Checkout: two equal columns with compact, accessible stacked labels/inputs */
body.cv-inner-page .checkout-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:24px;align-items:start}
body.cv-inner-page main.section{padding:26px 0 52px}
body.cv-inner-page .checkout-card{border-radius:18px;padding:24px!important}
body.cv-inner-page .checkout-card h1{font:500 clamp(30px,3vw,39px)/1.1 'Playfair Display',Georgia,serif;margin:7px 0 10px;color:#173f35}
body.cv-inner-page .checkout-card .muted{font-size:13px;line-height:1.6}
body.cv-inner-page .test-banner{padding:11px 16px;border-radius:12px;font-size:12px;margin-bottom:18px}
body.cv-inner-page .checkout-step{margin:18px 0 0;padding:14px 0 0}
body.cv-inner-page .checkout-step-title{margin-bottom:12px}
body.cv-inner-page .checkout-step-title strong{font-size:14px}
body.cv-inner-page .checkout-step-title small{font-size:12px}
body.cv-inner-page .checkout-card .form-grid.two-cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
body.cv-inner-page .checkout-card .form-grid.two-cols>.full{grid-column:1/-1}
body.cv-inner-page .checkout-card .form-grid.two-cols label{display:flex;flex-direction:column;align-items:stretch;gap:5px;font-size:12px;font-weight:600;min-width:0}
body.cv-inner-page .checkout-card .form-grid.two-cols input,body.cv-inner-page .checkout-card .form-grid.two-cols select,body.cv-inner-page .checkout-card textarea{display:block;width:100%;min-width:0;min-height:40px;border:1px solid #dcd2c5;border-radius:10px;background:#fff;padding:9px 11px;font:400 14px/1.4 Inter,Arial,sans-serif;box-sizing:border-box}
body.cv-inner-page .checkout-card .field-button-wrap{min-width:0}
body.cv-inner-page .checkout-card .field-button-wrap .field-spacer{display:block;font-size:12px}
body.cv-inner-page .checkout-card .field-button-wrap button{min-height:40px}
body.cv-inner-page .checkout-card .terms-line{font-size:12px;line-height:1.5}
body.cv-inner-page .checkout-card .payment-method-selector{margin:13px 0;gap:10px}
body.cv-inner-page .checkout-card .payment-method-option{padding:11px;border-radius:12px}
body.cv-inner-page .checkout-card .payment-method-option small{font-size:11px;line-height:1.5}
body.cv-inner-page .checkout-summary h2{font:500 31px/1.1 'Playfair Display',Georgia,serif;margin:0 0 12px}
body.cv-inner-page .checkout-coupon-box{margin:10px 0 13px}
body.cv-inner-page .order-summary{border-radius:18px}
body.cv-inner-page main .btn{border-radius:11px}
/* Institutional story not paired with unrelated jewelry illustration */
body.cv-inner-page .cv-institutional-hero{padding:48px 0 53px}
body.cv-inner-page .cv-institutional-hero h1{font-size:clamp(36px,4.2vw,55px)}
body.cv-inner-page .cv-history-layout{grid-template-columns:minmax(190px,.36fr) minmax(0,1fr);gap:40px}
body.cv-inner-page .cv-institutional .cv-section{padding:42px 0}
body.cv-inner-page .cv-history-aside{position:sticky;top:15px}
body.cv-inner-page .cv-history-text p{font-size:14px;line-height:1.8}
body.cv-inner-page .cv-history-text h2{font-size:27px;margin-bottom:18px}
body.cv-inner-page .cv-history-text h3{font-size:23px}
/* Mobile layout: usable not simply a downscaled desktop */
@media(max-width:1100px){
 body.cv-inner-page #catalog-products{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.cv-inner-page .checkout-grid{grid-template-columns:minmax(0,1fr) minmax(0,.85fr)}
 body.cv-inner-page .bv-main-nav a:nth-of-type(5),body.cv-inner-page .bv-main-nav a:nth-of-type(6){display:none}
}
@media(max-width:780px){
 body.cv-inner-page .bv-header .bv-nav{min-height:70px}
 body.cv-inner-page .bv-main-nav{display:none;position:absolute;top:70px;left:0;right:0}
 body.cv-inner-page .bv-main-nav.open{display:flex}
 body.cv-inner-page .bv-menu{display:inline-flex}
 body.cv-inner-page .catalog-toolbar{grid-template-columns:1fr 1fr}
 body.cv-inner-page .catalog-toolbar #search{grid-column:1/-1;width:100%}
 body.cv-inner-page .catalog-toolbar .text-link{align-self:center}
 body.cv-inner-page #catalog-products{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.cv-inner-page .product-page-grid{grid-template-columns:minmax(0,1fr);gap:16px}
 body.cv-inner-page .product-gallery{width:min(100%,560px);margin-inline:auto}
 body.cv-inner-page .gallery-placeholder{max-height:420px;aspect-ratio:1.18/1}
 body.cv-inner-page .checkout-grid{grid-template-columns:1fr}
 body.cv-inner-page .checkout-card .form-grid.two-cols{grid-template-columns:1fr}
 body.cv-inner-page .checkout-card .form-grid.two-cols>*{grid-column:1/-1}
 body.cv-inner-page .checkout-summary h2{font-size:27px}
 body.cv-inner-page .cv-history-layout{grid-template-columns:1fr;gap:20px}
 body.cv-inner-page .cv-history-aside{position:static;grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
 body.cv-inner-page .bv-top-inner span:nth-child(n+3){display:none}
 body.cv-inner-page .bv-top-inner{justify-content:center;gap:10px}
 body.cv-inner-page .bv-top{font-size:8px}
 body.cv-inner-page .bv-logo{max-width:60vw;width:190px}
 body.cv-inner-page .bv-header .bv-nav{min-height:64px}
 body.cv-inner-page .bv-main-nav{top:64px}
 body.cv-inner-page .bv-top .bv-wrap,body.cv-inner-page .bv-header .bv-wrap,body.cv-inner-page .bv-footer .bv-wrap{width:calc(100% - 28px)}
 body.cv-inner-page .page-hero{padding:25px 0!important}
 body.cv-inner-page .section{padding:27px 0 40px}
 body.cv-inner-page .catalog-toolbar{padding:12px;grid-template-columns:1fr}
 body.cv-inner-page .catalog-toolbar #search{grid-column:auto}
 body.cv-inner-page #catalog-products{gap:9px}
 body.cv-inner-page #catalog-products .product-body{padding:10px}
 body.cv-inner-page #catalog-products .product-actions-card .btn{font-size:10px}
 body.cv-inner-page .product-page-section{padding:14px 0 35px}
 body.cv-inner-page .gallery-placeholder{max-height:340px}
 body.cv-inner-page .product-buybox{padding:17px}
 body.cv-inner-page .product-buybox h1{font-size:27px}
 body.cv-inner-page .checkout-card{padding:16px!important}
 body.cv-inner-page .checkout-card .form-grid.two-cols{gap:11px}
 body.cv-inner-page .checkout-card .form-grid.two-cols input{font-size:16px!important}
 body.cv-inner-page .legal-content{padding:20px 18px}
 body.cv-inner-page .cv-history-aside{gap:12px}
}

/* Final corrections validated on real product and checkout structure */
body.cv-inner-page .order-summary h2{font:500 clamp(24px,2.6vw,32px)/1.12 'Playfair Display',Georgia,serif;letter-spacing:-.03em;margin:0 0 14px}
body.cv-inner-page .order-summary{padding:16px;border:1px solid #eae2d7;border-radius:17px;background:#fffdfa}
body.cv-inner-page .product-page-section .cv-seo-intro h1{font:500 clamp(25px,2.5vw,36px)/1.14 'Playfair Display',Georgia,serif;margin:0 0 8px}
body.cv-inner-page .product-page-section .cv-seo-intro p{font-size:13px;line-height:1.5;margin:0}
body.cv-account .bv-header a{color:#173f35;text-decoration:none}
body.cv-account .bv-header .bv-nav{width:min(1200px,calc(100% - 40px));max-width:none;padding:0}
body.cv-account .bv-header .bv-search input{border:0!important;background:transparent!important;min-height:0;box-shadow:none!important}
body.cv-account .bv-footer{padding:27px 0 15px}
body.cv-account .bv-footer a{color:#ede7dd}
body.cv-account .bv-footer strong{color:#e2bd77}
body.cv-account main.wrap{width:min(980px,calc(100% - 40px));margin:0 auto;padding:32px 0 55px}
body.cv-account main.wrap>.card{max-width:960px}
body.cv-account .bv-icon,.cv-account .bv-search button{background:transparent;color:#173f35;border:0;padding:0}
body.cv-account .bv-menu{display:none}
@media(max-width:780px){body.cv-account .bv-menu{display:inline-flex}}
body.cv-inner-page:has(.checkout-grid) .wa-float{display:none!important}
body.cv-account .wa-float{display:none!important}
@media(max-width:480px){body.cv-account .bv-logo{width:min(178px,52vw)!important;max-width:52vw!important}body.cv-account .bv-actions{gap:0!important}body.cv-account .bv-footer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
