/* M4RTIAL V125 · Tienda visible en la portada */

.home-store {
  position: relative;
  padding: clamp(68px, 8vw, 116px) max(5vw, 24px);
  overflow: hidden;
  color: #f7f4ec;
  background: #0b0b09;
  border-top: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.home-store::before {
  content: "M4";
  position: absolute;
  right: -3vw;
  top: -8vw;
  color: rgba(232, 181, 53, .055);
  font-family: var(--display);
  font-size: clamp(14rem, 34vw, 36rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: -.12em;
  pointer-events: none;
}

.home-store-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .62fr);
  gap: clamp(32px, 8vw, 120px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.home-store .eyebrow { color: #e8b535; }

.home-store h2 {
  margin: 14px 0 0;
  max-width: 820px;
  color: #f7f4ec;
  font-size: clamp(3rem, 6.5vw, 7.2rem);
  line-height: .88;
  letter-spacing: -.07em;
}

.home-store h2 em {
  color: #e8b535;
  font-family: Georgia, serif;
  font-weight: 400;
}

.home-store-intro {
  display: grid;
  gap: 24px;
  padding-bottom: 4px;
}

.home-store-intro p {
  max-width: 470px;
  margin: 0;
  color: #cbc6bb;
  font-size: clamp(.94rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.home-store-cta {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 18px;
  color: #0a0a09;
  background: #e8b535;
  border: 1px solid #e8b535;
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.home-store-cta:hover,
.home-store-cta:focus-visible {
  color: #fff;
  background: transparent;
  transform: translateY(-2px);
}

.home-store-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
}

.home-store-card {
  min-width: 0;
  display: grid;
  color: #f7f4ec;
  background: #141411;
  text-decoration: none;
}

.home-store-image {
  position: relative;
  aspect-ratio: 1 / .92;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(232, 181, 53, .1), transparent 46%),
    #e8e5dc;
}

.home-store-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(10, 10, 9, .08);
  pointer-events: none;
}

.home-store-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(.93);
  transition: transform .45s cubic-bezier(.2, .75, .25, 1);
}

.home-store-card:hover .home-store-image img,
.home-store-card:focus-visible .home-store-image img { transform: scale(1.02); }

.home-store-meta {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 2vw, 28px);
}

.home-store-meta strong {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 2rem);
  letter-spacing: -.035em;
}

.home-store-meta small {
  color: #c9c4b8;
  font-family: var(--mono);
  font-size: .62rem;
  line-height: 1.4;
  text-align: right;
  text-transform: uppercase;
}

@media (min-width: 701px) {
  .nav-visual-shop { background-image: url("https://files.cdn.printful.com/files/8c1/8c17099fc6106aaab887e3ca4c1f3df2_preview.png"); }

  .nav[data-active-visual="tienda"] .nav-visual-shop {
    opacity: .36;
    transform: scale(1);
  }

  .nav-links a {
    min-height: clamp(58px, 7.2vh, 70px);
  }
}

@media (max-width: 820px) {
  .home-store { padding-inline: 18px; }

  .home-store-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .home-store h2 { font-size: clamp(3rem, 13vw, 4.8rem); }

  .home-store-intro {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 18px;
  }

  .home-store-grid {
    grid-template-columns: repeat(3, minmax(250px, 78vw));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
  }

  .home-store-grid::-webkit-scrollbar { display: none; }
  .home-store-card { scroll-snap-align: start; }
}

@media (max-width: 560px) {
  .home-store { padding-block: 58px; }
  .home-store::before { top: 2rem; right: -4rem; }

  .home-store-intro {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .home-store-intro p { font-size: .92rem; }
  .home-store-cta { width: 100%; }

  .home-store-grid {
    width: calc(100% + 18px);
    grid-template-columns: repeat(3, minmax(238px, 82vw));
    border-right: 0;
  }

  .home-store-image { aspect-ratio: 1 / .9; }
  .home-store-meta { min-height: 76px; padding: 15px 16px; }

  .nav-links a {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: clamp(1.78rem, 9.4vw, 2.65rem);
  }

  .nav-links small { font-size: .44rem; }
}

@media (prefers-color-scheme: dark) {
  .home-store {
    color: #f7f4ec !important;
    background: #090a08 !important;
  }

  .home-store-card { background: #151612 !important; }
  .home-store-image { background: #e8e5dc !important; }
  .home-store h2,
  .home-store-meta strong { color: #f7f4ec !important; }
  .home-store-intro p,
  .home-store-meta small { color: #cbc6bb !important; }
}

@media (prefers-reduced-motion: reduce) {
  .home-store-card,
  .home-store-image img,
  .home-store-cta { transition: none; }
}
