/*
	Theme Name:     Propharm Child
	Theme URI:      http://www.enovathemes.com/propharm
	Description:    Propharm - Pharmacy Medical WooCommerce WordPress Theme
	Author:         Enovathemes
	Author URI:     https://enovathemes.com
	Version:        1.0
	Template:       propharm
*/

/* =Theme customization starts here
-------------------------------------------------------------- */

ul.products-brands.bordered > li {
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 0;
  position: relative;
}

ul.products-brands.bordered > li:hover {
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

ul.products-brands.bordered > li > a > .brand-title {
  font-size: 18px;
  font-family: "Raleway", sans-serif;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #3f6caf;
  text-align: center;
  display: block;
}

ul.products-brands.bordered > li > ul {
  position: absolute;
  z-index: 100;

  top: calc(100% + 10px);
  left: 0;
  right: 0;

  padding: 16px;

  background: #ffffff;
  border: 1px solid #e1e1e1;
  border-radius: 0 0 6px 6px;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transform: translateY(-8px);

  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0.4s ease;
}

ul.products-brands > li:hover > ul.subbrands {
  display: block;
  position: absolute;
  background-color: #ffffff;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 10px;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

ul.products-brands.bordered > li > ul.subbrands::after {
  content: "";

  position: absolute;

  top: -10px;
  left: 50%;

  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid #e1e1e1;

  z-index: 1;
}

ul.products-brands.bordered > li > ul.subbrands::before {
  content: "";

  position: absolute;

  top: -8px;
  left: 50%;

  transform: translateX(-50%);

  width: 0;
  height: 0;

  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #ffffff;

  z-index: 2;
}

ul.products-brands.bordered > li > ul.subbrands > li.subbrand {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.products-brands.bordered > li > ul.subbrands > li.subbrand > a {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding-bottom: 10px;
  padding-top: 10px;
  border-bottom: 1px solid #d3d3d3;
}

ul.products-brands.bordered > li > ul.subbrands > li.subbrand:last-child > a {
  border-bottom: none;
}

ul.products-brands.bordered > li > a > img,
ul.products-brands.bordered > li > ul.subbrands > li.subbrand > a > img {
  margin: 0 auto;
  display: block;
  object-fit: contain;
  width: auto;
  height: auto;
}

ul.products-brands.bordered > li > ul.subbrands > li.subbrand > a > img {
  max-width: 40px !important;
  margin-left: 0 !important;
}

ul.products-brands.bordered > li > ul.subbrands > li.subbrand > a .subbrand-text {
  font-size: 14px;
  font-family: "Raleway", sans-serif;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #3f6caf;
  text-align: left;
  display: block;

  width: 100%;
  margin-left: 10px;
}

.tabset .tab .icon svg {
  max-width: 100px;
}

.cta-orange {
  background-color: #f2971f !important;
  color: #ffffff;
  padding: 10px 20px !important;
  line-height: normal !important;
  position: relative;
  text-decoration: none;
  vertical-align: middle;
  word-wrap: break-word;
  box-shadow: none;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0;
  background-image: none;
  border: 1px solid #f2971f;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif !important;
  font-size: 18px !important;
  font-weight: 600;
  border-radius: 50px;
}

.cta-orange .text {
  line-height: 40px !important;
}

.cta-blue {
  background-color: #184363;
  color: #ffffff;
  padding: 16px 20px 16px 20px !important;
  line-height: 40px;
  position: relative;
  line-height: normal;
  text-decoration: none;
  vertical-align: middle;
  word-wrap: break-word;
  box-shadow: none;
  cursor: pointer;
  display: inline-block;
  margin-bottom: 0;
  background-image: none;
  border: 1px solid #184363;
  box-sizing: border-box;
  font-family: "Raleway", sans-serif !important;
  font-size: 18px !important;
  font-weight: 600;
  border-radius: 50px;
}

.category-body .category-content {
  display: none;
}

form.wpcf7-form textarea {
  resize: none !important;
}

a.footer-link {
  color: #ffffff;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  text-decoration: underline;
}

.container h4.et-heading:first-child {
  /* font-size: 33px !important; */
}

h1,
.font-size-33 {
  font-size: 33px !important;
  line-height: 150% !important;
  font-weight: 700 !important;
}

h2,
.font-size-28 {
  font-size: 28px !important;
  font-weight: 700 !important;
}

.font-size-18 {
  font-size: 18px !important;
}

.wpb_text_column.wpb_content_element p {
  font-size: 18px !important;
}
.wpb_text_column.wpb_content_element ul,
.wpb_text_column.wpb_content_element ol {
  padding-left: 32px;
  font-size: 18px !important;
}

.soluciones-cardContainer .card {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  row-gap: 16px;
}

.counter-inverted .et-counter .counter-value {
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
}

.header-menu-container .menu-item.active .effect {
  /* background-color: #f2971f !important; */
  /* color: #ffffff !important; */
}

.form-white select {
  border: 1px solid #c8d8e4 !important;
  border-radius: 6px !important;
}

/* =========================================
   CARRUSEL DE MARCAS
   ========================================= */

.brands-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* Track que se mueve */

.brands-carousel-track {
  display: flex;
  width: max-content;

  animation-name: brands-carousel-scroll;
  animation-duration: var(--brands-speed, 30s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;

  will-change: transform;
}

/* Cada grupo contiene todas las marcas */

.brands-carousel-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Cada marca */

.brand-carousel-item {
  flex: 0 0 auto;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 30px;
}

/* Link */

.brand-carousel-item a {
  display: flex;

  align-items: center;
  justify-content: center;

  text-decoration: none;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Logo */

.brand-carousel-item img {
  display: block;

  width: auto;
  height: auto;

  object-fit: contain;

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Hover individual */

.brand-carousel-item a:hover img {
  transform: scale(1.08);
}

/* Pausar TODO el carrusel */

.brands-carousel:hover .brands-carousel-track {
  animation-play-state: paused;
}

/* =========================================
   ANIMACIÓN INFINITA
   ========================================= */

@keyframes brands-carousel-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/***BRANDS CAROUSEL**/
/* =========================================
   CARRUSEL DE MARCAS INTERACTIVO
   ========================================= */

.brands-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Transición suave para el auto-scroll */
.brands-swiper .swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Slide individual */
.brand-carousel-item {
  /* width: auto !important; */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 10px 0;
}

/* Enlaces e imágenes */
.brand-carousel-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 100%;
}

.brand-carousel-item img {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* Hover individual */
.brand-carousel-item a:hover img {
  transform: scale(1.08);
}

/* Degradados laterales */
.brands-carousel-container::before,
.brands-carousel-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 5;
  pointer-events: none;
}

.brands-carousel-container::before {
  left: 0;
  background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.brands-carousel-container::after {
  right: 0;
  background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}
/***BRANDS CAROUSEL**/

/* FOOTER */

.post-layout,
.product-layout,
.product-layout-single {
  position: relative;
  background-color: #ffffff;
  z-index: 5;
}

.footer {
  height: 514px;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
}

.footer .footer-zigzag {
  background: #184363;
  position: relative;
  height: 5px;
  z-index: 1;
  margin-right: -15px;
  margin-left: -15px;
  box-shadow: 0 18px 6px rgba(0, 0, 0, 0.6);
}

.footer .footer-zigzag::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 0;
  width: 100%;
  height: 48px;
  background-image: url("/wp-content/uploads/Zig-Zag-Abierto-Sin-Fondo.png");
  background-image: url("/wp-content/uploads/textura-larga-002.png");
  background-repeat: repeat-x;
  background-size: auto 84px;
  filter: drop-shadow(0px 0px 5px rgba(0, 0, 0, 0.5));
  background-position: 0px -33px;
}

.footer .footer-legal {
  position: fixed;
  bottom: 0;
  left: 0;
}

.footer .footer-slogan {
  position: fixed;
  left: 0;
  bottom: 108px;
}

.footer .footer-sucursales {
  position: fixed;
  left: 0;
  bottom: 220px;
}

.footer .footer-titulo {
  position: fixed;
  bottom: 375px;
  left: 0;
}
/* FOOTER */

.section-unsololugar {
  background-size: 325px auto;
}

.top-section-right > .wpb_wrapper {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.product_meta > * {
  font-size: 18px !important;
}

.woocommerce-variation-add-to-cart,
.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
  background-color: #ffffff;
  padding: 0;
}

.product .summary .quantity input,
.product .summary .quantity button {
  font-size: 18px !important;
}

body.woocommerce .woocommerce-variation-availability:not(:empty) {
  display: none !important;
}

a.reset_variations,
button.reset_variations {
  display: none !important;
}

.widget_ywraq_mini_list_quote .yith-ywraq-list-content ul li {
  gap: 8px;
}

td.label.woocommerce-loop-product__title,
.cfvsw-shop-variations td.label {
  position: relative;
  display: table-cell;
  padding: 0;
  margin: 0;
  left: 0 !important;
  top: 0 !important;
  color: #184363;
  background-color: transparent !important;
}

.woocommerce-product-details__short-description,
body .woocommerce-tabs .tabs li a,
.woocommerce-Tabs-panel {
  font-size: 18px !important;
  line-height: 1.5 !important;
}

.product .summary table.variations,
.product .summary .product_title {
  max-width: 100%;
}

.loop-products .post-title {
  max-height: 100em !important;
}

.title-section {
  background-color: #fff !important;
  z-index: 10;
  position: relative;
}

.header.shadow-true,
.header.sticky-true.shadow-sticky-true.active {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.woocommerce-ordering > select {
  min-width: 196px;
}

.post-layout-single {
  padding-top: 32px;
}

.woocommerce-product-details__short-description > p {
  margin-bottom: 0 !important;
}

.page-content-wrap > .title-section {
  display: none;
}

.widget.widget_product_categories ul li.cat-item > a,
.widget.widget_product_tag_cloud .tagcloud a.tag-cloud-link {
  padding-left: 12px !important;
  padding-right: 12px !important;
}

.widget_product_categories ul li.cat-item.current-cat > a,
.widget_product_categories ul li.cat-item.current-cat > a:hover,
.widget_product_tag_cloud .tagcloud a.tag-cloud-link.is-active:hover,
.widget_product_tag_cloud .tagcloud a.tag-cloud-link.is-active {
  /* color: #f2971f !important; */

  color: #ffffff !important; /* Color de texto blanco para legibilidad */
  /* background-color: rgba(0, 124, 186, 0.7) !important; */
  /* border-color: rgba(0, 124, 186, 0.7) !important; */
  background-color: #f2971f !important; /* Color de fondo azul oscuro */
  border-color: #f2971f !important; /* Color de borde azul oscuro */
  font-weight: bold !important;
  border-radius: 50px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

@media only screen and (min-width: 1024px) {
  .woocommerce-product-details__short-description {
    max-width: 100%;
  }
}

@media only screen and (min-width: 1280px) {
  .woocommerce-variation-add-to-cart,
  .entry-summary form.cart:not(.variations_form):not(.grouped_form) {
    width: 100%;
  }
}

@media screen and (max-width: 767px) {
  .hide-mobile {
    display: none !important;
  }

  .footer .footer-legal,
  .footer .footer-slogan,
  .footer .footer-sucursales,
  .footer .footer-titulo {
    position: relative;
    bottom: inherit;
  }

  .footer .footer-slogan {
    margin-top: 20px;
  }

  .footer {
    height: auto;
  }

  .footer .footer-zigzag {
    margin-bottom: 30px;
  }
}
