/* ============================================================
   YENGLE — components.css
   Header, buttons, cards, cart, footer and UI components
   ============================================================ */

/* ─── Site Header ────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  background: rgba(0, 0, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.nav-logo img { height: 90px; object-fit: contain; }
.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
}
.nav-menu a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-gray-light);
  transition: color var(--transition);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}
.nav-menu a:hover { color: var(--color-white); }
.nav-menu a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-primary-blue);
}
.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-whatsapp);
  color: white;
  padding: 8px 18px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 14px;
  transition: opacity var(--transition);
  white-space: nowrap;
}
.nav-whatsapp:hover { opacity: 0.85; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px; left: 0; right: 0;
    background: rgba(0, 0, 17, 0.98);
    flex-direction: column;
    padding: 0 24px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .nav-menu.open { max-height: 400px; padding: 16px 24px; }
  .nav-menu li { border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-menu a { display: block; padding: 14px 0; }
  .hamburger { display: flex; }
  .phone-text { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary { background: #0008CC; color: white; }
.btn-primary:hover {
  background: #0005AA;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,8,180,0.4);
}
.btn-outline { background: transparent; border-color: white; color: white; }
.btn-outline:hover { background: white; color: var(--color-bg-dark); }
.btn-whatsapp { background: var(--color-whatsapp); color: white; border-color: transparent; }
.btn-whatsapp:hover { background: #1da851; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 17px; }

/* ─── Product Card ───────────────────────────────────────── */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e6ef;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(26,26,255,0.14);
  border-color: rgba(26,26,255,0.35);
}
.product-card__image-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #ffffff;
  overflow: hidden;
  display: block;
}
.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image { transform: scale(1.06); }
.product-card__badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: var(--font-heading);
}
.badge--featured { background: #1A1AFF; color: white; }
.badge--out { background: rgba(220,50,50,0.85); color: white; }
.badge--approx { background: rgba(255,160,0,0.9); color: white; }
.badge--oferta { background: #e11d48; color: white; }
.badge--brand {
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(0,0,0,0.15);
  color: white;
}
.product-card__body {
  padding: 14px 16px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.product-card__brand {
  font-family: var(--font-heading);
  font-size: 10px;
  color: #1A1AFF;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
}
.product-card__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: #1a1f36;
  line-height: 1.35;
  flex: 1;
  text-decoration: none;
  display: block;
}
.product-card__name:hover { color: #1A1AFF; }
.product-card__price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1f36;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.product-card__price-old {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9aa1b5;
  text-decoration: line-through;
}
.product-card__price--unavailable {
  color: #aab0c2;
  font-size: 13px;
  font-style: italic;
}
.product-card__actions {
  padding: 0 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Xtronger Card Variant ──────────────────────────────── */
.xtronger-card {
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(26,26,255,0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.xtronger-card:hover {
  border-color: rgba(26,26,255,0.55);
  box-shadow: 0 8px 32px rgba(26,26,255,0.18);
}
.xtronger-card .product-card__image-wrap {
  aspect-ratio: 1/1;
  background: #fff;
}
.xtronger-card .product-card__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}
.xtronger-card .product-card__body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.xtronger-card .product-card__name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: white;
  line-height: 1.3;
}
.xtronger-card .product-card__price {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-primary-blue);
}
.xtronger-card .product-card__actions {
  padding: 0 14px 14px;
}

/* ─── Carousel ───────────────────────────────────────────── */
.carousel-wrapper { position: relative; overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,26,255,0.8);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  transition: background var(--transition);
}
.carousel-btn:hover { background: var(--color-primary-blue); }
.carousel-btn--prev { left: 8px; }
.carousel-btn--next { right: 8px; }

/* ─── Brand Carousel (Infinite CSS Scroll) ───────────────── */
.brands-overflow { overflow: hidden; }
.brands-track {
  display: flex;
  gap: 48px;
  animation: scroll-brands 30s linear infinite;
  width: max-content;
}
.brands-track:hover { animation-play-state: paused; }
@keyframes scroll-brands {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.brand-name-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #4B5563;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color var(--transition);
}
.brands-track:hover .brand-name-text { color: #4B5563; }
.brands-track:hover .brand-name-text:hover { color: #111827; }
.brands-track:hover .brand-name-text.featured { color: var(--color-primary-blue); }

/* ─── Cart Toggle Button ─────────────────────────────────── */
/* ─── Nav Search Overlay ─────────────────────────────────── */
#nav-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,10,0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
#nav-search-overlay.active {
  opacity: 1;
  pointer-events: all;
}
#nav-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0d0d22;
  border: 1px solid rgba(26,26,255,0.4);
  border-radius: 14px;
  padding: 14px 20px;
  width: calc(100% - 32px);
  max-width: 920px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  transform: translateY(-10px);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
#nav-search-overlay.active #nav-search-box { transform: translateY(0); }
#nav-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: var(--font-body);
}
#nav-search-input::placeholder { color: rgba(255,255,255,0.3); }
#nav-search-close {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}
#nav-search-close:hover { color: #fff; }
#nav-search-results {
  width: calc(100% - 32px);
  max-width: 920px;
  height: calc(100vh - 170px);
  margin-top: 8px;
  background: #0d0d22;
  border: 1px solid rgba(26,26,255,0.25);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: none;
  flex-direction: column;
}
#nav-search-results.has-results { display: flex; flex-direction: column; }
/* Two-panel layout */
.nsr-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 1fr;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
/* ── Featured product (left) ── */
.nsr-featured {
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
  overflow: hidden;
}
.nsr-featured:hover { background: rgba(26,26,255,0.10); }
.nsr-featured-img-wrap {
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 10px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
}
.nsr-featured-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.nsr-featured-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.nsr-featured-label {
  font-size: 9px;
  color: #1A1AFF;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}
.nsr-featured-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  font-family: var(--font-heading);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nsr-featured-brand {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nsr-featured-price {
  font-size: 15px;
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-heading);
}
.nsr-featured-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nsr-featured-cta {
  display: inline-block;
  font-size: 11px;
  color: #1A1AFF;
  font-weight: 600;
  margin-top: 2px;
}
/* ── List (right) ── */
.nsr-list {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
}
.nsr-list .nsr-ver-todos {
  margin-top: auto;
  flex-shrink: 0;
}
.nsr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
  flex-shrink: 0;
}
.nsr-item:last-of-type { border-bottom: none; }
.nsr-item:hover { background: rgba(26,26,255,0.12); }
.nsr-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 3px;
  box-sizing: border-box;
  flex-shrink: 0;
}
.nsr-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nsr-brand {
  font-size: 10px;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.nsr-name {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nsr-price {
  font-size: 12px;
  color: #ffffff;
  font-weight: 600;
  font-family: var(--font-heading);
}
.nsr-ver-todos {
  display: block;
  text-align: center;
  padding: 11px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  transition: color 0.2s, background 0.2s;
}
.nsr-ver-todos:hover { color: #fff; background: rgba(26,26,255,0.12); }
.nsr-empty {
  padding: 32px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin: 0;
  text-align: center;
}
@media (max-width: 600px) {
  #nav-search-overlay { padding-top: 16px; }
  #nav-search-results { height: calc(100dvh - 110px); }

  /* Panel: la tarjeta destacada ocupa altura natural, la lista el resto */
  .nsr-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  /* Tarjeta destacada: layout horizontal (imagen a la izquierda) */
  .nsr-featured {
    flex-direction: row;
    align-items: center;
    flex-shrink: 0;
    padding: 12px 16px;
    gap: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nsr-featured-img-wrap {
    width: 72px;
    height: 72px;
    flex: none;
    flex-shrink: 0;
  }
  .nsr-featured-img { width: 100%; height: 100%; }
  .nsr-featured-desc { display: none; }

  /* Lista: toma el espacio restante y scrollea */
  .nsr-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
  }
}

.nav-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-search-btn:hover {
  background: rgba(26,26,255,0.2);
  border-color: #1A1AFF;
  color: #fff;
}
.cart-toggle {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}
.cart-toggle:hover { background: rgba(255,255,255,0.08); color: #5599ff; }
.cart-badge {
  position: absolute;
  top: 0; right: 0;
  background: #1A1AFF;
  color: white;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0 3px;
  border: 2px solid #050c1e;
}
.cart-header h3 { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; color: white; margin: 0; }
.cart-header button { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 20px; cursor: pointer; padding: 4px 8px; border-radius: 6px; transition: color 0.2s, background 0.2s; }
.cart-header button:hover { color: white; background: rgba(255,255,255,0.08); }

/* ─── Cart Panel ─────────────────────────────────────────── */
#cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: #00001A;
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 2000;
  transition: right 0.35s ease;
  display: flex;
  flex-direction: column;
}
#cart-panel.open { right: 0; }
#cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1999;
  display: none;
  cursor: pointer;
}
#cart-overlay.visible { display: block; }
.cart-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-items {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 20px 24px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: flex-start;
  cursor: pointer;
}
.cart-item__img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: white;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
}
.cart-footer {
  flex-shrink: 0;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 4px;
}
.cart-total-amount {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: white;
}
.cart-btn-primary {
  width: 100%;
  background: #1A1AFF;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: 0.5px;
  transition: background 0.2s, transform 0.15s;
}
.cart-btn-primary:hover { background: #0000dd; transform: translateY(-1px); }
.cart-btn-wa {
  width: 100%;
  background: #25d366;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s, transform 0.15s;
  font-family: inherit;
  margin-top: 8px;
}
.cart-btn-wa:hover { background: #1fb958; transform: translateY(-1px); }
.cart-btn-mp {
  width: 100%;
  background: #009ee3;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.cart-btn-mp:hover { background: #0080c0; }
.cart-btn-wa {
  width: 100%;
  background: rgba(37,211,102,0.15);
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.3);
  border-radius: 10px;
  padding: 13px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}
.cart-btn-wa:hover { background: rgba(37,211,102,0.25); }
.cart-btn-back {
  width: 100%;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  border-radius: 8px;
  padding: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}
.cart-btn-back:hover { color: white; border-color: rgba(255,255,255,0.4); }
.cart-btn-clear {
  width: 100%;
  background: none;
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.35);
  border-radius: 8px;
  padding: 9px;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
  font-family: inherit;
}
.cart-btn-clear:hover { color: rgba(255,100,100,0.8); border-color: rgba(255,100,100,0.3); }

@media (max-width: 768px) {
  #cart-panel {
    height: 100dvh;
  }
  .cart-footer {
    padding: 14px 20px;
    gap: 8px;
  }
  .cart-btn-primary { padding: 12px; }
  .cart-btn-wa { padding: 11px; }
  .cart-btn-clear { padding: 8px; }
}

/* Tablet horizontal: carrito con altura dinámica para que los 3 botones sean visibles */
@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) and (pointer: coarse) {
  #cart-panel {
    height: 100dvh;
  }
  .cart-footer {
    padding: 14px 24px;
    gap: 8px;
  }
  .cart-btn-primary { padding: 12px; }
  .cart-btn-wa { padding: 11px; }
  .cart-btn-clear { padding: 8px; }
}

/* Tablet vertical: buscador con altura completa y lista que llena el panel */
@media (min-width: 601px) and (max-width: 1024px) and (orientation: portrait) and (pointer: coarse) {
  #nav-search-results {
    height: calc(100dvh - 130px);
    max-width: 100%;
    width: calc(100% - 32px);
  }
  .nsr-panel {
    grid-template-columns: 220px 1fr;
    height: 100%;
  }
  .nsr-list {
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Celular horizontal: carrito y buscador adaptados al poco espacio vertical */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  /* Carrito: altura completa */
  #cart-panel { height: 100dvh; }

  /* Footer: grid — total ocupa todo, botones en fila: Continuar más ancho, WA e ícono trash */
  .cart-footer {
    padding: 10px 16px;
    gap: 0;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto 44px;
    column-gap: 8px;
    row-gap: 8px;
    align-items: stretch;
  }
  .cart-total-row {
    grid-column: 1 / -1;
    margin-bottom: 0;
    font-size: 13px;
  }
  .cart-total-amount { font-size: 1.05rem; }

  /* Todos los botones: misma altura, sin desbordamiento */
  .cart-footer .cart-btn-primary,
  .cart-footer .cart-btn-wa,
  .cart-footer .cart-btn-clear,
  .cart-footer .cart-btn-back {
    width: 100%;
    min-width: 0;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
  }

  /* "Continuar compra": azul completo, texto compacto */
  .cart-footer .cart-btn-primary {
    background: #1A1AFF;
    color: white;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 0 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
  }

  /* WA: verde completo, solo ícono SVG */
  .cart-footer .cart-btn-wa {
    background: #25D366;
    border: none;
    color: transparent;
    font-size: 0;
    gap: 0;
    padding: 0;
    margin-top: 0;
  }
  .cart-footer .cart-btn-wa svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    display: block;
    fill: white;
  }

  /* Vaciar carrito: rojo completo, solo ícono tacho */
  .cart-footer .cart-btn-clear {
    background: #DC2626;
    border: none;
    color: transparent;
    font-size: 0;
    padding: 0;
  }
  .cart-footer .cart-btn-clear::before {
    content: '';
    display: block;
    width: 22px;
    height: 22px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'%3E%3C/path%3E%3Cline x1='10' y1='11' x2='10' y2='17'%3E%3C/line%3E%3Cline x1='14' y1='11' x2='14' y2='17'%3E%3C/line%3E%3C/svg%3E") center/contain no-repeat;
  }
}

/* Celular horizontal: buscador en columna única, featured compacto arriba */
@media (max-height: 500px) and (orientation: landscape) and (pointer: coarse) {
  #nav-search-results {
    height: calc(100dvh - 80px);
  }
  /* Ocultar el featured — todos los resultados en la lista */
  .nsr-featured { display: none; }
  /* Panel ocupa todo con la lista */
  .nsr-panel {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
  /* Lista scrolleable: ocupa todo el alto */
  .nsr-list {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    height: 100%;
  }
  #nav-search-results { overflow: hidden; }
}

.remove-btn {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.25);
  font-size: 14px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.remove-btn:hover { color: rgba(255,100,100,0.8); background: rgba(255,100,100,0.08); }

/* ─── Checkout: order summary ────────────────────────────── */
.co-section {
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.co-section:last-child { border-bottom: none; }
.co-section-title {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.co-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.co-summary-img-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.co-summary-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
}
.co-summary-qty {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #1A1AFF;
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-summary-name {
  flex: 1;
  font-size: 12px;
  color: #ccc;
  line-height: 1.3;
}
.co-summary-price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: white;
  white-space: nowrap;
}
.co-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 12px 0; }
.co-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 6px;
}
.co-totals-total {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

/* ─── Checkout: form ─────────────────────────────────────── */
.co-form { padding: 0; }
.co-field { margin-bottom: 12px; }
.co-field label {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
}
.co-field input,
.co-field select,
.co-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, background 0.2s;
}
.co-field input:focus,
.co-field select:focus,
.co-field textarea:focus {
  border-color: #1A1AFF;
  background: rgba(26,26,255,0.08);
}
.co-field input::placeholder,
.co-field textarea::placeholder { color: rgba(255,255,255,0.25); }
.co-field select option { background: #1a1f36; color: white; }
.co-field textarea { resize: vertical; min-height: 60px; }
.co-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* ─── Checkout: payment options ──────────────────────────── */
.co-payment-options { display: flex; flex-direction: column; gap: 8px; }
.co-payment-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.co-payment-opt:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.07); }
.co-payment-opt.selected {
  border-color: #1A1AFF;
  background: rgba(26,26,255,0.1);
}
.co-payment-opt strong {
  display: block;
  font-size: 13px;
  color: white;
  font-weight: 600;
  margin-bottom: 2px;
}
.co-payment-opt small {
  font-size: 11px;
  color: rgba(255,255,255,0.4);
}
.co-payment-opt--soon {
  opacity: 0.6;
  cursor: not-allowed;
  position: relative;
}
.co-payment-opt--soon:hover { border-color: rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); }
.co-soon-badge {
  margin-left: auto;
  background: rgba(255,160,0,0.15);
  border: 1px solid rgba(255,160,0,0.3);
  color: #ffa500;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  white-space: nowrap;
}

/* ─── Cart item improved ─────────────────────────────────── */
.cart-item__img-wrap {
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  padding: 4px;
  box-sizing: border-box;
}
.cart-item__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-size: 12px;
  color: #ccc;
  line-height: 1.3;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__unit { font-size: 11px; color: rgba(255,255,255,0.35); margin-bottom: 6px; }
.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.qty-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
  background: rgba(255,255,255,0.08);
}
.cart-item__line {
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  color: #ffffff;
}

/* ─── WhatsApp Floating Button ───────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--color-whatsapp);
  animation: pulse-wa 2s ease-out infinite;
  z-index: -1;
}
@keyframes pulse-wa {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.8); opacity: 0; }
}
.whatsapp-float svg { width: 30px; height: 30px; fill: white; }

/* ─── Toast Notification ─────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px; right: 28px;
  background: var(--color-primary-blue);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  z-index: 3000;
  transform: translateY(12px);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ─── Page Banner ────────────────────────────────────────── */
.page-banner {
  background: var(--color-gradient);
  padding: 120px 0 48px;
  text-align: center;
}
.page-banner__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 700;
}
.page-banner__breadcrumb {
  color: var(--color-gray-mid);
  font-size: 14px;
  margin-top: 10px;
}
.page-banner__breadcrumb a {
  color: var(--color-gray-light);
  transition: color var(--transition);
}
.page-banner__breadcrumb a:hover { color: white; }

/* ─── Filter Toggle Bar ───────────────────────────────────── */
.filter-toggle-bar {
  background: rgba(5,5,15,0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 80px;
  z-index: 101;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* Punto de anclaje al cambiar de página en la tienda — deja lugar para el
   header fijo (80px) + la barra "Mostrar filtros" sticky (33px). */
#results-count { scroll-margin-top: 125px; }
.filter-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.3);
  padding: 10px 12px;
  cursor: pointer;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-family: var(--font-body);
  transition: color 0.2s;
  line-height: 1;
  vertical-align: middle;
}
.filter-toggle-btn:hover { color: rgba(255,255,255,0.7); }
.filter-toggle-chevron { transition: transform 0.3s ease; }
.filter-toggle-btn[aria-expanded="true"] .filter-toggle-chevron { transform: rotate(180deg); }

.ftb-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ftb-arrows span {
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255,255,255,0.22);
  border-top: 1.5px solid rgba(255,255,255,0.22);
  opacity: 0;
}
.ftb-arrows--left  span { transform: rotate(45deg); }
.ftb-arrows--right span { transform: rotate(-135deg); }

.ftb-arrows--left  span:nth-child(1) { animation: ftb-pulse-l 1.6s ease-in-out 0.4s infinite; }
.ftb-arrows--left  span:nth-child(2) { animation: ftb-pulse-l 1.6s ease-in-out 0.2s infinite; }
.ftb-arrows--left  span:nth-child(3) { animation: ftb-pulse-l 1.6s ease-in-out 0.0s infinite; }
.ftb-arrows--right span:nth-child(1) { animation: ftb-pulse-r 1.6s ease-in-out 0.0s infinite; }
.ftb-arrows--right span:nth-child(2) { animation: ftb-pulse-r 1.6s ease-in-out 0.2s infinite; }
.ftb-arrows--right span:nth-child(3) { animation: ftb-pulse-r 1.6s ease-in-out 0.4s infinite; }

@keyframes ftb-pulse-l {
  0%   { opacity: 0; transform: rotate(45deg) translateX(-5px); }
  50%  { opacity: 0.55; }
  100% { opacity: 0; transform: rotate(45deg) translateX(2px); }
}
@keyframes ftb-pulse-r {
  0%   { opacity: 0; transform: rotate(-135deg) translateX(5px); }
  50%  { opacity: 0.55; }
  100% { opacity: 0; transform: rotate(-135deg) translateX(-2px); }
}

/* ─── Filter Bar ─────────────────────────────────────────── */
.filter-bar {
  background: rgba(5,5,15,0.92);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  position: sticky;
  top: 120px;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
  overflow: hidden;
  max-height: 200px;
  padding: 16px 0;
  opacity: 1;
}
.filter-bar--hidden {
  max-height: 0;
  padding: 0;
  opacity: 0;
  border-bottom: none;
  box-shadow: none;
}
.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-input {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  min-width: 220px;
  outline: none;
  transition: border-color var(--transition);
}
.filter-input:focus { border-color: var(--color-primary-blue); }
.filter-input::placeholder { color: rgba(255,255,255,0.45); }
.filter-select {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23ffffff' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.filter-select:focus { border-color: var(--color-primary-blue); }
.filter-select option { background: #0d0d20; color: #ffffff; }
.filter-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.85);
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
  font-family: var(--font-body);
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover { border-color: #1A1AFF; color: #ffffff; background: rgba(26,26,255,0.25); }
.filter-btn.active {
  background: var(--color-primary-blue);
  border-color: var(--color-primary-blue);
  color: white;
}
.filter-separator {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,0.15);
  align-self: center;
  flex-shrink: 0;
}
.filter-btn--special {
  border-color: rgba(224,192,96,0.6);
  color: #f0c840;
  background: rgba(240,168,0,0.12);
}
.filter-btn--special:hover { border-color: #f0a800; color: #ffd040; background: rgba(240,168,0,0.25); }
.filter-btn--special.active { background: #f0a800; border-color: #f0a800; color: white; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle button {
  padding: 8px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.view-toggle button.active {
  background: #1A1AFF;
  color: white;
  border-color: #1A1AFF;
}
@media (max-width: 768px) {
  .filter-input { min-width: 100%; }
  .filter-bar__inner { gap: 8px; }
  .filter-bar { max-height: 420px; top: 114px; }
  .filter-bar--hidden { max-height: 0; padding: 0; }
}

/* ─── Products Grid ──────────────────────────────────────── */
#products-grid.view-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
#products-grid.view-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
#products-grid.view-list .product-card { flex-direction: row; }
#products-grid.view-list .product-card__image-wrap {
  width: 140px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
#products-grid.view-list .product-card__image { height: 140px; }
#products-grid.view-list .product-card__actions {
  justify-content: center;
  padding: 16px;
}
@media (max-width: 1200px) {
  #products-grid.view-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  #products-grid.view-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 580px) {
  #products-grid.view-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #products-grid.view-list .product-card { flex-direction: column; }
  #products-grid.view-list .product-card__image-wrap { width: 100%; }
}

/* ─── Pagination ─────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination--top {
  margin-top: 0;
  justify-content: flex-end;
}
.pagination--top button {
  min-width: 28px !important;
  height: 28px !important;
  font-size: 12px !important;
  padding: 0 7px !important;
}
.pagination button {
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid #dde1ec;
  color: #3a4060;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
  font-weight: 600;
}
.pagination button.active {
  background: var(--color-primary-blue);
  border-color: transparent;
  color: white;
}
.pagination button:hover:not(.active):not([disabled]) {
  background: #eef0ff;
  color: #1A1AFF;
  border-color: #1A1AFF;
}
.pagination button[disabled] { opacity: 0.35; cursor: default; }

/* ─── Product Card Action Buttons ───────────────────────── */
.btn-add-cart {
  width: 100%;
  background: #1A1AFF;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-add-cart:hover { background: #0000dd; transform: translateY(-1px); }
.btn-add-cart:active { transform: translateY(0); }

.product-card__actions-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.btn-detail {
  flex: 1;
  background: #f0f2f7;
  border: 1px solid #dde1ec;
  color: #4a5068;
  border-radius: 8px;
  padding: 8px 10px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-detail:hover { background: #eef0ff; color: #1A1AFF; border-color: #1A1AFF; }

.btn-wa {
  background: rgba(37,211,102,0.12);
  border: 1px solid rgba(37,211,102,0.25);
  color: #25D366;
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-wa:hover { background: rgba(37,211,102,0.22); }

/* ─── Category Cards ─────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 280px;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.category-card__bg {
  position: absolute;
  inset: 0;
  background: var(--color-gradient);
}
.category-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.4s ease;
}
.category-card:hover .category-card__bg img { transform: scale(1.06); }
.category-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.2) 60%,
    transparent 100%
  );
  transition: background 0.3s;
}
.category-card:hover .category-card__overlay {
  background: linear-gradient(
    to top,
    rgba(0,0,11,0.9) 0%,
    rgba(0,0,0,0.4) 60%,
    rgba(0,0,0,0.1) 100%
  );
}
.category-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}
.category-card__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 14px;
}
@media (max-width: 768px) {
  .categories-grid { grid-template-columns: 1fr; }
  .category-card { height: 220px; }
}

/* ─── Site Footer ────────────────────────────────────────── */
.site-footer {
  background: #000008;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 40px;
}
.footer-logo { margin-bottom: 16px; }
.footer-desc { color: var(--color-gray-mid); font-size: 14px; line-height: 1.7; font-family: var(--font-heading); font-weight: 400; letter-spacing: 0.3px; }
.footer-heading {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #ffffff;
  margin-bottom: 22px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1A1AFF;
  position: relative;
}
.footer-heading::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-accent-red);
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: var(--color-gray-light);
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}
.footer-links a:hover { color: white; }
.footer-contact-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--color-gray-light);
  font-size: 14px;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.footer-contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; justify-content: center; }
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-light);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--color-primary-blue);
  border-color: transparent;
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  margin-top: 40px;
  text-align: center;
  color: var(--color-gray-mid);
  font-size: 13px;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─── Product Card Badge (featured homepage cards) ───────── */
.product-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--color-primary-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  z-index: 2;
}
.product-card__badge--blue { background: var(--color-primary-blue); }
.product-card__badge--red  { background: var(--color-accent-red); }

/* ─── Button small ───────────────────────────────────────── */
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  margin-top: auto;
}

/* ─── Product card img (inside image-wrap) ───────────────── */
.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__image-wrap img { transform: scale(1.04); }

/* 6to producto: solo visible en celular */
.product-card--mobile-only { display: none; }
@media (max-width: 768px) {
  .product-card--mobile-only { display: flex; }
}

/* "Ver todos los productos" link — visible en todos los formatos */
.featured-ver-todos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  color: #888;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
}
.featured-ver-todos:hover { color: #aaa; }
.featured-ver-todos__arrow {
  animation: arrow-bounce 1.2s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(5px); }
}

/* ─── Mobile Global Fixes ────────────────────────────────── */
@media (max-width: 768px) {
  /* Nav: mover logo hacia la izquierda (compensar padding del container) */
  .site-header .nav-logo { margin-left: -16px; }

  /* Nav: evitar que el botón WhatsApp empuje elementos */
  .site-header .btn-whatsapp .phone-text { display: none; }

  /* Cart panel: ancho completo en móvil */
  .cart-panel { width: 100% !important; max-width: 100vw; }

  /* Search overlay */
  #nav-search-box { padding: 12px 16px; gap: 10px; }
  #nav-search-input { font-size: 16px; } /* evita zoom en iOS */
}

@media (max-width: 480px) {
  /* Producto destacado cards: texto más pequeño */
  .product-card__name { font-size: 0.82rem; }
  .product-card__price { font-size: 1.1rem; }

  /* Filtro tienda: wrap correcto */
  .filter-bar { flex-wrap: wrap; }
  .filter-bar__inner { flex-wrap: wrap; }

  /* Paginación más compacta */
  .pagination .page-btn { padding: 6px 10px; font-size: 13px; }

  /* Sección categorías: 1 columna */
  .categories-grid { grid-template-columns: 1fr; }
}
