/* =========================================================
   RESET
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Arial", sans-serif;
  background: #fafafa;
  color: #333;
}


.floating-cart{
    display:none!important;
}
/* =========================================================
   BREADCRUMB
========================================================= */
/* Ajustamos el margin-top para que quede justo debajo del nav */
.breadcrumb {
  background: #f8f9fb;
  padding: 10px;
  margin: 100px 0px 0px; /* Ajustado: 70px en top */
  border-radius: 5px;
  font-size: 0.95rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  text-align: left;
}
.breadcrumb a {
  color: #4B0082;
  text-decoration: none;
  margin-right: 8px;
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: #FF69B4;
}
.breadcrumb span {
  color: #666;
}

/* =========================================================
   CONTENT WRAPPER
========================================================= */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 60px; /* 20px laterales, 60px bottom */
}
.content h1 {
  margin-bottom: 1rem;
  color: #4B0082;
  font-size: 1.8rem;
  text-align: center;
}

/* =========================================================
   TORNILLO NOTIFICATION
========================================================= */
.tornillo-notification {
  background: #ffecef;
  border: 1px solid #ffa3b5;
  padding: 12px 20px;
  color: #b8002e;
  margin-bottom: 20px;
  border-radius: 6px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.95rem;
}

/* =========================================================
   CART TABLE - ESCRITORIO
========================================================= */
.cart-table {
  margin: 20px 0;
  border: 1px solid #eee;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  background: #fff;
}
.cart-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
.cart-row:last-child {
  border-bottom: none;
}
.cart-header {
  background: #f0f0f0;
  font-weight: bold;
}
.cart-col-img,
.cart-col-name,
.cart-col-price,
.cart-col-qty,
.cart-col-subtotal,
.cart-col-remove {
  flex: 1;
  text-align: center;
  padding: 6px;
}
/* Imagen tamaño moderado */
.cart-col-img img {
  border-radius: 4px;
  width: 60px;
  height: 60px;
  object-fit: cover;
}
/* Cantidad */
.cart-col-qty input {
  width: 60px;
  text-align: center;
  padding: 3px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
.btn-remove {
  color: #f00;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}
.btn-remove:hover {
  color: #c00;
}

/* Truncar el nombre del producto en escritorio si muy largo */
.cart-col-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px; /* Ajusta el ancho según prefieras */
  margin: 0 auto; 
}

/* =========================================================
   CUPÓN
========================================================= */
.coupon-section {
  margin: 20px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}
.coupon-section label {
  font-weight: 600;
  color: #4B0082;
}
#codigo_cupon {
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.btn-apply-coupon {
  background: #4B0082;
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-apply-coupon:hover {
  background: #3a0268;
}

/* =========================================================
   CART-CHECKOUT (2 COLUMNAS) - ESCRITORIO
========================================================= */
.cart-checkout-container {
  display: flex;
  gap: 30px;
  margin-top: 30px;
}
/* Columna Izquierda: Ciudad + Resumen */
.checkout-left {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 20px;
}
/* Columna Derecha: Pago + Form */
.checkout-right {
  flex: 1;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 20px;
}

/* =========================================================
   SHIPPING SECTION
========================================================= */
.shipping-section {
  margin-bottom: 20px;
}
.shipping-section h3 {
  font-size: 1.1rem;
  color: #4B0082;
  margin-bottom: 0.5rem;
}
#ciudad {
  width: 70%;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
}

/* =========================================================
   CART SUMMARY
========================================================= */
.cart-summary {
  margin-top: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}
.cart-summary p {
  margin: 5px 0;
}
.cart-summary .cart-subtotal {
  color: #555;
  font-size: 1rem;
}
.cart-summary .cart-discount {
  color: #d4006e;
  font-weight: 500;
  font-size: 0.95rem;
}
.cart-summary .cart-shipping {
  color: #444;
  font-size: 1rem;
}
.cart-total {
  color: #e50082;
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 8px;
}

/* =========================================================
   PAYMENT SECTION
========================================================= */
.payment-section {
  margin-bottom: 20px;
}
.payment-section h3 {
  font-size: 1.1rem;
  color: #4B0082;
  margin-bottom: 0.5rem;
}
.payment-section label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

/* Botón Confirmar Método de Pago */
.btn-showForm {
  background: #ff66c4;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.3s;
  margin-bottom: 20px;
}
.btn-showForm:hover {
  background: #ff439d;
}

/* =========================================================
   FORMULARIO DATOS CLIENTE
========================================================= */
.customer-data {
  margin-top: 20px;
}
.customer-data h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #4B0082;
}
.customer-data label {
  display: block;
  margin-top: 10px;
  font-weight: 600;
  color: #4B0082;
  font-size: 0.95rem;
}
.customer-data input {
  margin-top: 5px;
  padding: 8px;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.95rem;
}
.checkout-button {
  margin-top: 20px;
  text-align: right;
}
.btn-checkout {
  background: #FF69B4;
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  font-size: 0.95rem;
}
.btn-checkout:hover {
  background: #ff439d;
  transform: scale(1.05);
}

/* =========================================================
   CART ACTIONS (ABAJ0)
========================================================= */
.cart-actions-bottom {
  margin-top: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: flex-end; 
}
.btn-update {
  background: #4B0082;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.btn-update:hover {
  background: #3a0268;
}
.btn-empty {
  background: #aaa;
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.3s;
}
.btn-empty:hover {
  background: #888;
}

/* =========================================================
   TOAST (no invasivo)
========================================================= */
#toastNotification {
  position: fixed;
  bottom: -100px;
  right: 20px;
  background: rgba(51,51,51,0.9);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.5s, bottom 0.5s;
  z-index: 2000;
  font-size: 0.9rem;
}
#toastNotification.show-toast {
  opacity: 1;
  bottom: 20px;
}

/* =========================================================
   FOOTER (Dark)
========================================================= */
.footer {
  background: #2c2c2c; 
  color: #fff;
  padding: 2rem 1rem;
  margin-top: 40px;
  border-radius: 8px 8px 0 0; 
  position: relative;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.2);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-left p {
  margin: 0.3rem 0;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.footer-left p i {
  color: #FF69B4;
}
.footer-right {
  text-align: right;
  flex: 1;
  min-width: 200px;
}
.footer-right p {
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 1rem;
}
.social-links a {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: #fff; 
  transition: color 0.3s;
}
.social-links a:hover {
  color: #FF69B4;
}

/* =========================================================
   RESPONSIVE (MOBILE)
========================================================= */
@media (max-width: 768px) {

  .breadcrumb {
    background: #f8f9fb;
    padding: 10px;
    margin: 100px 0px 30px;
    border-radius: 5px;
    font-size: 0.95rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: left;
}

  /* Mantener la estructura horizontal pero reducir el ancho
     de la imagen y truncar más el texto para que sea 
     “visible” en pantallas pequeñas. */

  .cart-row {
    flex-wrap: wrap; 
    justify-content: space-around; 
    padding: 10px;
  }
  .cart-header {
    display: none; /* oculta la cabecera en móvil */
  }
  
  /* Cada columna en horizontal pero comprimida */
  .cart-col-img,
  .cart-col-name,
  .cart-col-price,
  .cart-col-qty,
  .cart-col-subtotal,
  .cart-col-remove {
    flex: none;
    width: auto;
    margin: 5px;
    text-align: center;
  }
  /* Imagen más pequeña aún */
  .cart-col-img img {
    width: 40px;
    height: 40px;
  }
  /* Truncar aún más el nombre */
  .cart-col-name {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Cupón en vertical */
  .coupon-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Checkouts en 1 columna */
  .cart-checkout-container {
    flex-direction: column;
    margin-top: 20px;
  }
  .checkout-left, .checkout-right {
    width: 100%;
    margin-bottom: 20px;
  }

  /* Acciones al final (Actualizar, Vaciar) centradas */
  .cart-actions-bottom {
    justify-content: center;
  }

  /* Ajustamos si el footer, etc. lo deseas en modo columna */
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-right {
    text-align: center;
    margin-top: 1rem;
  }
}
