:root {
  --bg-white: #ffffff;
  --bg-gray: #f5f5f7;
  --bg-ui: #f4f4f6;
  --bg-footer: #ededf1;
  --bg-dark: #0e0e11;
  --ink: #111114;
  --ink-muted: #5e5e68;
  --ink-subtle: #6b6b74;
  --border: #e6e6ea;
  --border-strong: #dadadf;
  --crimson: #cc043c;
  --crimson-hover: #a80332;
  --crimson-soft: #fbe9ee;
  --crimson-soft-ink: #9e0330;
  --wa-green: #25d366;
  --wa-soft: #effaf3;
  --wa-soft-hover: #e0f6e8;
  --wa-border: #bfebd0;
  --wa-ink: #17592c;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-soft: 0 18px 40px -26px rgba(16, 16, 20, 0.4);
  --shadow-float: 0 22px 48px -18px rgba(16, 16, 20, 0.28);
  --container-max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg-white);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 10000;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
}

/* Barra superior de anuncios */
.top-bar {
  background: var(--crimson);
  color: #fff;
  font-size: 12.5px;
  font-weight: 600;
  min-height: 34px;
  display: flex;
  align-items: center;
  transition: max-height 0.2s ease, opacity 0.2s ease;
  max-height: 44px;
  overflow: hidden;
}

.top-bar.is-hidden {
  max-height: 0;
  min-height: 0;
  opacity: 0;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 6px;
}

.top-bar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.top-bar-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.top-bar-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
}

.top-bar-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  white-space: nowrap;
}

/* Header sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 24px -18px rgba(16, 16, 20, 0.45);
}

.header-main {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding-block: 12px;
  transition: padding 0.2s ease;
}

.site-header.is-scrolled .header-main {
  padding-block: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.04em;
  transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.brand:hover .brand-mark {
  background: var(--crimson);
}

.site-header.is-scrolled .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 17px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.brand-text small {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}

/* Buscador predictivo */
.search-wrap {
  position: relative;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-ui);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 3px 4px 3px 14px;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-box:focus-within {
  background: var(--bg-white);
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(17, 17, 20, 0.06);
}

.search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  padding-block: 7px;
}

.search-submit {
  width: 38px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.search-submit:hover {
  background: var(--crimson);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 8px;
  z-index: 600;
  max-height: 380px;
  overflow-y: auto;
}

.search-dropdown-head {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
}

.search-item {
  width: 100%;
  border: 0;
  background: transparent;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.15s ease;
}

.search-item:hover {
  background: var(--bg-gray);
}

.search-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 10px;
  background: var(--bg-gray);
  mix-blend-mode: multiply;
}

.search-item-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.search-item-meta {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
}

.search-item-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--crimson);
}

/* Acciones del header */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-ui);
  color: var(--ink);
  display: none;
  place-items: center;
  cursor: pointer;
}

.wa-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 12px;
  background: var(--wa-soft);
  border: 1px solid var(--wa-border);
  color: var(--wa-ink);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wa-header-btn svg {
  color: var(--wa-green);
  flex-shrink: 0;
}

.wa-header-btn:hover {
  background: var(--wa-soft-hover);
  border-color: var(--wa-green);
}

.wa-header-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.wa-header-copy small {
  font-size: 10.5px;
  font-weight: 600;
}

.wa-header-copy strong {
  font-size: 13px;
  font-weight: 800;
}

.cart-header-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cart-header-btn:hover {
  background: var(--crimson);
}

.cart-header-total {
  font-size: 13.5px;
  font-weight: 800;
}

.cart-header-icon {
  display: inline-flex;
}

.cart-count-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 21px;
  height: 21px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  border: 2px solid var(--ink);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* Barra secundaria y mega-menú */
.nav-bar {
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.nav-bar-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 48px;
}

.mega-wrap {
  position: relative;
}

.mega-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 12px;
  background: var(--crimson);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.mega-trigger:hover {
  background: var(--crimson-hover);
}

.mega-trigger .chevron {
  transition: transform 0.18s ease;
}

.mega-trigger[aria-expanded='true'] .chevron {
  transform: rotate(180deg);
}

.mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(720px, calc(100vw - 32px));
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow-float);
  padding: 20px;
  z-index: 550;
  animation: mega-in 0.18s ease-out;
}

@keyframes mega-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.mega-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-gray);
  border: 1px solid transparent;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.mega-card:hover {
  background: var(--bg-white);
  border-color: var(--ink);
}

.mega-card strong {
  font-size: 14px;
  font-weight: 800;
}

.mega-card span {
  font-size: 12px;
  color: var(--ink-muted);
}

.mega-tag {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--crimson-soft);
  color: var(--crimson-soft-ink);
  margin-top: 4px;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links button,
.nav-links a {
  border: 0;
  background: transparent;
  padding: 12px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.nav-links button:hover,
.nav-links button.is-active,
.nav-links a:hover {
  color: var(--crimson);
  border-bottom-color: var(--crimson);
}

.nav-links .soon-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--bg-gray);
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 4px;
}

.nav-pill-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--crimson-soft);
  color: var(--crimson-soft-ink);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-pill-cta:hover {
  background: var(--crimson);
  color: #fff;
}

.nav-pill-cta .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Hero Slider */
.hero-section {
  background: var(--bg-gray);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.hero-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    transition: none;
  }
}

.hero-slide {
  flex: 0 0 100%;
  min-height: 360px;
  display: flex;
  align-items: center;
  padding-block: 34px;
  background: linear-gradient(125deg, #111114 0%, #232329 62%, #3a0b1a 100%);
  color: #fff;
}

.hero-slide.is-crimson {
  background: linear-gradient(125deg, #250510 0%, #7d0326 58%, #cc043c 100%);
}

.hero-slide-grid {
  width: min(100% - 32px, var(--container-max));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 28px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 0 22px;
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15.5px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-price {
  font-size: 26px;
  font-weight: 900;
}

.hero-btn {
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  padding: 12px 24px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.hero-btn:hover {
  background: var(--crimson);
  color: #fff;
  transform: translateY(-2px);
}

.hero-media {
  justify-self: center;
  width: min(300px, 75%);
  aspect-ratio: 1;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.hero-slide:hover .hero-media img {
  transform: scale(1.03);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  color: var(--crimson);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hero-arrow:hover {
  background: var(--crimson);
  color: #fff;
}

.hero-arrow.prev {
  left: 16px;
}

.hero-arrow.next {
  right: 16px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.hero-dot[aria-selected='true'] {
  width: 26px;
  background: var(--crimson);
}

/* Bandas alternadas */
.band {
  padding-block: 44px;
}

.band-white {
  background: var(--bg-white);
}

.band-gray {
  background: var(--bg-gray);
}

/* Categorías rápidas */
.quick-cats-section {
  padding-block: 26px;
  border-bottom: 1px solid var(--border);
}

.quick-cats {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 14px;
}

.quick-cat-item {
  border: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  color: var(--ink);
}

.quick-cat-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: 2px solid transparent;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-cat-circle img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.quick-cat-item:hover .quick-cat-circle,
.quick-cat-item.is-active .quick-cat-circle {
  transform: translateY(-3px);
  border-color: var(--crimson);
}

.quick-cat-label {
  font-size: 13px;
  font-weight: 700;
  transition: color 0.15s ease;
}

.quick-cat-item:hover .quick-cat-label,
.quick-cat-item.is-active .quick-cat-label {
  color: var(--crimson);
}

.quick-cat-soon {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-ui);
  color: var(--ink-muted);
}

/* Encabezado de sección */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 500;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  transition: color 0.15s ease;
}

.section-link:hover {
  color: var(--crimson);
}

/* Carrusel horizontal con scroll-snap */
.carousel-wrap {
  position: relative;
}

.product-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 48px) / 4);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 4px 10px;
}

.product-carousel::-webkit-scrollbar {
  display: none;
}

.product-carousel > .product-card {
  scroll-snap-align: start;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  z-index: 20;
  transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.carousel-btn:hover {
  background: var(--ink);
  color: #fff;
}

.carousel-btn.prev {
  left: -14px;
}

.carousel-btn.next {
  right: -14px;
}

/* Filtros y Grilla */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  border: 0;
  background: var(--bg-gray);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.filter-pill:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.filter-pill.is-active {
  background: var(--ink);
  color: #fff;
}

.sort-select {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.results-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Tarjetas de producto (estilo SmartMove) */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.band-gray .product-card {
  background: var(--bg-white);
}

.band-white .product-card {
  background: var(--bg-gray);
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.card-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #ffffff;
  padding: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  cursor: pointer;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.03);
}

.card-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.card-title {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
  cursor: pointer;
}

.card-specs-line {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.card-delivery {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--wa-ink);
  margin-bottom: 10px;
}

.card-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  margin-bottom: 12px;
}

.card-price {
  font-size: 18px;
  font-weight: 900;
  color: var(--crimson);
}

.card-price-note {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-cta-btn {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.product-card:hover .card-cta-btn,
.card-cta-btn:hover {
  background: var(--crimson);
}

.card-detail-btn {
  border: 1.5px solid var(--border-strong);
  border-radius: 999px;
  background: var(--bg-white);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.card-detail-btn:hover {
  border-color: var(--ink);
  background: var(--bg-white);
}

/* Pilares de confianza */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.trust-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crimson-soft);
  color: var(--crimson);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.trust-card h3 {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 800;
}

.trust-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* Banner oscuro diagonal */
.promo-dark-banner {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 34px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.promo-dark-banner::after {
  content: '';
  position: absolute;
  top: -30%;
  right: 12%;
  width: 140px;
  height: 170%;
  background: rgba(204, 4, 60, 0.24);
  transform: skewX(-12deg);
  pointer-events: none;
}

.promo-dark-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.promo-eyebrow {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(204, 4, 60, 0.25);
  color: #ff8aa8;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.promo-dark-content h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
}

.promo-dark-content p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.promo-dark-actions {
  position: relative;
  z-index: 1;
}

.promo-wa-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wa-green);
  color: #0b2615;
  font-size: 14px;
  font-weight: 800;
  padding: 13px 24px;
  border-radius: 999px;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.promo-wa-cta:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

/* Acordeón FAQ nativo (modern-web-guidance: accordion) */
.faq-container {
  max-width: 900px;
}

.accordion {
  display: grid;
  gap: 10px;
}

.accordion details {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 0 20px;
  border: 1px solid var(--border);
}

.accordion summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-block: 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.accordion summary::-webkit-details-marker {
  display: none;
}

.accordion summary::before {
  content: '';
  inline-size: 12px;
  block-size: 12px;
  flex-shrink: 0;
  background-color: var(--crimson);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center / contain;
  rotate: -90deg;
}

.accordion details[open] > summary::before {
  rotate: 0deg;
}

.accordion details::details-content {
  interpolate-size: allow-keywords;
  overflow: clip;
  contain: layout;
}

.accordion details:not([open])::details-content {
  block-size: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .accordion summary::before {
    transition: rotate 0.2s ease;
  }

  .accordion details::details-content {
    transition: block-size, content-visibility, display;
    transition-duration: 0.28s;
    transition-timing-function: ease-in-out;
    transition-behavior: allow-discrete;
  }
}

.faq-body {
  padding-bottom: 16px;
  color: var(--ink-muted);
  font-size: 14px;
}

.faq-body p {
  margin: 0;
}

/* Footer y Volver arriba */
.site-footer {
  background: var(--bg-footer);
  padding-block: 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-size: 17px;
  font-weight: 900;
}

.footer-copy {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 13.5px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--crimson);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 400;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--crimson);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-float);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top:hover {
  background: var(--crimson-hover);
  transform: translateY(-2px);
}

/* Contención de scroll obligatoria en modales (modern-web-guidance: dialog) */
dialog:modal {
  overscroll-behavior: contain;
}

dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
}

/* Botones reutilizables */
.circle-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-ui);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.circle-close-btn:hover {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.circle-close-btn.dark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.btn-primary-crimson {
  border: 0;
  border-radius: 999px;
  background: var(--crimson);
  color: #fff;
  font-size: 14.5px;
  font-weight: 800;
  padding: 13px 20px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary-crimson:hover {
  background: var(--crimson-hover);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  background: var(--wa-green);
  color: #0b2615;
  font-size: 14.5px;
  font-weight: 800;
  padding: 13px 20px;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.btn-whatsapp:hover {
  filter: brightness(0.95);
}

.stepper {
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-white);
  overflow: hidden;
}

.stepper button {
  width: 32px;
  height: 100%;
  border: 0;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.stepper button:hover:not(:disabled) {
  background: var(--bg-ui);
}

.stepper button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper span {
  min-width: 26px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 800;
}

/* Modal Buscador Móvil */
.mobile-search-dialog {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 20px;
  border: 0;
  background: rgba(14, 14, 17, 0.98);
  color: #fff;
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.2s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

.mobile-search-dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

@starting-style {
  .mobile-search-dialog[open]:where(:not([data-closing])) {
    opacity: 0;
  }
}

.mobile-search-inner {
  max-width: 600px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
}

.mobile-search-input {
  width: 100%;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 13px 16px;
  font-size: 15px;
  outline: none;
}

.mobile-search-results {
  display: grid;
  gap: 8px;
  max-height: 70dvh;
  overflow-y: auto;
}

.mobile-search-results .search-item {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.mobile-search-results .search-item-meta {
  color: rgba(255, 255, 255, 0.72);
}

/* Modal Ficha de Producto */
.product-dialog {
  width: min(1160px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  border: 0;
  border-radius: var(--radius-xl);
  padding: 0;
  background: var(--bg-white);
  color: var(--ink);
  box-shadow: var(--shadow-float);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .product-dialog {
    transform: scale(0.96);
  }
}

.product-dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .product-dialog[open]:where(:not([data-closing])) {
    transform: scale(1);
  }
}

@starting-style {
  .product-dialog[open]:where(:not([data-closing])) {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .product-dialog[open]:where(:not([data-closing])) {
      transform: scale(0.96);
    }
  }
}

.product-dialog::backdrop,
.lightbox-dialog::backdrop,
.cart-drawer::backdrop {
  background-color: rgba(0, 0, 0, 0);
  transition-property: background-color, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

.product-dialog[open]:where(:not([data-closing]))::backdrop,
.lightbox-dialog[open]:where(:not([data-closing]))::backdrop,
.cart-drawer[open]:where(:not([data-closing]))::backdrop {
  background-color: rgba(10, 10, 14, 0.5);
}

@starting-style {
  .product-dialog[open]:where(:not([data-closing]))::backdrop,
  .lightbox-dialog[open]:where(:not([data-closing]))::backdrop,
  .cart-drawer[open]:where(:not([data-closing]))::backdrop {
    background-color: rgba(0, 0, 0, 0);
  }
}

.pd-shell {
  position: relative;
  padding: 24px;
}

.pd-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 10;
}

.pd-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.pd-gallery {
  position: sticky;
  top: 16px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
}

.pd-thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pd-thumb-btn {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 2px solid transparent;
  background: var(--bg-gray);
  padding: 6px;
  cursor: pointer;
}

.pd-thumb-btn.is-active {
  border-color: var(--crimson);
}

.pd-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.pd-main-media {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--bg-gray);
  padding: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pd-main-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.25s ease;
}

.pd-main-media:hover img {
  transform: scale(1.04);
}

.pd-zoom-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.pd-meta-row {
  display: flex;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 6px;
}

.pd-title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.pd-delivery-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--wa-soft);
  color: var(--wa-ink);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}

.pd-delivery-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--wa-green);
}

.pd-desc {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-muted);
}

.pd-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 14px;
}

.pd-block h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.pd-specs {
  margin: 0;
  display: grid;
  gap: 7px;
}

.pd-spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  font-size: 13px;
}

.pd-spec-row dt {
  font-weight: 700;
  color: var(--ink-muted);
}

.pd-spec-row dd {
  margin: 0;
  font-weight: 600;
}

.pd-box-list {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-muted);
  display: grid;
  gap: 4px;
}

.pd-buy {
  position: sticky;
  top: 16px;
  background: var(--bg-gray);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.pd-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.pd-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
}

.pd-old-price {
  font-size: 15px;
  color: var(--ink-muted);
  text-decoration: line-through;
}

.pd-condition-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.pd-chip-green {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--wa-soft);
  color: var(--wa-ink);
  font-size: 11.5px;
  font-weight: 800;
}

.pd-stock {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-muted);
}

.pd-label {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.pd-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-pill {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--ink);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.variant-pill.is-selected {
  border-color: var(--crimson);
  background: var(--crimson-soft);
  color: var(--crimson-soft-ink);
}

.pd-qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pd-qty-row .pd-label {
  margin: 0;
}

.pd-add-btn,
.pd-wa-btn {
  width: 100%;
}

.pd-buy-note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: center;
}

/* Lightbox */
.lightbox-dialog {
  border: 0;
  padding: 20px;
  border-radius: 18px;
  background: var(--bg-white);
  max-width: min(760px, calc(100vw - 24px));
  opacity: 0;
  transition-property: opacity, display, overlay;
  transition-duration: 0.2s;
  transition-behavior: allow-discrete;
}

.lightbox-dialog[open]:where(:not([data-closing])) {
  opacity: 1;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.lightbox-dialog img {
  max-height: 78dvh;
  object-fit: contain;
}

/* Drawer lateral del Carrito (modern-web-guidance: dialog + animate-to-from-top-layer) */
.cart-drawer {
  inset: 0 0 0 auto;
  width: min(420px, 100vw);
  height: 100svh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--bg-white);
  color: var(--ink);
  box-shadow: -14px 0 36px rgba(10, 10, 14, 0.2);
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.28s;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .cart-drawer {
    transform: translateX(100%);
  }
}

.cart-drawer[open]:where(:not([data-closing])) {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .cart-drawer[open]:where(:not([data-closing])) {
    transform: translateX(0);
  }
}

@starting-style {
  .cart-drawer[open]:where(:not([data-closing])) {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .cart-drawer[open]:where(:not([data-closing])) {
      transform: translateX(100%);
    }
  }
}

.cart-drawer[open] .cart-sheet {
  display: grid;
}

.cart-sheet {
  height: 100svh;
  grid-template-rows: auto 1fr auto;
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-head h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 900;
}

.cart-count-text {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

.cart-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-empty {
  text-align: center;
  padding: 40px 12px;
  color: var(--ink-muted);
}

.cart-empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 6px;
}

.cart-items {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  background: var(--bg-gray);
}

.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  mix-blend-mode: multiply;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cart-item-title {
  font-size: 13.5px;
  font-weight: 800;
  line-height: 1.25;
}

.cart-item-variant {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

.cart-remove-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.cart-remove-btn:hover {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.cart-item-subtotal {
  font-size: 14.5px;
  font-weight: 900;
}

.cart-upsell {
  background: #fafafb;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.cart-upsell-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.cart-upsell-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
}

.cart-upsell-row img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
  mix-blend-mode: multiply;
}

.cart-upsell-title {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
}

.cart-upsell-price {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--crimson);
}

.cart-upsell-add {
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  cursor: pointer;
}

.cart-upsell-add:hover {
  background: var(--crimson);
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  background: var(--bg-white);
  box-shadow: 0 -10px 24px -18px rgba(0, 0, 0, 0.25);
  display: grid;
  gap: 12px;
}

.cart-note-wrap label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  margin-bottom: 5px;
}

.cart-note-wrap input {
  width: 100%;
  border: 1.5px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13px;
}

.cart-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-total-row span {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-muted);
}

.cart-total-row strong {
  font-size: 22px;
  font-weight: 900;
}

.cart-wa-submit {
  width: 100%;
  border-radius: 12px;
  min-height: 48px;
}

.cart-wa-submit[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}

.cart-clear-btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  justify-self: center;
}

.cart-clear-btn:hover {
  color: var(--crimson);
}

/* Barra inferior móvil */
.mobile-cart-bar {
  display: none;
}

/* Toast popover manual (modern-web-guidance: persistent-toast-notifications) */
.toast-region {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 900;
}

.cart-toast {
  position: fixed;
  inset: auto 16px 16px auto;
  margin: 0;
  width: min(390px, calc(100vw - 32px));
  background: var(--bg-white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  padding: 12px 14px;
  gap: 12px;
  align-items: center;
  opacity: 0;
  transition-property: opacity, transform, display, overlay;
  transition-duration: 0.24s;
  transition-timing-function: ease-out;
  transition-behavior: allow-discrete;
}

@media (prefers-reduced-motion: no-preference) {
  .cart-toast {
    transform: translateY(14px);
  }
}

.cart-toast:is(:popover-open, .\:popover-open) {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  .cart-toast:is(:popover-open, .\:popover-open) {
    transform: translateY(0);
  }
}

@starting-style {
  .cart-toast:is(:popover-open, .\:popover-open) {
    opacity: 0;
  }

  @media (prefers-reduced-motion: no-preference) {
    .cart-toast:is(:popover-open, .\:popover-open) {
      transform: translateY(14px);
    }
  }
}

@supports not selector(:popover-open) {
  [popover]:not(.\:popover-open) {
    display: none;
  }
}

.cart-toast img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--bg-gray);
  mix-blend-mode: multiply;
}

.toast-content strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
}

.toast-content span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.toast-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toast-btn-primary,
.toast-btn-secondary {
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 11px;
  cursor: pointer;
}

.toast-btn-primary {
  border: 0;
  background: var(--crimson);
  color: #fff;
}

.toast-btn-secondary {
  border: 1px solid var(--border-strong);
  background: var(--bg-white);
  color: var(--ink);
}

.toast-close {
  align-self: start;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-muted);
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .product-dialog,
  .lightbox-dialog,
  .cart-drawer,
  .mobile-search-dialog,
  .cart-toast {
    transition-duration: 0.1s;
  }
}

/* Responsivo */
@media (max-width: 1120px) {
  .product-carousel {
    grid-auto-columns: calc((100% - 32px) / 3);
  }

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

  .pd-grid {
    grid-template-columns: 1fr;
  }

  .pd-gallery,
  .pd-buy {
    position: static;
  }

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

@media (max-width: 860px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }

  .search-wrap,
  .wa-header-btn,
  .nav-pill-cta {
    display: none;
  }

  .icon-btn {
    display: grid;
  }

  .hero-slide-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta-row {
    justify-content: center;
  }

  .hero-media {
    width: min(230px, 65%);
  }

  .quick-cats {
    grid-template-columns: repeat(5, minmax(105px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-carousel {
    grid-auto-columns: 68%;
  }

  .carousel-btn {
    display: none;
  }

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

  .mobile-cart-bar:not([hidden]) {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 450;
    background: var(--ink);
    color: #fff;
    border-radius: 16px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: var(--shadow-float);
  }

  .mobile-cart-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
  }

  .mobile-cart-info strong {
    font-size: 12.5px;
  }

  .mobile-cart-info span {
    font-size: 15px;
    font-weight: 900;
  }

  .mobile-cart-open {
    padding: 9px 16px;
    font-size: 13px;
  }

  .back-to-top {
    bottom: 86px;
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .pd-gallery {
    grid-template-columns: 1fr;
  }

  .pd-thumbs {
    flex-direction: row;
    order: 2;
  }
}
