:root {
  --cano-orange: #fb9224;
  --cano-orange-dark: #d87511;
  --cano-green: #3c4f53;
  --cano-green-dark: #2f4043;
  --cano-ink: #263437;
  --cano-line: #d8dde3;
  --cano-surface: #f7f8f9;
}

body {
  color: var(--cano-ink);
  font-family: Roboto, Arial, sans-serif;
  padding-top: 117px;
}

#masthead.site-header,
.site-header {
  position: fixed !important;
  top: 0 !important;
  z-index: 10050 !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

body.admin-bar #masthead.site-header,
body.admin-bar .site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  body.admin-bar #masthead.site-header,
  body.admin-bar .site-header {
    top: 46px !important;
  }
}

.pmi-header,
.site-header .pmi-header {
  background: #fff !important;
  border-bottom: 1px solid #dfe5e7;
  box-shadow: none !important;
}

.pmi-header,
.pmi-header a,
.pmi-header svg,
.pmi-header span,
.pmi-header .text-white {
  color: var(--cano-green) !important;
}

.pmi-header__logo span,
.pmi-header__logo .text-white {
  color: var(--cano-orange) !important;
}

.category-nav {
  background: #f1f6f5 !important;
  border-bottom: 1px solid #d9e5e3 !important;
  border-top: 1px solid #d9e5e3 !important;
}

.category-nav__list {
  gap: 8px !important;
}

.category-nav a {
  border-radius: 6px;
  color: var(--cano-green) !important;
  font-weight: 600;
  padding: 9px 12px !important;
  white-space: nowrap;
}

.category-nav a:hover,
.category-nav .current-menu-item > a,
.category-nav .current_page_item > a {
  background: #fff7ef !important;
  color: var(--cano-orange-dark) !important;
}

/* Marquee infinito de categorias */
.category-nav__marquee {
  overflow: hidden;
  position: relative;
}

.category-nav__marquee .category-nav__list {
  overflow: visible !important;
  flex-wrap: nowrap !important;
  width: max-content;
  animation: cano-marquee 110s linear infinite;
}

.category-nav__marquee:hover .category-nav__list,
.category-nav__marquee.cano-marquee-paused .category-nav__list {
  animation-play-state: paused;
}

@keyframes cano-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .category-nav__marquee .category-nav__list {
    animation: none;
  }
}

.pmi-hero {
  background: linear-gradient(105deg, #ffffff 0%, #fff7ef 48%, #eef5f4 100%) !important;
  border-bottom: 1px solid #e3e8ea;
  position: relative !important;
  overflow: visible !important;
  min-height: 500px !important;
  padding-bottom: 0 !important;
  margin-bottom: -80px !important;
}

.pmi-hero__inner {
  position: relative !important;
}

.pmi-hero__canvas {
  position: relative !important;
}

.pmi-hero__cards {
  background: transparent !important;
  border-top: none !important;
  padding: 22px 24px !important;
  position: absolute !important;
  bottom: 20px !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 10 !important;
  width: 100% !important;
}

.pmi-hero-card {
  border: 1px solid rgba(60, 79, 83, .14) !important;
  border-radius: 8px !important;
  box-shadow: 0 5px 16px rgba(60, 79, 83, .08) !important;
  position: relative !important;
  min-height: 250px !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
}

/* La imagen debe llenar toda la card */
.pmi-hero-card__image {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 1 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

.pmi-hero-card__image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
}

.pmi-hero-card__placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: #e8e8e8 !important;
  color: #999 !important;
  font-size: 14px !important;
}

/* Restore mobile layout: cards must flow below the carousel, not overlap it */
@media (max-width: 768px) {
  .pmi-hero {
    min-height: auto !important;
    margin-bottom: 0 !important;
  }

  .pmi-hero__cards {
    position: static !important;
    bottom: auto !important;
    padding: 16px 10px !important;
  }
}

/*
 * Home desktop: dentro del hero, las fotos/tarjetas (pmi-hero__canvas +
 * pmi-hero__cards) se muestran ANTES que el bloque de texto
 * (pmi-hero__intro: eyebrow + H1 + subtitulo + botones). El H1 sigue
 * siendo el primer heading tanto en el HTML fuente como en el flujo
 * normal del documento (no se saca del <section> ni se duplica) -> el
 * crawler no cambia de comportamiento, solo se reordena visualmente.
 * pmi-hero__cards sigue con position:absolute anclada a pmi-hero__inner,
 * asi que no le afecta el `order` de su hermano intro.
 */
@media (min-width: 769px) {
  .pmi-hero__inner {
    display: flex;
    flex-direction: column;
  }

  .pmi-hero__canvas {
    order: 1;
  }

  .pmi-hero__cards {
    order: 1;
  }

  /*
   * .pmi-hero__intro venia de cano-mobile-overrides.css como
   * "visually hidden" (clip:rect(0,0,0,0)) en desktop: el H1 existia
   * para SEO pero nunca tuvo estilos propios para mostrarse aqui.
   * Se restaura visible y se le da su propio tratamiento visual.
   */
  .pmi-hero__intro {
    order: 2;
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    display: block !important;
    max-width: 760px;
    padding: 28px 28px 36px !important;
  }

  .pmi-hero__intro .pmi-hero__eyebrow {
    color: var(--cano-orange-dark) !important;
    font-size: .8rem !important;
    font-weight: 700 !important;
    letter-spacing: .12em !important;
    text-transform: uppercase !important;
    margin: 0 0 12px !important;
  }

  .pmi-hero__intro .pmi-hero__title {
    color: var(--cano-green-dark) !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    margin: 0 0 14px !important;
    text-align: left !important;
  }

  .pmi-hero__intro .pmi-hero__subtitle {
    color: #45575b !important;
    font-size: 1.05rem !important;
    line-height: 1.5 !important;
    max-width: 60ch;
    margin: 0 0 24px !important;
  }

  .pmi-hero__intro-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .pmi-hero__intro .pmi-hero__btn {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    min-height: 50px;
    padding: 12px 28px;
    text-decoration: none;
    box-shadow: 0 6px 16px rgba(60, 79, 83, .1);
  }

  .pmi-hero__intro .pmi-hero__btn--primary {
    background: var(--cano-orange) !important;
    border: 1px solid var(--cano-orange-dark);
    color: #172024 !important;
  }

  .pmi-hero__intro .pmi-hero__btn--wa {
    background: #25d366 !important;
    border: 1px solid #1fb457;
    color: #0f2f1c !important;
  }
}

/* Overlay oscuro para mejorar legibilidad del texto */
.pmi-hero-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(60, 79, 83, 0.3) 0%, rgba(251, 146, 36, 0.2) 100%);
  border-radius: 8px;
  z-index: 2 !important;
}

.pmi-hero-card__title {
  position: relative !important;
  z-index: 3 !important;
  padding: 20px 20px 4px 20px !important;
  margin: 0 !important;
  color: #fff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

/* CANO HERO CARD SUBTITLE 2026-09-22 */
.pmi-hero-card__subtitle {
  position: relative !important;
  z-index: 3 !important;
  padding: 0 20px 20px 20px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  opacity: 0.92 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.cano-departments {
  background: linear-gradient(180deg, #dcebea 0%, #e8f1ef 58%, #ffe8d2 100%) !important;
  border-bottom: 1px solid #c2d7d4;
  border-top: 1px solid #c2d7d4;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78);
  padding: 42px 28px 18px;
}

.cano-departments__inner {
  background: transparent !important;
}

.cano-section-kicker {
  color: #52666a !important;
}

.cano-departments h2 {
  color: var(--cano-green-dark) !important;
}

.cano-departments .cano-section-head p:not(.cano-section-kicker) {
  color: #65777b !important;
}

.cano-departments__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.cano-department-card {
  align-items: center;
  border: 1px solid rgba(60, 79, 83, .22) !important;
  border-radius: 8px;
  box-shadow: 0 7px 18px rgba(60, 79, 83, .08) !important;
  color: var(--cano-ink) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  min-height: 148px;
  padding: 18px 12px;
  text-align: center;
}

.cano-department-card:nth-child(4n + 1) {
  background: #fff3e8 !important;
  border-color: rgba(251, 146, 36, .42) !important;
}

.cano-department-card:nth-child(4n + 2) {
  background: #e6f0ee !important;
  border-color: rgba(60, 79, 83, .28) !important;
}

.cano-department-card:nth-child(4n + 3) {
  background: #fff !important;
  border-color: rgba(251, 146, 36, .55) !important;
}

.cano-department-card:nth-child(4n + 4) {
  background: #f0f3f4 !important;
  border-color: rgba(60, 79, 83, .22) !important;
}

.cano-department-card__icon {
  align-items: center !important;
  background: #fff7ef !important;
  border-radius: 8px !important;
  color: var(--cano-orange) !important;
  display: inline-flex !important;
  flex: 0 0 52px !important;
  height: 52px !important;
  justify-content: center !important;
  max-height: 52px !important;
  max-width: 52px !important;
  overflow: hidden !important;
  width: 52px !important;
}

.cano-department-card__icon svg,
.cano-department-card svg {
  display: block !important;
  flex: 0 0 26px !important;
  height: 26px !important;
  max-height: 26px !important;
  max-width: 26px !important;
  min-height: 26px !important;
  min-width: 26px !important;
  width: 26px !important;
}

.cano-department-card__name {
  color: var(--cano-ink) !important;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.homepage-products {
  background: #f4f6f7 !important;
  margin: 0 !important;
}

.homepage-products > .product-grid-section.cano-product-section,
.homepage-products > .product-grid-section.bg-white.cano-product-section {
  border-radius: 8px !important;
  border: 1px solid #dfe6e8 !important;
  box-shadow: 0 8px 24px rgba(60, 79, 83, .06) !important;
  margin-inline: auto;
  max-width: 1392px;
  padding: 28px 20px !important;
}

.homepage-products > .cano-product-section--orange {
  background: #fff7ef !important;
  border-color: #f5d7b8 !important;
}

.homepage-products > .cano-product-section--green {
  background: #eef5f4 !important;
  border-color: #d5e5e2 !important;
}

.homepage-products > .cano-product-section--steel {
  background: #f0f3f4 !important;
  border-color: #d8e0e2 !important;
}

.homepage-products > .cano-product-section--white {
  background: #fff !important;
  border-color: #e4e8ea !important;
}

.homepage-products .section-title,
.homepage-products .pmi-prod-carousel-header__title {
  color: var(--cano-green) !important;
}

.homepage-products .view-all-link,
.homepage-products .pmi-prod-carousel__footer .view-all-link {
  background: var(--cano-orange) !important;
  border: 1px solid var(--cano-orange-dark) !important;
  border-radius: 8px !important;
  color: #111827 !important;
}

.homepage-products .view-all-link:hover,
.homepage-products .pmi-prod-carousel__footer .view-all-link:hover {
  background: var(--cano-green) !important;
  border-color: var(--cano-green-dark) !important;
  color: #fff !important;
}

/* Hide shop sidebar completely */
.shop-layout-wrapper .pmi-shop-sidebar-wrapper,
.pmi-shop-sidebar-wrapper,
.pmi-shop-sidebar,
#secondary,
#secondary.widget-area {
  display: none !important;
  width: 0 !important;
  flex: 0 0 0% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Remove the gap from the wrapper since sidebar is gone */
.shop-layout-wrapper {
  gap: 0 !important;
}

/* Make products area full width - override Tailwind flex-1 */
.shop-products-area {
  flex: 1 1 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Override Storefront's right-sidebar layout that keeps #primary at 73.9% width */
.right-sidebar .content-area,
.right-sidebar #primary.content-area {
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

.right-sidebar .widget-area {
  display: none !important;
  width: 0 !important;
}

/* Category page product grid - Fix columns layout */
.products.columns-4 {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
}

.products.columns-4 li.product {
  margin: 0 !important;
  width: auto !important;
}

/* Keep homepage carousel as is - don't modify */

.single-product .pmi-single-amz__add-to-cart .single_add_to_cart_button,
.single-product .pmi-single-amz__add-to-cart button.single_add_to_cart_button,
.single-product .pmi-single-amz__add-to-cart .button.single_add_to_cart_button {
  background: var(--cano-orange) !important;
  border: 1px solid var(--cano-orange-dark) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 14px rgba(251, 146, 36, .22) !important;
  color: #172024 !important;
  font-weight: 700 !important;
}

.single-product .pmi-single-amz__add-to-cart .single_add_to_cart_button:hover,
.single-product .pmi-single-amz__add-to-cart button.single_add_to_cart_button:hover,
.single-product .pmi-single-amz__add-to-cart .button.single_add_to_cart_button:hover {
  background: var(--cano-orange-dark) !important;
  border-color: var(--cano-orange-dark) !important;
  color: #fff !important;
}

.single-product .pmi-single-amz__buy-now,
.single-product .button.alt.pmi-single-amz__buy-now {
  background: var(--cano-green) !important;
  border: 1px solid var(--cano-green-dark) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 14px rgba(60, 79, 83, .18) !important;
  color: #fff !important;
  font-weight: 700 !important;
}

.single-product .pmi-single-amz__buy-now:hover,
.single-product .button.alt.pmi-single-amz__buy-now:hover {
  background: var(--cano-green-dark) !important;
  border-color: var(--cano-green-dark) !important;
  color: #fff !important;
}

.single-product .pmi-single-amz__whatsapp-order,
.single-product .button.pmi-single-amz__whatsapp-order {
  align-items: center !important;
  background: #25d366 !important;
  border: 1px solid #1fb457 !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .2) !important;
  color: #0f2f1c !important;
  display: flex !important;
  font-weight: 800 !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  margin-top: 8px !important;
  min-height: 42px !important;
  padding: 11px 14px !important;
  text-align: center !important;
  text-decoration: none !important;
  width: 100% !important;
}

.single-product .pmi-single-amz__whatsapp-order:hover,
.single-product .button.pmi-single-amz__whatsapp-order:hover {
  background: #1fb457 !important;
  border-color: #189b49 !important;
  color: #ffffff !important;
}

.single-product .pmi-single-amz__buybox-badge {
  background: #fff7ef !important;
  border-color: rgba(251, 146, 36, .28) !important;
  color: var(--cano-green) !important;
}

.single-product .pmi-single-amz__stock,
.single-product .stock.in-stock {
  color: var(--cano-green) !important;
}

.pmi-category-bottom-pagination {
  align-items: center;
  display: flex;
  justify-content: center;
  margin: 28px 0 8px;
  width: 100%;
}

.pmi-category-bottom-pagination .woocommerce-pagination {
  display: flex !important;
  justify-content: center;
  margin: 0;
}

.site-footer,
.site-footer-wrap,
.pmi-footer-builder,
.pmi-footer-builder .site-footer-row-container,
.pmi-footer-builder .site-footer-row-container-inner,
.pmi-footer-builder .site-footer-row,
.pmi-footer-builder .site-footer-section,
.pmi-footer-builder .site-footer-item,
.pmi-footer-builder .footer-widget-area,
.site-bottom-footer-wrap,
.site-footer-row-container,
.footer-html,
.footer-html-inner {
  background: var(--cano-green-dark) !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #f7fafb !important;
}

.site-footer {
  border-top: 4px solid var(--cano-orange) !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pmi-footer-builder {
  border-top: 0 !important;
}

.pmi-footer-builder .site-footer-row-container {
  padding: 0 !important;
}

.pmi-footer-builder .site-footer-row-container-inner {
  min-height: 72px;
  padding: 16px 28px 18px !important;
}

.pmi-footer-builder .site-footer-row {
  align-items: center !important;
}

.footer-html-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: 14px !important;
  font-weight: 400;
  gap: 8px 16px;
  justify-content: center;
  letter-spacing: 0 !important;
}

.cano-footer-credit {
  color: rgba(247, 250, 251, .84) !important;
  display: inline-flex;
  gap: 4px;
}

.pmi-footer-builder a {
  color: #fff7ef !important;
  font-weight: 700;
}

.pmi-footer-builder a:hover {
  color: var(--cano-orange) !important;
}

/* Footer top row: 3-column info (Ferretería Cano / Contacto / Ubicación) */
.pmi-footer-builder .site-top-footer-wrap .site-footer-row-container-inner {
  padding: 48px 28px 32px !important;
}

.pmi-footer-builder .site-top-footer-wrap .site-footer-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  column-gap: 48px;
  row-gap: 28px;
}

.pmi-footer-builder .site-top-footer-wrap .site-footer-row > [class*="site-footer-"][class*="-section-"] {
  flex: 1 1 220px;
  min-width: 0;
}

.pmi-footer-builder .site-top-footer-wrap .widget-title.pmi-footer-widget__title {
  color: var(--cano-orange) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
  margin: 0 0 14px !important;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(251, 146, 36, .35);
}

.pmi-footer-builder .site-top-footer-wrap .pmi-footer-widget p {
  margin: 0 0 8px !important;
  line-height: 1.7 !important;
}

.pmi-footer-builder .site-top-footer-wrap .pmi-footer-widget p:last-child {
  margin-bottom: 0 !important;
}

/* Divider between the 3-column row and the copyright row */
.pmi-footer-builder .site-bottom-footer-wrap {
  border-top: 1px solid rgba(247, 250, 251, .12) !important;
}

.pmi-footer-builder .site-bottom-footer-wrap .site-footer-row-container-inner {
  padding: 22px 28px !important;
}

.footer-html-inner {
  flex-direction: column !important;
  gap: 6px !important;
}

@media (max-width: 768px) {
  .pmi-footer-builder .site-top-footer-wrap .site-footer-row-container-inner {
    padding: 36px 18px 24px !important;
  }

  .pmi-footer-builder .site-top-footer-wrap .site-footer-row {
    flex-direction: column !important;
    row-gap: 32px;
  }

  .pmi-footer-builder .site-top-footer-wrap .site-footer-row > [class*="site-footer-"][class*="-section-"] {
    flex: 1 1 100% !important;
    width: 100% !important;
  }

  .pmi-footer-builder .site-bottom-footer-wrap .site-footer-row-container-inner {
    padding: 20px 18px !important;
  }
}

@media (max-width: 1180px) {
  .cano-departments__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .cano-departments {
    padding: 30px 14px 10px;
  }

  .cano-departments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* ============================================
   PERFORMANCE FIXES - ferreteriacano.com
   Agregado: junio 2026
   ============================================ */

/* 1. Reservar espacio para imagenes de productos (evita CLS) */
.product-image,
img.product-image,
.woocommerce-product-gallery__image img,
ul.products li.product img,
.attachment-woocommerce_thumbnail,
.product-card img,
.pmi-product-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

/* 1b. Margen blanco alrededor del producto en tarjetas del home/categoria */
.product-image-container {
  padding: 16px;
}

/* 1c. app.css fuerza object-fit:cover y padding:0 en el home con selectores
   igual de específicos; se sobreescribe aquí porque este archivo carga después. */
.homepage-products .product-card .product-image-container {
  padding: 16px !important;
}
.homepage-products .product-card .product-image-link {
  padding: 0 !important;
}
.homepage-products .product-card .product-image {
  height: 100%;
  width: 100%;
  object-fit: contain;
}

/* 2. Reservar espacio para el logo (evita CLS) */
.site-logo img,
header img[alt="Ferretería Cano"],
header img[alt="Ferreteria Cano"],
img.h-11 {
  width: 176px;
  height: 44px;
  object-fit: contain;
}

/* 3. Reservar espacio para grid de productos */
ul.products li.product,
.product-card,
.pmi-product-card {
  min-height: 300px;
}

/* 4. Hint para fuentes; font-display efectivo vive en @font-face, esto queda sin impacto negativo */
body,
h1, h2, h3, h4, h5, h6,
p, a, span, li {
  font-display: swap;
}

/* 5. Fix CLS carrusel hero */
.pmi-hero__carousel,
.pmi-hero__slides,
.pmi-hero__slide {
  contain: layout;
}

.pmi-hero__carousel {
  min-height: 400px;
}

.pmi-hero__slide-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .pmi-hero__carousel {
    min-height: 220px;
  }

  .pmi-hero__slide-image {
    aspect-ratio: 4 / 3;
  }

  .pmi-hero__carousel--mobile .pmi-hero__slide-image {
    height: 100%;
  }

  /* Ocultar el carrusel hero mobile: imagen ocupaba toda la pantalla sin aportar contenido util */
  .pmi-hero__carousel--mobile {
    display: none !important;
  }

  /* Carrusel "Productos destacados": mas protagonismo a la imagen, flechas discretas a los lados */
  .pmi-prod-carousel__viewport {
    padding: 0 28px;
  }

  .pmi-prod-carousel__nav {
    width: 28px;
  }

  .pmi-prod-carousel__nav svg {
    width: 18px;
    height: 18px;
  }

  .pmi-prod-carousel__track {
    gap: 10px;
  }

  .pmi-prod-carousel__track > .product-card {
    width: calc(50% - 5px) !important;
  }
}

/* ============================================
   VARIATION SWATCHES - hacerlos mas notorios
   ============================================ */

/* Leyenda encima de cada grupo de swatches en pagina de producto */
.single-product .cfvsw-product-container {
  position: relative;
  margin-top: 28px;
}

.single-product .cfvsw-product-container::before {
  content: "Elige una opcion:";
  display: block;
  width: 100%;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--cano-green);
}

.single-product .cfvsw-swatches-container.cfvsw-product-container {
  grid-gap: 10px;
}

/* Opciones tipo etiqueta (500 litros / 1100 litros, etc.) mas visibles */
.single-product .cfvsw-label-option {
  background: #fff !important;
  border: 2px solid var(--cano-line) !important;
  border-radius: 8px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--cano-ink) !important;
  box-shadow: 0 2px 6px rgba(60, 79, 83, .06);
  transition: all 150ms ease;
}

.single-product .cfvsw-swatches-option:not(.cfvsw-swatches-disabled, .cfvsw-swatches-out-of-stock):hover {
  border-color: var(--cano-orange) !important;
  background: #fff7ef !important;
  box-shadow: 0 3px 10px rgba(251, 146, 36, .18);
}

/* Separar el titulo "Todos los productos" del menu de categorias que queda justo encima */
.pmi-category-topbar {
  margin-top: 32px !important;
}

@media (max-width: 782px) {
  .pmi-category-topbar {
    margin-top: 20px !important;
  }
}

.single-product .cfvsw-selected-swatch {
  border-color: var(--cano-orange) !important;
  background: #fff7ef !important;
  color: var(--cano-orange-dark) !important;
  box-shadow: 0 3px 10px rgba(251, 146, 36, .22) !important;
}

body.mac-showroom-page {
  padding-top: 72px;
}
/* CANO SEARCH RESULTS SIDE GUTTERS 2026-09-01 START */
body.search #content > .col-full,
body.post-type-archive-product #content > .col-full,
body.tax-product_cat #content > .col-full {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.search #content .container.mx-auto,
body.post-type-archive-product #content .container.mx-auto,
body.tax-product_cat #content .container.mx-auto {
  width: calc(100% - 160px) !important;
  max-width: none !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

@media (max-width: 767px) {
  body.search #content .container.mx-auto,
  body.post-type-archive-product #content .container.mx-auto,
  body.tax-product_cat #content .container.mx-auto {
    width: calc(100% - 32px) !important;
  }
}
/* CANO SEARCH RESULTS SIDE GUTTERS 2026-09-01 END */

/* CANO MORE LANDINGS (Automotriz / Bombas Sumergibles / Tanques / Escaleras) 2026-09-22 */
.cano-more-landings {
  padding: 40px 24px;
  background: #fff;
}

.cano-more-landings__inner {
  max-width: 1400px;
  margin: 0 auto;
}

.cano-more-landings__head {
  margin-bottom: 20px;
}

.cano-more-landings__head h2 {
  font-size: 22px;
  font-weight: 700;
  color: #131921;
  margin: 0;
}

.cano-more-landings__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cano-landing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 190px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(60, 79, 83, .14);
  box-shadow: 0 5px 16px rgba(60, 79, 83, .08);
  text-decoration: none;
}

.cano-landing-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 17, 17, 0) 35%, rgba(15, 17, 17, .78) 100%);
  z-index: 2;
}

.cano-landing-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
  transition: transform .3s ease;
}

.cano-landing-card:hover .cano-landing-card__image {
  transform: scale(1.05);
}

.cano-landing-card__title {
  position: relative;
  z-index: 3;
  padding: 16px 16px 2px 16px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

.cano-landing-card__subtitle {
  position: relative;
  z-index: 3;
  padding: 0 16px 16px 16px;
  color: #fff;
  font-size: 12px;
  opacity: .92;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .3);
}

@media (max-width: 1023px) {
  .cano-more-landings__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .cano-more-landings {
    padding: 28px 16px;
  }
  .cano-more-landings__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .cano-landing-card {
    min-height: 150px;
  }
}
/* CANO MORE LANDINGS END */

/* CANO HERO MARGIN TOP 2026-09-23 START */
.pmi-hero__slides {
  margin-top: -140px;
}
/* CANO HERO MARGIN TOP 2026-09-23 END */
