/* ==========================================================================
   WooCommerce Cart Styles - Pass Paraguay Theme (Optimized)
   ========================================================================== */
  
/* Estructura principal */
.pass-cart-wrapper {
  max-width: 100%;
  margin: 30px auto;
  padding: 20px;
}
  
.pass-cart-container {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}
  
.pass-cart-main {
  flex: 1.5;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
}
  
.pass-cart-sidebar {
  flex: 1;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 20px;
  overflow: hidden;
  box-sizing: border-box;
}

/* Títulos de sección */
.pass-cart-title,
.cart_totals h2,
.cross-sells h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  padding-bottom: 5px;
  color: #222222;
  border-bottom: 3px solid #e1af1a;
}

/* Tabla del carrito */
.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 20px;
}

.shop_table th {
  background-color: #e1af1a;
  color: #222222;
  padding: 15px;
  font-weight: 600;
  text-align: left;
}

.cart_totals table th {
  background-color: transparent !important;
  color: #222222;
  border-radius: 0;
  padding: 15px 0;
}

body.dark-mode .cart_totals table th {
  background-color: transparent !important;
  color: #ffffff;
}

.shop_table th:first-child {
  border-top-left-radius: 6px;
}

.shop_table th:last-child {
  border-top-right-radius: 6px;
}

.shop_table td {
  padding: 15px;
  border-bottom: 1px solid #eaeaea;
  vertical-align: middle;
}


.shop_table tbody tr:last-child td {
  border-bottom: none;
}

/* Columna de eliminación */
.product-remove {
  width: 40px;

}

/* Botón de eliminar */
.product-remove a.remove,
.product-remove a.pass-remove-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #ff5252;
  font-size: 16px;
  border-radius: 50%;
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
  text-decoration: none;
}

.product-remove a.remove:hover,
.product-remove a.pass-remove-item:hover {
  background-color: #ff5252;
  color: white;
  border-color: #ff5252;
}

/* Columna de imagen */
.product-thumbnail {
  width: 80px;
  text-align: center;
}

.product-thumbnail img {
  max-width: 60px;
  height: auto;
  border-radius: 4px;
}

/* Columna de nombre del producto */
.product-name {
  font-weight: 500;
}

.product-name a {
  color: #222222;
  text-decoration: none;
  transition: color 0.2s ease;
}

.product-name a:hover {
  color: #e1af1a;
}

/* Columnas de precio */
.product-price,
.product-subtotal {
  width: 120px;
  text-align: right;
  font-weight: 500;
}

/* Columna de cantidad */
.product-quantity {
  width: 100px;
  text-align: center;
}

.product-quantity input.qty {
  width: 70px;
  padding: 8px;
  text-align: center;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  background: #ffffff;
}

.quantity-label.single-item {
  display: inline-block;
  background-color: #f9f9f9;
  padding: 10px;
  border-radius: 4px;
  color: #777777;
}

/* Sección de acciones */
.shop_table .actions {
  padding: 15px;
  border-radius: 0 0 6px 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ajuste para el contenedor del cupón */
.coupon {
  display: flex;
  align-items: center;
  gap: 0; /* Eliminamos el gap para que estén pegados */
}

.coupon label {
  margin-right: 10px;
  font-weight: 500;
}

/* Input de cupón */
input.pass-coupon-input,
#coupon_code {
  width: 200px;
  padding: 10px 12px;
  border: 1px solid #eaeaea;
  border-radius: 4px 0 0 4px;
  border-right: none; /* Eliminamos el borde derecho para que se una con el botón */
  background: #ffffff;
  margin: 0; /* Aseguramos que no hay margen */
  height: 42px; /* Altura fija para alinear con el botón */
  box-sizing: border-box;
}

/* Botones */
.pass-button,
.button {
  background-color: #e1af1a !important;
  color: #222222 !important;
  padding: 10px 15px;
  border: none !important;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

/* Estilo específico para el botón de aplicar cupón */
.pass-button-apply-coupon,
button[name="apply_coupon"] {
  border-radius: 0 4px 4px 0;
  margin: 0;
  height: 42px; /* Misma altura que el input */
  padding: 0 15px; /* Ajustamos el padding horizontal */
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: none; /* Eliminamos el borde izquierdo */
  box-sizing: border-box;
}

.pass-button-apply-coupon {
  border-radius: 0 4px 4px 0;
  margin: 0;
}

.pass-button-update-cart {
  background-color: #e1af1a !important;
}

.pass-button-return-to-shop {
  display: inline-block;
  padding: 10px 20px;
}

.pass-button-checkout,
.checkout-button,
.wc-proceed-to-checkout .button,
.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  box-sizing: border-box !important;
  text-align: center;
  padding: 15px;
  font-size: 18px;
  margin: 0;
}

.pass-button:hover,
.button:hover {
  background-color: #d4a418 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.hidden-update-btn {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Totales del carrito */
.cart_totals {
  width: 100%;
}

.cart_totals table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.cart_totals th,
.cart_totals td {
  padding: 15px 0;
  border-bottom: 1px solid #eaeaea;
}

.cart_totals tr:last-child th,
.cart_totals tr:last-child td {
  border-bottom: none;
}

.cart_totals th {
  width: 40%;
  text-align: left;
  font-weight: normal;
}

.cart_totals td {
  text-align: right;
  color: #222222;
  font-weight: 500;
}

.shipping li {
  list-style: none;
  margin-left: 0;
  padding-left: 0;
}

.shipping ul {
  padding-left: 0;
  margin-left: 0;
}

.order-total th,
.order-total td {
  padding-top: 20px;
  font-weight: 600;
}

.order-total .amount {
  font-size: 1.2em;
}

/* Botón de checkout */
.wc-proceed-to-checkout {
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Mensaje de carrito vacío */
.empty-cart-message {
  text-align: center;
  padding: 30px 0;
}

.empty-cart-message i {
  font-size: 50px;
  color: #ddd;
  margin-bottom: 15px;
  display: block;
}

.empty-cart-message p {
  font-size: 18px;
  color: #777777;
  margin-bottom: 20px;
}

/* Cross-sells */
.pass-cross-sells-wrapper {
  margin-top: 30px;
}

.cross-sells {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cross-sells ul.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

/* Dark mode */
body.dark-mode .pass-cart-main,
body.dark-mode .pass-cart-sidebar,
body.dark-mode .cross-sells {
  background-color: #252525;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .pass-cart-title,
body.dark-mode .cart_totals h2,
body.dark-mode .cross-sells h2 {
  color: #f5f5f5;
}

body.dark-mode .shop_table th {
  background-color: #e1af1a;
  color: #222222;
}

body.dark-mode .shop_table tbody tr:nth-child(even) {
  background-color: #2a2a2a;
}

body.dark-mode .shop_table td {
  border-color: #444444;
  color: #f5f5f5;
}

body.dark-mode .product-name a {
  color: #f5f5f5;
}

body.dark-mode .quantity-label.single-item {
  background-color: #333333;
  color: #aaa;
}

body.dark-mode .product-quantity input.qty {
  background-color: #333333;
  border-color: #444444;
  color: #f5f5f5;
}

body.dark-mode .shop_table .actions {
  background-color: #333333;
}

body.dark-mode #coupon_code,
body.dark-mode .pass-coupon-input {
  background-color: #333333;
  border-color: #444444;
  color: #f5f5f5;
}

body.dark-mode .cart_totals th,
body.dark-mode .cart_totals td {
  border-color: #444444;
}

body.dark-mode .cart_totals th {
  color: #ffffff;
}

body.dark-mode .cart_totals td {
  color: #ffffff;
}

/* Estilos para los botones de cantidad */
.pass-quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  width: 100px;
  height: 42px;
  margin: 0 auto;
}

.pass-quantity-btn {
  width: 30px;
  height: 42px;
  background-color: #f9f9f9;
  border: none;
  color: #222222;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
  margin: 0;
}

.pass-quantity-btn:hover {
  background-color: #e1af1a;
  color: #ffffff;
}

.pass-quantity-wrapper input.qty {
  width: 40px;
  height: 42px;
  text-align: center;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #222222;
  -moz-appearance: textfield; /* Firefox */
  box-shadow: none;
  background-color: #ffffff;
}

.pass-quantity-wrapper input.qty::-webkit-outer-spin-button,
.pass-quantity-wrapper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Dark mode para los botones de cantidad */
body.dark-mode .pass-quantity-wrapper {
  border-color: #444444;
}

body.dark-mode .pass-quantity-btn {
  background-color: #333333;
  color: #f5f5f5;
}

body.dark-mode .pass-quantity-btn:hover {
  background-color: #e1af1a;
  color: #222222;
}

body.dark-mode .pass-quantity-wrapper input.qty {
  background-color: #252525;
  color: #f5f5f5;
}

/* Ajustes para responsive */
@media (max-width: 768px) {
  /* Ajuste para vista de tarjetas */
  .shop_table td.product-quantity {
    justify-content: space-between;
  }
  
  .pass-quantity-wrapper {
    width: 90px;
    height: 36px;
    margin: 0;
  }
  
  .pass-quantity-btn {
    width: 25px;
    height: 36px;
    font-size: 14px;
  }
  
  .pass-quantity-wrapper input.qty {
    width: 40px;
    height: 36px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .pass-quantity-wrapper {
    width: 80px;
    height: 32px;
  }
  
  .pass-quantity-btn {
    width: 20px;
    height: 32px;
    font-size: 12px;
  }
  
  .pass-quantity-wrapper input.qty {
    width: 40px;
    height: 32px;
    font-size: 12px;
  }
}

/* =============================================
   RESPONSIVE STYLES - OPTIMIZADOS
   ============================================= */

/* Pantallas medianas (1240px y menos) - PRIMER BREAKPOINT */
@media (max-width: 1240px) {
  /* Cambiar layout para que sidebar quede debajo */
  .pass-cart-container {
    flex-direction: column;
  }
  
  /* Contenedor principal ocupa todo el ancho */
  .pass-cart-main {
    width: 100%;
    box-sizing: border-box;
    flex: none;
  }
  
  /* Sidebar debajo */
  .pass-cart-sidebar {
    margin-top: 20px;
    width: 100%;
    box-sizing: border-box;
    flex: none;
  }
  
  /* Ajustar cross-sells a 3 columnas */
  .cross-sells ul.products {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet (1024px y menos) */
@media (max-width: 1024px) {
  .pass-cart-wrapper {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .pass-cart-main,
  .pass-cart-sidebar {
    padding: 15px;
  }
  
  /* Ajustar cross-sells a 2 columnas */
  .cross-sells ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Ajustar tamaños de tipografía */
  .pass-cart-title, 
  .cart_totals h2, 
  .cross-sells h2 {
    font-size: 20px;
    margin-bottom: 15px;
  }
}

/* Tablet pequeña (900px y menos) */
@media (max-width: 900px) {
  /* Mantener layout de columna pero optimizar espacios */
  .pass-cart-wrapper {
    padding: 12px;
    margin: 20px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .shop_table th {
    font-size: 16px;
    padding: 12px;
  }
  
  .shop_table td {
    padding: 12px;
  }
  
  /* Ajustar cupón para mejor visualización */
  .coupon {
    flex-wrap: wrap;
  }
  
  .coupon label {
    margin-bottom: 5px;
  }
  
  input.pass-coupon-input,
  #coupon_code {
    min-width: 150px;
  }
}

/* Móvil (768px y menos) - CAMBIO A VISTA DE TARJETAS */
@media (max-width: 768px) {
  .pass-cart-wrapper {
    width: 100%;
    padding: 10px;
    margin: 15px auto;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .pass-cart-title, 
  .cart_totals h2, 
  .cross-sells h2 {
    font-size: 18px;
    margin-bottom: 15px;
  }

  /* INICIO DE VISTA DE TARJETAS */  
  .shop_table {
    display: block;
    background: transparent;
    box-shadow: none;
    border: none;
    width: 100%;
    box-sizing: border-box;
  }
  
  .shop_table thead {
    display: none; /* Ocultar cabecera */
  }
  
  .shop_table tbody,
  .shop_table tr {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Cada fila es una tarjeta */
  .shop_table tbody tr {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-bottom: 15px;
    padding: 15px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    box-sizing: border-box;
  }
  
  body.dark-mode .shop_table tbody tr {
    background-color: #252525;
    border-color: #444444;
  }
  
  /* Cada celda dentro de la tarjeta */
  .shop_table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100% !important;
    padding: 8px 0;
    margin: 8px 0;
    border-bottom: 1px solid #eaeaea;
    text-align: right;
    box-sizing: border-box;
    float: none;
    clear: both;
  }
  
  body.dark-mode .shop_table td {
    border-bottom: 1px solid #444444;
  }
  
  /* Añadir etiquetas antes de cada celda */
  .shop_table td:before {
    content: attr(data-title);
    font-weight: 600;
    color: #777777;
    float: left;
    padding-right: 15px;
    text-align: left;
    display: block;
  }
  
  body.dark-mode .shop_table td:before {
    color: #aaa;
  }
  
  /* Ocultar columna de imagen */
  .shop_table td.product-thumbnail {
    display: none;
  }
  
  /* Ocultar columna de precio para el precio unitario */
  .product-price {
    display: none;
  }
  
  /* Botón de eliminar en la esquina superior derecha */
  .shop_table td.product-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none;
    background: transparent;
  }
  
  .shop_table td.product-remove:before {
    display: none;
  }
  
  /* Nombre del producto como título */
  .shop_table td.product-name {
    padding-top: 15px;
    padding-right: 0px;
    border-bottom: none;
    text-align: left;
    justify-content: flex-start;
    font-size: 16px;
    font-weight: 600;
  }

  .shop_table td.product-name dl.variation dt.variation-Evento {
    text-align: center;
  }
  
  .shop_table td.product-name:before {
    display: none;
  }
  
  /* Cantidad y subtotal alineados */
  .shop_table td.product-quantity,
  .shop_table td.product-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .shop_table td.product-quantity:before,
  .shop_table td.product-subtotal:before {
    margin-bottom: 0;
  }
  
  .product-quantity {
    width: auto;
  }
  
  .product-quantity input.qty {
    width: 50px;
    padding: 6px;
  }
  
  /* Sección de cupón y botones */
  .shop_table .actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 20px;
    margin-top: 15px;
    border-radius: 10px;
    align-items: stretch;
    background-color: #f9f9f9;
    border: 1px solid #eaeaea;
    width: 100%;
    box-sizing: border-box;
  }
  
  body.dark-mode .shop_table .actions {
    background-color: #333333;
    border-color: #444444;
  }
  
  .coupon {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }
  
  .coupon label {
    margin-bottom: 5px;
    display: block;
    text-align: left;
    font-weight: bold;
  }
  
  #coupon_code,
  .pass-coupon-input {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 4px;
  }
  
  .pass-button-apply-coupon,
  button[name="apply_coupon"] {
    width: 100%;
    padding: 10px;
    border-radius: 4px !important;
  }
  
  /* Cross-sells en una columna */
  .cross-sells ul.products {
    grid-template-columns: 1fr;
  }
  
  /* Botón checkout contenido */
  .checkout-button,
  .pass-button-checkout,
  .wc-proceed-to-checkout a,
  .wc-proceed-to-checkout .button {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 15px !important;
    margin: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
    white-space: normal;
  }
  
  /* Ocultar el contenedor blanco debajo del cupón */
  .woocommerce-notices-wrapper,
  .woocommerce-info,
  .woocommerce-message {
   /* display: none !important;*/
  }
  
  /* Asegurar que los formularios de WooCommerce no se salgan */
  .woocommerce-cart-form,
  form.woocommerce-cart-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: visible;
  }
  
  /* Asegurar que el padding interno no haga que se desborde */
  .woocommerce-cart-form__contents {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Corregir los elementos que podrían causar scroll horizontal */
  .woocommerce,
  .woocommerce-page,
  .entry-content,
  .entry,
  .hentry,
  .content-area,
  .site {
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Móvil pequeño (420px y menos) */
@media (max-width: 420px) {
  .pass-cart-main,
  .pass-cart-sidebar,
  .cross-sells {
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .pass-cart-wrapper {
    padding: 5px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .shop_table tbody tr {
    margin-bottom: 10px;
    padding: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .shop_table td {
    padding: 6px 0;
    margin: 6px 0;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .shop_table td:before {
    font-size: 13px;
  }
  
  .product-quantity input.qty {
    width: 45px;
    padding: 6px;
  }
  
  .shop_table .actions {
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .pass-button-checkout,
  .checkout-button {
    padding: 12px !important;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Asegurar que no hay espacios en blanco extras */
  .woocommerce-cart-form__contents {
    margin: 0;
    padding: 0;
  }
}


/* Correcciones generales para botones de checkout y totales */
.checkout-button,
.pass-button-checkout,
.wc-proceed-to-checkout a,
.wc-proceed-to-checkout .button {
  width: 100% !important;
  box-sizing: border-box !important;
  max-width: 100% !important;
  overflow: hidden;
}

.cart_totals {
  width: 100% !important; 
}