/* Footer Xocora — solo estructura/layout (colores y tipografías: Theme Editor / BO) */

#footer {
  padding: 0 !important;
}

#footer .footer-container {
  background: transparent !important;
}

.footer-xocora-main {
  border-top: none !important;
  padding: 3rem 0 2.5rem !important;
}

.footer-xocora-main > .container {
  border-top: none !important;
  padding-top: 0 !important;
}

.footer-xocora-newsletter-band {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3rem 0 !important;
}

.footer-xocora-newsletter-band > .container {
  border-top: none !important;
  padding-top: 0 !important;
}

.footer-xocora-logo {
  margin-bottom: 0;
  padding-bottom: 2rem;
}

.footer-xocora-logo img {
  max-height: 56px;
  width: auto;
}

#footer .footer-xocora-separator,
#footer-container-main .footer-xocora-separator {
  display: block !important;
  width: 100% !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0 0 2.5rem !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
  background: transparent !important;
  opacity: 1 !important;
  overflow: visible !important;
}

.footer-xocora-columns .block-footer {
  margin-bottom: 2rem;
}

.footer-xocora-columns .block-title {
  border: 0;
  margin-bottom: 1.5rem;
  padding: 0;
}

.footer-xocora-columns .block-title::before,
.footer-xocora-columns .block-title::after {
  display: none !important;
}

/* No duplicar newsletter / Follow us en la fila de columnas (layout Warehouse footer-1) */
.footer-xocora-columns .block-newsletter,
.footer-xocora-columns .block-social-links,
.footer-xocora-columns .ps-emailsubscription-block {
  display: none !important;
}

.footer-xocora-columns > .col-md-auto:has(.block-newsletter),
.footer-xocora-columns > .col-md-auto:has(.block-social-links),
.footer-xocora-columns > [class*="col-"]:has(.block-newsletter),
.footer-xocora-columns > [class*="col-"]:has(.block-social-links) {
  display: none !important;
}

.footer-xocora-newsletter {
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.footer-xocora-newsletter-title {
  margin-bottom: 0.75rem;
}

.footer-xocora-newsletter-lead {
  margin-bottom: 1.5rem;
}

.footer-xocora-newsletter-form .block-newsletter,
.footer-xocora-newsletter-form .block-footer {
  margin: 0;
}

.footer-xocora-newsletter-form .block-title {
  display: none;
}

.footer-xocora-newsletter-form .ps-emailsubscription-block {
  display: block !important;
}

.footer-xocora-newsletter-form .newsletter-input-group {
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  max-width: 100%;
}

.footer-xocora-newsletter-form .input-subscription {
  background: transparent;
  border: 0;
  text-align: center;
  padding-left: 0;
  padding-right: 0;
}

.footer-xocora-newsletter-form .btn-subscribe {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.footer-xocora-newsletter-form .ps-emailsubscription-conditions,
.footer-xocora-newsletter-form .text-muted,
.footer-xocora-newsletter-form label {
  font-size: 11px;
  margin-top: 0.75rem;
}

/* Franja logos ayudas (antes Elementor home) — entre footer y copyright */
.footer-xocora-ayudas-band {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1.75rem 0 !important;
}

.footer-xocora-ayudas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 100%;
}

.footer-xocora-ayudas__item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 1rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (min-width: 768px) {
  .footer-xocora-ayudas__item {
    margin-bottom: 0;
  }
}

.footer-xocora-ayudas__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80px;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.footer-xocora-ayudas__img--wide {
  max-height: 72px;
}

@media (max-width: 575px) {
  .footer-xocora-ayudas__img {
    max-height: 56px;
  }
}

.footer-xocora-copyright {
  border-top: none !important;
  padding: 1.25rem 0 1.5rem !important;
}

.footer-xocora-copyright .copyright-txt p {
  margin: 0;
}

.footer-xocora-copyright .copyright-center .block-social-links {
  margin-bottom: 0;
}

.footer-xocora-copyright .copyright-center .social-links._footer {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-xocora-copyright .copyright-center .copyright-img {
  margin-top: 0.75rem;
}

.footer-xocora-copyright .copyright-img img {
  max-height: 28px;
  width: auto;
}

/* ------------------------------------------------------------------
 * Infocacao — categorías CMS + artículos (sin Elementor)
 * ------------------------------------------------------------------ */
.page-cms-category .header-img,
.infocacao-header {
  width: 100%;
  height: clamp(180px, 28vw, 320px);
  margin: 0 0 2rem;
  background: url(../img/infocacao.jpg) no-repeat center center;
  background-size: cover;
}

.page-cms-category .page-header,
.page-cms .page-header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.page-cms-category .page-header {
  text-align: center;
}

.infocacao-page-title {
  display: inline-block;
  margin: 0;
  font-family: "Fira Sans", sans-serif;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-transform: none;
  color: #2e2323;
}

.infocacao-page-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 3px;
  margin: 0.75rem 0 0;
  background: #fe8b4f;
}

.page-cms-category .infocacao-page-title::after {
  margin-left: auto;
  margin-right: auto;
}

.infocacao-subnav {
  margin: 0 0 2.5rem;
}

.cms-category-browsing {
  justify-content: center !important;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
}

.cms-category-browsing > li {
  margin: 0 !important;
}

.infocacao-subnav__btn.btn,
.cms-category-browsing .btn {
  border: 1px solid #2e2323;
  border-radius: 0;
  background: transparent;
  color: #2e2323;
  font-family: "Fira Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1.15rem;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.infocacao-subnav__btn.btn:hover,
.infocacao-subnav__btn.btn:focus,
.cms-category-browsing .btn:hover,
.cms-category-browsing .btn:focus {
  background: #fe8b4f;
  border-color: #fe8b4f;
  color: #fff;
}

.infocacao-list {
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.infocacao-list-item {
  margin-bottom: 2rem;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.infocacao-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.infocacao-card__media {
  display: block;
  overflow: hidden;
  margin-bottom: 0.85rem;
  background: #f3eeea;
}

.infocacao-card__media .cms-list-img,
.infocacao-card__media img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.35s ease;
}

.infocacao-card:hover .infocacao-card__media img {
  transform: scale(1.04);
}

.infocacao-card__title {
  margin: 0 0 0.5rem;
}

.infocacao-card__title a {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-family: "Fira Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  min-height: 2.7em;
  text-transform: none;
  color: #2e2323;
  text-decoration: none;
}

.infocacao-card__title a:hover {
  color: #fe8b4f;
}

.infocacao-card__excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.45;
  color: #5c534c;
  text-transform: none;
}

.infocacao-article__banner,
.cms-banner-img {
  margin-bottom: 2rem;
}

.infocacao-article__banner img,
.cms-banner-img img,
.cms-list-img img {
  width: 100%;
  height: auto;
  display: block;
}

.infocacao-prose,
.cms-native-content {
  max-width: none;
  width: 100%;
  margin: 0 0 3rem;
  padding: 0;
  font-family: "Fira Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #2e2323;
}

.infocacao-prose > *:first-child,
.cms-native-content > *:first-child {
  margin-top: 0;
}

.infocacao-prose h1,
.infocacao-prose h2,
.infocacao-prose h3,
.infocacao-prose h4,
.cms-native-content h1,
.cms-native-content h2,
.cms-native-content h3,
.cms-native-content h4 {
  margin: 2.25rem 0 0.85rem;
  font-family: "Fira Sans", sans-serif;
  font-weight: 600;
  line-height: 1.25;
  color: #2e2323;
  letter-spacing: 0.01em;
}

.infocacao-prose h1,
.cms-native-content h1 {
  font-size: 1.85rem;
}

.infocacao-prose h2,
.cms-native-content h2 {
  font-size: 1.45rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #fe8b4f;
}

.infocacao-prose h3,
.cms-native-content h3 {
  font-size: 1.2rem;
  color: #3d342e;
}

.infocacao-prose p,
.cms-native-content p {
  margin: 0 0 1.15rem;
}

.infocacao-prose ul,
.infocacao-prose ol,
.cms-native-content ul,
.cms-native-content ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.infocacao-prose li,
.cms-native-content li {
  margin-bottom: 0.4rem;
}

.infocacao-prose a,
.cms-native-content a {
  color: #b22b32;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.infocacao-prose a:hover,
.cms-native-content a:hover {
  color: #fe8b4f;
}

.infocacao-prose img,
.cms-native-content img {
  max-width: 100%;
  height: auto;
  margin: 1.5rem 0;
}

.infocacao-prose blockquote,
.cms-native-content blockquote {
  margin: 1.75rem 0;
  padding: 0.25rem 0 0.25rem 1.15rem;
  border-left: 3px solid #fe8b4f;
  color: #5c534c;
  font-style: italic;
}

.infocacao-prose strong,
.cms-native-content strong {
  font-weight: 600;
  color: #1f1916;
}

@media (max-width: 767px) {
  .infocacao-prose,
  .cms-native-content {
    font-size: 1rem;
  }

  .infocacao-subnav__btn.btn,
  .cms-category-browsing .btn {
    font-size: 0.78rem;
    padding: 0.55rem 0.9rem;
  }
}

/* Página Marcas — intro + grid 6 logos (como producción) */
.page-manufacturer #main {
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .page-manufacturer #main {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.page-manufacturer .brands-intro {
  margin-bottom: 1.5rem;
}

.page-manufacturer .brands-subtitle {
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
}

.page-manufacturer .brands-subtitle p {
  margin-bottom: 0;
}

.page-manufacturer .ms-grid .brand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.page-manufacturer .ms-grid .brand-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-manufacturer .ms-grid .brand-img img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Ficha producto — peso encima del resumen */
.cdc-product-short-block {
  width: 100%;
}

.cdc-product-weight {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}

.cdc-product-summary {
  margin-bottom: 0;
}

/*
 * Checkout: el CSS compilado de IqitThemeEditor puede quedar desfasado
 * (ocultaba #header/#footer aunque Header/Footer = Default). Forzar visibles.
 */
html body#checkout #header,
html body#checkout #footer {
  display: block !important;
}

html body#checkout #checkout-header,
html body#checkout #checkout-footer {
  display: none !important;
}

/* Cross-selling en columna derecha (carrito + checkout) */
.cart-grid-right .crossselling-products {
  margin-top: 1rem;
}

.cart-grid-right .crossselling-products .swiper-default-carousel .swiper-slide {
  width: 100%;
}

/* Popup añadir a la cesta: separador cross-selling */
#blockcart-modal .crossselling-products-modal {
  border-top: 7px solid rgba(161, 161, 161, 0.25);
}

/* Aviso regalo en checkout (paso envío) */
.cdc-checkout-gift {
  padding: 0.25rem 0 0;
}

.cdc-checkout-gift__text {
  margin: 0;
  line-height: 1.45;
}

.cdc-checkout-gift__link {
  font-weight: 600;
  color: #fe8b4f !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cdc-checkout-gift__link:hover,
.cdc-checkout-gift__link:focus {
  color: #b22b32 !important;
}

body#checkout #gift.show {
  display: block;
  height: auto;
  overflow: visible;
}

body#checkout #gift_message {
  display: block;
  width: 100%;
  min-height: 5.5rem;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

/* Título resumen de pedido (columna derecha checkout) */
#js-checkout-summary .cdc-cart-summary-title {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Aviso portes en resumen del checkout */
.cart-grid-right .anfsad-block.shipping-amount-display {
  margin-top: 1rem;
}

/* AN Free Shipping: marco custom HTML al tamaño del texto */
.anfsad-block.shipping-amount-display.anfsad-custom-html {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.anfsad-block.shipping-amount-display.anfsad-custom-html .inner,
.anfsad-block.shipping-amount-display.anfsad-custom-html .text,
.anfsad-block.shipping-amount-display.anfsad-custom-html .text-inner {
  width: auto;
  max-width: 100%;
  display: block;
  float: none;
  text-align: center;
}

.anfsad-block.shipping-amount-display.anfsad-custom-html .text-inner > div {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Pack de producto: carrusel full-width */
.cdc-product-pack {
  margin: 2rem 0 1.5rem;
  clear: both;
}

.cdc-product-pack .section-title {
  margin-bottom: 1.25rem;
}

.cdc-product-pack__carousel {
  position: relative;
  padding: 0 2.5rem;
}

.cdc-product-pack__carousel .swiper-button-prev,
.cdc-product-pack__carousel .swiper-button-next {
  width: 2rem;
  height: 2rem;
  margin-top: 0;
  top: 42%;
  color: inherit;
}

.cdc-product-pack__carousel .swiper-button-prev::after,
.cdc-product-pack__carousel .swiper-button-next::after {
  font-size: 1.1rem;
  font-weight: 700;
}

.cdc-product-pack__carousel .swiper-button-disabled {
  opacity: 0.25;
}

.cdc-pack-item {
  height: 100%;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.cdc-pack-item__link {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.cdc-pack-item__thumb {
  position: relative;
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.03);
}

.cdc-pack-item__thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cdc-pack-item__qty {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  min-width: 2rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.cdc-pack-item__name {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

@media (max-width: 767px) {
  .cdc-product-pack__carousel {
    padding: 0 1.75rem;
  }
}

/*
 * Banner home: la cabecera es absolute (Theme Editor) y tapa el logo
 * de la foto. En desktop deja de flotar para que el slider empiece
 * debajo (incluye .header-nav). Full width + proporción 1920×910.
 */
@media (min-width: 992px) {
  html body#index #header {
    position: relative !important;
    top: auto !important;
  }
}

html body#index #wrapper {
  padding-top: 0 !important;
}

body#index .elementor-image-carousel {
  visibility: visible !important;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1920 / 910;
}

body#index .elementor-section-slidered,
body#index .elementor-section-slidered .elementor-container {
  height: auto !important;
}

body#index .elementor-widget-image-carousel .swiper-wrapper,
body#index .elementor-widget-image-carousel .swiper-slide,
body#index .elementor-widget-image-carousel .swiper-slide-inner {
  width: 100%;
  height: 100% !important;
}

body#index .elementor-widget-image-carousel .swiper-slide-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

/*
 * Megamenú: tipografía unificada en desplegables (no toca la barra).
 */
#cbp-hrmenu .cbp-hrsub,
#cbp-hrmenu .cbp-hrsub a,
#cbp-hrmenu .cbp-hrsub-inner .cbp-column-title,
#cbp-hrmenu .cbp-hrsub-inner a.cbp-column-title,
#cbp-hrmenu .cbp-hrsub-inner a.cbp-column-title:link,
#cbp-hrmenu .cbp-hrsub-level2 a,
#cbp-hrmenu .cbp-links a {
  font-family: "Fira Sans", sans-serif !important;
  font-size: 1.0666666667rem !important;
  font-weight: 400 !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.35 !important;
}

/*
 * Megamenú: mismo hueco VERTICAL entre opciones (CHOCOLATE = 3px).
 * CHOCOLATE → ul.cbp-links > li (margin 3px, colapsado ≈ 3px)
 * REGALOS  → .cbp-categories-row > .col-12 (mt 10) + .cbp-column-title (mb 8) ≈ 18px
 */
#cbp-hrmenu .cbp-hrsub .cbp-categories-row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

#cbp-hrmenu .cbp-hrsub .cbp-categories-row > [class*="col-"] {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#cbp-hrmenu .cbp-hrsub .cbp-categories-row .cbp-column-title,
#cbp-hrmenu .cbp-hrsub .cbp-categories-row a.cbp-column-title,
#cbp-hrmenu .cbp-hrsub .cbp-categories-row a.cbp-category-title,
#cbp-hrmenu .cbp-hrsub .cbp-categories-row .cbp-category-title {
  margin-top: 0 !important;
  margin-bottom: 3px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1.35 !important;
}

#cbp-hrmenu .cbp-hrsub .cbp-categories-row .cbp-category-link-w {
  margin: 0 !important;
  padding: 0 !important;
}

#cbp-hrmenu .cbp-hrsub .cbp-links li {
  margin-top: 3px !important;
  margin-bottom: 3px !important;
}

/*
 * Megamenú: sin flecha derecha ni flyout de subcategorías
 * (categorías con hijas en el catálogo).
 */
#cbp-hrmenu .cbp-links li.cbp-hrsub-haslevel2 > div > a:after,
#cbp-hrmenu .cbp-links li .cbp-hrsub-haslevel3 > div > a:after {
  content: none !important;
  display: none !important;
}

#cbp-hrmenu ul.cbp-hrsub-level2,
#cbp-hrmenu ul.cbp-hrsub-level3,
#cbp-hrmenu .cbp-hrsub-haslevel2:hover > div > ul.cbp-hrsub-level2,
#cbp-hrmenu .cbp-hrsub-haslevel3:hover > .cbp-category-link-w > ul {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#iqitmegamenu-mobile .mobile-menu__subcat-expander,
#iqitmegamenu-mobile .mobile-menu__links-list--lvl-hidden {
  display: none !important;
}

/* Lupa del buscador en cabecera */
#header-search-btn .fa-search.icon,
#mobile-header .fa-search {
  color: #FE8B4F !important;
}

/* Precios: normal negro; precio de oferta #B22B32 (el tachado sigue en regular-price) */
.product-price,
.current-price-value {
  color: #000000 !important;
}

.product-price-and-shipping:has(.regular-price) .product-price,
.has-discount .product-price,
.has-discount .current-price-value {
  color: #B22B32 !important;
}
