/* =============================================================
   styles.css — Estilos globales ObraFuerte
   -------------------------------------------------------------
   Índice de secciones:
     1.  Reset / Base
     2.  Variables CSS (:root)
     3.  Utilidades (.container, .sr-only)
     4.  Topbar (banda superior oscura)
     5.  Header / Navegación (sticky)
     6.  Marca (.brand)
     7.  Botones (.btn, .btn--primary, .btn--ghost)
     8.  Hero
     9.  Secciones genéricas (.section)
     10. Barra de categorías (.categorias-nav)
     11. Toolbar del catálogo (.catalog-toolbar)
     12. Grilla de productos (.product-grid)
     13. Tarjetas de producto (.product-card)
     14. Botón carrito en header (.cart-toggle)
     15. Drawer del carrito (.cart-drawer)
     16. Ítems del carrito (.cart-item)
     17. Resumen y acciones del carrito (.cart-summary)
     18. Contacto y footer
     19. Responsive (media queries)
   ============================================================= */


/* ============================================================
   1. RESET / BASE
   Normaliza el modelo de caja, comportamiento de scroll,
   fuente base y elementos multimedia.
   ============================================================ */
* {
  box-sizing: border-box;
}

/* ============================================================
   2. VARIABLES CSS
   Paleta de colores, sombras, radios y ancho máximo del
   contenedor. Modificar estas variables afecta toda la UI.
   ============================================================ */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #0f1720;
  --text: #16202a;
  --muted: #6a7684;
  --line: #dde4eb;
  --primary: #f59e0b;
  --primary-dark: #d97706;
  --accent: #0f3b68;
  --success: #0f766e;
  --shadow: 0 12px 30px rgba(15, 23, 32, 0.08);
  --radius: 18px;
  --container: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

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

button,
input,
select {
  font: inherit;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* ============================================================
   4. TOPBAR
   Banda superior oscura con teléfono y dirección.
   ============================================================ */
.topbar {
  background: var(--surface-2);
  color: #fff;
  font-size: 0.92rem;
}

.topbar__content {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar__content a {
  color: #ffd27a;
  font-weight: 600;
}

/* ============================================================
   5. HEADER / NAVEGACIÓN
   Header sticky con fondo semi-transparente y blur.
   Contiene logo, nav links, CTA y botón del carrito.
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(221, 228, 235, 0.9);
}

.header__content {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ============================================================
   6. MARCA (.brand)
   Logo textual con ícono cuadrado degradado amarillo.
   ============================================================ */
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* LOGO */
.brand__logo {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.header__search {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Contenedor relativo que ancla el dropdown */
.header__search-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
  display: flex;
  align-items: center;
}

/* Ícono de lupa posicionado dentro del input */
.header__search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted);
  pointer-events: none;
  flex-shrink: 0;
}

.header__search input {
  width: 100%;
  min-height: 44px;
  padding: 0 16px 0 40px;
  border-radius: 999px;
  border: 1px solid #ccd6e0;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header__search input:focus {
  border-color: rgba(245, 158, 11, 0.7);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.12);
}

/* ── Dropdown de resultados en vivo ── */
.header__search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(15, 23, 32, 0.14);
  overflow: hidden;
  z-index: 500;
  max-height: 420px;
  overflow-y: auto;
}

/* Un resultado individual */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(245, 158, 11, 0.07);
}

/* Miniatura del producto en el resultado */
.search-result-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #f0f4f8;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
}

.search-result-item__img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  padding: 6px;
  display: block;
}

/* Cuando la imagen no existe todavía: el SVG placeholder se ve en gris claro */
.search-result-item__img.is-placeholder {
  padding: 10px;
  opacity: 0.45;
}

.search-result-item__info {
  flex: 1;
  min-width: 0;
}

.search-result-item__name {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
}

.search-result-item__price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--surface-2);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Mensaje cuando no hay coincidencias */
.search-result-empty {
  padding: 20px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Pie del dropdown: "Ver todos los resultados en el catálogo" */
.search-result-footer {
  display: block;
  padding: 10px 16px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: rgba(245, 158, 11, 0.06);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-result-footer:hover {
  background: rgba(245, 158, 11, 0.14);
}

.brand__mark {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #111827;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
}

.header__cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.header__cta,
.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #111827;
  box-shadow: var(--shadow);
  border: none;
  position: relative;
  overflow: hidden;
}

.header__cta::after,
.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.header__cta:hover,
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
}

.header__cta:hover::after,
.btn--primary:hover::after {
  transform: translateX(100%);
}

.header__cta:active,
.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.12);
}

.btn--ghost:active {
  transform: translateY(0);
}

.btn--whatsapp {
  background: #25d366;
  color: #fff;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn--whatsapp::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.btn--whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

.btn--whatsapp:hover::after {
  transform: translateX(100%);
}

.btn--whatsapp:active {
  transform: translateY(0);
  box-shadow: 0 3px 10px rgba(37, 211, 102, 0.35);
}

/* .header__cart y #cartCount eliminados — reemplazados por .cart-toggle y .cart-badge */

/* ============================================================
   7. BOTONES
   .btn: base común (flex, altura, padding, transición).
   .btn--primary: fondo degradado amarillo.
   .btn--ghost: borde blanco semitransparente (sobre fondos oscuros).
   ============================================================ */


.btn--ghost {
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #0f1720;
  color: #fff;
  padding: 88px 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.2), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 32, 0.78) 0%, rgba(19, 57, 95, 0.7) 100%);
  z-index: -1;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: -2;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1fr);
  gap: clamp(72px, 7vw, 120px);
  align-items: center;
}

.hero__content {
  max-width: 720px;
}

.eyebrow,
.section__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #ffd27a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: var(--primary);
}

.hero p {
  margin: 0;
  max-width: 60ch;
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 22px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.hero__feature {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: rgba(255,255,255,0.92);
}

.hero__feature:not(:first-child) {
  padding-left: 0;
  border-left: none;
}

.hero__feature svg {
  justify-self: center;
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.hero__feature span {
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
}

/* ── Hero Card — full-bleed carousel ────────────────────────── */
.hero__card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  align-self: center;
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 0;
  box-shadow: 0 22px 50px rgba(5, 15, 28, 0.36);
}

/* ── Logos Carousel ─────────────────────────────────────────── */
.logos-carousel__track {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #ffffff;
}

.logos-carousel__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s cubic-bezier(0.4,0,0.2,1), transform 1s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}

.logos-carousel__img.is-active {
  opacity: 1;
  transform: scale(1);
}

.section {
  padding: 72px 0;
}

.section--catalog {
  background: #eef3f7;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section__head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.section__head p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
}


/* ============================================================
   10. BARRA DE CATEGORÍAS
   Franja azul oscuro debajo del header.
   Scrollable horizontalmente en móviles (sin scrollbar visible).
   .categoria-link.active resalta en amarillo la categoría activa.
   ============================================================ */
/* categorias */
.categorias-nav {
  padding: 6px 0 4px;
  background: #0f3b68;
  overflow-x: clip;
}

.categorias-nav .container {
  width: 100%;
  max-width: none;
  overflow: visible;
  padding-inline: 0;
  padding-top: 2px;
}

.categorias-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-width: 100%;
  gap: 0;
  overflow: visible;
  animation: none;
  will-change: transform;
  padding-inline: 0;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

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

.categorias-bar.is-dragging {
  cursor: grabbing;
}

.categorias-loop-set {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding-right: 24px;
  flex-shrink: 0;
}

.categoria-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 68px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: normal;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.categoria-link__bubble {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.categoria-link__bubble img {
  width: 62%;
  height: 62%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 32, 0.22));
}

.categoria-link__label {
  max-width: 80px;
  color: #d5deea;
  font-size: 0.70rem;
  font-weight: 600;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: normal;
}

.categoria-link:hover {
  color: #f59e0b;
}

.categoria-link:hover .categoria-link__bubble,
.categoria-link:focus-visible .categoria-link__bubble {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.82);
  box-shadow: 0 8px 24px rgba(15, 23, 32, 0.25);
}

.categoria-link.active {
  color: #f59e0b;
}

.categoria-link.active .categoria-link__bubble {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2), 0 10px 24px rgba(15, 23, 32, 0.25);
}

@keyframes categoriasLoop {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   11. TOOLBAR DEL CATÁLOGO
   Input de búsqueda + select de categoría. Ambos comparten
   estilo: borde redondeado, fondo blanco, sombra sutil.
   El foco resalta con borde amarillo.
   ============================================================ */
.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.catalog-toolbar__search,
.catalog-toolbar__filters {
  width: 100%;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  border-radius: 14px;
  padding: 6px 12px;
  color: var(--text);
  outline: none;
  box-shadow: 0 6px 20px rgba(15, 23, 32, 0.04);
}

.catalog-toolbar input:focus,
.catalog-toolbar select:focus {
  border-color: rgba(245, 158, 11, 0.6);
}

.product-rows {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 8px;
  scroll-margin-top: 150px;
}

.product-rows.is-single-row {
  gap: 18px;
}

.product-grid-shell {
  position: relative;
}

.product-category-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-category-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 0 2px 12px;
  border-bottom: 1px solid rgba(15, 59, 104, 0.14);
}

.product-category-group__head h3 {
  margin: 0;
  color: var(--surface-2);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.product-category-group__head span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-grid-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 32, 0.86);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 26px rgba(15, 23, 32, 0.3);
  transition: background 0.2s ease, opacity 0.2s ease;
}

.product-grid-arrow--prev {
  left: -18px;
}

.product-grid-arrow--next {
  right: -18px;
}

.product-grid-arrow:hover:not(:disabled) {
  background: rgba(15, 23, 32, 1);
}

.product-grid-arrow:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.product-grid {
  display: grid;
  grid-template-rows: 1fr;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 290px);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 6px;
  padding: 6px 4px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  user-select: none;
  touch-action: pan-x pan-y;
}

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

.product-grid.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

.product-grid > .product-card {
  scroll-snap-align: start;
  height: 100%;
  min-height: 100%;
}

/* ============================================================
   13. TARJETAS DE PRODUCTO
   .product-card: card blanca con borde, sombra y hover lift.
   .product-card--in-cart: borde + glow dorado cuando está
     en el carrito.
   .product-card__image: marco cuadrado con imagen completa.
   .product-card__body: cuerpo flex con gap.
   .product-card__meta: badges de categoría y marca.
   .product-card__footer: precio + botón (separados por border-top).
   .product-card__cart-btn: botón degradado amarillo con ícono SVG.
   .product-card__qty-control: control inline − N + cuando ya
     está en el carrito.
   ============================================================ */
.product-card {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15,23,32,0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(15,23,32,0.11);
  border-color: rgba(245,158,11,0.35);
}

.product-card--in-cart {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.15), 0 8px 24px rgba(15,23,32,0.08);
}

.product-card__image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f0f4f8, #e8eef4);
  display: grid;
  place-items: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(245,158,11,0.07), transparent 60%);
  pointer-events: none;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  position: relative;
  z-index: 1;
}

/* Hint visual: la imagen y el título son clickeables */
.product-card__image--clickable {
  cursor: pointer;
}

.product-card__image--clickable:focus-visible {
  outline: 3px solid rgba(245, 158, 11, 0.55);
  outline-offset: -6px;
}

.product-card[data-id] .product-card__title {
  cursor: pointer;
}

.product-card[data-id] .product-card__title:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-card__body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge--category {
  background: rgba(15, 59, 104, 0.08);
  color: var(--accent);
}

.badge--brand {
  background: rgba(245, 158, 11, 0.14);
  color: #9a5b00;
}

.product-card h3,
.product-card__title {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.4;
  min-height: 2.8em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__description {
  margin: 0;
  min-height: 4.5em;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__info {
  display: flex;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.product-card__info strong {
  color: var(--text);
  font-weight: 600;
}

.product-card__bottom,
.product-card__footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.product-card__price {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card__price span {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  display: block;
}

.product-card__price strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--surface-2);
  letter-spacing: -0.02em;
}

/* Remove unused .product-card__action (consultar button removed) */

.product-card__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.product-card__detail-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid rgba(15, 59, 104, 0.16);
  background: #fff;
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.15s ease;
}

.product-card__detail-btn:hover {
  background: rgba(15, 59, 104, 0.06);
  border-color: rgba(15, 59, 104, 0.32);
  transform: translateY(-1px);
}

/* ── Botón "Agregar al carrito" en tarjeta de producto ── */
.product-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.product-card__cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #111827;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(245,158,11,0.28);
}

.product-card__cart-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(245,158,11,0.38);
}

.product-card__cart-btn:active {
  transform: scale(0.96);
}

/* ── Control de cantidad inline en la card ── */
.product-card__qty-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(245,158,11,0.08);
  border: 1.5px solid rgba(245,158,11,0.35);
  border-radius: 999px;
  padding: 3px 6px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #111827;
  font-size: 1.1rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
  line-height: 1;
}

.qty-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.qty-display {
  min-width: 22px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text);
}

/* ============================================================
   14. BOTÓN CARRITO EN HEADER (.cart-toggle)
   Botón con borde amarillo en el header.
   El .cart-badge muestra la cantidad de ítems (oculto si = 0).
   ============================================================ */
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.cart-toggle::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.45s ease;
}

.cart-toggle:hover {
  background: var(--primary);
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.4);
}

.cart-toggle:hover::after {
  transform: translateX(100%);
}

.cart-toggle:active {
  transform: translateY(0);
  box-shadow: none;
}

.cart-toggle .cart-badge {
  min-width: 22px;
  height: 22px;
  background: var(--primary);
  color: #111827;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

/* ============================================================
   15. DRAWER DEL CARRITO
   Panel lateral fijo (440px) deslizante desde la derecha.
   .cart-drawer.is-open: translateX(0) para mostrar el panel.
   .cart-overlay: fondo semi-transparente que cierra el drawer
     al hacer click. z-index 199 (drawer en 200).
   .cart-drawer__header: encabezado con degradado azul oscuro.
   ============================================================ */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  background: #fff;
  box-shadow: -12px 0 60px rgba(15, 23, 32, 0.16);
  z-index: 200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.52);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cart-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  background: linear-gradient(135deg, #0f1720, #13395f);
  color: #fff;
}

.cart-drawer__header .section__eyebrow {
  color: #ffd27a;
}

.cart-drawer__header h3 {
  margin: 2px 0 0;
  font-size: 1.2rem;
}

.cart-drawer__close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  transition: background 0.2s;
}

.cart-drawer__close:hover {
  background: rgba(255,255,255,0.22);
}

/* ============================================================
   16. ÍTEMS DEL CARRITO
   .cart-items: área scrollable con padding y fondo gris claro.
   .cart-item: tarjeta blanca con borde por ítem del pedido.
   .cart-item__controls: fila de botones + / − / Quitar.
   .cart-qty-btn: botón cuadrado con hover amarillo.
   .cart-remove-btn: texto gris, rojo en hover.
   ============================================================ */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
}

.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 60px 0 40px;
  font-size: 0.95rem;
}

.cart-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 2px 6px rgba(15,23,32,0.04);
}

.cart-item__info h3 {
  margin: 0 0 3px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.cart-item__info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-item__info strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--surface-2);
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  transition: background 0.15s, border-color 0.15s;
}

.cart-qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.cart-qty {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
  font-size: 0.95rem;
}

.cart-remove-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: #b0bec5;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.15s;
  padding: 0;
}

.cart-remove-btn:hover {
  color: #e53935;
}

/* ============================================================
   17. RESUMEN Y ACCIONES DEL CARRITO
   .cart-summary: área fija al fondo del drawer con total.
   .cart-summary__actions: botones "Vaciar" + "Enviar pedido".
   .btn--ghost-dark: variante de botón para fondo claro.
   ============================================================ */
.cart-summary {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}

.cart-summary__row strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--surface-2);
  letter-spacing: -0.02em;
}

.cart-summary__actions {
  display: flex;
  gap: 10px;
}

.btn--ghost-dark {
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--ghost-dark:hover {
  background: var(--bg);
  color: var(--text);
  border-color: var(--muted);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn--ghost-dark:active {
  transform: translateY(0);
  box-shadow: none;
}

/* ============================================================
   18. ESTADOS VACIÓS, CONTACTO Y FOOTER
   .catalog-empty: estado vacío de la grilla (borde punteado).
   .contact-box: bloque CTA con fondo gradiente oscuro.
   .footer: 4 columnas con logo, links y contacto.
   ============================================================ */
.catalog-empty {
  grid-column: 1 / -1;
  background: var(--surface);
  border: 1px dashed var(--line);
  padding: 28px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
}

.contact-box {
  background: linear-gradient(135deg, #0f1720, #13395f);
  border-radius: 28px;
  padding: 34px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.contact-box p {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.82);
}

.footer {
  background: #0c1219;
  color: #c6d0db;
  padding: 60px 0 20px;
  margin-top: 80px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer__brand h3 {
  margin: 10px 0;
}

.footer__brand p {
  font-size: 0.9rem;
  color: #9aa7b4;
  line-height: 1.5;
}

.footer__logo {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-weight: bold;
  color: #000;
}

.footer__whatsapp {
  display: inline-block;
  margin-top: 15px;
  background: #25D366;
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: bold;
  font-size: 0.9rem;
}

.footer__column h4 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer__column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__column li {
  margin-bottom: 8px;
}

.footer__column a {
  color: #9aa7b4;
  font-size: 0.9rem;
}

.footer__column a:hover {
  color: #f59e0b;
}

.footer__contact li {
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid #1f2a36;
  margin-top: 40px;
  padding-top: 15px;
  text-align: center;
  font-size: 0.85rem;
  color: #7b8794;
}

/* ============================================================
   19. RESPONSIVE (MEDIA QUERIES)
   ≤ 900px:  Footer en 2 columnas.
   ≤ 560px:  Footer en 1 columna.
   ≤ 1100px: Grid de producto en 3 cols, layouts de 1 columna.
   ≤ 820px:  Nav oculta, producto en 2 cols.
   ≤ 560px:  Todo en 1 columna, topbar vertical.
   ============================================================ */
/* Responsive */
@media (max-width: 1200px) {
  .product-grid {
    grid-auto-columns: minmax(240px, 272px);
  }

  .header__content {
    gap: 14px;
  }

  .nav {
    gap: 24px;
  }
}

@media (max-width: 992px) {
  .categorias-bar {
    animation-duration: 30s;
    justify-content: center;
    align-items: center;
  }

  .categorias-loop-set {
    gap: 26px;
    align-items: center;
  }

  .categoria-link {
    min-width: 60px;
    font-size: 0.70rem;
  }

  .categoria-link__bubble {
    width: 46px;
    height: 46px;
  }

  .categoria-link__label {
    font-size: 0.68rem;
    max-width: 64px;
  }

  .hero__grid,
  .section__head,
  .contact-box {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: start;
  }

  .hero__grid {
    gap: 44px;
  }

  .hero {
    min-height: 620px;
  }

  .hero__video {
    object-position: center 24%;
  }

  .hero__card {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
    align-self: auto;
  }

  .hero__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 18px;
  }

  .hero__feature {
    gap: 10px;
    align-items: flex-start;
    padding-left: 0;
    border-left: none;
  }

  .hero__feature:not(:first-child) {
    padding-left: 0;
    border-left: none;
  }

  .hero__feature svg {
    width: 30px;
    height: 30px;
    margin-top: 1px;
  }

  .hero__feature span {
    font-size: 0.95rem;
    line-height: 1.35;
  }

  .header__content {
    flex-wrap: wrap;
    min-height: auto;
    padding: 12px 0;
  }

  .header__search {
    order: 3;
    flex: 1 0 100%;
    justify-content: stretch;
  }

  .header__search-wrap {
    max-width: none;
  }

  .nav {
    margin-left: auto;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .product-grid-arrow--prev { left: -12px; }
  .product-grid-arrow--next { right: -12px; }

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

@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .categorias-bar {
    animation-duration: 27s;
    justify-content: center;
    align-items: center;
  }

  .categorias-loop-set {
    gap: 24px;
    align-items: center;
  }

  .categoria-link {
    min-width: 54px;
    gap: 4px;
  }

  .categoria-link__bubble {
    width: 42px;
    height: 42px;
  }

  .categoria-link__label {
    max-width: 58px;
    font-size: 0.66rem;
  }

  .topbar__content {
    min-height: auto;
    padding: 10px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .hero {
    padding: 56px 0 64px;
    min-height: 560px;
  }

  .hero__grid {
    gap: 36px;
  }

  .hero__video {
    object-fit: contain;
    object-position: center top;
  }

  .hero__features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .hero__feature {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: start;
    gap: 14px;
    padding-left: 0;
    border-left: none;
  }

  .hero__feature:not(:first-child) {
    padding-left: 0;
    border-left: none;
  }

  .hero__feature svg {
    width: 28px;
    height: 28px;
    margin-top: 2px;
    align-self: start;
  }

  .hero__card {
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .section {
    padding: 56px 0;
  }

  .product-grid {
    grid-auto-columns: minmax(220px, 250px);
    padding-bottom: 10px;
  }

  .product-grid-arrow {
    display: none;
  }

  .product-card__image {
    padding: 14px;
  }

  .contact-box {
    padding: 26px;
  }

  .cart-drawer {
    width: min(420px, 100vw);
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    bottom: 18px;
    left: 18px;
  }

  .whatsapp-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, var(--container));
  }

  .header__content {
    gap: 10px;
  }

  .categorias-nav {
    padding: 4px 0;
    overflow-x: clip;
  }

  .categorias-loop-set {
    gap: 20px;
    padding-right: 20px;
    align-items: center;
  }

  .categoria-link {
    min-width: 50px;
  }

  .categoria-link__bubble {
    width: 38px;
    height: 38px;
  }

  .categoria-link__label {
    max-width: 54px;
    font-size: 0.64rem;
  }

  .brand__logo {
    height: 56px;
  }

  .cart-toggle {
    min-height: 42px;
    padding: 0 14px;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 7.8vw, 2.4rem);
  }

  .hero p {
    font-size: 0.98rem;
  }

  .hero__card {
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .hero__feature {
    grid-template-columns: 24px 1fr;
    gap: 12px;
  }

  .hero__feature svg {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }

  .hero__feature span {
    font-size: 0.92rem;
  }

  .hero__actions,
  .product-card__bottom,
  .cart-summary__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn--primary,
  .btn--ghost,
  .btn--ghost-dark,
  .product-card__detail-btn,
  .product-card__cart-btn,
  .product-card__qty-control {
    width: 100%;
    justify-content: center;
  }

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

  .product-grid {
    grid-auto-columns: minmax(208px, 232px);
  }

  .product-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .product-card__footer-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .product-category-group__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-card__image {
    padding: 12px;
  }

  .contact-box {
    padding: 22px;
    border-radius: 20px;
  }

  .footer {
    margin-top: 56px;
    padding-top: 48px;
  }

  .cart-drawer__header,
  .cart-items,
  .cart-summary {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 400px) {
  .header__search input {
    min-height: 40px;
  }

  .hero__card {
    height: auto;
    aspect-ratio: 3 / 2;
    min-height: 0;
  }

  .product-card__body {
    padding: 14px;
  }

  .cart-drawer {
    width: 100vw;
  }
}
/* ============================================================
   WHATSAPP BOTÓN FLOTANTE
   Fondo transparente con anillo de pulse verde siempre activo.
   El ::after genera el efecto de onda continua mediante
   @keyframes whatsappPulse (scale + opacity).
   ============================================================ */

/* Animación de pulse — escala y desvanece el anillo verde */
@keyframes whatsappPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;

  width: 64px;
  height: 64px;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  /* Fondo completamente transparente */
  background: transparent;
  border: none;
  box-shadow: none;

  color: #25D366;
  text-decoration: none;
  transition: transform 0.25s ease;
}

/* Anillo de pulse: siempre activo, no depende del hover */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.45);
  animation: whatsappPulse 1.8s ease-out infinite;
  pointer-events: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float:active {
  transform: scale(0.94);
}

.whatsapp-icon {
  width: 54px;
  height: 54px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.22));
  transition: transform 0.25s ease;
  position: relative; /* queda por encima del ::after */
  z-index: 1;
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.12);
}

/* ============================================================
   MODAL DETALLE DE PRODUCTO
   Overlay oscuro + dialog centrado con imagen y datos.
   Se abre con openProductDetail() en app.js.
   ============================================================ */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.product-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.product-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  border: none;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(15, 23, 32, 0.22);
  z-index: 301;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.98);
  transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.36, 0.64, 1);
}

.product-modal.is-open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

.product-modal__inner {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}

.product-modal__header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}

.product-modal__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.product-modal__back:hover {
  background: var(--bg);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.product-modal__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 32px 32px 36px;
}

.product-modal__image {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f0f4f8, #e8eef4);
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow: hidden;
}

.product-modal__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.product-modal__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.product-modal__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-modal__name {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text);
}

.product-modal__description {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.product-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.87rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.product-modal__meta-item strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 2px;
}

.product-modal__price {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.product-modal__price .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.product-modal__price .amount {
  font-size: 2rem;
  font-weight: 800;
  color: var(--surface-2);
  letter-spacing: -0.03em;
}

.product-modal__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-modal__actions .btn--primary {
  flex: 1;
  justify-content: center;
  min-height: 46px;
}

.product-modal__actions .btn--whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  flex: 1;
  justify-content: center;
}

.product-modal__actions .btn--whatsapp:hover {
  background: #1da851;
}

/* Modal responsive */
@media (max-width: 640px) {
  .product-modal {
    width: 100vw;
    max-height: 100vh;
    border-radius: 20px 20px 0 0;
    inset: auto 0 0 0;
    margin: 0;
    transform: translateY(40px) scale(1);
  }

  .product-modal.is-open {
    transform: translateY(0) scale(1);
  }

  .product-modal__body {
    grid-template-columns: 1fr;
    padding: 20px 20px 28px;
    gap: 20px;
  }

  .product-modal__image {
    aspect-ratio: 1 / 1;
    max-height: min(360px, 48vh);
    padding: 16px;
  }

  .product-modal__name {
    font-size: 1.2rem;
  }

  .product-modal__price .amount {
    font-size: 1.6rem;
  }
}
