/* Storefront contract v1 - external test UI (vanilla, no build step). */

:root {
  --primary: #7c3aed;
  --secondary: #a855f7;
  --primary-soft: #f2ecff;
  --primary-soft: color-mix(in srgb, var(--primary) 10%, white);
  --primary-line: #ddd0f8;
  --primary-line: color-mix(in srgb, var(--primary) 22%, white);
  --primary-dark: #6d28d9;
  --primary-dark: color-mix(in srgb, var(--primary) 84%, black);
  --bg: #f8f7fc;
  --surface: #ffffff;
  --text: #241a38;
  --muted: #6f687e;
  --border: #ece8f3;
  --radius: 14px;
  --shadow: 0 18px 45px rgba(46, 16, 101, 0.1);
  --font: Inter;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  /* Reserva el espacio de la barra de scroll siempre: al filtrar y acortar la
     página, el ancho del layout ya no salta ~15px (y las tarjetas no cambian). */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font), Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

a {
  color: var(--primary);
}

svg {
  display: block;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.header-inner {
  padding: 14px 28px;
  display: grid;
  grid-template-columns: minmax(210px, auto) minmax(260px, 880px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: auto;
  height: 48px;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
}

.brand.has-logo {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.brand.has-logo .brand-copy {
  margin-top: 0;
}

.brand-fallback {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 24%, transparent);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.header-search svg {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #9b94a8;
  pointer-events: none;
}

.header-search input {
  width: 100%;
  height: 42px;
  padding: 0 16px 0 43px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #faf9fd;
  color: var(--text);
  font-size: 0.84rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.header-search input::placeholder {
  color: #a29bad;
}

.header-search input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent);
}

.header-search input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.header-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #4c455c;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.header-action svg {
  width: 18px;
  height: 18px;
}

.header-action:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.account-wrap {
  position: relative;
}

.account-chevron {
  width: 13px !important;
  height: 13px !important;
  color: var(--muted);
}

.account-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 36;
  width: 202px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}

.account-menu button,
.account-menu a {
  display: block;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}

.account-menu button:hover,
.account-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.cart-button {
  padding: 0 13px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 26%, transparent);
}

.cart-button:hover {
  background: var(--primary-dark);
  color: #fff;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 0.67rem;
  font-weight: 800;
}

.mobile-menu-button {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
}

.mobile-menu-button svg {
  width: 22px;
  height: 22px;
}

.nav-bar {
  border-top: 1px solid var(--border);
  background: #fff;
}

.nav-inner {
  min-height: 50px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #575064;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  width: 15px;
  height: 15px;
}

.nav-item .nav-chevron {
  width: 12px;
  height: 12px;
}

.nav-item:hover,
.nav-item.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-item-categories {
  padding-left: 8px;
  color: var(--text);
}

.nav-item.is-demo {
  color: #817a8e;
}

.nav-badges {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 0 0 auto;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #575064;
  font-size: 0.71rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-badge-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-badge-icon svg {
  width: 15px;
  height: 15px;
}

.app {
  width: 100%;
  padding: 24px 28px 0;
}

.store-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.store-layout.is-services {
  grid-template-columns: minmax(0, 1fr);
}

.store-main {
  min-width: 0;
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52vh;
  color: var(--muted);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid var(--primary-line);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-panel,
.prompt-panel {
  width: min(520px, 100%);
  margin: 8vh auto;
  padding: clamp(24px, 5vw, 40px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.error-icon,
.prompt-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.error-icon svg,
.prompt-icon svg {
  width: 28px;
  height: 28px;
}

.error-panel h1,
.prompt-panel h1 {
  margin: 0 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.025em;
}

.error-panel p,
.prompt-panel p {
  margin: 0 auto 18px;
  max-width: 42ch;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-panel code {
  display: block;
  margin-bottom: 18px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #faf9fd;
  color: var(--muted);
  font-size: 0.74rem;
  word-break: break-all;
}

.prompt-panel .search-input {
  margin-bottom: 10px;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.65rem 1.2rem;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  transition: background 0.15s ease, transform 0.15s ease;
}

.primary-button:hover {
  background: var(--primary-dark);
}

.primary-button:active {
  transform: translateY(1px);
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #faf9fd;
  color: var(--text);
  font-size: 0.86rem;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent);
}

.hero {
  position: relative;
  display: block;
  min-height: clamp(302px, 22vw, 430px);
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(circle at 74% 18%, rgba(255, 255, 255, 0.75) 0, rgba(255, 255, 255, 0) 34%),
    linear-gradient(126deg, #f1eaff 0%, #faf7ff 48%, #efe3ff 100%);
  box-shadow: 0 16px 38px rgba(76, 29, 149, 0.08);
  isolation: isolate;
}

.hero-slides {
  display: grid;
}

/* Carrusel: cada diapositiva es la imagen del payload a sangre completa, así que
   el hero adopta la proporción de los banners (1226×217) con un tope de altura
   para no crecer en pantallas ultrawide. El banner clásico conserva su
   `min-height` de siempre. */
.hero.is-carousel {
  aspect-ratio: 1226 / 217;
  max-height: 330px;
  min-height: 0;
}

.hero.is-carousel .hero-slides {
  position: absolute;
  inset: 0;
  grid-template-rows: 100%;
}

/* Sin imágenes el carrusel cae al panel de relleno: recupera algo de altura. */
.hero.is-carousel.is-empty {
  aspect-ratio: auto;
  min-height: clamp(200px, 22vw, 280px);
}

.hero.is-carousel .hero-slide {
  position: relative;
  display: block;
}

.hero-slide-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* El copy de los banners está a la izquierda: se ancla ahí para que el recorte
     lateral de las diapositivas más panorámicas se coma solo el arte de la
     derecha y nunca las letras. */
  object-position: left center;
}

/* Botón invisible que hace clickeable el CTA dibujado dentro del banner. */
.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero-slide-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -4px;
}

.hero-slide-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--primary) 26%, white);
  background:
    radial-gradient(circle at 70% 42%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, #f3edff, #eadcff);
}

.hero-slide-empty svg {
  width: 110px;
  height: 110px;
  opacity: 0.5;
}

/* Las diapositivas se apilan en la misma celda del grid para que el hero
   conserve la altura de la más alta. El banner clásico usa esa celda con dos
   columnas (copy + foto); las diapositivas del carrusel la sobrescriben con
   `display: block` porque son una sola imagen a sangre. */
.hero-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  align-self: center;
  padding: clamp(28px, 4.2vw, 52px);
}

.hero-eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 15ch;
  color: #221735;
  font-size: clamp(2rem, 3.3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
}

.hero-subtitle {
  margin: 13px 0 0 !important;
  max-width: 40ch;
  color: #655a77;
  font-size: 0.92rem !important;
  line-height: 1.55;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  padding: 11px 19px;
  border: 0;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 24%, transparent);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
}

.hero-cta:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.hero-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* El velo solo aplica a la foto a sangre: el arte circular va sobre lavanda. */
.hero-visual[data-media="photo"]::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, #f6f1ff 0%, rgba(246, 241, 255, 0) 32%);
  pointer-events: none;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--primary) 26%, white);
  background:
    radial-gradient(circle at 70% 42%, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0) 30%),
    linear-gradient(135deg, #f3edff, #eadcff);
}

.hero-placeholder svg {
  width: 150px;
  height: 150px;
  opacity: 0.5;
}

.hero-paw,
.hero-spark {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--primary) 30%, white);
  pointer-events: none;
}

.hero-paw-one {
  top: 20px;
  right: 32px;
  transform: rotate(18deg);
}

.hero-paw-one svg {
  width: 24px;
  height: 24px;
}

.hero-paw-two {
  bottom: 22px;
  right: 70px;
  transform: rotate(-14deg);
}

.hero-paw-two svg {
  width: 18px;
  height: 18px;
}

.hero-spark {
  top: 28px;
  left: 34px;
  color: color-mix(in srgb, var(--primary) 38%, white);
}

.hero-spark svg {
  width: 19px;
  height: 19px;
}

.hero-corner-paw {
  position: absolute;
  left: 20px;
  bottom: 16px;
  z-index: 1;
  color: rgba(124, 58, 237, 0.1);
  pointer-events: none;
}

.hero-corner-paw svg {
  width: 70px;
  height: 70px;
}

/* ---- Carrusel del hero ---------------------------------------------------- */

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--primary-line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(76, 29, 149, 0.16);
  transition: background 0.15s ease, color 0.15s ease;
}

.hero-arrow:hover {
  background: var(--primary);
  color: #fff;
}

.hero-arrow svg {
  width: 16px;
  height: 16px;
}

.hero-arrow-prev svg {
  transform: rotate(90deg);
}

.hero-arrow-next svg {
  transform: rotate(-90deg);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--primary) 42%, white);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.15s ease, transform 0.15s ease;
}

.hero-dot:hover {
  background: rgba(255, 255, 255, 0.95);
}

.hero-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

/* Los controles flotan sobre la foto del banner: se agrupan en una pastilla
   translúcida para que flechas y puntos se lean sobre cualquier imagen. */
.hero.is-carousel .hero-controls {
  bottom: 10px;
  padding: 4px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(31, 17, 62, 0.18);
  backdrop-filter: blur(8px);
}

.hero.is-carousel .hero-arrow {
  width: 26px;
  height: 26px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.hero.is-carousel .hero-arrow:hover {
  background: var(--primary);
}

.hero.is-carousel .hero-arrow svg {
  width: 14px;
  height: 14px;
}

.hero.is-carousel .hero-dot {
  border-color: transparent;
  background: color-mix(in srgb, var(--primary) 26%, #fff);
}

.hero.is-carousel .hero-dot:hover {
  background: color-mix(in srgb, var(--primary) 45%, #fff);
}

.hero.is-carousel .hero-dot.is-active {
  background: var(--primary);
}

.category-strip-wrap {
  margin: 20px 0 24px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
  gap: 10px;
}

.category-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #4f485c;
  font-size: 0.76rem;
  font-weight: 600;
  min-width: 0;
}

/* La franja de categorías usa iconos al 70 % del tamaño original (62px -> 43px)
   para que la banda no compita con el hero ni con las tarjetas del catálogo. */
.category-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 5px 14px rgba(46, 16, 101, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.category-icon svg {
  width: 18px;
  height: 18px;
}

.category-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.category-circle:hover .category-icon,
.category-circle.is-active .category-icon {
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 16%, transparent);
}

.category-circle.is-active .category-label {
  color: var(--primary);
  font-weight: 700;
}

.filters-panel {
  position: sticky;
  top: 138px;
  align-self: start;
  max-height: calc(100vh - 154px);
  overflow-y: auto;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(46, 16, 101, 0.035);
  scrollbar-width: thin;
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
}

.filters-header h2 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.filters-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.clear-filters {
  padding: 4px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.clear-filters:hover {
  background: var(--primary-soft);
}

.filter-close {
  display: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  background: #faf9fd;
  color: var(--muted);
}

.filter-close svg {
  width: 16px;
  height: 16px;
}

.filter-section {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.filter-section + .filter-section {
  margin-top: 14px;
}

.filter-title {
  margin: 0 0 10px;
  color: #7c748a;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.price-range {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.price-field {
  display: grid;
  gap: 4px;
  color: #8b8398;
  font-size: 0.63rem;
  font-weight: 600;
}

.price-field input {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #faf9fd;
  color: var(--text);
  font-size: 0.74rem;
}

.price-field input:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.sort-select {
  width: 100%;
  min-height: 35px;
  padding: 0 28px 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background-color: #faf9fd;
  color: var(--text);
  font-size: 0.74rem;
  cursor: pointer;
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.filter-options {
  display: grid;
  gap: 2px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 6px;
  color: #575064;
  font-size: 0.75rem;
  cursor: pointer;
}

.filter-option:hover {
  background: #faf9fd;
}

.filter-option input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--primary);
  flex: 0 0 auto;
}

.filter-option-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-count {
  color: #a29bad;
  font-size: 0.66rem;
  font-variant-numeric: tabular-nums;
}

.filter-badges {
  display: grid;
  gap: 10px;
}

.filter-badges .filter-title {
  margin-bottom: 0;
}

.filter-badge {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.filter-badge-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
}

.filter-badge-icon svg {
  width: 16px;
  height: 16px;
}

.filter-badge strong {
  display: block;
  color: #4d465b;
  font-size: 0.71rem;
  font-weight: 700;
  line-height: 1.3;
}

.filter-badge small {
  display: block;
  color: #928a9f;
  font-size: 0.64rem;
  line-height: 1.35;
}

.catalog {
  scroll-margin-top: 140px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.catalog-toolbar-left,
.catalog-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
}

.open-filters-button {
  display: none;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 700;
}

.open-filters-button svg {
  width: 15px;
  height: 15px;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #847c91;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
}

.sort-control .sort-select {
  width: auto;
  min-width: 148px;
  background: #fff;
}

.view-toggle {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}

.view-button {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 0;
  background: transparent;
  color: #a29bad;
}

.view-button + .view-button {
  border-left: 1px solid var(--border);
}

.view-button svg {
  width: 15px;
  height: 15px;
}

.view-button:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

.view-button.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.product-grid {
  display: grid;
  /* auto-fill (no auto-fit): conserva las columnas vacías, así el ancho de la tarjeta
     depende solo del contenedor y NO del número de resultados. Con auto-fit, filtrar
     a 2-3 productos colapsaba las columnas y estiraba las tarjetas a todo el ancho. */
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  /* Todas las filas comparten la altura de la tarjeta más alta: al cambiar la
     búsqueda o la categoría las tarjetas ya no cambian de alto. */
  grid-auto-rows: 1fr;
  gap: 16px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(46, 16, 101, 0.035);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-line);
  box-shadow: 0 14px 30px rgba(46, 16, 101, 0.1);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fbfaff;
}

.product-media img {
  width: 100%;
  height: 100%;
  padding: 8px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-fallback {
  display: grid;
  place-items: center;
  gap: 2px;
  color: var(--primary);
  opacity: 0.55;
}

.product-fallback svg {
  width: 40px;
  height: 40px;
}

.product-fallback span {
  font-size: 0.8rem;
  font-weight: 800;
}

.product-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 7px;
  border-radius: 5px;
  background: var(--primary);
  color: #fff;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.product-badge.is-warn {
  background: #e8a317;
}

.product-badge.is-danger {
  background: #dc2626;
}

.product-badge.is-best {
  background: #0f9f6e;
}

.favorite-button {
  position: absolute;
  right: 9px;
  top: 9px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #a29bad;
  box-shadow: 0 3px 8px rgba(46, 16, 101, 0.06);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.favorite-button svg {
  width: 16px;
  height: 16px;
}

.favorite-button:hover {
  color: #ef4444;
  border-color: #fecaca;
  transform: scale(1.05);
}

.favorite-button.is-active {
  color: #ef4444;
  border-color: #fecaca;
  background: #fff1f2;
}

.favorite-button.is-active svg {
  fill: currentColor;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 13px;
}

.product-name {
  margin: 0;
  min-height: 2.55em;
  color: #2d2340;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  margin: 0;
  min-height: 2em;
  color: #8b8398;
  font-size: 0.72rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 17px;
}

.stars {
  display: flex;
  align-items: center;
  gap: 1px;
  color: #f4b41a;
}

.star svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1;
}

.star.is-empty svg {
  fill: none;
  color: #d8d2e2;
  stroke: currentColor;
}

.rating-text {
  color: #9a92a6;
  font-size: 0.67rem;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 1px;
}

.product-price {
  color: #2a203c;
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.product-compare {
  color: #a8a0b4;
  font-size: 0.7rem;
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}

.stock-line {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #159567;
  font-size: 0.68rem;
  font-weight: 600;
}

.stock-line.is-out {
  color: #c22b2b;
}

.stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 13%, transparent);
}

.stock-units {
  color: #9a92a6;
  font-weight: 500;
}

.add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 35px;
  /* Ancla el botón al pie de la tarjeta: todas quedan visualmente idénticas aunque
     el nombre o la descripción ocupen una o dos líneas. */
  margin-top: auto;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: var(--primary);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.add-button svg {
  width: 14px;
  height: 14px;
}

.add-button:hover:not(:disabled) {
  background: var(--primary-dark);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--primary) 24%, transparent);
}

.add-button:disabled {
  background: #eeeaf4;
  color: #9d95a9;
  box-shadow: none;
}

.product-grid.view-list {
  grid-template-columns: 1fr;
}

.product-grid.view-list .product-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
}

.product-grid.view-list .product-media {
  aspect-ratio: auto;
  min-height: 170px;
}

.product-grid.view-list .product-name {
  min-height: 0;
}

.product-grid.view-list .add-button {
  max-width: 200px;
}

.empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 24px;
  border: 1px dashed var(--primary-line);
  border-radius: 15px;
  background: #fff;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.empty-icon svg {
  width: 26px;
  height: 26px;
}

.empty-state h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.empty-state p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.8rem;
}

.empty-button {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--primary-line);
  border-radius: 7px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 700;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(46, 16, 101, 0.035);
}

.service-media {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fbfaff;
  color: var(--primary);
  font-size: 2rem;
  font-weight: 800;
}

.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
}

.service-body h3 {
  margin: 0;
  font-size: 0.94rem;
}

.service-description {
  margin: 0;
  flex: 1;
  color: var(--muted);
  font-size: 0.76rem;
}

.service-price {
  color: var(--primary);
  font-size: 0.94rem;
  font-weight: 800;
}

.contact-list {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.contact-chip {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 0.72rem;
}

.page-scrim,
.filters-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(27, 18, 44, 0.46);
  backdrop-filter: blur(2px);
}

.filters-backdrop {
  z-index: 52;
}

.cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100vh;
  height: 100dvh;
  border-left: 1px solid var(--border);
  background: #fff;
  box-shadow: -24px 0 55px rgba(27, 18, 44, 0.2);
  animation: cart-in 0.2s ease-out;
}

@keyframes cart-in {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cart-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #faf9fd;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.icon-button:hover {
  color: var(--text);
  background: #f3f0f9;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 52px 10px;
  color: var(--muted);
  text-align: center;
}

.cart-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
}

.cart-empty-icon svg {
  width: 25px;
  height: 25px;
}

.cart-empty p {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
}

.cart-empty small {
  font-size: 0.73rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-thumb {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fbfaff;
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-name {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item-price {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.7rem;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
}

.qty-button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  line-height: 1;
}

.qty-button:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.qty-value {
  min-width: 20px;
  color: var(--text);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.cart-line-total {
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.cart-footer {
  padding: 14px 20px 20px;
  border-top: 1px solid var(--border);
  background: #fdfcff;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
}

.cart-total strong {
  font-size: 1.1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.checkout {
  display: grid;
  gap: 8px;
}

.checkout label {
  display: grid;
  gap: 3px;
  color: #7c748a;
  font-size: 0.68rem;
  font-weight: 600;
}

.checkout input,
.checkout textarea {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
  resize: vertical;
}

.checkout input:focus,
.checkout textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkout .primary-button {
  width: 100%;
  margin-top: 3px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 40px));
  padding: 11px 14px;
  border-radius: 9px;
  background: #241a38;
  color: #fff;
  box-shadow: 0 16px 34px rgba(27, 18, 44, 0.28);
  font-size: 0.79rem;
  font-weight: 500;
  animation: toast-in 0.18s ease-out;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.toast.is-error {
  background: #b91c1c;
}

.site-footer {
  margin-top: 38px;
  padding: 18px 0 25px;
  border-top: 1px solid var(--border);
  color: #928a9f;
  font-size: 0.7rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: #817a8e;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

@media (min-width: 1024px) {
  .filters-backdrop {
    display: none !important;
  }
}

@media (max-width: 1160px) {
  .nav-badge-text {
    display: none;
  }

  .nav-badges {
    gap: 10px;
  }
}

@media (max-width: 1023px) {
  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    padding: 10px 16px;
  }

  .header-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .account-label,
  .account-chevron {
    display: none;
  }

  .account-button {
    width: 40px;
    padding: 0;
  }

  .mobile-menu-button {
    display: grid;
  }

  .nav-bar {
    display: none;
  }

  .nav-bar.is-open {
    display: block;
  }

  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 12px;
  }

  .primary-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .nav-badges {
    display: none;
  }

  .store-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .filters-panel {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 53;
    width: min(320px, 86vw);
    height: 100%;
    max-height: none;
    border-radius: 0 16px 16px 0;
    box-shadow: 18px 0 45px rgba(27, 18, 44, 0.18);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    pointer-events: none;
  }

  .filters-panel.is-open {
    transform: translateX(0);
    pointer-events: auto;
  }

  .filter-close {
    display: grid;
  }

  .open-filters-button {
    display: inline-flex;
  }

  .hero-slide {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Carrusel: en tablet el hero pasa a altura fija para que el banner siga
     leyéndose sin ocupar media pantalla. */
  .hero.is-carousel {
    aspect-ratio: auto;
    height: clamp(185px, 26vw, 240px);
    max-height: none;
  }

  .hero-controls {
    bottom: 10px;
  }

  .hero-copy {
    padding: 28px 24px 24px;
  }

  .hero h1 {
    max-width: 19ch;
  }

  .hero-visual {
    min-height: 238px;
  }

  .hero-visual[data-media="photo"]::after {
    background: linear-gradient(180deg, #f6f1ff 0%, rgba(246, 241, 255, 0) 24%);
  }

  .hero-corner-paw {
    display: none;
  }

  .category-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .category-strip::-webkit-scrollbar {
    display: none;
  }

  .category-circle {
    flex: 0 0 88px;
  }

  .catalog-toolbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  .product-grid.view-list .product-card {
    grid-template-columns: 145px minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .app {
    padding: 14px 14px 0;
  }

  .header-inner {
    gap: 8px;
    padding: 9px 14px;
  }

  .header-actions {
    gap: 2px;
  }

  .account-button {
    display: none;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    height: 34px;
    max-width: 160px;
  }

  .brand.has-logo .brand-logo {
    height: 30px;
    max-width: 140px;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-name {
    font-size: 0.9rem;
  }

  .cart-button {
    padding: 0 10px;
  }

  .mobile-menu-button {
    width: 36px;
  }

  .brand-fallback {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-size: 1rem;
  }

  .brand-tagline {
    display: none;
  }

  .header-search input {
    height: 38px;
    font-size: 0.8rem;
  }

  .hero-copy {
    padding: 24px 20px 22px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(1.5rem, 7.4vw, 1.95rem);
  }

  .hero-cta {
    margin-top: 16px;
  }

  .hero-subtitle {
    font-size: 0.82rem !important;
  }

  .hero-visual {
    min-height: 198px;
  }

  .hero.is-carousel {
    height: clamp(165px, 30vw, 200px);
  }

  .hero.is-carousel .hero-controls {
    bottom: 6px;
    padding: 3px 5px;
    gap: 6px;
  }

  .hero-controls {
    bottom: 8px;
    gap: 8px;
  }

  .hero-arrow {
    width: 30px;
    height: 30px;
  }

  .hero-arrow svg {
    width: 14px;
    height: 14px;
  }

  .hero-paw-one,
  .hero-paw-two {
    display: none;
  }

  .category-circle {
    flex-basis: 78px;
    font-size: 0.69rem;
  }

  .category-icon {
    width: 39px;
    height: 39px;
  }

  .category-icon svg {
    width: 16px;
    height: 16px;
  }

  .sort-control > span {
    display: none;
  }

  .sort-control .sort-select {
    min-width: 130px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-grid.view-list {
    grid-template-columns: 1fr;
  }

  .product-grid.view-list .product-card {
    grid-template-columns: 116px minmax(0, 1fr);
  }

  .product-media img {
    padding: 5px;
  }

  .product-body {
    padding: 10px;
  }

  .product-name {
    font-size: 0.82rem;
  }

  .product-description {
    font-size: 0.68rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .add-button {
    font-size: 0.71rem;
  }

  .cart {
    width: 100%;
    border-left: 0;
  }

  .checkout-row {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 12px;
    bottom: 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
