/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: #0a0a0a;
  color: #e8e6e3;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #e63946;
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #ff4d5a;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e8e6e3;
  letter-spacing: -0.5px;
}

.nav-logo:hover {
  color: #e63946;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #a09e9a;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #e8e6e3;
}

.nav-cta {
  background: #e63946;
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover {
  background: #d62839;
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #e8e6e3;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #0a0a0a;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 30%, rgba(230, 57, 70, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 70%, rgba(180, 40, 55, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 120, 100, 0.05) 0%, transparent 50%);
  animation: meshShift 10s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 70% 20%, rgba(230, 57, 70, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 40% 60% at 30% 80%, rgba(200, 50, 60, 0.07) 0%, transparent 50%);
  animation: meshShift2 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
  0% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.05) translate(1%, -1%); }
  100% { transform: scale(1) translate(-1%, 1%); }
}

@keyframes meshShift2 {
  0% { transform: scale(1.05) translate(1%, 0); }
  100% { transform: scale(1) translate(-1%, -1%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #b0aeab 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 60px rgba(230, 57, 70, 0.15);
  filter: drop-shadow(0 0 30px rgba(230, 57, 70, 0.1));
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #a09e9a;
  margin-bottom: 2.5rem;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}

.btn-primary {
  background: #e63946;
  color: #fff;
}

.btn-primary:hover {
  background: #d62839;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
}

.btn-outline {
  background: transparent;
  color: #e8e6e3;
  border: 2px solid rgba(232, 230, 227, 0.3);
}

.btn-outline:hover {
  color: #fff;
  border-color: rgba(232, 230, 227, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-small {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  background: #e63946;
  color: #fff;
  border-radius: 6px;
}

/* ===== Sections ===== */
.section {
  padding: 6rem 0;
}

.section-alt {
  background: #121110;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  color: #a09e9a;
  margin-bottom: 3.5rem;
  font-size: 1rem;
}

/* ===== About ===== */
.about-content {
  max-width: 700px;
  margin: 2rem auto 0;
  text-align: center;
}

.about-content p {
  color: #b5b3af;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-content strong {
  color: #e63946;
}

/* Trust / Stats bar */
.trust-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.trust-badge {
  display: inline-block;
  background: rgba(230, 57, 70, 0.1);
  color: #d4d2cf;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid rgba(230, 57, 70, 0.15);
}

/* ===== Items Grid ===== */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.75rem;
}

/* ===== Item Cards ===== */
.item-card {
  display: block;
  background: #1a1918;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #2a2826;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.item-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(230, 57, 70, 0.1);
  border-color: #3a3836;
}

.item-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  background: #111;
}

.item-card-body {
  padding: 1rem 1.15rem 1.15rem;
}

.item-card-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #a09e9a;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #e63946;
  margin-bottom: 0.3rem;
}

.item-card-meta {
  font-size: 0.8rem;
  color: #706e6a;
}

.item-card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #e63946;
}

.item-card-link:hover {
  color: #ff4d5a;
}

.item-card-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* Category badge color variations */
.item-card-badge {
  background: rgba(230, 57, 70, 0.15);
  color: #e63946;
}

.item-card-badge[data-category="electronics"] {
  background: rgba(56, 163, 230, 0.15);
  color: #38a3e6;
}

.item-card-badge[data-category="sneakers"],
.item-card-badge[data-category="shoes"] {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.item-card-badge[data-category="collectibles"] {
  background: rgba(255, 183, 77, 0.15);
  color: #ffb74d;
}

.item-card-badge[data-category="clothing"],
.item-card-badge[data-category="apparel"] {
  background: rgba(171, 71, 188, 0.15);
  color: #ab47bc;
}

/* ===== Loading & Error ===== */
.loading-spinner {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: #706e6a;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #2a2826;
  border-top-color: #e63946;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: #a09e9a;
}

.error-message p {
  margin-bottom: 1rem;
}

/* ===== Contact CTA ===== */
.contact-cta {
  text-align: center;
  padding: 2rem 0;
}

/* ===== Footer ===== */
.footer {
  padding: 3.5rem 0;
  text-align: center;
  border-top: 1px solid #2a2826;
}

.footer p {
  color: #706e6a;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.footer a {
  color: #a09e9a;
}

.footer a:hover {
  color: #e63946;
}

/* ===== Fade-in Animation ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0a0a0a;
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.3s;
    border-left: 1px solid #1a1918;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
  }

  .section {
    padding: 4rem 0;
  }

  .items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .trust-bar {
    gap: 0.5rem;
  }

  .trust-badge {
    font-size: 0.78rem;
    padding: 0.4rem 0.9rem;
  }
}

@media (max-width: 480px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .items-grid {
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  }
}
