/* ═══════════════════════════════════════════
   Tema v2 — base compartida (Home, Shop, ...)
   Prefijo: v2-  · Solo se carga en páginas del tema v2
═══════════════════════════════════════════ */

body.theme-v2 {
  --app-bg: #ffffff;
  --v2-ink: #1d1d1f;
  --v2-muted: #6f6f76;
  --v2-line: #ececef;
  --v2-soft: #f4f4f5;
  --v2-accent: var(--color-primario, #ff91b7);
  --v2-shadow: 0 2px 10px rgba(20, 24, 35, 0.05);
  --v2-shadow-hover: 0 6px 20px rgba(20, 24, 35, 0.09);
  --v2-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  padding-top: 54px;
  color: var(--v2-ink);
}

.v2-main {
  font-family: var(--v2-font);
  padding-bottom: 56px;
}

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

.v2-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.v2-section {
  margin-top: 48px;
}

/* Entre dos secciones seguidas: línea fina, repartiendo el mismo espacio arriba y abajo */
.v2-section + .v2-section {
  margin-top: 24px;
}

.v2-section + .v2-section::before {
  content: "";
  display: block;
  height: 1px;
  margin-bottom: 24px;
  background: var(--v2-line);
}

.v2-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.v2-section-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--v2-ink);
}

.v2-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--v2-ink);
  text-decoration: underline;
  text-decoration-color: rgba(29, 29, 31, 0.25);
  text-underline-offset: 3px;
  white-space: nowrap;
}

.v2-link:hover {
  text-decoration-color: var(--v2-ink);
}

/* ── Botones ─────────────────────────────── */

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--v2-font);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.v2-btn--dark {
  background: var(--v2-ink);
  color: #fff;
}

.v2-btn--dark:hover {
  background: #000;
}

.v2-btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(255, 255, 255, 0.85);
  color: var(--v2-ink);
}

.v2-btn--ghost:hover {
  background: #fff;
}

.v2-btn--outline {
  background: #fff;
  border-color: #d6d6db;
  color: var(--v2-ink);
}

.v2-btn--outline:hover {
  border-color: var(--v2-ink);
}

.v2-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--v2-ink);
  box-shadow: 0 1px 4px rgba(20, 24, 35, 0.1);
}

/* ── Tarjeta de producto ─────────────────── */

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

.v2-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.v2-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.v2-card-link:hover .v2-card-media {
  box-shadow: var(--v2-shadow-hover);
}

.v2-card-media img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10%;
  object-fit: contain;
}

.v2-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--v2-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.v2-badge--muted {
  background: #fff;
  border: 1px solid var(--v2-line);
  color: var(--v2-muted);
}

.v2-card-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  background: #fff;
  color: var(--v2-accent);
  cursor: pointer;
}

.v2-card-fav svg {
  width: 17px;
  height: 17px;
}

.v2-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 10px 2px 0;
}

.v2-card-cat {
  margin: 0;
  overflow: hidden;
  color: var(--v2-muted);
  font-size: 11px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v2-card-name {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 3px 0 6px;
  overflow: hidden;
  color: var(--v2-ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.v2-card-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin-top: auto;
}

.v2-price {
  font-size: 14px;
  font-weight: 600;
}

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

/* ── Cabecera de página (recuadro con el tono de la marca) ── */

.v2-pagehead {
  margin-top: 12px;
  padding: 26px 22px 22px;
  border-radius: 24px;
  background: #f5eef1;
  background: color-mix(in srgb, var(--v2-accent) 16%, #ffffff);
  color: var(--v2-ink);
}

.v2-pagehead-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.7;
}

.v2-pagehead-title {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

/* ── Tarjeta de categoría (collage) ──────── */

.v2-catcard {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border: 1px solid var(--v2-line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--v2-shadow);
  color: var(--v2-ink);
  text-decoration: none;
  transition: box-shadow 0.2s ease;
}

.v2-catcard:hover {
  box-shadow: var(--v2-shadow-hover);
}

/* 1 grande + 2 chicas */
.v2-catcard-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 6px;
  aspect-ratio: 1 / 1;
}

.v2-catcard-media--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.v2-catcard-media--3 {
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
}

.v2-catcard-media--3 .v2-catcard-tile:first-child {
  grid-row: span 2;
}

.v2-catcard-tile {
  position: relative;
  border-radius: 14px;
  background: var(--v2-soft);
  overflow: hidden;
}

.v2-catcard-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.v2-catcard-media--3 .v2-catcard-tile:not(:first-child) img {
  padding: 6px;
}

.v2-catcard-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b4b4bb;
}

.v2-catcard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 4px 2px 6px;
}

.v2-catcard-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v2-catcard-name {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.v2-catcard-count {
  margin-top: 1px;
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-catcard .v2-arrow {
  width: 28px;
  height: 28px;
  background: var(--v2-soft);
  box-shadow: none;
}

/* ── Avisos (css/Toast.css) ──
   Mismo tamaño y letra en todas las páginas del tema, incluido el carrito (.toast de Cart.js). */
body.theme-v2 .cart-toast,
body.theme-v2 .cart-toast * {
  box-sizing: border-box;
}

body.theme-v2 .cart-toast {
  font-family: var(--v2-font);
}

/* ── Header compartido (components/header.php) ──
   Solo cambia su aspecto en el tema v2. Va con body.theme-v2 para ganarle a
   css/Header.css, que el header carga después de esta hoja. */

body.theme-v2 .cpt-header {
  border-bottom: 1px solid var(--v2-line);
  background-color: rgba(255, 255, 255, 0.92);
}

/* Iconos del header con el mismo trazo que los botones del tema (bolsa, lupa, menú, corazón).
   Las imágenes originales quedan transparentes encima: siguen recibiendo el clic
   (Home.js/Header.js escuchan sobre ellas) y el dibujo nuevo va debajo con una máscara. */
body.theme-v2 .cpt-logo,
body.theme-v2 #cpt-search-icon,
body.theme-v2 #cartIcon,
body.theme-v2 .cpt-desktop-fav {
  position: relative;
}

body.theme-v2 .cpt-menu-icon,
body.theme-v2 #cpt-search-icon img,
body.theme-v2 #cartIcon img,
body.theme-v2 .cpt-desktop-fav img {
  position: relative;
  z-index: 1;
  opacity: 0;
}

body.theme-v2 .cpt-logo::after,
body.theme-v2 #cpt-search-icon::after,
body.theme-v2 #cartIcon::after,
body.theme-v2 .cpt-desktop-fav::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  margin: auto;
  background: var(--v2-ink);
  -webkit-mask: var(--v2-icon) center / contain no-repeat;
  mask: var(--v2-icon) center / contain no-repeat;
  pointer-events: none;
}

body.theme-v2 .cpt-logo {
  --v2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M3 6h18M3 12h18M3 18h12'/%3E%3C/svg%3E");
}

body.theme-v2 #cpt-search-icon {
  --v2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='M21 21l-5.2-5.2'/%3E%3C/svg%3E");
}

body.theme-v2 #cartIcon {
  --v2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}

body.theme-v2 .cpt-desktop-fav {
  --v2-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* Punto de notificaciones sin leer sobre la foto de perfil */
body.theme-v2 .cpt-user-dot {
  position: absolute;
  top: 4px;
  right: 3px;
  z-index: 2;
  width: 11px;
  height: 11px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--color-primario, #ff91b7);
  box-sizing: border-box;
  pointer-events: none;
}

/* El contador del carrito va encima del dibujo */
body.theme-v2 #cartIcon .cpt-notification-badge {
  z-index: 2;
}

@media (max-width: 1023px) {
  /* Menú a la izquierda, marca al centro, iconos a la derecha */
  body.theme-v2 .cpt-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    padding: 0 10px;
  }

  body.theme-v2 .cpt-logo {
    justify-self: start;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

  body.theme-v2 .cpt-menu-icon {
    width: 24px;
    height: 24px;
  }

  body.theme-v2 .cpt-header-brand--inline {
    display: flex;
    justify-self: center;
    align-items: center;
    max-width: 36vw;
    min-width: 0;
    color: var(--v2-ink);
    text-decoration: none;
  }

  body.theme-v2 .cpt-header-brand-inner {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  body.theme-v2 .cpt-header-brand-logo {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    object-fit: contain;
  }

  /* Con logo, en móvil basta el logo (el nombre no cabe junto a los iconos) */
  body.theme-v2 .cpt-header-brand-logo + .cpt-header-brand-name {
    display: none;
  }

  body.theme-v2 .cpt-header-brand-name {
    overflow: hidden;
    font-family: var(--v2-font);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.theme-v2 .cpt-nav-icons {
    justify-self: end;
    gap: 0;
  }

  body.theme-v2 .cpt-icon {
    width: 40px;
    height: 40px;
  }

  body.theme-v2 .cpt-icon img:not(.cpt-user-img) {
    width: 22px;
    height: 22px;
  }

  body.theme-v2 .cpt-user-img {
    width: 28px;
    height: 28px;
  }

  body.theme-v2 .cpt-notification-badge {
    top: 3px;
    right: 2px;
    width: auto;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    box-sizing: border-box;
    font-family: var(--v2-font);
    font-size: 9px;
    font-weight: 700;
  }
}

/* ── Campos de formulario en móvil ──
   Safari en iPhone hace zoom al tocar un campo con letra menor a 16px.
   Con 16px no hace zoom (sin bloquear el zoom con los dedos). */
@media (max-width: 1023px) {
  body.theme-v2 input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
  body.theme-v2 select,
  body.theme-v2 textarea {
    font-size: 16px !important;
  }
}

/* ── Panel de búsqueda (components/search.php + js/Header.js) ──
   Solo estilos: la búsqueda en vivo y los recomendados siguen igual. */

body.theme-v2 .search-overlay {
  padding: 16px 16px 40px;
  background: #fff;
  backdrop-filter: none;
  font-family: var(--v2-font);
}

body.theme-v2 .search-overlay *,
body.theme-v2 .search-overlay *::before,
body.theme-v2 .search-overlay *::after {
  box-sizing: border-box;
}

body.theme-v2 .search-box {
  max-width: 720px;
  height: 52px;
  padding: 0 6px 0 48px;
  border: 1px solid #d6d6db;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

body.theme-v2 .search-box:focus-within {
  border-color: var(--v2-ink);
}

/* Lupa dentro del campo */
body.theme-v2 .search-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 18px;
  width: 20px;
  height: 20px;
  background: var(--v2-muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='M21 21l-5.2-5.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='M21 21l-5.2-5.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 16px evita que iPhone haga zoom al escribir */
body.theme-v2 #searchInput {
  height: 100%;
  font-family: var(--v2-font);
  font-size: 16px;
  font-weight: 500;
  color: var(--v2-ink);
}

body.theme-v2 #searchInput::placeholder {
  color: #a3a3aa;
}

/* Cerrar: la imagen original queda transparente (recibe el clic) y se dibuja una X del tema */
body.theme-v2 #closeSearch {
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--v2-soft);
  transition: background-color 0.2s ease;
}

body.theme-v2 #closeSearch:hover {
  background: #e8e8eb;
  opacity: 1;
  transform: none;
}

body.theme-v2 #closeSearch img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

body.theme-v2 #closeSearch::after {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--v2-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

/* Resultados */
body.theme-v2 .search-results {
  max-width: 1100px;
  margin-top: 22px;
  gap: 14px;
}

body.theme-v2 .search-results-header {
  padding: 0 2px;
  color: var(--v2-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

body.theme-v2 .search-results-title--recommended::before {
  width: 7px;
  height: 7px;
  background: var(--v2-accent);
}

body.theme-v2 .search-results-count {
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 500;
}

body.theme-v2 .search-results-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 14px;
}

/* Tarjeta igual a la de la tienda (.v2-card) */
body.theme-v2 .result-item {
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--v2-ink);
}

body.theme-v2 .result-item:hover {
  border: 0;
  box-shadow: none;
  transform: none;
}

body.theme-v2 .result-item .result-media {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--v2-line);
  border-radius: 18px;
  transition: box-shadow 0.2s ease;
}

body.theme-v2 .result-item:hover .result-media {
  box-shadow: var(--v2-shadow-hover);
}

body.theme-v2 .result-item .result-media img {
  padding: 10%;
}

body.theme-v2 .result-item .badge-offer,
body.theme-v2 .result-item .badge-agotado {
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  box-shadow: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: none;
}

body.theme-v2 .result-item .badge-offer {
  background: var(--v2-accent);
}

body.theme-v2 .result-item .badge-agotado {
  border: 1px solid var(--v2-line);
  background: #fff;
  color: var(--v2-muted);
}

body.theme-v2 .result-item .info {
  gap: 6px;
  min-height: 0;
  padding: 0 2px;
}

body.theme-v2 .result-item h4 {
  display: -webkit-box;
  min-height: 2.7em;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

body.theme-v2 .result-item .price,
body.theme-v2 .result-item .price-offer {
  color: var(--v2-ink);
  font-size: 14px;
  font-weight: 600;
}

body.theme-v2 .result-item .price-old {
  color: var(--v2-muted);
  font-size: 12px;
}

body.theme-v2 .search-results .no-results {
  margin-top: 24px;
  color: var(--v2-muted);
  font-size: 14px;
}

@media (min-width: 700px) {
  body.theme-v2 .search-overlay {
    padding: 32px 24px 48px;
  }

  body.theme-v2 .search-results-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px 16px;
  }
}

@media (min-width: 1024px) {
  body.theme-v2 .search-overlay {
    padding: 48px 32px 56px;
  }

  body.theme-v2 .search-results {
    margin-top: 32px;
  }

  body.theme-v2 .search-results-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px 18px;
  }
}

/* ── Footer (templates/shared/footer-v2.php) ── */

.v2-footer {
  margin-top: 48px;
  padding: 32px 20px calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--v2-line);
  background: var(--v2-soft);
  color: var(--v2-ink);
  font-family: var(--v2-font);
}

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

.v2-footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
  max-width: 1240px;
  margin: 0 auto;
}

.v2-footer-brand {
  grid-column: 1 / -1;
  min-width: 0;
}

.v2-footer-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--v2-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.v2-footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.v2-footer-slogan {
  max-width: 360px;
  margin: 12px 0 0;
  color: var(--v2-muted);
  font-size: 13px;
  line-height: 1.55;
}

.v2-footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.v2-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--v2-line);
  border-radius: 50%;
  background: #fff;
  transition: border-color 0.2s ease;
}

.v2-footer-social a:hover {
  border-color: var(--v2-ink);
}

.v2-footer-social img {
  width: 20px;
  height: 20px;
}

.v2-footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.v2-footer-title {
  margin: 0 0 2px;
  color: var(--v2-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.v2-footer-col a {
  color: var(--v2-ink);
  font-size: 14px;
  text-decoration: none;
}

.v2-footer-col a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.v2-footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-width: 1240px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--v2-line);
  color: var(--v2-muted);
  font-size: 12px;
}

.v2-footer-made {
  opacity: 0.8;
}

@media (min-width: 700px) {
  .v2-footer {
    padding: 40px 24px 24px;
  }

  .v2-footer-inner {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .v2-footer-brand {
    grid-column: auto;
  }

  .v2-footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .v2-footer {
    margin-top: 64px;
    padding: 48px 32px 28px;
  }
}

/* ── Breakpoints ─────────────────────────── */

@media (min-width: 700px) {
  .v2-container {
    padding: 0 24px;
  }

  .v2-pagehead {
    padding: 30px 28px 26px;
  }

  .v2-pagehead-title {
    font-size: 34px;
  }

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

@media (min-width: 1024px) {
  body.theme-v2 {
    padding-top: 62px;
  }

  .v2-container {
    padding: 0 32px;
  }

  .v2-pagehead {
    margin-top: 16px;
    padding: 40px 36px 34px;
    border-radius: 28px;
  }

  .v2-pagehead-title {
    font-size: 44px;
  }

  .v2-section {
    margin-top: 64px;
  }

  .v2-section + .v2-section {
    margin-top: 32px;
  }

  .v2-section + .v2-section::before {
    margin-bottom: 32px;
  }

  .v2-section-head {
    margin-bottom: 22px;
  }

  .v2-section-title {
    font-size: 22px;
  }

  .v2-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .v2-main {
    padding-bottom: 80px;
  }
}

/* ── Pantallas grandes (monitores 2K y más) ──
   Contenido más ancho, header alineado con el contenido y textos un poco más grandes.
   En celular y laptop no cambia nada. */
@media (min-width: 1600px) {
  .v2-container {
    max-width: 1504px;
  }

  /* El header ocupa todo el ancho, pero su contenido se alinea con el de la página */
  body.theme-v2 .cpt-header-top {
    box-sizing: border-box;
    max-width: 1504px;
    margin: 0 auto;
    padding: 0 32px;
  }

  body.theme-v2 .cpt-search-trigger {
    width: 300px;
    font-size: 14px;
  }

  body.theme-v2 .cpt-desktop-nav-link {
    padding: 8px 14px;
    font-size: 14px;
  }

  .v2-pagehead-title {
    font-size: 50px;
  }

  .v2-section-title {
    font-size: 24px;
  }

  /* Listados largos (Tienda, categorías, favoritos): 5 por fila */
  .v2-grid--list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .v2-grid {
    gap: 40px 24px;
  }

  .v2-card-cat {
    font-size: 12px;
  }

  .v2-card-name {
    font-size: 14px;
  }

  .v2-price {
    font-size: 15px;
  }
}
