/* --- ESTILOS CARRITO MUNDO FEROMONAS --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background: #ffffff;
  z-index: 99999;
  box-shadow: -6px 0 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a1a;
}
.cart-drawer.active {
  transform: translateX(0);
}

/* Header */
.cart-header {
  padding: 18px 20px;
  border-bottom: 1px solid #ebebeb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.cart-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-header-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.3px;
}
.cart-header-title svg {
  stroke: #d63384;
}
.cart-close-btn {
  background: #f5f5f7;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: all 0.2s ease;
}
.cart-close-btn:hover {
  background: #e5e5ea;
  color: #000;
  transform: rotate(90deg);
}

/* Aviso de envío discreto */
.cart-shipping-notice {
  background: #fdf2f8;
  color: #b02a6f;
  padding: 10px 16px;
  font-size: 12.5px;
  border-bottom: 1px solid #fce7f3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-shipping-notice strong {
  font-weight: 700;
}

/* Lista de items */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Item individual */
.cart-item {
  display: flex;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
}
.cart-item-img {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: #f8f8f8;
  border: 1px solid #eee;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #1a1a1a;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: #d63384;
  margin-bottom: 8px;
}
.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-qty-ctrl {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  overflow: hidden;
}
.cart-qty-btn {
  background: none;
  border: none;
  width: 28px;
  height: 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  transition: background 0.15s;
}
.cart-qty-btn:hover {
  background: #eaeaea;
}
.cart-qty-val {
  width: 32px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  transition: color 0.15s;
}
.cart-remove-btn:hover {
  color: #d32f2f;
}

/* Carrito vacío */
.cart-empty {
  text-align: center;
  padding: 50px 20px;
  margin: auto;
}
.cart-empty-icon {
  font-size: 54px;
  margin-bottom: 16px;
  opacity: 0.8;
}
.cart-empty h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a1a1a;
}
.cart-empty p {
  font-size: 13.5px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.5;
}
.cart-empty-btn {
  display: inline-block;
  background: #1a1a1a;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.cart-empty-btn:hover {
  background: #d63384;
}

/* Footer */
.cart-footer {
  border-top: 1px solid #ebebeb;
  padding: 18px 20px 24px;
  background: #fafafa;
}
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  color: #666;
  margin-bottom: 8px;
}
.cart-free-shipping {
  color: #10b981;
  font-weight: 600;
}
.cart-total-line {
  font-size: 17px;
  font-weight: 800;
  color: #1a1a1a;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
  margin-bottom: 16px;
}
.cart-checkout-btn {
  width: 100%;
  background: linear-gradient(135deg, #d63384 0%, #b02a6f 100%);
  color: #ffffff;
  border: none;
  padding: 15px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(214, 51, 132, 0.35);
  transition: all 0.2s ease;
}
.cart-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(214, 51, 132, 0.45);
}
.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.cart-trust-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
  font-size: 11.5px;
  color: #777;
}

/* Botón del Carrito en Cabecera */
.cart-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a1a1a;
  color: #ffffff;
  border: none;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  position: relative;
  flex-shrink: 0;
}
.cart-header-btn:hover {
  background: #d63384;
  transform: translateY(-1px);
}
.cart-header-btn svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff;
}
.cart-header-badge {
  background: #d63384;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  min-width: 18px;
  text-align: center;
  line-height: 1.2;
}
.cart-header-btn:hover .cart-header-badge {
  background: #ffffff;
  color: #d63384;
}

/* Botón Añadir a la Cesta en Cards */
.btn-add-card {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  background: #fdf2f8;
  color: #d63384;
  border: 1px solid #fbcfe8;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.btn-add-card:hover {
  background: #d63384;
  color: #fff;
  border-color: #d63384;
}

@media(max-width: 768px) {
  .cart-header-text {
    display: none;
  }
  .cart-header-btn {
    padding: 8px 10px;
  }
  .cart-drawer {
    max-width: 100%;
  }
}


/* Botón Añadir a la Cesta en Ficha de Producto */
.btn-add-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: #ffffff;
  color: #d63384;
  border: 2px solid #d63384;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
  box-sizing: border-box;
  text-decoration: none;
}
.btn-add-cart:hover {
  background: #fdf2f8;
  transform: translateY(-1px);
}
.btn-add-cart svg {
  stroke: #d63384;
}

/* Acciones en sticky bar */
.sticky-buy-bar .sticky-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sticky-btn-add {
  background: #ffffff;
  color: #d63384;
  border: 1.5px solid #d63384;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}
.sticky-btn-add:hover {
  background: #fdf2f8;
}

/* Alineación en header */
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header-inner .cart-header-btn {
  margin-left: 16px;
}

/* Fix 2026-10-24: quitar subrayado de los titulos de producto */
a.card-link{text-decoration:none;color:inherit;}

/* Topbar color rosa corporativo */
.topbar {
  background: #d63384 !important;
  color: #ffffff !important;
}
.topbar strong {
  color: #ffffff !important;
}

.footer-social a:hover { background: #d63384 !important; transform: translateY(-2px); }
