:root {
  --navy: #0c2340;
  --navy-2: #14355f;
  --blue: #2e6db4;
  --blue-soft: #e8f0fa;
  --red: #c63b32;
  --bg: #f5f7fa;
  --text: #1e2a38;
  --muted: #6b7a8d;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- NAVBAR ---------- */
.shop-nav {
  background: linear-gradient(90deg, var(--navy), var(--navy-2));
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.navbar-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  padding: 2px;
}
.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cart-badge {
  font-size: 0.7rem;
}

/* member toggle */
.member-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  padding: 3px;
}
.toggle-btn {
  border: 0;
  border-radius: 2rem !important;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.3rem 0.9rem;
}
.toggle-btn.active {
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 340px;
  background:
    linear-gradient(100deg, rgba(12, 35, 64, 0.96) 25%, rgba(12, 35, 64, 0.65) 60%, rgba(12, 35, 64, 0.35)),
    url("../img/productos/portada.jpg") center 30% / cover no-repeat;
}
.hero-badge {
  background: var(--red);
  letter-spacing: 0.5px;
}

/* ---------- FILTERS ---------- */
.sticky-filters {
  background: #fff;
  border-bottom: 1px solid #e6eaf0;
  position: sticky;
  top: 68px;
  z-index: 500;
}
.filter-pill {
  border: 1px solid #d8dee8;
  background: #fff;
  color: var(--text);
  border-radius: 2rem;
  padding: 0.35rem 0.95rem;
  font-weight: 500;
}
.filter-pill:hover { background: var(--blue-soft); border-color: var(--blue); color: var(--blue); }
.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}
.search-box { min-width: 220px; }
.search-box .form-control { border-radius: 2rem; padding-left: 1rem; }

/* ---------- PRODUCT CARDS ---------- */
.product-card {
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  background: #fff;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.14);
}
.product-img-wrap {
  height: 220px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #eef1f5;
}
.product-img-wrap.clickable { cursor: zoom-in; }
.product-img-wrap img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.15);
}
.fit-contain { object-fit: contain; padding: 0; }
.fit-cover { object-fit: cover; }

.card-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--blue);
}
.card-title { font-weight: 700; }

.price-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.price-alt {
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-left: 6px;
}
.price-alt-note {
  font-size: 0.78rem;
  color: var(--muted);
}

/* swatches */
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #e0e4ea;
  cursor: pointer;
  padding: 0;
  transition: transform 0.1s ease;
  position: relative;
}
.swatch:hover { transform: scale(1.15); }
.swatch.selected { border: 2px solid var(--navy); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--navy); }
.swatch-red::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: repeating-linear-gradient(45deg, transparent, transparent 2px, rgba(0,0,0,0.35) 2px, rgba(0,0,0,0.35) 4px);
}
.swatch-label { font-size: 0.72rem; color: var(--muted); }

/* size pills */
.size-pill {
  border: 1px solid #d8dee8;
  background: #fff;
  border-radius: 6px;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  color: var(--text);
}
.size-pill.selected {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
  font-weight: 600;
}

.add-btn { border-radius: 0.75rem; font-weight: 600; }
.add-btn:disabled { opacity: 0.55; }

.red-note {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
}

/* ---------- INFO BAND / FOOTER ---------- */
.info-band { background: #fff; border-top: 1px solid #e6eaf0; border-bottom: 1px solid #e6eaf0; }
.shop-footer { background: var(--navy); }
.footer-link { color: #9fc1ea; text-decoration: none; }
.footer-link:hover { color: #fff; text-decoration: underline; }

/* ---------- CART ---------- */
.cart-item {
  border: 1px solid #e6eaf0;
  border-radius: 0.75rem;
  padding: 0.6rem 0.7rem;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.cart-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #eef1f5;
}
.cart-item-name { font-weight: 600; font-size: 0.9rem; }
.cart-item-meta { font-size: 0.78rem; color: var(--muted); }
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid #d8dee8;
  background: #fff;
  font-weight: 700;
  line-height: 1;
}
.qty-val { min-width: 24px; text-align: center; font-weight: 600; }

/* ---------- TOAST ---------- */
.toast-check {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .sticky-filters { top: 92px; }
  .hero { min-height: 260px; }
}
@media (max-width: 575.98px) {
  .hero h1 { font-size: 1.7rem; }
  .member-toggle { display: none; }
  .member-toggle-mobile { display: flex !important; }
}
.member-toggle-mobile { display: none; }
.toggle-btn-m {
  border: 1px solid #d8dee8;
  border-radius: 2rem;
  background: #fff;
  color: var(--navy);
  padding: 0.25rem 0.8rem;
  font-size: 0.85rem;
}
.toggle-btn-m.active {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  border-color: var(--navy);
}
