/* ASTAR WEAR — Global Styles — streetwear / edgy — black, white, blood red */

:root {
  --bg: #0a0a0a;
  --bg-elev: #111111;
  --fg: #f4f4f4;
  --fg-dim: #9a9a9a;
  --fg-mute: #555555;
  --line: #1f1f1f;
  --line-2: #2a2a2a;
  --accent: #ff2a2a;
  --accent-hot: #ff4444;

  --font-display: 'Anton', 'Archivo Black', sans-serif;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --ease: cubic-bezier(0.6, 0.01, 0.05, 0.95);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: min(1440px, 92vw);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  cursor: none;
}

a, button, input, textarea, select, [role="button"] { cursor: none; }

@media (hover: none) {
  html, body, a, button { cursor: auto; }
  #cursor, #cursor-dot { display: none !important; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; user-select: none; -webkit-user-drag: none; }
button { background: none; border: 0; color: inherit; font: inherit; }

::selection { background: var(--accent); color: #000; }
::-webkit-scrollbar { width: 0; height: 0; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 0.85; text-transform: uppercase; }
.mono { font-family: var(--font-mono); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); }

.container { width: var(--container); margin: 0 auto; }

.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 9998;
  opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  animation: noise-shift 0.5s steps(4) infinite;
}
@keyframes noise-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -2%); }
  100% { transform: translate(0, 0); }
}

#cursor {
  position: fixed; top: 0; left: 0; width: 38px; height: 38px;
  border: 1px solid var(--fg); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease-out), height .3s var(--ease-out), background .3s var(--ease-out), border-color .3s var(--ease-out), opacity .2s;
  mix-blend-mode: difference;
  background: transparent;
}
#cursor.hover { width: 72px; height: 72px; background: var(--fg); border-color: var(--fg); }
#cursor.hover-accent { width: 72px; height: 72px; background: var(--accent); border-color: var(--accent); mix-blend-mode: normal; }
#cursor.hide { opacity: 0; }
#cursor-label {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em;
  color: #000; opacity: 0; transition: opacity .2s;
}
#cursor.hover #cursor-label, #cursor.hover-accent #cursor-label { opacity: 1; }

#cursor-dot {
  position: fixed; top: 0; left: 0; width: 4px; height: 4px;
  background: var(--fg); border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 24px 4vw;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 32px;
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  padding: 16px 4vw;
  border-bottom: 1px solid var(--line);
}
.nav-left { display: flex; gap: 32px; align-items: center; }
.nav-right { display: flex; gap: 28px; align-items: center; justify-content: flex-end; }
.nav-link {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; position: relative; padding: 4px 0;
  overflow: hidden; display: inline-block;
}
.nav-link span { display: block; transition: transform .4s var(--ease-out); }
.nav-link span::after {
  content: attr(data-text); position: absolute; left: 0; top: 100%; color: var(--accent);
}
.nav-link:hover span { transform: translateY(-100%); }
.nav-link.active::before {
  content: ''; position: absolute; left: -10px; top: 50%;
  transform: translateY(-50%); width: 4px; height: 4px;
  background: var(--accent); border-radius: 50%;
}

.logo { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.05em; text-align: center; position: relative; white-space: nowrap; }
.logo::before, .logo::after { content: ''; position: absolute; top: 50%; width: 28px; height: 1px; background: var(--fg); opacity: 0.4; }
.logo::before { right: calc(100% + 10px); }
.logo::after { left: calc(100% + 10px); }

.cart-btn { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.cart-count { display: inline-flex; min-width: 18px; height: 18px; align-items: center; justify-content: center; background: var(--accent); color: #000; border-radius: 50%; font-size: 10px; font-weight: 700; padding: 0 4px; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 32px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--fg); background: transparent; color: var(--fg);
  position: relative; overflow: hidden;
  transition: color .4s var(--ease), border-color .4s var(--ease);
  z-index: 1;
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--fg); transform: translateY(100%); transition: transform .5s var(--ease); z-index: -1; }
.btn:hover { color: #000; }
.btn:hover::before { transform: translateY(0); }
.btn-accent { border-color: var(--accent); color: var(--accent); }
.btn-accent::before { background: var(--accent); }
.btn-accent:hover { color: #000; }
.btn-arrow { display: inline-flex; align-items: center; gap: 10px; position: relative; }
.btn-arrow svg { transition: transform .4s var(--ease-out); }
.btn-arrow:hover svg { transform: translateX(6px); }

.footer { border-top: 1px solid var(--line); padding: 80px 4vw 40px; margin-top: 160px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-brand .display.footer-brand-name { font-size: clamp(40px, 6vw, 100px); line-height: 0.9; margin-bottom: 24px; white-space: nowrap; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-dim); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; position: relative; display: inline-block; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 32px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.08em; }
.footer-bottom > span:first-child { text-align: left; }
.footer-bottom > span:nth-child(2) { text-align: center; }
.footer-bottom > div:last-child { justify-self: end; }
@media (max-width: 768px) { .footer-bottom { grid-template-columns: 1fr; text-align: center; } .footer-bottom > span:first-child, .footer-bottom > span:nth-child(2), .footer-bottom > div:last-child { text-align: center; justify-self: center; } }

.marquee { overflow: hidden; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee-scroll 40s linear infinite;
  animation-play-state: running;
  will-change: transform;
}
.marquee-item {
  font-family: var(--font-display); font-size: clamp(40px, 6vw, 88px);
  text-transform: uppercase; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 48px; white-space: nowrap;
}
.marquee-item::after { content: '✺'; color: var(--accent); font-size: 0.5em; }
@keyframes marquee-scroll { to { transform: translateX(-50%); } }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

.reveal-stagger > * { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }
.reveal-stagger.in > *:nth-child(7) { transition-delay: .48s; }
.reveal-stagger.in > *:nth-child(8) { transition-delay: .56s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

.words .word { display: inline-flex; overflow: hidden; vertical-align: bottom; }
.words .word > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); }
.words.in .word > span { transform: translateY(0); }

.loader { position: fixed; inset: 0; background: var(--bg); z-index: 10000; display: flex; align-items: center; justify-content: center; transition: transform 1s var(--ease) 0.2s; }
.loader.gone { transform: translateY(-100%); }
.loader-inner { text-align: center; }
.loader-logo { font-family: var(--font-display); font-size: clamp(48px, 10vw, 160px); letter-spacing: 0.02em; line-height: 1; overflow: hidden; }
.loader-logo span { display: inline-block; animation: loader-letter .8s var(--ease-out) backwards; }
.loader-space { display: inline-block; width: 0.3em; }
.loader-logo span:nth-child(1) { animation-delay: 0s; }
.loader-logo span:nth-child(2) { animation-delay: .06s; }
.loader-logo span:nth-child(3) { animation-delay: .12s; }
.loader-logo span:nth-child(4) { animation-delay: .18s; }
.loader-logo span:nth-child(5) { animation-delay: .24s; }
.loader-logo span:nth-child(6) { animation-delay: .28s; }
.loader-logo span:nth-child(7) { animation-delay: .32s; }
.loader-logo span:nth-child(8) { animation-delay: .38s; }
.loader-logo span:nth-child(9) { animation-delay: .44s; }
.loader-logo span:nth-child(10) { animation-delay: .50s; }
@keyframes loader-letter {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.loader-bar { width: 240px; height: 1px; background: var(--line-2); margin: 40px auto 12px; position: relative; overflow: hidden; }
.loader-bar::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--accent); animation: loader-fill 1.4s var(--ease) forwards; }
@keyframes loader-fill { from { width: 0; } to { width: 100%; } }
.loader-count { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); letter-spacing: 0.2em; }

@media (max-width: 768px) {
  .nav { grid-template-columns: auto 1fr auto; padding: 16px 5vw; }
  .nav-left { display: none; }
  .nav-right .nav-link:not(.cart-btn) { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .logo::before, .logo::after { display: none; }
}

.hidden { display: none !important; }
.magnetic { display: inline-block; }
.magnetic:hover { will-change: transform; }

.img-zoom { overflow: hidden; position: relative; }
.img-zoom img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.img-zoom:hover img { transform: scale(1.05); }

/* ═══════════════════════════════════════════
   WordPress-specific additions
   ═══════════════════════════════════════════ */

/* --- Nav Hamburger --- */
.nav-hamburger {
  display: none; width: 28px; height: 20px; position: relative;
  flex-direction: column; justify-content: space-between;
  z-index: 101;
}
.nav-hamburger span {
  display: block; width: 100%; height: 1.5px; background: var(--fg);
  transition: transform .4s var(--ease), opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .5s var(--ease), visibility .5s;
}
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu-inner { text-align: center; }
.mobile-menu-links { display: flex; flex-direction: column; gap: 24px; }
.mobile-menu-links .nav-link {
  font-family: var(--font-display); font-size: 48px; letter-spacing: -0.02em;
  text-transform: uppercase; display: block;
}

/* --- Mini Cart Panel --- */
.mini-cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200;
  opacity: 0; visibility: hidden; transition: opacity .4s;
}
.mini-cart-overlay.open { opacity: 1; visibility: visible; }
.mini-cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 90vw);
  background: var(--bg-elev); border-left: 1px solid var(--line); z-index: 201;
  transform: translateX(100%); transition: transform .5s var(--ease-out);
  display: flex; flex-direction: column;
}
.mini-cart-panel.open { transform: translateX(0); }
.mini-cart-header {
  padding: 24px; display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.mini-cart-close { font-size: 24px; color: var(--fg-dim); }
.mini-cart-items { flex: 1; overflow-y: auto; padding: 24px; }
.mini-cart-empty { text-align: center; padding: 60px 0; }
.mini-cart-item {
  display: grid; grid-template-columns: 80px 1fr auto; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.mini-cart-item-img img { width: 80px; height: 100px; object-fit: cover; }
.mini-cart-item-name { font-size: 14px; display: block; margin-bottom: 4px; }
.mini-cart-item-meta { font-family: var(--font-mono); font-size: 11px; color: var(--fg-dim); display: block; }
.mini-cart-item-price { font-family: var(--font-mono); font-size: 13px; margin-top: 4px; display: block; }
.mini-cart-item-remove { font-size: 18px; color: var(--fg-dim); align-self: start; }
.mini-cart-item-remove:hover { color: var(--accent); }
.mini-cart-footer { padding: 24px; border-top: 1px solid var(--line); }
.cart-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; }
.cart-row.total { font-weight: 600; font-size: 16px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }
.cart-checkout {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 18px; margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em;
  text-transform: uppercase; background: var(--accent); color: #000;
  transition: background .3s;
}
.cart-checkout:hover { background: var(--accent-hot); }
.cart-trust { display: flex; gap: 16px; justify-content: center; margin-top: 16px; font-family: var(--font-mono); font-size: 10px; color: var(--fg-dim); letter-spacing: 0.1em; }

/* --- Toast --- */
.toast {
  position: fixed; bottom: 32px; right: 32px; z-index: 300;
  background: var(--bg-elev); border: 1px solid var(--line);
  padding: 16px 24px; display: flex; align-items: center; gap: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em;
  transform: translateY(120px); opacity: 0; transition: transform .5s var(--ease-out), opacity .5s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --- WhatsApp Float --- */
.whatsapp-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 250;
  width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff; border-radius: 50%;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform .3s var(--ease-out), box-shadow .3s;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }

/* --- WooCommerce Page Nav --- */
.nav-links { display: flex; justify-content: center; gap: 8px; }
.nav-links a, .nav-links span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; font-family: var(--font-mono); font-size: 12px;
  border: 1px solid var(--line); transition: all .3s var(--ease);
}
.nav-links a:hover { border-color: var(--accent); color: var(--accent); }
.nav-links .current { background: var(--accent); color: #000; border-color: var(--accent); }

/* --- WP Custom Logo --- */
.custom-logo-link { display: inline-block; }
.custom-logo-link img { height: 28px; width: auto; }

/* --- FAQ Accordion (Support) --- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%; padding: 24px 0; display: flex; gap: 20px; align-items: center;
  text-align: left; font-size: 16px; color: var(--fg); transition: color .3s;
}
.faq-question:hover { color: var(--accent); }
.faq-question span:first-child { font-family: var(--font-mono); font-size: 12px; color: var(--fg-dim); min-width: 24px; }
.faq-question span:last-child { margin-left: auto; font-size: 20px; color: var(--fg-dim); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), padding .4s; }
.faq-item.open .faq-answer { max-height: 400px; padding-bottom: 24px; }
.faq-answer p { font-size: 14px; color: var(--fg-dim); line-height: 1.7; max-width: 56ch; padding-left: 44px; }
