:root {
  --blue-950: #042847;
  --blue-900: #063a6b;
  --blue-800: #0a4d8c;
  --blue-700: #1360a8;
  --blue-500: #2b7fc4;
  --blue-100: #d7e8f7;
  --blue-50: #eef5fb;
  --red-700: #b91c1c;
  --red-600: #d62828;
  --red-500: #e63939;
  --red-50: #fdecec;
  --ink: #0f1c2e;
  --muted: #5a6b7d;
  --line: rgba(15, 28, 46, 0.1);
  --surface: #f4f8fc;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(6, 58, 107, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --font-display: "Outfit", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(43, 127, 196, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(214, 40, 40, 0.08), transparent 45%),
    linear-gradient(180deg, #eaf3fb 0%, var(--surface) 28%, #f7fafc 100%);
  min-height: 100vh;
  line-height: 1.5;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: none;
  background: var(--blue-800);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
}

.header-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--blue-900);
  border-radius: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  max-width: min(220px, 42vw);
}

.brand-logo {
  display: block;
  height: 48px;
  width: auto;
  max-width: 100%;
  max-height: 48px;
  object-fit: contain;
  object-position: left center;
}

@media (max-width: 640px) {
  .brand {
    max-width: min(160px, 48vw);
  }
  .brand-logo {
    height: 40px;
    max-height: 40px;
  }
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--blue-800), var(--blue-500));
  color: white;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px rgba(10, 77, 140, 0.35);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--blue-900);
}

.brand-text span {
  color: var(--red-600);
}

.search-wrap {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-overlay-panel {
  width: 100%;
  position: relative;
}

.search-overlay-head {
  display: none;
}

.search-close {
  display: none;
}

.search-toggle {
  display: none !important;
  flex-shrink: 0;
}

.search-form {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  background: white;
  border: 1px solid transparent;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  width: 100%;
}

.search-wrap.is-open {
  grid-column: auto;
  justify-self: center;
  order: unset;
}

.search-form select,
.search-form input {
  border: 0;
  background: transparent;
  padding: 0.75rem 1rem;
  outline: none;
  color: var(--ink);
}

.search-form select {
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.search-form button,
.search-submit {
  border: 0;
  background: var(--red-600);
  color: white;
  padding: 0 1.25rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.92rem;
}

.search-form button:hover,
.search-submit:hover {
  background: #b91c1c;
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: white;
}

.brand-text span {
  color: #ffb4b4;
}

.header-actions .icon-btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: white;
}

.header-actions .icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: rgba(255, 255, 255, 0.35);
}

.header-actions .cart-btn {
  background: var(--red-600);
  border-color: transparent;
}

.header-actions .cart-btn:hover {
  background: #b91c1c;
  color: white;
}

.nav-bar .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.nav-bar .nav-link:hover,
.nav-bar .nav-link.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.menu-toggle {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
  background: white;
}

.search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.4rem);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  display: none;
  overflow: hidden;
  z-index: 50;
}

.search-suggest.open {
  display: block;
}

.search-suggest a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.search-suggest a span {
  color: var(--ink);
}

.search-suggest a strong {
  color: var(--blue-900);
}

.search-suggest a:hover,
.search-suggest a:focus {
  background: var(--blue-50);
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-self: end;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  transition: 0.2s ease;
}

.icon-btn.icon-only {
  width: 44px;
  height: 44px;
  padding: 0;
  justify-content: center;
  border-radius: 14px;
}

.icon-btn:hover {
  border-color: var(--blue-500);
  color: var(--blue-800);
}

.cart-btn {
  position: relative;
  background: var(--blue-800);
  color: white;
  border-color: transparent;
}

.cart-btn:hover {
  background: var(--blue-900);
  color: white;
}

.cart-bubble {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--red-600);
  color: white;
  font-size: 0.72rem;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.nav-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  overflow-x: visible;
  padding: 0 0 0.75rem;
  scrollbar-width: none;
}

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

.desktop-nav.nav-bar {
  justify-content: center;
  text-align: center;
}

.nav-link {
  white-space: nowrap;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.nav-link:hover,
.nav-link.active {
  background: var(--blue-50);
  color: var(--blue-800);
}

.messages {
  width: min(100% - 2rem, var(--container));
  margin: 1rem auto 0;
  display: grid;
  gap: 0.5rem;
}

.message {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: white;
  border: 1px solid var(--line);
  animation: rise 0.45s ease both;
}

.message.success {
  border-color: rgba(19, 96, 168, 0.35);
  background: var(--blue-50);
}

.message.error {
  border-color: rgba(214, 40, 40, 0.35);
  background: var(--red-50);
}

.hero {
  position: relative;
  min-height: min(78vh, 680px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: white;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(120deg, rgba(4, 40, 71, 0.88) 12%, rgba(10, 77, 140, 0.55) 55%, rgba(214, 40, 40, 0.35) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 40 40'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h20v20H0zm20 20h20v20H20z'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(135deg, #063a6b, #0a4d8c 45%, #1a6fb5);
  background-size: cover, 80px 80px, cover;
  transform: scale(1.04);
  animation: kenburns 18s ease-in-out infinite alternate;
}

.hero-content {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 1rem;
  animation: rise 0.7s ease both;
}

.hero-brand span {
  color: #ffb4b4;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  font-weight: 600;
  max-width: 18ch;
  margin: 0 0 0.75rem;
  animation: rise 0.8s ease 0.08s both;
}

.hero-copy {
  max-width: 38ch;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  animation: rise 0.8s ease 0.16s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.8s ease 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red-600);
  color: white;
  box-shadow: 0 12px 28px rgba(214, 40, 40, 0.35);
}

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

.btn-secondary {
  background: white;
  color: var(--blue-900);
}

.btn-ghost {
  background: transparent;
  color: var(--blue-800);
  border: 1px solid rgba(10, 77, 140, 0.25);
}

.btn-ghost:hover {
  background: var(--blue-50);
}

.section {
  padding: 3.25rem 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--blue-950);
}

.section-head p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.section-link {
  color: var(--blue-800);
  font-weight: 700;
  white-space: nowrap;
}

.category-strip {
  display: none;
}

.category-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
}

.category-carousel-viewport {
  min-width: 0;
  width: 100%;
  overflow: hidden;
}

.category-carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.25rem 0 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.category-carousel-track::-webkit-scrollbar {
  display: none;
}

.category-chip {
  box-sizing: border-box;
  flex: 0 0 180px;
  width: 180px;
  max-width: 180px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem;
  text-align: center;
  transition: 0.25s ease;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-chip:hover {
  transform: translateY(-4px);
  border-color: var(--blue-500);
  box-shadow: var(--shadow);
}

.category-chip-img,
.category-icon {
  width: 148px;
  height: 148px;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  margin: 0 0 0.75rem;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.category-icon {
  background: linear-gradient(145deg, var(--blue-100), white);
  color: var(--blue-800);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
}

.category-chip strong {
  display: block;
  color: var(--blue-900);
  font-size: 0.95rem;
  line-height: 1.25;
  max-width: 100%;
}

@media (min-width: 1100px) {
  .category-chip {
    flex-basis: 200px;
    width: 200px;
    max-width: 200px;
  }

  .category-chip-img,
  .category-icon {
    width: 168px;
    height: 168px;
  }
}

@media (max-width: 980px) {
  .category-carousel {
    grid-template-columns: 1fr;
  }

  .category-carousel .carousel-nav {
    position: absolute;
    top: 40%;
    z-index: 2;
    transform: translateY(-50%);
  }

  .category-carousel .carousel-prev { left: 0.15rem; }
  .category-carousel .carousel-next { right: 0.15rem; }

  .category-carousel-track {
    padding-inline: 2.6rem;
  }

  .category-chip {
    flex: 0 0 150px;
    width: 150px;
    max-width: 150px;
  }

  .category-chip-img,
  .category-icon {
    width: 120px;
    height: 120px;
  }
}

.promo-banner {
  display: block;
  margin-bottom: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.promo-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.promo-ribbon {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 120px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700) 55%, var(--red-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
}

.promo-ribbon h3 {
  font-family: var(--font-display);
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
}

.promo-ribbon p {
  margin: 0;
  opacity: 0.9;
}

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

.product-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.25s ease;
  animation: rise 0.55s ease both;
  max-width: 100%;
  min-width: 0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(19, 96, 168, 0.3);
}

.product-media {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  background:
    linear-gradient(160deg, #d9e8f6, #f5f9fd 60%),
    radial-gradient(circle at 70% 20%, rgba(214, 40, 40, 0.12), transparent 40%);
  position: relative;
  display: block;
  overflow: hidden;
}

.product-media img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.product-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-700);
  opacity: 0.55;
}

.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  background: var(--red-600);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  pointer-events: none;
}

.product-body {
  padding: 0.95rem 1rem 1.1rem;
}

.product-brand {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.product-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 650;
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.price {
  font-family: var(--font-display);
  font-weight: 750;
  color: var(--blue-900);
  font-size: 1.15rem;
}

.price-old {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.92rem;
}

.split-feature {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr;
  gap: 1rem;
  align-items: stretch;
}

.split-visual {
  border-radius: var(--radius);
  min-height: 320px;
  background: linear-gradient(135deg, #0a4d8c, #2b7fc4);
  color: white;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  box-shadow: var(--shadow);
}

.split-visual h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.grid-products-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.4fr);
  gap: 1.1rem;
  align-items: start;
}

.grid-hero-media {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.grid-hero-img,
.grid-hero-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
  display: block;
  background: var(--blue-100);
  box-shadow: var(--shadow);
}

.grid-hero-fallback {
  background:
    linear-gradient(145deg, var(--blue-100), white),
    radial-gradient(circle at 70% 20%, rgba(214, 40, 40, 0.12), transparent 40%);
}

.grid-hero-caption {
  display: grid;
  gap: 0.2rem;
}

.grid-hero-caption strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--blue-900);
  letter-spacing: -0.02em;
}

.grid-hero-caption span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.4;
}

.product-carousel {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.35rem;
}

.product-carousel-viewport {
  min-width: 0;
  overflow: hidden;
}

.product-carousel-track {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.15rem 0.1rem 0.55rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.product-carousel-track .product-card {
  flex: 0 0 clamp(168px, 38%, 220px);
  scroll-snap-align: start;
  min-width: 0;
  max-width: 220px;
}

.product-carousel-track .product-media {
  aspect-ratio: 1 / 1;
  width: 100%;
}

.carousel-nav {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  color: var(--blue-900);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(4, 40, 71, 0.08);
}

.carousel-nav:hover {
  background: var(--blue-50);
  border-color: rgba(19, 96, 168, 0.35);
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.mosaic-item {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(145deg, var(--blue-100), white);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--blue-800);
  transition: 0.25s ease;
}

.mosaic-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.trust-card,
.review-card,
.panel,
.info-block {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.trust-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 0.75rem;
  background: var(--blue-50);
  color: var(--blue-800);
}

.trust-card h3,
.review-card strong {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  color: var(--blue-900);
}

.stars {
  color: var(--red-600);
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
}

.page-hero {
  padding: 2.2rem 0 0.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.4rem;
  color: var(--blue-950);
}

.page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 55ch;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.filters {
  position: sticky;
  top: 96px;
  align-self: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
}

.filters h2 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.filter-group {
  margin-bottom: 1rem;
}

.filter-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.filter-group input,
.filter-group select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  background: white;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.view-toggle {
  display: flex;
  gap: 0.35rem;
}

.view-toggle a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 600;
  font-size: 0.88rem;
}

.view-toggle a.active {
  background: var(--blue-800);
  color: white;
  border-color: transparent;
}

.catalog-count {
  margin: 0;
  color: var(--muted);
}

.filter-apply {
  width: 100%;
}

.filter-cats {
  margin-top: 1.2rem;
}

.filter-cats strong {
  display: block;
  margin-bottom: 0.5rem;
}

.filter-cats a {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
}

.pager {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 0;
  color: var(--muted);
}

.pager a {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: white;
  font-weight: 600;
}

.product-list .product-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
}

.product-list .product-media {
  aspect-ratio: 1 / 1;
  height: auto;
  width: 100%;
  max-width: 140px;
}

.pdp-wrap {
  padding-bottom: 2rem;
}

.pdp {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.pdp-description {
  margin-top: 1.5rem;
  padding: 1.35rem 1.5rem;
}

.pdp-description h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.pdp-related {
  margin-top: 1.5rem;
  padding-top: 0.25rem;
}

.pdp-related-head {
  margin-bottom: 1rem;
}

.pdp-related-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.pdp-related-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.pdp-related-carousel {
  width: 100%;
}

.pdp-related-carousel .product-carousel-track .product-card {
  flex: 0 0 clamp(160px, 22vw, 220px);
}

.pdp-favorite-form {
  margin-top: 0.65rem;
}

.btn-favorite {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  margin-top: 0.35rem;
}

.btn-favorite .heart-icon {
  flex: 0 0 auto;
  transition: transform 0.15s ease;
}

.btn-favorite:hover .heart-icon {
  transform: scale(1.08);
}

.btn-favorite.is-active {
  color: var(--red-600, #dc2626);
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.06);
}

.header-wishlist {
  position: relative;
}

.header-wishlist:hover {
  color: var(--red-600, #dc2626);
}

.wishlist-bubble {
  background: var(--red-600, #dc2626);
}

.gallery-main {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  position: relative;
}

.gallery-main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.gallery-thumbs button {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pdp-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.stock-ok {
  color: var(--blue-700);
  font-weight: 700;
}

.stock-out {
  color: var(--red-600);
  font-weight: 700;
}

.credit-note {
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-50);
  border: 1px solid rgba(19, 96, 168, 0.2);
}

.qty-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin: 1rem 0;
}

.qty-row input {
  width: 88px;
  padding: 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.whatsapp-picker {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
}

.whatsapp-picker select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.checkout-grid,
.account-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
  font-size: 0.9rem;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
}

.summary-total {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--blue-900);
  border-top: 1px solid var(--line);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.coupon-box {
  margin: 0.35rem 0 0.15rem;
  padding: 0.75rem 0 0.25rem;
  border-top: 1px dashed var(--line);
}
.coupon-label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.45rem;
}
.coupon-row {
  display: flex;
  gap: 0.45rem;
}
.coupon-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: white;
}
.coupon-row .btn,
.coupon-applied .btn {
  padding: 0.65rem 0.85rem;
  white-space: nowrap;
}
.coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: var(--blue-50, #eef5fb);
  border: 1px solid rgba(19, 96, 168, 0.18);
}
#discount-line strong {
  color: var(--red-600, #c62828);
}

.payment-option {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 0.55rem;
  background: white;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 0.75rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  margin-top: 2rem;
  background: linear-gradient(180deg, transparent, rgba(6, 58, 107, 0.06));
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2.75rem;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  max-height: none;
}

.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr) 1.6fr;
  gap: 1.5rem;
  align-items: start;
}

.site-footer .footer-grid > div:first-child {
  display: block;
}

.site-footer .footer-grid > div:first-child p {
  display: block;
}

.site-footer .footer-grid h3 {
  display: block;
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  color: var(--blue-900);
}

.site-footer .footer-grid a {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.site-footer .brand-logo {
  height: 48px;
  max-height: 48px;
}

.site-footer .brand-text {
  font-size: 1.35rem;
  color: var(--blue-900);
}

.site-footer .brand-text span {
  color: var(--red-600);
}

.site-footer .brand-mark {
  width: 42px;
  height: 42px;
  font-size: inherit;
  border-radius: 12px;
}

.site-footer .footer-payments {
  text-align: left;
}

.site-footer .footer-payments h3 {
  font-family: var(--font-display);
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--blue-900);
}

.site-footer .footer-payments img {
  width: 100%;
  max-width: min(486px, 100%);
  height: auto;
  aspect-ratio: 486 / 163;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #fff;
}

main#main-content {
  padding-bottom: 0;
}

.floating-cart {
  display: none;
}

.mobile-app-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 0.45rem 0.75rem calc(0.45rem + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  gap: 0.25rem;
}

.mobile-app-nav a {
  display: grid;
  place-items: center;
  gap: 0.15rem;
  padding: 0.4rem 0.2rem;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  overflow: visible;
}

.mobile-app-nav .nav-ico {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0;
  overflow: visible;
}

.mobile-app-nav .nav-ico svg {
  display: block;
  width: 22px;
  height: 22px;
}

.mobile-app-nav a.nav-cart {
  overflow: visible;
}

.mobile-app-nav .nav-cart-ico {
  position: relative;
  width: 28px;
  height: 28px;
}

.mobile-app-nav .nav-cart-ico .cart-bubble {
  position: absolute;
  top: -7px;
  right: -9px;
  left: auto;
  bottom: auto;
  z-index: 2;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  font-size: 0.68rem;
  line-height: 1.15rem;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.mobile-app-nav a.active,
.mobile-app-nav a:hover {
  color: var(--blue-800);
  background: var(--blue-50);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
}

.mobile-drawer[hidden] {
  display: none !important;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 40, 71, 0.45);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 88vw);
  background: white;
  box-shadow: 0 20px 50px rgba(4, 40, 71, 0.25);
  padding: 1rem;
  overflow-y: auto;
  animation: rise 0.25s ease both;
}

.mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.mobile-drawer-nav a {
  display: block;
  padding: 0.75rem 0.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--blue-900);
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes kenburns {
  from {
    transform: scale(1.04) translateY(0);
  }
  to {
    transform: scale(1.1) translateY(-1.5%);
  }
}

@media (max-width: 980px) {
  .product-grid,
  .mosaic {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-feature,
  .pdp,
  .catalog-layout,
  .checkout-grid,
  .account-grid,
  .trust,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .filters {
    display: none !important;
  }

  .search-toggle {
    display: inline-flex !important;
  }

  .search-wrap {
    justify-self: end;
    width: auto;
    max-width: none;
  }

  .search-overlay-panel {
    display: none;
  }

  .search-form {
    display: none;
    width: 100%;
    grid-template-columns: 1fr auto;
  }

  .search-wrap.is-open {
    position: fixed;
    inset: 0;
    z-index: 90;
    width: 100% !important;
    max-width: none;
    margin: 0;
    padding: 0;
    display: block !important;
    background: rgba(4, 40, 71, 0.55);
    backdrop-filter: blur(8px);
    grid-column: auto !important;
    order: unset !important;
    justify-self: stretch;
  }

  .search-wrap.is-open .search-toggle {
    display: none !important;
  }

  .search-wrap.is-open .search-overlay-panel {
    display: block;
    margin: 0.85rem;
    margin-top: calc(0.85rem + env(safe-area-inset-top));
    padding: 0.9rem;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 18px 50px rgba(4, 40, 71, 0.35);
    width: auto;
  }

  .search-wrap.is-open .search-overlay-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
    color: var(--blue-900);
    font-family: var(--font-display);
  }

  .search-wrap.is-open .search-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: white;
    color: var(--blue-900);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
  }

  .search-wrap.is-open .search-form {
    display: grid !important;
    width: 100%;
    grid-template-columns: 1fr auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: none;
  }

  .search-wrap.is-open .search-cat {
    display: none;
  }

  .search-wrap.is-open .search-suggest {
    position: static;
    margin-top: 0.55rem;
    max-height: 50vh;
    overflow: auto;
    box-shadow: none;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
  }

  .search-wrap.is-open .search-suggest a,
  .search-wrap.is-open .search-suggest a span,
  .search-wrap.is-open .search-suggest a strong {
    color: var(--ink);
  }

  .search-submit {
    padding: 0 1rem;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-top {
    grid-template-columns: 42px 1fr 42px;
    gap: 0.5rem;
    padding: 0.65rem 0;
  }

  .header-top .brand {
    justify-self: center;
    max-width: min(180px, 52vw);
  }

  .header-top .search-wrap:not(.is-open) {
    justify-self: end;
    grid-column: 3;
  }

  .menu-toggle {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
  }

  .menu-toggle span {
    background: white;
  }

  .search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    color: white;
    align-items: center;
    justify-content: center;
  }

  .desktop-nav {
    display: none;
  }

  .floating-cart {
    display: none;
  }

  .mobile-app-nav {
    display: grid !important;
  }

  .site-footer {
    display: none !important;
  }

  .header-actions {
    display: none;
  }

  main#main-content {
    padding-bottom: 5.5rem;
  }

  .cookie-banner {
    bottom: calc(5rem + env(safe-area-inset-bottom));
  }

  .product-list .product-card {
    grid-template-columns: 110px 1fr;
  }

  /* Grid + productos carousel — mobile */
  .grid-products-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .grid-hero-img,
  .grid-hero-fallback {
    max-width: 100%;
    margin-inline: 0;
  }

  .product-carousel {
    display: block;
    position: relative;
    width: 100%;
    min-width: 0;
  }

  .product-carousel-viewport {
    width: 100%;
    overflow: visible;
  }

  .product-carousel-track {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding: 0.25rem 2.5rem 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .product-carousel-track .product-card {
    flex: 0 0 72vw;
    max-width: 260px;
    width: 72vw;
  }

  .carousel-nav {
    position: absolute;
    top: 38%;
    z-index: 3;
    transform: translateY(-50%);
  }

  .carousel-prev {
    left: 0;
  }

  .carousel-next {
    right: 0;
  }

  /* Carrito mobile cards */
  .cart-layout {
    display: grid;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .cart-qty-form {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
  }

  .cart-qty-form input[type="number"] {
    width: 72px;
    max-width: 40vw;
    padding: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  .cart-qty-form .btn {
    padding: 0.45rem 0.7rem;
  }

  .cart-table-wrap {
    overflow: visible;
    max-width: 100%;
  }

  .cart-table {
    display: block;
    width: 100%;
  }

  .cart-table thead {
    display: none;
  }

  .cart-table tbody {
    display: grid;
    gap: 0.75rem;
  }

  .cart-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.35rem 0.75rem;
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }

  .cart-table td {
    border: 0 !important;
    padding: 0 !important;
    word-break: break-word;
  }

  .cart-table td:nth-child(1) {
    grid-column: 1 / -1;
  }

  .cart-table td:nth-child(2)::before {
    content: 'Precio ';
    color: var(--muted);
    font-size: 0.8rem;
  }

  .cart-table td:nth-child(3) {
    grid-column: 1 / -1;
  }

  .cart-table td:nth-child(4) {
    font-weight: 700;
  }

  .cart-table td:nth-child(5) {
    justify-self: end;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 72vh;
  }

  .promo-ribbon {
    flex-direction: column;
    align-items: flex-start;
  }
}

.promo-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(4, 40, 71, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: promo-overlay 0.28s ease both;
}
.promo-popup[hidden] {
  display: none !important;
}
.promo-popup-card {
  width: min(100%, 420px);
  max-height: min(92vh, 760px);
  overflow: auto;
  background: #fff;
  border-radius: 24px;
  position: relative;
  box-shadow:
    0 24px 60px rgba(4, 40, 71, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: promo-card 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.promo-popup-card.has-media {
  width: min(100%, 480px);
}
.promo-popup-media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.promo-popup-media a {
  position: absolute;
  inset: 0;
}
.promo-popup-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.promo-popup-body {
  padding: 1.15rem 1.25rem 1.4rem;
  display: grid;
  gap: 0.65rem;
}
.promo-popup-body h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--blue-900);
  margin: 0;
  line-height: 1.2;
  padding-right: 1.75rem;
}
.promo-popup-card.has-media .promo-popup-body h2 {
  padding-right: 0;
}
.promo-popup-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}
.promo-popup-cta {
  width: 100%;
  margin-top: 0.2rem;
}
.promo-popup-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px rgba(4, 40, 71, 0.18);
}
.promo-popup-close:hover {
  background: #fff;
  color: var(--red-600);
}
@keyframes promo-overlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes promo-card {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 640px) {
  .promo-popup {
    padding: 0.75rem;
    align-items: end;
  }
  .promo-popup-card,
  .promo-popup-card.has-media {
    width: 100%;
    border-radius: 22px 22px 16px 16px;
  }
}

.hero-picture {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero--banner-only {
  position: relative;
  min-height: 0;
  width: 100%;
  aspect-ratio: 1920 / 600;
  max-height: 600px;
  padding: 0;
  display: block;
  background: #0a4d8c;
  overflow: hidden;
}
.hero-track {
  position: absolute;
  inset: 0;
}
.hero-track--desktop {
  display: block;
}
.hero-track--mobile {
  display: none !important;
}
@media (max-width: 768px) {
  .hero-track--desktop {
    display: none !important;
  }
  .hero-track--mobile {
    display: block !important;
  }
  /* Sin slides móviles: no mostrar el hero desktop en celular */
  .hero--banner-only[data-has-mobile="0"] {
    display: none;
  }
}
@media (min-width: 769px) {
  /* Sin slides desktop: no mostrar el hero móvil en escritorio */
  .hero--banner-only[data-has-desktop="0"] {
    display: none;
  }
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
  z-index: 0;
}
.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.hero--banner-only .hero-banner-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
}
.hero--banner-only .hero-picture img,
.hero--banner-only .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.88);
  color: var(--blue-900);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.hero-nav-prev { left: 0.75rem; }
.hero-nav-next { right: 0.75rem; }
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.75rem;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
  padding: 0;
}
.hero-dots button.is-active {
  background: white;
  transform: scale(1.15);
}
@media (max-width: 768px) {
  /* Móvil: 800 ancho × 1000 alto (vertical) */
  .hero--banner-only {
    aspect-ratio: 800 / 1000;
    max-height: none;
    width: 100%;
  }
}
.richtext {
  line-height: 1.7;
  color: #1e293b;
  font-size: 1rem;
  word-wrap: break-word;
}
.richtext h1,
.richtext h2,
.richtext h3,
.richtext h4 {
  font-family: var(--font-display);
  color: #0f172a;
  line-height: 1.3;
  margin: 1.1rem 0 0.55rem;
  font-weight: 700;
}
.richtext h1 { font-size: 1.65rem; }
.richtext h2 { font-size: 1.35rem; }
.richtext h3 { font-size: 1.15rem; }
.richtext h4 { font-size: 1.05rem; }
.richtext p {
  margin: 0 0 0.85rem;
}
.richtext div {
  margin: 0 0 0.35rem;
}
.richtext ul,
.richtext ol {
  margin: 0.5rem 0 0.9rem 1.25rem;
  padding: 0;
  line-height: 1.65;
}
.richtext li {
  margin: 0.35rem 0;
}
.richtext strong,
.richtext b {
  font-weight: 700;
  color: #0f172a;
}
.richtext a {
  color: var(--blue-700, #1d4ed8);
  text-decoration: underline;
}
.richtext blockquote {
  margin: 0.75rem 0;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 3px solid #cbd5e1;
  color: #475569;
}
.richtext img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0.85rem 0;
  border-radius: 4px;
}
.richtext table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.75rem 0;
}
.richtext td,
.richtext th {
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.5rem;
}
.product-short {
  margin: 0.75rem 0 1rem;
  color: var(--muted);
}
.hero-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 100;
  background: var(--blue-900);
  color: white;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}
.skip-link:focus {
  left: 0.75rem;
}
:focus-visible {
  outline: 3px solid var(--red-600);
  outline-offset: 2px;
}
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom));
  z-index: 70;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner p {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 0.95rem;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.legal-body {
  line-height: 1.65;
}
@media (min-width: 981px) {
  .cookie-banner { bottom: 1.25rem; max-width: 920px; margin-inline: auto; left: 0; right: 0; }
}

/* WhatsApp picker */
.whatsapp-picker {
  margin-top: 1.1rem;
  display: grid;
  gap: 0.55rem;
}
.wa-details {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  overflow: hidden;
}
.wa-summary {
  list-style: none;
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--blue-900);
  border: 1px solid transparent;
}
.wa-details[open] .wa-summary {
  border-color: var(--red-600);
  border-radius: 14px 14px 0 0;
}
.wa-summary::-webkit-details-marker { display: none; }
.wa-branch-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.wa-branch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.wa-branch-row:last-child { border-bottom: 0; }
.wa-branch-meta {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.wa-branch-meta span {
  color: var(--muted);
  font-size: 0.9rem;
}
.wa-send-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #25d366;
  color: white;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
}
.wa-send-btn:hover { filter: brightness(0.95); color: white; }

.checkout-map {
  height: 280px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 1;
}
.gps-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  flex-wrap: wrap;
}

/* Auth (login / registro) */
.auth-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3.5rem;
  background:
    radial-gradient(circle at 12% 18%, rgba(19, 96, 168, 0.14), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(214, 40, 40, 0.12), transparent 38%),
    linear-gradient(180deg, #eef5fb 0%, #f7fafc 55%, #ffffff 100%);
}

.auth-card {
  width: min(100%, 440px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(4, 40, 71, 0.12);
  padding: 1.75rem 1.5rem 1.5rem;
}

.auth-brand {
  text-align: center;
  margin-bottom: 1.35rem;
}

.auth-brand .brand {
  justify-content: center;
  margin: 0 auto 1rem;
}

.auth-brand h1 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  margin: 0 0 0.35rem;
  color: var(--blue-900);
  letter-spacing: -0.03em;
}

.auth-brand p {
  margin: 0;
  color: var(--muted);
}

.auth-form .form-field {
  margin-bottom: 0.9rem;
}

.auth-form input {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  font: inherit;
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.password-wrap input {
  padding-right: 2.75rem;
}
.password-toggle {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0.35rem;
  color: var(--muted);
  border-radius: 8px;
}
.password-toggle:hover {
  background: rgba(19, 96, 168, 0.08);
  color: var(--blue-900);
}

.auth-form input:focus {
  border-color: var(--blue-500);
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 96, 168, 0.15);
}

.auth-submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.85rem 1rem;
}

.auth-footer {
  margin: 1rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-error,
.auth-field-error {
  color: var(--red-600);
  font-size: 0.88rem;
  margin: 0 0 0.65rem;
}

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}
