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

:root {
  --primary: #1a1a2e;
  --primary-light: #2d2d44;
  --accent: #c9a96e;
  --accent-dark: #b8944f;
  --text: #1a1a1a;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  --bg: #ffffff;
  --bg-warm: #faf9f7;
  --bg-dark: #f3f1ee;
  --border: #e5e2dd;
  --sale: #c0392b;
  --radius: 6px;
  --max-width: 1280px;
  --header-height: 68px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* === Layout === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* === Header === */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header .container {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-logo { height: 70px; flex-shrink: 0; }
.header-logo img { height: 100%; width: auto; }
.header-nav { display: flex; gap: 36px; align-items: center; }
.header-nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-light);
  transition: color var(--transition);
  padding: 6px 0;
  border-bottom: 1.5px solid transparent;
  white-space: nowrap;
}
.header-nav a:hover { color: var(--text); }
.header-nav a.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

/* Search bar */
.header-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}
.header-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  background: var(--bg-warm);
  color: var(--text-light);
  transition: border-color var(--transition), background var(--transition);
}
.header-search input:hover {
  border-color: var(--text-muted);
  background: var(--bg);
}
.header-search svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* Action buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  white-space: nowrap;
  transition: all var(--transition);
}
.nav-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.nav-btn svg { flex-shrink: 0; }

/* === Hero === */
.hero {
  background: var(--primary);
  color: white;
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201,169,110,0.15) 0%, transparent 70%);
}
.hero .container { position: relative; }
.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 52px;
  font-weight: 300;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero h1 em {
  font-style: italic;
  font-weight: 400;
}
.hero p {
  font-size: 16px;
  opacity: 0.6;
  max-width: 440px;
  margin: 0 auto 40px;
  font-weight: 300;
}
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: var(--primary);
  padding: 14px 44px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover { background: var(--accent-dark); transform: translateY(-1px); }

/* === Section === */
.section { padding: 72px 0; }
.section-title {
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 300;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-link {
  color: var(--text-light);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.section-link:hover { color: var(--accent-dark); }

/* === Product Grid === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === Product Card === */
.product-card {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--bg);
  border: 1px solid transparent;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.08);
  border-color: var(--border);
}
.product-card-image {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-dark);
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-card-image img {
  transform: scale(1.04);
}
.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--sale);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}
.product-card-body { padding: 16px 4px; }
.product-card-brand {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.product-card-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text);
}
.product-card-price { display: flex; gap: 8px; align-items: center; }
.product-card-price .current {
  font-size: 15px;
  font-weight: 600;
}
.product-card-price .original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-card-price .sale {
  color: var(--sale);
}

/* === Category Header === */
.category-header {
  background: var(--bg-warm);
  padding: 52px 0;
  border-bottom: 1px solid var(--border);
}
.category-header h1 {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: -0.5px;
}
.category-header p {
  color: var(--text-muted);
  margin-top: 6px;
  font-size: 14px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--accent-dark); }

/* === Product Detail === */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  padding: 48px 0;
}
.product-detail-image {
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-dark);
}
.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-detail-info { padding: 16px 0; }
.product-detail-brand {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.product-detail-name {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.3px;
}
.product-detail-price {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}
.product-detail-price .current {
  font-size: 26px;
  font-weight: 600;
}
.product-detail-price .original {
  font-size: 18px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.product-detail-price .sale { color: var(--sale); }
.product-detail-desc {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 32px;
}
.product-detail-meta {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.product-detail-meta-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
}
.product-detail-meta-item span:first-child {
  color: var(--text-muted);
  min-width: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 11px;
  padding-top: 1px;
}
.product-detail-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.btn-add-cart {
  background: var(--primary);
  color: white;
  padding: 16px 52px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background var(--transition), transform var(--transition);
  display: inline-block;
}
.btn-add-cart:hover { background: var(--primary-light); transform: translateY(-1px); }
.btn-save-spaidoo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition);
  flex-shrink: 0;
}
.btn-save-spaidoo:hover {
  background: var(--bg-warm);
  color: var(--accent-dark);
  border-color: var(--accent);
}

/* === Related Products === */
.related-section {
  border-top: 1px solid var(--border);
  padding: 56px 0;
}
.related-section h2 {
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 28px;
  letter-spacing: -0.2px;
}

/* === Footer === */
.footer {
  background: var(--primary);
  color: white;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  color: rgba(255,255,255,0.45);
  font-size: 13px;
  margin-top: 14px;
  line-height: 1.7;
  font-weight: 300;
}
.footer h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  color: rgba(255,255,255,0.4);
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; }
.footer li a {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  font-weight: 300;
  transition: color var(--transition);
}
.footer li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}
.footer-spaidoo {
  color: var(--accent);
  font-weight: 500;
  transition: opacity var(--transition);
}
.footer-spaidoo:hover { opacity: 0.8; }

/* === 404 === */
.not-found {
  text-align: center;
  padding: 120px 0;
}
.not-found h1 {
  font-size: 80px;
  font-weight: 200;
  color: var(--border);
  letter-spacing: -2px;
}
.not-found p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 16px 0 40px;
  font-weight: 300;
}

/* === Loading === */
.loading {
  text-align: center;
  padding: 80px 0;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 34px; }
  .hero { padding: 64px 0; }
  .section { padding: 48px 0; }
  .section-title { font-size: 22px; }
  .product-detail-name { font-size: 24px; }
  .product-detail-price .current { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .header .container {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-logo { height: 40px; }
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 11px; letter-spacing: 1px; }
  .header-actions { gap: 6px; }
  .header-search {
    order: 10;
    flex-basis: 100%;
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-btn span { display: none; }
  .nav-btn { padding: 8px; border-radius: 4px; }
  .product-card-body { padding: 12px 2px; }
  .product-card-name { font-size: 13px; }
  .hero h1 { font-size: 28px; }
  .hero-label { font-size: 10px; }
}
