
/* Decorarte — Carrinho lateral V9 */

.fx2-cart{
  appearance:none;
  -webkit-appearance:none;
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  font:inherit;
  color:#111;
  cursor:pointer;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  flex:0 0 34px;
}

.fx2-cart-icon{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.fx2-cart b{
  right:-4px!important;
  bottom:-3px!important;
  background:#d39724!important;
  color:#fff!important;
  font-size:10px!important;
  line-height:1!important;
  min-width:17px!important;
  height:17px!important;
}

.da-cart-drawer-overlay{
  position:fixed;
  inset:0;
  z-index:99980;
  background:rgba(0,0,0,.48);
  opacity:0;
  visibility:hidden;
  transition:opacity .22s ease,visibility .22s ease;
}

.da-cart-drawer-overlay.is-open{
  opacity:1;
  visibility:visible;
}

.da-cart-drawer{
  position:fixed;
  z-index:99990;
  top:0;
  right:0;
  bottom:0;
  width:min(430px,92vw);
  background:#f5f5f3;
  transform:translateX(102%);
  transition:transform .25s ease;
  box-shadow:-16px 0 45px rgba(0,0,0,.18);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  font-family:var(--fx2-font,Arial,Helvetica,sans-serif);
}

.da-cart-drawer.is-open{
  transform:translateX(0);
}

.da-cart-drawer-head{
  min-height:70px;
  padding:0 20px;
  background:var(--fx2-black,#181818);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.da-cart-drawer-head strong{
  font-size:16px;
  letter-spacing:.01em;
}

.da-cart-drawer-head button{
  width:38px;
  height:38px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:28px;
  font-weight:300;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.da-cart-drawer-body{
  overflow:auto;
  padding:14px;
}

.da-cart-drawer-loading{
  padding:35px 15px;
  text-align:center;
  color:#777;
  font-size:13px;
}

.da-cart-drawer-empty{
  height:100%;
  min-height:350px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  color:#777;
  padding:30px;
}

.da-cart-drawer-empty svg{
  width:96px;
  height:96px;
  margin-bottom:18px;
  fill:none;
  stroke:#b5b5ad;
  stroke-width:1.25;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.da-cart-drawer-empty strong{
  color:#555;
  font-size:15px;
  font-weight:600;
}

.da-cart-drawer-item{
  background:#fff;
  border:1px solid #e5e4df;
  border-radius:12px;
  box-shadow:0 4px 14px rgba(0,0,0,.055);
  padding:12px;
  display:grid;
  grid-template-columns:74px minmax(0,1fr) 34px;
  gap:12px;
  align-items:center;
  margin-bottom:10px;
}

.da-cart-drawer-item img{
  width:74px;
  height:74px;
  border-radius:7px;
  object-fit:cover;
  background:#eee;
}

.da-cart-drawer-item-copy{
  min-width:0;
}

.da-cart-drawer-item-copy h3{
  margin:0 0 5px;
  font-size:13px;
  line-height:1.25;
  font-weight:800;
  color:#222;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.da-cart-drawer-item-copy p{
  margin:2px 0;
  color:#555;
  font-size:11px;
  line-height:1.35;
}

.da-cart-drawer-item-bottom{
  margin-top:7px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.da-cart-drawer-qty{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:22px;
  padding:0 6px;
  border:1px solid #deddd8;
  border-radius:999px;
  color:#555;
  font-size:11px;
}

.da-cart-drawer-price{
  color:#9c691d;
  font-size:14px;
  font-weight:900;
}

.da-cart-drawer-remove{
  width:32px;
  height:32px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:#b8842c;
  cursor:pointer;
  display:grid;
  place-items:center;
}

.da-cart-drawer-remove:hover{
  background:#faf4e8;
}

.da-cart-drawer-remove svg{
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.da-cart-drawer-footer{
  background:#fff;
  border-top:1px solid #e5e4df;
  padding:18px 18px 20px;
}

.da-cart-drawer-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  margin-bottom:7px;
  color:#222;
}

.da-cart-drawer-total span{
  font-size:14px;
}

.da-cart-drawer-total strong{
  color:#9c691d;
  font-size:19px;
}

.da-cart-drawer-footer small{
  display:block;
  color:#888;
  font-size:10px;
  line-height:1.4;
  margin-bottom:15px;
}

.da-cart-drawer-checkout{
  min-height:48px;
  background:var(--fx2-black,#181818);
  color:#fff!important;
  border-radius:8px;
  text-decoration:none!important;
  font-size:13px;
  font-weight:900;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
}

.da-cart-drawer-checkout:hover{
  background:#2a2a2a;
}

body.da-cart-drawer-lock{
  overflow:hidden!important;
}

/* MOBILE — carrinho visível exatamente no topo direito */
@media(max-width:800px){
  .fx2-main-inner{
    grid-template-columns:40px minmax(0,1fr) auto!important;
  }

  .fx2-actions{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
    justify-self:end!important;
    gap:7px!important;
    min-width:70px;
  }

  .fx2-cart{
    display:flex!important;
    visibility:visible!important;
    opacity:1!important;
    width:33px!important;
    height:33px!important;
    flex:0 0 33px!important;
  }

  .fx2-cart-icon{
    width:22px!important;
    height:22px!important;
  }

  .fx2-account{
    display:flex!important;
  }

  .fx2-account span:last-child{
    display:none!important;
  }

  .da-cart-drawer{
    width:100vw;
    max-width:none;
  }

  .da-cart-drawer-head{
    min-height:62px;
    padding:0 17px;
  }

  .da-cart-drawer-body{
    padding:10px;
  }

  .da-cart-drawer-item{
    grid-template-columns:65px minmax(0,1fr) 30px;
    padding:10px;
    gap:10px;
  }

  .da-cart-drawer-item img{
    width:65px;
    height:65px;
  }

  .da-cart-drawer-footer{
    padding:15px 14px 17px;
    padding-bottom:max(17px,env(safe-area-inset-bottom));
  }
}


/* V10 — PIX e Cartão no rodapé do carrinho */
.da-cart-payment-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
}

.da-cart-payment-row + .da-cart-payment-row{
  border-top:1px solid #ecebe7;
}

.da-cart-payment-label{
  display:flex;
  align-items:center;
  gap:9px;
  color:#4f4f4f;
  font-size:14px;
  font-weight:500;
}

.da-cart-payment-label svg{
  width:20px;
  height:20px;
  fill:none;
  stroke:#6c6c6c;
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 20px;
}

.da-cart-payment-pix .da-cart-payment-label svg{
  stroke:#21ad74;
}

.da-cart-payment-value{
  text-align:right;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  min-width:145px;
}

.da-cart-payment-value strong{
  color:#178d47!important;
  font-size:18px;
  line-height:1.15;
  font-weight:900;
}

.da-cart-payment-value small{
  margin-top:3px;
  color:#777;
  font-size:10px;
  line-height:1.3;
}

.da-cart-payment-pix .da-cart-payment-value small{
  color:#178d47;
}

.da-cart-payment-note{
  display:block!important;
  color:#8a8a8a!important;
  font-size:9px!important;
  line-height:1.35!important;
  margin:5px 0 14px!important;
}

@media(max-width:800px){
  .da-cart-payment-row{padding:9px 0}
  .da-cart-payment-value strong{font-size:17px}
  .da-cart-payment-label{font-size:13px}
}


/* V11 — ícone oficial do PIX */
.da-cart-payment-pix-icon{
  display:block;
  width:22px;
  height:22px;
  object-fit:contain;
  flex:0 0 22px;
  border:0;
  background:transparent;
}

/* O PIX usa imagem; o ícone do cartão continua em SVG. */
.da-cart-payment-pix .da-cart-payment-label svg{
  display:none!important;
}

@media(max-width:800px){
  .da-cart-payment-pix-icon{
    width:20px;
    height:20px;
    flex-basis:20px;
  }
}
