/* ==========================================================================
   1. WPC FLY CART (CARRITO FLOTANTE)
   ========================================================================== */
#woofc-count {
  background: #aa40b5;
}

#woofc-count i {
  color: #ffffff;
}

.woofc-count.woofc-count-shake {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: none !important;
}

.woofc-count.woofc-count-bottom-right {
  right: 15px;
  bottom: 35px;
  left: auto;
}

/* ==========================================================================
   BOTONES DE ACCIÓN UNIFICADOS Y CENTRADOS MATEMÁTICAMENTE con FLEXBOX
   ========================================================================== */
.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a {
    display: flex !important;
    align-items: center !important;      /* Centrado vertical perfecto */
    justify-content: center !important;   /* Centrado horizontal perfecto */
    
    box-sizing: border-box !important;
    height: 48px !important;              /* Forzamos una altura idéntica para ambos */
    padding: 0 10px !important;           /* Quitamos los paddings verticales que empujan el texto */
    line-height: normal !important;       /* Reseteamos el line-height para que mande Flexbox */
    
    border: 2px solid #aa40b5;
    border-radius: 5px;
    color: #aa40b5;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Ajustes específicos de color para Editar Carrito */
.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-cart {
    background-color: transparent !important;
    font-size: 0.9em !important;
}

.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-cart:hover {
    background-color: #aa40b5 !important;
    color: #ffffff !important;
}

/* Ajustes específicos de color para Finalizar Compra */
.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-checkout {
    background-color: #aa40b5 !important;
    color: #ffffff !important;
    font-size: 0.9em !important;
    border-color: #aa40b5 !important;
}

.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-checkout:hover {
    background-color: #90369a !important;
    border-color: #90369a !important;
    color: #ffffff !important;
}

.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-cart {
  background-color: transparent;
  font-size: 0.9em;
}

.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-cart:hover {
  background-color: #aa40b5;
  color: #ffffff;
}

.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-checkout {
  background-color: #aa40b5;
  color: #ffffff;
  font-size: 0.9em;
}

.woofc-area.woofc-style-02 .woofc-area-bot .woofc-action .woofc-action-inner > div a.woofc-action-checkout:hover {
  background-color: #90369a;
  color: #ffffff;
}

/* Cupones de descuento */
.woofc-coupon .woofc-coupon-input .woofc-coupon-check {
  color: #444 !important;
  font-weight: 400 !important;
}

.woofc-coupon .woofc-coupon-input .woofc-coupon-check:hover {
  color: var(--body-text-color) !important;
}

.woofc-coupon .woofc-coupon-input .woofc-coupon-code {
  font-size: unset;
}

/* ==========================================================================
   2. SUGERENCIAS DE PRODUCTO (CROSS-SELLING EN FLY CART)
   ========================================================================== */

/* Títulos suavizados de los productos sugeridos */
.woofc-area .woofc-suggested-product .woofc-suggested-product-info .woofc-suggested-product-name,
.woofc-area .woofc-suggested-product .woofc-suggested-product-info .woofc-suggested-product-name a,
#woofc-area .woofc-suggested-product-name,
#woofc-area .woofc-suggested-product-name a {
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  color: #333333 !important;
}

/* Botón Añadir al Carrito de las sugerencias (Gris en reposo) */
.woofc-area .cart-wrap a.add_to_cart_button,
#woofc-area .cart-wrap a.add_to_cart_button,
.woofc-suggested-product-atc a {
  background-color: #ededed !important;
  color: #444444 !important;
  border: none !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}

/* Efecto Hover morado corporativo en sugerencias */
.woofc-area .cart-wrap a.add_to_cart_button:hover,
#woofc-area .cart-wrap a.add_to_cart_button:hover,
.woofc-suggested-product-atc a:hover {
  background-color: #aa40b5 !important;
  color: #ffffff !important;
}

/* ==========================================================================
   3. PRODUCTOS AGRUPADOS (LOTE / BUNDLES EN CARRITO)
   ========================================================================== */
.woofc-item-data ul,
.cart-item__element ul {
  margin-top: 8px;
  margin-bottom: 8px;
  padding-left: 15px;
  list-style: none;
}

.woofc-item-data ul li::before,
.cart-item__element ul li::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "•";
  color: #aa40b5;
  font-weight: bold;
  font-size: 1rem;
}

.woofc-item-data ul li,
.cart-item__element ul li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 15px;
}

/* ==========================================================================
   4. MAQUETACIÓN CARRITO VACÍO
   ========================================================================== */

/* Ocultar elementos sobrantes del tema base */
.empty-cart-page,
.empty-cart,
.woocommerce-info::before,
p.return-to-shop:not(.empty-cart-container p) {
  display: none !important;
}

/* Tarjeta contenedora principal */
.empty-cart-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  max-width: 600px !important;
  margin: 50px auto !important;
  padding: 60px 30px !important;
  border-top: 4px solid var(--menu-color) !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
  text-align: center !important;
}

/* Icono central (SVG) */
.empty-cart-icon {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 25px !important;
  color: var(--menu-color) !important;
  line-height: 0 !important;
  opacity: 0.7;
}

.empty-cart-icon svg {
  display: block !important;
  margin: 0 auto !important;
}

/* Textos de aviso */
.empty-cart-title {
  margin: 0 0 10px 0 !important;
  color: var(--title-color) !important;
  font-weight: 700 !important;
  font-size: 1.6rem !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

.empty-cart-text {
  margin-bottom: 35px !important;
  color: #666 !important;
  font-size: 1.1rem !important;
}

/* Botón Volver a la Tienda */
.empty-cart-container .return-to-shop {
  margin: 0 !important;
  padding: 0 !important;
}

.empty-cart-container .return-to-shop .button {
  display: inline-block !important;
  padding: 16px 45px !important;
  border: none !important;
  border-radius: 6px !important;
  background-color: var(--title-color) !important;
  color: #fff !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  transition: all 0.3s ease !important;
}

.empty-cart-container .return-to-shop .button:hover {
  transform: translateY(-3px) !important;
  background-color: var(--menu-color) !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* ==========================================================================
   5. AJUSTES FLUID CHECKOUT (RESPONSIVE DE ESCRITORIO)
   ========================================================================== */
@media (min-width: 1000px) {
  body:not(.has-checkout-must-login-notice) .fc-checkout-header ~ .woocommerce-error,
  body:not(.has-checkout-must-login-notice) .fc-checkout-header ~ .woocommerce-info,
  body:not(.has-checkout-must-login-notice) .fc-checkout-header ~ .woocommerce-message,
  body:not(.has-checkout-must-login-notice) .fc-checkout-notices,
  body:not(.has-checkout-must-login-notice) .fc-inside,
  body:not(.has-checkout-must-login-notice) .fc-progress-bar,
  body:not(.has-checkout-must-login-notice).woocommerce-order-pay .woocommerce-NoticeGroup,
  body:not(.has-checkout-must-login-notice).woocommerce-order-pay .woocommerce-notices-wrapper {
    width: calc(62.5% - var(--fluidcheckout--columns--gap, 50px));
    padding-top: 0px;
    padding-right: 5px;
    padding-left: 5px;
    float: left;
  }
}

/* ==========================================================================
   6. PASARELA PAYCOMET (CLONACIÓN DE ESTILO CORPORATIVO)
   ========================================================================== */
#ifr-paytpv-container .paycomet_pay {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 240px !important;
  min-height: 50px !important;
  height: auto !important;
  padding: 20px !important;
  background-color: rgb(170, 64, 181) !important;
  color: rgb(255, 255, 255) !important;
  font-family: 'Rubik', sans-serif !important;
  font-size: 16.96px !important;
  font-weight: 700 !important;
  line-height: 25.44px !important;
  text-transform: uppercase !important;
  text-align: center !important;
  text-decoration: none !important;
  border: none !important;
  border-radius: 5px !important;
  cursor: pointer !important;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out !important;
  z-index: 1 !important;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0) !important;
}

#ifr-paytpv-container .paycomet_pay:hover {
  background-color: rgb(140, 50, 150) !important;
  color: #ffffff !important;
}

#ifr-paytpv-container {
  padding: 20px 0 !important;
  background: transparent !important;
  border: none !important;
}

#ifr-paytpv-container p {
  margin: 0 !important;
}