/* Base del catálogo y la galería de tienda. */

/* Tienda visual: bases compartidas por galería y catálogo. */
.shop-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}
.shop-gallery img {
  width: 100%;
  aspect-ratio: 4/5;
  height: 530px;
  object-fit: cover;
}
.product span {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .shop-gallery {
    padding: 4px;
  }
  .shop-gallery img {
    aspect-ratio: 3/4;
  }
}

/* Tienda: fotografía a sangre, relato, catálogo visual y cierre editorial. */
.shop-hero { height: clamp(410px, 47vw, 607px); overflow: hidden; }
.shop-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.shop-editorial { max-width: 1180px; margin: auto; padding: 43px 0 40px; }
.shop-editorial h1 { font-size: clamp(4.0625rem, 8.1vw, 7.75rem); margin: 0 0 50px; line-height: .95; white-space: nowrap; }
.shop-editorial > p { font-size: 1rem; line-height: 1.7; margin: 0 0 18px; }
.shop-editorial > p:nth-of-type(2) { margin-bottom: 60px; }
.shop-jump { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 2rem; padding: .75rem 1rem; background: var(--gold); color: var(--ink); font-size: .75rem; font-weight: 700; text-decoration: none; transition: background-color 180ms var(--ease-soft), color 180ms var(--ease-soft); }
.shop-jump:hover { background: var(--ink); color: var(--paper); }
.shop-jump:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.shop-collection { max-width: 1180px; margin: auto; padding: 0 0 70px; }
.shop-collection h2 { font-size: 2.375rem; text-align: center; margin: 0 0 42px; }
.shop-collection-intro { max-width: 42rem; margin: -1.5rem auto 3rem; text-align: center; line-height: 1.65; }
.shop-collection .product-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 38px 24px; max-width: none; margin: auto; }
.shop-collection .product img { width: 100%; height: 330px; aspect-ratio: 3/4; object-fit: cover; background: #efede6; }
.shop-collection .product { display: flex; min-width: 0; flex-direction: column; }
.shop-collection .product > div { width: 100%; display: grid; flex: 1; grid-template-rows: 1fr auto auto; justify-content: stretch; gap: 0; padding: 15px 0 0; border-bottom: 0; }
.shop-collection .product h3 { min-width: 0; margin: 0 0 4px; font-family: League, sans-serif; font-size: 1.8125rem; font-weight: 400; overflow-wrap: break-word; }
.shop-collection .product .product-price { width: 100%; padding-bottom: 9px; border-bottom: 1px solid var(--ink); font-size: 0.9375rem; }
.shop-collection .product .product-price-pending { white-space: normal; font-size: 0.75rem; }
.product-inquiry {
  min-height: 2.875rem;
  margin-top: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.035em;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-soft);
}
.product-inquiry svg { width: 1.125rem; height: 1.125rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.product-inquiry:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.product-inquiry:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.shop-how { max-width: 1180px; margin: 0 auto clamp(4rem, 7vw, 7rem); padding: clamp(2rem, 4vw, 4rem) 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.shop-how-heading .eyebrow { margin: 0 0 .75rem; color: #765b00; }
.shop-how h2 { margin: 0 0 2rem; font: 400 clamp(2.5rem, 5vw, 4.5rem)/.95 League, sans-serif; }
.shop-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 3rem); margin: 0; padding: 0; list-style: none; }
.shop-how li { border-top: 2px solid var(--gold); padding-top: 1rem; }
.shop-how li span { display: block; margin-bottom: 1rem; color: #765b00; font-size: .75rem; font-weight: 700; }
.shop-how li strong { display: block; font: 400 2rem/1 League, sans-serif; }
.shop-how li p { max-width: 22rem; margin: .5rem 0 0; line-height: 1.6; }
.shop-detail { display: grid; grid-template-columns: 2fr 1fr; align-items: stretch; gap: 50px; min-height: 0; }
.shop-detail > img { width: 100%; height: 100%; object-fit: cover; }
.shop-detail > div { padding: 75px var(--side) 50px 0; display: flex; flex-direction: column; }
.shop-detail p { font-size: 0.9375rem; line-height: 1.6; margin-bottom: 18px; }
.shop-detail .shop-sign { width: 190px; height: auto; max-height: 70px; object-fit: contain; align-self: center; margin-top: auto; }
.shop-question { background: var(--gold); text-align: center; font-weight: 700; font-size: 0.9375rem; padding: 18px; text-transform: uppercase; }
.shop-question a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1250px) {
  .shop-editorial, .shop-collection, .shop-how { margin-inline: var(--side); }
  .shop-editorial h1 { font-size: min(8vw, 6.5625rem); }
}
@media (max-width: 980px) {
  .shop-collection .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  .shop-how ol { grid-template-columns: 1fr; gap: 1.5rem; }
  .shop-hero { height: 52vh; min-height: 310px; }
  .shop-editorial { padding-block: 45px; }
  .shop-editorial h1 { font-size: clamp(3.1875rem, 14vw, 5.9375rem); white-space: normal; margin-bottom: 25px; }
  .shop-editorial > p { font-size: 0.875rem; }
  .shop-editorial > p:nth-of-type(2) { margin-bottom: 35px; }
  .shop-gallery { gap: 5px; }
  .shop-gallery img { height: 42vw; }
  .shop-collection h2 { font-size: 2.1875rem; }
  .shop-collection .product-grid { grid-template-columns: repeat(2,1fr); gap: 24px 12px; }
  .shop-collection .product img { height: 50vw; }
  .shop-collection .product h3 { font-size: 1.625rem; }
  .product-inquiry { min-height: 3rem; padding-inline: 0.5rem; }
  .shop-detail { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .shop-detail > img { height: 110vw; max-height: 700px; }
  .shop-detail > div { padding: 40px var(--side) 60px; }
  .shop-detail .shop-sign { margin-top: 30px; }
}

/* Propuestas MTB y merchandising: capítulo visual independiente del catálogo disponible. */
.shop-ideas { margin: 0 0 clamp(4rem, 7vw, 7rem); padding: clamp(2.5rem, 4vw, 3.5rem) var(--side); background: var(--ink); color: var(--paper); }
.shop-ideas-inner { max-width: 1180px; margin: auto; }
.shop-ideas-heading { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(15rem, 1fr); column-gap: clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.shop-ideas-heading .eyebrow { grid-column: 1 / -1; margin: 0 0 .9rem; color: var(--gold); }
.shop-ideas-heading h2 { max-width: 15ch; margin: 0; font: 400 clamp(2.8rem, 4.6vw, 4.5rem)/.92 League, sans-serif; text-wrap: balance; }
.shop-ideas-heading > p:not(.eyebrow) { max-width: 31rem; margin: 0; font-size: 1rem; line-height: 1.55; }
.shop-ideas-heading small { grid-column: 2; margin-top: .65rem; color: rgba(255,254,245,.7); font-size: .75rem; line-height: 1.5; }
.shop-ideas-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: clamp(.7rem, 2vw, 1.5rem); }
.shop-idea { display: flex; min-width: 0; flex-direction: column; border-top: 2px solid var(--gold); }
.shop-idea > img { width: 100%; height: clamp(12rem, 20vw, 15rem); object-fit: contain; background: #f4f0e9; }
.shop-idea-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1rem 0 0; }
.shop-idea-label { color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .05em; }
.shop-idea h3 { margin: .45rem 0; font: 400 clamp(1.8rem, 2.5vw, 2.5rem)/1 League, sans-serif; }
.shop-idea p { margin: 0 0 1.2rem; color: rgba(255,254,245,.82); font-size: .85rem; line-height: 1.5; }
.shop-idea a { display: inline-flex; align-items: center; justify-content: space-between; gap: .8rem; width: 100%; min-height: 44px; margin-top: auto; padding: .5rem .75rem; border: 1px solid var(--gold); color: var(--gold); font-size: .75rem; font-weight: 700; transition: background-color 180ms ease, color 180ms ease; }
.shop-idea a:hover { background: var(--gold); color: var(--ink); }
.shop-idea a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 980px) { .shop-ideas-grid { grid-template-columns: repeat(2, minmax(0,1fr)); row-gap: 2rem; } }
@media (max-width: 640px) {
  .shop-ideas-heading { grid-template-columns: 1fr; }
  .shop-ideas-heading h2 { max-width: 12ch; margin-bottom: 1.25rem; }
  .shop-ideas-heading small { grid-column: 1; }
  .shop-ideas-grid { gap: 1.75rem .75rem; }
  .shop-idea > img { height: clamp(9rem, 40vw, 12rem); }
  .shop-idea h3 { font-size: 1.6rem; }
  .shop-idea p { font-size: .78rem; }
  .shop-idea-copy { padding-top: .75rem; }
}

/* Capítulo de prendas: jerarquía editorial y fichas que se leen de un vistazo. */
.shop-collection-heading { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(16rem,.75fr); align-items: end; gap: clamp(1.5rem, 5vw, 5rem); margin-bottom: clamp(1.5rem, 3vw, 2.5rem); padding-top: 1.25rem; border-top: 1px solid var(--ink); }
.shop-collection-heading .eyebrow { margin: 0 0 .8rem; color: #765b00; }
.shop-collection .shop-collection-heading h2 { max-width: 14ch; margin: 0; font: 400 clamp(3rem, 5.5vw, 5rem)/.92 League, sans-serif; text-align: left; text-wrap: balance; }
.shop-collection-heading > p { max-width: 28rem; margin: 0 0 .15rem; font-size: .95rem; line-height: 1.6; }
.shop-collection .product { border-top: 2px solid var(--gold); }
.shop-collection .product img { height: clamp(15rem, 28vw, 21rem); object-fit: cover; }
.shop-collection .product--sample img { object-fit: contain; background: #f4f0e9; }
.shop-collection .product > div { display: flex; flex-direction: column; align-items: flex-start; padding-top: .8rem; }
.shop-collection .product-kind { color: #765b00; font-size: .68rem; font-weight: 700; letter-spacing: .05em; white-space: normal; }
.shop-collection .product h3 { margin-top: .45rem; }
.shop-collection .product-description { margin: 0 0 .6rem; font-size: .83rem; line-height: 1.5; }
.shop-collection .product .product-price { margin-top: auto; }
.shop-collection .product .product-inquiry { width: 100%; }
.shop-idea-price { display: block; width: 100%; margin-top: auto; padding-bottom: .55rem; border-bottom: 1px solid rgba(255,254,245,.4); color: var(--paper); font-size: .78rem; font-weight: 700; }
.shop-idea-price + a { margin-top: .7rem; }
@media (max-width: 767px) {
  .shop-collection-heading { grid-template-columns: 1fr; gap: 1rem; }
  .shop-collection .shop-collection-heading h2 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .shop-collection-heading > p { font-size: .85rem; }
  .shop-collection .product img { height: clamp(12rem, 50vw, 19rem); }
  .shop-collection .product-kind { font-size: .62rem; }
}
@media (min-width: 981px) { .shop-ideas-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

@media (min-width: 981px) { .shop-ideas-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* Accesorios en una sola fila para que el catálogo crezca sin alargar la página. */
.shop-ideas-grid { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .1rem; scrollbar-width: thin; scrollbar-color: var(--gold) transparent; }
.shop-idea { flex: 0 0 clamp(11.5rem, 20vw, 14rem); scroll-snap-align: start; }
.shop-idea > img { height: 13rem; }
.shop-ideas-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: -1rem 0 1rem; color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .04em; }
.shop-ideas-toolbar > div { display: flex; gap: .4rem; }
.shop-ideas-toolbar > div[hidden] { display: none; }
.shop-ideas-toolbar button { width: 44px; height: 44px; border: 1px solid rgba(255,254,245,.5); background: transparent; color: var(--paper); font: inherit; font-size: 1.25rem; cursor: pointer; }
.shop-ideas-toolbar button:hover, .shop-ideas-toolbar button:focus-visible { border-color: var(--gold); color: var(--gold); }
.shop-ideas-toolbar button:focus-visible { outline: 1px solid var(--gold); outline-offset: 2px; }
.shop-ideas-toolbar button:disabled { opacity: .35; cursor: default; }
.shop-idea-price { font-size: .68rem; line-height: 1.3; }
@media (max-width: 640px) { .shop-idea { flex-basis: min(45vw, 11.5rem); } .shop-idea > img { height: 10.5rem; } .shop-ideas-toolbar { margin-top: 0; } }
@media (prefers-reduced-motion: reduce) { .shop-ideas-grid { scroll-behavior: auto; } }
