/*
Theme Name: Enfold Child
Theme URI: https://kriesi.at/themes/enfold/
Description: Child theme for Enfold
Author: Antonio
Template: enfold
Version: 1.0
*/

/* Mata todos los efectos default de Enfold sobre el link */
.card-category a {
  all: unset;
  cursor: pointer;
}

/* Desactiva hover default de Enfold en productos */
.avia-content-slider .slide-image,
.grid-entry .grid-image,
.product .image-overlay,
.avia-product-hover-overlay {
    display: none !important;
}

.grid-entry .inner-entry {
    box-shadow: none !important;
}

.product:hover {
    box-shadow: none !important;
}

.image-overlay,
.image-overlay .image-overlay-inside  {
    display: none !important;
}

/* Evita el overlay y la flecha */
.card-category .image-overlay,
.card-category .image-overlay-inside,
.card-category .av-image-caption-overlay {
  display: none !important;
}

/* El link NO debe capturar el mouse para que funcione el drag */
.card-category a {
  pointer-events: none;
}

/* CSS: */
.mt-20 {
  margin-top: 20px;
}
.mt-50 {
  margin-top: 50px;
}
.mt-100 {
  margin-top: 100px;
}

.ml-20 {
  margin-left: 20px;
}
.ml-50 {
  margin-left: 50px;
}
.ml-100 {
  margin-left: 100px;
}

.mr-20 {
  margin-right: 20px;
}
.mr-50 {
  margin-right: 50px;
}
.mr-100 {
  margin-right: 100px;
}

.mb-20 {
  margin-bottom: 20px;
}
.mb-50 {
  margin-bottom: 50px;
}
.mb-100 {
  margin-bottom: 100px;
}

.pt-20 {
  padding-top: 20px;
}
.pt-50 {
  padding-top: 50px;
}
.pt-100 {
  padding-top: 100px;
}

.pb-20 {
  padding-bottom: 20px;
}
.pb-50 {
  padding-bottom: 50px;
}
.pb-100 {
  padding-bottom: 100px;
}

.grey-background {
  background: #f3f3f3;
}

.dark-background {
  background: #1c1c1c;
}

.dark-background .section-title,
.dark-background .section-subtitle,
.dark-background .cat-tab,
.dark-background .cat-view-all,
.dark-background h2,
.dark-background p {
  color: rgb(210, 210, 210);
}

/*  Alinear a la izquierda, centro o derecha */
.to-left {
  display: flex;
  justify-content: start;
}

.to-center {
  display: flex;
  justify-content: center;
}

.to-right {
  display: flex;
  justify-content: right;
}


/* Estilos para precios */
.custom-price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Precio principal */
.new-price,
.normal-price {
    font-size: 20px;
    font-weight: 800;
    color: #000;
    letter-spacing: -0.5px;
}

/* Precio anterior */
.old-price {
    font-size: 14px;
    color: #888;
    text-decoration: line-through;
    font-weight: 500;
}

/* Badge descuento */
.discount-badge {
    background: #e10600; /* rojo deportivo */
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.bike-card .custom-price {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 6px;
}

/* Precio principal */
.bike-card .new-price,
.bike-card .normal-price {
    font-size: 16px;
    font-weight: 800;
    color: #111;
    line-height: 1.1;
}

/* Línea inferior */
.bike-card .price-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Precio anterior */
.bike-card .old-price {
    font-size: 11px;
    color: #888;
    text-decoration: line-through;
    font-weight: 500;
}

/* Badge compacto */
.bike-card .discount-badge {
    background: #e10600;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 4px;
    border-radius: 4px;
}

@media (max-width: 768px) {
  .custom-price { margin-top: 5px; }
  .custom-price .normal-price { font-size: 14px; }
  .custom-price .new-price { font-size: 14px; }
  .custom-price .old-price { font-size: 12px; }
  .custom-price .discount-badge {
    font-size: 11px;
    padding: 2px 3px;
  }
}


.cat-view-all {
  color: #262626;
}

.cat-view-all-arrow {
  font-weight: bold;
  font-size: 1.2em;
  color: red;
  text-decoration: none;
  position: relative;
  top: 2px;
  left: 0px;
  display: inline-block;
  transition: all .3s ease;
}

.cat-view-all:hover {
  text-decoration: none;
}

.cat-view-all:hover .cat-view-all-arrow {
  left: 4px;
  transform: scale(1.2);
}


/*Titulos y subtitulos */
/* ===== SECTION HEADER ===== */
.section-header {
  max-width: 85%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  padding: 40px 0 0;
  background-color: transparent;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.section-header h2::after {
  content: "";
  width: 80px;
  height: 2px;
  background: #e10600;
  display: block;
  margin: 10px auto 0;
}

.section-header.is-centered {
  text-align: center;
}

.section-header.is-centered .section-subtitle {
  margin: 0 auto;
}


/* Eyebrow */
.section-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 12px;
}

/* Title */
.section-title {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  margin-bottom: 16px;
}

/* Subtitle */
.section-subtitle {
  max-width: 100%;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
}

/* Mobile alignment */
@media (max-width: 768px) {
  .section-header {
    text-align: center;
  }

  .section-subtitle {
    margin: 0 auto;
  }
}



/* ===== BIKE CATEGORIES ===== */
.bike-categories {
  padding: 10px 0 30px;
  background-color: #ffffff;
  width: 85%;
  margin: 0 auto; 
}

.container-categories {
  max-width: 100%;
  margin: 0 0;
}

/* GRID */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* CARD */
.category-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  

  padding: 2px 24px;
  background-color: #f5f5f5;
  border-radius: 8px;

  text-decoration: none;
  color: #111;
  font-weight: 600;

  transition: background-color 0.2s ease,
              transform 0.2s ease;
}

.category-card .icon {
  font-size: 24px;
  line-height: 1;
  
  position: relative;

  transition: transform 0.5s ease, scale 0.5s ease;
}

.category-icon {
  width: 80px;
  height: 80px;
}

.category-card .label {
  font-size: 18px;
  color: #555;  

  position: relative;

  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.5s ease;
  transition-delay: 70ms;
}

.category-arrow {
  margin-left: auto;
  opacity: 0;
  color: #9b9b9b;
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-size: 30px;
}



/* HOVER */
@media (hover: hover) and (pointer: fine) {
  .category-card:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
    text-decoration: none;
  }

  .category-card:hover .icon {
    transform: scale(0.8, 0.8) translateX(-20%);
  }

  .category-card:hover .label {
    transform: translateX(20%);
    opacity: 1;
  }

  .category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* MOBILE */
@media (max-width: 768px) {
  .bike-categories {
    padding: 20px 0;
    width: 90%;
  }

  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 10px;
    justify-content: space-around;
  }

  .category-card .icon {
    position: block ;
    position: relative;
    left: 0;
    transform: translateX(0);
  }

  .category-icon {
    width: 60px;
    height: 60px;
  }

  .category-card .label {
    font-size: 14px;
    opacity: 1;
    text-align: left;

    position: relative;
    left: 0;
    transform: translateX(0);
  }
}



/* =============================================
   3MART — WooCommerce notices (global)
   ============================================= */

.woocommerce-message,
.woocommerce-info {
  background: #f9f9f9 !important;
  border: 1px solid #ddd !important;
  border-left: 4px solid #111 !important;
  border-radius: 0 !important;
  color: #111 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  box-shadow: none !important;
  padding: 14px 20px !important;
  margin-bottom: 16px !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
  display: none !important;
}

.woocommerce-message a,
.woocommerce-info a {
  color: #d22a32 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}

.woocommerce-message a:hover,
.woocommerce-info a:hover {
  text-decoration: underline !important;
}

.woocommerce-error {
  background: #fff3f3 !important;
  border: 1px solid #ddd !important;
  border-left: 4px solid #d22a32 !important;
  border-radius: 0 !important;
  color: #111 !important;
  font-size: 0.875rem !important;
  padding: 14px 20px !important;
  box-shadow: none !important;
  list-style: none !important;
  margin-bottom: 16px !important;
}

.woocommerce-error::before {
  display: none !important;
}

.woocommerce-error li {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0.875rem !important;
}
