:root {
  --bg: #ffffff;
  --surface: #f8f9fa;
  --ink: #111111;
  --muted: #6b7280;
  --border: #e5e7eb;
  --cta: #00a650;
  --cta-hover: #008f44;
  --danger: #e63946;
  --warn: #d97706;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 14px 32px rgba(0, 0, 0, 0.12);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button, input, select {
  font-family: inherit;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------------- TOP BAR ---------------- */
.topbar {
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.topbar-inner {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.topbar-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 8px;
}
.topbar-btn:hover { color: #fff; }

.topbar-text {
  margin: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------------- HEADER ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-main {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--ink);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }

.brand-name {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.brand-name span { color: var(--muted); font-weight: 500; }
.brand-sub {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #9ca3af;
}

/* Search */
.search-wrap {
  flex: 1;
  max-width: 540px;
  position: relative;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 40px 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.search-input:focus {
  border-color: var(--ink);
  background: #fff;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 60;
  display: none;
}
.search-dropdown.open { display: block; }

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
}
.search-item:hover { background: var(--surface); }
.search-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: var(--surface);
  border-radius: 6px;
  padding: 3px;
}
.search-item-info { flex: 1; min-width: 0; }
.search-item-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item-brand { font-size: 11px; color: var(--muted); }
.search-item-price { font-size: 13px; font-weight: 800; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
}
.admin-pill:hover { background: var(--surface); color: var(--ink); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
}
.cart-btn:hover { background: #262626; }

.cart-icon-wrap { position: relative; font-size: 18px; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--cta);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-meta { text-align: left; line-height: 1.1; }
.cart-meta small { display: block; font-size: 10px; color: #d1d5db; }
.cart-meta strong { font-size: 12px; font-weight: 800; }

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
}

/* Nav bar */
.cat-nav {
  border-top: 1px solid #f3f4f6;
  background: #fff;
}
.cat-nav-inner {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.cat-nav a {
  font-size: 13.5px;
  font-weight: 700;
  color: #4b5563;
  padding: 10px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.cat-nav a:hover, .cat-nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.cat-nav a.sale { color: var(--danger); }

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
  padding: 6px;
  z-index: 60;
  flex-direction: column;
  gap: 2px;
}
.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}
.nav-dropdown-menu a {
  padding: 8px 12px !important;
  border-bottom: none !important;
  border-radius: 7px;
  font-size: 13px;
  color: #374151;
}
.nav-dropdown-menu a:hover {
  background: #f3f4f6;
  color: #111111;
}

/* Mobile menu drawer */
.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 70;
  display: none;
}
.mobile-drawer-backdrop.open { display: block; }
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 280px;
  background: #fff;
  z-index: 75;
  padding: 18px;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer a {
  padding: 12px 14px;
  border-radius: 9px;
  font-weight: 700;
  font-size: 14px;
}
.mobile-drawer a:hover { background: var(--surface); }

/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.64;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.88) 0%, rgba(17, 17, 17, 0.62) 55%, rgba(17, 17, 17, 0.22) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 0 44px;
  max-width: 580px;
}
.hero-slides {
  display: grid;
  align-items: start;
  margin-bottom: 6px;
}
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.hero-slide.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hero-slide h1, .hero-slide p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.hero-dot {
  width: 24px;
  height: 4px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, width 0.25s;
}
.hero-dot.active {
  width: 38px;
  background: #ffffff;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #6ee7b7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(30px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.hero p {
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: 15px;
  line-height: 1.6;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover { background: var(--cta-hover); }
.btn-cta:disabled { background: #d1d5db; color: #6b7280; cursor: not-allowed; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #262626; }
.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.22); }
.btn-outline {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
}
.btn-outline:hover { background: var(--surface); }

/* ---------------- TRUST BADGES ---------------- */
.trust-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.trust-item h3 { margin: 0; font-size: 13.5px; font-weight: 800; }
.trust-item p { margin: 3px 0 0; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------------- SECTIONS & GRIDS ---------------- */
.section { padding: 48px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.section-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cta);
}
.section-title {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.link-more { font-size: 13px; font-weight: 700; }
.link-more:hover { color: var(--cta); }

/* ---------------- PRODUCT CARD (TIENDANUBE STYLE) ---------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 14px rgba(17, 17, 17, 0.08);
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}
.product-card:hover {
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.15);
  border-color: #111111;
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 16px;
  overflow: hidden;
  display: block;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}
.badge-sale { background: var(--danger); }
.badge-outlet { background: #111111; color: #ffffff; }
.badge-free { background: var(--cta); }
.badge-low { background: #f59e0b; }
.badge-out { background: #374151; }

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-brand {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9ca3af;
}
.card-title {
  margin: 4px 0 0;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-title:hover { text-decoration: underline; }

.card-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 8px;
}
.size-chip {
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  background: #f3f4f6;
  border: 1px solid var(--border);
  color: #4b5563;
}

.card-pricing {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f3f4f6;
  flex: 1;
}
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-main { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.price-old { font-size: 12px; color: #9ca3af; text-decoration: line-through; }
.price-cuotas { font-size: 11.5px; color: #4b5563; margin: 4px 0 0; }
.price-transfer { font-size: 11.5px; font-weight: 700; color: var(--cta); margin: 3px 0 0; }

.card-cta {
  margin-top: 12px;
  height: 38px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.card-cta:hover { background: var(--cta); }
.card-cta.out { background: #e5e7eb; color: #6b7280; }

/* ---------------- CATEGORY BANNERS ---------------- */
.cat-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-banner {
  position: relative;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 22px;
  color: #fff;
}
.cat-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.45s ease;
}
.cat-banner:hover img { transform: scale(1.06); }
.cat-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 70%);
}
.cat-banner-content { position: relative; z-index: 2; }
.cat-banner h3 { margin: 0; font-size: 22px; font-weight: 800; }
.cat-banner p { margin: 4px 0 8px; font-size: 12px; color: #d1d5db; }
.cat-banner span { font-size: 12px; font-weight: 800; color: #6ee7b7; }

/* Filter pills */
.filter-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-bottom: 18px;
}
.pill-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.pill-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ---------------- PDP (PRODUCT DETAIL PAGE) ---------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin: 22px 0;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--ink); }

.pdp-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 42px;
  align-items: start;
}

.pdp-main-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.pdp-main-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pdp-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(17, 17, 17, 0.72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  pointer-events: none;
}

/* Lightbox Mini Galería */
.gallery-modal-box {
  background: #ffffff;
  border-radius: 16px;
  max-width: 780px;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.gallery-stage {
  position: relative;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 56px;
  min-height: 360px;
  max-height: 62vh;
}
.gallery-stage img {
  max-width: 100%;
  max-height: 56vh;
  object-fit: contain;
}
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #d1d5db;
  background: rgba(255, 255, 255, 0.94);
  color: #111111;
  font-size: 22px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.gallery-nav-btn:hover { background: #111111; color: #ffffff; border-color: #111111; }
.gallery-nav-btn.prev { left: 12px; }
.gallery-nav-btn.next { right: 12px; }
.gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  overflow-x: auto;
  justify-content: center;
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
}
.gallery-thumb {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border-radius: 8px;
  border: 2px solid transparent;
  background: #f8f9fa;
  padding: 4px;
  cursor: pointer;
}
.gallery-thumb.active { border-color: #111111; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-thumbs {
  margin-top: 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.pdp-thumbs::-webkit-scrollbar { display: none; }
.pdp-thumb {
  flex: 1 1 0;
  min-width: 54px;
  max-width: 92px;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 8px;
  cursor: pointer;
}
.pdp-thumb.active { border-color: var(--ink); }
.pdp-thumb img { width: 100%; height: 100%; object-fit: contain; }

.pdp-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #9ca3af;
}
.pdp-title {
  margin: 6px 0 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.stock-ok { background: #ecfdf5; color: var(--cta); }
.stock-low { background: #fffbeb; color: #b45309; }
.stock-out { background: #fef2f2; color: var(--danger); }

.pdp-price-box {
  margin-top: 18px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.pdp-price-big { font-size: 34px; font-weight: 800; letter-spacing: -0.025em; }

.variant-section { margin-top: 22px; }
.variant-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13.5px;
}
.size-guide-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  color: var(--ink);
}
.size-guide-btn:hover { color: var(--cta); }

.size-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.size-btn {
  height: 44px;
  border-radius: 9px;
  border: 1px solid #d1d5db;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.size-btn.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.size-btn.out {
  background: #f3f4f6;
  color: #9ca3af;
  text-decoration: line-through;
}

.pdp-cta {
  width: 100%;
  height: 52px;
  margin-top: 18px;
  font-size: 15px;
  letter-spacing: 0.03em;
}

.shipping-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.shipping-form { display: flex; gap: 8px; margin-top: 10px; }
.shipping-form input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.shipping-results { margin-top: 12px; border-top: 1px solid #f3f4f6; padding-top: 10px; }
.shipping-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  font-size: 12.5px;
}

.specs-grid {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.specs-table {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13.5px;
}
.specs-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  padding: 11px 16px;
  border-bottom: 1px solid #f3f4f6;
}
.specs-row:nth-child(even) { background: var(--surface); }
.specs-row.specs-row-ig {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 14px 16px !important;
}
.ig-spec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.28);
  transition: opacity 0.15s, transform 0.15s;
}
.ig-spec-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ---------------- SLIDE-OUT CART DRAWER ---------------- */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 80;
  display: none;
}
.cart-backdrop.open { display: block; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 420px;
  background: #fff;
  z-index: 85;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.26s ease;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h2 { margin: 0; font-size: 16px; font-weight: 800; }

.cart-progress-wrap {
  padding: 12px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
}
.progress-track {
  margin-top: 8px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--cta);
  transition: width 0.3s ease;
}

.cart-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}
.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
}
.qty-box {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.qty-box button {
  width: 28px;
  height: 28px;
  border: none;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}
.qty-box span { width: 28px; text-align: center; font-size: 12px; font-weight: 800; }

.cart-foot {
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* ---------------- CHECKOUT & FORMS ---------------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 32px;
  align-items: start;
}
.card-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #4b5563;
  margin-bottom: 5px;
}
.field input, .field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
}
.field input:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: var(--ink);
}

.pay-option {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 11px;
  border: 2px solid var(--border);
  cursor: pointer;
  margin-bottom: 10px;
}
.pay-option.selected { border-color: var(--cta); background: #f0fdf4; }

/* Payment Accordion (Tiendanube / MP Bricks style) */
.pay-accordion {
  border: 1px solid #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
}
.pay-acc-item + .pay-acc-item {
  border-top: 1px solid #e5e7eb;
}
.pay-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  cursor: pointer;
  background: #ffffff;
  transition: background 0.15s;
}
.pay-acc-head:hover {
  background: #f9fafb;
}
.pay-acc-item.selected > .pay-acc-head {
  background: #f8fafc;
  border-bottom: 2px solid #111111;
}
.pay-acc-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pay-acc-left input[type="radio"] {
  margin-top: 3px;
  accent-color: #111111;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
.pay-acc-title {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  display: block;
}
.pay-acc-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #bbf7d0;
  color: #14532d;
  font-size: 11.5px;
  font-weight: 800;
}
.pay-acc-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: #374151;
}
.pay-acc-body {
  display: none;
  padding: 16px;
  background: #fafafa;
}
.pay-acc-item.selected > .pay-acc-body {
  display: block;
}
.mp-brands-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
}
.mp-brand-logo {
  width: 44px;
  height: 28px;
  border-radius: 5px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.mp-brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------------- CHECKOUT 10-MIN TIMER ---------------- */
.co-timer-bar {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 24px;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.co-timer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
}
.co-timer-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}
.co-timer-clock {
  font-variant-numeric: tabular-nums;
  background: #111111;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 11px;
  border-radius: 999px;
  flex-shrink: 0;
  transition: background 0.25s ease;
}
.co-timer-track {
  height: 4px;
  width: 100%;
  background: #e2e8f0;
}
.co-timer-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.9s linear, background-color 0.25s ease;
}
.co-timer-bar.is-warning {
  background: #fffbeb;
  border-color: #fde68a;
}
.co-timer-bar.is-warning .co-timer-msg {
  color: #92400e;
}
.co-timer-bar.is-warning .co-timer-clock {
  background: #d97706;
}
.co-timer-bar.is-warning .co-timer-track {
  background: #fef3c7;
}
.co-timer-bar.is-warning .co-timer-fill {
  background: #f59e0b;
}
.co-timer-bar.is-danger {
  background: #fef2f2;
  border-color: #fecaca;
}
.co-timer-bar.is-danger .co-timer-msg {
  color: #b91c1c;
}
.co-timer-bar.is-danger .co-timer-clock {
  background: #e63946;
  animation: coTimerPulse 1s ease-in-out infinite;
}
.co-timer-bar.is-danger .co-timer-track {
  background: #fee2e2;
}
.co-timer-bar.is-danger .co-timer-fill {
  background: #e63946;
}
@keyframes coTimerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ---------------- COMPACT PAGINATION ---------------- */
.catalog-pagination {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: #6b7280;
}
.pag-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f8f9fa;
  padding: 4px;
  border-radius: 11px;
  border: 1px solid #e5e7eb;
}
.pag-nav,
.pag-num {
  height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: #374151;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.pag-nav {
  padding: 0 10px;
}
.pag-num {
  min-width: 32px;
  padding: 0 8px;
  font-variant-numeric: tabular-nums;
}
.pag-nav:hover:not(:disabled),
.pag-num:hover:not(.active) {
  background: #e5e7eb;
  color: #111111;
}
.pag-nav:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}
.pag-num.active {
  background: #111111;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
}
.pag-ellipsis {
  min-width: 24px;
  text-align: center;
  color: #9ca3af;
  font-weight: 800;
  font-size: 13px;
  user-select: none;
}

/* ---------------- MODAL ---------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-box {
  background: #fff;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ---------------- WHATSAPP FLOAT ---------------- */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  background: #25d366;
  color: #fff;
  padding: 11px 16px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.35);
}
.wa-float:hover { background: #1fb857; }

/* ---------------- FOOTER ---------------- */
.site-footer {
  background: var(--ink);
  color: #d1d5db;
  margin-top: 64px;
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 13px; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #6b7280;
}

/* ---------------- ADMIN ---------------- */
.admin-header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
}
.admin-tabs {
  display: flex;
  gap: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #9ca3af;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.admin-tab.active { color: #fff; border-bottom-color: var(--cta); }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}
.kpi-label { font-size: 11px; font-weight: 800; text-transform: uppercase; color: var(--muted); }
.kpi-value { font-size: 24px; font-weight: 800; margin-top: 8px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  padding: 12px 14px;
  background: var(--surface);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}

.variant-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  margin: 2px;
}
.variant-chip.v-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }
.variant-chip.v-low { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.variant-chip.v-out { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.variant-chip button {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

/* ---------------- CARD SIZE PICKER & MOBILE SEARCH ---------------- */
.card-size-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.card-size-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.size-chip-btn {
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 800;
  border-radius: 5px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s;
}
.size-chip-btn:hover { border-color: var(--ink); }
.size-chip-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.card-actions {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-btn-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.card-cart-mini {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 8px;
  border: none;
  background: #111111;
  color: #ffffff;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.card-cart-mini:hover {
  background: #374151;
}
.card-cta {
  margin-top: 0;
  height: 38px;
  line-height: 1;
  white-space: nowrap;
  flex: 1;
  width: auto;
  border: none;
  padding: 0 8px;
  background: var(--cta);
  color: #ffffff;
  cursor: pointer;
  gap: 6px;
}
.card-cta:hover {
  background: var(--cta-hover);
}
.pdp-btn-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-top: 18px;
}
.pdp-cart-mini {
  width: 56px;
  height: 52px;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  border: none;
  border-radius: 10px;
  background: #111111;
  color: #ffffff;
}
.pdp-cart-mini:hover:not(:disabled) {
  background: #374151;
}
.card-size-link {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 0;
}
.card-size-link:hover { color: var(--ink); text-decoration: underline; }

.mobile-search-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 38px;
  height: 38px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}
.mobile-search-bar {
  display: none;
  padding: 0 0 12px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}
.mobile-search-bar.open { display: block; padding-top: 10px; }
.mobile-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mobile-search-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink);
  width: 40px;
  height: 42px;
  border-radius: 9px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.mobile-dropdown { position: relative; top: 8px; }

.cat-banner-header {
  height: 210px;
  margin-bottom: 10px;
  cursor: default;
  background: #000000;
}
.cat-banner-header img {
  left: auto;
  right: 0;
  width: 460px;
  max-width: 65%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.85;
  padding: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%);
  mask-image: linear-gradient(to right, transparent 0%, #000 22%);
}
.cat-banner-header:hover img {
  transform: none;
}

@media (max-width: 768px) {
  .cat-banner-header {
    height: 148px;
  }
  .cat-banner-header img {
    left: 0;
    width: 100%;
    max-width: 100%;
    object-fit: cover;
    padding: 0;
    opacity: 0.75;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.cat-filters-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 20px;
  max-width: 560px;
}
.cat-filters-bar select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111111;
  font-size: 12.5px !important;
  font-weight: 700;
  text-overflow: ellipsis;
}

/* ---------------- RESPONSIVE (MOBILE-FIRST POLISH) ---------------- */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-grid, .kpi-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .pdp-grid, .checkout-grid, .specs-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  .container { padding: 0 12px; }
  .topbar { font-size: 11.5px; }
  .topbar-inner { height: 32px; }
  .header-main { height: 60px; gap: 8px; }
  .hamburger-btn { display: inline-flex; padding: 6px 4px; font-size: 21px; }
  .mobile-search-btn { display: inline-flex; }
  .cat-nav, .search-wrap, .admin-pill, .cart-meta { display: none; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8.5px; letter-spacing: 0.12em; }
  .cart-btn { padding: 7px 11px; height: 38px; }
  .hero-content { padding: 26px 0 28px; }
  .hero-slides { min-height: 146px; margin-bottom: 14px; }
  .hero h1 { font-size: 27px; margin: 10px 0 8px; }
  .hero p { font-size: 13.5px; margin-bottom: 14px; }
  .hero-btns { flex-direction: row; gap: 10px; }
  .hero-btns .btn { flex: 1; height: 44px; padding: 0 14px; font-size: 13px; }
  .trust-bar { padding: 12px 0; }
  .trust-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .trust-grid::-webkit-scrollbar { display: none; }
  .trust-item {
    flex: 0 0 74%;
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    gap: 10px;
  }
  .trust-icon { width: 32px; height: 32px; font-size: 15px; border-radius: 8px; }
  .trust-item h3 { font-size: 11.5px; line-height: 1.2; }
  .trust-item p { font-size: 10.5px; line-height: 1.3; margin-top: 2px; }
  .cat-banners { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
  .cat-banners::-webkit-scrollbar { display: none; }
  .cat-banner { flex: 0 0 76%; height: 148px; padding: 14px; border-radius: 12px; scroll-snap-align: start; }
  .section { padding: 28px 0; }
  .section-head { align-items: center; gap: 10px; }
  .section-title { font-size: 19px; }
  #homeSortSelect {
    font-size: 12px !important;
    height: 34px !important;
    padding: 0 8px !important;
    max-width: 158px;
  }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { border-radius: 10px; }
  .card-media { padding: 10px; }
  .card-body { padding: 10px; }
  .card-title { font-size: 12.5px; min-height: 32px; line-height: 1.28; }
  .price-main { font-size: 15.5px; }
  .price-cuotas, .price-transfer { font-size: 10px; }
  .card-cta { height: 36px; font-size: 11px; border-radius: 7px; padding: 0 6px; }
  .card-cart-mini { width: 36px; height: 36px; border-radius: 7px; }
  input, select, textarea { font-size: 16px !important; }
  .card-panel { padding: 16px; border-radius: 12px; }
  .co-timer-inner { padding: 10px 12px; gap: 8px; }
  .co-timer-msg { font-size: 12px; line-height: 1.3; }
  .co-timer-clock { font-size: 12.5px; padding: 4px 9px; }
  .catalog-pagination { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .pag-controls { gap: 2px; padding: 3px; }
  .pag-nav { padding: 0 8px; height: 30px; }
  .pag-nav-lbl { display: none; }
  .pag-num { min-width: 29px; height: 30px; padding: 0 6px; font-size: 12px; }
  .pag-ellipsis { min-width: 18px; font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; gap: 12px; }
  .cart-drawer {
    width: 85vw;
    max-width: 360px;
    border-radius: 16px 0 0 16px;
    overflow: hidden;
  }
  .cart-head { padding: 14px 16px; }
  .cart-items { padding: 12px 16px; }
  .cart-item img { width: 60px; height: 60px; }
  .cart-foot { padding: 14px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .wa-float { bottom: 16px; right: 14px; width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 20px; }
  .wa-float span { display: none; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
