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

:root {
  /* Soft Light Ombre Palette */
  --bg-main: #FAF8F5;
  --bg-secondary: #F4ECE1;
  --bg-card: #FFFFFF;
  --border-color: #EFE7DD;
  --border-hover: #D97706;
  --text-primary: #1E293B;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --accent: #D97706;
  --accent-hover: #B45309;
  --accent-green: #059669;
  --shadow-soft: 0 4px 20px -2px rgba(180, 130, 80, 0.08);
  --shadow-hover: 0 16px 36px -6px rgba(217, 119, 6, 0.16);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #FDFBF8 0%, #F6EFE6 18%, #FAF7F2 45%, #F3EDE2 75%, #FDFBF8 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Custom delicate scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #F4ECE1;
}
::-webkit-scrollbar-thumb {
  background: #D4C5B3;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #B8A590;
}

/* Glass header with Pearl effect */
.glass-header {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 220, 206, 0.8) !important;
  box-shadow: 0 4px 20px -2px rgba(180, 130, 80, 0.06);
}

/* Grid Fallbacks & Layout Guarantees */
#products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

#stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

/* Studio Product Card - Light Ombre */
.product-card {
  background: #FFFFFF !important;
  border: 1px solid #ECE3D4 !important;
  border-radius: 1.25rem !important;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px -2px rgba(180, 140, 100, 0.06);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: #F59E0B !important;
  box-shadow: 0 16px 36px -6px rgba(217, 119, 6, 0.16), 0 0 1px 1px rgba(217, 119, 6, 0.2);
}

/* Image container in card - Crisp bright stage */
.product-img-wrap {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background: #FAF7F2 !important;
  overflow: hidden;
  border-bottom: 1px solid #F3EDE2;
}

.product-img-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

/* Filter chips */
.chip-btn.active {
  background-color: #D97706 !important;
  color: #FFFFFF !important;
  font-weight: 700;
}
