:root {
  --black: #000000;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-300: #d4d4d4;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-800: #262626;
  --accent: #c0ff00;
  --red: #e00;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius: 4px;
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --transition: 0.22s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--black);
  background: var(--white);
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: var(--font); }
input, select { font-family: var(--font); }

/* ─── HEADER ─── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: var(--white);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
  gap: 16px;
}

.logo {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  color: var(--white);
  white-space: nowrap;
}

.logo span { color: var(--accent); }

.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 24px;
  padding: 0 16px;
  gap: 8px;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.header-search:focus-within {
  border-color: var(--accent);
  background: rgba(255,255,255,0.15);
}

.header-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--white);
  font-size: 14px;
  padding: 10px 0;
}

.header-search input::placeholder { color: var(--gray-400); }

.header-search button {
  color: var(--gray-400);
  padding: 0;
  line-height: 1;
  font-size: 18px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--white);
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background var(--transition);
  position: relative;
}

.header-btn:hover { background: rgba(255,255,255,0.1); }

.header-btn svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.cart-count {
  position: absolute;
  top: 4px;
  right: 6px;
  background: var(--accent);
  color: var(--black);
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* NAV */
.nav {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.nav-list {
  display: flex;
  list-style: none;
  padding: 0 24px;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.nav-list a {
  display: block;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-300);
  transition: color var(--transition);
  white-space: nowrap;
}

.nav-list a:hover, .nav-list a.active { color: var(--accent); }

/* ─── HERO ─── */
.hero {
  position: relative;
  height: 580px;
  overflow: hidden;
  background: var(--black);
  display: flex;
  align-items: center;
}

.hero-slides { position: relative; width: 100%; height: 100%; }

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}

.hero-slide.active { opacity: 1; pointer-events: all; }

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 80px;
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background: var(--accent);
  color: var(--black);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(36px, 5vw, 68px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -2px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 16px;
  color: var(--gray-300);
  margin-bottom: 32px;
  max-width: 420px;
}

.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover { background: #aaee00; transform: translateY(-1px); }

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

.btn-outline:hover { background: var(--white); color: var(--black); }

.btn-dark {
  background: var(--black);
  color: var(--white);
}

.btn-dark:hover { background: var(--gray-800); }

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 80px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all var(--transition);
}

.hero-dot.active { background: var(--accent); width: 24px; border-radius: 4px; }

/* ─── SECTIONS ─── */
.section { padding: 60px 24px; }
.section-sm { padding: 40px 24px; }

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.section-link {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--black);
  border-bottom: 2px solid var(--black);
  padding-bottom: 2px;
  white-space: nowrap;
  transition: border-color var(--transition);
}

.section-link:hover { border-color: var(--accent); color: var(--black); }

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

.category-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: var(--gray-100);
}

.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img { transform: scale(1.05); }

.category-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.category-card-title {
  color: var(--white);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.3px;
}

/* ─── PRODUCTS GRID ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-img {
  position: relative;
  background: var(--gray-100);
  aspect-ratio: 1;
  overflow: hidden;
}

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

.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-new { background: var(--black); color: var(--white); }
.badge-sale { background: var(--red); color: var(--white); }
.badge-hot { background: var(--accent); color: var(--black); }

.product-card-wish {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
  box-shadow: var(--shadow);
}

.product-card-wish svg { width: 18px; height: 18px; stroke: var(--black); fill: none; stroke-width: 2; }
.product-card-wish.active svg { fill: var(--red); stroke: var(--red); }

.product-card:hover .product-card-wish { opacity: 1; }

.product-card-body { padding: 14px 4px 4px; }

.product-card-category {
  font-size: 11px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card-colors {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-300);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-current {
  font-size: 16px;
  font-weight: 900;
}

.price-old {
  font-size: 13px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.price-discount {
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
}

/* ─── BANNER STRIP ─── */
.banner-strip {
  background: var(--black);
  color: var(--white);
  padding: 48px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  position: relative;
}

.banner-strip::before {
  content: 'ADIDAS';
  position: absolute;
  right: -40px;
  font-size: 140px;
  font-weight: 900;
  opacity: 0.04;
  letter-spacing: -5px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.banner-text h2 { font-size: 36px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.banner-text p { font-size: 16px; color: var(--gray-400); }

/* ─── FEATURES ─── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: 8px;
  background: var(--gray-100);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.feature-icon svg { width: 26px; height: 26px; stroke: var(--white); fill: none; stroke-width: 1.8; }

.feature-card h3 { font-size: 14px; font-weight: 800; margin-bottom: 6px; letter-spacing: 0.3px; }
.feature-card p { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* ─── FOOTER ─── */
.footer { background: var(--black); color: var(--white); }

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 60px 24px 40px;
}

.footer-brand .logo { font-size: 24px; margin-bottom: 16px; }

.footer-brand p {
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.social-btn:hover { background: var(--accent); }
.social-btn:hover svg { stroke: var(--black); }
.social-btn svg { width: 18px; height: 18px; stroke: var(--white); fill: none; stroke-width: 2; }

.footer-col h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--gray-300); font-size: 13px; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--accent); }

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

.footer-bottom p { font-size: 12px; color: var(--gray-600); }

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a { font-size: 12px; color: var(--gray-600); transition: color var(--transition); }
.footer-bottom-links a:hover { color: var(--white); }

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: var(--black);
  color: var(--white);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}

.toast.success { border-left: 4px solid var(--accent); }
.toast.error { border-left: 4px solid var(--red); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

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

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* ─── MOBILE MENU ─── */
.mobile-menu-btn {
  display: none;
  color: var(--white);
  padding: 8px;
}

.mobile-menu-btn svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-top { padding: 0 12px; }
  .mobile-menu-btn { display: flex; }
  .header-search { display: none; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav.open .nav-list { flex-direction: column; padding: 8px 12px 12px; gap: 0; }
  .nav.open .nav-list li a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .hero { height: 420px; }
  .hero-content { padding: 0 16px; }
  .hero-dots { left: 16px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .section    { padding: 40px 0; }
  .section-sm { padding: 32px 0; }
  .section-header { padding: 0 12px; flex-direction: column; align-items: flex-start; }
  .banner-strip { padding: 36px 16px; flex-direction: column; text-align: center; }
  .footer-main   { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 16px 28px; }
  .footer-bottom { padding: 16px; flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .categories-grid { gap: 6px; }
  .hero-title { font-size: 32px; }
  .footer-main { grid-template-columns: 1fr; padding: 32px 16px 24px; }
  .header-top { padding: 0 8px; gap: 4px; }
  .logo       { font-size: 18px; flex-shrink: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .header-actions { gap: 0; }
  /* Hide button labels — show only icons */
  .header-btn { font-size: 0; padding: 8px 6px; }
  .header-btn .cart-count { font-size: 10px; }
}
