/* El Norteño — design tokens over shopify-ecommerce defaults */
@import url("https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  /* Background / surface */
  --bg: #f3efe6;
  --bg-soft: #ebe5d6;
  --bg-tint: #fefcf6;

  /* Text */
  --fg: #14201a;
  --fg-muted: #6b7368;
  --fg-faint: #9a9690;

  /* Lines */
  --line: #d8d1bf;
  --line-strong: #c3bba4;

  /* Brand — remapped to El Norteño values */
  --accent: #1d2e25; /* pine — botones primary */
  --accent-2: #b85a2a; /* terra — hover, activo, badges */
  --positive: #1d2e25;
  --warn: #b85a2a;

  /* El Norteño extras */
  --pine: #1d2e25;
  --pine-2: #28412f;
  --ink: #1d2e25;
  --terra: #b85a2a;
  --terra-2: #d36a35;
  --gold: #c08a3a;
  --sand: #e9dfc7;
  --white: #fefcf6;
  --ink-2: #2b3a32;
  --slate: #6b7368;
  --bg-2: #ebe5d6;

  /* Radius — estilo campo, angular */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;

  /* Shadows */
  --shadow-sm:
    0 1px 0 rgba(20, 32, 26, 0.04), 0 4px 12px -8px rgba(20, 32, 26, 0.12);
  --shadow-md:
    0 1px 0 rgba(20, 32, 26, 0.04), 0 12px 32px -16px rgba(20, 32, 26, 0.18);
  --shadow-lg: 0 24px 60px rgba(20, 32, 26, 0.15);

  /* Fonts */
  --font-display: "Anton", "Archivo Black", Impact, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Card variant */
  --card-style: minimal;
}

/* === Base === */
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
}

/* === Typography === */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
}
.h-title {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 0.95;
  text-transform: uppercase;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero", "ss01";
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.muted {
  color: var(--fg-muted);
}
.faint {
  color: var(--fg-faint);
}

/* === Layout shell === */
.shell {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) {
  .shell {
    padding: 0 20px;
  }
}

.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-tight {
  padding: 56px 0;
}
@media (max-width: 720px) {
  .section {
    padding: 64px 0;
  }
  .section-tight {
    padding: 40px 0;
  }
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition:
    transform 0.15s,
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 11px;
  border-radius: 999px;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 13px;
}
.btn-primary {
  background: var(--pine);
  color: var(--sand);
}
.btn-primary:hover {
  background: var(--pine-2);
}
.btn-terra {
  background: var(--terra);
  color: var(--white);
}
.btn-terra:hover {
  background: var(--terra-2);
}
.btn-outline {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--fg);
}
.btn-outline:hover {
  background: var(--fg);
  color: var(--sand);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover {
  background: var(--bg-soft);
  border-color: var(--pine);
}

/* === Section heads === */
.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  letter-spacing: 0.005em;
  line-height: 0.92;
  text-transform: uppercase;
  margin: 0;
  color: var(--pine);
}

/* === Animations === */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ================================================================
   FASE 3 — Páginas internas El Norteño
   ================================================================ */

/* === Breadcrumb === */
.crumb {
  padding: 20px 36px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.crumb a {
  color: var(--slate);
  transition: color 0.15s;
}
.crumb a:hover {
  color: var(--ink);
}

/* === PDP layout === */
.pdp {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  padding: 32px 36px 96px;
  max-width: 1480px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .pdp {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 24px 20px 64px;
  }
}

/* Override ProductInfo title (renders as .pdp-title.h-title) */
.pdp-title {
  font-size: clamp(32px, 4vw, 52px) !important;
  color: var(--pine) !important;
  margin: 12px 0 16px !important;
}

/* === PDP Tabs === */
.pdp-tabs {
  padding: 64px 36px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  max-width: 1480px;
  margin: 0 auto;
}
.pdp-tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  overflow-x: auto;
}
.pdp-tab {
  padding: 14px 24px 14px 0;
  margin-right: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pdp-tab.on {
  color: var(--pine);
  border-bottom-color: var(--terra);
}
.pdp-tab-content {
  padding-top: 8px;
}
.pdp-tab-content[hidden] {
  display: none;
}
.pdp-tab-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
}
@media (max-width: 768px) {
  .pdp-tab-body {
    grid-template-columns: 1fr;
  }
}
.pdp-tab-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 12px;
}
.spec-table {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  row-gap: 12px;
  font-size: 13px;
  align-content: start;
}
.spec-table dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}
.spec-table dd {
  margin: 0;
  color: var(--ink);
  font-weight: 500;
}
.review-bar-row {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  margin-bottom: 8px;
}
.review-bar-track {
  flex: 1;
  height: 6px;
  background: var(--bg-2);
  border-radius: 99px;
  overflow: hidden;
}
.review-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}
.review-card {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.review-card:last-child {
  border-bottom: none;
}
.review-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}
.review-stars {
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 6px;
}
.review-title {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}
.review-text {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* === PDP Trust badges === */
.pdp-features {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
.pdp-feature {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
}
.pdp-feature .ico {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pine);
}
.pdp-feature strong {
  display: block;
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 13px;
  font-weight: 600;
}
.pdp-feature span {
  color: var(--slate);
  font-size: 12px;
}

/* === Related products === */
.rel-section {
  padding: 64px 36px 96px;
  max-width: 1480px;
  margin: 0 auto;
}
.rel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.rel-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.rel-card:hover .rel-img {
  transform: translateY(-4px);
}
.rel-img {
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 14px;
  transition: transform 0.25s;
}
.rel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rel-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.rel-name {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.rel-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

/* === Section head (colecciones, relacionados) === */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 88px);
  margin: 16px 0 0;
  line-height: 0.92;
  text-transform: uppercase;
  color: var(--pine);
  letter-spacing: 0.005em;
}
.h-meta {
  display: flex;
  gap: 20px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.line-el {
  width: 40px;
  height: 1px;
  background: var(--line-strong);
  display: inline-block;
  flex-shrink: 0;
}

/* === Collection hero === */
.coll-hero {
  padding: 32px 36px 56px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 48px;
  align-items: end;
  max-width: 1480px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.coll-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}
.coll-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20, 32, 26, 0.75) 0%,
    rgba(29, 46, 37, 0.55) 50%,
    rgba(20, 32, 26, 0.8) 100%
  );
}
.coll-hero > * {
  position: relative;
  z-index: 1;
}
.coll-hero-has-image .coll-hero-eyebrow {
  color: rgba(243, 239, 230, 0.7);
}
.coll-hero-has-image h1 {
  color: var(--white);
}
.coll-hero-has-image .coll-hero-meta {
  border-left-color: rgba(243, 239, 230, 0.25);
  color: rgba(243, 239, 230, 0.8);
}
.coll-hero-has-image .coll-hero-meta-row {
  color: rgba(243, 239, 230, 0.6);
}
.coll-hero-has-image .coll-hero-meta-row strong {
  color: var(--white);
}
@media (max-width: 900px) {
  .coll-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px 40px;
  }
}
.coll-hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 8px;
}
.coll-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 128px);
  line-height: 0.88;
  margin: 0;
  text-transform: uppercase;
  color: var(--pine);
  letter-spacing: 0.005em;
}
.coll-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
  text-transform: lowercase;
}
.coll-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 14px;
  color: var(--ink-2);
  border-left: 1px solid var(--line-strong);
  padding-left: 24px;
}
.coll-hero-meta p {
  margin: 0;
  line-height: 1.5;
}
.coll-hero-meta-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}
.coll-hero-meta-row strong {
  color: var(--ink);
  font-weight: 600;
}

/* === Filter sidebar layout === */
.coll-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 36px 96px;
  max-width: 1480px;
  margin: 0 auto;
}
@media (max-width: 1024px) {
  .coll-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .coll-layout {
    padding: 32px 20px 64px;
  }
}

.filters {
  position: sticky;
  top: 90px;
  align-self: start;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 8px;
}
.filter-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.filter-section:first-child {
  padding-top: 0;
}
.filter-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
  font-weight: 600;
}
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.filter-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
  user-select: none;
  padding: 2px 0;
}
.filter-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-item .cb {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  transition: all 0.15s;
}
.filter-item.on .cb {
  background: var(--pine);
  border-color: var(--pine);
}
.filter-item.on .cb::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.filter-item .n {
  margin-left: auto;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.filter-item:hover {
  color: var(--ink);
}
.filter-item:hover .cb {
  border-color: var(--pine);
}
.filter-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink-2);
  padding: 2px 0;
  text-decoration: none;
}
.filter-link .cb {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
}
.filter-link.on {
  color: var(--ink);
  font-weight: 600;
}
.filter-link.on .cb {
  background: var(--pine);
  border-color: var(--pine);
}
.filter-link.on .cb::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--sand);
  border-bottom: 2px solid var(--sand);
  transform: rotate(-45deg) translateY(-1px);
  display: block;
}
.filter-link:hover {
  color: var(--ink);
}
.filter-link .n {
  margin-left: auto;
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
}
.price-range {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.price-input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  outline: none;
  color: var(--ink);
}
.price-input:focus {
  border-color: var(--pine);
}
.price-chips {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.price-chip {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  background: transparent;
  transition: all 0.15s;
}
.price-chip:hover,
.price-chip.on {
  background: var(--pine);
  color: var(--sand);
  border-color: var(--pine);
}

/* === Toolbar === */
.coll-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 12px;
}
.coll-toolbar-left {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.coll-toolbar-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}
.coll-toolbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--sand);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  border: none;
  cursor: default;
}
.chip-x {
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 14px;
  display: flex;
  align-items: center;
}
.chip-x:hover {
  color: var(--terra);
}
.chip-clear {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s;
}
.chip-clear:hover {
  border-color: var(--terra);
  color: var(--terra);
}
.sort-select {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%236b7368' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
}
.view-toggle {
  display: flex;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
}
.view-btn {
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--slate);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.view-btn.on {
  background: var(--ink);
  color: var(--sand);
}

/* === Product cards (site-level, filterable) === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
.products-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.products-list.hidden,
.products-grid.hidden {
  display: none;
}

.pcard {
  cursor: pointer;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
}
.pcard-img {
  aspect-ratio: 4/5;
  background: var(--bg-2);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin-bottom: 14px;
  transition: transform 0.25s;
}
.pcard:hover .pcard-img {
  transform: translateY(-4px);
}
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pcard-img-bg {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-2) 0%, #d8d4c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 700;
}
.pcard-tag.sale {
  background: var(--terra);
  color: var(--white);
}
.pcard-tag.new-tag {
  background: var(--pine);
  color: var(--sand);
}
.pcard-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--slate);
}
.pcard-name {
  font-size: 15px;
  font-weight: 600;
  margin: 4px 0 6px;
  color: var(--ink);
  line-height: 1.3;
}
.pcard-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.pcard-price-now {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.pcard-price-old {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  text-decoration: line-through;
}

/* List view card */
.pcard-list {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.pcard-list:hover {
  border-color: var(--line-strong);
}
.pcard-list .pcard-img {
  aspect-ratio: 1;
  margin: 0;
}
.pcard-list-info {
  min-width: 0;
}
.pcard-list-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: var(--slate);
  margin-top: 6px;
}
.pcard-list-price {
  text-align: right;
  flex-shrink: 0;
}
.pcard-list-price .pcard-price-now {
  font-size: 18px;
}
.pcard-list-btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: var(--pine);
  color: var(--sand);
  border: none;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.pcard-list-btn:hover {
  background: var(--pine-2);
}

/* Empty state */
.filter-empty {
  padding: 64px 0;
  text-align: center;
}
.filter-empty h3 {
  font-family: var(--font-display);
  font-size: 42px;
  text-transform: uppercase;
  color: var(--pine);
  margin: 12px 0;
  letter-spacing: 0.005em;
}
.filter-empty p {
  color: var(--slate);
}

/* === Store landing === */
.store-hero {
  padding: 32px 36px 56px;
  border-bottom: 1px solid var(--line);
  max-width: 1480px;
  margin: 0 auto;
}
.store-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.88;
  margin: 12px 0 0;
  text-transform: uppercase;
  color: var(--pine);
}
.store-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
  text-transform: lowercase;
}
.store-hero p {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
}

/* === Cat grid (colecciones) === */
.cat-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
  height: 580px;
}
.cat-grid-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}
.cat-grid-right-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cat-card {
  position: relative;
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  text-decoration: none;
}
.cat-card:hover {
  transform: translateY(-3px);
}
.cat-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}
.cat-card:hover .cat-card-bg {
  transform: scale(1.04);
}
.cat-card-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cat-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.cat-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: var(--sand);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.cat-card-content h3 {
  font-family: var(--font-display);
  font-size: 44px;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.9;
  color: var(--white);
}
.cat-card-small .cat-card-content h3 {
  font-size: 28px;
}
.cat-card-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.8;
  color: var(--sand);
}
.cat-card-arrow {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  flex-shrink: 0;
}
.cat-card-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sand);
  display: flex;
  align-items: center;
  gap: 8px;
}
.cat-card-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--terra-2);
  border-radius: 999px;
}
@media (max-width: 900px) {
  .cat-grid {
    grid-template-columns: 1fr 1fr;
    height: auto;
  }
  .cat-grid-right {
    grid-template-rows: auto;
  }
  .cat-grid-right-bottom {
    grid-template-columns: 1fr;
  }
  .cat-card {
    min-height: 240px;
  }
}
@media (max-width: 600px) {
  .cat-grid {
    grid-template-columns: 1fr;
  }
  .cat-card {
    min-height: 200px;
  }
}

/* === Cart shipping progress bar (is:global override) === */
.shipping-prog {
  margin: 12px 0 20px;
  padding: 12px 14px;
  background: var(--sand);
  border-radius: 8px;
  font-size: 12px;
  font-family: var(--font-body);
}
.shipping-prog-bar {
  height: 4px;
  background: var(--bg);
  border-radius: 999px;
  margin-top: 8px;
  overflow: hidden;
}
.shipping-prog-fill {
  height: 100%;
  background: var(--terra);
  border-radius: 999px;
  transition: width 0.3s;
}

/* Pagination bar */
.pag-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pag-info {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ================================================================
   FASE 4 — Megamenu, mobile drawer, contacto, footer
   ================================================================ */

/* === Megamenu panel === */
.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 1480px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 1px solid var(--line);
  box-shadow: 0 16px 40px -16px rgba(20, 32, 26, 0.18);
  padding: 32px;
  display: none;
  z-index: 60;
}
.megamenu[data-open] {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
}
.megamenu-col {
  min-width: 0;
}
.megamenu-col-head {
  font-family: var(--font-display);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--pine);
  margin: 0 0 12px;
  display: block;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  text-decoration: none;
  transition: color 0.15s;
}
.megamenu-col-head:hover {
  color: var(--terra);
}
.megamenu-sub {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.megamenu-sub a {
  font-size: 13px;
  color: var(--ink-2);
  padding: 4px 0;
  transition: color 0.15s;
  text-decoration: none;
}
.megamenu-sub a:hover {
  color: var(--terra);
}
.megamenu-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--slate);
  display: inline-block;
  text-decoration: none;
  transition: color 0.15s;
}
.megamenu-foot:hover {
  color: var(--terra);
}

/* === Mobile nav: <details> nesting === */
.mobile-nav-cat {
  border-bottom: 1px solid var(--line);
}
.mobile-nav-cat summary {
  font-size: 15px;
  font-weight: 600;
  padding: 14px 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--fg);
}
.mobile-nav-cat summary::-webkit-details-marker {
  display: none;
}
.mobile-nav-cat summary::after {
  content: "+";
  font-size: 20px;
  color: var(--terra);
  font-weight: 300;
  line-height: 1;
}
.mobile-nav-cat[open] summary::after {
  content: "−";
}
.mobile-nav-cat .sub-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0 14px 0;
}
.mobile-nav-cat .sub-list a {
  font-size: 13px;
  color: var(--ink-2);
  padding: 6px 0;
  text-decoration: none;
}
.mobile-nav-cat .sub-list a:hover {
  color: var(--terra);
}
.mobile-nav-cat .sub-list a:first-child {
  color: var(--terra);
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 4px;
}

/* === Contact page === */
.contact-hero {
  padding: 32px 36px 56px;
  border-bottom: 1px solid var(--line);
  max-width: 1480px;
  margin: 0 auto;
}
.contact-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 120px);
  line-height: 0.88;
  margin: 12px 0 0;
  text-transform: uppercase;
  color: var(--pine);
}
.contact-hero h1 em {
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--terra);
  text-transform: lowercase;
}
.contact-hero p {
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 56px 36px;
  max-width: 1480px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    padding: 32px 20px;
  }
}
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
}
.contact-card h2 {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  color: var(--pine);
  margin: 0;
  letter-spacing: 0.01em;
  line-height: 1;
}
.contact-card-address {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  font-style: normal;
}
.contact-card-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}
.contact-card-phones a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s;
}
.contact-card-phones a:hover {
  color: var(--terra);
}
.contact-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.contact-btn-wa {
  background: #25d366;
  color: var(--white);
}
.contact-btn-wa:hover {
  background: #1ebe5a;
  transform: translateY(-1px);
}
.contact-btn-map {
  background: transparent;
  color: var(--pine);
  border: 1px solid var(--line-strong);
}
.contact-btn-map:hover {
  background: var(--bg-2);
  border-color: var(--pine);
}

.contact-cta-band {
  background: var(--pine);
  color: var(--sand);
  padding: 64px 36px;
  text-align: center;
}
.contact-cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  margin: 12px 0 16px;
  text-transform: uppercase;
  color: var(--white);
}
.contact-cta-band p {
  font-size: 15px;
  opacity: 0.8;
  max-width: 540px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* === Footer site-level === */
.ftr-el {
  background: var(--ink);
  color: var(--sand);
  margin-top: 64px;
}
.ftr-el-top {
  max-width: 1480px;
  margin: 0 auto;
  padding: 64px 36px 48px;
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px;
}
@media (max-width: 1024px) {
  .ftr-el-top {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .ftr-el-brand {
    grid-column: 1 / -1;
    max-width: 480px;
    margin-bottom: 8px;
  }
}
@media (max-width: 600px) {
  .ftr-el-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 48px 20px 32px;
  }
}
.ftr-el-brand .brand-mark {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: 0.04em;
  color: var(--sand);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.ftr-el-brand .brand-mark::before,
.ftr-el-brand .brand-mark::after {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--sand);
}
.ftr-el-tagline {
  color: rgba(243, 239, 230, 0.92);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.ftr-el-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin: 0 0 16px;
  color: var(--terra-2);
}
.ftr-el-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ftr-el-col a {
  color: var(--sand);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
  opacity: 0.95;
}
.ftr-el-col a:hover {
  color: var(--terra-2);
  opacity: 1;
}

.ftr-el-stores {
  border-top: 1px solid rgba(243, 239, 230, 0.22);
  max-width: 1480px;
  margin: 0 auto;
  padding: 40px 36px;
}
.ftr-el-stores-head {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra-2);
  margin: 0 0 24px;
}
.ftr-el-stores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 720px) {
  .ftr-el-stores-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .ftr-el-stores {
    padding: 32px 20px;
  }
}
.ftr-el-store .city {
  font-family: var(--font-display);
  font-size: 22px;
  text-transform: uppercase;
  color: var(--sand);
  margin: 0 0 8px;
  letter-spacing: 0.02em;
}
.ftr-el-store address {
  font-style: normal;
  font-size: 14px;
  color: var(--sand);
  opacity: 0.92;
  line-height: 1.5;
  margin-bottom: 10px;
}
.ftr-el-store .contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--sand);
  margin-top: 8px;
}
.ftr-el-store .contact-line a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.15s;
  opacity: 0.95;
}
.ftr-el-store .contact-line a:hover {
  color: var(--terra-2);
  opacity: 1;
}
.ftr-el-store .wa {
  color: #25d366 !important;
  font-weight: 600;
}

.ftr-el-bottom {
  border-top: 1px solid rgba(243, 239, 230, 0.22);
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
}
.ftr-el-bottom a {
  color: var(--sand);
  text-decoration: none;
  transition: color 0.15s;
  margin-left: 16px;
  opacity: 0.85;
}
.ftr-el-bottom a:hover {
  color: var(--terra-2);
  opacity: 1;
}

/* === Hide shipping bar (El Norteño no ofrece envío gratis) === */
.shipping-prog {
  display: none !important;
}

/* ================================================================
   FASE 5 — Mapa contacto + bottom-sheet filtros mobile
   ================================================================ */

/* === Contact map === */
.contact-map-section {
  max-width: 1480px;
  margin: 0 auto;
  padding: 64px 36px;
  border-top: 1px solid var(--line);
}
.contact-map-h2 {
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 72px);
  color: var(--pine);
  margin: 0 0 32px;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  line-height: 0.95;
}
.contact-map {
  width: 100%;
  height: 500px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
@media (max-width: 720px) {
  .contact-map {
    height: 380px;
  }
  .contact-map-section {
    padding: 48px 20px;
  }
}
/* Leaflet popup typography override */
.leaflet-popup-content-wrapper {
  border-radius: 6px;
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--slate);
}

/* === Mobile filter bottom-sheet === */
.filter-sheet-toggle {
  display: none;
}
@media (max-width: 1024px) {
  .filters {
    display: none;
  }
  .filter-sheet-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--bg);
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
  }
  .filter-sheet-toggle:hover {
    border-color: var(--pine);
  }
  .filter-sheet-count {
    background: var(--terra);
    color: var(--white);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
  }
  .filter-sheet-count:empty {
    display: none;
  }
  /* En mobile el layout no tiene sidebar */
  .coll-layout {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
}

.filter-sheet {
  position: fixed;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  z-index: 200;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  overflow: hidden;
}
.filter-sheet[open] {
  display: block;
}
.filter-sheet:not([open]) {
  display: none;
}
.filter-sheet::backdrop {
  background: rgba(20, 32, 26, 0.55);
  backdrop-filter: blur(2px);
}
.filter-sheet-inner {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border-radius: 16px 16px 0 0;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  animation: filter-sheet-up 0.25s ease-out;
}
@keyframes filter-sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
.filter-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.filter-sheet-head h3 {
  font-family: var(--font-display);
  font-size: 24px;
  margin: 0;
  color: var(--pine);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}
.filter-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--bg-2);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: background 0.15s;
}
.filter-sheet-close:hover {
  background: var(--sand);
}
.filter-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px 8px;
}
/* Dentro del sheet, los filtros se muestran sí o sí (sobreescribe el display:none mobile) */
.filter-sheet-body .filters {
  display: block !important;
  position: static !important;
  max-height: none !important;
  overflow: visible !important;
  padding-right: 0 !important;
}
.filter-sheet-foot {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  bottom: 0;
}
.filter-sheet-foot button {
  flex: 1;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.filter-sheet-clear {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong) !important;
}
.filter-sheet-clear:hover {
  background: var(--bg-2);
}
.filter-sheet-apply {
  background: var(--pine);
  color: var(--sand);
}
.filter-sheet-apply:hover {
  background: var(--pine-2);
}

/* === Filter search input === */
.filter-search {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  color: var(--ink);
}
.filter-search:focus {
  border-color: var(--pine);
}
.filter-search::placeholder {
  color: var(--fg-faint);
}
