/* ============================================================
   AC Hombres Collection  –  American College USA  v1.0.7
   ============================================================ */

/* ── ocultar header con logo y sub-header del tema en /hombres/ ──── */
/* (no se toca #ac-header — la barra superior personalizada permanece) */
body.page-id-987948 .main-header,
body.page-id-987948 #sub-header { display: none !important; }

body.page-id-987948 #main-content { padding-top: 0 !important; margin-top: 0 !important; }

/* ── design tokens ──────────────────────────────────────────── */
:root {
  --h-dark:     #0d1117;
  --h-navy:     #1a2236;
  --h-blue:     #233656;
  --h-gold:     #c8a96e;
  --h-gold-dk:  #a8893e;
  --h-bg:       #f4f4f2;
  --h-white:    #ffffff;
  --h-text:     #1a1a1a;
  --h-muted:    #6b7280;
  --h-border:   #e4e4e0;
  --h-r:        5px;
  --h-r-lg:     12px;
  --h-shadow:   0 2px 18px rgba(0,0,0,.06);
  --h-shadow-h: 0 10px 48px rgba(0,0,0,.14);
  --h-ease:     cubic-bezier(.4,0,.2,1);
  --h-t:        .26s var(--h-ease);
}

/* ── global wrapper ──────────────────────────────────────────── */
.ac-hombres-wrap {
  --page-pad: 2rem;
  overflow-x: hidden;
}
.ac-hombres-wrap .ac-page-body { padding-right: 1.5rem; padding-left: 1.5rem; }
@media (max-width: 768px) {
  .ac-hombres-wrap .ac-page-body { padding: 0 1rem; }
}

/* ── hero ────────────────────────────────────────────────────── */
.ac-hero {
  position: relative;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  height: clamp(340px, 56vh, 600px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #060b14 0%, #0e1b2e 38%, #1c2d44 68%, #101820 100%);
}

.ac-hero__pattern {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -52deg, transparent, transparent 24px,
    rgba(255,255,255,.017) 24px, rgba(255,255,255,.017) 25px
  );
  z-index: 1;
}

.ac-hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 55% 80% at 18% 50%, rgba(200,169,110,.14) 0%, transparent 68%);
  z-index: 1;
}

/* Bottom page fade — sutil */
.ac-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 32px;
  background: linear-gradient(rgba(244,244,242,0), rgba(244,244,242,.55));
  z-index: 3;
  pointer-events: none;
}

.ac-hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: #fff;
  padding: 0 clamp(1rem, 5vw, 3rem);
  max-width: 800px;
}

.ac-hero__eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .36em;
  text-transform: uppercase;
  color: var(--h-gold);
  margin-bottom: 1.4rem;
}

.ac-hero__title {
  font-size: clamp(2.6rem, 7.5vw, 5.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -.034em !important;
  line-height: 1.04 !important;
  color: #fff !important;
  margin: 0 0 1.2rem !important;
  padding: 0 !important;
  text-transform: none !important;
  border: none !important;
}

.ac-hero__title em {
  font-style: normal;
  color: var(--h-gold);
}

.ac-hero__subtitle {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.58);
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .02em;
  margin: 0 auto 2rem;
  max-width: 440px;
}

.ac-hero__line {
  width: 36px;
  height: 2px;
  background: var(--h-gold);
  margin: 0 auto;
}

.ac-hero__scroll {
  position: absolute;
  bottom: 2.6rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.42);
  background: none;
  border: none;
  cursor: pointer;
  animation: ac-bob 2.3s ease-in-out infinite;
  transition: color var(--h-t);
}
.ac-hero__scroll:hover { color: rgba(255,255,255,.8); }
.ac-hero__scroll svg { width: 15px; height: 15px; }

@keyframes ac-bob {
  0%, 100% { transform: translateX(-50%) translateY(0);   opacity: .45; }
  50%       { transform: translateX(-50%) translateY(7px); opacity: 1;   }
}

/* ── page body (sidebar + main) ──────────────────────────────── */
.ac-page-body {
  display: grid;
  grid-template-columns: 248px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 2rem;
  margin-top: 1.6rem;
  align-items: start;
  position: relative;
}

/* ── mobile filter toggle ────────────────────────────────────── */
.ac-filter-toggle {
  display: none; /* shown only on mobile */
}

/* ── sidebar ─────────────────────────────────────────────────── */
.ac-sidebar {
  grid-column: 1;
  grid-row: 1 / 999;
  position: sticky;
  top: calc(var(--ac-topbar-h, 46px) + 66px + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.ac-sb-block {
  background: var(--h-white);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  padding: 1.3rem;
}

.ac-sb-heading {
  display: flex;
  align-items: center;
  gap: .48rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--h-text);
  margin: 0 0 1.1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--h-border);
}
.ac-sb-heading svg { width: 14px; height: 14px; color: var(--h-gold); flex-shrink: 0; }

/* Categories */
.ac-sb-cats {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 2px;
}

.ac-sb-cat__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem .72rem;
  border-radius: var(--h-r);
  font-size: .855rem;
  color: var(--h-text);
  text-decoration: none;
  transition: background var(--h-t), color var(--h-t);
}
.ac-sb-cat__link:hover { background: var(--h-bg); color: var(--h-gold-dk); }

.ac-sb-cat.is-active .ac-sb-cat__link {
  background: var(--h-dark);
  color: #fff;
  font-weight: 600;
}

.ac-sb-cat__count {
  font-size: .7rem;
  background: var(--h-bg);
  color: var(--h-muted);
  border-radius: 20px;
  padding: .1rem .52rem;
  min-width: 24px;
  text-align: center;
}
.ac-sb-cat.is-active .ac-sb-cat__count {
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.72);
}

/* Price range */
.ac-range { user-select: none; -webkit-user-select: none; }

.ac-range__track {
  position: relative;
  height: 4px;
  background: var(--h-border);
  border-radius: 2px;
  margin: 1.5rem 0 .85rem;
}

.ac-range__fill {
  position: absolute;
  height: 100%;
  background: var(--h-gold);
  border-radius: 2px;
  pointer-events: none;
}

.ac-range__thumb {
  position: absolute;
  top: 50%; width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--h-dark);
  border: 3px solid var(--h-white);
  box-shadow: 0 2px 8px rgba(0,0,0,.22);
  transform: translate(-50%, -50%);
  cursor: grab;
  z-index: 2;
  touch-action: none;
  transition: transform .1s;
}
.ac-range__thumb:active { cursor: grabbing; transform: translate(-50%, -50%) scale(1.25); }

.ac-range__vals {
  display: flex; justify-content: space-between;
  font-size: .83rem; color: var(--h-muted);
  margin-bottom: 1rem;
}

.ac-sb-apply {
  width: 100%;
  background: var(--h-dark);
  color: #fff;
  border: none;
  padding: .75rem 1rem;
  min-height: 44px;
  border-radius: var(--h-r);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background var(--h-t);
}
.ac-sb-apply:hover { background: var(--h-gold); color: var(--h-dark); }

/* Sizes */
.ac-sizes-form { margin: 0; }

.ac-sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .45rem;
}

.ac-size { position: relative; display: block; cursor: pointer; user-select: none; }

.ac-size__input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}

.ac-size__box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .35rem .25rem;
  background: transparent;
  border: 1.5px solid var(--h-border);
  border-radius: var(--h-r);
  font-size: .78rem;
  font-weight: 600;
  color: var(--h-text);
  text-align: center;
  line-height: 1.1;
  transition: background var(--h-t), border-color var(--h-t), color var(--h-t), transform var(--h-t);
}

.ac-size:hover .ac-size__box {
  border-color: var(--h-dark);
  color: var(--h-dark);
}

.ac-size.is-checked .ac-size__box,
.ac-size__input:checked + .ac-size__box {
  background: var(--h-dark);
  border-color: var(--h-dark);
  color: #fff;
}

.ac-size__input:focus-visible + .ac-size__box {
  outline: 2px solid var(--h-gold);
  outline-offset: 2px;
}

.ac-size:active .ac-size__box { transform: scale(.96); }

.ac-sb-heading__count {
  margin-left: auto;
  background: var(--h-gold);
  color: var(--h-dark);
  font-size: .65rem;
  font-weight: 800;
  border-radius: 999px;
  padding: .08rem .42rem;
  letter-spacing: 0;
}

.ac-sizes-empty {
  margin: 0;
  font-size: .82rem;
  color: var(--h-muted);
}

/* Clear filters — botón outlined centrado */
.ac-sb-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: .4rem;
  padding: .68rem 1rem;
  background: var(--h-white);
  border: 1.5px solid var(--h-border);
  border-radius: var(--h-r);
  color: var(--h-muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--h-t), border-color var(--h-t), color var(--h-t);
}
.ac-sb-clear svg {
  width: 13px;
  height: 13px;
  transition: transform var(--h-t);
}
.ac-sb-clear:hover {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}
.ac-sb-clear:hover svg { transform: rotate(90deg); }

/* ── main content ────────────────────────────────────────────── */
.ac-main {
  grid-column: 2;
  min-width: 0;
}

/* ── toolbar ─────────────────────────────────────────────────── */
.ac-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  background: var(--h-white);
  border: 1px solid var(--h-border);
  border-radius: var(--h-r-lg);
  padding: .85rem 1.2rem;
  margin-bottom: 1.4rem;
}

.ac-toolbar__count {
  font-size: .88rem; color: var(--h-muted); margin: 0;
}
.ac-toolbar__count strong {
  color: var(--h-text); font-size: .98rem; font-weight: 700;
}
.ac-toolbar__range { font-size: .8rem; }

.ac-toolbar__right {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
}

/* Sort */
.ac-sort-form { display: flex; align-items: center; gap: .55rem; }
.ac-sort-label { font-size: .78rem; color: var(--h-muted); white-space: nowrap; }
.ac-sort-wrapper { position: relative; }

.ac-sort-select {
  appearance: none; -webkit-appearance: none;
  border: 1.5px solid var(--h-border);
  border-radius: var(--h-r);
  padding: .44rem 2.2rem .44rem .8rem;
  font-size: .84rem; color: var(--h-text);
  background: var(--h-white);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 15px;
  cursor: pointer;
  transition: border-color var(--h-t);
}
.ac-sort-select:focus { outline: none; border-color: var(--h-gold); }

/* ── product grid ────────────────────────────────────────────── */
.ac-products-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

/* 4 columnas en pantallas amplias para que la card no se vea enorme */
@media (min-width: 1400px) {
  .ac-products-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}

/* ── product card (homologado con ac-popcar) ─────────────────── */
.ac-product-card {
  position: relative;
  background: var(--h-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s var(--h-ease), transform .3s var(--h-ease);
  cursor: pointer;
}

.ac-product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(13, 17, 23, .18);
}

/* ── Badge: sello circular -XX% / Descuento (mismo estilo que popcar) ── */
.ac-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: Catamaran, sans-serif;
  color: #fff;
  line-height: 1;
  pointer-events: none;
}

.ac-card__badge--discount {
  width: 62px;
  height: 62px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 0;
  background: radial-gradient(circle at 30% 30%, #EE7A5D 0%, #C84A2C 75%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1.5px #C84A2C,
    0 8px 22px rgba(228, 106, 75, .45),
    inset 0 -6px 12px rgba(0, 0, 0, .12);
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
  transform: rotate(-12deg);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1);
}

.ac-card__badge--discount::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 12px;
  width: 16px;
  height: 6px;
  background: rgba(255, 255, 255, .28);
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.ac-product-card:hover .ac-card__badge--discount {
  transform: rotate(-6deg) scale(1.06);
}

.ac-card__badge-pct {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1;
}

.ac-card__badge-label {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: .95;
}

.ac-card__badge--sale {
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: radial-gradient(circle at 30% 30%, #EE7A5D 0%, #C84A2C 75%);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow:
    0 0 0 1.5px #C84A2C,
    0 6px 18px rgba(228, 106, 75, .4);
  transform: rotate(-12deg);
}

/* ── Image + overlay ── */
.ac-card__img-link {
  display: block;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 3 / 4;
  background: var(--h-bg);
}

.ac-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--h-ease);
}

.ac-product-card:hover .ac-card__img { transform: scale(1.06); }

.ac-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 20px;
  background: linear-gradient(to top, rgba(13, 17, 23, .6) 0%, transparent 55%);
  opacity: 0;
  transition: opacity .3s var(--h-ease);
  pointer-events: none;
}

.ac-product-card:hover .ac-card__overlay { opacity: 1; }

.ac-card__overlay-text {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .5);
  padding: 6px 16px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}

/* ── Card body ── */
.ac-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

/* Stars */
.ac-card__stars {
  display: flex; gap: 2px;
  margin: 0;
}
.ac-card__stars svg {
  width: 11px; height: 11px;
  fill: var(--h-border); stroke: none;
}
.ac-card__stars svg.filled { fill: var(--h-gold); }

/* Title — calificado con .ac-products-grid (0,2,0) para vencer la regla
   global de Vamtam `.elementor-kit-37 h2` (0,1,1) sobre h2. */
.ac-products-grid .ac-card__title {
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--h-text) !important;
  margin: 0 !important;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ac-products-grid .ac-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--h-t);
}
.ac-products-grid .ac-card__title a:hover { color: #E46A4B; }

/* Price con tachado + ins destacado en naranja (homologado con popcar) */
.ac-card__price {
  font-family: Catamaran, sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 2px 0 0;
  line-height: 1.2;
}

.ac-card__price > .woocommerce-Price-amount,
.ac-card__price > bdi {
  font-size: 16px;
  font-weight: 700;
  color: var(--h-text);
}

.ac-card__price del {
  order: 2;
  font-size: 12px;
  font-weight: 500;
  color: #9aa3ad;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin: 0;
}
.ac-card__price del .woocommerce-Price-amount { color: inherit; }

.ac-card__price ins {
  order: 1;
  text-decoration: none;
  font-size: 17px;
  font-weight: 800;
  color: #E46A4B;
  letter-spacing: -.01em;
}
.ac-card__price ins .woocommerce-Price-amount { color: inherit; }

/* CTA: blanco con texto/borde azul, hover invertido (azul lleno + texto blanco)
   Vamtam fuerza color en <a> con .elementor-kit-37 (specificity 0,1,1), por eso
   se usa !important para color y background en este botón. */
.ac-card__cta,
.ac-card__cta:link,
.ac-card__cta:visited {
  display: block;
  background: #fff !important;
  color: var(--h-blue) !important;
  border: 2px solid var(--h-blue);
  border-radius: var(--h-r);
  padding: .55rem .9rem;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  text-align: center; text-decoration: none;
  transition: background-color .28s var(--h-ease),
              color .28s var(--h-ease),
              border-color .28s var(--h-ease),
              box-shadow .28s var(--h-ease);
  margin-top: auto;
}
.ac-card__cta:hover,
.ac-card__cta:focus-visible {
  background: var(--h-blue) !important;
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(35, 54, 86, .28);
}

/* ── pagination ──────────────────────────────────────────────── */
.ac-pagination { margin-top: 3rem; }

.ac-pagination .page-numbers {
  display: flex; gap: .4rem; flex-wrap: wrap;
  justify-content: center;
  list-style: none; margin: 0; padding: 0;
}

.ac-pagination .page-numbers li { margin: 0; }

.ac-pagination .page-numbers li a,
.ac-pagination .page-numbers li span {
  display: flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 .55rem;
  border: 1.5px solid var(--h-border);
  border-radius: var(--h-r);
  font-size: .86rem; color: var(--h-text);
  text-decoration: none;
  transition: background var(--h-t), border-color var(--h-t), color var(--h-t);
}

.ac-pagination .page-numbers li a:hover {
  border-color: var(--h-dark);
  background: var(--h-dark);
  color: #fff;
}

.ac-pagination .page-numbers li span.current {
  background: var(--h-dark);
  border-color: var(--h-dark);
  color: #fff; font-weight: 700;
}

.ac-pagination .page-numbers li span.dots {
  border: none; background: none;
}

/* ── empty state ─────────────────────────────────────────────── */
.ac-empty {
  text-align: center; padding: 5rem 2rem;
}

.ac-empty__icon {
  width: 72px; height: 72px;
  margin: 0 auto 2rem; color: var(--h-border);
}
.ac-empty__icon svg { width: 100%; height: 100%; }

.ac-empty h2 {
  font-size: 1.5rem; font-weight: 700; margin-bottom: .75rem;
}

.ac-empty p { color: var(--h-muted); margin-bottom: 2rem; }

.ac-empty__cta {
  display: inline-block;
  background: var(--h-dark); color: #fff;
  padding: .8rem 2.2rem;
  border-radius: var(--h-r);
  font-weight: 700; text-decoration: none;
  font-size: .9rem; letter-spacing: .05em;
  transition: background var(--h-t);
}
.ac-empty__cta:hover { background: var(--h-gold); color: var(--h-dark); }

/* ── tablet ──────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ac-page-body { grid-template-columns: 220px 1fr; column-gap: 1.5rem; }
  .ac-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ac-page-body {
    grid-template-columns: 1fr;
    margin-top: 1rem;
    column-gap: 0;
  }

  /* Filter toggle button */
  .ac-filter-toggle {
    display: flex; align-items: center; justify-content: center;
    gap: .55rem;
    grid-column: 1;
    background: var(--h-white);
    border: 1.5px solid var(--h-border);
    border-radius: var(--h-r-lg);
    padding: .8rem 1.1rem;
    font-size: .88rem; font-weight: 600;
    cursor: pointer; color: var(--h-text);
    width: 100%; margin-bottom: .75rem;
    transition: border-color var(--h-t), background var(--h-t);
    -webkit-tap-highlight-color: rgba(0,0,0,.04);
  }
  .ac-filter-toggle:hover,
  .ac-filter-toggle.is-open { border-color: var(--h-dark); background: var(--h-bg); }
  .ac-filter-toggle svg { width: 18px; height: 18px; }
  .ac-filter-toggle .ac-filter-toggle__badge {
    background: var(--h-gold); color: var(--h-dark);
    font-size: .6rem; font-weight: 800; border-radius: 50%;
    width: 16px; height: 16px; display: flex; align-items: center; justify-content: center;
    margin-left: auto;
  }
  .ac-filter-toggle__close-icon { display: none; }
  .ac-filter-toggle.is-open .ac-filter-toggle__close-icon { display: block; }
  .ac-filter-toggle.is-open > svg:first-child { display: none; }

  /* Sidebar hidden on mobile by default */
  .ac-sidebar {
    display: none;
    grid-column: 1; grid-row: 2;
    position: static;
    margin-bottom: 1rem;
  }
  .ac-sidebar.is-open { display: flex; }

  .ac-main { grid-column: 1; }

  /* 2-col grid on mobile for better catalog density */
  .ac-products-grid { grid-template-columns: repeat(2, 1fr); gap: .9rem; }

  /* Toolbar wraps gracefully on mobile */
  .ac-toolbar {
    gap: .5rem .75rem;
    padding: .7rem .9rem;
    flex-direction: row;
  }
  .ac-toolbar__count { font-size: .82rem; }
  .ac-toolbar__count strong { font-size: .92rem; }
  .ac-toolbar__range { display: none; }
  .ac-toolbar__right { gap: .6rem; width: auto; }
  .ac-sort-label { display: none; }
  /* iOS Safari zooms on focus when input font < 16px → keep at 16px */
  .ac-sort-select { font-size: 16px; padding: .42rem 1.9rem .42rem .7rem; }

  .ac-hero { height: clamp(260px, 46vh, 360px); }
  .ac-hero__scroll { display: none; }
  .ac-hero__eyebrow { margin-bottom: 1rem; font-size: .65rem; letter-spacing: .3em; }
  .ac-hero__subtitle { margin-bottom: 1.4rem; }

  /* Sello más compacto en cards móviles */
  .ac-card__badge--discount {
    width: 50px; height: 50px;
    top: 8px; left: 8px;
    border-width: 1.5px;
  }
  .ac-card__badge-pct  { font-size: 14px; }
  .ac-card__badge-label { font-size: 6.5px; letter-spacing: .14em; }

  /* Card body tighter on mobile */
  .ac-card__body { padding: 12px 12px 14px; gap: 6px; }
  .ac-products-grid .ac-card__title { font-size: 13px !important; min-height: 2.6em; }
  .ac-card__price > .woocommerce-Price-amount,
  .ac-card__price > bdi { font-size: 14px; }
  .ac-card__price ins { font-size: 15px; }
  .ac-card__price del { font-size: 11px; }
  .ac-card__cta { padding: .65rem .7rem; min-height: 44px; font-size: .68rem; letter-spacing: .1em; }

  /* Pagination smaller on mobile */
  .ac-pagination .page-numbers li a,
  .ac-pagination .page-numbers li span {
    min-width: 36px; height: 36px; font-size: .82rem;
  }
}

@media (max-width: 380px) {
  /* Very small phones — keep 2-col but trim further */
  .ac-products-grid { gap: .7rem; }
  .ac-card__body { padding: 10px 10px 12px; }
  .ac-products-grid .ac-card__title { font-size: 12.5px !important; }
}
