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

/* ─── Variables ─── */
:root {
  --orange: #FF5C00;
  --orange-light: #FF7A2E;
  --orange-pale: #FFF0E8;
  --black: #111111;
  --gray-dark: #333333;
  --gray-mid: #777777;
  --gray-light: #F5F5F5;
  --white: #FFFFFF;
  --border: #E8E8E8;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 32px rgba(255,92,0,0.15);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.2s ease;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }

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

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: -0.5px;
}
.navbar-logo span { color: var(--black); }
.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.navbar-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-dark);
  transition: var(--transition);
}
.navbar-links a:hover { color: var(--orange); }
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--orange-pale);
  color: var(--orange);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}
.cart-btn:hover { background: var(--orange); color: var(--white); }
.cart-count {
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.cart-btn:hover .cart-count { background: var(--white); color: var(--orange); }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--orange-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
}
.btn-ghost {
  background: var(--gray-light);
  color: var(--gray-dark);
}
.btn-ghost:hover { background: var(--border); }

/* ─── Product Card ─── */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--orange);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--gray-light);
}
.product-card-img-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: var(--orange-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.product-card-body { padding: 16px; }
.product-card-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.product-card-name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}
.product-card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--orange);
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
}
.add-to-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
}
.add-to-cart-btn:hover { background: var(--orange-light); }

/* ─── Section ─── */
.section { padding: 80px 0; }
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
}
.section-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--black);
}
.section-title span { color: var(--orange); }

/* ─── Product Grid ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

/* ─── Loading Skeleton ─── */
.skeleton {
  background: linear-gradient(90deg, var(--gray-light) 25%, var(--border) 50%, var(--gray-light) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--gray-mid);
}
.empty-state-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 8px; color: var(--gray-dark); }

/* ─── Toast ─── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  animation: slideIn 0.3s ease;
  max-width: 320px;
}
.toast-success { background: #22C55E; }
.toast-error { background: #EF4444; }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Footer ─── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--orange); margin-bottom: 12px; }
.footer-desc { font-size: 0.9rem; color: #999; line-height: 1.7; }
.footer-heading { font-family: var(--font-display); font-weight: 700; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: #999; transition: var(--transition); }
.footer-links a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; text-align: center; font-size: 0.85rem; color: #666; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .section { padding: 48px 0; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}