/* Efecto hover en tarjetas de producto — estilo Athens / rey-productThumbnail
   La información del producto NO se oculta ni cambia de color al pasar el cursor. */

/* La imagen secundaria se apila sobre la principal */
.ath-theme .ath-card__media .ath-card__img--second{
  opacity:0;
  z-index:1;
  transition: opacity .3s cubic-bezier(.19,1,.22,1), transform .8s cubic-bezier(.19,1,.22,1);
}

/* Al pasar el cursor solo entra la segunda imagen (la principal queda debajo) */
.ath-theme .ath-card:hover .ath-card__media .ath-card__img--second{
  opacity:1;
  transform:scale(1.04);
}

/* La información siempre visible y en negro */
.ath-theme .ath-card .ath-card__body{
  position:relative;
  z-index:3;
  opacity:1 !important;
  visibility:visible !important;
  background:#fff;
}
.ath-theme .ath-card:hover .ath-card__body{ opacity:1 !important; }

.ath-theme .ath-card .ath-card__title,
.ath-theme .ath-card .ath-card__title a,
.ath-theme .ath-card:hover .ath-card__title,
.ath-theme .ath-card:hover .ath-card__title a{
  color:#111 !important;
  opacity:1 !important;
  -webkit-text-fill-color:#111;
}
.ath-theme .ath-card .ath-card__price,
.ath-theme .ath-card .ath-card__price ins,
.ath-theme .ath-card:hover .ath-card__price,
.ath-theme .ath-card:hover .ath-card__price ins{
  color:#111 !important;
  opacity:1 !important;
}
.ath-theme .ath-card .ath-card__price del,
.ath-theme .ath-card:hover .ath-card__price del{
  color:#8a8f94 !important;
  opacity:1 !important;
}
.ath-theme .ath-card .ath-card__cat,
.ath-theme .ath-card:hover .ath-card__cat{
  color:#6b7075 !important;
  opacity:1 !important;
}
.ath-theme .ath-card .ath-card__actions,
.ath-theme .ath-card:hover .ath-card__actions{ opacity:1 !important; }

/* En pantallas táctiles no hay hover: la segunda imagen no se muestra */
@media (hover:none){
  .ath-theme .ath-card__img--second{ display:none !important; }
}

@media (prefers-reduced-motion: reduce){
  .ath-theme .ath-card__img--second,
  .ath-theme .ath-card__media img{ transition:none !important; }
}

/* Margen lateral interno: el texto no queda pegado al borde de la tarjeta */
.ath-theme .ath-card > .ath-card__body{
  padding:13px 10px 2px !important;
}
@media (max-width:780px){
  .ath-theme .ath-card > .ath-card__body{ padding:10px 8px 2px !important; }
}

/* El logo debe mostrar sus colores originales: el tema lo forzaba a blanco */
html body.ath-theme .site-header img.custom-logo,
html body.ath-theme .site-header .custom-logo,
html body.ath-theme .site-header .custom-logo-link img,
html body.ath-theme .is_stuck .custom-logo,
html body.ath-theme .logo-mark img{
  filter:none !important;
  -webkit-filter:none !important;
  mix-blend-mode:normal !important;
}

/* Header en tres bloques: logo 1/4 (izq) · buscador 2/4 (centro) · mi cuenta 1/4 (der) */
@media (min-width:1025px){
  .ath-theme .site-header .main-header{
    display:grid !important;
    grid-template-columns:1fr 2fr 1fr !important;
    align-items:center !important;
    column-gap:24px;
  }
  .ath-theme .site-header .col-full-nav,
  .ath-theme .site-header .s-observer{ display:none !important; }

  .ath-theme .site-header .site-branding{
    grid-column:1; justify-self:start; display:flex; align-items:center; margin:0 !important;
  }

  /* el contenedor derecho se disuelve para colocar sus hijos en la grilla */
  .ath-theme .site-header .ath-header-right{ display:contents !important; }

  .ath-theme .site-header .ath-header-right .site-search{
    display:block !important;
    grid-column:2; justify-self:center;
    width:100%; max-width:720px; margin:0 !important;
  }
  .ath-theme .site-header .ath-header-right .site-search form,
  .ath-theme .site-header .ath-header-right .widget_product_search{
    width:100%; display:flex; align-items:center; margin:0 !important;
  }
  .ath-theme .site-header .ath-header-right .site-search .search-field{
    flex:1 1 auto; width:100%; height:38px;
    border:1px solid #d8dcdf; border-right:0; border-radius:2px 0 0 2px;
    padding:0 12px; font-family:inherit; font-size:13px; background:#fff;
  }
  .ath-theme .site-header .ath-header-right .site-search button[type="submit"]{
    height:38px; padding:0 18px; border:1px solid #151515;
    background:#151515; color:#fff; border-radius:0 2px 2px 0;
    font-family:inherit; font-size:11px; font-weight:600;
    letter-spacing:.14em; text-transform:uppercase; cursor:pointer;
  }
  .ath-theme .site-header .ath-header-right .site-search button[type="submit"]:hover{ background:#000; }

  .ath-theme .site-header .ath-header-right .secondary-navigation{
    grid-column:3; justify-self:end; margin:0 !important;
  }
  .ath-theme .site-header .site-header-cart{
    display:block !important; grid-column:3; justify-self:start; margin:0 !important;
  }
  .ath-theme .site-header .menu-toggle{ display:none !important; }
}

/* Texto del buscador legible sobre el campo blanco */
@media (min-width:1025px){
  .ath-theme .site-header .ath-header-right .site-search .search-field{
    color:#151515 !important;
    -webkit-text-fill-color:#151515;
    caret-color:#151515;
  }
  .ath-theme .site-header .ath-header-right .site-search .search-field::placeholder{
    color:#8a9098 !important; opacity:1;
  }
}

/* Márgenes del header alineados con la barra de menú (48px) y máximo 1440px centrado */
@media (min-width:1025px){
  .ath-theme .site-header .main-header.col-full{
    padding-left:48px !important;
    padding-right:48px !important;
    max-width:1440px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Todo el header en una sola fila, centrado verticalmente, y logo más grande */
@media (min-width:1025px){
  .ath-theme .site-header .main-header.col-full{ align-items:center !important; }
  .ath-theme .site-header .main-header.col-full > *{ grid-row:1 !important; }
  .ath-theme .site-header .site-branding,
  .ath-theme .site-header .ath-header-right .site-search,
  .ath-theme .site-header .ath-header-right .secondary-navigation,
  .ath-theme .site-header .site-header-cart{ align-self:center !important; }

  .ath-theme .site-header .site-branding .custom-logo,
  .ath-theme .site-header .custom-logo-link img.custom-logo{
    height:66px !important;
    width:auto !important;
    max-height:none !important;
  }
  .ath-theme .site-header .custom-logo-link{ display:flex; align-items:center; }
}

/* Los hijos del contenedor disuelto también deben quedar en la fila 1 */
@media (min-width:1025px){
  .ath-theme .site-header .ath-header-right > *{ grid-row:1 !important; }
}

/* Header fijo durante el scroll: el tema lo desplazaba con transform al bajar */
.ath-theme .site-header{
  position:sticky !important;
  top:0 !important;
  transform:none !important;
  -webkit-transform:none !important;
  z-index:1000 !important;
}

/* La barra de categorías acompaña al header fijo (alto del header encogido = 74px) */
@media (min-width:1025px){
  .ath-theme .ath-nav{
    position:sticky !important;
    top:var(--ath-header-h, 74px) !important;
    z-index:990 !important;
  }
}

/* Icono de "Mi cuenta": visible y en blanco, encima del texto */
.ath-theme .site-header .ath-header-right .secondary-navigation a{
  display:flex !important;
  flex-direction:column-reverse !important;
  align-items:center !important;
  line-height:1.15;
}
.ath-theme .site-header .ath-header-right .secondary-navigation .icon-wrapper{
  display:flex !important;
  align-items:center; justify-content:center;
  width:22px; height:22px;
  margin:0 auto 3px !important;
}
.ath-theme .site-header .ath-header-right .secondary-navigation .icon-wrapper svg{
  width:22px !important; height:22px !important;
  stroke:#fff !important;
  color:#fff !important;
  fill:none !important;
}

/* El header fijo crece según su contenido para no desbordarse sobre el menú */
.ath-theme .site-header.is-shrunk{ height:auto !important; }
.ath-theme .site-header.is-shrunk .main-header.col-full{ height:auto !important; }

/* Header encogido más compacto (sin desbordar el contenido) */
.ath-theme .site-header.is-shrunk .main-header.col-full{
  padding-top:16px !important;
  padding-bottom:16px !important;
}

/* El header completo en negro: a anchos grandes los costados quedaban blancos */
.ath-theme .site-header{
  background-color:#121212 !important;
}

/* Móvil: un producto por fila */
@media (max-width:780px){
  html body.ath-theme ul.products.ath-grid,
  html body.ath-theme ul.products.ath-grid.ath-cols-2,
  html body.ath-theme ul.products.ath-grid.ath-cols-3,
  html body.ath-theme ul.products.ath-grid.ath-cols-4,
  html body.ath-theme .elementor-widget-shortcode ul.products,
  html body.ath-theme .elementor-widget-shortcode ul.products.columns-2,
  html body.ath-theme .elementor-widget-shortcode ul.products.columns-3,
  html body.ath-theme .elementor-widget-shortcode ul.products.columns-4{
    grid-template-columns:1fr !important;
    gap:24px !important;
  }
}
