/* =========================================================
   BLEGAB LUXURY WIGS — BASE STYLESHEET
   Design tokens, reset, and shared utilities.
   Every page should load base.css first, then the
   stylesheet(s) for the section(s) it needs.
   ========================================================= */

/* -----------------------------
   Design tokens
   ----------------------------- */
:root {
  /* Brand colors */
  --color-bg-dark: #0c0c0c;          /* main dark background */
  --color-bg-dark-alt: #161513;      /* slightly lighter panel on dark bg */
  --color-bg-light: #f6f1e9;         /* cream section background */
  --color-gold: #D4AF37;             /* primary brand accent — metallic gold */
  --color-gold-light: #E8C864;       /* hover / highlight gold */
  --color-gold-dark: #B8941F;        /* pressed / border gold */
  --color-announcement-bg: #E7AF7A;  /* top announcement bar */
  --color-white: #ffffff;
  --color-off-white: #f2efe9;
  --color-text-muted: #b9b4ab;       /* secondary text on dark bg */
  --color-text-muted-light: #6b6660; /* secondary text on light bg */
  --color-border-dark: #2b2a27;      /* hairline borders on dark bg */
  --color-border-light: #e2dbcc;     /* hairline borders on light bg */
  --color-btn-gold: #D4AF37;          /* primary button background */
  --color-btn-gold-hover: #E8C864;    /* primary button hover background */

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', 'Segoe UI', Arial, sans-serif;

  /* Spacing scale */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --space-2xl: 96px;

  /* Layout */
  --page-max-width: 1360px;
  --page-gutter: 20px;
  --header-height: 84px;
  --announcement-height: 40px;

  /* Motion */
  --transition-fast: 0.18s ease;
  --transition-base: 0.3s ease;

  /* Radius */
  --radius-pill: 999px;
  --radius-sm: 4px;
  --radius-md: 10px;
}

@media (min-width: 768px) {
  :root {
    --page-gutter: 32px;
  }
}

@media (min-width: 1200px) {
  :root {
    --page-gutter: 48px;
  }
}

@media (min-width: 1024px) {
  :root { --header-height: 96px; }
}
@media (max-width: 767.98px) {
  :root { --header-height: 76px; }
}


/* -----------------------------
   Reset
   ----------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
  background-color: var(--color-bg-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: calc(var(--header-height) + var(--announcement-height));
}

body.announcement-dismissed {
  padding-top: var(--header-height);
}

img {
  max-width: 100%;
  display: block;
}

/* Make the native `hidden` attribute always win over other display
   rules, no matter how specific they are (e.g. .account-dropdown__item
   { display: flex } would otherwise cancel out `hidden`). */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

input,
button {
  font-size: inherit;
}

svg {
  display: block;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -----------------------------
   Layout utilities
   ----------------------------- */
.container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* -----------------------------
   Shared typography
   ----------------------------- */
.eyebrow-text {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* -----------------------------
   Shared buttons
   ----------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background-color: var(--color-btn-gold);
  color: #1a1a1a;
}

.btn-primary:hover {
  background-color: var(--color-btn-gold-hover);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border-dark);
  color: var(--color-white);
}

.btn-outline:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Icon wrapper holds both icons stacked on top of each other */
.btn-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: width var(--transition-base);
}

.btn-icon {
  position: absolute;
  inset: 0;
  width: 16px;
  height: 16px;
}

/* Default state: bag icon visible, arrow hidden/squashed */
.btn-icon--bag {
  opacity: 1;
  transform: scale(1);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.btn-icon--arrow {
  opacity: 0;
  transform: scaleX(0.4) translateX(-4px);
  transform-origin: left center;
  transition: opacity var(--transition-fast), transform var(--transition-base);
}

.btn-text {
  transition: transform var(--transition-base);
}

/* Hover effect: only on devices with real hover + a precise pointer (mouse/trackpad).
   Touch devices (mobile/most tablets) never trigger this — they stay static. */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover .btn-icon-wrap {
    width: 26px;
  }

  .btn-primary:hover .btn-icon--bag {
    opacity: 0;
    transform: scale(0.6);
  }

  .btn-primary:hover .btn-icon--arrow {
    opacity: 1;
    transform: scaleX(1) translateX(0);
  }

  .btn-primary:hover .btn-text {
    transform: translateX(4px);
  }
}

/* Visible keyboard focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
html {
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
}

/* -----------------------------
   Themed scrollbar — gold, across every page
   Firefox: scrollbar-color / scrollbar-width.
   Chrome / Safari / Edge: ::-webkit-scrollbar.
   ----------------------------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-dark) var(--color-bg-dark);
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 11px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background-color: var(--color-gold-dark);
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-bg-dark);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-gold);
}