/* ============================================================
   INFOX Loja — Reforma Visual Produto v1
   Camada visual adicional. Não altera regras de preço, estoque,
   carrinho, galeria, SEO ou banco de dados.
   ============================================================ */

:root{
  --pv1-navy:#061a3d;
  --pv1-navy-2:#0a244f;
  --pv1-blue:var(--primary,#0755da);
  --pv1-bg:#f5f7fb;
  --pv1-card:#ffffff;
  --pv1-ink:#0e2746;
  --pv1-muted:#65758a;
  --pv1-line:#dfe6ef;
  --pv1-soft:#f7f9fc;
  --pv1-success:#137245;
}

html{scroll-behavior:smooth}
body.infox-product-commerce-v1{background:var(--pv1-bg);color:var(--pv1-ink)}
body.infox-product-commerce-v1 .wrap{width:min(1460px,calc(100% - 38px));margin-inline:auto}
.productShell{width:min(1460px,calc(100% - 38px));margin-inline:auto}

/* Cabeçalho comercial em três níveis */
.productTopStrip{background:#1769c8;color:#fff;font-size:12px}
.productTopStripInner{min-height:34px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.productTopStrip a{color:#fff;font-weight:800}
.productTopStrip span{color:#d9eaff}
.productSiteHeader{background:var(--pv1-navy);border:0;box-shadow:0 1px 0 rgba(255,255,255,.06)}
.productHeaderMain{min-height:76px;display:grid;grid-template-columns:auto minmax(300px,1fr) auto;align-items:center;gap:28px}
.productHeaderBrand{color:#fff!important;min-width:190px}
.productHeaderBrand small{color:#9fb7d7!important}
.productHeaderBrand.logoBrand{display:flex;align-items:center}
.productHeaderBrand.logoBrand .brandLogo{display:block;max-width:190px;max-height:52px;object-fit:contain}
.productCatalogSearch{height:44px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff;border-radius:8px;padding:0 14px 0 18px;color:#6e7d91;box-shadow:inset 0 0 0 1px rgba(15,36,67,.08);font-size:13px}
.productCatalogSearch b{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--pv1-blue);font:800 22px/1 Arial}
.productHeaderActions{display:flex;align-items:center;gap:20px;color:#fff}
.productHeaderActions>a:not(.productHeaderCart){display:flex;flex-direction:column;gap:1px;white-space:nowrap}
.productHeaderActions small{font-size:10px;color:#9db4d2}
.productHeaderActions strong{font-size:12px;color:#fff}
.productHeaderCart{width:46px;height:42px;border-radius:8px;background:#1769c8;display:grid;place-items:center;font-size:21px}
.productNavBar{background:#111a27;border-top:1px solid rgba(255,255,255,.06)}
.productNavInner{min-height:46px;display:flex;align-items:center;gap:8px;color:#d9e2ee;font-size:12px;font-weight:800}
.productNavInner a{display:flex;align-items:center;min-height:34px;padding:0 13px;border-radius:6px;transition:.16s}
.productNavInner a:hover{background:rgba(255,255,255,.08);color:#fff}
.productNavPrimary{background:#1769c8!important;color:#fff!important;padding-inline:17px!important}
.productNavSpacer{flex:1}

/* Navegação */
.productContentWrap{padding-bottom:28px}
body.infox-product-commerce-v1 .breadcrumbs{padding:20px 0 16px;font-size:12px;color:#738198}
body.infox-product-commerce-v1 .breadcrumbs a{color:#4f6480}
body.infox-product-commerce-v1 .breadcrumbs span:last-child{color:#8d99a8;max-width:720px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Layout principal semelhante aos grandes e-commerces: galeria + resumo + compra */
.productCommerceLayout{
  display:grid!important;
  grid-template-columns:minmax(0,1.15fr) minmax(310px,.82fr) minmax(300px,.64fr)!important;
  align-items:start!important;
  gap:26px!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.productGalleryCard{background:#fff;border:1px solid var(--pv1-line);border-radius:14px;padding:18px;box-shadow:0 8px 30px rgba(14,39,70,.045)}
.productGalleryCard .photo{height:545px!important;min-height:545px!important;background:#fff!important;border:0!important;border-radius:10px!important}
.productGalleryCard .mainPhotoButton{padding:24px!important}
.productGalleryCard .galleryArrow{border-color:#d9e1eb;background:rgba(255,255,255,.94);color:#154c9b}
.productGalleryCard .zoomHint{background:rgba(7,31,65,.78)}
.productGalleryCard .thumbs{gap:12px;padding:14px 0 1px}
.productGalleryCard .galleryThumb{flex-basis:86px;height:78px;border:1px solid #e0e6ee;border-radius:8px;padding:5px}
.productGalleryCard .galleryThumb.active{border:2px solid var(--pv1-blue);box-shadow:0 0 0 2px rgba(7,85,218,.08)}
.productGalleryCard .infox-gallery-more{margin-top:14px;padding:0}
.productGalleryCard .infox-moreinfo-btn{width:100%;min-width:0;min-height:40px!important;border-radius:7px!important;background:#f7faff!important;border-color:#cfdced!important;color:#155fc3!important}

/* Resumo central */
.productSummary{padding:8px 0 0;min-width:0}
.productMetaTop{display:flex;align-items:center;gap:9px;min-height:28px}
.productMetaTop .pill{margin:0;background:#eaf2ff;color:#0755da;border-radius:4px;padding:6px 8px}
.productMetaTop .category{font-size:12px;color:#6b7990;font-weight:700}
.productSummary h1{font:800 clamp(27px,2.25vw,36px)/1.15 'Manrope',Arial,sans-serif!important;letter-spacing:-.8px!important;color:#071f40;margin:13px 0 13px!important}
.productIdentityLine{display:flex;gap:16px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--pv1-line);color:#66788f;font-size:12px}
.productIdentityLine strong{color:#233c5a}
.productSummaryLabel{margin-top:20px;color:#1262bd;font-size:12px;font-weight:900;letter-spacing:.25px}
.productSummaryLabel:before{content:'●';font-size:8px;margin-right:7px;vertical-align:2px}
.productSummary .description{margin:9px 0 20px!important;color:#2a3c52!important;font-size:14px!important;line-height:1.62!important}
.productSpecs{grid-template-columns:repeat(2,minmax(0,1fr))!important;margin:0 0 18px!important;background:#fff;border:1px solid var(--pv1-line)!important;border-radius:10px;overflow:hidden}
.productSpecs div{padding:12px 14px!important;border-bottom:1px solid #edf1f5}
.productSpecs div:nth-child(odd){border-right:1px solid #edf1f5}
.productSpecs span{font-size:10px!important;text-transform:uppercase;letter-spacing:.5px}
.productSpecs b{font-size:12px!important;color:#193654}
.productSupportBox{background:#eef6ff;border:1px solid #d2e5fb;border-radius:10px;padding:15px 16px;display:flex;flex-direction:column;gap:6px}
.productSupportBox strong{font-size:13px;color:#0d4f9b}
.productSupportBox span{font-size:12px;line-height:1.5;color:#5a6d83}
.productSupportBox a{font-size:12px;font-weight:900;color:#0755da;width:max-content}

/* Card de compra */
.buyCard{position:sticky;top:18px;background:#fff;border:1px solid #dbe3ed;border-radius:14px;padding:20px;box-shadow:0 10px 34px rgba(17,43,78,.075);min-width:0}
.buyCardEyebrow{font-size:10px;font-weight:900;letter-spacing:.9px;color:#6f7e90;margin-bottom:9px}
.buyCard .old{font-size:13px!important;color:#98a4b3!important;margin:0 0 5px!important}
.buyCard .price{font:900 clamp(34px,2.7vw,44px)/1 'Manrope',Arial,sans-serif!important;color:#1763bf!important;letter-spacing:-1.3px!important;margin:0!important;white-space:nowrap}
.buyPriceNote{font-size:12px;color:#6a7a90;margin-top:6px;line-height:1.45}
.buyCardDivider{height:1px;background:#e6ebf1;margin:17px 0}
.buyCard #productAddCart{width:100%;min-height:48px;border:0;border-radius:8px;background:#1469cf!important;color:#fff;font-size:14px;font-weight:900;box-shadow:0 7px 16px rgba(20,105,207,.17);cursor:pointer;transition:.16s}
.buyCard #productAddCart:hover{transform:translateY(-1px);filter:brightness(.96)}
.buyCard #productAddCart:disabled{cursor:not-allowed;opacity:.55;transform:none}
.buyStock{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 1px 0}
.buyStock .stock{margin:0!important;padding:5px 9px!important;font-size:11px!important}
.buyStock>strong{font-size:12px;font-weight:500;color:#1a5fae}
.buyWhatsapp,.buyContinue{display:flex;align-items:center;justify-content:center;width:100%;min-height:43px;border-radius:8px;font-size:13px;font-weight:900;margin-top:10px;transition:.16s}
.buyWhatsapp{background:#fff;border:1.5px solid #25c763;color:#15944b}
.buyWhatsapp:hover{background:#effcf4}
.buyContinue{background:#f3f7fc;border:1px solid #d9e3ef;color:#3f5b79}
.buyContinue:hover{background:#eaf1f9}
.buyBenefits{display:grid;gap:0;margin:18px -2px 0;border-top:1px solid #edf1f5;border-bottom:1px solid #edf1f5;padding:7px 0}
.buyBenefits>div{display:grid;grid-template-columns:20px 1fr;gap:7px;align-items:start;padding:8px 2px}
.buyBenefits>b,.buyBenefits div>b{color:#1769c8;font-size:13px}
.buyBenefits span{display:flex;flex-direction:column;gap:2px}
.buyBenefits strong{font-size:11px;color:#29435f}
.buyBenefits small{font-size:10px;color:#7a8899;line-height:1.35}
.buyCard .fineprint{font-size:9.5px!important;line-height:1.55!important;color:#8591a0!important;margin:13px 0 0!important}

/* Relacionados */
body.infox-product-commerce-v1 .related{padding:38px 0 18px}
body.infox-product-commerce-v1 .sectionHead{border-top:1px solid #dde5ee;padding-top:26px}
body.infox-product-commerce-v1 .sectionHead h2{color:#0b2748}
body.infox-product-commerce-v1 .relatedGrid{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
body.infox-product-commerce-v1 .relatedCard{border-radius:10px;border-color:#dfe6ee;box-shadow:0 3px 14px rgba(14,39,70,.035)}
body.infox-product-commerce-v1 .relatedCard:hover{transform:translateY(-3px);box-shadow:0 9px 24px rgba(14,39,70,.09)}

/* Rodapé */
body.infox-product-commerce-v1 footer{margin-top:12px;border-top:1px solid #dfe6ef;background:#fff}

@media(max-width:1180px){
  .productHeaderMain{grid-template-columns:auto 1fr;gap:20px}.productHeaderActions{grid-column:1/-1;justify-content:flex-end;margin-top:-12px;padding-bottom:14px}.productCatalogSearch{min-width:0}
  .productCommerceLayout{grid-template-columns:minmax(0,1.05fr) minmax(330px,.95fr)!important}
  .productSummary{padding-top:0}.buyCard{position:static;grid-column:2;grid-row:2}.productGalleryCard{grid-row:1 / span 2}
  body.infox-product-commerce-v1 .relatedGrid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:860px){
  body.infox-product-commerce-v1 .wrap,.productShell{width:min(100% - 24px,1460px)}
  .productTopStripInner{justify-content:center;text-align:center;padding:7px 0}.productTopStripInner>span{display:none}
  .productHeaderMain{display:flex;min-height:68px;padding:10px 0;gap:14px}.productHeaderBrand{min-width:0}.productHeaderBrand.logoBrand .brandLogo{max-width:132px;max-height:42px}.productCatalogSearch{flex:1;height:40px;padding-left:12px}.productCatalogSearch span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.productHeaderActions>a:not(.productHeaderCart){display:none}.productHeaderActions{display:block;grid-column:auto;margin:0;padding:0}.productHeaderCart{width:40px;height:40px}
  .productNavInner{overflow-x:auto;scrollbar-width:none}.productNavInner::-webkit-scrollbar{display:none}.productNavInner a{white-space:nowrap}.productNavSpacer{display:none}
  body.infox-product-commerce-v1 .breadcrumbs{padding:14px 0 12px}
  .productCommerceLayout{grid-template-columns:1fr!important;gap:16px!important}
  .productGalleryCard,.productSummary,.buyCard{grid-column:auto!important;grid-row:auto!important}
  .productGalleryCard{padding:12px}.productGalleryCard .photo{height:390px!important;min-height:390px!important}
  .productSummary{padding:4px 2px}.productSummary h1{font-size:28px!important}.productSpecs{grid-template-columns:1fr 1fr!important}
  .buyCard{position:static;padding:18px}.buyCard .price{font-size:42px!important}
  body.infox-product-commerce-v1 .relatedGrid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:560px){
  .productHeaderMain{gap:9px}.productCatalogSearch{display:none}.productHeaderActions{margin-left:auto}.productNavInner{gap:3px}.productNavInner a{padding-inline:10px}
  .productGalleryCard .photo{height:325px!important;min-height:325px!important}.productGalleryCard .mainPhotoButton{padding:18px!important}.productGalleryCard .galleryArrow{width:36px;height:36px}
  .productSummary h1{font-size:25px!important;letter-spacing:-.4px!important}.productIdentityLine{gap:8px 14px}.productSpecs{grid-template-columns:1fr!important}.productSpecs div:nth-child(odd){border-right:0}
  .buyCard .price{font-size:38px!important;white-space:normal}.buyBenefits{margin-top:15px}
  body.infox-product-commerce-v1 .relatedGrid{grid-template-columns:1fr 1fr;gap:10px}
}
