/* =========================================================================
   e-CATALOGUE THEME
   Scoped to the Gift Catalogue page only (body.catalogue-page). Mirrors the
   printed / Heyzine flipbook: deep navy, gold, cream, a diamond motif and a
   serif display face. Nothing here touches the rest of the app.
   ========================================================================= */

.catalogue-page {
  --gc-navy: #0e1c36;
  --gc-navy-soft: #16294a;
  --gc-navy-line: #24365a;
  --gc-gold: #b8923f;
  --gc-gold-bright: #d4af5a;
  --gc-gold-soft: #f1e4c3;
  --gc-cream: #f6efe1;
  --gc-cream-alt: #efe4cf;
  --gc-ink: #241c0f;
  --gc-ink-muted: #6b6353;
  --gc-serif: Georgia, "Times New Roman", "Cambria", serif;
  --gc-script: "Segoe Script", "Brush Script MT", cursive;
}

.catalogue-page .site-main { max-width: 1800px; }

/* ---- Browse area: semi-transparent theme-color wash, so the page-wide
   catalogue_background_url (set on body.catalogue-page, see catalogue.html)
   shows through faintly behind the search bar and product grid too, not
   just in the gaps around this panel. With no background configured,
   body is a solid matching cream, so this reads as plain opaque cream -
   same as before. The filters bar and product cards keep their own
   fully opaque backgrounds so text stays crisp either way. */
.gc-browse {
  background-color: rgba(246, 239, 225, 0.55);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* ---- Hero: a slim, full-bleed banner showing the uploaded photo, not
   the old navy "book cover" with a title/features/tagline. ---- */
.gc-hero {
  position: relative;
  overflow: hidden;
  margin-left: calc(50% - var(--page-w, 100vw) / 2);
  margin-right: calc(50% - var(--page-w, 100vw) / 2);
  margin-top: calc(var(--space-6) * -1);
  margin-bottom: var(--space-6);
  background-color: var(--gc-navy);
  line-height: 0;
}
.gc-hero__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  object-position: center bottom;
}
@media (max-width: 760px) {
  .gc-hero__img { aspect-ratio: 2 / 1; }
}

/* ---- Filters -------------------------------------------------------------- */
.gc-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 260px);
  gap: var(--space-4);
  background: var(--gc-cream);
  border: 1px solid var(--gc-gold-soft);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-5);
  position: sticky;
  /* Flush against the header/categories bar, not var(--site-header-h)
     + a gap: once this bar is stuck, nothing else on the page is
     sticky, so the product grid below it is a normal-flow element
     that keeps scrolling - it doesn't "stay behind" this bar, it just
     scrolls past underneath, same as it scrolls past the header. Any
     gap between the sticky header and this sticky bar is therefore a
     strip with nothing opaque covering it, and whatever part of the
     grid happens to be scrolled to that exact position shows through.
     Confirmed on the live site: with the old "+ var(--space-3)" gap,
     product card tops were visible in that strip once scrolled. */
  top: var(--site-header-h, 112px);
  z-index: 20;
  box-shadow: 0 10px 24px rgba(14, 28, 54, 0.08);
}
.gc-filters__field { display: flex; flex-direction: column; gap: 6px; }
.gc-filters__field label {
  font-family: var(--gc-serif);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--gc-navy);
  font-weight: 700;
}
.gc-filters input[type="search"],
.gc-filters select {
  border: 1px solid var(--gc-gold-soft);
  background: #fff;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  color: var(--gc-ink);
}
.gc-filters input[type="search"]:focus,
.gc-filters select:focus {
  outline: none;
  border-color: var(--gc-gold);
  box-shadow: 0 0 0 3px rgba(184, 146, 63, 0.2);
}

/* ---- Grid & cards ---------------------------------------------------------- */
.gc-grid {
  display: grid;
  gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.gc-card {
  background: var(--gc-cream);
  border: 1px solid var(--gc-gold-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 22px rgba(14, 28, 54, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(14, 28, 54, 0.14);
}

.gc-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(circle at 30% 25%, rgba(212, 175, 90, 0.35), transparent 55%),
    linear-gradient(150deg, var(--gc-navy) 0%, var(--gc-navy-soft) 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.gc-card__media img { width: 100%; height: 100%; object-fit: cover; }
.gc-card__monogram {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid var(--gc-gold-bright);
  display: grid; place-items: center;
  font-family: var(--gc-serif);
  font-size: 26px;
  color: var(--gc-gold-bright);
  background: rgba(255, 255, 255, 0.03);
}
.gc-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(45deg, rgba(212, 175, 90, 0.08) 25%, transparent 25%, transparent 75%, rgba(212, 175, 90, 0.08) 75%),
    linear-gradient(45deg, rgba(212, 175, 90, 0.08) 25%, transparent 25%, transparent 75%, rgba(212, 175, 90, 0.08) 75%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
  pointer-events: none;
}
.gc-card__code {
  position: absolute; top: 10px; left: 10px;
  background: var(--gc-navy);
  border: 1px solid var(--gc-gold);
  color: var(--gc-gold-bright);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 3px 8px;
  border-radius: 999px;
  z-index: 1;
}
.gc-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--gc-navy);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--gc-gold);
  z-index: 1;
}

.gc-card__body { padding: var(--space-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gc-card__eyebrow {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gc-ink-muted);
}
.gc-card__name {
  font-family: var(--gc-serif);
  font-size: 18px;
  color: var(--gc-navy);
  margin: 0;
  line-height: 1.25;
}
.gc-card__desc {
  font-size: 12.5px;
  color: var(--gc-ink-muted);
  font-style: italic;
  margin: 0;
}

.gc-spec-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.gc-spec-list li { display: flex; gap: 7px; font-size: 12px; color: var(--gc-ink); }
.gc-spec-list li::before { content: "\25C6"; color: var(--gc-gold); font-size: 9px; margin-top: 3px; }
.gc-spec-list b { font-weight: 700; margin-right: 3px; }

.gc-card__price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--gc-gold-soft);
}
.gc-card__price {
  font-family: var(--gc-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--gc-navy);
}
.gc-card__unit { font-size: 11px; color: var(--gc-ink-muted); }

.gc-pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.03em;
  border: 1px solid currentColor;
}
.gc-pill--on { color: #3f7a4c; background: #eef6ef; }
.gc-pill--off { color: #a13a3a; background: #faeeee; }

.gc-card__footer { padding: 0 var(--space-4) var(--space-4); margin-top: auto; }
.gc-card__footer--row { display: flex; gap: 8px; }
.gc-btn-order {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(180deg, var(--gc-gold-bright), var(--gc-gold));
  color: var(--gc-navy);
  font-family: var(--gc-serif);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border: 1px solid var(--gc-gold);
}
.gc-btn-order:hover { text-decoration: none; filter: brightness(1.05); }
.gc-btn-cart {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 44px;
  background: var(--gc-navy);
  color: var(--gc-gold-bright);
  border: 1px solid var(--gc-navy);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.gc-btn-cart:hover { filter: brightness(1.15); }

/* ---- Responsive ----------------------------------------------------------- */
@media (max-width: 900px) {
  .gc-filters { grid-template-columns: minmax(0, 1fr); }
}

.gc-empty { grid-column: 1 / -1; padding: var(--space-5) 0; }

/* Whole card opens the product page (stretched name link); the order and
   cart buttons sit above that layer so they keep their own actions. */
.gc-card { position: relative; }
.gc-card__link { color: inherit; }
.gc-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.gc-card__link:hover { text-decoration: none; color: var(--gc-gold); }
.gc-card__link:focus-visible { outline: none; }
.gc-card:has(.gc-card__link:focus-visible) { outline: 3px solid var(--color-gold, #f5b51b); outline-offset: 2px; }
.gc-card__footer { position: relative; z-index: 2; }

/* ---- Colour dots on cards --------------------------------------------------- */
.gc-card__swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin: 2px 0 0; }
.gc-card__swatches span { width: 16px; height: 16px; border-radius: 50%; background: var(--swatch, #e6dec8); border: 1px solid rgba(14, 28, 54, 0.2); }
.gc-card__swatches small { font-size: 11px; color: var(--gc-ink-muted); }
.gc-card__swatch-count { margin-left: 4px; }

/* ---- Breadcrumb ------------------------------------------------------------- */
.gc-breadcrumb ol { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; }
.gc-breadcrumb li { display: inline-flex; align-items: center; }
.gc-breadcrumb li + li::before { content: "\203A"; margin: 0 8px; color: var(--gc-gold); font-weight: 700; }
.gc-breadcrumb a { color: var(--color-primary, #087f6d); font-weight: 600; display: inline-flex; align-items: center; min-height: 32px; }
.gc-breadcrumb [aria-current="page"] { font-weight: 600; color: var(--gc-navy); }

/* ---- Phones: two compact cards per row --------------------------------------- */
@media (max-width: 600px) {
  /* .catalogue-page prefix: must beat responsive.css (loaded later). */
  .catalogue-page .gc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .gc-card__body { padding: 10px; gap: 5px; }
  .gc-card__desc, .gc-spec-list, .gc-card__badge { display: none; }
  .gc-card__name { font-size: 15px; }
  .gc-card__code { font-size: 9.5px; padding: 2px 6px; top: 6px; left: 6px; }
  .gc-card__price-row { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 6px; }
  .gc-card__price { font-size: 16px; }
  .gc-card__footer { padding: 0 10px 10px; }
  .gc-btn-order { font-size: 12.5px; padding: 0 8px; min-height: 44px; letter-spacing: 0; }
  .gc-btn-cart { width: 44px; min-height: 44px; }
  .gc-card__swatch-count { display: none; }
}
@media (max-width: 340px) {
  .catalogue-page .gc-grid { grid-template-columns: minmax(0, 1fr); }
}

.gc-btn-inquire { background: var(--gc-cream); color: var(--gc-navy); border-color: var(--gc-gold); }
