/* ================================================================
   BRUVZ CLOTHING — global.css
   Shared by every page. Contains: variables, reset, typography,
   header, slide-nav, footer, buttons, forms, product cards.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600;700&display=swap');

/* ---- Variables ---- */
:root {
  --black:  #000;
  --white:  #fff;
  --g900:   #0A0A0A;
  --g800:   #141414;
  --g700:   #1E1E1E;
  --g600:   #2A2A2A;
  --g500:   #444;
  --g400:   #888;
  --g200:   #C8C8C8;
  --gold:   #D4A12C;
  --green:  #21914c;
  --red:    #C23B2E;
  --blue:   #2954A6;
  --sage:   #7C9A72;
  --FD: 'Bebas Neue', sans-serif;
  --FB: 'Inter', sans-serif;
  --PAD: clamp(16px, 4vw, 48px);
  --NAV: 68px;
  --HEADER-H: 130px; /* announce(30) + nav(68) + secbar(32) */
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--FB);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: scroll;
}
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }
button { font-family: inherit; background: none; border: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--FD);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 0.95;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Animations ---- */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse  { 0%,100%{ opacity:1; } 50%{ opacity:0.3; } }
@keyframes fadeIn { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }

/* ================================================================
   STICKY HEADER WRAP
   ================================================================ */
#header-wrap {
  position: sticky;
  top: 0;
  z-index: 200;
  isolation: isolate;
}

/* ---- Announce bar ---- */
#announce-bar {
  background: var(--g900);
  border-bottom: 1px solid var(--g600);
  overflow: hidden;
  height: 30px;
  display: flex;
  align-items: center;
}
.a-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 30s linear infinite;
  align-items: center;
}
.a-item {
  font-family: var(--FB);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g200);
  padding-right: 10px;
  flex-shrink: 0;
}
.a-sep {
  color: var(--white);
  padding-right: 10px;
  flex-shrink: 0;
  font-size: 10px;
}

/* ---- Main site header ---- */
#site-header {
  background: var(--black);
  border-bottom: 1px solid var(--g600);
  height: var(--NAV);
}
#nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--NAV);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--PAD);
  gap: 16px;
}
#nav-left { display: flex; align-items: center; }

/* Hamburger */
#ham-btn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
  padding: 6px 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
#ham-btn:hover { opacity: 1; }
#ham-btn:hover span { background: var(--green); }
#ham-btn span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--g200);
  transition: transform 0.25s, opacity 0.15s, background 0.15s;
}
#ham-btn.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--white); }
#ham-btn.open span:nth-child(2) { opacity: 0; }
#ham-btn.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--white); }

/* Logo + wordmark centred */
#nav-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  text-decoration: none;
  height: var(--NAV);
  overflow: hidden;
}
#nav-logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
#nav-logo span {
  font-family: var(--FD);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
}

/* Right icons */
#nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.currency {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--g400);
  text-transform: uppercase;
  user-select: none;
}
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: var(--g200);
  transition: color 0.15s;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
.icon-btn:hover { color: var(--white); }
.icon-btn svg { display: block; flex-shrink: 0; }
#cart-badge {
  position: absolute;
  top: 1px; right: 1px;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--black);
  font-family: var(--FB);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}
#wishlist-badge {
  position: absolute;
  top: 1px; right: 1px;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-family: var(--FB);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
}

/* ---- Secondary bar ---- */
#sec-bar {
  background: var(--g900);
  border-bottom: 1px solid var(--g600);
  display: flex;
  align-items: center;
  height: 32px;
  overflow: hidden;
}
#sec-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: var(--PAD);
  padding-right: 16px;
  flex-shrink: 0;
  border-right: 1px solid var(--g600);
  height: 100%;
}
#sec-left img {
  height: 18px; width: 18px;
  object-fit: contain;
}
#sec-left span {
  font-family: var(--FD);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  line-height: 1;
}
#sec-ticker {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
#sec-track {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
  width: max-content;
  animation: ticker 18s linear infinite;
  font-family: var(--FB);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--g400);
}
.t-sep { color: var(--white); font-size: 7px; }

/* ================================================================
   SLIDE-OUT NAV
   ================================================================ */
#slide-nav {
  position: fixed;
  top: 0; left: 0;
  width: min(320px, 90vw);
  height: 100vh;
  background: var(--g900);
  border-right: 1px solid var(--g600);
  z-index: 500;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
#slide-nav.open { transform: translateX(0); }

/* X close button at top */
#nav-close-row {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px 8px;
  border-bottom: 1px solid var(--g600);
  flex-shrink: 0;
}
#nav-close-btn {
  font-size: 1.75rem;
  line-height: 1;
  color: var(--g400);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  padding: 4px 8px;
}
#nav-close-btn:hover { color: var(--green); }

#nav-links {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}
#nav-links ul { list-style: none; }
#nav-links ul > li { border-bottom: 1px solid var(--g600); }
#nav-links ul > li > a,
#nav-links ul > li > button.snav-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 24px;
  font-family: var(--FD);
  font-size: 2rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s;
}
#nav-links ul > li > a:hover,
#nav-links ul > li > button.snav-top:hover { color: var(--green); }

.snav-chevron {
  width: 12px; height: 12px;
  flex-shrink: 0;
  transition: transform 0.25s;
}
.snav-dd-open .snav-chevron { transform: rotate(180deg); }

.snav-dropdown {
  display: none;
  padding: 0 0 16px 24px;
  border-left: 2px solid var(--g600);
  margin: 0 24px 8px;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.snav-dd-open .snav-dropdown { display: grid; }
.snav-col a.snav-head {
  font-family: var(--FB);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: block;
  margin-bottom: 10px;
  text-decoration: none;
}
.snav-col a.snav-head:hover { color: var(--green); }
.snav-col ul li a {
  font-family: var(--FB);
  font-size: 13px;
  color: var(--g400);
  display: block;
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.snav-col ul li a:hover { color: var(--white); }

/* Nav footer — account links */
#nav-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--g600);
  flex-shrink: 0;
}
#nav-footer a {
  display: block;
  font-family: var(--FB);
  font-size: 13px;
  color: var(--g400);
  padding: 6px 0;
  text-decoration: none;
  transition: color 0.15s;
}
#nav-footer a:hover { color: var(--white); }

/* Dim overlay */
#nav-dim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 499;
  display: none;
}
#nav-dim.open { display: block; }

/* ================================================================
   SEARCH OVERLAY
   ================================================================ */
#search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--black);
  border-bottom: 1px solid var(--g600);
  z-index: 600;
  padding: 24px var(--PAD);
  transform: translateY(-100%);
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
#search-overlay.open { transform: translateY(0); }
#search-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1440px;
  margin: 0 auto;
}
#search-input {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1px solid var(--g600);
  color: var(--white);
  font-family: var(--FD);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding: 8px 0;
  outline: none;
}
#search-input::placeholder { color: var(--g600); }
#search-input:focus { border-bottom-color: var(--white); }
#search-close {
  font-size: 2rem;
  color: var(--g400);
  line-height: 1;
}
#search-close:hover { color: var(--white); }
#search-results {
  max-width: 1440px;
  margin: 16px auto 0;
}

/* ================================================================
   PRODUCT CARD — universal
   ================================================================ */
.prod-card {
  background: var(--black);
  display: flex;
  flex-direction: column;
  position: relative;
}
.prod-card > a.prod-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  height: 100%;
}
.prod-img-wrap {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--g800);
}
.prod-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.28s;
}
.prod-img-hover {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.28s;
}
.prod-card:hover .prod-img { opacity: 0; }
.prod-card:hover .prod-img-hover { opacity: 1; }
.prod-placeholder {
  position: absolute; inset: 0;
  background: var(--g700);
  animation: pulse 1.6s ease-in-out infinite;
}

/* Heart / wishlist button on every product card */
.wishlist-btn {
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 32px; height: 32px;
  background: rgba(0,0,0,0.55);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
  backdrop-filter: blur(4px);
}
.wishlist-btn:hover { background: rgba(0,0,0,0.8); transform: scale(1.1); }
.wishlist-btn svg { display: block; }
.wishlist-btn.active svg path { fill: var(--red); stroke: var(--red); }

.prod-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-family: var(--FB);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  z-index: 1;
}
.badge-new  { background: var(--gold);  color: var(--black); }
.badge-sold { background: var(--white); color: var(--black); }
.badge-sale { background: var(--red);   color: var(--white); }

.prod-info {
  padding: 10px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--black);
}
.prod-name {
  font-family: var(--FD);
  font-size: clamp(13px, 1.1vw, 17px);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1;
  color: var(--white);
}
.prod-price { font-size: 12px; color: var(--g400); }
.prod-price-was { text-decoration: line-through; margin-right: 4px; opacity: 0.5; }
.prod-price-sale { color: var(--red); font-weight: 600; }

/* Skeleton */
.skeleton-line {
  height: 12px;
  background: var(--g700);
  animation: pulse 1.6s ease-in-out infinite;
  margin-bottom: 4px;
}

/* ================================================================
   FOOTER
   ================================================================ */
#site-footer {
  background: var(--black);
  border-top: 1px solid var(--g600);
  padding: 64px 0 32px;
  margin-top: 64px;
}
.footer-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--PAD);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 48px;
}
.footer-logo {
  height: 48px; width: 48px;
  object-fit: contain;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p { font-size: 12px; color: var(--g400); line-height: 1.7; max-width: 26ch; }
.footer-col h4 {
  font-family: var(--FB);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 12px;
  color: var(--g400);
  padding: 3px 0;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--g600);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  color: var(--g600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--FB);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 24px;
  border: 1px solid;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.98); }
.btn-white  { background: var(--white);  color: var(--black); border-color: var(--white); }
.btn-white:hover  { background: transparent; color: var(--white); }
.btn-outline{ background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover{ background: var(--white); color: var(--black); }
.btn-green  { background: var(--green);  color: var(--white); border-color: var(--green); }
.btn-green:hover  { opacity: 0.85; }
.btn-ghost  { background: transparent; color: var(--g400); border-color: var(--g600); }
.btn-ghost:hover  { color: var(--white); border-color: var(--white); }
.btn-full   { width: 100%; }
.btn-sm     { padding: 9px 16px; font-size: 10px; }
.btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ================================================================
   FORM FIELDS
   ================================================================ */
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--g400);
  margin-bottom: 6px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  background: var(--g800);
  border: 1px solid var(--g500);
  color: var(--white);
  font-family: var(--FB);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus { border-color: var(--white); }
.field input::placeholder,
.field textarea::placeholder { color: var(--g500); }
.field textarea { resize: vertical; min-height: 100px; }
.field select { color: var(--white); background: var(--g800); cursor: pointer; }
.field select option { background: var(--g800); }
.field-error { font-size: 11px; color: var(--red); margin-top: 4px; }
.field-hint  { font-size: 11px; color: var(--g400); margin-top: 4px; }

/* Alert */
.alert {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid;
  margin-bottom: 16px;
}
.alert-success { background: rgba(33,145,76,0.12); border-color: var(--green); color: #4caf7d; }
.alert-error   { background: rgba(194,59,46,0.12);  border-color: var(--red);   color: #e57373; }
.alert-info    { background: rgba(41,84,166,0.12);  border-color: var(--blue);  color: #7ba3d4; }

/* ================================================================
   PAGE HEADER (inner pages)
   ================================================================ */
.page-hero {
  padding: 48px 0 32px;
  border-bottom: 1px solid var(--g600);
  margin-bottom: 32px;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--PAD);
  padding-right: var(--PAD);
}
.page-hero h1 { font-size: clamp(2rem, 5vw, 4rem); }
.eyebrow {
  font-family: var(--FB);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--g400);
  display: block;
  margin-bottom: 6px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--g400);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: var(--g600); }

/* ================================================================
   NEWSLETTER STRIP
   ================================================================ */
.nl-strip {
  background: var(--g900);
  border-top: 1px solid var(--g600);
  padding: 64px 0;
  text-align: center;
  margin-top: 64px;
}
.nl-strip h2 { font-size: clamp(2rem, 5vw, 4.5rem); margin-bottom: 8px; }
.nl-strip p  { font-size: 13px; color: var(--g400); margin: 0 auto 24px; }
.nl-form {
  display: flex;
  max-width: 420px;
  margin: 0 auto;
}
.nl-form input {
  flex: 1;
  padding: 13px 16px;
  background: var(--g800);
  border: 1px solid var(--g500);
  border-right: none;
  color: var(--white);
  font-size: 13px;
  outline: none;
}
.nl-form input::placeholder { color: var(--g500); }
.nl-form input:focus { border-color: var(--white); }
.nl-form button {
  padding: 13px 20px;
  background: var(--white);
  color: var(--black);
  font-family: var(--FB);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nl-form button:hover { background: transparent; color: var(--white); }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .currency { display: none; }
  #nav-logo span { font-size: 11px; }
}
