/*
 * Calzado Barefoot · Estilos permanentes
 * Extraído del CSS adicional de WordPress.
 * La sección 01 (PORTADA) permanece en Apariencia → Personalizar → CSS adicional.
 */

/**************************
 * 02. GLOBAL · TODAS LAS PÁGINAS
 *************************/

/* 02.1 Menú · ítem destacado en negrita */
.menu-bold > a {
  font-weight: bold !important;
}


/* 02.2 Vídeos · bloque de enlaces · escritorio */
.flex.flex-wrap.gap-4.mt-9 > a {
  width: calc(50% - 0.5rem) !important;
  max-width: none !important;
  flex: 0 0 calc(50% - 0.5rem);
}


/* 02.3 Vídeos · bloque de enlaces · móvil */
@media (max-width: 768px) {
  .flex.flex-wrap.gap-4.mt-9 > a {
    width: 90% !important;
    max-width: 90% !important;
    flex: 0 0 90%;
    margin-left: auto;
    margin-right: auto;
  }
}


/********************************
 * 03. MENÚ DESKTOP
 *******************************/

/* 03.1 Menú desktop · "Te ayudamos" en una sola columna
 * ES: #menu-item-10468 | EN: #menu-item-56275 | PT: #menu-item-56280
 */
@media (min-width: 1024px) {
  #menu-item-10468 > ul.sub-menu,
  #menu-item-56275 > ul.sub-menu,
  #menu-item-56280 > ul.sub-menu {
    column-count: 1 !important;
    columns: 1 !important;
    column-width: auto !important;

    flex-wrap: nowrap !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;

    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;

    overflow: visible !important;
  }

  #menu-item-10468 > ul.sub-menu > li,
  #menu-item-56275 > ul.sub-menu > li,
  #menu-item-56280 > ul.sub-menu > li {
    float: none !important;
    clear: none !important;
    width: auto !important;
    max-width: none !important;
    break-inside: avoid !important;
  }
}


/*
 * 03.2 Menú desktop:
 * - Oculta toggles.
 * - Abre submenús solo con hover.
 * - Corrige sub-submenús hacia la derecha.
 */
@media (min-width: 1024px) {
  li.desktop-hover-submenu > .submenu-toggle {
    display: none !important;
  }

  .desktop-hover-submenu li.menu-item-has-children > .sub-menu {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }

  .desktop-hover-submenu li.menu-item-has-children:hover > .sub-menu {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .desktop-hover-submenu li.open > .sub-menu,
  .desktop-hover-submenu li.focus > .sub-menu,
  .desktop-hover-submenu li.current-menu-ancestor > .sub-menu {
    display: none !important;
  }

  .desktop-hover-submenu .sub-menu li.menu-item-has-children {
    position: relative !important;
  }

  .desktop-hover-submenu .sub-menu li.menu-item-has-children > .sub-menu {
    position: absolute !important;
    left: 100% !important;
    right: auto !important;
    top: 0 !important;
    min-width: 220px;
    z-index: 9999;
  }
}


/*****************************
 * 03.3 MENÚ · LAYOUT Y BANDERAS DE IDIOMA
 * Trasladado desde Apariencia → Personalizar → CSS adicional.
 ****************************/

/* Menú completo únicamente en pantallas anchas:
 * desde 1536 px. Por debajo se mantiene hamburguesa.
 */
@media (min-width: 1536px) {

    #header-left .main-menu-wrapper {
        display: block;
        overflow: visible;
        position: static;
        inset: auto;
        width: auto;
        max-height: none;
        padding: 0;
        background-color: transparent;
        box-shadow: none;
    }

    #header-left .menu-toggle {
        display: none;
    }
}


/* Selector de idioma: banderas */
#masthead .menu-item-wpml-ls-304-es > a .wpml-ls-native::before,
#masthead .menu-item-wpml-ls-304-pt-pt > a .wpml-ls-native::before,
#masthead .menu-item-wpml-ls-304-en > a .wpml-ls-native::before {
  content: "";
  display: inline-block;
  width: 1.35em;
  height: .9em;
  margin-right: .45em;
  vertical-align: -.08em;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

#masthead .menu-item-wpml-ls-304-es > a .wpml-ls-native::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2040%22%3E%3Cpath%20fill%3D%22%23aa151b%22%20d%3D%22M0%200h60v10H0zm0%2030h60v10H0z%22%2F%3E%3Cpath%20fill%3D%22%23f1bf00%22%20d%3D%22M0%2010h60v20H0z%22%2F%3E%3C%2Fsvg%3E"); }
#masthead .menu-item-wpml-ls-304-pt-pt > a .wpml-ls-native::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2040%22%3E%3Cpath%20fill%3D%22%23046a38%22%20d%3D%22M0%200h24v40H0z%22%2F%3E%3Cpath%20fill%3D%22%23da291c%22%20d%3D%22M24%200h36v40H24z%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2220%22%20r%3D%228%22%20fill%3D%22%23f1bf00%22%2F%3E%3Ccircle%20cx%3D%2224%22%20cy%3D%2220%22%20r%3D%224%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); }
#masthead .menu-item-wpml-ls-304-en > a .wpml-ls-native::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2060%2040%22%3E%3Crect%20width%3D%2260%22%20height%3D%2240%22%20fill%3D%22%23012169%22%2F%3E%3Cpath%20d%3D%22M0%200L60%2040M60%200L0%2040%22%20stroke%3D%22%23fff%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M0%200L60%2040M60%200L0%2040%22%20stroke%3D%22%23c8102e%22%20stroke-width%3D%224%22%2F%3E%3Cpath%20d%3D%22M30%200v40M0%2020h60%22%20stroke%3D%22%23fff%22%20stroke-width%3D%2212%22%2F%3E%3Cpath%20d%3D%22M30%200v40M0%2020h60%22%20stroke%3D%22%23c8102e%22%20stroke-width%3D%226%22%2F%3E%3C%2Fsvg%3E"); }


/********************************************
 * 04. WOOCOMMERCE · GLOBAL
 *******************************************/

/* 04.1 Precio tachado */
.woocommerce ul.products li.product .price del {
  opacity: 0.6;
}


/* 04.2 Paginación móvil · evita que ensanche el viewport */
@media (max-width: 640px) {
  .woocommerce-pagination {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .woocommerce-pagination .page-numbers {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    min-width: max-content;
  }

  .woocommerce-pagination .page-numbers li {
    flex: 0 0 auto;
  }

  .woocommerce-pagination .page-numbers a,
  .woocommerce-pagination .page-numbers span {
    padding: 0.45rem 0.6rem;
    font-size: 0.95rem;
    line-height: 1;
  }
}


/*******************************************
 * 05. WOOCOMMERCE · LISTADOS DE PRODUCTOS
 ******************************************/

@media (max-width: 768px) {
  :root {
    --grid-gap-x: 4px;
    --grid-gap-y: 2px;
    --wrapper-pad: 20px;
  }

  /* 05.1 Base común · cualquier listado */
  .woocommerce ul.products,
  .woocommerce-page ul.products,
  ul.products[class*="columns-"] {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: var(--grid-gap-x) !important;
    row-gap: var(--grid-gap-y) !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
  }

  ul.products li.product .woocommerce-loop-product__thumbnail {
    margin: 0;
  }

  ul.products li.product .woocommerce-loop-product__thumbnail img {
    width: 100% !important;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 0;
    margin: 0;
  }

  /* 05.2 Tienda / categorías */
  .products-grid {
    margin-left: calc(-1 * var(--wrapper-pad));
    margin-right: calc(-1 * var(--wrapper-pad));
  }

  .products-grid ul.products li.product a.woocommerce-LoopProduct-link,
  body.search ul.products li.product a.woocommerce-LoopProduct-link,
  body.search-results ul.products li.product a.woocommerce-LoopProduct-link {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .products-grid ul.products li.product .flex.gap-baseGap.justify-between,
  body.search ul.products li.product .flex.gap-baseGap.justify-between,
  body.search-results ul.products li.product .flex.gap-baseGap.justify-between {
    display: block !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
    min-width: 0;
  }

  .products-grid ul.products li.product .woocommerce-loop-product__brand,
  body.search ul.products li.product .woocommerce-loop-product__brand,
  body.search-results ul.products li.product .woocommerce-loop-product__brand {
    margin: 2px 0 0;
    font-size: 11px !important;
    line-height: 1.2;
    letter-spacing: 0.2px;
    color: #6b7280;
    text-transform: uppercase;
  }

  .products-grid ul.products li.product .woocommerce-loop-product__title,
  body.search ul.products li.product .woocommerce-loop-product__title,
  body.search-results ul.products li.product .woocommerce-loop-product__title {
    font-size: 13px !important;
    line-height: 1.25;
    font-weight: 600;
    margin: 2px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .products-grid ul.products li.product .text-right,
  body.search ul.products li.product .text-right,
  body.search-results ul.products li.product .text-right {
    text-align: left !important;
    white-space: normal !important;
  }

  .products-grid ul.products li.product .price,
  body.search ul.products li.product .price,
  body.search-results ul.products li.product .price {
    font-size: 14px !important;
    font-weight: 700;
    margin-top: 2px;
  }

  .products-grid ul.products li.product .woocommerce-loop-product__price-sufix,
  body.search ul.products li.product .woocommerce-loop-product__price-sufix,
  body.search-results ul.products li.product .woocommerce-loop-product__price-sufix {
    font-size: 11px !important;
    opacity: 0.6;
    margin-top: 1px;
  }

  /* 05.3 Búsqueda · igual que grid normal */
  body.search main.site-main ul.products,
  body.search-results main.site-main ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    column-gap: var(--grid-gap-x) !important;
    row-gap: var(--grid-gap-y) !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.search ul.products.columns-3 li.product,
  body.search-results ul.products.columns-3 li.product {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    min-width: 0;
    box-sizing: border-box;
  }

  body.search ul.products li.product.first,
  body.search ul.products li.product.last,
  body.search ul.products li.product:nth-child(3n),
  body.search-results ul.products li.product.first,
  body.search-results ul.products li.product.last,
  body.search-results ul.products li.product:nth-child(3n) {
    margin: 0 !important;
  }

  body.search ul.products li.product .onsale,
  body.search-results ul.products li.product .onsale {
    left: 6px !important;
    top: 6px !important;
  }
}


/********************************************
 * 06. WOOCOMMERCE · FOOTCALC / RESULTADOS PRODUCTOS
 ********************************************/

/* 06.1 Footcalc · móvil: 2 columnas */
.block-footcalc .ltw-bti-calc-results ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: var(--baseGap, 12px);
}


/* 06.2 Footcalc · desktop: 3 columnas */
@media (min-width: 768px) {
  .block-footcalc .ltw-bti-calc-results ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}


/* 06.3 Footcalc · tarjeta producto */
.block-footcalc .ltw-bti-calc-results ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
}

.block-footcalc .ltw-bti-calc-results a.woocommerce-LoopProduct-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.block-footcalc .ltw-bti-calc-results .flex.gap-baseGap.justify-between {
  display: block !important;
  padding-left: 4px !important;
  padding-right: 4px !important;
}

.block-footcalc .ltw-bti-calc-results .woocommerce-loop-product__brand {
  margin: 2px 0 0;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: #6b7280;
  text-transform: uppercase;
}

.block-footcalc .ltw-bti-calc-results .woocommerce-loop-product__title {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 600;
  margin: 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.block-footcalc .ltw-bti-calc-results .text-right {
  text-align: left !important;
  white-space: normal !important;
}

.block-footcalc .ltw-bti-calc-results .price {
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.block-footcalc .ltw-bti-calc-results .woocommerce-loop-product__price-sufix {
  font-size: 11px;
  opacity: 0.6;
  margin-top: 1px;
}

.block-footcalc .ltw-bti-calc-results .onsale {
  left: 6px !important;
  top: 6px !important;
}


/********************************************
 * 07. WOOCOMMERCE · FICHA DE PRODUCTO
 *******************************************/

/* 07.1 Ficha producto · h4 descripción sin negrita */
.woocommerce-tabs .accordion__content h4 {
  font-weight: normal !important;
}


/* 07.2 Ficha producto · aviso de puntos */
.single-product .summary .wlr-product-message {
  display: block;
  margin-top: 18px;
  margin-bottom: 8px;
  padding: 12px 14px;
  line-height: 25px;
  border-radius: 10px;
  background: #f9faf9;
  color: #296C85;
  border: 1.5px solid #9BA761;
  font-weight: 500;
}


/* 07.3 Ficha producto · seQura */
.sequra-promotion-widget {
  margin-bottom: 25px;
}


/* 07.4 Ficha producto · botón carrito móvil fijo arriba */
@media (max-width: 767px) {
  body.single-product .cb-scroll-cart-actions {
    background-color: #ffffff;
    padding: 10px 0;
    display: flex;
    align-items: stretch;
    gap: 12px;
    z-index: 90 !important;
    pointer-events: auto;
  }

  body.single-product .cb-scroll-cart-actions.cb-fixed-top {
    position: fixed !important;
    top: 72px;
    bottom: auto;
    padding: 10px 14px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.14);
  }

  body.single-product .cb-scroll-cart-actions .quantity {
    margin: 0 !important;
    flex: 0 0 auto;
  }

  body.single-product .cb-scroll-cart-actions .quantity input.qty {
    width: 68px;
    height: 48px;
  }

  body.single-product .cb-scroll-cart-actions .single_add_to_cart_button {
    margin: 0 !important;
    flex: 1;
    min-height: 48px;
  }
}


/*******************************************
 * 08. WIDGETS / PLUGINS EXTERNOS
 ******************************************/

/* 08.1 Revi · flotante por debajo del menú hamburguesa en mobile */
@media (max-width: 1023px) {
  .revi-widget-floating-1 {
    z-index: 99 !important;
  }
}


/* 08.2 Revi · si se oculta con opacity:0, no debe bloquear clics */
.revi-element-content-area[style*="opacity:0"],
.revi-element-content-area[style*="opacity: 0"] {
  pointer-events: none !important;
}


/* 08.3 Revi · cuando está visible, sí puede recibir clics */
.revi-element-content-area[style*="opacity:1"],
.revi-element-content-area[style*="opacity: 1"] {
  pointer-events: auto !important;
}


/* 08.4 Back In Stock */
.cwginstock-subscribe-form .panel-primary > .panel-heading {
  background-color: #296C85 !important;
  border-color: #296C85 !important;
  color: #ffffff !important;
}


/********************************************
 * 09. FOOTER
 *******************************************/

/* 09.1 Footer · iconos redes sociales */
.block-rrss__item:hover,
.block-rrss__item:hover a {
  color: #ffffff !important;
  background-color: #296C85 !important;
}

/* ==========================================================
   CLUB BAREFOOT - BLOQUE PORTADA (ES / EN / PT)
   Versión 1.2
   ========================================================== */

.cbf-club-home {
    background: #F5F1E8;
    border-radius: 18px;
    padding: 48px;
    margin: 45px 0;
    overflow: hidden;
}

.cbf-club-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 62fr) minmax(0, 38fr);
    gap: 55px;
    align-items: center;
}

.cbf-club-left {
    min-width: 0;
}

.cbf-club-eyebrow {
    color: #296C85;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
    margin: 0 0 18px;
}

.cbf-club-title {
    color: #202020;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.08;
    margin: 0 0 18px;
}

.cbf-club-accent {
    color: #296C85;
}

.cbf-club-description {
    color: #34454b;
    font-size: 18px;
    line-height: 1.65;
    max-width: 680px;
    margin: 0 0 26px;
}

.cbf-club-primary {
    display: inline-block;
    background: #296C85;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 13px 26px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background-color .2s ease;
}

.cbf-club-primary:hover,
.cbf-club-primary:focus {
    transform: translateY(-3px);
    background: #296C85;
    color: #ffffff !important;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(0,0,0,.14);
}

.cbf-club-small {
    color: #747474;
    font-size: 12px;
    line-height: 1.4;
    margin: 15px 0 0;
}

.cbf-club-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 30px;
    box-shadow: 0 10px 35px rgba(41,108,133,.10);
}

.cbf-club-card-title {
    color: #296C85;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
}

.cbf-club-card p {
    color: #202020;
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 16px;
}

.cbf-club-card p:last-child {
    margin-bottom: 0;
}

@media (max-width: 781px) {
    .cbf-club-home {
        padding: 34px 24px;
    }

    .cbf-club-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .cbf-club-title {
        font-size: 34px;
    }

    .cbf-club-description {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .cbf-club-home {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .cbf-club-title {
        font-size: 30px;
    }

    .cbf-club-primary {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .cbf-club-card {
        padding: 24px;
    }
}



/********************************************
 * 10. FICHA DE PRODUCTO · ENLAZADO INTERNO
 *     Widget "Sigue explorando"
 *******************************************/

.cbf-sigue-explorando {
    background: #F5F5EE;
    padding: 36px 40px;
    margin-top: 35px;
    margin-bottom: 35px;
    border-radius: 20px;
    text-align: center;
}

/* Centrado de textos del bloque */
.cbf-sigue-explorando h1,
.cbf-sigue-explorando h2,
.cbf-sigue-explorando h3,
.cbf-sigue-explorando h4,
.cbf-sigue-explorando p {
    text-align: center;
}

/* Separación del enlace dinámico */
.cbf-sigue-explorando .cbf-enlace-categoria-producto {
    margin-top: 14px;
    text-align: center;
}

/* Botón */
.cbf-sigue-explorando .cbf-enlace-categoria-producto a {
    display: inline-block;
    margin-top: 6px;
    padding: 11px 22px;
    background: #296C85;
    color: #fff !important;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    border: none;
    border-radius: 6px;
    transition: all .2s ease;
}

.cbf-sigue-explorando .cbf-enlace-categoria-producto a:hover,
.cbf-sigue-explorando .cbf-enlace-categoria-producto a:focus {
    background: #21596E;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Separador cuando un producto pertenece a varias landings principales */
.cbf-sigue-explorando .cbf-separador {
    display: inline-block;
    margin: 0 8px;
}

/* Ajuste fino de espacios alrededor del widget en ficha de producto */
.single-product .up-sells.my-sectionSpacing {
    margin-bottom: 10px !important;
}

.single-product .cbf-sigue-explorando {
    margin-top: 25px;
    margin-bottom: 28px;
}

.single-product .cbf-sigue-explorando + .widget,
.single-product .widget:has(.cbf-sigue-explorando) + .widget .my-sectionSpacing {
    margin-top: 0 !important;
}

/* Ajuste móvil */
@media (max-width: 767px) {
    .cbf-sigue-explorando {
        padding: 28px 20px;
        margin-top: 20px;
        margin-bottom: 25px;
        border-radius: 14px;
    }

    .cbf-sigue-explorando .cbf-enlace-categoria-producto a {
        padding: 10px 18px;
    }
}
