/* === Carrito · Tienda de Flores === */

/* Botón "Agregar al carrito" — primario al lado del WhatsApp */
.btn-add{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  background:#194435; color:#f7f5f0;
  border:0; padding:14px 22px; border-radius:999px;
  font-family:'Jost',system-ui,sans-serif; font-weight:500; letter-spacing:.06em;
  text-transform:uppercase; font-size:13px;
  text-decoration:none; cursor:pointer;
  transition:transform .2s ease, background .2s ease;
}
.btn-add:hover{ background:#0f2f23; transform:translateY(-2px); }
.btn-add svg{ flex-shrink:0; }

/* Layout botones por producto: agregar + WhatsApp */
.opt-actions{
  display:flex; flex-direction:column; gap:10px;
}
.opt-actions .btn-add,
.opt-actions .btn-wsap{ width:100%; }

/* Precio destacado */
.option-price{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:28px; color:#194435; font-weight:500;
  margin:0 0 16px;
}
.option-price small{
  font-family:'Jost',system-ui,sans-serif; font-size:12px;
  color:rgba(26,26,26,.55); font-weight:300; margin-left:4px;
  letter-spacing:.04em; text-transform:uppercase;
}

/* === Mini-cart en el nav === */
.nav-cart{
  display:inline-flex; align-items:center; justify-content:center;
  background:transparent; border:0; cursor:pointer;
  position:relative;
  width:42px; height:42px; border-radius:50%;
  color:#194435; transition:background .15s ease;
  margin-left:14px;
}
.nav-cart:hover{ background:rgba(25,68,53,.08); }
.nav-cart svg{ display:block; }
.nav-cart-count{
  position:absolute; top:-2px; right:-2px;
  background:#efbfd0; color:#194435;
  min-width:20px; height:20px; padding:0 5px; border-radius:10px;
  font-family:'Jost',system-ui,sans-serif; font-size:11px; font-weight:600;
  display:none; align-items:center; justify-content:center;
  border:2px solid #f7f5f0;
  transition:transform .2s ease;
}
.nav-cart-count.bump{ animation:bump .35s ease; }

/* Wrapper a la derecha del nav cuando hay carrito */
.nav-actions{
  display:flex; align-items:center; gap:6px;
}

/* === FAB (botón flotante) === */
.tdf-cart-fab{
  position:fixed; bottom:24px; right:24px; z-index:90;
  width:62px; height:62px; border-radius:50%;
  background:#194435; color:#f7f5f0;
  display:none; align-items:center; justify-content:center;
  text-decoration:none; cursor:pointer; border:0;
  box-shadow:0 10px 30px rgba(15,47,35,.35);
  transition:transform .2s ease, box-shadow .2s ease;
}
.tdf-cart-fab:hover{ transform:translateY(-3px); box-shadow:0 14px 36px rgba(15,47,35,.45); }
.tdf-cart-fab-count{
  position:absolute; top:-4px; right:-4px;
  background:#efbfd0; color:#194435;
  min-width:24px; height:24px; padding:0 6px; border-radius:12px;
  font-family:'Jost',system-ui,sans-serif; font-size:12px; font-weight:600;
  display:flex; align-items:center; justify-content:center;
  border:2px solid #f7f5f0;
  transition:transform .2s ease;
}
.tdf-cart-fab-count.bump{ animation:bump .35s ease; }
@keyframes bump{
  0%{transform:scale(1)} 30%{transform:scale(1.4)} 100%{transform:scale(1)}
}

/* === DRAWER (mini-cart lateral) === */
.tdf-drawer-overlay{
  position:fixed; inset:0; z-index:100;
  background:rgba(15,47,35,0.45);
  opacity:0; pointer-events:none;
  transition:opacity .25s ease;
}
.tdf-drawer-overlay.open{ opacity:1; pointer-events:auto; }

.tdf-drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:101;
  width:min(420px, 92vw);
  background:#f7f5f0;
  display:flex; flex-direction:column;
  transform:translateX(100%);
  transition:transform .3s cubic-bezier(.2,.9,.3,1);
  box-shadow:-12px 0 40px rgba(15,47,35,.18);
}
.tdf-drawer.open{ transform:translateX(0); }

.tdf-drawer-head{
  display:flex; justify-content:space-between; align-items:center;
  padding:20px 22px; border-bottom:1px solid rgba(25,68,53,.08);
  background:#fff;
}
.tdf-drawer-head h3{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:24px; font-weight:500; color:#194435;
  margin:0;
}
.tdf-drawer-close{
  background:none; border:0; cursor:pointer; color:#194435;
  width:36px; height:36px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:background .15s ease;
}
.tdf-drawer-close:hover{ background:rgba(25,68,53,.08); }

.tdf-drawer-body{
  flex:1; overflow-y:auto; padding:8px 22px;
}

.tdf-drawer-empty{
  text-align:center; padding:60px 20px; color:rgba(26,26,26,.55);
}
.tdf-drawer-empty p{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:22px; color:#194435; margin:0 0 6px;
}
.tdf-drawer-empty small{ font-size:13px; }

.tdf-drawer-item{
  display:grid; grid-template-columns:64px 1fr;
  gap:12px; padding:14px 0;
  border-bottom:1px solid rgba(25,68,53,.08);
}
.tdf-drawer-item:last-child{ border-bottom:0; }
.tdf-drawer-item-img{
  width:64px; height:64px; border-radius:6px; overflow:hidden;
  background:#f7e3ea;
}
.tdf-drawer-item-img img{ width:100%; height:100%; object-fit:cover; display:block; }
.tdf-drawer-item-info h4{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:16px; font-weight:500; color:#194435;
  margin:0 0 4px; line-height:1.2;
}
.tdf-drawer-item-price{
  font-size:12px; color:rgba(26,26,26,.6); margin-bottom:8px;
}
.tdf-drawer-qty{
  display:inline-flex; align-items:center; gap:6px;
  font-family:'Jost',system-ui,sans-serif;
}
.tdf-drawer-qty button{
  width:26px; height:26px; border:1px solid rgba(25,68,53,.18);
  background:transparent; border-radius:50%; cursor:pointer;
  font-size:14px; line-height:1; color:#194435;
  display:inline-flex; align-items:center; justify-content:center;
  transition:background .15s ease;
}
.tdf-drawer-qty button:hover{ background:rgba(25,68,53,.06); }
.tdf-drawer-qty span{
  min-width:22px; text-align:center; font-size:13px; font-weight:500; color:#194435;
}
.tdf-drawer-rem{
  margin-left:auto !important; font-size:11px !important;
  border:0 !important; background:none !important; color:rgba(26,26,26,.5) !important;
  width:auto !important; height:auto !important; padding:0 !important; border-radius:0 !important;
  text-decoration:underline; cursor:pointer; font-family:'Jost',system-ui,sans-serif;
}
.tdf-drawer-rem:hover{ color:#c33 !important; }

.tdf-drawer-foot{
  border-top:1px solid rgba(25,68,53,.1);
  padding:18px 22px 20px; background:#fff;
}
.tdf-drawer-total{
  display:flex; justify-content:space-between; align-items:baseline;
  margin-bottom:14px;
}
.tdf-drawer-total span{
  font-family:'Jost',system-ui,sans-serif; font-size:13px;
  letter-spacing:.16em; text-transform:uppercase; color:#194435; opacity:.7;
}
.tdf-drawer-total strong{
  font-family:'Cormorant Garamond',Georgia,serif;
  font-size:26px; font-weight:500; color:#194435;
}
.tdf-drawer-cta{
  display:block; text-align:center;
  background:#25D366; color:#0c2e1c;
  padding:14px 22px; border-radius:999px;
  font-family:'Jost',system-ui,sans-serif; font-weight:500;
  letter-spacing:.06em; text-transform:uppercase; font-size:13px;
  text-decoration:none; transition:background .2s ease;
  box-shadow:0 6px 20px rgba(37,211,102,.25);
}
.tdf-drawer-cta:hover{ background:#1ebe5a; }
.tdf-drawer-clear{
  display:block; width:100%; text-align:center;
  margin-top:10px; padding:8px;
  background:transparent; border:0; cursor:pointer;
  font-size:12px; color:rgba(26,26,26,.5);
  font-family:'Jost',system-ui,sans-serif;
  text-decoration:underline;
}
.tdf-drawer-clear:hover{ color:#c33; }

/* Toast con link */
.tdf-toast-link{
  background:#efbfd0; color:#194435; border:0;
  padding:6px 12px; border-radius:999px;
  font-family:'Jost',system-ui,sans-serif; font-size:12px; font-weight:500;
  letter-spacing:.04em; cursor:pointer;
  margin-left:6px; flex-shrink:0;
  transition:background .15s ease;
}
.tdf-toast-link:hover{ background:#fff; }

/* === Toast === */
.tdf-toast{
  position:fixed; bottom:24px; left:50%; transform:translate(-50%, 80px);
  background:#194435; color:#f7f5f0;
  padding:14px 20px; border-radius:999px;
  font-family:'Jost',system-ui,sans-serif; font-size:14px;
  display:flex; align-items:center; gap:10px;
  z-index:9999; box-shadow:0 12px 32px rgba(15,47,35,.4);
  opacity:0; pointer-events:none;
  transition:transform .35s cubic-bezier(.2,.9,.3,1), opacity .25s ease;
  max-width:90vw;
}
.tdf-toast.show{ transform:translate(-50%, 0); opacity:1; pointer-events:auto; }
@media (max-width:600px){
  .tdf-toast{ bottom:90px; }
  .tdf-cart-fab{ bottom:20px; right:20px; }
}
