/* =========================================================
   ALVPort Theme 0.6.1 — Catalog 2.0
   ========================================================= */

.alv-catalog {
  --alv-cat-green: #008200;
  --alv-cat-green-dark: #2a4d16;
  --alv-cat-navy: #162b4c;
  --alv-cat-text: #243247;
  --alv-cat-muted: #64748b;
  --alv-cat-line: #e2e8f0;
  --alv-cat-soft: #f7f9fb;
  --alv-cat-radius: 14px;

  width: min(1350px, calc(100% - 40px));
  margin: 34px auto 70px;
  color: var(--alv-cat-text);
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.alv-catalog *,
.alv-catalog *::before,
.alv-catalog *::after {
  box-sizing: border-box;
}

/* Hero */
.alv-catalog-hero {
  position: relative;
  overflow: hidden;
  margin: 0 0 38px;
  padding: clamp(42px, 5vw, 66px) 28px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.13), transparent 32%),
    linear-gradient(128deg, #009300 0%, #08770b 45%, #173b0d 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 34px rgba(0,130,0,.16);
}

.alv-catalog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(118deg, transparent 18%, rgba(255,255,255,.08) 47%, transparent 72%);
  transform: translateX(-32%);
  pointer-events: none;
}

.alv-catalog-hero__eyebrow {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 7px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .86;
}

.alv-catalog-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #fff !important;
  font-size: clamp(2rem, 4.2vw, 3.15rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .055em;
  text-transform: uppercase;
}

/* Layout */
.alv-catalog-layout {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.alv-catalog-sidebar {
  position: sticky;
  top: 118px;
  max-height: calc(100vh - 142px);
  overflow: auto;
  padding: 6px 18px 6px 0;
  border-right: 1px solid var(--alv-cat-line);
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.alv-catalog-sidebar__title {
  margin: 0 0 10px 10px;
  color: var(--alv-cat-muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alv-catalog-categories {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.alv-catalog-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #4a5869 !important;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
  transform: translateX(0);
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.alv-catalog-category:hover,
.alv-catalog-category:focus-visible {
  background: #f2f7f3;
  color: var(--alv-cat-green) !important;
  transform: translateX(4px);
}

.alv-catalog-category.is-active {
  background: var(--alv-cat-green);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(0,130,0,.18);
}

.alv-catalog-category__arrow {
  flex: none;
  font-size: 1.55rem;
  font-weight: 400;
  line-height: .8;
}

/* Toolbar + category header */
.alv-catalog-main {
  min-width: 0;
  scroll-margin-top: 120px;
}

.alv-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 16px;
}

.alv-catalog-toolbar__summary {
  color: var(--alv-cat-muted);
  font-size: .9rem;
  font-weight: 650;
}

.alv-catalog-sort {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
}

.alv-catalog-sort label {
  color: var(--alv-cat-muted);
  font-size: .84rem;
  font-weight: 700;
}

.alv-catalog-sort select {
  min-height: 42px;
  padding: 0 38px 0 16px;
  border: 1px solid var(--alv-cat-line);
  border-radius: 999px;
  outline: 0;
  background-color: #fff;
  color: var(--alv-cat-text);
  font: inherit;
  font-size: .9rem;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(22,43,76,.035);
}

.alv-catalog-sort select:focus-visible {
  border-color: var(--alv-cat-green);
  box-shadow: 0 0 0 4px rgba(0,130,0,.08);
}

.alv-catalog-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid var(--alv-cat-line);
  border-radius: 13px;
  background: linear-gradient(135deg, #fafcfd, #f5f8fa);
}

.alv-catalog-view-header__copy {
  max-width: 74%;
}

.alv-catalog-view-header__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--alv-cat-muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alv-catalog-view-header h2 {
  margin: 0 0 6px;
  color: var(--alv-cat-green) !important;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 900;
  line-height: 1.15;
}

.alv-catalog-view-header p {
  margin: 0;
  color: var(--alv-cat-muted);
  font-size: .94rem;
  line-height: 1.5;
}

.alv-catalog-count-badge {
  flex: none;
  padding: 8px 13px;
  border-radius: 999px;
  background: #e8efec;
  color: var(--alv-cat-green);
  font-size: .78rem;
  font-weight: 800;
  white-space: nowrap;
}

/* Product cards */
.alv-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.alv-product-card {
  display: flex;
  min-width: 0;
  min-height: 368px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e5e9ed;
  border-radius: var(--alv-cat-radius);
  background: #fff;
  box-shadow: 0 3px 10px rgba(22,43,76,.035);
  transform: translateY(0);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.alv-product-card:hover,
.alv-product-card:focus-within {
  border-color: rgba(0,130,0,.2);
  box-shadow: 0 14px 30px rgba(0,100,0,.10);
  transform: translateY(-4px);
}

.alv-product-card__media {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fbfcfd);
}

.alv-product-card__image-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-decoration: none;
}

.alv-product-card__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
  transition: transform .28s cubic-bezier(.2,.75,.25,1);
}

.alv-product-card:hover .alv-product-card__image,
.alv-product-card:focus-within .alv-product-card__image {
  transform: scale(1.035);
}

.alv-product-card__quick {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(22,43,76,.88);
  color: #fff;
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
  opacity: 0;
  transform: translate(-50%, 9px);
  transition: opacity .18s ease, transform .18s ease, background-color .18s ease;
}

.alv-product-card:hover .alv-product-card__quick,
.alv-product-card:focus-within .alv-product-card__quick {
  opacity: 1;
  transform: translate(-50%, 0);
}

.alv-product-card__quick:hover,
.alv-product-card__quick:focus-visible {
  background: var(--alv-cat-green-dark);
}

.alv-product-card__quick-icon {
  position: relative;
  width: 13px;
  height: 13px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.alv-product-card__quick-icon::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: -3px;
  width: 6px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.alv-product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 17px 18px 18px;
  text-align: left;
}

.alv-product-card__brand {
  margin-bottom: 5px;
  color: var(--alv-cat-green);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.alv-product-card__title {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 7px !important;
  overflow: hidden;
  color: var(--alv-cat-text) !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.alv-product-card__title a {
  color: inherit !important;
  text-decoration: none !important;
}

.alv-product-card__title a:hover,
.alv-product-card__title a:focus-visible {
  color: var(--alv-cat-green) !important;
}

.alv-product-card__sku {
  min-height: 19px;
  color: var(--alv-cat-muted);
  font-size: .78rem;
  font-weight: 650;
}

.alv-product-card__actions {
  margin-top: auto;
  padding-top: 15px;
}

.alv-product-card__details {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--alv-cat-green) !important;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none !important;
}

.alv-product-card__details span {
  transition: transform .16s ease;
}

.alv-product-card__details:hover span,
.alv-product-card__details:focus-visible span {
  transform: translateX(4px);
}

/* No prices, by design. Defensive CSS only inside the custom catalog. */
.alv-catalog .price,
.alv-catalog .woocommerce-Price-amount,
.alv-catalog .amount {
  display: none !important;
}

/* Pagination */
.alv-catalog-pagination {
  display: grid;
  grid-template-columns: minmax(118px, auto) 1fr minmax(118px, auto);
  align-items: center;
  gap: 16px;
  margin: 34px 0 0;
  padding: 20px 0 4px;
  border-top: 1px solid var(--alv-cat-line);
}

.alv-catalog-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.alv-catalog-pagination__page,
.alv-catalog-pagination__nav,
.alv-catalog-pagination__ellipsis {
  min-width: 40px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none !important;
}

.alv-catalog-pagination__page {
  border: 1px solid var(--alv-cat-line);
  background: #fff;
  color: var(--alv-cat-text) !important;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease;
}

.alv-catalog-pagination__page:hover,
.alv-catalog-pagination__page:focus-visible {
  border-color: rgba(0,130,0,.32);
  color: var(--alv-cat-green) !important;
  transform: translateY(-1px);
}

.alv-catalog-pagination__page.is-current {
  border-color: var(--alv-cat-green);
  background: var(--alv-cat-green);
  color: #fff !important;
}

.alv-catalog-pagination__nav {
  gap: 7px;
  padding: 0 14px;
  color: var(--alv-cat-green) !important;
}

.alv-catalog-pagination__nav:last-child {
  justify-self: end;
}

.alv-catalog-pagination__nav:hover,
.alv-catalog-pagination__nav:focus-visible {
  background: #eef7ef;
}

.alv-catalog-pagination__nav.is-disabled {
  color: #a0a9b4 !important;
  cursor: default;
}

.alv-catalog-pagination__ellipsis {
  color: var(--alv-cat-muted);
}

/* Quick view dialog */
.alv-quick-view {
  width: min(820px, calc(100% - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 17px;
  background: #fff;
  color: var(--alv-cat-text);
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  overflow: hidden;
}

.alv-quick-view::backdrop {
  background: rgba(10,18,25,.62);
  backdrop-filter: blur(4px);
}

.alv-quick-view__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  min-height: 390px;
}

.alv-quick-view__close {
  position: absolute;
  top: 13px;
  right: 13px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f4f6f7;
  color: #707982;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.alv-quick-view__close:hover,
.alv-quick-view__close:focus-visible {
  background: #eaf4eb;
  color: var(--alv-cat-green);
}

.alv-quick-view__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  padding: 30px;
  background: #fafbfc;
}

.alv-quick-view__media img {
  display: block;
  width: 100%;
  height: 310px;
  object-fit: contain;
}

.alv-quick-view__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 38px 38px;
}

.alv-quick-view__meta {
  margin-bottom: 8px;
  color: var(--alv-cat-green);
  font-size: .75rem;
  font-weight: 850;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.alv-quick-view__content h2 {
  margin: 0 0 15px;
  color: var(--alv-cat-navy) !important;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
}

.alv-quick-view__content p {
  margin: 0 0 26px;
  color: var(--alv-cat-muted);
  line-height: 1.55;
}

.alv-quick-view__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 0 23px;
  border-radius: 999px;
  background: var(--alv-cat-green);
  color: #fff !important;
  font-weight: 800;
  text-decoration: none !important;
}

.alv-quick-view__link:hover,
.alv-quick-view__link:focus-visible {
  background: var(--alv-cat-green-dark);
}

.alv-catalog-empty,
.alv-catalog-notice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 28px;
  border: 1px solid var(--alv-cat-line);
  border-radius: 12px;
  background: #fff;
  color: var(--alv-cat-muted);
}

.alv-catalog-empty strong,
.alv-catalog-notice {
  color: var(--alv-cat-navy);
}

/* Responsive */
@media (max-width: 1080px) {
  .alv-catalog-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 26px;
  }

  .alv-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .alv-catalog {
    width: min(100% - 28px, 1350px);
    margin-top: 24px;
  }

  .alv-catalog-layout {
    grid-template-columns: 1fr;
  }

  .alv-catalog-sidebar {
    position: static;
    max-height: none;
    padding: 0 0 15px;
    border-right: 0;
    border-bottom: 1px solid var(--alv-cat-line);
    overflow: visible;
  }

  .alv-catalog-sidebar__title {
    margin-left: 0;
  }

  .alv-catalog-categories {
    flex-direction: row;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scroll-snap-type: x proximity;
  }

  .alv-catalog-category {
    flex: 0 0 auto;
    max-width: 250px;
    scroll-snap-align: start;
    border: 1px solid var(--alv-cat-line);
    background: #fff;
  }

  .alv-catalog-category__arrow {
    display: none;
  }

  .alv-catalog-view-header__copy {
    max-width: 100%;
  }

  .alv-catalog-view-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .alv-catalog {
    width: min(100% - 20px, 1350px);
    margin-bottom: 50px;
  }

  .alv-catalog-hero {
    margin-bottom: 25px;
    padding: 36px 18px;
    border-radius: 14px;
  }

  .alv-catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .alv-catalog-sort {
    width: 100%;
  }

  .alv-catalog-sort label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .alv-catalog-sort select {
    width: 100%;
  }

  .alv-catalog-view-header {
    padding: 20px;
  }

  .alv-product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .alv-product-card {
    min-height: 0;
  }

  .alv-product-card__media {
    height: 235px;
  }

  .alv-product-card__quick {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  .alv-catalog-pagination {
    grid-template-columns: 1fr 1fr;
  }

  .alv-catalog-pagination__pages {
    grid-column: 1 / -1;
    grid-row: 1;
    overflow-x: auto;
  }

  .alv-catalog-pagination__nav {
    grid-row: 2;
  }

  .alv-catalog-pagination__nav:last-child {
    justify-self: end;
  }

  .alv-quick-view__panel {
    grid-template-columns: 1fr;
  }

  .alv-quick-view__media {
    min-height: 245px;
    padding: 22px 28px 0;
  }

  .alv-quick-view__media img {
    height: 225px;
  }

  .alv-quick-view__content {
    padding: 24px 24px 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alv-catalog *,
  .alv-catalog *::before,
  .alv-catalog *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}


/* =========================================================
   0.6.1 — Category hierarchy / subcategories
   ========================================================= */

.alv-catalog-category-group {
  display: block;
  border-radius: 10px;
}

.alv-catalog-category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  align-items: stretch;
  gap: 3px;
}

.alv-catalog-category-row > .alv-catalog-category {
  min-width: 0;
}

.alv-catalog-category-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  min-width: 38px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6b7787;
  cursor: pointer;
  transition:
    background-color .16s ease,
    color .16s ease;
}

.alv-catalog-category-toggle:hover,
.alv-catalog-category-toggle:focus-visible {
  background: #f2f7f3;
  color: var(--alv-cat-green);
}

.alv-catalog-category-toggle span {
  position: relative;
  width: 10px;
  height: 10px;
}

.alv-catalog-category-toggle span::before,
.alv-catalog-category-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .18s ease;
}

.alv-catalog-category-toggle span::before {
  transform: translate(-72%, -50%) rotate(45deg);
}

.alv-catalog-category-toggle span::after {
  transform: translate(-18%, -50%) rotate(-45deg);
}

.alv-catalog-category-group.is-open .alv-catalog-category-toggle span::before {
  transform: translate(-72%, -50%) rotate(-45deg);
}

.alv-catalog-category-group.is-open .alv-catalog-category-toggle span::after {
  transform: translate(-18%, -50%) rotate(45deg);
}

.alv-catalog-subcategories {
  display: grid;
  gap: 2px;
  margin: 4px 0 8px;
  padding: 4px 0 4px 12px;
  border-left: 2px solid #e8edef;
}

.alv-catalog-subcategories[hidden] {
  display: none !important;
}

.alv-catalog-subcategory {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #667384 !important;
  font-size: .86rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none !important;
  transition:
    background-color .16s ease,
    color .16s ease,
    transform .16s ease;
}

.alv-catalog-subcategory:hover,
.alv-catalog-subcategory:focus-visible {
  background: #f5f8f5;
  color: var(--alv-cat-green) !important;
  transform: translateX(3px);
}

.alv-catalog-subcategory.is-active {
  background: #eaf5eb;
  color: var(--alv-cat-green-dark) !important;
  font-weight: 800;
}

.alv-catalog-subcategory__dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bac3cc;
}

.alv-catalog-subcategory.is-active .alv-catalog-subcategory__dot {
  background: var(--alv-cat-green);
}

/* Parent category stays visually related to an active child. */
.alv-catalog-category-group.is-open:has(.alv-catalog-subcategory.is-active) .alv-catalog-category {
  color: var(--alv-cat-green) !important;
  background: #f2f7f3;
}

/* Breadcrumb inside category header. */
.alv-catalog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 5px;
  color: var(--alv-cat-muted);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.35;
}

.alv-catalog-breadcrumb a {
  color: var(--alv-cat-green) !important;
  text-decoration: none !important;
}

.alv-catalog-breadcrumb a:hover,
.alv-catalog-breadcrumb a:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Category link no longer needs its old arrow because toggle owns expansion. */
.alv-catalog-category__arrow {
  display: none !important;
}

@media (max-width: 820px) {
  /*
   * On mobile the categories become a vertical accordion rather than
   * 25 permanent horizontal chips.
   */
  .alv-catalog-categories {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 0;
  }

  .alv-catalog-category {
    max-width: none;
    width: 100%;
    border: 0;
  }

  .alv-catalog-category-group {
    border: 1px solid var(--alv-cat-line);
    background: #fff;
  }

  .alv-catalog-category-row {
    padding: 2px;
  }

  .alv-catalog-subcategories {
    margin: 0 10px 8px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alv-catalog-category-toggle span::before,
  .alv-catalog-category-toggle span::after,
  .alv-catalog-subcategory {
    transition: none !important;
  }
}


/* =========================================================
   0.6.2 — Product Card visual refinement
   Keeps current interaction: "Ver producto" always visible,
   "Vista rápida" appears on hover/focus.
   ========================================================= */

.alv-product-grid {
  align-items: stretch;
}

/* Same visual rhythm for every card, regardless of image proportions. */
.alv-product-card {
  display: grid;
  grid-template-rows: 228px minmax(0, 1fr);
  min-height: 420px;
  overflow: hidden;
  border: 1px solid #e3e8ec;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 2px 5px rgba(22,43,76,.025),
    0 7px 18px rgba(22,43,76,.035);
  transform: translateY(0);
  transition:
    transform .20s cubic-bezier(.2,.75,.25,1),
    box-shadow .20s ease,
    border-color .20s ease;
}

.alv-product-card:hover,
.alv-product-card:focus-within {
  border-color: rgba(0,130,0,.22);
  box-shadow:
    0 5px 12px rgba(22,43,76,.045),
    0 17px 34px rgba(0,90,0,.09);
  transform: translateY(-3px);
}

/* Fixed media area keeps forks, pans, knives, etc. aligned as one grid. */
.alv-product-card__media {
  height: 228px;
  min-height: 228px;
  border-bottom: 1px solid rgba(226,232,240,.72);
  background:
    radial-gradient(circle at 50% 45%, rgba(0,130,0,.025), transparent 52%),
    linear-gradient(180deg, #fff 0%, #fcfdfd 100%);
}

.alv-product-card__image-link {
  padding: 22px 24px 18px;
}

.alv-product-card__image {
  width: 88% !important;
  height: 88% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  transform: scale(1);
  transition: transform .25s cubic-bezier(.2,.75,.25,1);
}

.alv-product-card:hover .alv-product-card__image,
.alv-product-card:focus-within .alv-product-card__image {
  transform: scale(1.028);
}

/* Quick view remains the current interaction, only visually polished. */
.alv-product-card__quick {
  bottom: 16px;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(22,43,76,.92);
  box-shadow: 0 7px 18px rgba(22,43,76,.16);
  backdrop-filter: blur(5px);
}

.alv-product-card__quick:hover,
.alv-product-card__quick:focus-visible {
  background: var(--alv-cat-green-dark);
}

/* Text block: consistent heights and hierarchy. */
.alv-product-card__body {
  display: grid;
  grid-template-rows: auto minmax(46px, auto) auto 1fr auto;
  align-content: start;
  gap: 0;
  padding: 18px 19px 19px;
  text-align: left;
}

.alv-product-card__brand {
  min-height: 16px;
  margin: 0 0 6px;
  color: var(--alv-cat-green);
  font-size: .68rem;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.alv-product-card__title {
  display: -webkit-box;
  min-height: 46px;
  max-height: 46px;
  margin: 0 0 7px !important;
  overflow: hidden;
  color: var(--alv-cat-text) !important;
  font-size: .98rem !important;
  font-weight: 820 !important;
  line-height: 1.42 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.alv-product-card__title a {
  transition: color .16s ease;
}

.alv-product-card__sku {
  min-height: 18px;
  margin: 0;
  color: #8290a0;
  font-size: .73rem;
  font-weight: 650;
  line-height: 1.25;
}

/* CTA always lands at the same baseline across a row. */
.alv-product-card__actions {
  align-self: end;
  margin-top: 0;
  padding-top: 16px;
}

.alv-product-card__details {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  color: var(--alv-cat-green) !important;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none !important;
}

.alv-product-card__details::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right .18s ease;
}

.alv-product-card__details:hover::after,
.alv-product-card__details:focus-visible::after {
  right: 0;
}

.alv-product-card__details span {
  transform: translateX(0);
  transition: transform .16s ease;
}

.alv-product-card__details:hover span,
.alv-product-card__details:focus-visible span {
  transform: translateX(4px);
}

/* Medium screens: preserve equal-card behavior without making them too tall. */
@media (max-width: 1080px) and (min-width: 621px) {
  .alv-product-card {
    grid-template-rows: 220px minmax(0, 1fr);
    min-height: 405px;
  }

  .alv-product-card__media {
    height: 220px;
    min-height: 220px;
  }
}

/* Mobile: natural height, but keep image and text rhythm. */
@media (max-width: 620px) {
  .alv-product-card {
    display: grid;
    grid-template-rows: 235px auto;
    min-height: 0;
    border-radius: 14px;
  }

  .alv-product-card__media {
    height: 235px;
    min-height: 235px;
  }

  .alv-product-card__body {
    grid-template-rows: auto minmax(46px, auto) auto 1fr auto;
    padding: 17px 17px 18px;
  }

  .alv-product-card__image {
    width: 90% !important;
    height: 90% !important;
  }
}


/* =========================================================
   0.6.3 — Sidebar + toolbar + pagination refinement
   ========================================================= */

/* ---------- Desktop layout / sticky sidebar ---------- */

@media (min-width: 1081px) {
  .alv-catalog-layout {
    grid-template-columns: 296px minmax(0, 1fr);
    gap: 34px;
  }
}

.alv-catalog-sidebar {
  top: 112px;
  max-height: calc(100vh - 136px);
  padding: 10px 10px 12px 12px;
  border: 1px solid var(--alv-cat-line);
  border-radius: 15px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(22,43,76,.045);
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #9ebda2 transparent;
}

/* Integrated scrollbar — Chromium / Edge / Safari */
.alv-catalog-sidebar::-webkit-scrollbar {
  width: 8px;
}

.alv-catalog-sidebar::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 9px;
}

.alv-catalog-sidebar::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: #a7bea9;
  background-clip: padding-box;
}

.alv-catalog-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--alv-cat-green);
  background-clip: padding-box;
}

.alv-catalog-sidebar__title {
  position: sticky;
  top: -10px;
  z-index: 4;
  margin: -10px -10px 10px -12px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid rgba(226,232,240,.72);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(7px);
  color: #526173;
  font-size: .72rem;
  letter-spacing: .10em;
}

.alv-catalog-categories {
  gap: 4px;
}

.alv-catalog-category-group {
  padding: 2px;
  border-radius: 11px;
}

.alv-catalog-category-row {
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 2px;
}

.alv-catalog-category {
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: .91rem;
}

.alv-catalog-category-toggle {
  width: 36px;
  min-width: 36px;
  min-height: 42px;
  border-radius: 8px;
}

.alv-catalog-category-group.is-open {
  background: linear-gradient(180deg, rgba(0,130,0,.035), rgba(0,130,0,0));
}

.alv-catalog-subcategories {
  margin: 2px 5px 8px 9px;
  padding: 4px 0 4px 10px;
  border-left-color: #dce7df;
}

.alv-catalog-subcategory {
  min-height: 33px;
  padding: 6px 8px;
  font-size: .82rem;
}

.alv-catalog-subcategory.is-active {
  background: #eaf5eb;
  box-shadow: inset 0 0 0 1px rgba(0,130,0,.08);
}

/* ---------- Toolbar / sorting ---------- */

/* The header badge is the single source of truth for result count. */
.alv-catalog-toolbar__summary {
  display: none !important;
}

.alv-catalog-toolbar {
  justify-content: flex-end;
  margin-bottom: 14px;
}

.alv-catalog-sort {
  gap: 0;
  min-height: 44px;
  padding-left: 14px;
  border: 1px solid var(--alv-cat-line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22,43,76,.04);
  overflow: hidden;
  transition:
    border-color .16s ease,
    box-shadow .16s ease;
}

.alv-catalog-sort:focus-within {
  border-color: rgba(0,130,0,.48);
  box-shadow: 0 0 0 4px rgba(0,130,0,.075);
}

.alv-catalog-sort label {
  color: #7a8795;
  font-size: .76rem;
  font-weight: 750;
  white-space: nowrap;
}

.alv-catalog-sort select {
  min-height: 42px;
  padding: 0 38px 0 8px;
  border: 0;
  border-radius: 0;
  background-color: #fff;
  box-shadow: none;
  color: var(--alv-cat-navy);
  font-size: .84rem;
  font-weight: 800;
}

.alv-catalog-sort select:focus-visible {
  border: 0;
  box-shadow: none;
  outline: 0;
}

/* Header feels more connected to the cards below. */
.alv-catalog-view-header {
  margin-bottom: 20px;
  padding: 22px 24px;
  border-color: #e1e7eb;
  background:
    radial-gradient(circle at 92% 18%, rgba(0,130,0,.045), transparent 27%),
    linear-gradient(135deg, #fbfcfd, #f6f9fa);
}

.alv-catalog-count-badge {
  padding: 8px 13px;
  border: 1px solid rgba(0,130,0,.08);
  background: #eaf2ed;
  box-shadow: 0 3px 8px rgba(0,130,0,.035);
}

/* ---------- Compact centered pagination ---------- */

.alv-catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 36px 0 0;
  padding: 24px 0 5px;
  border-top: 1px solid var(--alv-cat-line);
}

.alv-catalog-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  order: 2;
}

.alv-catalog-pagination__nav {
  min-width: auto;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 999px;
  order: 1;
  color: var(--alv-cat-green) !important;
  transition:
    background-color .15s ease,
    color .15s ease,
    transform .15s ease;
}

.alv-catalog-pagination__nav:last-child {
  justify-self: auto;
  order: 3;
}

.alv-catalog-pagination__nav:not(.is-disabled):hover,
.alv-catalog-pagination__nav:not(.is-disabled):focus-visible {
  background: #edf7ee;
  transform: translateY(-1px);
}

.alv-catalog-pagination__nav.is-disabled {
  opacity: .46;
  background: transparent;
}

.alv-catalog-pagination__page {
  min-width: 40px;
  min-height: 40px;
  border-radius: 999px;
  box-shadow: none;
}

.alv-catalog-pagination__page.is-current {
  box-shadow: 0 5px 13px rgba(0,130,0,.18);
}

.alv-catalog-pagination__ellipsis {
  min-width: 26px;
  min-height: 40px;
}

/* ---------- Responsive adjustments ---------- */

@media (max-width: 1080px) and (min-width: 821px) {
  .alv-catalog-layout {
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 24px;
  }

  .alv-catalog-sidebar {
    padding-left: 10px;
    padding-right: 8px;
  }

  .alv-catalog-category {
    font-size: .86rem;
  }
}

@media (max-width: 820px) {
  .alv-catalog-sidebar {
    position: static;
    max-height: none;
    padding: 10px;
    border: 1px solid var(--alv-cat-line);
    border-radius: 13px;
    overflow: visible;
    box-shadow: 0 5px 16px rgba(22,43,76,.035);
  }

  .alv-catalog-sidebar__title {
    position: static;
    margin: 0 0 8px;
    padding: 2px 2px 10px;
    background: transparent;
    backdrop-filter: none;
  }

  .alv-catalog-toolbar {
    justify-content: stretch;
  }

  .alv-catalog-sort {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .alv-catalog-sort {
    width: 100%;
    padding-left: 12px;
  }

  .alv-catalog-sort label {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    flex: none;
  }

  .alv-catalog-sort select {
    flex: 1 1 auto;
    width: 100%;
  }

  .alv-catalog-pagination {
    display: flex;
    gap: 5px;
    padding-top: 20px;
  }

  .alv-catalog-pagination__pages {
    order: 2;
    width: auto;
    overflow: visible;
  }

  .alv-catalog-pagination__nav {
    min-height: 38px;
    padding-inline: 10px;
    font-size: .8rem;
  }

  .alv-catalog-pagination__page {
    min-width: 38px;
    min-height: 38px;
  }
}

/* =========================================================
   0.7.0 — Productos 2.0
   Reutiliza Product Card 2.0 y Vista rápida de Catálogo 2.0.
   ========================================================= */

.alv-products {
  margin-top: 34px;
}

.alv-products-hero {
  margin-bottom: 30px;
}

.alv-products-hero__description {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 13px auto 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(.92rem, 1.4vw, 1.03rem);
  font-weight: 550;
  line-height: 1.55;
}

.alv-products-main {
  width: min(1120px, 100%);
  margin: 0 auto;
  scroll-margin-top: 120px;
}

/* Filters */
.alv-products-filters {
  display: grid;
  grid-template-columns: minmax(300px, 1.55fr) minmax(210px, .82fr) minmax(190px, .72fr) auto;
  gap: 12px;
  align-items: end;
  margin: 0 0 18px;
  padding: 17px;
  border: 1px solid var(--alv-cat-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 22px rgba(22,43,76,.045);
}

.alv-products-search-field,
.alv-products-filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.alv-products-search-field label,
.alv-products-filter-field label {
  color: #6f7d8c;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .035em;
}

.alv-products-search-control {
  position: relative;
  min-width: 0;
}

.alv-products-search-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 14px;
  height: 14px;
  border: 2px solid #80909f;
  border-radius: 50%;
  transform: translateY(-56%);
  pointer-events: none;
}

.alv-products-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #80909f;
  transform: rotate(45deg);
  transform-origin: left center;
}

.alv-products-search-control input,
.alv-products-filter-field select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  border: 1px solid #dce3e8;
  border-radius: 10px;
  outline: 0;
  background-color: #fbfcfd;
  color: var(--alv-cat-text);
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.alv-products-search-control input {
  padding: 0 14px 0 42px;
}

.alv-products-filter-field select {
  padding: 0 38px 0 13px;
  cursor: pointer;
}

.alv-products-search-control input::placeholder {
  color: #97a3af;
  font-weight: 550;
}

.alv-products-search-control input:focus,
.alv-products-filter-field select:focus-visible {
  border-color: rgba(0,130,0,.48);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,130,0,.07);
}

.alv-products-filter-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.alv-products-search-button {
  min-height: 44px;
  padding: 0 19px;
  border: 0;
  border-radius: 999px;
  background: var(--alv-cat-green);
  color: #fff;
  font: inherit;
  font-size: .84rem;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,130,0,.16);
  transition: background-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.alv-products-search-button:hover,
.alv-products-search-button:focus-visible {
  background: var(--alv-cat-green-dark);
  box-shadow: 0 8px 18px rgba(42,77,22,.20);
  transform: translateY(-1px);
}

.alv-products-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 8px;
  color: #758392 !important;
  font-size: .78rem;
  font-weight: 750;
  text-decoration: none !important;
}

.alv-products-clear:hover,
.alv-products-clear:focus-visible {
  color: var(--alv-cat-green) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Results header */
.alv-products-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 22px;
  padding: 21px 23px;
  border: 1px solid #e1e7eb;
  border-radius: 13px;
  background:
    radial-gradient(circle at 92% 18%, rgba(0,130,0,.045), transparent 27%),
    linear-gradient(135deg, #fbfcfd, #f6f9fa);
}

.alv-products-results-header__copy {
  min-width: 0;
  max-width: 78%;
}

.alv-products-results-header__kicker {
  display: block;
  margin-bottom: 3px;
  color: var(--alv-cat-muted);
  font-size: .70rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.alv-products-results-header h2 {
  margin: 0 0 5px;
  color: var(--alv-cat-green) !important;
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  font-weight: 900;
  line-height: 1.18;
}

.alv-products-results-header p {
  margin: 0;
  color: var(--alv-cat-muted);
  font-size: .90rem;
  line-height: 1.48;
}

.alv-products-empty__reset {
  align-self: flex-start;
  margin-top: 10px;
  color: var(--alv-cat-green) !important;
  font-size: .86rem;
  font-weight: 850;
  text-decoration: none !important;
}

.alv-products-empty__reset:hover,
.alv-products-empty__reset:focus-visible {
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

/* Product cards remain three columns on wide Productos pages. */
@media (min-width: 1081px) {
  .alv-products .alv-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .alv-products-filters {
    grid-template-columns: minmax(0, 1.2fr) minmax(200px, .8fr);
  }

  .alv-products-filter-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 720px) {
  .alv-products-main {
    width: 100%;
  }

  .alv-products-filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .alv-products-filter-actions {
    justify-content: stretch;
  }

  .alv-products-search-button {
    flex: 1 1 auto;
  }

  .alv-products-results-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    padding: 19px;
  }

  .alv-products-results-header__copy {
    max-width: 100%;
  }
}

@media (max-width: 620px) {
  .alv-products-hero__description {
    margin-top: 10px;
    font-size: .9rem;
  }

  .alv-products-filters {
    margin-bottom: 14px;
    border-radius: 13px;
  }

  .alv-products-search-control input,
  .alv-products-filter-field select,
  .alv-products-search-button {
    min-height: 46px;
  }
}


/* =========================================================
   1.3.2 — Ruta de navegación de Catálogo 2.0
   ========================================================= */

.alv-catalog-view-header .alv-catalog-breadcrumb {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 10px;
  padding: 8px 11px;
  border: 1px solid #e0e7e2;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(22,43,76,.03);
  color: var(--alv-cat-muted);
  font-size: .7rem;
  font-weight: 690;
}

.alv-catalog-breadcrumb__sep {
  color: #a5afb8;
  font-weight: 600;
}

.alv-catalog-breadcrumb__current {
  color: var(--alv-cat-navy);
  font-weight: 800;
}

@media (max-width: 620px) {
  .alv-catalog-view-header .alv-catalog-breadcrumb {
    width: 100%;
    border-radius: 11px;
  }
}


/* =========================================================
   1.5.0 — Marcas 2.0
   ========================================================= */

.alv-brands-hero__description {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 13px auto 0;
  color: rgba(255,255,255,.9);
  font-size: .96rem;
  line-height: 1.55;
}

.alv-brands-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.alv-brand-nav-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #4a5869 !important;
  font-size: .84rem;
  font-weight: 760;
  line-height: 1.2;
  text-decoration: none !important;
  transition:
    background-color .16s ease,
    color .16s ease,
    transform .16s ease,
    box-shadow .16s ease;
}

.alv-brand-nav-item:hover,
.alv-brand-nav-item:focus-visible {
  background: #f2f7f3;
  color: var(--alv-cat-green) !important;
  transform: translateX(3px);
  outline: none;
}

.alv-brand-nav-item.is-active {
  background: var(--alv-cat-green);
  color: #fff !important;
  box-shadow: 0 5px 14px rgba(0,130,0,.16);
}

.alv-brand-nav-item__logo {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  padding: 4px;
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
}

.alv-brand-nav-item__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 34px !important;
  max-height: 24px !important;
  object-fit: contain !important;
}

.alv-brand-nav-item__all {
  display: grid;
  width: 42px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: #edf4ef;
  color: var(--alv-cat-green);
  font-size: 1.15rem;
  font-weight: 850;
}

.alv-brand-nav-item.is-active .alv-brand-nav-item__all {
  background: rgba(255,255,255,.18);
  color: #fff;
}

/* Directory */
.alv-brand-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.alv-brand-directory-card {
  display: flex;
  min-width: 0;
  min-height: 205px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--alv-cat-line);
  border-radius: 14px;
  background: #fff;
  color: var(--alv-cat-text) !important;
  text-decoration: none !important;
  box-shadow: 0 5px 16px rgba(22,43,76,.035);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.alv-brand-directory-card:hover,
.alv-brand-directory-card:focus-visible {
  border-color: rgba(0,130,0,.34);
  box-shadow: 0 14px 28px rgba(0,130,0,.085);
  transform: translateY(-5px);
  outline: none;
}

.alv-brand-directory-card__logo {
  display: grid;
  height: 142px;
  place-items: center;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid #edf1f3;
  background: linear-gradient(180deg, #fff, #fafcfc);
}

.alv-brand-directory-card__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: min(78%, 180px) !important;
  max-height: 82px !important;
  object-fit: contain !important;
  filter: grayscale(.72);
  opacity: .74;
  transition:
    filter .18s ease,
    opacity .18s ease,
    transform .18s ease;
}

.alv-brand-directory-card:hover .alv-brand-directory-card__logo img,
.alv-brand-directory-card:focus-visible .alv-brand-directory-card__logo img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.045);
}

.alv-brand-directory-card__body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 17px;
}

.alv-brand-directory-card__body strong {
  color: var(--alv-cat-navy);
  font-size: .92rem;
  font-weight: 850;
  transition: color .16s ease;
}

.alv-brand-directory-card__body > span {
  position: relative;
  flex: none;
  padding-bottom: 3px;
  color: var(--alv-cat-green);
  font-size: .72rem;
  font-weight: 850;
}

.alv-brand-directory-card__body > span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--alv-cat-green);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .2s ease;
}

.alv-brand-directory-card:hover .alv-brand-directory-card__body strong,
.alv-brand-directory-card:focus-visible .alv-brand-directory-card__body strong {
  color: var(--alv-cat-green);
}

.alv-brand-directory-card:hover .alv-brand-directory-card__body > span::after,
.alv-brand-directory-card:focus-visible .alv-brand-directory-card__body > span::after {
  transform: scaleX(1);
}

/* Selected brand */
.alv-brand-selected-header {
  align-items: center;
}

.alv-brand-selected-header__logo {
  display: grid;
  flex: 0 0 150px;
  width: 150px;
  height: 88px;
  place-items: center;
  padding: 14px;
  overflow: hidden;
  border: 1px solid #e3e8eb;
  border-radius: 11px;
  background: #fff;
}

.alv-brand-selected-header__logo img {
  display: block;
  width: auto !important;
  height: auto !important;
  max-width: 118px !important;
  max-height: 56px !important;
  object-fit: contain !important;
}

.alv-brand-selected-header .alv-catalog-view-header__copy {
  flex: 1;
  max-width: none;
}

/* Reuses Catalog 2.0 scrollbar, cards, sorter, pagination and quick view. */

@media (max-width: 1050px) {
  .alv-brand-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .alv-brand-selected-header {
    flex-wrap: wrap;
  }
}

@media (max-width: 820px) {
  .alv-brands .alv-catalog-sidebar {
    position: static;
    max-height: none;
    padding-right: 0;
    border-right: 0;
  }

  .alv-brands-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .alv-brand-nav-item {
    transform: none !important;
  }
}

@media (max-width: 560px) {
  .alv-brand-directory,
  .alv-brands-nav {
    grid-template-columns: 1fr;
  }

  .alv-brand-selected-header__logo {
    flex-basis: 100%;
    width: 100%;
  }

  .alv-brand-directory-card {
    min-height: 188px;
  }
}


/* =========================================================
   1.6.0 — Novedades 2.0
   ========================================================= */

.alv-novelties {
  margin-top: 34px;
}

.alv-novelties-hero {
  background:
    radial-gradient(circle at 86% 20%, rgba(255,255,255,.13), transparent 25%),
    linear-gradient(135deg, #008200 0%, #086b13 48%, #162b4c 135%);
}

.alv-novelties-filters {
  grid-template-columns: minmax(320px, 1.55fr) minmax(210px, .72fr) auto;
}

.alv-novelties-results-header {
  background:
    radial-gradient(circle at 90% 20%, rgba(0,130,0,.07), transparent 29%),
    linear-gradient(135deg, #fbfdfb, #f5f9f6);
}

/* Product Card 2.0 + gallery hover */
.alv-product-card--gallery .alv-product-card__image-link {
  position: relative;
  padding: 0;
  overflow: hidden;
}

.alv-product-card--gallery .alv-product-card__slides {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.alv-product-card--gallery .alv-product-card__slide {
  position: absolute;
  inset: 12px 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  opacity: 0;
  transform: scale(.988);
  transition: opacity .22s ease, transform .26s ease;
  pointer-events: none;
}

.alv-product-card--gallery .alv-product-card__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.alv-product-card--gallery .alv-product-card__image {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: min(88%, 270px) !important;
  max-height: 194px !important;
  margin: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
}

.alv-product-card--gallery:hover .alv-product-card__image,
.alv-product-card--gallery:focus-within .alv-product-card__image {
  transform: none !important;
}

.alv-product-card__gallery-dots {
  position: absolute;
  z-index: 4;
  right: 11px;
  top: 11px;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 18px;
  padding: 5px 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 2px 8px rgba(22,43,76,.08);
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}

.alv-product-card--gallery:hover .alv-product-card__gallery-dots,
.alv-product-card--gallery:focus-within .alv-product-card__gallery-dots {
  opacity: 1;
  transform: translateY(0);
}

.alv-product-card__gallery-dots i {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #c7d0d5;
  transition: width .16s ease, background-color .16s ease;
}

.alv-product-card__gallery-dots i.is-active {
  width: 13px;
  background: var(--alv-cat-green);
}

.alv-product-card--gallery:hover .alv-product-card__title a,
.alv-product-card--gallery:focus-within .alv-product-card__title a {
  color: var(--alv-cat-green) !important;
}

.alv-product-card--gallery:hover .alv-product-card__details::after,
.alv-product-card--gallery:focus-within .alv-product-card__details::after {
  right: 0;
}

@media (max-width: 980px) {
  .alv-novelties-filters {
    grid-template-columns: minmax(0, 1.2fr) minmax(210px, .8fr);
  }

  .alv-novelties-filters .alv-products-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .alv-novelties-filters {
    grid-template-columns: 1fr;
  }

  .alv-novelties-filters .alv-products-filter-actions {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .alv-product-card--gallery .alv-product-card__image {
    max-width: min(90%, 290px) !important;
    max-height: 205px !important;
  }

  .alv-product-card__gallery-dots {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .alv-product-card--gallery .alv-product-card__slide,
  .alv-product-card__gallery-dots,
  .alv-product-card__gallery-dots i {
    transition: none;
  }
}


/* =========================================================
   1.6.1 — Novedades: entrada inicial de 12 + Ver más
   ========================================================= */

.alv-novelties-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  margin: 30px auto 4px;
  text-align: center;
}

.alv-novelties-more__button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 210px;
  padding: 0 22px;
  overflow: hidden;
  border: 1px solid var(--alv-cat-green);
  border-radius: 999px;
  background: var(--alv-cat-green);
  color: #fff !important;
  font-size: .79rem;
  font-weight: 850;
  text-decoration: none !important;
  box-shadow: 0 7px 18px rgba(0,130,0,.14);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.alv-novelties-more__button:hover,
.alv-novelties-more__button:focus-visible {
  background: #086b13;
  box-shadow: 0 10px 24px rgba(0,130,0,.2);
  transform: translateY(-2px);
  outline: none;
}

.alv-novelties-more__button > span:last-child {
  transition: transform .18s ease;
}

.alv-novelties-more__button:hover > span:last-child,
.alv-novelties-more__button:focus-visible > span:last-child {
  transform: translateX(4px);
}

.alv-novelties-more small {
  color: #7a8490;
  font-size: .71rem;
}

@media (prefers-reduced-motion: reduce) {
  .alv-novelties-more__button,
  .alv-novelties-more__button > span:last-child {
    transition: none;
  }
}


/* =========================================================
   1.6.2 — CTA "Ver más novedades"
   ========================================================= */

.alv-novelties-more {
  align-items: flex-start !important;
  margin-top: 42px !important;
  margin-bottom: 8px !important;
  text-align: left !important;
}

.alv-novelties-more__button {
  position: relative;
  isolation: isolate;
  min-width: 198px;
  min-height: 44px;
  padding: 0 20px;
  overflow: hidden;
  border: 1px solid var(--alv-cat-green) !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--alv-cat-green) !important;
  box-shadow: none !important;
  transform: none !important;
  transition:
    color .22s ease,
    border-color .22s ease,
    transform .18s ease !important;
}

.alv-novelties-more__button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: var(--alv-cat-green);
  transform: translateX(-102%);
  transition: transform .30s cubic-bezier(.22,.82,.28,1);
}

.alv-novelties-more__button:hover,
.alv-novelties-more__button:focus-visible {
  border-color: var(--alv-cat-green) !important;
  background: transparent !important;
  color: #fff !important;
  transform: translateY(-1px) !important;
  outline: none;
}

.alv-novelties-more__button:hover::before,
.alv-novelties-more__button:focus-visible::before {
  transform: translateX(0);
}

.alv-novelties-more__button > span:last-child {
  transition: transform .18s ease;
}

.alv-novelties-more__button:hover > span:last-child,
.alv-novelties-more__button:focus-visible > span:last-child {
  transform: translateX(4px);
}

.alv-novelties-more small {
  display: block;
  margin-top: 2px;
  color: #7a8490;
  font-size: .70rem;
  line-height: 1.4;
}

@media (prefers-reduced-motion: reduce) {
  .alv-novelties-more__button::before,
  .alv-novelties-more__button,
  .alv-novelties-more__button > span:last-child {
    transition: none !important;
  }
}
