/* VEJA HOME V47.36 — Mobile cart modal; the existing storefront/cart APIs stay untouched. */
@media (max-width: 767px) {
  html.veja-mobile-cart-open,html.veja-mobile-cart-open body {overscroll-behavior: none;}
  html.veja-mobile-cart-open #page-overlay {position:fixed!important;inset:0!important;z-index:2147483000!important;pointer-events:auto!important;}
  body #cart-drawer.drawer {
    box-sizing:border-box!important;position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;bottom:0!important;
    width:100%!important;max-width:none!important;height:100vh!important;height:100dvh!important;max-height:100dvh!important;
    margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
    background:#faf9f7!important;color:#282624!important;
    display:flex!important;flex-direction:column!important;overflow:hidden!important;
    z-index:2147483100!important;transform:translate3d(100%,0,0)!important;
    visibility:hidden!important;pointer-events:none!important;opacity:1!important;
    transition:transform .25s cubic-bezier(.2,.7,.2,1),visibility .25s!important;
    -webkit-overflow-scrolling:touch;contain:layout style;
  }
  body #cart-drawer.drawer.open[aria-hidden="false"] {
    transform:translate3d(0,0,0)!important;visibility:visible!important;pointer-events:auto!important;
  }
  body #cart-drawer > .panel-title {
    box-sizing:border-box!important;position:relative!important;top:auto!important;left:auto!important;right:auto!important;
    padding:calc(14px + env(safe-area-inset-top,0px)) 18px 14px!important;
    min-height:calc(66px + env(safe-area-inset-top,0px))!important;
    display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:space-between!important;
    background:#fff!important;border-bottom:1px solid #e9e5df!important;box-shadow:0 4px 14px rgba(20,20,20,.025)!important;
    color:#22201e!important;font-size:16px!important;font-weight:750!important;letter-spacing:.01em!important;
    z-index:1!important;
  }
  body #cart-drawer > .panel-title > span {display:flex!important;align-items:center;gap:10px;line-height:1.2;}
  body #cart-drawer .vh36-bag-icon {width:22px;height:22px;color:#b96935;flex:0 0 auto;}
  body #cart-drawer .panel-title small {display:inline-flex;justify-content:center;align-items:center;min-width:23px;min-height:23px;padding:1px 7px;background:#f3ede7;color:#805332;border-radius:50px;font-size:11px;}
  body #cart-drawer > .panel-title button[data-close-panels] {display:grid!important;place-items:center!important;position:relative!important;min-width:44px!important;min-height:44px!important;width:44px!important;height:44px!important;background:#f4f2ef!important;border:1px solid #ebe7e2!important;border-radius:12px!important;color:#24211f!important;font-size:26px!important;line-height:1!important;touch-action:manipulation!important;pointer-events:auto!important;}
  body #cart-drawer > .panel-title button[data-close-panels]:focus-visible {outline:3px solid #d88d52!important;outline-offset:2px;}
  body #cart-drawer #cart-content {
    box-sizing:border-box!important;display:flex!important;flex-direction:column!important;flex:1 1 auto!important;
    min-height:0!important;max-height:none!important;height:auto!important;
    overflow:hidden!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;
    padding:0!important;margin:0!important;background:#faf9f7!important;
    -webkit-overflow-scrolling:touch;touch-action:pan-y!important;
  }
  body #cart-drawer .cart-items {display:block!important;flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:12px 14px 22px!important;}
  body #cart-drawer .cart-item {
    box-sizing:border-box!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) 38px!important;
    align-items:start!important;gap:12px!important;background:#fff!important;border:1px solid #ece7e1!important;
    border-radius:15px!important;padding:13px!important;margin:0 0 10px!important;box-shadow:0 4px 20px rgba(50,44,35,.035)!important;
    position:relative!important;min-height:110px!important;
  }
  body #cart-drawer .cart-item > img {width:76px!important;height:96px!important;object-fit:cover!important;border-radius:10px!important;background:#f1efeb!important;}
  body #cart-drawer .cart-item > div {min-width:0!important;overflow-wrap:anywhere!important;}
  body #cart-drawer .cart-item h4 {font-size:13px!important;line-height:1.5!important;font-weight:750!important;margin:0 0 5px!important;}
  body #cart-drawer .cart-item .muted {font-size:11px!important;line-height:1.45!important;color:#746d64!important;margin-bottom:8px!important;}
  body #cart-drawer .cart-item strong {display:block!important;font-size:13px!important;color:#26211d!important;font-weight:750!important;}
  body #cart-drawer .cart-item > button[data-action="cart-delete"] {display:grid!important;place-items:center!important;justify-self:end!important;min-width:38px!important;min-height:38px!important;width:38px!important;height:38px!important;border:0!important;background:#fff5f1!important;color:#9e462b!important;border-radius:10px!important;cursor:pointer!important;touch-action:manipulation!important;pointer-events:auto!important;}
  body #cart-drawer .cart-item-qty {display:inline-flex!important;align-items:center!important;justify-content:space-between!important;border:1px solid #e3ded8!important;border-radius:10px!important;overflow:hidden!important;min-height:40px!important;margin-top:10px!important;background:#fff!important;}
  body #cart-drawer .cart-item-qty button {display:grid!important;place-items:center!important;min-width:42px!important;min-height:42px!important;height:42px!important;padding:0!important;margin:0!important;border:0!important;background:#f6f4f1!important;color:#282624!important;font-size:20px!important;font-weight:600!important;touch-action:manipulation!important;pointer-events:auto!important;}
  body #cart-drawer .cart-item-qty span {min-width:32px!important;text-align:center!important;padding:0 6px!important;font-size:13px!important;font-weight:700!important;}
  body #cart-drawer .cart-summary {
    box-sizing:border-box!important;flex:0 0 auto!important;position:relative!important;bottom:0!important;top:auto!important;
    margin-top:auto!important;width:100%!important;padding:15px 18px calc(16px + env(safe-area-inset-bottom,0px))!important;
    background:#fff!important;border-top:1px solid #e5ded5!important;box-shadow:0 -7px 30px rgba(33,30,27,.06)!important;
    max-height:min(49dvh,410px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;z-index:2!important;
  }
  body #cart-drawer .cart-summary .total {font-size:15px!important;color:#25221e!important;font-weight:800!important;padding:0 0 12px!important;}
  body #cart-drawer .cart-summary .btn, body #cart-drawer .cart-summary button, body #cart-drawer .cart-summary a.btn {
    min-height:48px!important;display:flex!important;align-items:center!important;justify-content:center!important;
    padding:11px 14px!important;border-radius:12px!important;font-weight:750!important;font-size:13px!important;
    touch-action:manipulation!important;pointer-events:auto!important;cursor:pointer!important;
  }
  body #cart-drawer .cart-summary .btn.full {width:100%!important;}
  body #cart-drawer .cart-summary p {font-size:11px!important;line-height:1.45!important;color:#7d756c!important;margin:10px 0 0!important;}
  body #cart-drawer .empty-cart {margin:auto!important;padding:42px 18px!important;min-height:0!important;text-align:center!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:12px!important;color:#6d655c!important;}
  body #cart-drawer .empty-cart h3 {margin:8px 0 0;font-size:20px!important;color:#2b2825;}
  body #cart-drawer .empty-cart p {font-size:13px!important;line-height:1.5;}
  body #cart-drawer .empty-cart button {min-height:48px!important;padding:12px 25px!important;touch-action:manipulation!important;}
  body #cart-drawer #veja-paytr-v04-paybar {flex:0 0 auto!important;position:relative!important;background:#fff!important;border-top:1px solid #eee7df!important;padding:10px 18px calc(10px + env(safe-area-inset-bottom,0px))!important;}
  body #cart-drawer :is(button,a,input,select) {pointer-events:auto!important;}
}
@media (max-width: 359px) {body #cart-drawer .cart-item {grid-template-columns:58px minmax(0,1fr) 34px!important;gap:8px!important;padding:10px!important;}body #cart-drawer .cart-item > img{width:58px!important;height:76px!important;}body #cart-drawer .cart-summary{padding-left:12px!important;padding-right:12px!important;}}
@media (prefers-reduced-motion:reduce) {body #cart-drawer.drawer {transition:none!important;}}
