/* ==========================================================================
   shop.css
   1. Shared interior-page chrome — loaded on EVERY interior page:
      page-head band, breadcrumb, lead paragraph, btn-row.
   2. Shop by Space page — collections, Build-Your-Own, assurance strip.
   Built on the Ocean Calm tokens. Reuses the homepage kit-card / category
   components already defined in sections.css.
   ========================================================================== */

/* ==========================================================
   0. MISSING-IMAGE PLACEHOLDER
   Marks a background-image box whose asset isn't in /media yet and
   overlays the intended filename so the design team knows what goes there.
   Usage: class="… img-missing" data-missing="filename.png — short description"
   ========================================================== */
.img-missing {
  position: relative;
  background-color: var(--coastal-soft) !important;
}

.img-missing::after {
  content: "IMAGE NEEDED\A" attr(data-missing);
  white-space: pre-line;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  line-height: 1.5;
  color: var(--deep-ocean);
  background: repeating-linear-gradient(45deg, transparent, transparent 11px,
              rgba(27, 94, 122, 0.05) 11px, rgba(27, 94, 122, 0.05) 22px);
  border: 2px dashed rgba(27, 94, 122, 0.4);
  border-radius: inherit;
  pointer-events: none;
}

/* Keep captions / CTAs / badges above the placeholder overlay */
.img-missing .media-cta,
.img-missing .kit-badge {
  z-index: 1;
}

.gallery-tile.img-missing .cap {
  position: relative;
  z-index: 1;
}

/* ==========================================================
   1. SHARED INTERIOR CHROME
   ========================================================== */

/* --- Page header band (breadcrumb + eyebrow + title + lead) --- */
.page-head {
  background: var(--pebble);
  border-bottom: 1px solid var(--hairline);
  padding-block: clamp(36px, 5vw, 72px);
  padding-inline: var(--space-gutter);
}

.page-head-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  align-items: flex-start;
}

.page-head .eyebrow {
  line-height: 1;
}

.page-head h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.02;
  max-width: 16ch;
}

.page-head h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

/* --- Breadcrumb --- */
.breadcrumb {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--graphite);
  letter-spacing: 0.01em;
}

.breadcrumb a {
  color: var(--deep-ocean);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover {
  color: var(--terracotta);
}

/* --- Lead paragraph (shared) --- */
.lead {
  font-size: var(--text-lead);
  color: var(--graphite);
  line-height: 1.55;
  max-width: 60ch;
}

/* --- Button row (shared CTA cluster) --- */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-s);
  margin-top: var(--space-xs);
}

/* ==========================================================
   2. SHOP — COLLECTIONS
   ========================================================== */
.collection {
  padding-block: var(--section-space-s);
  padding-inline: var(--space-gutter);
}

.collection.alt {
  background: var(--pebble);
}

.col-head {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-m);
  margin-bottom: var(--space-l);
}

.col-head .section-title-group {
  gap: var(--space-xs);
}

.col-head h2 {
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  max-width: 18ch;
}

.col-head h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta);
}

.col-count {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  color: var(--deep-ocean);
  background: var(--coastal-soft);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Two-up kit grid (overrides the homepage auto-fit grid on this page) */
.kit-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* Kit card description (missing from the homepage card variant) */
.kit-desc {
  font-size: var(--text-small);
  color: var(--graphite);
  line-height: 1.55;
}

/* Featured single kit — image beside body (Travel range) */
.kit-feature {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.kit-feature .kit-img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 340px;
}

.kit-feature .kit-body {
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  justify-content: center;
}

.kit-feature .kit-body h3 {
  font-size: var(--text-h3);
}

/* ==========================================================
   3. SHOP — BUILD YOUR OWN
   ========================================================== */
.byo {
  padding-block: var(--section-space-m);
  padding-inline: var(--space-gutter);
  background: var(--deep-ocean);
  color: var(--coastal-blue);
}

.byo-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-2xl);
  align-items: start;
}

.byo-grid h2 {
  color: var(--off-white);
  font-size: var(--text-h2);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-s);
}

.byo-grid h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--coastal-blue);
}

.byo-grid > div > p {
  color: var(--coastal-blue);
  line-height: 1.6;
  margin-bottom: var(--space-s);
  max-width: 52ch;
}

.byo-grid .eyebrow {
  color: var(--terracotta);
  margin-bottom: var(--space-s);
}

.addons {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  margin-top: var(--space-m);
}

.addon {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px var(--space-s);
  padding: var(--space-s) 0;
  border-top: 1px solid rgba(168, 200, 212, 0.22);
}

.addon h4 {
  color: var(--off-white);
  font-size: var(--text-h4);
  font-weight: 600;
}

.addon p {
  grid-column: 1;
  font-size: var(--text-small);
  color: var(--coastal-blue);
  line-height: 1.45;
}

.addon .ap {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--off-white);
  white-space: nowrap;
}

/* Feature card — the "Open the Builder" panel */
.byo-feature {
  background: var(--off-white);
  color: var(--charcoal);
  border-radius: var(--radius-lg);
  padding: var(--space-l);
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  box-shadow: var(--shadow-lg);
}

.byo-feature .material-symbols-outlined {
  font-size: 44px;
  color: var(--terracotta);
}

.byo-feature h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

.byo-feature p {
  color: var(--graphite);
  line-height: 1.55;
}

.byo-feature .btn-primary {
  margin-top: var(--space-2xs);
  align-self: flex-start;
}

/* ==========================================================
   4. SHOP — ASSURANCE STRIP
   ========================================================== */
.assurance {
  padding-block: var(--section-space-s);
  padding-inline: var(--space-gutter);
  background: var(--pebble);
}

.assurance-grid {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-l);
}

.assure-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.assure-item .material-symbols-outlined {
  font-size: 32px;
  color: var(--eucalypt);
}

.assure-item h4 {
  font-size: var(--text-h4);
  font-weight: 700;
  color: var(--deep-ocean);
}

.assure-item p {
  font-size: var(--text-small);
  color: var(--graphite);
  line-height: 1.5;
}

/* ==========================================================
   5. RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .byo-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .assurance-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-m);
  }

  .kit-feature {
    grid-template-columns: 1fr;
  }

  .kit-feature .kit-img {
    min-height: 240px;
  }
}

@media (max-width: 640px) {
  .kit-grid.two {
    grid-template-columns: 1fr;
  }

  .col-head {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-s);
  }

  .assurance-grid {
    grid-template-columns: 1fr;
  }

  /* Paired CTAs stack full-width and share the same width on small screens */
  .btn-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-row .btn-primary,
  .btn-row .btn-outline,
  .btn-row .btn-ghost {
    justify-content: center;
  }
}
