/* ============================================
   HeatFuel Store — Shared Styles
   ============================================ */

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

:root {
  --flame: #E8430A;
  --ember: #FF6B35;
  --charcoal: #1A1A1A;
  --smoke: #2A2A2A;
  --ash: #3A3A3A;
  --cream: #F5F0E8;
  --bone: #E8E0D4;
  --success: #22C55E;
  --danger: #EF4444;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--charcoal);
  color: var(--cream);
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ============================================
   NAV
   ============================================ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26,26,26,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232,67,10,0.15);
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--cream);
}
.logo span { color: var(--flame); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--bone);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--flame); }

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-count {
  background: var(--flame);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}
.cart-count.empty { opacity: 0.3; }

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page {
  padding-top: 5rem;
  min-height: 100vh;
}

.page-header {
  padding: 4rem 2rem 3rem;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232,67,10,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.page-header .section-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ember);
  margin-bottom: 0.75rem;
}
.page-header h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.1;
  position: relative;
}
.page-header p {
  font-size: 1.1rem;
  color: var(--bone);
  opacity: 0.7;
  margin-top: 0.75rem;
  max-width: 600px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.btn-primary {
  background: var(--flame);
  color: white;
}
.btn-primary:hover {
  background: #D13A08;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(232,67,10,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--ash);
}
.btn-secondary:hover {
  border-color: var(--ember);
  color: var(--ember);
}

.btn-sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* ============================================
   PRODUCT GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: var(--smoke);
  border: 1px solid var(--ash);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,67,10,0.4);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.product-card-image {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.product-card-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, var(--smoke));
}

.product-card-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--flame);
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 1;
}

.product-card-info {
  padding: 1.25rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-category {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--ember);
  margin-bottom: 0.4rem;
}

.product-card-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 0.25rem;
}

.product-card-subtitle {
  font-size: 0.85rem;
  color: var(--bone);
  opacity: 0.65;
  margin-bottom: 0.75rem;
}

.product-card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--cream);
}

.heat-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}
.heat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ash);
}
.heat-dot.filled { background: var(--flame); }
.heat-dot.filled.hot { background: #FF1744; }

/* ============================================
   CATEGORY FILTER
   ============================================ */
.category-filters {
  display: flex;
  gap: 0.75rem;
  padding: 0 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.filter-btn {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  border: 1px solid var(--ash);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  border-color: var(--flame);
  color: var(--flame);
  background: rgba(232,67,10,0.08);
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: calc(100vh - 5rem);
}

.product-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}
.product-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 30%, rgba(26,26,26,0.3) 100%);
}

.product-content {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-breadcrumb {
  font-size: 0.8rem;
  color: var(--bone);
  opacity: 0.5;
  margin-bottom: 1.5rem;
}
.product-breadcrumb a { color: var(--ember); opacity: 1; }
.product-breadcrumb a:hover { text-decoration: underline; }

.product-category {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--ember);
  margin-bottom: 0.75rem;
}

.product-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.product-subtitle {
  font-size: 1.1rem;
  color: var(--bone);
  opacity: 0.65;
  margin-bottom: 1.5rem;
}

.product-price-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.product-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
}

.product-heat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-heat-label {
  font-size: 0.8rem;
  color: var(--bone);
  opacity: 0.6;
}

.product-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--bone);
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.product-bundle-includes {
  background: rgba(232,67,10,0.06);
  border: 1px solid rgba(232,67,10,0.15);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.product-bundle-includes h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ember);
  margin-bottom: 0.75rem;
}
.product-bundle-includes ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.product-bundle-includes li {
  font-size: 0.9rem;
  color: var(--bone);
  padding-left: 1.25rem;
  position: relative;
}
.product-bundle-includes li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--flame);
  font-weight: bold;
}

/* ============================================
   CART
   ============================================ */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  background: var(--smoke);
  border: 1px solid var(--ash);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.cart-item-info h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}
.cart-item-info .subtitle {
  font-size: 0.8rem;
  color: var(--bone);
  opacity: 0.5;
  margin-bottom: 0.5rem;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--ash);
  background: transparent;
  color: var(--cream);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.qty-btn:hover { border-color: var(--flame); color: var(--flame); }
.qty-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}
.cart-item-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
}
.cart-item-remove {
  font-size: 0.75rem;
  color: var(--bone);
  opacity: 0.4;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
}
.cart-item-remove:hover { color: var(--danger); opacity: 1; }

/* Cart Summary */
.cart-summary {
  background: var(--smoke);
  border: 1px solid var(--ash);
  border-radius: 12px;
  padding: 2rem;
  position: sticky;
  top: 6rem;
  height: fit-content;
}
.cart-summary h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--ash);
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
}
.cart-summary-row.total {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--ash);
}
.cart-summary-actions {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-bundle-suggestion {
  background: rgba(232,67,10,0.06);
  border: 1px solid rgba(232,67,10,0.2);
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.5rem;
}
.cart-bundle-suggestion h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ember);
  margin-bottom: 0.5rem;
}
.cart-bundle-suggestion p {
  font-size: 0.8rem;
  color: var(--bone);
  opacity: 0.7;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

/* Cart Empty */
.cart-empty {
  text-align: center;
  padding: 6rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}
.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  opacity: 0.3;
}
.cart-empty h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.cart-empty p {
  color: var(--bone);
  opacity: 0.6;
  margin-bottom: 2rem;
}

/* ============================================
   SUCCESS PAGE
   ============================================ */
.success-page {
  text-align: center;
  padding: 8rem 2rem 4rem;
  max-width: 600px;
  margin: 0 auto;
}
.success-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}
.success-page h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}
.success-page p {
  font-size: 1.1rem;
  color: var(--bone);
  opacity: 0.8;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   TOAST NOTIFICATION
   ============================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--smoke);
  border: 1px solid var(--flame);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 200;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast-icon { font-size: 1.2rem; }
.toast-text {
  font-size: 0.9rem;
  font-weight: 500;
}
.toast-action {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--flame);
  text-decoration: none;
  margin-left: 0.5rem;
}
.toast-action:hover { text-decoration: underline; }

/* ============================================
   DIVIDER
   ============================================ */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  opacity: 0.3;
  margin: 0 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.3;
  border-top: 1px solid var(--ash);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .nav-links a { font-size: 0.8rem; }

  .page-header { padding: 3rem 1.5rem 2rem; }
  .page-header h1 { letter-spacing: -1px; }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    padding: 0 1.5rem 3rem;
    gap: 1rem;
  }

  .product-card-image { height: 180px; font-size: 3rem; }

  .product-detail {
    grid-template-columns: 1fr;
  }
  .product-hero {
    min-height: 300px;
    font-size: 5rem;
  }
  .product-content { padding: 2rem 1.5rem 3rem; }
  .product-actions { flex-direction: column; }

  .cart-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1.5rem 3rem;
  }
  .cart-item {
    grid-template-columns: 60px 1fr;
    gap: 1rem;
  }
  .cart-item-right {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .cart-summary { position: static; }

  .category-filters { padding: 0 1.5rem 1.5rem; }

  .success-actions { flex-direction: column; }
}
