/* ===========================
   FANG CLOTHING — style.css
   =========================== */

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

:root {
  --black:    #080808;
  --white:    #f0ede8;
  --red:      #c0141a;
  --red-dark: #7a0c10;
  --gray:     #1a1a1a;
  --gray-mid: #2a2a2a;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: linear-gradient(to bottom, rgba(8,8,8,0.95), transparent);
  transition: background 0.3s, border-bottom 0.3s;
}

nav.scrolled {
  background: rgba(8,8,8,0.97);
  border-bottom: 1px solid rgba(192,20,26,0.25);
}

.nav-logo img {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(192,20,26,0.5));
  transition: filter 0.3s;
}

.nav-logo img:hover {
  filter: drop-shadow(0 0 28px rgba(192,20,26,0.9));
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--red);
}

.nav-cart {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(240,237,232,0.3);
  padding: 9px 22px;
  transition: border-color 0.2s, background 0.2s;
}

.nav-cart:hover {
  border-color: var(--red);
  background: rgba(192,20,26,0.12);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-slash {
  position: absolute;
  top: -20%; right: -10%;
  width: 50%; height: 140%;
  background: var(--red-dark);
  transform: skewX(-12deg);
  opacity: 0.06;
  pointer-events: none;
}

.hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--red), var(--red), transparent);
  opacity: 0.55;
}

.hero-eyebrow {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 8px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease both;
}

.hero-logo {
  width: min(480px, 80vw);
  filter: drop-shadow(0 0 40px rgba(192,20,26,0.4));
  animation: fadeUp 0.9s 0.1s ease both, logoGlow 3s 1s ease-in-out infinite alternate;
}

.hero-tagline {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(240,237,232,0.4);
  letter-spacing: 5px;
  margin-top: 28px;
  animation: fadeUp 1s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 52px;
  animation: fadeUp 1s 0.35s ease both;
  flex-wrap: wrap;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fadeUp 1s 0.6s ease both;
}

.scroll-hint span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 4px;
  color: rgba(240,237,232,0.3);
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--red), transparent);
  animation: scrollPulse 1.5s ease-in-out infinite;
}

/* ===== TICKER ===== */
.ticker {
  background: var(--red);
  padding: 11px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-flex;
  animation: ticker 22s linear infinite;
}

.ticker-item {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  padding: 0 40px;
}

.ticker-item::before {
  content: '✦';
  margin-right: 40px;
  opacity: 0.55;
}

/* ===== SHARED ===== */
.section-label {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.section-title {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 1;
  color: var(--white);
  margin-bottom: 48px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  padding: 16px 40px;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s, color 0.2s;
  display: inline-block;
}

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

.btn-ghost {
  font-family: 'Oswald', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(240,237,232,0.3);
  padding: 16px 40px;
  text-decoration: none;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: border-color 0.2s, background 0.2s;
  display: inline-block;
}

.btn-ghost:hover {
  border-color: var(--red);
  background: rgba(192,20,26,0.1);
}

/* ===== FEATURED DROP ===== */
.featured-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 100px 40px;
}

.featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
}

.featured::before {
  content: 'DROP 01';
  position: absolute;
  top: -50px; right: 0;
  font-family: 'Oswald', sans-serif;
  font-size: 9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.02);
  pointer-events: none;
  letter-spacing: -4px;
}

.featured-image {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--gray);
  overflow: hidden;
}

.featured-image::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px;
  width: 30px; height: 30px;
  border-top: 2px solid var(--red);
  border-left: 2px solid var(--red);
  z-index: 2;
}

.featured-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(192,20,26,0.15));
}

.featured-image-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 8rem;
  color: rgba(255,255,255,0.04);
}

.featured-info { padding-left: 20px; }

.featured-tag {
  display: inline-block;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 4px;
  background: var(--red);
  color: var(--white);
  padding: 5px 14px;
  margin-bottom: 22px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.featured-name {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.featured-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(240,237,232,0.5);
  margin-bottom: 28px;
  max-width: 400px;
}

.featured-price {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 28px;
}

.featured-price small {
  font-size: 0.85rem;
  font-weight: 300;
  opacity: 0.4;
  margin-left: 8px;
}

.size-grid {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.size-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 2px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 18px;
  cursor: pointer;
  background: transparent;
  color: var(--white);
  transition: border-color 0.2s, background 0.2s;
}

.size-btn:hover,
.size-btn.active {
  border-color: var(--red);
  background: rgba(192,20,26,0.15);
  color: var(--white);
}

.size-btn.disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

/* ===== PRODUCT GRID ===== */
.products-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 40px 100px;
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 24px;
}

.products-header a {
  font-family: 'Oswald', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: rgba(240,237,232,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.products-header a:hover { color: var(--red); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

.product-card {
  background: var(--gray);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.product-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}

.product-card:hover::after { transform: scaleX(1); }

.product-img {
  aspect-ratio: 3/4;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-img-placeholder {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 5rem;
  color: rgba(255,255,255,0.04);
  transition: color 0.3s;
}

.product-card:hover .product-img-placeholder { color: rgba(192,20,26,0.08); }

.product-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8,8,8,0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card:hover .product-img-overlay { opacity: 1; }

.product-img-overlay span {
  font-family: 'Oswald', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  border: 1px solid var(--white);
  padding: 10px 22px;
  clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
  transition: border-color 0.2s, color 0.2s;
}

.product-card:hover .product-img-overlay span {
  border-color: var(--red);
  color: var(--red);
}

.product-info {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.product-name {
  font-family: 'Oswald', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  color: rgba(240,237,232,0.45);
}

.badge {
  position: absolute;
  top: 12px; right: 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 0.58rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 4px 10px;
  clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
  z-index: 1;
}

.badge-new  { background: var(--red); color: var(--white); }
.badge-out  { background: var(--gray-mid); color: rgba(255,255,255,0.4); }

/* ===== MANIFESTO ===== */
.manifesto-section {
  background: var(--red);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.manifesto-section::before {
  content: 'FANG';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 22rem;
  color: rgba(0,0,0,0.1);
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -10px;
}

.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
}

.manifesto-quote {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 28px;
}

.manifesto-body {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(240,237,232,0.7);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== INSTAGRAM ===== */
.insta-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 40px;
}

.insta-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.insta-item {
  aspect-ratio: 1;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 2rem;
  color: rgba(255,255,255,0.04);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.insta-item .insta-hover {
  position: absolute;
  inset: 0;
  background: rgba(192,20,26,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 3px;
  opacity: 0;
  transition: opacity 0.3s;
}

.insta-item:hover .insta-hover { opacity: 1; }

/* ===== NEWSLETTER ===== */
.newsletter-section {
  max-width: 780px;
  margin: 0 auto;
  padding: 80px 40px;
  text-align: center;
}

.newsletter-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  color: rgba(240,237,232,0.45);
  line-height: 1.75;
  margin-bottom: 40px;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-input {
  flex: 1;
  background: var(--gray);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: none;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  letter-spacing: 2px;
  padding: 16px 20px;
  outline: none;
  transition: border-color 0.2s;
}

.newsletter-input:focus {
  border-color: var(--red);
}

.newsletter-btn {
  font-family: 'Oswald', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 16px 28px;
  cursor: pointer;
  transition: background 0.2s;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%);
}

.newsletter-btn:hover { background: var(--red-dark); }

/* ===== FOOTER ===== */
footer {
  background: var(--gray);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 40px 40px;
}

.footer-inner { max-width: 1400px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 52px;
}

.footer-logo {
  height: 56px;
  width: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 0 12px rgba(192,20,26,0.3));
}

.footer-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  color: rgba(240,237,232,0.35);
  line-height: 1.75;
  max-width: 270px;
}

.footer-col-title {
  font-family: 'Oswald', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 22px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  color: rgba(240,237,232,0.4);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  color: rgba(240,237,232,0.18);
  letter-spacing: 2px;
}

.footer-snake {
  font-size: 1.2rem;
  color: rgba(192,20,26,0.35);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== KEYFRAMES ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes logoGlow {
  from { filter: drop-shadow(0 0 30px rgba(192,20,26,0.3)); }
  to   { filter: drop-shadow(0 0 70px rgba(192,20,26,0.75)); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; }
  50%       { opacity: 1; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .featured { grid-template-columns: 1fr; }
  .featured-info { padding-left: 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-top { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-input { border-right: 1px solid rgba(255,255,255,0.1); border-bottom: none; }
}
