/* Carrito igual al de Licores Soto (adaptado a colores del Merkado) — 23 nov 2026 */
/* Soto V3: carrito compacto y estado de productos con alto contraste. */
body .cart-open-btn{min-height:38px;padding:7px 10px!important;gap:6px!important;border-radius:11px!important;font-size:12px!important;box-shadow:0 0 15px #f5b72d40!important}
body .cart-open-btn svg{width:19px;height:19px;flex:none}
body .cart-count{min-width:21px;height:21px;padding:0 5px;font-size:11px;font-weight:900;line-height:1}
html body .cart-drawer{width:min(410px,calc(100vw - 16px))!important;max-width:100%!important;left:auto!important;right:0!important;min-height:0;border-left:1px solid #f5b72d66!important}
body .cart-drawer .drawer-header{padding:12px 15px!important;flex:none;align-items:center}
body .cart-drawer .drawer-header h2{font-size:21px!important;line-height:1.2;margin:3px 0 0}
body .cart-drawer .drawer-header h2 span{color:#ffe08a!important;font-size:14px}
body .cart-drawer .drawer-header small{font-size:9px;letter-spacing:1.8px}
body .cart-drawer .round-close{width:35px;height:35px;flex:none;line-height:1}
body .cart-drawer .cart-items{padding:6px 12px!important;min-height:0;overscroll-behavior:contain}
body .cart-drawer .cart-item{grid-template-columns:46px minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;padding:10px 0!important;border-bottom:1px solid #f5b72d38!important}
body .cart-drawer .cart-thumb{width:46px!important;height:61px!important;padding:2px;border-radius:8px}
body .cart-drawer .cart-item-info{min-width:0}
body .cart-drawer .cart-item-name{font-size:13px!important;line-height:1.25;overflow-wrap:anywhere}
body .cart-drawer .cart-item-price{font-size:11px!important;line-height:1.3;margin:3px 0 6px!important;color:#b9c9e6!important}
body .cart-drawer .quantity-bar{max-width:100%;border-radius:9px!important;box-shadow:none!important}
body .cart-drawer .quantity-bar button{width:34px!important;min-width:34px!important;height:36px!important;font-size:20px!important;padding:0!important}
html body .cart-drawer .quantity-bar input:not([type=x]){width:44px!important;min-width:0!important;height:36px!important;font-size:16px!important;padding:0 2px!important}
body .cart-drawer .cart-right{grid-column:auto!important;flex-direction:column!important;justify-content:center!important;align-items:flex-end!important;min-height:0!important;width:auto!important;gap:6px!important}
body .cart-drawer .cart-line-total{font-size:14px!important;white-space:nowrap}
body .cart-drawer .remove-cart{font-size:11px!important;padding:7px 0!important}
body .cart-drawer .drawer-footer{padding:10px 15px max(12px,env(safe-area-inset-bottom))!important;flex:none}
body .cart-drawer .cart-subtotal,body .cart-drawer .cart-service{font-size:12px!important;margin:5px 0!important;gap:8px}
body .cart-drawer .cart-subtotal strong{font-size:17px!important}
body .cart-drawer .cart-total{padding-top:7px!important;font-size:14px!important}
body .cart-drawer .cart-total strong{font-size:21px!important}
body .cart-drawer .drawer-footer p{font-size:10px!important;line-height:1.3;margin:6px 0 8px!important}
body .cart-drawer #checkoutBtn{min-height:40px;padding:9px 12px;font-size:12px}
body .cart-drawer .clean-cart{margin:7px auto 0;font-size:11px;padding:4px}
body .already-in-cart{background:#0d1f45!important;border:1px solid #f5b72d88!important;color:#e6f0ff!important;-webkit-text-fill-color:#e6f0ff!important;font-size:11px!important;line-height:1.35;padding:6px 4px!important;border-radius:8px;box-shadow:none!important;overflow-wrap:anywhere}
body .already-in-cart strong{color:#f5b72d!important;-webkit-text-fill-color:#f5b72d!important;font-size:13px;font-weight:900}
@media(max-width:365px){body .cart-drawer .cart-item{grid-template-columns:40px minmax(0,1fr)!important;gap:6px!important}body .cart-drawer .cart-thumb{width:40px!important;height:55px!important}body .cart-drawer .cart-right{grid-column:2!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important}}

/* Carrito compacto centrado en la pantalla, con márgenes simétricos. */
html body #cartDrawer.cart-drawer{position:fixed!important;left:50%!important;right:auto!important;top:50%!important;bottom:auto!important;width:min(410px,calc(100% - 24px))!important;max-width:calc(100% - 24px)!important;height: min(740px,calc(100vh - 32px))!important;height:min(740px,calc(100dvh - 32px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px)))!important;max-height:calc(100dvh - 32px)!important;box-sizing:border-box!important;margin:0!important;border:1px solid #f5b72d66!important;border-radius:18px!important;overflow:hidden!important;transform:translate(-50%,-48%)!important;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s,visibility .2s!important;}
html body #cartDrawer.cart-drawer.is-open{transform:translate(-50%,-50%)!important;opacity:1;visibility:visible;pointer-events:auto;}
html body #cartDrawer .cart-items{min-height:0;flex:1 1 auto;overflow-y:auto;overflow-x:hidden;}
html body #cartDrawer .drawer-header,html body #cartDrawer .drawer-footer{flex:0 0 auto;min-width:0;}
@media(max-width:390px){html body #cartDrawer .cart-item{grid-template-columns:42px minmax(0,1fr)!important;}html body #cartDrawer .cart-right{grid-column:2!important;flex-direction:row!important;justify-content:space-between!important;align-items:center!important;}}
@media(max-height:500px){html body #cartDrawer .drawer-footer{max-height:45%;overflow-y:auto;}}
/* === CARRITO A PANTALLA COMPLETA EN EL CELULAR (todo visible) === */
@media(max-width:700px){
  html body #cartDrawer.cart-drawer{left:0!important;right:0!important;top:0!important;bottom:0!important;
    width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;
    border-radius:0!important;border:0!important;transform:translateY(100%)!important;transition:transform .25s ease,visibility .25s!important}
  html body #cartDrawer.cart-drawer.is-open{transform:none!important}
  html body #cartDrawer .drawer-header{padding:max(10px,env(safe-area-inset-top)) 16px 8px!important}
  html body #cartDrawer .drawer-header h2{font-size:20px!important;margin:0!important}
  html body #cartDrawer .drawer-header small{font-size:9px!important}
  html body #cartDrawer .round-close{width:36px!important;height:36px!important}
  html body #cartDrawer .cart-items{padding:2px 14px!important}
  /* cada producto en una sola fila compacta */
  html body #cartDrawer .cart-item{display:grid!important;grid-template-columns:42px minmax(0,1fr) auto!important;
    grid-template-rows:auto!important;gap:4px 10px!important;align-items:center!important;padding:8px 0!important}
  html body #cartDrawer .cart-thumb{width:42px!important;height:54px!important;padding:2px!important;border-radius:8px!important}
  html body #cartDrawer .cart-item-name{font-size:13px!important;line-height:1.2!important;margin:0!important}
  html body #cartDrawer .cart-item-price{font-size:10.5px!important;margin:2px 0 5px!important}
  html body #cartDrawer .quantity-bar{border-radius:9px!important;box-shadow:none!important;border-width:1px!important}
  html body #cartDrawer .quantity-bar button{width:32px!important;min-width:32px!important;height:30px!important;font-size:18px!important}
  html body #cartDrawer .quantity-bar input:not([type=x]){width:38px!important;height:30px!important;font-size:15px!important}
  html body #cartDrawer .cart-right{grid-column:3!important;flex-direction:column!important;align-items:flex-end!important;
    justify-content:center!important;gap:4px!important;width:auto!important}
  html body #cartDrawer .cart-line-total{font-size:14px!important;white-space:nowrap}
  html body #cartDrawer .remove-cart{font-size:11px!important;padding:4px 0!important}
  html body #cartDrawer .drawer-footer{padding:8px 16px max(10px,env(safe-area-inset-bottom))!important;border-top:1px solid #f5b72d40!important}
  html body #cartDrawer .cart-subtotal,html body #cartDrawer .cart-service{font-size:12px!important;margin:2px 0!important}
  html body #cartDrawer .cart-subtotal strong,html body #cartDrawer .cart-service strong{font-size:14px!important}
  html body #cartDrawer .cart-total{padding-top:5px!important;margin-top:4px!important}
  html body #cartDrawer .cart-total strong{font-size:19px!important}
  html body #cartDrawer .drawer-footer p{font-size:10px!important;margin:4px 0 6px!important}
  html body #cartDrawer #checkoutBtn{min-height:44px!important;padding:10px!important;font-size:14px!important}
  html body #cartDrawer .clean-cart{margin:4px auto 0!important;font-size:11px!important;padding:4px!important}
