/* Compra: informações abertas, controles confortáveis e espaço para respirar. */
.pdp2 .pdp { height: auto; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto; align-items: start; gap: clamp(24px, 4vw, 64px); padding: 24px 0 36px; }
.pdp2 .crumbs { display: flex; flex-wrap: wrap; padding-top: 24px !important; }
.pdp2 .pdp__gallery { height: auto; position: sticky; top: 100px; display: grid; grid-template-rows: auto auto; gap: 16px; }
.pdp2 .pdp__main { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 740px; border-radius: 28px; background: #f1efea; }
.pdp2 .pdp__main #pdp-main-img { object-fit: contain; }
.pdp2 .pdp__main .pdp__bg { display: none; }
.pdp2 .pdp__thumbs { display: flex; justify-content: center; gap: 12px; }
.pdp2 .pdp__thumbs .thumb-info { flex: 1; min-width: 0; font-size: 12px; min-height: 76px; }
.pdp2 .pdp__info { height: auto; grid-template-rows: auto; gap: 18px; }
.pdp2 .pbox { padding: clamp(20px, 2.5vw, 32px); border-radius: 24px; }
.pdp2 .pinfo h1 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; overflow-wrap: anywhere; }
.pdp2 .pdp__short { display: block; -webkit-line-clamp: unset; overflow: visible; font-size: 16px; line-height: 1.7; margin: 18px 0; }
.pdp2 .benefits { display: grid; gap: 10px; font-size: 14px; margin: 18px 0; }
.pdp2 .pdp__meta { display: flex; flex-wrap: wrap; }
.pdp2 .opts { gap: 24px; padding-top: 18px; margin-top: 20px; }
.pdp2 .qty--lg, .pdp2 .qty--lg button { height: 46px; }
.pdp2 .qty--lg input { width: 46px; font-size: 16px; appearance: textfield; }
.pdp2 .qty--lg input::-webkit-inner-spin-button { appearance: none; }
.pdp2 .pbar { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; border-radius: 24px; }
.pdp2 .pbar__price strong { font-size: 34px; }
.pdp2 .pbar__price small { font-size: 14px; line-height: 1.6; opacity: .85; margin-top: 6px; }
.pdp2 .pbar__btns { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; }
.pdp2 .pbar__btn, .pdp2 .pbar__add { justify-content: center; height: auto; min-height: 54px; padding: 12px; font-size: 15px; }
.pdp2 .pship h3 { display: block; font-size: 20px; margin-bottom: 18px; }
.pdp2 .pship__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.pdp2 .pship__grid > div { flex-direction: row; align-items: center; padding: 12px; font-size: 13px; }
.pdp2 .pship .ship-box { display: block; margin-top: 16px; }
.product-nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 0; border-block: 1px solid #dedfd9; }
.product-nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 30px; background: #fff; font-size: 14px; }
.product-nav a:hover { background: #e9f0f0; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 28px; }
.product-detail { min-width: 0; background: #fff; border: 1px solid #e4e5df; border-radius: 24px; padding: clamp(22px, 3vw, 40px); scroll-margin-top: 110px; }
.product-detail h2 { font-size: clamp(24px, 2.5vw, 32px); margin: 10px 0 18px; }
.product-detail p { font-size: 16px; line-height: 1.8; color: #4c5757; white-space: pre-line; }
.product-detail .seals { margin-top: 24px; gap: 10px; }
.product-detail--wide { grid-column: 1 / -1; }
.product-detail .product-ingredients { font-size: 14px; overflow-wrap: anywhere; }
.product-complements { margin: 40px 0; }
.product-complements > h2 { margin-bottom: 20px; }
.pdp-deep { margin-top: 36px; }
/* Sacola: o rodapé de compra fica acessível enquanto os itens rolam. */
#drawer-cart.drawer { background: transparent !important; transition: visibility .32s; }
#drawer-cart .drawer__bg { background: #122d3b66; backdrop-filter: blur(5px); transition: opacity .32s; }
#drawer-cart .drawer__panel { width: min(520px, 100%); height: 100dvh; border-radius: 24px 0 0 24px; box-shadow: -18px 0 60px #12304022; transition: transform .32s cubic-bezier(.22,.8,.3,1); overflow: hidden; }
#drawer-cart .drawer__head { flex: 0 0 auto; padding: 24px; background: #fff; }
#drawer-cart .drawer__head h3 { font-size: 28px; margin-top: 6px; }
#cart-quantity { font-family: var(--f-body); font-size: 16px; color: #627474; }
#drawer-cart .drawer__body { min-height: 80px; padding: 0 24px 18px; overscroll-behavior: contain; }
#drawer-cart .progress { margin: 18px 0 4px; border-radius: 14px; padding: 14px; background: #eef4f1; font-size: 13px; }
#drawer-cart .progress__bar i { transition: width .3s ease; }
#drawer-cart .cart-line, #co-summary .cart-line { grid-template-columns: 76px minmax(0, 1fr) auto; gap: 14px; padding: 20px 0; }
#drawer-cart .cart-line .pimg, #co-summary .cart-line .pimg { width: 76px; height: 96px; object-fit: contain; background: #f3f1ed; border-radius: 12px; }
#drawer-cart .cart-line h4, #co-summary .cart-line h4 { font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
#drawer-cart .cart-line small, #co-summary .cart-line small { font-size: 12px; margin: 5px 0 10px; }
#drawer-cart .cart-line__price, #co-summary .cart-line__price { font-size: 14px; white-space: nowrap; }
#drawer-cart .qty, #co-summary .qty { height: 44px; width: max-content; background: #fff; }
#drawer-cart .qty button, #co-summary .qty button { width: 44px; height: 42px; }
#drawer-cart .qty span, #co-summary .qty span { min-width: 26px; text-align: center; }
#drawer-cart .remove { min-height: 36px; margin-top: 4px; color: #626e6f; }
#drawer-cart .cart-extras { padding-top: 16px; }
#drawer-cart .drawer__foot { padding: 18px 24px max(14px, env(safe-area-inset-bottom)); background: #f5f6f2; max-height: 55dvh; overflow-y: auto; flex-shrink: 0; }
#drawer-cart .sum-row { font-size: 13px; margin: 5px 0; }
#drawer-cart .sum-row--total { font-size: 22px; margin-top: 12px; padding-top: 12px; }
.cart-payment-note { font-size: 12px; line-height: 1.5; color: #626e6f; margin: 8px 0 14px; }
#drawer-cart .btn--dark { min-height: 52px; font-size: 15px; }
#drawer-cart .cart-micro { font-size: 11px; margin: 8px 0 0; }
#drawer-cart [data-close-drawer].btn { min-height: 44px; padding: 8px; font-size: 12px; }
.drawer .icon-btn { width: 44px; height: 44px; }
/* Checkout: etapas guiadas e resumo sempre aberto. */
body:has(.checkout) { background: #f6f7f3; }
.co-header { background: #fff; }
.co-intro { padding-top: 30px; }
.co-back { display: block; width: fit-content; font-size: 13px; padding: 10px 0; margin-bottom: 20px; color: #536969; }
.co-intro > .eyebrow { display: block; }
.co-intro h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.16; margin: 10px 0; }
.co-intro > p { color: #626e6f; font-size: 15px; line-height: 1.6; }
.co-review-link { display: none; }
.checkout { grid-template-columns: minmax(0, 1.35fr) minmax(340px, .85fr); gap: 32px; padding: 28px var(--gut) 80px; }
#co-left, #co-summary { min-width: 0; }
.checkout .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.checkout .steps span { letter-spacing: 0; text-transform: none; padding: 10px; justify-content: center; background: #e9ede9; }
.checkout .steps .on { background: #e0eeee; color: #244e60; }
.checkout .steps span, .checkout .muted { color: #607277; }
.checkout .co-box { padding: 28px; border: 1px solid #e1e6e0; border-radius: 22px; box-shadow: 0 8px 28px #18303a04; }
.checkout .co-box h3 { scroll-margin-top: 24px; margin-bottom: 12px; font-size: 26px; }
.checkout .co-box.locked { opacity: 1; pointer-events: auto; background: #f0f2ee; }
.checkout .co-box.locked .co-body { display: none; }
.co-next-note { margin: 0 0 0 42px !important; font-size: 13px !important; }
.checkout .co-done { line-height: 1.6; flex-wrap: wrap; }
.checkout .co-done > span { overflow-wrap: anywhere; min-width: 0; flex: 1; }
.checkout .co-done button { min-height: 44px; padding: 8px; }
.checkout .field > span { font-size: 14px; color: #334c50; }
.checkout .field small { font-size: 12px; color: #717e80; }
.checkout .input, .checkout .select { min-height: 52px; border-radius: 12px; background: #fff; font-size: 16px; padding: 12px 14px; }
.checkout .input:focus { border-color: #315d70; box-shadow: 0 0 0 3px #315d7018; }
.checkout [aria-invalid="true"] { border-color: #b54c42; background: #fffafa; }
.checkout .form-error:empty { display: none; }
.checkout .form-error:not(:empty) { background: #fff0ed; color: #8c352e; padding: 12px; border-radius: 10px; line-height: 1.5; }
.checkout .check { font-size: 13px; line-height: 1.6; align-items: flex-start; }
.checkout .check input { flex-shrink: 0; margin-top: 3px; width: 20px; height: 20px; }
.checkout .btn--dark { min-height: 52px; font-size: 15px; }
.checkout .rcard { padding: 16px; gap: 12px; border-radius: 14px; background: #fff; }
.checkout .rcard input { flex-shrink: 0; width: 20px; height: 20px; }
.checkout .rcard:has(input:checked) { background: #eff6f3; border-color: #315d70; box-shadow: inset 0 0 0 1px #315d70; }
.checkout .rcard div { min-width: 0; }
.checkout .rcard small { display: block; margin-top: 3px; }
.checkout .rcard .rprice { white-space: nowrap; font-size: 14px; }
.checkout .secure-redirect { border-radius: 14px; padding: 18px; }
#co-summary { background: #fff; border: 1px solid #e1e6e0; border-radius: 22px; padding: 26px; position: sticky; top: 24px; order: 0; overflow: visible; scroll-margin-top: 24px; }
#co-summary .co-sum-body { display: block; padding: 0; }
.co-summary-heading h2 { font-size: 27px; margin: 8px 0; }
.co-summary-heading h2 span { font: 13px var(--f-body); color: #68797b; }
.co-summary-heading p { font-size: 13px; color: #68797b; line-height: 1.5; }
#co-summary .sum-row { font-size: 14px; gap: 16px; }
#co-summary .sum-row > :last-child { flex-shrink: 0; }
#co-summary .sum-row--total { font-size: 24px; }
.co-total-note { font-size: 12px; line-height: 1.6; color: #68797b; }
#co-summary .co-trust { border-top: 1px solid #e1e6e0; padding-top: 18px; margin-top: 18px; font-size: 12px; }
.checkout .coupon-form, #drawer-cart .coupon-form { gap: 8px; }
.checkout .coupon-form input, #drawer-cart .coupon-form input { min-width: 0; width: 100%; font-size: 16px; border-radius: 12px; }
.checkout .coupon-form button, #drawer-cart .coupon-form button { flex-shrink: 0; min-height: 46px; }
:is(.pdp2, .checkout, #drawer-cart) :is(button, a, input, select):focus-visible { outline: 3px solid #51859a; outline-offset: 3px; }
:is(.pdp2, .checkout, #drawer-cart) button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 1000px) {
  .pdp2 .pdp { gap: 24px; }
  .checkout { grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr); gap: 20px; }
  .checkout .co-box, #co-summary { padding: 20px; }
  .checkout .rcard > .ico { display: none; }
}
@media (max-width: 760px) {
  .pdp2 .pdp { grid-template-columns: minmax(0, 1fr); padding-top: 16px; }
  .pdp2 .pdp__gallery { position: static; }
  .pdp2 .pdp__main { aspect-ratio: 1; max-height: 480px; }
  .pdp2 .pdp__thumbs { display: none; }
  .pdp2 .pdp__thumbs.has-imgs { display: flex; }
  .pdp2 .pbox { padding: 22px; }
  .pdp2 .pinfo h1 { font-size: 34px; }
  .pdp2 .pbar { padding: 22px; }
  .product-details { grid-template-columns: 1fr; gap: 14px; }
  .product-nav { gap: 6px; }
  .product-nav a { font-size: 12px; padding: 10px 12px; }
  .product-detail { scroll-margin-top: 90px; }
  .checkout { display: flex; flex-direction: column; padding-bottom: 40px; gap: 24px; }
  #co-left, #co-summary { width: 100%; }
  #co-summary { position: static; order: 0; }
  .co-intro { padding-top: 18px; }
  .co-back { margin-bottom: 14px; }
  .co-intro > .eyebrow { font-size: 10px; letter-spacing: .12em; }
  .co-review-link { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-top: 16px; min-height: 44px; width: fit-content; border-bottom: 1px solid #bacbc9; }
  .checkout .co-box { padding: 22px 18px; margin-bottom: 14px; }
  .checkout .steps span { font-size: 12px; gap: 5px; padding: 8px 4px; }
  .checkout .steps span i { width: 22px; height: 22px; flex-shrink: 0; }
  .checkout .form-grid > .field, .checkout .form-grid > .c4 { grid-column: 1 / -1; }
  .checkout .form-grid > .half { grid-column: span 3; }
  .checkout .btn--dark { width: 100%; padding-inline: 14px; }
  .co-header .wrap { height: 68px; }
  .co-secure { font-size: 10px; gap: 5px; letter-spacing: 0; }
  body:has(.checkout) .chat-fab { display: none; }
}
@media (max-width: 600px) {
  #drawer-cart .drawer__panel { top: auto; bottom: 0; height: calc(100dvh - 12px); width: 100%; border-radius: 22px 22px 0 0; transform: translateY(102%); }
  #drawer-cart.open .drawer__panel { transform: none; }
  #drawer-cart .drawer__head { padding: 22px 18px 14px; }
  #drawer-cart .drawer__head .eyebrow { font-size: 9px; }
  #drawer-cart .drawer__head h3 { font-size: 25px; }
  #drawer-cart .drawer__body { padding-inline: 18px; }
  #drawer-cart .drawer__foot { padding: 12px 18px max(10px, env(safe-area-inset-bottom)); }
  #drawer-cart .cart-line, #co-summary .cart-line { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; }
  #drawer-cart .cart-line .pimg, #co-summary .cart-line .pimg { width: 62px; height: 84px; }
  #drawer-cart .cart-line h4, #co-summary .cart-line h4 { font-size: 14px; }
  #drawer-cart .cart-line__price, #co-summary .cart-line__price { font-size: 12px; }
  #drawer-cart .drawer__foot .sum-row--total { font-size: 21px; }
  #drawer-cart .cart-micro { display: none; }
}
@media (max-width: 370px) {
  .pdp2 .pbox, .pdp2 .pbar { padding: 18px; }
  .pdp2 .pbar__btns { grid-template-columns: 1fr; }
  .pdp2 .pship__grid { grid-template-columns: 1fr; }
  #drawer-cart .cart-line, #co-summary .cart-line { grid-template-columns: 56px minmax(0, 1fr); }
  #drawer-cart .cart-line__price, #co-summary .cart-line__price { grid-column: 2; text-align: left; margin-top: -6px; }
}
@media (prefers-reduced-motion: reduce) {
  #drawer-cart, #drawer-cart *, .checkout *, .pdp2 * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
