/*
 * atelier-index template skin — boutique minimal look after loeve.shop.
 * Every rule is scoped under .storefront-template--index so the other
 * storefront templates keep the shared base styles untouched.
 */

.storefront-template--index {
  --lv-bg: #ffffff;
  --lv-ink: #1d1d1f;
  --lv-muted: #7d7d7f;
  --lv-faint: #8d8d8f;
  --lv-line: #e5e5e5;
  --lv-soft: #f0f0f2;
  --lv-panel: #f7f7f9;
  --lv-gold: #9a7b52;
  background: var(--lv-bg);
  color: var(--lv-ink);
}

/* ---------- chrome: two-deck white sticky header ---------- */

.storefront-template--index .storefront-chrome {
  position: sticky;
  z-index: 40;
  top: 0;
  display: block;
  padding: 0;
  background: #fff;
  border-bottom: 1px solid var(--lv-line);
}

.storefront-template--index [data-slot] {
  scroll-margin-top: 124px;
}

.storefront-template--index .storefront-chrome__brand {
  display: flex;
  justify-content: center;
  padding: 22px 48px 12px;
}

.storefront-template--index .storefront-chrome strong {
  color: var(--lv-gold);
  font-family: Didot, "Bodoni MT", "Playfair Display", Georgia, "Songti SC", serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  text-transform: uppercase;
}

.storefront-template--index .storefront-chrome nav {
  display: flex;
  justify-content: safe center;
  gap: 34px;
  padding: 2px 48px 14px;
  overflow-x: auto;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.storefront-template--index .storefront-chrome nav::-webkit-scrollbar {
  display: none;
}

.storefront-template--index .storefront-chrome a {
  padding: 4px 0;
  color: var(--lv-ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.storefront-template--index .storefront-chrome a:hover {
  opacity: 0.55;
}

/* ---------- hero: full-bleed photo, centered copy, outlined pill ---------- */

.storefront-template--index .storefront-hero {
  position: relative;
  min-height: 66vh;
  display: grid;
  align-items: center;
  justify-items: center;
}

.storefront-template--index .storefront-hero img {
  opacity: 1;
}

.storefront-template--index .storefront-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(12 12 14 / 34%);
}

.storefront-template--index .storefront-hero__content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding: 104px 24px;
  color: #fff;
  text-align: center;
  text-shadow: 0 2px 26px rgb(0 0 0 / 35%);
}

.storefront-template--index .storefront-hero__content p {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-transform: uppercase;
  opacity: 0.85;
}

.storefront-template--index .storefront-hero__content h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.04;
}

.storefront-template--index .storefront-hero__content span {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.92;
}

.storefront-template--index .storefront-hero__cta {
  display: inline-block;
  margin-top: 36px;
  padding: 14px 46px;
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.storefront-template--index .storefront-hero__cta:hover {
  background: #fff;
  color: var(--lv-ink);
}

/* ---------- content sections: centered heads, generous air ---------- */

.storefront-template--index .lv-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 88px 48px 0;
}

.storefront-template--index .lv-section__head {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.storefront-template--index .lv-section__head h2 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.storefront-template--index .lv-section__head p {
  margin: 12px auto 0;
  color: var(--lv-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* home catalog block reads grid -> view-all pill -> RFQ, like the reference */

.storefront-template--index .lv-section--catalog {
  display: flex;
  flex-direction: column;
}

.storefront-template--index .lv-section--catalog .storefront-catalog-link {
  order: 1;
}

.storefront-template--index .lv-section--catalog .storefront-rfq {
  order: 2;
}

/* footer slot renders as the light grey site footer band */

.storefront-template--index .lv-section--footer {
  max-width: none;
  margin-top: 96px;
  padding: 64px 48px 80px;
  background: var(--lv-panel);
  border-top: 1px solid var(--lv-line);
}

.storefront-template--index .lv-section--footer .lv-section__head h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.storefront-template--index .lv-section--footer .lv-section__head p {
  color: var(--lv-faint);
  font-size: 13px;
}

/* ---------- product grid: borderless cards on soft image wells ---------- */

.storefront-template--index .storefront-products {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 44px 24px;
  margin-top: 48px;
}

.storefront-template--index .storefront-product {
  background: none;
  border: none;
}

.storefront-template--index .storefront-product__image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 6px;
  background: var(--lv-soft);
  color: var(--lv-gold);
}

.storefront-template--index .storefront-product__image span {
  font-family: Didot, "Bodoni MT", "Playfair Display", Georgia, "Songti SC", serif;
  font-size: 15px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
}

.storefront-template--index .storefront-product__image img {
  min-height: 0;
  transition: transform 0.5s ease;
}

.storefront-template--index .storefront-product:hover .storefront-product__image img {
  transform: scale(1.045);
}

.storefront-template--index .storefront-product__body {
  padding: 15px 2px 0;
}

.storefront-template--index .storefront-product__eyebrow {
  margin: 0 0 6px;
  color: var(--lv-faint);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.storefront-template--index .storefront-product h3 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}

.storefront-template--index .storefront-product__meta {
  gap: 3px;
  margin-top: 10px;
  color: var(--lv-faint);
  font-size: 12px;
}

.storefront-template--index .storefront-product__meta strong {
  color: var(--lv-ink);
  font-size: 15px;
  font-weight: 700;
}

.storefront-template--index .storefront-product__description {
  margin-top: 10px;
  color: var(--lv-muted);
  font-size: 13px;
  line-height: 1.65;
}

.storefront-template--index .storefront-product__actions {
  gap: 10px;
  padding-top: 16px;
}

.storefront-template--index .storefront-product__actions a {
  padding: 8px 16px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  color: var(--lv-ink);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.storefront-template--index .storefront-product__actions a:hover {
  border-color: var(--lv-ink);
}

.storefront-template--index .storefront-product__actions a[data-rfq-add] {
  background: var(--lv-ink);
  border-color: var(--lv-ink);
  color: #fff;
}

.storefront-template--index .storefront-product__actions a[data-rfq-add]:hover {
  opacity: 0.82;
}

.storefront-template--index .storefront-product__actions [data-rfq-unavailable] {
  align-self: center;
  color: var(--lv-faint);
  font-size: 12px;
}

.storefront-template--index .storefront-products__empty {
  margin-top: 40px;
  color: var(--lv-muted);
  text-align: center;
}

/* "view all" pill under the home catalog grid */

.storefront-template--index .storefront-catalog-link {
  margin: 44px 0 0;
  text-align: center;
}

.storefront-template--index .storefront-catalog-link a {
  display: inline-block;
  padding: 13px 54px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.storefront-template--index .storefront-catalog-link a:hover {
  border-color: var(--lv-ink);
}

/* ---------- RFQ panel: white card, hairline border, soft radius ---------- */

.storefront-template--index .storefront-rfq {
  box-sizing: border-box;
  margin-top: 88px;
  padding: 44px;
  background: #fff;
  border: 1px solid var(--lv-line);
  border-radius: 16px;
  box-shadow: none;
}

.storefront-template--index .storefront-rfq__copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
}

.storefront-template--index .storefront-rfq__copy p:last-child,
.storefront-template--index .storefront-rfq__status {
  color: var(--lv-muted);
  font-size: 14px;
}

.storefront-template--index .storefront-rfq label {
  color: var(--lv-muted);
  font-size: 13px;
}

.storefront-template--index .storefront-rfq input,
.storefront-template--index .storefront-rfq select,
.storefront-template--index .storefront-rfq textarea {
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  color: var(--lv-ink);
}

.storefront-template--index .storefront-rfq input:focus,
.storefront-template--index .storefront-rfq select:focus,
.storefront-template--index .storefront-rfq textarea:focus {
  outline: none;
  border-color: var(--lv-ink);
}

.storefront-template--index .storefront-rfq__consent input {
  width: 16px;
  accent-color: var(--lv-ink);
}

.storefront-template--index .storefront-rfq button {
  padding: 14px 42px;
  border-radius: 8px;
  background: var(--lv-ink);
  border-color: var(--lv-ink);
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.storefront-template--index .storefront-rfq button:hover {
  opacity: 0.85;
}

.storefront-template--index .storefront-rfq__status {
  font-size: 13px;
}

/* ---------- pagination ---------- */

.storefront-template--index .storefront-pagination {
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 0;
  border-top: none;
  color: var(--lv-muted);
}

.storefront-template--index .storefront-pagination a {
  padding: 10px 28px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  color: var(--lv-ink);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.storefront-template--index .storefront-pagination a:hover {
  border-color: var(--lv-ink);
}

/* ---------- catalog page ---------- */

.storefront-template--index .storefront-catalog-page {
  max-width: 1400px;
  padding: 64px 48px 104px;
}

.storefront-template--index .storefront-catalog-page > p {
  margin: 0 0 12px;
  color: var(--lv-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  text-align: center;
  text-transform: uppercase;
}

.storefront-template--index .storefront-catalog-page h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  text-align: center;
}

/* ---------- product detail ---------- */

.storefront-template--index .storefront-product-detail {
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr);
  gap: 56px;
  max-width: 1280px;
  min-height: 0;
  margin: 48px auto 0;
  padding: 0 48px;
  background: none;
}

.storefront-template--index .storefront-product-detail:not(:has(> img)) {
  grid-template-columns: 1fr;
  max-width: 800px;
}

.storefront-template--index .storefront-product-detail > img {
  aspect-ratio: 1 / 1;
  height: auto;
  min-height: 0;
  border-radius: 8px;
  background: var(--lv-soft);
}

.storefront-template--index .storefront-product-detail__body {
  padding: 8px 0 56px;
}

.storefront-template--index .storefront-product-detail h1 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.2;
}

.storefront-template--index .storefront-product-detail .storefront-product__eyebrow {
  margin-bottom: 10px;
}

.storefront-template--index .storefront-product-detail .storefront-product__meta {
  gap: 5px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--lv-line);
  font-size: 13px;
}

.storefront-template--index .storefront-product-detail .storefront-product__meta strong {
  font-size: 22px;
}

.storefront-template--index .storefront-product-detail__description {
  color: var(--lv-muted);
  font-size: 14px;
}

.storefront-template--index .storefront-product-detail .storefront-product__actions a {
  padding: 12px 28px;
  font-size: 14px;
}

/* detail / missing views sit directly under <main>: keep them centered */

.storefront-template--index.storefront-template--detail .storefront-rfq {
  width: auto;
  max-width: 1280px;
  margin: 72px 48px 0;
}

@media (min-width: 1376px) {
  .storefront-template--index.storefront-template--detail .storefront-rfq {
    margin: 72px auto 0;
  }
}

.storefront-template--index .storefront-product-missing {
  max-width: 1400px;
  padding: 96px 48px;
  text-align: center;
}

.storefront-template--index .storefront-product-missing h1 {
  font-size: clamp(26px, 3vw, 36px);
}

.storefront-template--index .storefront-product-missing a {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 36px;
  border: 1px solid var(--lv-line);
  border-radius: 8px;
  text-decoration: none;
}

/* main must paint white beneath the shortest pages too */

.storefront-template--index.storefront-template--detail,
.storefront-template--index.storefront-template--catalog {
  padding-bottom: 96px;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
  .storefront-template--index .storefront-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .storefront-template--index .storefront-chrome__brand {
    padding: 16px 20px 8px;
  }

  .storefront-template--index .storefront-chrome strong {
    font-size: 21px;
  }

  .storefront-template--index .storefront-chrome nav {
    justify-content: flex-start;
    gap: 24px;
    padding: 2px 20px 12px;
  }

  .storefront-template--index .storefront-hero {
    min-height: 62vh;
  }

  .storefront-template--index .storefront-hero__content {
    padding: 72px 20px;
  }

  .storefront-template--index .storefront-hero__content h1 {
    font-size: 40px;
  }

  .storefront-template--index .storefront-hero__cta {
    padding: 12px 36px;
    font-size: 14px;
  }

  .storefront-template--index .lv-section {
    padding: 56px 20px 0;
  }

  .storefront-template--index .lv-section--footer {
    margin-top: 64px;
    padding: 48px 20px 64px;
  }

  .storefront-template--index .storefront-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
    margin-top: 36px;
  }

  .storefront-template--index .storefront-product h3 {
    font-size: 14px;
  }

  .storefront-template--index .storefront-rfq {
    margin-top: 64px;
    padding: 24px 20px;
    border-radius: 12px;
    grid-template-columns: 1fr;
  }

  .storefront-template--index .storefront-catalog-page {
    padding: 48px 20px 72px;
  }

  .storefront-template--index .storefront-product-detail {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
    padding: 0 20px;
  }

  .storefront-template--index .storefront-product-detail__body {
    padding: 0 0 40px;
  }

  .storefront-template--index.storefront-template--detail .storefront-rfq {
    margin: 56px 20px 0;
  }

  .storefront-template--index .storefront-product-missing {
    padding: 64px 20px;
  }
}
