/* Casa Valora V40.9 — densidade, zoom e detalhes técnicos, camada segura */
body.cv-inner-page .product-page-section{padding:12px 0 30px}
body.cv-inner-page .product-page-section>.container{max-width:1020px}
body.cv-inner-page .breadcrumb{margin-bottom:10px}
body.cv-inner-page .product-page-grid{display:grid;grid-template-columns:minmax(0,338px) minmax(0,1fr);gap:20px;align-items:start}
body.cv-inner-page .product-gallery{max-width:338px;margin:0;width:100%;min-width:0}
body.cv-inner-page .gallery-main{height:265px!important;min-height:0!important;max-height:265px!important;overflow:hidden;display:grid;place-items:center;border-radius:15px;background:#fff}
body.cv-inner-page .gallery-main .gallery-placeholder{box-sizing:border-box;display:grid!important;place-items:center;position:relative;width:100%;height:100%!important;min-height:0!important;max-height:265px!important;aspect-ratio:auto!important;padding:12px 14px;margin:0;border:0;background:transparent}
body.cv-inner-page .gallery-main .gallery-real img{display:block;width:100%;height:100%;max-height:235px!important;max-width:100%;object-fit:contain}
body.cv-inner-page .gallery-main .cv-gallery-video{height:245px;max-height:245px;width:100%;object-fit:contain}
body.cv-inner-page .cv-zoom-trigger{appearance:none;cursor:zoom-in;color:inherit;font:inherit}
body.cv-inner-page .cv-zoom-trigger:focus-visible{outline:3px solid #b99251;outline-offset:-5px}
body.cv-inner-page .cv-zoom-hint{position:absolute;right:10px;bottom:9px;background:#fffaf3ee;color:#214236;font-size:10px;letter-spacing:.01em;border:1px solid #e0d3c0;border-radius:999px;padding:5px 10px;pointer-events:none}
body.cv-inner-page .cv-gallery-thumbs{margin:7px 0 0}
body.cv-inner-page .cv-gallery-thumb{width:48px;height:48px}
body.cv-inner-page .cv-gallery-specs{margin:10px 0 0;width:100%;box-sizing:border-box;border:1px solid #e9dfd0;background:#fffdf9;border-radius:13px;overflow:hidden;box-shadow:0 4px 16px #173f3509}
body.cv-inner-page .cv-gallery-specs>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;color:#173f35;font-weight:700;font-size:12px;line-height:1.3}
body.cv-inner-page .cv-gallery-specs>summary::-webkit-details-marker{display:none}
body.cv-inner-page .cv-gallery-specs[open]>summary{border-bottom:1px solid #ede4d8}
body.cv-inner-page .cv-gallery-specs>summary .cv-chevron{font-size:17px;color:#ab8240;transition:transform .15s}
body.cv-inner-page .cv-gallery-specs[open]>summary .cv-chevron{transform:rotate(180deg)}
body.cv-inner-page .cv-gallery-specs-body{padding:0 13px 11px}
body.cv-inner-page .cv-spec-table{display:block;margin:0}
body.cv-inner-page .cv-spec-row{display:grid!important;grid-template-columns:39% minmax(0,1fr)!important;gap:9px;align-items:start;margin:0!important;padding:6px 0!important;border:0;border-bottom:1px solid #f0eae1;font-size:11px;line-height:1.35;color:#334b42}
body.cv-inner-page .cv-spec-key{font-size:11px;font-weight:700;color:#173f35}
body.cv-inner-page .cv-spec-value{font-size:11px;color:#536159;overflow-wrap:anywhere;text-align:left}
body.cv-inner-page .cv-spec-footnote{font-size:10px;color:#877b6a;line-height:1.4;margin:9px 0 0}
body.cv-inner-page .product-buybox{padding:16px 19px;border-radius:15px}
body.cv-inner-page .product-buybox h1{font-size:clamp(22px,2vw,27px);line-height:1.12}
body.cv-inner-page .product-buybox .product-description{font-size:12px;line-height:1.4;margin:6px 0}
body.cv-inner-page .price-block{margin:7px 0;padding:8px 0}
body.cv-inner-page .price-main{font-size:24px}
body.cv-inner-page .cv-warranty-banner{margin:7px 0;padding:8px 10px}
body.cv-inner-page .cv-size-preview{margin:5px 0 7px}
body.cv-inner-page .shipping-box{margin:7px 0;padding:8px 11px}
body.cv-inner-page .product-actions-main{display:grid;grid-template-columns:1fr 1fr;gap:7px}
body.cv-inner-page .product-actions-main .btn{min-height:40px;font-size:11px;padding:7px 8px}
body.cv-inner-page .trust-list{margin-top:6px;gap:3px 9px}
body.cv-inner-page .trust-list div{padding:4px 0}
body.cv-inner-page .cv-product-after{margin-top:16px}
body.cv-inner-page .cv-product-accordions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
body.cv-inner-page .cv-product-accordion>summary{padding:11px 13px}
body.cv-inner-page .cv-recommendation-section{margin-top:20px}
body.cv-inner-page .cv-short-faq{margin-top:18px}
body.cv-inner-page .cv-short-faq h2{font-size:23px}
body.cv-inner-page .cv-photo-dialog{box-sizing:border-box;border:0;border-radius:16px;background:#fffdf9;padding:26px 15px 12px;box-shadow:0 22px 75px #041c14aa;max-width:min(90vw,920px);width:max-content;max-height:90vh;overflow:auto}
body.cv-inner-page .cv-photo-dialog::backdrop{background:rgba(10,29,23,.86)}
body.cv-inner-page .cv-photo-dialog img{display:block;max-width:min(86vw,875px);max-height:calc(90vh - 65px);width:auto;height:auto;object-fit:contain;margin:auto}
body.cv-inner-page .cv-photo-close{position:absolute;top:4px;right:6px;border:0;border-radius:50%;background:#173f35;color:white;cursor:pointer;font-size:24px;width:30px;height:30px;display:grid;place-items:center;line-height:1}
body.cv-inner-page .cv-photo-close:focus-visible{outline:3px solid #c99e57;outline-offset:2px}
/* Checkout V40.9: fewer lines while retaining explicit labels. Payment logic is unchanged. */
body.cv-inner-page:has(.checkout-grid) main.section{padding:11px 0 25px}
body.cv-inner-page:has(.checkout-grid) .test-banner{padding:7px 12px;margin-bottom:10px}
body.cv-inner-page .checkout-grid{grid-template-columns:minmax(0,1.16fr) minmax(0,.84fr);gap:16px}
body.cv-inner-page .checkout-card{padding:14px 17px!important}
body.cv-inner-page .checkout-card h1{font-size:27px;margin:2px 0 3px}
body.cv-inner-page .checkout-card .muted{font-size:11px;line-height:1.25;margin-bottom:4px}
body.cv-inner-page .checkout-step{margin:8px 0 0;padding:6px 0 0}
body.cv-inner-page .checkout-step-title{margin:0 0 6px;gap:8px}
body.cv-inner-page .checkout-step-title>span{width:25px;height:25px;font-size:12px}
body.cv-inner-page .checkout-step-title strong{font-size:12px}
body.cv-inner-page .checkout-step-title small{font-size:10px}
body.cv-inner-page .checkout-card .form-grid.two-cols{gap:6px 9px}
body.cv-inner-page .checkout-card .form-grid.two-cols label{gap:3px;font-size:10px;line-height:1.3}
body.cv-inner-page .checkout-card .form-grid.two-cols input,body.cv-inner-page .checkout-card .form-grid.two-cols select{min-height:34px;height:34px;padding:5px 9px;font-size:12px}
body.cv-inner-page .checkout-card .field-button-wrap button{min-height:34px;height:34px;font-size:11px}
body.cv-inner-page .checkout-card .field-button-wrap .field-spacer{font-size:10px}
body.cv-inner-page .checkout-card .cv-address-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 9px}
body.cv-inner-page .checkout-card .cv-address-grid>.full{grid-column:1/-1}
body.cv-inner-page .checkout-card .cv-address-grid>.field-button-wrap{grid-column:2/4}
body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-complement){grid-column:span 2}
body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-number){grid-column:span 1}
body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-neighborhood),body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-city),body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-state){grid-column:span 1}
body.cv-inner-page .checkout-card .payment-method-selector{margin:5px 0;gap:7px}
body.cv-inner-page .checkout-card .payment-method-option{padding:7px 9px;gap:7px}
body.cv-inner-page .checkout-card .payment-method-option strong{font-size:12px}
body.cv-inner-page .checkout-card .payment-method-option small{font-size:10px;line-height:1.2}
body.cv-inner-page .checkout-card .terms-line{padding:7px 9px;font-size:10px}
body.cv-inner-page .checkout-card .checkout-actions .btn{min-height:35px;font-size:11px}
body.cv-inner-page .order-summary{padding:12px!important}
body.cv-inner-page .order-summary h2{font-size:23px;margin-bottom:8px}
body.cv-inner-page .checkout-coupon-box{padding:10px;margin:5px 0 8px}
body.cv-inner-page .sticky-summary{top:12px}
@media(max-width:900px){
 body.cv-inner-page .product-page-grid{grid-template-columns:minmax(0,275px) minmax(0,1fr);gap:13px}
 body.cv-inner-page .product-gallery{max-width:275px}
 body.cv-inner-page .gallery-main{height:235px!important;max-height:235px!important}
 body.cv-inner-page .gallery-main .gallery-placeholder{max-height:235px!important}
 body.cv-inner-page .gallery-main .gallery-real img{max-height:205px!important}
 body.cv-inner-page .checkout-card .cv-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.cv-inner-page .checkout-card .cv-address-grid>.field-button-wrap{grid-column:auto}
 body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-complement){grid-column:span 1}
 body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-state){grid-column:span 1}
}
@media(max-width:780px){
 body.cv-inner-page .product-page-grid{grid-template-columns:1fr;gap:12px}
 body.cv-inner-page .product-gallery{max-width:480px;margin:0 auto}
 body.cv-inner-page .gallery-main{height:225px!important;max-height:225px!important}
 body.cv-inner-page .gallery-main .gallery-placeholder{max-height:225px!important}
 body.cv-inner-page .gallery-main .gallery-real img{max-height:195px!important}
 body.cv-inner-page .cv-product-accordions{grid-template-columns:1fr}
 body.cv-inner-page .checkout-grid{grid-template-columns:1fr}
 body.cv-inner-page .checkout-card .cv-address-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.cv-inner-page .checkout-card .cv-address-grid>*{grid-column:auto}
 body.cv-inner-page .checkout-card .cv-address-grid>.full{grid-column:1/-1}
 body.cv-inner-page .checkout-card .cv-address-grid>.field-button-wrap{grid-column:auto}
}
@media(max-width:500px){
 body.cv-inner-page .product-gallery{width:100%;max-width:100%}
 body.cv-inner-page .gallery-main{height:215px!important;max-height:215px!important}
 body.cv-inner-page .gallery-main .gallery-placeholder{max-height:215px!important}
 body.cv-inner-page .gallery-main .gallery-real img{max-height:187px!important}
 body.cv-inner-page .cv-gallery-specs-body{padding:0 11px 9px}
 body.cv-inner-page .cv-gallery-specs>summary{padding:10px 11px}
 body.cv-inner-page .product-buybox{padding:13px}
 body.cv-inner-page .product-actions-main{grid-template-columns:1fr}
 body.cv-inner-page .checkout-card .form-grid.two-cols input{font-size:16px!important;min-height:39px;height:39px}
 body.cv-inner-page .checkout-card .cv-address-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-complement){grid-column:span 1}
 body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-state){grid-column:span 1}
 body.cv-inner-page .checkout-card .cv-address-grid>label:has(#customer-neighborhood){grid-column:1/-1}
 body.cv-inner-page .checkout-card .payment-method-selector{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:345px){body.cv-inner-page .checkout-card .cv-address-grid{grid-template-columns:1fr}body.cv-inner-page .checkout-card .cv-address-grid>*{grid-column:1/-1!important}}

/* Ajuste validado para imagens quadradas e horizontais: impedir extrapolação da célula grid. */
body.cv-inner-page .gallery-main .gallery-placeholder.cv-zoom-trigger{display:block!important;position:relative!important;overflow:hidden!important}
body.cv-inner-page .gallery-main .cv-zoom-trigger img{position:absolute!important;left:12px!important;top:10px!important;width:calc(100% - 24px)!important;height:calc(100% - 20px)!important;max-height:none!important;max-width:none!important;object-fit:contain!important;object-position:center center!important}
body.cv-inner-page .cv-spec-expand{display:none}
@media(max-width:780px){
 body.cv-inner-page .cv-gallery-specs:not(.cv-spec-expanded) .cv-spec-row:nth-child(n+4){display:none!important}
 body.cv-inner-page .cv-spec-expand{display:block;width:100%;margin-top:7px;border:1px solid #e2d5bd;background:#faf5eb;color:#173f35;font:700 11px/1.4 Inter,Arial,sans-serif;border-radius:9px;padding:7px;cursor:pointer}
 body.cv-inner-page .cv-gallery-specs .cv-spec-footnote{margin-top:6px!important}
}

body.cv-inner-page .gallery-main>.cv-zoom-trigger{width:100%!important;min-width:0!important;justify-self:stretch!important;align-self:stretch!important;box-sizing:border-box!important}
body.cv-inner-page .gallery-main>.cv-zoom-trigger .cv-zoom-hint{width:auto!important;height:auto!important;right:10px!important;bottom:10px!important;left:auto!important;top:auto!important}

body.cv-inner-page .gallery-main{display:block!important;position:relative!important}
