/* CrownShelf Design System — Modern Boho Minimalist */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Syne:wght@400;500;600;700;800&display=swap');

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

:root {
  --gold: #C9A84C;
  --gold-light: #E8D48B;
  --deep: #1A1208;
  --warm-black: #2A1F10;
  --cream: #FFF8ED;
  --soft-brown: #8B7355;
  --accent: #D4A853;
  --text-light: #F5EDE0;
  --text-muted: #A89880;
  --surface: #231A0E;
  --surface-hover: #2E2214;
  --border: rgba(201, 168, 76, 0.12);
  --border-strong: rgba(201, 168, 76, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 100px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--deep);
  color: var(--text-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-family: 'Syne', sans-serif; line-height: 1.15; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
.label {
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
}
.text-muted { color: var(--text-muted); }
.serif-accent { font-style: italic; color: var(--gold-light); }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .label { margin-bottom: 16px; display: block; }
.section-header p { color: var(--text-muted); max-width: 520px; margin: 16px auto 0; font-size: 1.05rem; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all var(--transition);
  background: transparent;
}
.nav.scrolled {
  background: rgba(26, 18, 8, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--cream);
  letter-spacing: -0.5px;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--cream); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--cream);
  margin: 5px 0; transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 80px;
  position: relative;
  background: linear-gradient(160deg, #1A1208 0%, #2A1F10 40%, #1A1208 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -150px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero .label { margin-bottom: 28px; display: inline-block; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--cream) 0%, var(--gold-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--deep);
}
.btn-primary:hover {
  background: var(--gold-light);
  color: var(--deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, 0.25);
}
.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background: rgba(201, 168, 76, 0.08);
  color: var(--cream);
  border-color: var(--gold);
}
.btn-small { padding: 10px 22px; font-size: 13px; }

/* ===== CATEGORY GRID ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.category-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.category-card:hover::before { opacity: 1; }
.category-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(201, 168, 76, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}
.category-card h3 { margin-bottom: 8px; color: var(--cream); }
.category-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.product-img {
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
}
.product-img-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.product-img-initials {
  position: relative;
  z-index: 0;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: rgba(255,255,255,0.15);
}
.product-detail-photo {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  border-radius: var(--radius-lg);
}
.product-img::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--surface));
  z-index: 2;
}
.product-info { padding: 20px 24px 24px; }
.product-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 4px;
  line-height: 1.3;
}
.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--cream);
}
.product-price-small { font-size: 0.95rem; }

/* ===== BRAND GRID ===== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.brand-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
}
.brand-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.brand-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
}
.brand-card h3 { color: var(--cream); margin-bottom: 6px; font-size: 1.2rem; }
.brand-card .tagline {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 12px;
  font-style: italic;
}
.brand-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; }

/* ===== PRODUCT DETAIL ===== */
.product-detail {
  padding: 140px 0 80px;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail-img {
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.12);
  position: relative;
  overflow: hidden;
}
.product-detail-content .label { margin-bottom: 12px; display: block; }
.product-detail-content h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 8px;
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  background: none;
}
.product-detail-content .price {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 24px;
}
.product-detail-content .description {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

/* ===== BRAND PROFILE ===== */
.brand-hero {
  padding: 160px 0 60px;
  position: relative;
}
.brand-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.06;
  pointer-events: none;
}
.brand-profile-header {
  display: flex;
  align-items: flex-start;
  gap: 32px;
}
.brand-profile-avatar {
  width: 88px; height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.brand-profile-info h1 {
  -webkit-text-fill-color: var(--cream);
  background: none;
  margin-bottom: 8px;
}
.brand-profile-info .tagline {
  font-size: 1.15rem;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 16px;
}
.brand-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-meta span {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.brand-meta a { color: var(--text-muted); }
.brand-meta a:hover { color: var(--gold); }
.brand-story {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
.brand-story h2 { margin-bottom: 20px; }
.brand-story p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 720px;
}

/* ===== CATALOG FILTER ===== */
.catalog-header {
  padding: 140px 0 40px;
  text-align: center;
}
.catalog-header h1 {
  color: var(--cream);
  -webkit-text-fill-color: var(--cream);
  background: none;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 32px 0 48px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.filter-tab:hover {
  color: var(--cream);
  border-color: var(--border-strong);
}
.filter-tab.active {
  background: var(--gold);
  color: var(--deep);
  border-color: var(--gold);
}

/* ===== FEATURED STRIP ===== */
.featured-strip {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.featured-strip::-webkit-scrollbar { display: none; }

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand .nav-logo { margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; color: var(--text-muted); max-width: 280px; line-height: 1.6; }
.footer-links h4 {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { opacity: 0.4; }

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 80px 24px;
}
.empty-state p { color: var(--text-muted); font-size: 1.1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .brand-profile-header { flex-direction: column; align-items: center; text-align: center; }
  .brand-meta { justify-content: center; }
  .brand-story { text-align: center; }
  .brand-story p { margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(26, 18, 8, 0.98);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    gap: 32px;
    z-index: 200;
  }
  .nav-links.open a { font-size: 1.3rem; }
  .hero { padding: 100px 20px 60px; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .section { padding: 56px 0; }
  .category-grid { grid-template-columns: 1fr; gap: 16px; }
  .category-card { padding: 28px 24px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .brand-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .filter-tabs { gap: 6px; }
  .filter-tab { padding: 8px 18px; font-size: 13px; }
  .brand-profile-avatar { width: 72px; height: 72px; font-size: 1.4rem; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-detail-img { font-size: 3rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
}

/* ===== ANIMATION ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp 0.6s ease-out forwards; }
.fade-in-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-delay-3 { animation-delay: 0.3s; opacity: 0; }
.fade-in-delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ===== HERO BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== ARCH SHAPE (Boho element) ===== */
.arch-decoration {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50% 50% 0 0;
  pointer-events: none;
}
