/* /css/styles.css */
/* Orchestrator + FINAL just-in-case guard (beats any stray gradient) */

/* Imports must remain first */
@import url("./rooms/reset.css");
@import url("./rooms/theme-vars.css");
@import url("./rooms/header.css");
@import url("./rooms/main.css");
@import url("./rooms/footer.css");
@import url("./rooms/utilities.css");
@import url("./rooms/dark-bridge.css");
@import url("./rooms/responsive.css");

/* Luxe display font for product titles (safe fallback chain) */
@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap");

/* Global CSS variables for “gold” so we can tweak once */
:root {
  --price-gold: #D4AF37;      /* classic metallic gold */
  --price-gold-ink: #D4AF37;  /* same in light mode */
  --price-gold-dark: #FFD56A; /* brighter in dark mode for contrast */
}

.buy-button,
.buy-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--btn-accent-border, color-mix(in srgb, var(--header-bg, #c9b27a) 30%, #ffffff));
  background: linear-gradient(
    135deg,
    var(--btn-accent-1, color-mix(in srgb, var(--header-bg, #c9b27a) 12%, #ffffff)),
    var(--btn-accent-2, color-mix(in srgb, var(--header-bg, #c9b27a) 58%, #000000))
  );
  text-decoration: none;
  color: var(--btn-accent-ink, #0f1115);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.10);
  transition: box-shadow 0.18s ease, transform 0.14s ease, filter 0.18s ease;
  white-space: nowrap;
}

.buy-button:hover {
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.buy-button:focus-visible {
  outline: 2px solid var(--btn-accent-focus, color-mix(in srgb, var(--header-bg, #c9b27a) 55%, transparent));
  outline-offset: 2px;
}

/* dark mode no longer used */

/* Dropdown wider click target */
.z-nav-item.dropdown { position: relative; }
.z-nav-item.dropdown .dropbtn {
  display: block; width: 100%; text-align: left; background: none; border: 0; padding: 6px 10px; cursor: pointer;
}
.z-nav-item.dropdown:hover .dropdown-content,
.z-nav-item.dropdown:focus-within .dropdown-content { display: block; }

/* Nav over crest */
.z-mast-left  { position: absolute; z-index: 6; }
.z-nav        { position: relative; z-index: 7; }
.z-mast-center{ position: relative; z-index: 1; }

/* Storefront button compactness */
.product-card .buy-button {
  line-height: 1 !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  margin: 0 auto !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ===== Final guard (kills ANY late purple/gradient) ===== */
header, .z-header {
  background: var(--header-bg) !important;
  border-color: var(--header-border) !important;
}
footer {
  background: var(--footer-bg, var(--header-bg)) !important;
  border-color: var(--footer-border, var(--header-border)) !important;
}

/* ===== footer link readability guard (links only) =====
   do not force all footer text color — only the links. */
footer a,
footer a:visited {
  color: #ffffff !important;                  /* readable on dark footers */
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45); /* keeps readable even on brighter themes */
}

footer a:hover,
footer a:focus-visible {
  filter: brightness(1.1);
  outline: none;
}
/* === Force social icons to pure white on all themes === */
.z-social,
.z-social:visited {
  color: #fff !important;            /* icons use currentColor */
}

/* If your icons are inline SVGs or icon fonts, this ensures they inherit white */
.z-social svg,
.z-social i {
  fill: currentColor !important;
  stroke: currentColor !important;
}

/* Keep the little lift-on-hover but stay white */
.z-social:hover,
.z-social:focus-visible {
  color: #fff !important;
  transform: translateY(-1px);
  outline: none;
}

/* If any icons are raster images (PNG/SVG not set to currentColor), force white via filter */
.z-social img {
  filter: brightness(0) invert(1) !important;   /* turns dark glyphs white */
}

/* ---- Global helpers used by apparel card styles ---- */
/* Title font helper (consumed in apparel/apparel.css) */
.z-luxe-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Price gold helper (consumed in apparel/apparel.css) */
.z-price-gold { color: var(--price-gold-ink); }

body.dark .z-price-gold { color: var(--price-gold-dark); }
