/* ── OMFORI — Luxury Streetwear Catalog ──────────────── */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #141414;
  --bg-card-hover: #1a1a1a;
  --border: #222222;
  --border-light: #2a2a2a;
  --text: #f5f5f5;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #e8e8e8;
  --green: #4ade80;
  --green-muted: rgba(74, 222, 128, 0.15);
  --amber: #fbbf24;
  --amber-muted: rgba(251, 191, 36, 0.15);
  --red: #f87171;
  --red-muted: rgba(248, 113, 113, 0.12);
  --font-heading: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────── */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 6px;
  text-decoration: none;
  color: var(--text);
  text-transform: uppercase;
}

.header-tagline {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.header-actions {
  display: flex;
  gap: 12px;
}

.search-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.search-toggle:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.search-bar {
  display: none;
  padding: 0 24px 16px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.search-bar.active { display: flex; gap: 8px; }

.search-bar input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 15px;
  color: var(--text);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus { border-color: var(--text-muted); }
.search-bar input::placeholder { color: var(--text-muted); }

.search-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  padding: 0 8px;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  padding: 80px 24px 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Filter Section ─────────────────────────────────── */

.filter-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.filter-group {
  display: flex;
  gap: 8px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  border-color: var(--text-secondary);
  color: var(--text);
}

.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.dot-store { background: var(--green); }
.dot-online { background: var(--amber); }

.filter-dropdowns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-dropdowns select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  min-width: 140px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.filter-dropdowns select:hover,
.filter-dropdowns select:focus {
  border-color: var(--text-muted);
  color: var(--text);
}

.active-filters {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.filter-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-tag button {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

/* ── Product Grid ───────────────────────────────────── */

.catalog {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
  min-height: 60vh;
}

.product-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ── Product Card ───────────────────────────────────── */

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.product-card:hover {
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

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

.card-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}

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

.card-image .placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a1a, #222);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 24px;
  letter-spacing: 4px;
}

/* Badges */
.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.badge {
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.badge-store {
  background: var(--green-muted);
  color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.badge-online {
  background: var(--amber-muted);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.badge-sold-out {
  background: var(--red-muted);
  color: var(--red);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-sale {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Card Body */
.card-body {
  padding: 16px 18px 20px;
}

.card-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 10px;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-price .current {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.card-price .compare {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.card-availability {
  margin-top: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.avail-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.avail-tag.store {
  background: var(--green-muted);
  color: var(--green);
}

.avail-tag.online {
  background: var(--amber-muted);
  color: var(--amber);
}

.avail-tag.sold-out {
  background: var(--red-muted);
  color: var(--red);
}

/* ── Loading ────────────────────────────────────────── */

.loading {
  text-align: center;
  padding: 60px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

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

.empty-state {
  text-align: center;
  padding: 80px 24px;
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 16px;
}

.clear-btn {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.clear-btn:hover { opacity: 0.85; }

/* ── Modal ──────────────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 24px;
  overflow-y: auto;
}

.modal-overlay.active { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: 100%;
  position: relative;
  margin: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--bg-elevated); }

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.modal-image {
  aspect-ratio: 4/5;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-info {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.modal-brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}

.modal-price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.modal-price .current {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
}

.modal-price .compare {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.modal-price .save {
  font-size: 13px;
  color: var(--green);
  background: var(--green-muted);
  padding: 3px 10px;
  border-radius: 50px;
  font-weight: 600;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 24px;
  flex-grow: 1;
}

.modal-variants {
  margin-bottom: 20px;
}

.modal-variants h4 {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.variant-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.variant-chip {
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-secondary);
  background: var(--bg-elevated);
}

.variant-chip.out-of-stock {
  opacity: 0.4;
  text-decoration: line-through;
}

.modal-stock {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.stock-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.stock-indicator .dot {
  width: 8px;
  height: 8px;
}

.stock-indicator.in-stock { color: var(--green); }
.stock-indicator.out-of-stock { color: var(--red); }

/* ── Footer ─────────────────────────────────────────── */

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  font-style: italic;
}

.footer-info {
  display: flex;
  gap: 48px;
}

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.footer-col p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Responsive ─────────────────────────────────────── */

@media (max-width: 768px) {
  .header-tagline { display: none; }
  .logo { font-size: 22px; letter-spacing: 4px; }
  .hero { padding: 48px 24px 36px; }
  .hero h1 { font-size: 32px; }

  .filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-dropdowns {
    width: 100%;
  }

  .filter-dropdowns select {
    flex: 1;
    min-width: 0;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .card-body { padding: 12px 14px 16px; }
  .card-title { font-size: 13px; }
  .card-price .current { font-size: 15px; }
  .card-brand { font-size: 10px; }

  .modal-body { grid-template-columns: 1fr; }
  .modal-image {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    aspect-ratio: 16/9;
  }
  .modal-info { padding: 24px; }

  .footer-info { flex-direction: column; gap: 24px; }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .card-image { aspect-ratio: 3/4; }
  .card-body { padding: 10px 12px 14px; }
  .badge { font-size: 8px; padding: 3px 7px; }
}

/* ── Animations ─────────────────────────────────────── */

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

.product-card {
  animation: fadeInUp 0.4s ease forwards;
  opacity: 0;
}

.product-card:nth-child(1) { animation-delay: 0.05s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.15s; }
.product-card:nth-child(4) { animation-delay: 0.2s; }
.product-card:nth-child(5) { animation-delay: 0.25s; }
.product-card:nth-child(6) { animation-delay: 0.3s; }
.product-card:nth-child(7) { animation-delay: 0.35s; }
.product-card:nth-child(8) { animation-delay: 0.4s; }
.product-card:nth-child(9) { animation-delay: 0.45s; }
.product-card:nth-child(10) { animation-delay: 0.5s; }
.product-card:nth-child(11) { animation-delay: 0.55s; }
.product-card:nth-child(12) { animation-delay: 0.6s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
