:root{--topbar:#ffea78;--card:#fff;--muted:#777;--line:#eee}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,sans-serif;background:var(--c-bg,#f5f5f5);color:var(--c-text,#333);overflow-x:hidden}
a{color:var(--c-primary,#3483fa)}
.topbar{background:var(--topbar);padding:12px 16px;border-bottom:1px solid #e6d57a}
.topbar-inner{max-width:960px;margin:0 auto;display:flex;align-items:center;gap:12px;justify-content:space-between}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.brand img{max-height:36px}
.search-fake{flex:1;max-width:420px;background:#fff;border:1px solid #ddd;border-radius:20px;padding:8px 14px;color:#999;font-size:14px}
.wrap{max-width:560px;margin:24px auto;padding:0 16px 48px}
.card{background:var(--card);border-radius:10px;padding:20px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.steps{display:flex;gap:6px;margin-bottom:16px;font-size:12px;color:var(--muted)}
.step-active{font-weight:700;color:var(--c-primary)}
label{display:block;margin:12px 0 6px;font-size:13px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #ccc;border-radius:8px;font-size:15px}
.btn{display:inline-block;background:var(--c-btn,#3483fa);color:#fff;border:none;padding:12px 18px;border-radius:8px;font-weight:600;cursor:pointer;text-decoration:none;text-align:center}
.btn.secondary{background:#fff;color:var(--c-text);border:1px solid #ccc}
.btn:disabled{opacity:.6;cursor:not-allowed}
.row{display:flex;gap:10px;flex-wrap:wrap}
.row>*{flex:1}
.price-old{text-decoration:line-through;color:#999;font-size:14px}
.price-new{font-size:22px;font-weight:800;color:var(--c-secondary,#00a650)}
.badge{display:inline-block;background:#e8f5e9;color:#1b5e20;padding:4px 8px;border-radius:6px;font-size:12px;font-weight:600}
.footer-note{text-align:center;color:var(--muted);font-size:12px;margin-top:24px}
.err{background:#ffebee;color:#b71c1c;padding:10px;border-radius:8px;margin:10px 0;font-size:14px}
.okmsg{background:#e8f5e9;color:#1b5e20;padding:10px;border-radius:8px;margin:10px 0}
.rating{color:#ffa41c;font-weight:700}
.pix-box{text-align:center}
.pix-box img{max-width:260px}
#pixTimer{font-size:18px;font-weight:700;margin:8px 0}

/* --- PDP marketplace (header ML + card produto) --- */
.pdp-ml-page{background:#eee;color:#333}

.ml-header{background:#FFE600;border-bottom:1px solid rgba(0,0,0,.08);box-shadow:0 1px 0 rgba(255,255,255,.35) inset}
.ml-header-inner{max-width:1200px;margin:0 auto;padding:10px 16px 0;min-width:0}
.ml-header-top{display:flex;flex-direction:column;gap:8px;padding-bottom:8px}
.ml-row-main{display:flex;align-items:center;gap:12px;min-width:0;width:100%}
.ml-left{display:flex;align-items:center;gap:8px;flex-shrink:0;min-width:0}
.ml-brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#333;font-weight:700;font-size:18px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}
.ml-brand img{max-height:34px;display:block}
.ml-search-wrap{flex:1;min-width:0;position:relative;display:flex;align-items:center}
.ml-search{width:100%;min-width:0;padding:11px 44px 11px 14px;border:1px solid #E5E5E5;border-radius:2px;font-size:14px;color:#333;background:#fff;box-sizing:border-box}
.ml-search::placeholder{color:#999}
.ml-search-ico{position:absolute;right:10px;top:50%;transform:translateY(-50%);pointer-events:none;color:#666;display:flex}
.ml-ico{width:20px;height:20px}
.ml-icons-right{display:flex;align-items:center;gap:2px;flex-shrink:0}
.ml-iconbtn{background:transparent;border:none;padding:6px;cursor:pointer;color:#333;display:inline-flex;align-items:center;justify-content:center;border-radius:4px;flex-shrink:0}
.ml-iconbtn:hover{background:rgba(255,255,255,.5)}
.ml-iconbtn .svg-icon{display:block;flex-shrink:0}
.ml-row-loc{font-size:12px;color:#333;padding:0 0 8px;line-height:1.35}
.ml-location-label{color:#666;margin-right:6px}
.ml-location-value{font-weight:600}
.ml-nav{display:flex;flex-wrap:wrap;gap:6px 14px;padding:8px 0 10px;border-top:1px solid rgba(0,0,0,.06);font-size:13px}
.ml-nav-link{color:#333;text-decoration:none;white-space:nowrap}
.ml-nav-link:hover{color:#3483FA}
.ml-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}

@media (max-width:768px){
  .ml-header-inner{padding:8px 12px 0}
  .ml-row-main{flex-wrap:wrap}
  .ml-search-wrap{flex:1 1 100%;order:3}
  .ml-left{order:1}
  .ml-icons-right{order:2;margin-left:auto}
  .ml-row-loc{order:4;width:100%}
}
@media (max-width:480px){
  .ml-header-inner{padding:6px 8px 0}
  .ml-brand{font-size:15px;max-width:140px}
  .ml-iconbtn{padding:4px}
  .ml-iconbtn .svg-icon{width:20px!important;height:20px!important}
  .ml-search{padding:9px 40px 9px 10px;font-size:13px}
}

.pdp-page{background:#eee;padding:16px 0 32px;min-width:0}
.pdp-page-inner{max-width:1180px;margin:0 auto;padding:0 16px;min-width:0}
.pdp-page-err{margin-bottom:12px}
.pdp-back{display:inline-block;margin-bottom:12px;font-size:14px;color:#3483FA;text-decoration:none;font-weight:600}
.pdp-back:hover{text-decoration:underline}

.pdp-card{background:#fff;border-radius:4px;border:1px solid #E5E5E5;box-shadow:0 1px 2px rgba(0,0,0,.04);overflow:hidden}
.pdp-top{display:grid;grid-template-columns:55px minmax(260px,450px) minmax(220px,1fr) minmax(260px,300px);gap:16px 20px;padding:20px 20px 24px;align-items:start;border-bottom:1px solid #E5E5E5}

.pdp-gallery{display:flex;flex-direction:column;gap:8px;width:55px;flex-shrink:0}
.pdp-gallery .pdp-thumb{width:55px;height:55px;padding:0;border:1px solid #E5E5E5;border-radius:2px;background:#fff;cursor:pointer;overflow:hidden;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.pdp-gallery .pdp-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.pdp-gallery .pdp-thumb.is-active,.pdp-gallery .pdp-thumb:hover:not(:disabled){border-color:#3483FA;box-shadow:0 0 0 1px #3483FA}
.pdp-thumb--more{font-size:14px;font-weight:700;color:#3483FA;cursor:default;opacity:.9}

.pdp-image-main{background:#fff;border:1px solid #E5E5E5;border-radius:4px;min-height:360px;display:flex;align-items:center;justify-content:center;padding:16px;min-width:0}
.pdp-image-main__img{max-width:100%;max-height:520px;width:auto;height:auto;object-fit:contain;display:block}
.pdp-image-main__placeholder{color:#999;padding:60px;text-align:center;width:100%}

.pdp-info{min-width:0;padding-right:8px}
.pdp-info-brandlink{display:block;font-size:13px;color:#3483FA;margin-bottom:8px;text-decoration:none}
.pdp-info-brandlink:hover{text-decoration:underline}
.pdp-info-condition{font-size:14px;color:#666;margin:0 0 8px}
.pdp-info-sep{color:#ccc;margin:0 6px}
.pdp-badges{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.pdp-badge{font-size:11px;font-weight:700;padding:3px 8px;border-radius:2px;text-transform:uppercase}
.pdp-badge--hot{background:#ff6600;color:#fff}
.pdp-badge--day{background:#3483FA;color:#fff}
.pdp-info-cat{font-size:13px;color:#999;margin:0 0 8px}
.pdp-title{font-size:22px;font-weight:400;line-height:1.25;margin:0 0 10px;color:#333}
.pdp-rating{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:14px;font-size:14px}
.pdp-rating-stars .pdp-stars-svg{display:inline-flex;gap:1px}
.pdp-rating-stars .ico-filled{color:#3483FA}
.pdp-rating-stars .ico-empty{color:#3483FA;opacity:.35}
.pdp-rating-num{font-weight:700;color:#3483FA}
.pdp-rating-count{color:#666}

.pdp-price{padding-bottom:14px;border-bottom:1px solid #eee;margin-bottom:12px}
.pdp-price-old{font-size:16px;color:#999;text-decoration:line-through}
.pdp-coupon-pill{display:inline-flex;align-items:center;gap:8px;margin:8px 0 4px;flex-wrap:wrap}
.pdp-coupon-pill__tag{background:#e6f7ef;color:#00A650;font-size:12px;font-weight:700;padding:3px 8px;border-radius:2px;text-transform:uppercase}
.pdp-coupon-pill__off{font-size:13px;color:#00A650;font-weight:600}
.pdp-price-current{font-size:32px;font-weight:300;color:#333;margin-top:4px}
.pdp-price-note{font-size:13px;color:#666;margin:8px 0 0;line-height:1.45}
.pdp-promo{font-size:13px;color:#666;margin:8px 0 0}

.pdp-variants{margin-top:12px;padding-top:12px;border-top:1px solid #eee}
.pdp-variants-label{font-size:14px;color:#666;margin:0 0 8px}
.pdp-color-sw{display:flex;gap:8px;margin-bottom:14px}
.pdp-color-sw__dot{width:28px;height:28px;border-radius:50%;border:2px solid #E5E5E5;cursor:default;background:#fff;box-shadow:inset 0 0 0 3px #f5f5f5}
.pdp-color-sw__dot.is-on{border-color:#3483FA}
.pdp-color-sw__dot--muted{background:#ccc}
.pdp-var-btns{display:flex;gap:8px}
.pdp-var-btn{padding:8px 14px;border:1px solid #E5E5E5;border-radius:4px;background:#fff;font-size:13px;cursor:default;color:#333}
.pdp-var-btn.is-on{border-color:#3483FA;color:#3483FA;font-weight:600}

.pdp-col-buy{display:flex;flex-direction:column;gap:12px;min-width:0;position:sticky;top:8px;align-self:start}
.buy-card{border:1px solid #E5E5E5;border-radius:6px;padding:14px 14px 16px;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.buy-card-frete{margin-bottom:10px}
.buy-card-frete-badge{display:inline-block;background:#00A650;color:#fff;font-size:11px;font-weight:700;padding:4px 8px;border-radius:2px;margin-bottom:8px}
.buy-card-frete-badge--paid{background:#3483FA}
.buy-card-frete-main{font-size:15px;font-weight:600;color:#00A650;margin:0 0 4px;line-height:1.35}
.buy-card-frete--free .buy-card-frete-main{color:#00A650}
.buy-card-frete-sub{font-size:12px;color:#666;margin:0 0 8px}
.buy-card-frete-link{font-size:13px;color:#3483FA;text-decoration:none;font-weight:600}
.buy-card-frete-link:hover{text-decoration:underline}
.buy-card-sep{border:none;border-top:1px solid #E5E5E5;margin:12px 0}
.delivery-destination{border-top:1px solid #eeeeee;border-bottom:1px solid #eeeeee;padding:13px 0;margin:14px 0 16px;font-size:13px;color:#666666}
.delivery-destination b{display:block;color:#333333;font-size:14px;margin-top:2px;font-weight:600}
.delivery-destination a{color:#3483FA;text-decoration:none;font-size:13px;display:inline-block;margin-top:8px}
.delivery-destination a:hover{text-decoration:underline}
.buy-stock-title{font-size:15px;font-weight:600;margin:0 0 10px;color:#333}
.buy-form{margin:0}
.buy-qty-label{display:block;font-size:14px;font-weight:600;margin-bottom:8px;color:#333}
.buy-select{width:100%;min-width:0;padding:12px;border:1px solid #E5E5E5;border-radius:4px;font-size:15px;background:#fff;box-sizing:border-box}
.buy-qty-row{margin-bottom:6px}
.buy-qty-extra{font-size:13px;color:#00A650;font-weight:600;margin:4px 0}
.buy-qty-max{font-size:12px;color:#666;margin:0 0 14px}
.buy-btn{width:100%;padding:14px;border:none;border-radius:6px;background:#3483FA;color:#fff;font-size:16px;font-weight:600;cursor:pointer;margin-top:4px}
.buy-btn:hover{filter:brightness(1.05)}
.benefits{display:grid;gap:14px;margin-top:22px;padding-top:16px;border-top:1px solid #E5E5E5}
.benefit{display:grid;grid-template-columns:20px 1fr;gap:8px;font-size:13px;color:#666666;line-height:1.35;align-items:start}
.benefit-ico{display:flex;align-items:flex-start;padding-top:1px}
.benefit-ico svg{display:block;flex-shrink:0}
.benefit b{display:block;color:#3483FA;font-weight:400;margin-bottom:2px}
.benefit i{color:#777777;font-style:normal}

.seller-card{padding:18px 18px 16px;border:1px solid #E5E5E5;border-radius:8px;background:#ffffff;font-size:13px}
.seller-title{font-size:18px;font-weight:600;color:#333333;margin-bottom:6px}
.official-store{font-size:13px;color:#3483FA;margin-bottom:8px}
.seller-subline{font-size:12px;color:#666666;line-height:1.35;margin-bottom:12px}
.platinum-line{display:flex;align-items:center;gap:6px;color:#00A650;font-size:13px;font-weight:600;margin-bottom:3px}
.platinum-line svg{width:15px;height:15px;flex-shrink:0}
.rep-thermo{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:12px 0 14px}
.rep-thermo span{height:8px;border-radius:2px;background:#dddddd}
.rep-thermo span:nth-child(1){background:#fff0c2}
.rep-thermo span:nth-child(2){background:#ffe082}
.rep-thermo span:nth-child(3){background:#cdebb3}
.rep-thermo span:nth-child(4){background:#7bdc8d}
.rep-thermo span:nth-child(5){background:#00A650}
.seller-metrics{display:grid;grid-template-columns:1fr 1fr 1fr;gap:0;text-align:center;font-size:12px;color:#666666;border-top:1px solid #f1f1f1;padding-top:12px}
.seller-metrics div{padding:0 8px;border-right:1px solid #eeeeee}
.seller-metrics div:last-child{border-right:0}
.seller-metrics b{display:block;color:#333333;font-size:13px;margin-bottom:6px}
.seller-metrics svg{display:block;margin:0 auto 6px;width:20px;height:20px;color:#00A650}

.pay-card{padding:18px;border:1px solid #E5E5E5;border-radius:8px;background:#ffffff}
.pay-card h3{font-size:15px;font-weight:600;margin:0 0 14px;color:#333}
.pay-method-row{display:flex;align-items:center;gap:12px;margin-top:8px;color:#333333;font-size:14px;font-weight:600}
.pix-real{width:31px;height:31px;display:block;flex-shrink:0}

.pdp-description{padding:20px 24px 28px}
.pdp-description-title{font-size:20px;font-weight:400;margin:0 0 14px;color:#333}
.pdp-desc-body{font-size:15px;line-height:1.55;color:#666}
.pdp-desc-shell:not(.is-expanded) .pdp-desc-body{max-height:8em;overflow:hidden;position:relative}
.pdp-desc-shell:not(.is-expanded) .pdp-desc-body::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2.5em;background:linear-gradient(to bottom,rgba(255,255,255,0),#fff)}
.pdp-desc-shell.is-expanded .pdp-desc-body{max-height:none}
.pdp-desc-shell.is-expanded .pdp-desc-body::after{display:none}
.pdp-desc-linkbtn{margin-top:12px;padding:0;border:none;background:none;color:#3483FA;font-weight:600;font-size:14px;cursor:pointer;text-decoration:underline;font-family:inherit}
.pdp-desc-linkbtn:focus{outline:2px solid #3483FA;outline-offset:2px}

.pdp-footer{max-width:1180px;margin:20px auto 0;padding:0 16px 40px;font-size:12px;color:#666}
.pdp-footer-block{margin-bottom:16px}
.pdp-footer-h{font-size:13px;font-weight:600;color:#333;margin:0 0 8px}
.pdp-footer-terms{line-height:1.5;margin:0}
.pdp-footer-letters{display:flex;flex-wrap:wrap;gap:4px 8px}
.pdp-footer-letters a{color:#3483FA;text-decoration:none;font-weight:600}
.pdp-footer-nav{display:flex;flex-wrap:wrap;gap:8px 14px;margin:16px 0;border-top:1px solid #ddd;padding-top:14px}
.pdp-footer-nav a{color:#666;text-decoration:none}
.pdp-footer-nav a:hover{color:#3483FA}
.pdp-footer-copy{margin:12px 0 0;font-size:11px;color:#999}

.pdp-site-footer-wrap{max-width:1180px;margin:0 auto;padding:16px 16px 32px;text-align:center}

@media (max-width:900px){
  .pdp-top{display:flex;flex-direction:column}
  .pdp-image-main{order:1;width:100%}
  .pdp-gallery{order:2;flex-direction:row;width:100%;overflow-x:auto;padding-bottom:4px;gap:8px;-webkit-overflow-scrolling:touch}
  .pdp-gallery .pdp-thumb{flex-shrink:0}
  .pdp-info{order:3;width:100%;padding-right:0}
  .pdp-col-buy{order:4;width:100%;max-width:none}
}
