:root {
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --green-deep: #0f2a1a;
  --green-mid: #1a3d26;
  --green-accent: #2d6a44;
  --off-white: #f5f0e8;
  --charcoal: #111111;
  --text-muted: #8a8a7a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--charcoal);
  color: var(--off-white);
  font-family: "Barlow Condensed", sans-serif;
  overflow-x: hidden;
  cursor: default;
}

/* ─── GRAIN OVERLAY ─── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ─── HEADER ─── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.25);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  height: 58px;
}

.logo-text {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  white-space: nowrap;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  flex: 0 0 260px;
}

.search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: var(--off-white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  width: 100%;
}

.search-wrap input::placeholder {
  color: var(--text-muted);
}

.search-icon {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

nav::-webkit-scrollbar {
  display: none;
}

nav a {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  padding: 4px 10px;
  white-space: nowrap;
  transition: color 0.2s;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

nav a:hover {
  color: var(--off-white);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  padding: 80px 60px 60px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    rgba(45, 106, 68, 0.18) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.02em;
  color: var(--off-white);
  position: relative;
}

.hero-title span {
  color: var(--gold);
}

.hero-sub {
  font-size: 1rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 20px;
  font-weight: 300;
}

.hero-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 28px 0;
}

.hero-stats {
  display: flex;
  gap: 20px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px;
  border-radius: 15px;
  background: var(--green-deep);
  gap: 2px;
  width: 64px;
  height: 64px;
}
/* .stat:first-child{
  width: 168px;
} */
.stat-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
}

/* ─── FILTER BAR ─── */
.filter-bar {
  padding: 0 60px;
  margin-bottom: 60px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.filter-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 14px 18px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.filter-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.filter-btn:hover {
  color: var(--off-white);
}

/* ─── GROUPS ─── */
.groups-wrap {
  padding: 0 60px 120px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.group-section {
  display: none;
}
.group-section.visible {
  display: block;
}

.group-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.group-badge {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  border-radius: 50%;
}

.group-title-block {
  flex: 1;
}

.group-name {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  letter-spacing: 0.05em;
  color: var(--off-white);
  line-height: 1;
}

.group-meta {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
}

.group-expand-btn {
  background: none;
  border: 1px solid rgba(201, 168, 76, 0.4);
  color: var(--gold);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.group-expand-btn:hover {
  background: var(--gold);
  color: var(--charcoal);
}

/* ─── CARDS GRID ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.team-card {
  background: var(--green-deep);
  border: 1px solid rgba(201, 168, 76, 0.12);
  overflow: hidden;
  cursor: pointer;
  transition:
    border-color 0.25s,
    transform 0.25s;
  position: relative;
}

.team-card:hover {
  border-color: rgba(201, 168, 76, 0.5);
  transform: translateY(-3px);
}

.team-card:hover .card-overlay {
  opacity: 1;
}

.card-jerseys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #0d1f15;
  position: relative;
}
.buy-now {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: var(--charcoal);
  padding: 15px 30px;
}
.buy-links {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: space-evenly;
}
.buy-links a {
  background: var(--green-mid);
  width: 30%;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  text-decoration: none;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}
.jersey-slot {
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #0d1f15 0%, #162e1e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jersey-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.jersey-slot:hover img {
  transform: scale(1.05);
}

.jersey-slot-label {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 2px 6px;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold);
  z-index: 2;
}

.jersey-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  height: 100%;
  position: relative;
}

.jersey-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 12px,
    rgba(45, 106, 68, 0.05) 12px,
    rgba(45, 106, 68, 0.05) 13px
  );
}

.placeholder-label {
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.jersey-slot .slot-overlay {
  position: absolute;
  inset: 0;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 3;
}

.jersey-slot:hover .slot-overlay {
  opacity: 1;
}

.overlay-icon {
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.card-info {
  padding: 14px 16px 16px;
}

.card-country {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  color: var(--off-white);
  line-height: 1;
}

.card-brand {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
  margin-top: 4px;
}

.card-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 3px 8px;
  border: 1px solid rgba(45, 106, 68, 0.6);
  color: var(--green-accent);
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 12, 8, 0.97);
  backdrop-filter: blur(8px);
  animation: lbIn 0.25s ease;
}

.lightbox.open {
  display: flex;
  flex-direction: column;
}

@keyframes lbIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
  flex-shrink: 0;
}

.lb-title-block {
}

.lb-country {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--off-white);
  line-height: 1;
}

.lb-meta {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 3px;
}

.lb-close {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--off-white);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.lb-close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.lb-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 30px 40px 20px;
  gap: 20px;
}

.lb-main-img {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.lb-main-img img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.2s;
}

.lb-nav:hover {
  background: rgba(201, 168, 76, 0.2);
}
.lb-nav.prev {
  left: 10px;
}
.lb-nav.next {
  right: 10px;
}

.lb-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-shrink: 0;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}

.lb-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
}

.lb-thumb.active {
  border-color: var(--gold);
}

.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: filter 0.2s;
}

.lb-thumb.active img,
.lb-thumb:hover img {
  filter: brightness(1);
}

/* ─── DIVIDER ─── */
.group-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(201, 168, 76, 0.3) 30%,
    rgba(201, 168, 76, 0.3) 70%,
    transparent
  );
  margin-top: 60px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  color: var(--gold);
}

.footer-note {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
}

/* ─── ANIMATIONS ─── */
.group-section {
  animation: fadeUp 0.4s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.team-card {
  animation: cardIn 0.35s ease both;
}

.team-card:nth-child(1) {
  animation-delay: 0.05s;
}
.team-card:nth-child(2) {
  animation-delay: 0.1s;
}
.team-card:nth-child(3) {
  animation-delay: 0.15s;
}
.team-card:nth-child(4) {
  animation-delay: 0.2s;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero {
    padding: 50px 24px 40px;
  }
  .groups-wrap {
    padding: 0 24px 80px;
  }
  .buy-now{
    padding: 5px 5px;
    gap: 0;
  }
  .buy-now a{
    padding: 5px;
    margin:10px 0;
    
  width: 80%;
  }
  .filter-bar {
    padding: 0 24px;
  }
  header {
    height: auto;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: hidden;
  }

  .logo-text {
    text-align:center;
    font-size: 1rem;
  }

  .search-wrap {
    flex: none;
    width: 100%;
    min-width: 0;
  }

  nav {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex: none;
    padding-bottom: 4px;
  }

  nav a {
    flex: 0 0 auto;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 540px) {
  .cards-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}
