/* ============================================================
   GALAXY GOODS — DEEP SPACE
   Applied over Blocksy. Ported from Nova Luna's Nightfall stylesheet;
   palette shifted to deep-space navy / star gold / nebula violet
   ============================================================ */

:root {
  --night:    #101226;
  --night-2:  #1a1d3a;
  --ivory:    #f4f4fa;
  --ink:      #1e2033;
  --gold:     #c9a55f;
  --gold-soft:#dfc389;
  --rose:     #8f7fe8;
  --leaf:     #5f7fae;
  --line:     #d9d9ea;
  --gg-display: 'Cormorant Garamond', Georgia, serif;
  --gg-body:    'Jost', system-ui, sans-serif;

  /* Blocksy design tokens */
  --theme-palette-color-1: #c9a55f;
  --theme-palette-color-2: #dfc389;
  --theme-palette-color-3: #1e2033;
  --theme-palette-color-4: #101226;
  --theme-palette-color-5: #d9d9ea;
  --theme-palette-color-6: #e6e6f2;
  --theme-palette-color-7: #f4f4fa;
  --theme-palette-color-8: #ffffff;
  --theme-text-color: #1e2033;
  --theme-headings-color: #1e2033;
  --theme-link-initial-color: #1e2033;
  --theme-link-hover-color: #c9a55f;
  --theme-button-background-initial-color: #c9a55f;
  --theme-button-background-hover-color: #dfc389;
  --theme-button-text-initial-color: #101226;
  --theme-button-text-hover-color: #101226;
  --theme-font-family: 'Jost', system-ui, sans-serif;
  --theme-headings-font-family: 'Cormorant Garamond', Georgia, serif;
}

body {
  font-family: var(--gg-body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--gg-display);
  font-weight: 500;
}

/* ---------------- announcement topbar + search ---------------- */

.gg-topbar {
  background: var(--night);
  color: var(--gold-soft);
  font-family: var(--gg-body);
  font-size: .75rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(201,165,95,.18);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .35rem 1rem .35rem 0;
}

.gg-marquee { overflow: hidden; white-space: nowrap; flex: 1 1 auto; min-width: 0; }
.gg-marquee-track {
  display: inline-flex;
  align-items: center;
  animation: gg-marquee 36s linear infinite;
  will-change: transform;
}
.gg-marquee-track span { padding: 0 1.6rem; }
.gg-marquee-track i { font-style: normal; color: var(--gold); font-size: .7rem; }
.gg-topbar:hover .gg-marquee-track { animation-play-state: paused; }
@keyframes gg-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gg-marquee-track { animation: none; } }

.gg-search { display: flex; align-items: center; flex: 0 0 auto; }
.gg-search input[type=search] {
  background: var(--night-2);
  border: 1px solid rgba(201,165,95,.35);
  border-right: none;
  color: var(--ivory);
  font-family: var(--gg-body);
  font-size: .78rem;
  letter-spacing: .06em;
  padding: .38rem .8rem;
  width: 180px;
  border-radius: 0;
}
.gg-search input[type=search]::placeholder { color: #8e8ea8; }
.gg-search input[type=search]:focus { outline: 1px solid var(--gold); outline-offset: -1px; }
.gg-search button {
  background: var(--gold);
  color: var(--night);
  border: 1px solid var(--gold);
  font-size: 1rem;
  line-height: 1;
  padding: .34rem .7rem;
  cursor: pointer;
  border-radius: 0;
  transition: background .25s;
}
.gg-search button:hover { background: var(--gold-soft); }

/* ---------------- header (dark) ---------------- */

.gg-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.gg-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16,18,38,.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,165,95,.25);
}
/* Symmetric 1fr / auto / 1fr grid: the side columns are always equal width, so
   the nav lands on the true page centre — and therefore over the moon in the
   hero — instead of drifting right as it did under justify-content:space-between,
   where its position depended on the brand and cart widths. */
.gg-header-in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  padding: .8rem 24px;
}
.gg-header-in > .gg-brand { justify-self: start; }
.gg-header-in > .gg-nav   { justify-self: center; }
.gg-header-in > .gg-cart  { justify-self: end; }

.gg-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  color: var(--ivory);
  text-decoration: none;
  flex: 0 0 auto;
}
.gg-brand-mark {
  height: 54px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(223,195,137,.3));
}
/* The inline Southern Cross SVG is square: its width follows the height */
svg.gg-brand-mark { aspect-ratio: 1 / 1; }
.gg-brand-text {
  font-family: var(--gg-body);
  font-weight: 500;
  font-size: 1.06rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  line-height: 1.15;
  display: block;
  white-space: nowrap; /* keep GALAXY GOODS on one line when the header is tight */
}
.gg-brand-text small {
  display: block;
  font-size: .6rem;
  letter-spacing: .5em;
  color: var(--gold);
  margin-top: 4px;
}
/* Owner byline: italic serif, so it reads as a signature, not part of the name */
.gg-brand-by {
  display: block;
  margin-top: 4px;
  font-family: var(--gg-display);
  font-style: italic;
  font-weight: 500;
  font-size: .82rem;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--gold-soft);
  white-space: nowrap;
}

.gg-nav {
  display: flex;
  gap: 2.2rem;
  font-family: var(--gg-body);
  font-size: .78rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: #c6c6d8;
}
.gg-nav a {
  color: #c6c6d8;
  text-decoration: none;
  padding: .3rem 0;
  border-bottom: 1px solid transparent;
  transition: .25s;
  white-space: nowrap;
}
.gg-nav a:hover,
.gg-nav a:focus-visible { color: var(--gold-soft); border-color: var(--gold); }
.gg-nav li { list-style: none; }

.gg-cart {
  position: relative;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--ivory);
  text-decoration: none;
  flex: 0 0 auto;
}
.gg-cart b {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--gold);
  color: var(--night);
  font-size: .62rem;
  font-weight: 500;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

/* mobile nav toggle — hidden on desktop */
.gg-navtoggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: .4rem;
}
.gg-navtoggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gold-soft);
  margin: 4px 0;
  transition: .25s;
}
.gg-navtoggle:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }

@media (max-width: 900px) {
  /* brand | toggle | cart on the first row, nav drops to a full-width second row */
  .gg-header-in {
    grid-template-columns: 1fr auto auto;
    gap: 1rem;
  }
  .gg-navtoggle { display: block; }
  .gg-header-in > .gg-nav {
    grid-column: 1 / -1;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    gap: 0;
    padding-top: .6rem;
  }
  .gg-header-in > .gg-nav.is-open { display: flex; }
  .gg-nav a {
    padding: .7rem 0;
    border-bottom: 1px solid rgba(201,165,95,.18);
  }
  .gg-brand-mark { height: 40px; }
  .gg-brand-text { font-size: .82rem; letter-spacing: .26em; }
  .gg-brand-text small { font-size: .5rem; letter-spacing: .45em; margin-top: 3px; }
  .gg-brand-by { font-size: .72rem; margin-top: 3px; }
}

/* Small phones: shrink the brand so name + byline, menu and cart share one row */
@media (max-width: 420px) {
  .gg-brand { gap: .6rem; }
  .gg-brand-mark { height: 36px; }
  .gg-brand-text { font-size: .76rem; letter-spacing: .22em; }
  .gg-brand-by { font-size: .68rem; }
}

/* ---------------- full-bleed bands ----------------
   WordPress' constrained layout caps every child of .entry-content at the
   content width (1290px) AND forces `margin-inline: auto !important`, which
   is why these bands were sitting in a boxed column. Overriding both lets
   them fill the container, which is already the full viewport width — no
   100vw trick, so no horizontal scrollbar.                                */

.gg-hero,
.gg-band,
.gg-visit {
  max-width: none !important;
  width: auto;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* The homepage is a stack of full-bleed bands that carry their own vertical
   rhythm, so the theme's 60px container padding just opens gaps under the
   header and above the footer. */
body.home .ct-container-full,
body.home .ct-container {
  padding-top: 0;
  padding-bottom: 0;
}

/* ---------------- homepage intro (slim heading shown while the hero is off) ---------------- */

.gg-intro {
  text-align: center;
  padding: 2.6rem 24px 0;
}
.gg-intro h1 {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-indent: .16em;
  color: var(--ink);
  margin: 0 0 .5rem;
}
.gg-intro p {
  font-family: var(--gg-body);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: .06em;
  color: #4a4c66;
  margin: 0 auto;
  max-width: 38em;
}

/* ---------------- homepage hero (night sky) ---------------- */

.gg-hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 4rem 24px 4.5rem;
  color: var(--ivory);
  background:
    radial-gradient(1.5px 1.5px at 18% 30%, rgba(246,241,234,.9) 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 68%, rgba(246,241,234,.7) 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 65% 22%, rgba(246,241,234,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 55%, rgba(246,241,234,.6) 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 34%, rgba(223,195,137,.8) 50%, transparent 51%),
    radial-gradient(1px 1px at 10% 76%, rgba(223,195,137,.6) 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 84%, rgba(246,241,234,.55) 50%, transparent 51%),
    linear-gradient(180deg, #0d0f1f 0%, #141731 55%, #1b1f3d 100%);
}
.gg-hero h1 {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: .18em;
  text-transform: uppercase;
  text-indent: .18em;
  color: var(--ivory);
  margin: 2rem 0 .6rem;
}
.gg-hero .gg-tagline {
  font-family: var(--gg-body);
  font-weight: 300;
  font-size: 1.02rem;
  letter-spacing: .12em;
  color: var(--gold-soft);
  margin: 0 auto 1rem;
  max-width: 34em;
}
.gg-hero .gg-eyebrow {
  font-size: .72rem;
  letter-spacing: .55em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.8rem;
}
.gg-moonhalo {
  position: relative;
  width: min(430px, 82vw);
  margin: 0 auto;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 36%, #fbf7f0 0%, #f1e7d8 55%, #e2d0b8 100%);
  box-shadow: 0 0 90px 24px rgba(223,195,137,.28), 0 0 220px 60px rgba(223,195,137,.12);
  display: grid;
  place-items: center;
}
.gg-moonhalo img { width: 76%; height: auto; }

.gg-btn {
  display: inline-block;
  margin-top: 1.6rem;
  padding: .95rem 3rem;
  font-family: var(--gg-body);
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  transition: .3s;
  text-decoration: none;
}
.gg-btn-gold { background: var(--gold); color: var(--night) !important; }
.gg-btn-gold:hover { background: var(--gold-soft); color: var(--night) !important; }
.gg-btn-ghost { border: 1px solid var(--gold); color: var(--gold) !important; }
.gg-btn-ghost:hover { background: var(--gold); color: var(--night) !important; }

/* ---------------- category showcase sections ---------------- */

.gg-cat-showcase { padding: 3.5rem 0 2.5rem; }
.gg-sec-head { text-align: center; margin-bottom: 2.2rem; }
.gg-crescent { color: var(--gold); font-size: 1rem; display: block; margin-bottom: .5rem; }
.gg-sec-head h2 {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-indent: .14em;
  margin: 0;
}
.gg-sec-head h2 a { color: var(--ink); text-decoration: none; transition: color .25s; }
.gg-sec-head h2 a:hover { color: var(--gold); }
.gg-sec-head p {
  font-size: .8rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose);
  margin-top: .3rem;
}
/* sub-category links under each homepage section heading */
.gg-subcats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .55rem 1.5rem;
  margin: -1.3rem 0 2.1rem;
}
.gg-subcats a {
  font-family: var(--gg-body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #6d6560;
  text-decoration: none;
  padding-bottom: .25rem;
  border-bottom: 1px solid transparent;
  transition: .25s;
}
.gg-subcats a:hover,
.gg-subcats a:focus-visible { color: var(--gold); border-color: var(--gold); }

@media (max-width: 600px) {
  .gg-subcats { gap: .45rem 1rem; }
  .gg-subcats a { font-size: .68rem; letter-spacing: .14em; }
}

/* empty-category placeholder */
.gg-empty {
  text-align: center;
  font-family: var(--gg-body);
  font-size: .82rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--rose);
  padding: 2.5rem 0;
  margin: 0;
}
.gg-empty .gg-crescent { display: block; font-size: 1rem; margin-bottom: .55rem; }

.gg-viewall { text-align: center; margin-top: 1.8rem; }
.gg-viewall a {
  font-size: .78rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: .3rem;
  transition: .25s;
}
.gg-viewall a:hover { color: var(--gold); }

/* dark interleave band (full bleed) */
.gg-band {
  background: var(--night);
  color: var(--ivory);
  padding: 4.5rem 24px;
  text-align: center;
}
.gg-band-inner { max-width: 640px; margin: 0 auto; }
.gg-band h2 {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
  color: var(--gold-soft);
}
.gg-band p { color: #d8d1c8; font-size: 1.02rem; }
.gg-band .gg-crescent { margin-bottom: .8rem; }

/* ---------------- visit strip ---------------- */

.gg-visit {
  background: linear-gradient(180deg, var(--ivory) 0%, #e6e6f2 100%);
  padding: 5rem 24px;
  text-align: center;
}
.gg-visit h2 {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: 2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.gg-visit p { max-width: 520px; margin: 0 auto; color: #5a534e; }
.gg-hours {
  margin-top: 1.4rem;
  font-size: .85rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ---------------- product cards ---------------- */

ul.products li.product .ct-media-container,
ul.products li.product .woocommerce-loop-product__link img,
ul.products li.product img {
  background: #fff;
  border: 1px solid var(--line);
  transition: .3s;
}
ul.products li.product:hover img {
  border-color: var(--gold);
  box-shadow: 0 16px 34px -20px rgba(36,31,34,.35);
}
ul.products li.product .woocommerce-loop-product__title,
ul.products li.product h2,
ul.products li.product h3 {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: 1.15rem;
  letter-spacing: .05em;
  text-align: center;
}
ul.products li.product { text-align: center; }
.gg-price-btn,
ul.products li.product .button {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--ink);
  font-family: var(--gg-body);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .14em;
  padding: .45rem 1.5rem;
  border-radius: 0;
  transition: .3s;
}
ul.products li.product:hover .gg-price-btn,
.gg-price-btn:hover {
  background: var(--gold);
  color: var(--night);
}

/* ---------------- shop layout: left sidebar ---------------- */

.gg-shop-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.gg-shop-main { min-width: 0; }

.gg-shop-side {
  position: sticky;
  top: 90px;
  border-right: 1px solid var(--line);
  padding-right: 1.5rem;
}
.gg-side-title {
  font-family: var(--gg-display);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin: 1.4rem 0 .8rem;
}
.gg-side-title .gg-crescent { display: inline; font-size: .9rem; margin-right: .2rem; }
.gg-side-back {
  display: block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  text-decoration: none;
  margin-bottom: .7rem;
}
.gg-side-back:hover { color: var(--gold); }
.gg-side-list { list-style: none; margin: 0; padding: 0; }
.gg-side-list li { border-bottom: 1px solid var(--line); }
.gg-side-list li a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .2rem;
  font-family: var(--gg-body);
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  transition: .25s;
}
.gg-side-list li a:hover { color: var(--gold); padding-left: .5rem; }
.gg-side-list li.gg-current > a { color: var(--gold); border-left: 2px solid var(--gold); padding-left: .5rem; }
.gg-side-count {
  flex: 0 0 auto;
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.gg-side-list li a:hover .gg-side-count { color: var(--gold); }

/* count beside homepage sub-category links */
.gg-subcat-count {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.gg-side-search { display: flex; }
.gg-side-search input[type=search] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-right: none;
  background: #fff;
  font-family: var(--gg-body);
  font-size: .82rem;
  padding: .45rem .7rem;
  border-radius: 0;
}
.gg-side-search input[type=search]:focus { outline: 1px solid var(--gold); outline-offset: -1px; }
.gg-side-search button {
  background: var(--gold);
  color: var(--night);
  border: 1px solid var(--gold);
  padding: .4rem .7rem;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 0;
}
.gg-side-search button:hover { background: var(--gold-soft); }

@media (max-width: 780px) {
  .gg-shop-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .gg-shop-side { position: static; border-right: none; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
  .gg-search input[type=search] { width: 120px; }
}

/* ---------------- contact form ---------------- */

.gg-contact-wrap { max-width: 620px; }

.gg-contact-form { display: flex; flex-direction: column; gap: 1.15rem; margin-top: .5rem; }
.gg-field { display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.gg-field label {
  font-family: var(--gg-body);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
}
.gg-field .gg-optional { color: var(--gold); letter-spacing: .1em; }

.gg-contact-form input[type=text],
.gg-contact-form input[type=email],
.gg-contact-form textarea {
  font-family: var(--gg-body);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .7rem .85rem;
  width: 100%;
  transition: border-color .2s;
}
.gg-contact-form input:focus,
.gg-contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.gg-contact-form textarea { resize: vertical; min-height: 140px; }

.gg-submit { margin-top: .4rem; }
.gg-contact-form .gg-btn-gold { border: none; cursor: pointer; }

/* honeypot — visually and physically removed, still in the DOM for bots */
.gg-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.gg-turnstile { margin: .2rem 0; }

.gg-form-notice {
  padding: 1rem 1.2rem;
  margin: 0 0 1.6rem;
  font-size: .95rem;
  line-height: 1.5;
  border: 1px solid var(--line);
}
.gg-form-notice .gg-crescent { display: inline; color: var(--gold); margin-right: .4rem; }
.gg-form-ok  { background: #f2f6ee; border-color: #cdd8bf; color: #4a5a3c; }
.gg-form-err { background: #f9ece6; border-color: #e2c4b4; color: #8a4b2f; }

/* ---------------- footer (dark) ---------------- */

.gg-site-footer {
  background: var(--night);
  color: #b7aea6;
  padding: 3.5rem 24px 2.5rem;
  text-align: center;
}
.gg-fbrand {
  font-family: var(--gg-body);
  font-weight: 500;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--ivory);
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
}
.gg-fnav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  font-family: var(--gg-body);
  font-size: .74rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  flex-wrap: wrap;
}
.gg-fnav a { color: #b7aea6; text-decoration: none; transition: color .25s; }
.gg-fnav a:hover,
.gg-fnav a:focus-visible { color: var(--gold-soft); }
.gg-fnav li { list-style: none; }
.gg-fine {
  font-family: var(--gg-body);
  font-size: .72rem;
  letter-spacing: .08em;
  color: #8a817b;
}

/* ---------------- brand glyph fallback (until a logo is uploaded) ---------------- */
.gg-brand-glyph { font-size: 1.9rem; line-height: 1; color: var(--gold); }

/* ---------------- front page: hide the "Home" page title ---------------- */
.home .page-title, .home .entry-title, .home .entry-header { display: none; }
