/* ── Emberglow Design System ── */

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

:root {
  --ember: #E8523F;
  --glow: #FF8A65;
  --blush: #FFF0EB;
  --deep: #1A0E0A;
  --warm: #2D1810;
  --cream: #FDF8F6;
  --muted: #8B6F66;
  --card-bg: #241610;
  --border: rgba(232, 82, 63, 0.12);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--deep);
  color: #fff;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 14, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav-brand {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--ember), var(--glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.05em;
  transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-cta {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, var(--ember), var(--glow));
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  transition: transform var(--transition), box-shadow var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232, 82, 63, 0.4);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Hero (Landing Page) ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  background: radial-gradient(ellipse at 50% 80%, rgba(232,82,63,0.15) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 20%, rgba(255,138,101,0.08) 0%, transparent 50%),
              var(--deep);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23E8523F' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--ember), var(--glow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

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

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ember), var(--glow));
  color: #fff;
  box-shadow: 0 4px 20px rgba(232, 82, 63, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(232, 82, 63, 0.5);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
  border-color: var(--ember);
  box-shadow: 0 4px 20px rgba(232, 82, 63, 0.15);
}

/* ── Section ── */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ── Product Card ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(232, 82, 63, 0.15);
  border-color: rgba(232, 82, 63, 0.3);
}

.product-card-image {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--warm);
}

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

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

.product-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 138, 101, 0.15);
  background: linear-gradient(135deg, var(--warm) 0%, rgba(45, 24, 16, 0.8) 100%);
}

.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.25rem 0.75rem;
  background: var(--ember);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  letter-spacing: 0.03em;
}

.product-card-body {
  padding: 1.25rem;
}

.product-card-category {
  font-size: 0.75rem;
  color: var(--glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.product-card-name {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.product-card-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-current {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.price-compare {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* ── Category Pills ── */
.category-filter {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.category-pill {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Outfit', sans-serif;
}

.category-pill:hover {
  border-color: var(--glow);
  color: #fff;
}

.category-pill.active {
  background: linear-gradient(135deg, var(--ember), var(--glow));
  border-color: transparent;
  color: #fff;
}

/* ── Product Detail Page ── */
.product-detail {
  padding: 7rem 0 4rem;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-gallery {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--warm);
  border: 1px solid var(--border);
}

.product-gallery .product-placeholder {
  font-size: 6rem;
}

.product-info h1 {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

.product-info .category-label {
  font-size: 0.85rem;
  color: var(--glow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.product-price-block .price-current {
  font-size: 2rem;
}

.product-price-block .price-compare {
  font-size: 1.1rem;
}

.product-description {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
}

.product-specs {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 2rem;
}

.product-specs-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.product-specs-row:last-child {
  border-bottom: none;
}

.product-specs-label {
  color: var(--muted);
  text-transform: capitalize;
}

.product-specs-value {
  color: #fff;
  font-weight: 500;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--glow);
}

.breadcrumb .separator {
  opacity: 0.4;
}

/* ── Related Products ── */
.related-section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
}

/* ── Featured Section ── */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* ── Values / Trust section ── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  transition: border-color var(--transition);
}

.value-card:hover {
  border-color: rgba(232, 82, 63, 0.3);
}

.value-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.2em;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(139, 111, 102, 0.6);
}

/* ── Shop page header ── */
.shop-header {
  padding: 7rem 0 2rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(232,82,63,0.1) 0%, transparent 60%);
}

.shop-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.shop-header p {
  color: var(--muted);
  font-size: 1.05rem;
}

.shop-count {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* ── Loading / Empty states ── */
.loading {
  text-align: center;
  padding: 4rem;
  color: var(--muted);
}

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

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

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--muted);
}

.empty-state h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ── Skeleton loaders ── */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(45, 24, 16, 0.8) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 380px;
  border-radius: var(--radius);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26, 14, 10, 0.98);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .product-card-body {
    padding: 1rem;
  }

  .product-card-name {
    font-size: 0.95rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

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

  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}
