/*Responsive*/
/* ================================
  FIX RESPONSIVE 1000px – 1024px
================================ */
@media (min-width: 1000px) and (max-width: 1024px) {

  /* Asegura que el UL se comporte como contenedor flexible */
  ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    padding: 0 !important;
  }

  /* Cada producto ocupará el 45% del ancho, centrado */
  ul.products li.product {
    flex: 1 1 45% !important; /* 2 columnas */
    max-width: 45% !important;
    box-sizing: border-box;
    margin: 0 !important;
  }

  /* Centrar título y botón dentro del producto */
  ul.products li.product h2,
  ul.products li.product .price,
  ul.products li.product .ct-woo-card-actions {
    text-align: center !important;
  }

  /* Ajustar altura de las tarjetas si se deforman */
  ul.products li.product figure img {
    width: 100% !important;
    height: auto !important;
  }

}
/*productos*/
@media (min-width: 1000px) and (max-width: 1182px) {
  #menu-main-menu .more-items-container > .ct-menu-link,
  #menu-main-menu .more-items-container > .ct-toggle-dropdown-desktop-ghost {
    display: none !important;
  }

  #menu-main-menu .more-items-container > .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  #menu-main-menu .more-items-container > .sub-menu > .astm-search-menu {
    display: block !important;
    width: 100%;
    text-align: center;
    margin: 16px 0 12px 0;
  }

  #menu-main-menu .more-items-container > .sub-menu > .astm-search-menu .is-search-form {
    display: inline-block !important;
    width: 80%;
    max-width: 600px;
  }

  #menu-main-menu .more-items-container > .sub-menu > .astm-search-menu .is-search-input {
    width: 100% !important;
    box-sizing: border-box;
  }
}

/*======================
      MI CUENTA
 ====================== */
.ct-acount-nav{
	display: none;
}

.woocommerce-account .woocommerce-MyAccount-content {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Elimina titulo Favorito*/
.tinv-header{
	display:none;
}

/* ====================
       BUSQUEDA 
======================= */
/* Contenedor del buscador: ancho */
header form.is-form-id-35154[data-form-id="35154"] {
  width: 600px !important;
  max-width: 100%;
}

/* Input principal */
header #is-search-input-35154 {
  height: 42px;
  padding: 10px 50px 10px 16px;  
  border-radius: 999px !important;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 15px;
}

.ct-header-cta a.ct-button {
    font-size: 0;             
    position: relative;
    width: 32px;                
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ================
       CARD 
=================== */
.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link img {
  border-radius: 12px;
  transition: transform .25s ease;
}
.woocommerce ul.products li.product:hover a.woocommerce-LoopProduct-link img {
  transform: scale(1.03);
}

/* Título y precio */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-weight: 700;
  margin: 10px 0 4px;
}
.woocommerce ul.products li.product .price {
  font-weight: 700;
  margin-bottom: 10px;
}

/* BOTÓN */
.woocommerce ul.products li.product .button {
  display: inline-block;
  width: 100%; 
  text-align: center;
  border-radius: 9px;    
  padding: 15px 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;          
  color: #fff;
  box-shadow: 0 6px 14px rgba(255,131,218,.35);
}
.woocommerce ul.products li.product .button:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* CHAPA DE OFERTA */
.woocommerce span.onsale {
  position: absolute;
  top: 10px;
  right: 10px;
  left: auto;
  margin: 0;
  background: #0dd4ff;              /* celeste */
  color: #0a0a0a;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  z-index: 3;
}

/* CHAPAS PERSONALIZADAS */
.nv-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: #ff4d6d;         
  color: #fff;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 800;
}
.nv-badge.best-seller { background: #00d0ff; color:#0a0a0a; }

/* Limita los títulos a 2 líneas con puntos suspensivos */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  max-height: calc(1.2em * 2);
}

/* RESPONSIVE */
@media (max-width: 1024px){
  .woocommerce ul.products.columns-4 li.product { width: 48% !important; }
}
@media (max-width: 600px){
  .woocommerce ul.products.columns-4 li.product { width: 100% !important; }
}

/* =============================
    BOTÓN DE FAVORITOS MENU
================================*/
/* BOTÓN FAVORITOS HEADER */
.nv-header-favs {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  text-decoration: none;
  cursor: pointer;
}

/* Ocultar texto visualmente, pero mantener accesibilidad */
.nv-sr-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Icono */
.nv-header-favs::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;

  -webkit-mask-image: url("https://nerdvana.club/wp-content/uploads/2025/11/latido-del-corazon.svg");
  mask-image: url("https://nerdvana.club/wp-content/uploads/2025/11/latido-del-corazon.svg");

  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;

  -webkit-mask-position: center;
  mask-position: center;

  -webkit-mask-size: contain;
  mask-size: contain;

  background-color: #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
  pointer-events: none;
}

.nv-header-favs:hover::before {
  background-color: #f7f7f7;
  transform: scale(1.05);
}

/* Tooltip base */
.nv-header-favs::after {
  content: attr(aria-label);
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e1ebf2;
  color: #000000;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 6px 8px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 20;
}

/* Tooltip visible al hover */
.nv-header-favs:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-3px);
}

/*===============
 BLOQUE NUEVO
 ================*/
/* CONTENEDOR PRINCIPAL */
.ywcact-congratulations-winner-auction-section {
    background: linear-gradient(135deg, #003049 0%, #0f102f 100%);
    border-radius: 16px;
    padding: 24px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
}

/* Glow sutil */
.ywcact-congratulations-winner-auction-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 60%);
    pointer-events: none;
}

/* HEADER */
.ywcact-congratulation-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

/* ICONO */
.ywcact-congratulation-title img {
    width: 28px;
    height: 28px;
}

/* NOMBRE USUARIO */
.ywcact-congratulation-title-message {
    background: linear-gradient(90deg, #fff, #fcbf49);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* CONTENIDO */
.ywcact-congratulation-message-content {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.9;
}

/* PRECIO DESTACADO */
.ywcact-congratulation-message-content .amount {
    display: block;
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0;

    background: linear-gradient(
        135deg,
        #fff 0%,
        #b8860b 18%,
        #ffd700 35%,
        #fff4b0 50%,
        #d4af37 65%,
        #8b6508 82%,
        #5c3d00 100%
    );

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* MENSAJE DE URGENCIA */
.ywcact-congratulation-message-content p {
    margin: 0;
}

/* BOTÓN */
.ywcact-auction-buy-now-button {
    margin-top: 18px;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    background: linear-gradient(90deg, #bb3742, #d62828) !important;
    color: #fff;
    transition: all 0.25s ease;
}

/* HOVER */
.ywcact-auction-buy-now-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #003049, #2b2e9a) !important;
}

/* MENSAJE DE DEADLINE */
.ywcact-congratulation-message-content p::after {
    content: " ⏳";
}

.ywcact-congratulations-winner-auction-section::after {
    content: "GANASTE";
    position: absolute;
    top: 12px;
    right: -40px;
    background: #22c55e;
    color: #fff;
    padding: 6px 40px;
    font-size: 12px;
    transform: rotate(45deg);
    font-weight: bold;
}

.ywcact-congratulations-winner-auction-section {
    animation: nvFadeUp 0.6s ease;
}

@keyframes nvFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*===========
 Tablas mi cuenta
============*/
.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-number {
    vertical-align: middle;
	  padding-left: 15px !important;
}

.woocommerce-table.woocommerce-table--order-details.shop_table.order_details th{
	padding-left: 15px !important;
}

.woocommerce-EditAccountForm {
    background: #fff; 
    padding: 24px;
    border-radius: 12px;
}

.woocommerce-address-fields {
	  background: #fff; 
    padding: 24px;
    border-radius: 12px;
}

.woocommerce-form__input-radio {
    margin: 5px !important;
}


/*=============
 TITULO PAGINA LISTA SEGUIMIENTO
==============*/
.yith-wcact-my-watchlist-list-index-container-header {
	display:none;
}

/*==============
   MARQUEE 
 ==============*/
.nv-marquee {
  --gap: 2rem;
  --duration: 30s;

  display: none;
  overflow: hidden;
  gap: var(--gap);
  align-items: center;
  white-space: nowrap;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  z-index: 9999;
  background: #003049;
  color: #fff;
	font-size: 12px;
  font-weight: 500 !important;
  padding: 0.5rem 0;
}

body.home .nv-marquee {
  display: flex;
}

.nv-marquee-track {
  display: inline-flex;
  gap: var(--gap);
  flex: 0 0 auto;
  animation: nv-scroll var(--duration) linear infinite;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nv-marquee:hover .nv-marquee-track {
  animation-play-state: paused;
}

@keyframes nv-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-100%);
  }
}

/*===============
     FOOTER
================*/
/* Footer tablet */
@media (min-width: 768px) and (max-width: 1024px) {

  .ct-footer [data-row="middle"] .ct-container {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 36px !important;
    align-items: start !important;
  }

  /* Métodos de pago */
  .ct-footer [data-column="widget-area-5"] {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  .ct-footer [data-column="widget-area-5"] #block-34 {
    width: 100%;
  }

  .ct-footer [data-column="widget-area-5"] #block-34 figure {
    margin: 0 !important;
  }

  .ct-footer [data-column="widget-area-5"] #block-34 .stk-img-wrapper {
    width: 190px !important;
    max-width: 100% !important;
  }

  /* Quitar espacio innecesario */
  .ct-footer [data-column="widget-area-5"] #block-41 {
    display: none !important;
  }
}

/*===============
 FIX ESTILO AUCTION INICIO 
================*/
/* Temporizador de subastas en tarjetas */
ul.products li.product .yith-wcact-timeleft-loop {
    pointer-events: none;
    background: rgba(0, 48, 73, 1);
    padding: 6px 10px;
    border-radius: 8px;
}

/* Ajuste específico en la página de inicio */
.home li.product.product-type-auction .yith-wcact-timeleft-loop {
    margin: 10px 0 8px;
    font-size: 13px;
}

/* El contenedor interior no debe tener fondo propio */
ul.products li.product .yith-wcact-timer-auction {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

/* Centrar reloj de subastas solo en el home */
.home li.product.product-type-auction .yith-wcact-timer-auction {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.home li.product.product-type-auction .yith-wcact-timeleft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}