/* Itatiaia V12.24 — acabamento comercial e UX B2B */

/* Autocomplete rico */
.suggestions{max-height:min(540px,72vh);overflow:auto}
.suggestion-heading{padding:10px 14px 6px;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.58}
.suggestion.product-suggestion,.suggestion.recent-suggestion{display:grid;grid-template-columns:54px minmax(0,1fr);gap:11px;align-items:center;text-align:left;padding:10px 12px}
.suggestion.recent-suggestion{grid-template-columns:34px minmax(0,1fr)}
.suggestion-thumb{width:52px;height:52px;border-radius:10px;overflow:hidden;background:#f4f4f2;display:grid;place-items:center;border:1px solid rgba(20,20,20,.08)}
.suggestion-thumb img{width:100%;height:100%;object-fit:contain;background:#fff}
.suggestion-thumb.empty,.suggestion-search-icon{color:#9a8244;font-weight:800}
.suggestion-copy{min-width:0;display:block}
.suggestion-copy b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-copy small{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.suggestion-copy em{display:inline-block;margin-top:5px;font-size:.7rem;font-style:normal;font-weight:700;color:#6d5a26;background:#f8f2dd;border-radius:999px;padding:2px 7px}
.suggestion mark{background:#ffed99;color:inherit;border-radius:3px;padding:0 1px}

/* Cards de catálogo */
.product-grid{align-items:stretch}
.product.product-v1224{overflow:hidden;display:flex;flex-direction:column;min-height:100%;border-radius:18px;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.product.product-v1224:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(26,25,19,.09)}
.product.product-v1224.in-quote{border-color:#73a981;box-shadow:0 0 0 1px rgba(70,132,86,.12)}
.product-v1224 .product-visual{height:238px;display:grid;place-items:center;background:#fff;padding:14px;border-bottom:1px solid rgba(0,0,0,.06)}
.product-v1224 .product-visual img{width:100%;height:100%;object-fit:contain;transition:transform .2s ease}
.product-v1224:hover .product-visual img{transform:scale(1.025)}
.product-v1224 .product-visual.is-empty{font-size:2rem;color:#b5b2a8;background:#f7f6f2;text-decoration:none}
.product-v1224 .product-body{display:flex;flex-direction:column;gap:9px;flex:1;padding:16px}
.product-brand-line{display:flex;justify-content:space-between;gap:8px;align-items:center;text-transform:uppercase;font-size:.72rem;letter-spacing:.055em;color:#78652e}
.product-brand-line strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.product-brand-line span{background:#f2f0e9;color:#555;padding:3px 7px;border-radius:999px;font-weight:700}
.product-v1224 h3{margin:0;font-size:1rem;line-height:1.3}
.product-v1224 h3 a{color:inherit;text-decoration:none}
.product-code-line{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:.74rem;color:#777}
.product-code-line b{color:#333}
.product-summary{font-size:.82rem;line-height:1.45;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-quick-add{margin-top:auto;display:grid;grid-template-columns:minmax(72px,92px) auto minmax(112px,1fr);gap:7px;align-items:end;padding-top:5px}
.card-quick-add label span{display:block;font-size:.67rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;margin:0 0 4px;color:#777}
.card-quick-add input{width:100%;height:36px;border:1px solid #d8d5cb;border-radius:9px;padding:0 8px;font:inherit;background:#fff}
.quick-stepper{display:flex;gap:4px}
.qty-step{width:32px;height:36px;border:1px solid #d8d5cb;border-radius:9px;background:#fff;cursor:pointer;font-size:1rem}
.quick-add-button{min-height:36px}
.product-detail-link{font-size:.78rem;font-weight:700;color:#655522;text-decoration:none;text-align:center;padding-top:2px}
.product-v1224.no-photo .product-body{padding-top:13px}
.product-v1224.no-photo .product-summary{display:none}
.product-v1224.no-photo{min-height:0}

/* Página de produto */
.product-detail-v1224{align-items:start;gap:clamp(22px,4vw,52px)}
.product-gallery-v1224{min-width:0;position:sticky;top:18px}
.gallery-main{position:relative;width:100%;min-height:480px;border:1px solid #e3e0d7;border-radius:20px;background:#fff;padding:20px;cursor:zoom-in;display:grid;place-items:center;overflow:hidden}
.gallery-main img{width:100%;height:440px;object-fit:contain}
.gallery-main span{position:absolute;right:14px;bottom:14px;background:rgba(20,20,20,.82);color:#fff;border-radius:999px;padding:7px 11px;font-size:.75rem;font-weight:700}
.gallery-thumbs{display:flex;gap:9px;margin-top:10px;overflow:auto;padding-bottom:2px}
.gallery-thumbs button{width:76px;height:76px;flex:0 0 76px;border:1px solid #ddd8ca;border-radius:12px;background:#fff;padding:5px;cursor:pointer}
.gallery-thumbs button.active{outline:2px solid #a98c3b;outline-offset:1px}
.gallery-thumbs img{width:100%;height:100%;object-fit:contain}
.gallery-main-empty{height:480px;border-radius:20px;border:1px dashed #d7d2c5;background:#f7f6f2;display:grid;place-items:center;color:#8a887f;font-weight:700}
.product-purchase-panel{min-width:0}
.product-purchase-panel h1{margin-bottom:8px}
.product-add-box{display:grid;grid-template-columns:minmax(90px,120px) minmax(150px,1fr);gap:9px;margin-top:16px}
.product-add-box label{font-size:.72rem;font-weight:800;color:#666;text-transform:uppercase;letter-spacing:.04em}
.product-add-box label input{display:block;width:100%;height:44px;margin-top:5px;border:1px solid #d8d5cb;border-radius:10px;padding:0 10px;font:inherit}
.product-add-box>a{grid-column:1/-1;text-align:center}
.product-info-grid-v1224{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;margin-top:26px}
.product-identification{display:grid;gap:0;margin:0 0 18px}
.product-identification>div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:9px 0;border-bottom:1px solid rgba(0,0,0,.07)}
.product-identification dt{font-size:.78rem;color:#777}
.product-identification dd{margin:0;font-weight:700}
.product-recommendation-section{margin-top:32px}
.product-zoom-dialog{border:0;border-radius:18px;padding:18px;max-width:min(94vw,1100px);max-height:94vh;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.28)}
.product-zoom-dialog::backdrop{background:rgba(0,0,0,.72)}
.product-zoom-dialog img{display:block;max-width:88vw;max-height:84vh;object-fit:contain;margin:auto}
.product-zoom-close{position:absolute;right:10px;top:10px;width:38px;height:38px;border:0;border-radius:999px;background:#111;color:#fff;font-size:1.25rem;cursor:pointer}

/* Cotação em cards */
.quote-cart-head-v1224{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:12px}
.quote-cart-head-v1224>div:first-child{display:grid;gap:2px}
.quote-cart-head-v1224>div:first-child span{font-size:.8rem;color:#777}
.quote-card-list-v1224{display:grid;gap:10px}
.quote-item-card-v1224{position:relative;display:grid;grid-template-columns:22px 94px minmax(0,1fr) auto;gap:12px;align-items:center;background:#fff;border:1px solid #e3dfd3;border-radius:16px;padding:13px}
.quote-item-select{align-self:start;padding-top:4px}
.quote-item-photo{width:94px;height:94px;border-radius:12px;background:#f7f6f2;display:grid;place-items:center;overflow:hidden;border:1px solid rgba(0,0,0,.05)}
.quote-item-photo img{width:100%;height:100%;object-fit:contain;background:#fff}
.quote-item-photo.is-empty{color:#aaa;font-size:1.4rem}
.quote-item-info{min-width:0}
.quote-item-info h3{font-size:.96rem;margin:4px 0}
.quote-item-info p{font-size:.75rem;color:#777;margin:0}
.quote-item-meta{display:flex;flex-wrap:wrap;gap:4px 9px;font-size:.7rem;color:#6c6b66;text-transform:uppercase;letter-spacing:.035em}
.quote-item-meta span:first-child{color:#725d22;font-weight:800}
.quote-item-note{display:block;margin-top:8px;font-size:.68rem;font-weight:700;color:#777}
.quote-item-note .input{margin-top:4px;height:34px;font-size:.78rem}
.quote-item-actions{display:grid;gap:7px;justify-items:stretch;min-width:140px}
.qty-v1224{justify-content:center}
.quote-cart-summary-v1224{position:sticky;bottom:10px;z-index:3;margin-top:12px;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);border:1px solid #dfdacd;border-radius:14px;padding:11px 13px;display:flex;gap:18px;align-items:center;box-shadow:0 10px 35px rgba(0,0,0,.08)}
.quote-cart-summary-v1224>div{display:grid}
.quote-cart-summary-v1224 span{font-size:.67rem;text-transform:uppercase;color:#777;font-weight:700}
.quote-cart-summary-v1224 b{font-size:1.05rem}
.quote-cart-summary-v1224 a{margin-left:auto}

/* Busca por foto */
.vision-caution{margin:10px 0 14px}
.vision-result-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.vision-result-card{border-radius:16px;overflow:hidden}

/* Home: menos competição visual */
.hero-actions .button.ghost{opacity:.88}
.hero-feature-row{opacity:.78;font-size:.9em}
.hero-search-redesign{max-width:760px}

@media (max-width:980px){
  .product-detail-v1224{grid-template-columns:1fr}
  .product-gallery-v1224{position:static}
  .gallery-main{min-height:360px}.gallery-main img{height:330px}
  .product-info-grid-v1224{grid-template-columns:1fr}
  .quote-item-card-v1224{grid-template-columns:22px 76px minmax(0,1fr)}
  .quote-item-photo{width:76px;height:76px}
  .quote-item-actions{grid-column:2/-1;display:flex;flex-wrap:wrap;align-items:center}
  .vision-result-grid{grid-template-columns:1fr!important}
}
@media (max-width:640px){
  .product-v1224 .product-visual{height:190px}
  .card-quick-add{grid-template-columns:76px 64px 1fr}
  .suggestion.product-suggestion{grid-template-columns:46px minmax(0,1fr)}
  .suggestion-thumb{width:44px;height:44px}
  .gallery-main{min-height:300px;padding:10px}.gallery-main img{height:280px}
  .product-add-box{grid-template-columns:95px 1fr}
  .product-identification>div{grid-template-columns:1fr;gap:2px}
  .quote-cart-head-v1224{align-items:flex-start;flex-direction:column}
  .quote-item-card-v1224{grid-template-columns:22px 62px minmax(0,1fr);padding:10px;gap:9px}
  .quote-item-photo{width:62px;height:62px}
  .quote-item-actions{grid-column:1/-1}
  .quote-cart-summary-v1224{flex-wrap:wrap;gap:10px}.quote-cart-summary-v1224 a{margin-left:0;width:100%;text-align:center}
}
.main-search{position:relative}
.main-search .global-search-suggestions{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:90;background:#fff;border:1px solid #ded9cc;border-radius:14px;box-shadow:0 18px 45px rgba(20,20,15,.16)}
.quote-alt-hint{display:inline-flex;margin-top:6px;padding:4px 8px;border-radius:999px;background:#f7f0d9;color:#6e5819;font-size:.7rem;font-weight:700}
