/* ============ BOTÓN "AÑADIR AL CARRITO" ============ */
/* Uso genérico: aplica a cualquier card que tenga un botón .act-add */
.act-add{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:8px 12px;
  background:var(--red);
  color:var(--paper);
  border:1.5px solid var(--red);
  cursor:pointer;
  font-family:'Anton',sans-serif;
  font-size:12px;
  letter-spacing:.22em;
  text-transform:uppercase;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.act-add:hover{
  background:var(--red-dark);
  border-color:var(--red-dark);
}
.act-add svg{
  width:14px; height:14px;
  stroke:currentColor; fill:none; stroke-width:2.4;
  stroke-linecap:round; stroke-linejoin:round;
}
.in-cart .act-add{
  background:transparent;
  color:var(--red);
}
.in-cart .act-add:hover{
  background:var(--red);
  color:var(--paper);
}

/* Variante grande para el hero */
.act-add--lg{
  padding:14px 22px 13px;
  font-size:13px;
  letter-spacing:.24em;
  gap:10px;
}
.act-add--lg svg{
  width:16px; height:16px;
  stroke-width:2.2;
}

/* ============ CART FAB ============ */
.cart-fab{
  position:fixed;
  right:24px; bottom:24px;
  z-index:60;
  width:60px; height:60px;
  border-radius:50%;
  background:var(--red);
  color:var(--paper);
  border:2px solid var(--paper);
  cursor:pointer;
  box-shadow: 0 6px 24px rgba(0,0,0,.55), 0 0 0 4px rgba(215,25,32,.18);
  display:flex; align-items:center; justify-content:center;
  transition: transform .2s ease, background .2s ease;
}
.cart-fab:hover{ transform: translateY(-3px); background:var(--red-dark) }
.cart-fab[hidden]{ display:none }
.cart-fab svg{
  width:26px; height:26px;
  stroke:currentColor; fill:none;
  stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round;
}
.cart-fab .cart-count{
  position:absolute;
  top:-6px; right:-6px;
  min-width:22px; height:22px;
  padding:0 6px;
  background:var(--ink);
  color:var(--paper);
  border:2px solid var(--red);
  border-radius:11px;
  font-family:'Anton',sans-serif;
  font-size:12px;
  letter-spacing:.05em;
  display:flex; align-items:center; justify-content:center;
}
.cart-fab .cart-count[hidden]{ display:none }
.cart-fab.pulse{ animation: cart-pulse .5s ease-out }
@keyframes cart-pulse{
  0%,100%{ transform: scale(1) }
  50%{ transform: scale(1.15) }
}

/* ============ CART DRAWER ============ */
.cart-overlay{
  position:fixed; inset:0;
  z-index:70;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(2px);
  opacity:0;
  transition: opacity .25s ease;
}
.cart-overlay[hidden]{ display:none }
.cart-overlay.open{ opacity:1 }

.cart-drawer{
  position:fixed;
  top:0; right:0;
  z-index:80;
  width: min(440px, 100vw);
  height:100vh;
  background:var(--ink-2);
  border-left:1px solid var(--border-strong);
  color:var(--paper);
  display:flex;
  flex-direction:column;
  transform: translateX(100%);
  transition: transform .28s ease;
  box-shadow: -12px 0 40px rgba(0,0,0,.6);
}
.cart-drawer[hidden]{ display:none }
.cart-drawer.open{ transform: translateX(0) }

.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 22px 22px 18px;
  border-bottom:1px solid var(--border);
}
.cart-head h2{
  font-family:'Anton','Archivo Black',sans-serif;
  font-weight:normal;
  font-size:34px;
  letter-spacing:.02em;
  text-transform:uppercase;
  line-height:.9;
}
.cart-head h2 .red{ color:var(--red) }
.cart-close{
  background:transparent;
  border:0;
  color:var(--muted);
  font-size:32px;
  line-height:1;
  padding:4px 10px;
  cursor:pointer;
  transition: color .2s ease;
}
.cart-close:hover{ color:var(--paper) }

.cart-body{
  flex:1;
  overflow-y:auto;
  padding: 8px 22px 12px;
}
.cart-empty{
  padding: 40px 10px;
  text-align:center;
  font-family:'Special Elite',monospace;
  color:var(--muted);
}
.cart-empty p{
  font-family:'Anton',sans-serif;
  font-size:22px;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--paper);
  opacity:.85;
  margin-bottom:10px;
}
.cart-empty small{
  font-size:12px;
  letter-spacing:.06em;
  line-height:1.5;
  display:block;
}
.cart-empty strong{
  color:var(--red);
  font-weight:normal;
}

.cart-item{
  display:grid;
  grid-template-columns: 64px 1fr auto;
  gap:12px;
  padding:14px 0;
  border-bottom:1px dashed var(--border);
  align-items:center;
}
.cart-item:last-child{ border-bottom:0 }
.ci-cover{
  display:block;
  width:64px; height:64px;
  background:var(--ink-3);
  overflow:hidden;
  border:1px solid var(--border);
}
.ci-cover img{
  width:100%; height:100%;
  object-fit:cover; display:block;
}
.ci-body{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.ci-title{
  font-family:'Anton',sans-serif;
  font-size:15px;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--paper);
  line-height:1.15;
  overflow:hidden;
  text-overflow:ellipsis;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.ci-info{
  font-family:'Special Elite',monospace;
  font-size:11px;
  color:var(--muted);
  letter-spacing:.04em;
}
.ci-price{
  font-family:'Anton',sans-serif;
  font-size:15px;
  color:var(--red);
  letter-spacing:.04em;
  margin-top:2px;
}
.ci-remove{
  background:transparent;
  border:1px solid var(--border);
  color:var(--muted);
  width:28px; height:28px;
  cursor:pointer;
  font-size:18px;
  line-height:1;
  transition: color .2s ease, border-color .2s ease;
}
.ci-remove:hover{ color:var(--red); border-color:var(--red) }

.cart-foot{
  border-top:1px solid var(--border);
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, var(--ink-2), var(--ink));
}
.cart-total{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  padding-bottom:14px;
  border-bottom:1px solid var(--border);
  margin-bottom:14px;
}
.cart-total .lbl{
  font-family:'Special Elite',monospace;
  font-size:11px;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--muted);
}
.cart-total .val{
  font-family:'Anton',sans-serif;
  font-size:32px;
  color:var(--paper);
  letter-spacing:.03em;
}
.cart-hint{
  font-family:'Special Elite',monospace;
  font-size:11px;
  line-height:1.55;
  color:var(--muted);
  margin-bottom:14px;
}
.cart-hint strong{ color:var(--paper); font-weight:normal }
.cart-actions{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cart-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 14px;
  background:transparent;
  color:var(--paper);
  border:1.5px solid var(--border-strong);
  cursor:pointer;
  font-family:'Anton',sans-serif;
  font-size:13px;
  letter-spacing:.22em;
  text-transform:uppercase;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.cart-btn svg{
  width:18px; height:18px;
  stroke:currentColor; fill:none;
  stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.cart-btn:hover:not(:disabled){ border-color:var(--paper) }
.cart-btn.primary{
  background:var(--red);
  border-color:var(--red);
}
.cart-btn.primary:hover:not(:disabled){
  background:var(--red-dark);
  border-color:var(--red-dark);
}
.cart-btn.ghost{
  color:var(--muted);
  border-color:var(--border);
  font-size:11px;
  letter-spacing:.28em;
  padding:10px 12px;
}
.cart-btn.ghost:hover:not(:disabled){
  color:var(--red);
  border-color:var(--red);
}
.cart-btn:disabled,
.cart-btn[aria-disabled="true"]{
  opacity:.4;
  cursor:not-allowed;
  pointer-events:none;
}
a.cart-btn{ text-decoration:none }
a.cart-btn.primary svg{ transition: transform .25s ease }
a.cart-btn.primary:hover svg{ transform: translateX(3px) }

@media (max-width:520px){
  .cart-fab{ right:16px; bottom:16px; width:54px; height:54px }
  .cart-fab svg{ width:22px; height:22px }
  .cart-head{ padding: 18px 18px 14px }
  .cart-head h2{ font-size:28px }
  .cart-body{ padding: 6px 18px 10px }
  .cart-foot{ padding: 14px 18px 18px }
}
