/* Sistema visual compartido de Mamushka: componentes, estados y layout. */
:root {
  --page-chrome-height: 108px;
  --color-brand-bg: var(--bg);
  --color-brand-surface: var(--surface);
  --color-brand-ink: var(--ink);
  --color-brand-muted: var(--muted);
  --color-brand-accent: var(--accent);
  --color-brand-border: var(--border);
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --radius-control: 10px;
  --radius-card: 14px;
  --radius-panel: 18px;
  --space-1: .35rem;
  --space-2: .65rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --shadow-hover: 0 8px 22px rgb(87 58 44 / 14%);
  --shadow-control: 0 4px 12px rgb(87 58 44 / 12%);
  --focus-ring: 0 0 0 3px var(--color-brand-ink);
}

body { font-family: var(--font-body); }
.topbar { position: sticky; top: 0; z-index: 20; min-height: 32px; height: 32px; padding: .15rem 1rem; }
.topbarLogo { height: 30px; width: auto; filter: none; }
.nav { top: 32px; z-index: 19; gap: 1rem; justify-content: space-between; align-items: center; }
.moduleNav { position: static; display: flex; align-items: center; gap: clamp(.2rem, 1.3vw, 1rem); padding: 0; background: transparent; border: 0; box-shadow: none; overflow: visible; }
.moduleNav a { min-height: 44px; display: inline-flex; align-items: center; padding: .35rem .62rem; border-radius: var(--radius-control); color: var(--color-brand-ink); text-decoration: none; font-size: .7rem; letter-spacing: .04em; transition: background-color .2s, color .2s; white-space: nowrap; }
.moduleNav a:hover { background: var(--color-brand-ink); color: var(--color-brand-bg); }
.headerActions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.searchBox { display: flex; align-items: center; height: 44px; width: 176px; border: 1px solid var(--color-brand-ink); background: var(--color-brand-surface); border-radius: var(--radius-control); overflow: hidden; }
.searchBox input { width: 100%; min-width: 0; border: 0; background: transparent; padding: .65rem .8rem; color: var(--color-brand-ink); font: inherit; font-size: .74rem; outline: none; }
.searchBox input:focus, .searchBox input:focus-visible { box-shadow: none; outline: none; }
.searchBox:focus-within { box-shadow: var(--focus-ring); }
.searchBox:hover:not(:focus-within) { border-color: var(--color-brand-accent); box-shadow: 0 0 0 1px var(--color-brand-accent); }
.searchBox.hasQuery input { width: auto; }
.searchButton { display: none; flex: 0 0 44px; width: 44px; height: 100%; border: 0; padding: 0; background: transparent; color: var(--color-brand-ink); cursor: pointer; font-size: 1.45rem; line-height: 1; transition: transform .2s ease, filter .2s ease; }
.searchButton svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.searchButton:hover { z-index: 1; color: var(--color-brand-accent); transform: scale(1.3); filter: drop-shadow(0 3px 4px rgb(36 21 15 / 65%)); text-shadow: 0 2px 4px rgb(36 21 15 / 65%); }
.searchBox.hasQuery .searchButton { display: grid; place-items: center; }
.cartbutton, .searchButton, .add, .filter, .close, .remove, .whatsapp { min-height: 44px; }
.cartbutton { display: inline-flex; align-items: center; justify-content: center; gap: .25rem; min-width: 52px; height: 44px; padding: .55rem .7rem; }
.cartIcon { display: inline-flex; width: 20px; height: 20px; align-items: center; justify-content: center; }
.cartIcon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cartbutton, .searchButton, .add, .filter, .close, .remove, .whatsapp, .qty, .detailQty, .detailClose, .detailAdd, .heroCarouselControls button { border-radius: var(--radius-control); }
.cartbutton, .add, .filter, .close, .remove, .whatsapp, .detailAdd, .detailClose, .heroCarouselControls button { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease, border-color .2s ease, color .2s ease; }
.cartbutton:hover, .add:hover, .filter:hover, .close:hover, .remove:hover, .whatsapp:hover, .detailAdd:hover, .detailClose:hover, .heroCarouselControls button:hover { background: var(--color-brand-ink); color: var(--color-brand-bg); transform: translateY(-2px); box-shadow: var(--shadow-control); }
.whatsapp { background: var(--color-brand-ink); color: var(--color-brand-bg); border: 1px solid var(--color-brand-ink); }
.whatsapp:not([aria-disabled="true"]):hover { border-color: #25D366; background: #25D366; color: #fff; }
.whatsapp[aria-disabled="true"]:hover { background: var(--color-brand-ink); color: var(--color-brand-bg); }
.cartbutton:focus-visible, .searchButton:focus-visible, .add:focus-visible, .filter:focus-visible, .close:focus-visible, .remove:focus-visible, .moduleNav a:focus-visible, .detailClose:focus-visible, .detailAdd:focus-visible, .heroCarouselControls button:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.hero { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: center; align-content: center; gap: clamp(1.5rem, 4vw, 4rem); min-width: 0; height: calc(100svh - var(--page-chrome-height)); min-height: 0; padding-top: clamp(1rem, 2.5vh, 2rem); padding-bottom: clamp(1rem, 2.5vh, 2rem); overflow: clip; }
.hero > div, .heroCarousel { min-width: 0; max-width: 100%; }
.hero .eyebrow { position: relative; top: -.25rem; margin-bottom: .35rem; }
.hero h1 { margin-top: 0; }
.hero h1 { font-size: clamp(3rem, 5.2vw, 5.35rem); line-height: .86; }
.heroLogoWrap { position: relative; display: block; width: min(100%, 580px); height: auto; margin: .65rem 0 0; line-height: 0; }
.heroBrandLogo { display: block; width: 100%; height: auto; max-height: 92px; object-fit: contain; }
.heartSweep { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.heartTrace { display: block; width: 100%; height: 100%; overflow: visible; }
.heartTrace path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 18; }
.heartDarkPath { stroke: #8F482D; stroke-dasharray: 1; stroke-dashoffset: 1; animation: heartDarkTrace 8s linear infinite; }
.heartLightPath { stroke: var(--color-brand-accent); stroke-dasharray: 1; stroke-dashoffset: 1; animation: heartLightTrace 8s linear infinite; }
@keyframes heartDarkTrace { 0% { stroke-dashoffset: 1; } 50%, 100% { stroke-dashoffset: 0; } }
@keyframes heartLightTrace { 0%, 50% { stroke-dashoffset: 1; } 100% { stroke-dashoffset: 0; } }
.heroCarousel { position: relative; display: block; aspect-ratio: 16 / 10.5; min-height: 0; overflow: hidden; border-radius: var(--radius-panel); background: #ece5d0; isolation: isolate; }
.heroCarouselSlide { position: absolute; inset: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; color: var(--color-brand-ink); text-decoration: none; opacity: 0; transform: translateX(3%); transition: opacity var(--carousel-transition, .65s) ease, transform var(--carousel-transition, .65s) ease; pointer-events: none; }
.heroCarouselSlide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; z-index: 1; }
.heroCarouselSlide img { width: 100%; height: 100%; min-height: 0; max-height: none; object-fit: contain; padding: 1.5rem 1.5rem 0; }
.heroCarouselSlide.is-fullBleed { display: block; }
.heroCarouselSlide.is-fullBleed img { display: block; width: 100%; height: 100%; padding: 0; object-fit: cover; object-position: center; background: #ece5d0; }
.heroCarouselSlide.is-fit-contain img { object-fit: contain; object-position: center; background: var(--slide-background, #ece5d0); }
.heroCarouselSlide.is-image-scaled img { transform: scale(var(--slide-image-scale, 1)); }
.heroCarouselSlide[data-blend-sides="true"]::after { content: ""; position: absolute; top: 0; left: 50%; z-index: 1; height: 100%; aspect-ratio: 768 / 1365; transform: translateX(-50%); border-radius: 2px; box-shadow: 0 0 28px 9px rgb(54 37 24 / 24%); pointer-events: none; }
.heroCarouselSlide.is-fit-cover img { object-fit: cover; object-position: center; background: #ece5d0; }
.heroCarouselSlide.is-fullBleed:focus-visible { outline: 3px solid var(--color-brand-accent); outline-offset: -3px; }
.heroCarouselCaption { padding: 1.2rem 1.5rem 1.4rem; background: linear-gradient(transparent, var(--color-brand-surface) 22%); }
.heroCarouselCaption small { display: block; color: var(--color-brand-accent); letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; margin-bottom: .35rem; }
.heroCarouselCaption strong { font-family: var(--font-display); font-size: clamp(1.35rem, 2vw, 2rem); font-weight: 600; }
.heroCarouselCaption p { margin: .35rem 0 0; color: var(--color-brand-muted); font-size: .82rem; line-height: 1.4; }
.heroCarouselControls { position: absolute; inset: auto 0 0; display: flex; align-items: center; justify-content: flex-end; gap: .45rem; z-index: 3; margin: 0; padding: 0 1rem; background: linear-gradient(transparent, rgb(255 252 240 / 78%)); }
.heroCarouselControls button { width: 44px; height: 44px; border: 1px solid var(--color-brand-border); background: var(--color-brand-surface); color: var(--color-brand-ink); cursor: pointer; }
.heroCarouselControls button:hover { box-shadow: var(--shadow-control); }
.heroCarouselDots { display: flex; gap: 0; margin-right: .35rem; }
.heroCarouselDots button { display: grid; place-items: center; width: 24px; height: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.heroCarouselDots button:hover { background: transparent; color: inherit; transform: none; box-shadow: none; }
.heroCarouselDots button::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--color-brand-muted); transition: transform .2s ease; }
.heroCarouselDots button:hover::before { transform: scale(1.2); }
.heroCarouselDots button[aria-current="true"]::before { background: var(--color-brand-accent); }
.contactCta { display: inline-flex; margin-top: 1rem; min-height: 44px; align-items: center; padding: .65rem 1.2rem; border: 1px solid var(--color-brand-ink); border-radius: var(--radius-control); background: var(--color-brand-ink); color: var(--color-brand-bg); text-decoration: none; transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s; }
.contactCta:hover { transform: translateY(-2px); border-color: #25D366; background: #25D366; color: #fff; box-shadow: var(--shadow-control); }
.moduleSection[hidden] { display: none !important; }
.productsScreen { min-height: calc(100svh - 140px); }
.filters { display: flex; justify-content: flex-start; gap: .65rem; flex-wrap: wrap; width: 100%; margin: 1.35rem 0 .4rem; }
.searchStatus { margin: 0 0 1rem; color: var(--color-brand-muted); font-size: .85rem; text-align: center; }
.searchStatus[hidden] { display: none; }
.filter { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 148px; width: 148px; min-height: 44px; border: 1px solid var(--color-brand-border); background: transparent; padding: .6rem .9rem; color: var(--color-brand-ink); cursor: pointer; }
.filter.active { background: var(--color-brand-ink); color: var(--color-brand-bg); }
.filter[aria-pressed="true"] { background: var(--color-brand-ink); color: var(--color-brand-bg); }
.categoryEmpty { grid-column: 1 / -1; width: 100%; margin: 1.5rem 0; padding: 1.1rem 1.25rem; border: 1px solid var(--color-brand-border); border-radius: var(--radius-card); color: var(--color-brand-muted); background: var(--color-brand-surface); text-align: center; }
.products { gap: 1.15rem; }
.card { border-radius: var(--radius-card); overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--color-brand-accent); box-shadow: var(--shadow-hover); }
.card:focus-within { border-color: var(--color-brand-accent); box-shadow: var(--focus-ring); }
.card:focus-visible { outline: 0; border-color: var(--color-brand-accent); box-shadow: var(--focus-ring); }
.cardImageFrame { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg); }
.cardimg { display: block; width: 100%; height: 100%; object-fit: contain; }
.cardbody { padding: .75rem .9rem; }
.card h4 { margin: .15rem 0; font-size: clamp(1.2rem, 1.45vw, 1.5rem); line-height: 1; }
.cardTitleButton { min-height: 44px; }
.card .format { font-size: .68rem; }
.card .productTone { margin: .25rem 0; padding: .25rem .5rem; }
.card .desc { min-height: 2.15rem; margin: .4rem 0; font-size: .73rem; line-height: 1.4; }
.card .addrow { margin-top: .55rem; }
.card .inquireProduct { min-height: 40px; margin-top: .55rem; padding: .55rem .7rem; }
.qty, .detailQty { transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
.qty:hover, .detailQty:hover { border-color: var(--color-brand-accent); box-shadow: var(--shadow-control); }
.qty:focus-visible, .detailQty:focus-visible { outline: 0; border-color: var(--color-brand-accent); box-shadow: var(--focus-ring); }
.detailGallery { background: var(--color-brand-bg); }
.detailClose, .detailAdd, .thumbs button { border-radius: var(--radius-control); }
.detailClose:hover, .detailAdd:hover { background: var(--color-brand-ink); color: var(--color-brand-bg); }
.thumbs button:hover { border-color: var(--color-brand-accent); box-shadow: var(--shadow-control); }
.waHeader { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand-ink); color: var(--color-brand-bg); text-decoration: none; box-shadow: var(--shadow-control); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.waHeader:hover { background: #25D366; color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.waHeader:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.waHeader svg { width: 23px; height: 23px; fill: currentColor; }
.productModal { position: fixed; inset: 0; z-index: 50; display: none; overflow: hidden; place-items: center; padding: 5vh 4vw; background: rgb(35 26 19 / 58%); backdrop-filter: blur(3px); }
.productModal.open { display: grid; }
.productDetail { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); width: min(92vw, 1180px); height: min(88svh, 820px); overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--color-brand-border); border-radius: var(--radius-panel); background: var(--color-brand-bg); box-shadow: 0 24px 80px rgb(0 0 0 / 28%); scrollbar-gutter: stable; }
.detailClose { position: sticky; top: .8rem; justify-self: end; grid-column: 1 / -1; grid-row: 1; z-index: 3; width: 44px; height: 44px; margin: .8rem .8rem -3.6rem 0; border: 1px solid var(--color-brand-ink); background: var(--color-brand-surface); color: var(--color-brand-ink); font-size: 1.8rem; cursor: pointer; }
.detailGallery { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-content: start; align-items: center; gap: 1rem; min-width: 0; min-height: 0; padding: 3rem 2rem 1.25rem; background: var(--color-brand-bg); }
.thumbs { display: flex; flex-direction: column; gap: .7rem; }
.thumbs button { border: 2px solid transparent; padding: 0; background: transparent; cursor: pointer; }
.thumbs button.active { border-color: var(--color-brand-accent); }
.thumbs img { display: block; width: 68px; height: 88px; border-radius: var(--radius-control); object-fit: contain; }
.detailImageFrame { display: grid; width: 100%; height: min(70svh, 640px); min-height: 0; place-items: center; overflow: visible; border: 0; border-radius: 0; background: transparent; }
.detailMain { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; min-height: 0; border: 2px solid transparent; border-radius: 2px; object-fit: contain; object-position: center; transition: transform .28s ease, border-color .2s ease, filter .2s ease; }
.detailImageFrame:hover .detailMain { border-color: var(--color-brand-accent); filter: drop-shadow(0 3px 8px rgb(87 58 44 / 18%)); transform: scale(1.045); }
.detailInfo { align-self: start; max-width: 680px; padding: 4.5rem clamp(1.5rem, 3.5vw, 3.5rem) 3rem; }
.detailSummary { margin: .4rem 0 .7rem; color: var(--color-brand-muted); font-size: .9rem; line-height: 1.55; }
.detailBrand { display: block; margin-top: .8rem; color: var(--color-brand-muted); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.detailName { margin: .5rem 0 1rem; font: 600 clamp(3rem, 5vw, 6rem)/.88 var(--font-display); }
.detailDescription { max-width: 35rem; color: var(--color-brand-muted); line-height: 1.7; }
.detailPrice { margin-top: .8rem; font-size: 1.4rem; font-weight: 700; }
.detailFormat { margin-top: .3rem; color: var(--color-brand-muted); font-size: .8rem; }
.detailBuy { display: flex; align-items: end; gap: 1rem; margin-top: 1.5rem; }
.detailBuy[hidden] { display: none !important; }
.detailBuy label { display: grid; gap: .4rem; color: var(--color-brand-muted); font-size: .75rem; }
.detailQty { width: 70px; border: 1px solid var(--color-brand-border); padding: .85rem; background: var(--color-brand-surface); font: inherit; }
.detailAdd { border: 0; padding: .9rem 1.2rem; background: var(--color-brand-ink); color: var(--color-brand-bg); font: inherit; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.detailDescription { margin-top: 2rem; color: var(--color-brand-muted); line-height: 1.7; }
.detailNote { margin-top: 1.5rem; color: var(--color-brand-muted); font-size: .75rem; }
@media (min-width: 901px) and (max-height: 760px) {
  .hero { padding-top: clamp(1.5rem, 2.5vw, 2.4rem); padding-bottom: 1.25rem; }
  .hero h1 { font-size: clamp(2.8rem, 4.8vw, 5rem); line-height: .88; }
  .heroLogoWrap { margin-top: .7rem; }
}
@media (max-width: 840px) {
  :root { --page-chrome-height: 139px; }
  .moduleNav { gap: .1rem; }
  .moduleNav a { padding-inline: .42rem; font-size: .7rem; }
  .searchBox { width: 176px; }
  .hero { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .heroCarousel { min-height: 0; }
  .productCategoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 651px) and (max-width: 840px) {
  .nav { flex-wrap: wrap; gap: .35rem; padding: .45rem 3vw; }
  .moduleNav { order: 2; flex: 1 0 100%; justify-content: space-between; flex-wrap: wrap; gap: .1rem .2rem; max-width: none; overflow: visible; }
  .moduleNav a { padding-inline: .3rem; }
  .headerActions { order: 1; margin-left: auto; }
}
@media (max-width: 650px) {
  .nav { flex-wrap: wrap; gap: .35rem; padding: .45rem 3vw; }
  .moduleNav { order: 2; flex: 1 0 100%; justify-content: space-between; flex-wrap: wrap; gap: .1rem .2rem; max-width: none; overflow: visible; }
  .moduleNav a { font-size: .7rem; padding-inline: .3rem; }
  .headerActions { order: 1; margin-left: auto; }
  .searchBox { width: clamp(110px, 30vw, 150px); }
  .headerActions { gap: .3rem; }
  .topbarLogo { height: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr); height: auto; min-height: calc(100svh - var(--page-chrome-height)); padding-inline: 3vw; padding-top: 1.5rem; padding-bottom: 1.5rem; overflow: visible; }
  .heroCarousel { min-height: 0; height: 61.7vw; aspect-ratio: auto; order: 2; }
  .heroLogoWrap { margin-top: 1.4rem; width: min(100%, 580px); }
  .filters { gap: .55rem; }
  .productCategoryGrid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 800px) {
  .productModal { padding: 3vh 3vw; }
  .productDetail { display: block; width: min(94vw, 680px); height: 92svh; }
  .detailClose { position: sticky; top: .5rem; margin: .5rem .5rem -3.3rem auto; }
  .detailGallery { min-height: 0; grid-template-columns: 56px minmax(0, 1fr); padding: 3rem 1rem 1rem; }
  .thumbs { gap: .45rem; }
  .thumbs img { width: 50px; height: 68px; }
  .detailImageFrame { height: min(64svh, 540px); min-height: 220px; }
  .detailInfo { padding: 1.2rem 1.4rem 2.2rem; }
  .detailName { margin-bottom: .45rem; font-size: clamp(2.5rem, 9vw, 3.5rem); }
}

@media (min-width: 801px) and (max-height: 650px) {
  .detailGallery { padding-block: 2.8rem; }
  .detailImageFrame { height: 66svh; }
  .detailInfo { padding-top: 3.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .heroCarouselSlide { transition: none; }
  .card { transition: none; }
  .detailMain { transition: none; }
  .heartDarkPath, .heartLightPath { animation: none; stroke-dashoffset: 1; }
}
.productTone { display: inline-flex; align-items: center; gap: .5rem; width: fit-content; margin: .55rem 0; padding: .35rem .65rem; border: 1px solid var(--color-brand-border); border-radius: var(--radius-control); color: var(--color-brand-ink); font-size: .72rem; }
.productTone::before { content: ""; width: .72rem; height: .72rem; border-radius: 50%; background: #d98591; }
.productTone[data-tone="balsamo-cacao"]::before { background: #75442d; }
.productTone[data-tone="balsamo-nude"]::before { background: #e7d6ad; }
.inquireProduct { display: inline-flex; align-self: flex-start; align-items: center; justify-content: center; margin-top: .8rem; padding: .7rem .9rem; border: 1px solid var(--color-brand-ink); border-radius: var(--radius-control); background: transparent; color: var(--color-brand-ink); font: inherit; font-size: .75rem; text-decoration: none; }
.inquireProduct:hover, .inquireProduct:focus-visible { background: var(--color-brand-ink); color: var(--color-brand-bg); box-shadow: var(--shadow-control); }
.detailNote a { display: inline-block; margin-top: .4rem; color: var(--color-brand-ink); font-weight: 700; }
.whatsapp[aria-disabled="true"] { cursor: not-allowed; opacity: .58; }
.close, .remove { min-width: 44px; }

/* Catálogo: jerarquía editorial clara y densidad de tarjetas adaptada a móvil. */
.productsScreen .shophead { margin-bottom: 1rem; }
.productsScreen .shophead h2 { max-width: 14ch; margin-bottom: .65rem; font-size: clamp(2.5rem, 4.8vw, 4.8rem); line-height: .94; }
.productsScreen .sectionintro { margin: 0; line-height: 1.65; }
.productsScreen .filters { justify-content: center; gap: .55rem; margin: 1.65rem 0 1.4rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--color-brand-border); }
.productsScreen .filter { flex: 0 1 auto; width: auto; min-width: clamp(128px, 14vw, 168px); }
.productsScreen .filter:focus-visible { outline: 0; box-shadow: var(--focus-ring); }
.productCategoryHeading { margin-top: 2.8rem; }
.productCategoryHeading h3 { letter-spacing: -.02em; }
.productCategoryCount { font-variant-numeric: tabular-nums; }
.cardimg { transition: transform .35s ease; }
.card:hover .cardimg { transform: scale(1.025); }
.card[data-product-id^="balsamo-"] .cardimg { transform: scale(1.5); }
.card[data-product-id^="balsamo-"]:hover .cardimg { transform: scale(1.5); }
.cardbody { padding: clamp(.9rem, 1.35vw, 1.2rem); }
.inquireProduct { min-height: 44px; }

@media (min-width: 390px) and (max-width: 650px) {
  .productCategoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .productsScreen .shophead h2 { max-width: 16ch; }
}

@media (max-width: 389px) {
  .productsScreen { padding-top: 1.35rem; }
  .productsScreen .shophead { margin-bottom: .45rem; }
  .productsScreen .shophead h2 { margin-bottom: .35rem; font-size: 2.15rem; }
  .productsScreen .sectionintro { font-size: .8rem; line-height: 1.4; }
  .productsScreen .filters { gap: .35rem; margin: .6rem 0 .45rem; padding-bottom: .55rem; }
  .productsScreen .filters { justify-content: flex-start; }
  .productsScreen .filter { min-width: 0; flex: 1 1 calc(50% - .55rem); }
  .productCategoryGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .productCategoryHeading { margin: .9rem 0 .45rem; padding-bottom: .4rem; }
  .productCategoryHeading h3 { font-size: 1.7rem; }
  .cardbody { padding: .55rem; }
  .card .brand, .card .format { font-size: .6rem; }
  .card h4 { font-size: 1.1rem; }
  .card .desc { min-height: 2.2rem; font-size: .67rem; }
  .card .addrow { gap: .3rem; }
  .card .qty { width: 44px; padding: .55rem .35rem; }
  .card .inquireProduct { width: 100%; min-height: 44px; padding-inline: .3rem; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  .cardimg { transition: none; }
  .card:hover .cardimg { transform: none; }
  .card[data-product-id^="balsamo-"] .cardimg,
  .card[data-product-id^="balsamo-"]:hover .cardimg { transform: none; }
}
