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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 15px;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--ff-sans); }
input, textarea, select { font-family: var(--ff-sans); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 12px 32px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  cursor: pointer;
}
.btn-primary    { background: var(--burg);  color: #fff; border-color: var(--burg); }
.btn-primary:hover { background: var(--burg-dark); border-color: var(--burg-dark); }
.btn-outline    { background: transparent; color: var(--burg); border-color: var(--burg); }
.btn-outline:hover { background: var(--burg); color: #fff; }
.btn-white      { background: transparent; color: #fff; border-color: #fff; }
.btn-white:hover { background: #fff; color: var(--black); }
.btn-dark       { background: var(--black); color: #fff; border-color: var(--black); }
.btn-dark:hover { background: #333; }

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--ff-serif);
  font-size: 30px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text);
}
.section-title span { color: var(--burg); }

/* ── BADGE ── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--burg);
}
.badge.sale   { background: #c04040; }
.badge.nuevo  { background: #2a6a40; }
.badge.top    { background: var(--gold); color: #fff; }

/* ── BREADCRUMB ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  padding: 14px 0;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--burg); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--burg); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 40px 0 10px;
}
.page-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-mid);
  background: #fff;
  transition: all var(--transition);
}
.page-btn:hover, .page-btn.active {
  background: var(--burg);
  color: #fff;
  border-color: var(--burg);
}

/* ── TOAST ── */
.toast {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--black);
  color: #fff;
  padding: 14px 22px;
  font-size: 13px;
  letter-spacing: 0.5px;
  z-index: 9999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: #2a6a40; }

/* ── OVERLAY ── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.active { opacity: 1; pointer-events: all; }

/* ── RESPONSIVE GRID HELPERS ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .section-title { font-size: 24px; }
}
@media (max-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
