.hero {
  padding: 36px 0 8px;
}
.hero h1 { font-size: 1.7rem; }

.category-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0 24px;
  scrollbar-width: none;
}
.category-rail::-webkit-scrollbar { display: none; }

.category-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  font-weight: 700;
  font-size: 0.88rem;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.category-chip:hover { border-color: var(--primary); }
.category-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.category-chip__icon { font-size: 1.05rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  padding-bottom: 56px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.product-card__image {
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; }

.product-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__name { font-weight: 700; font-size: 0.98rem; }
.product-card__desc { font-size: 0.82rem; margin: 0; flex: 1; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.product-card__price { font-weight: 800; font-size: 1.05rem; }

.add-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary-dark);
  border: none; font-size: 1.25rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .1s ease;
}
.add-btn:hover { background: var(--primary); color: #fff; }
.add-btn:active { transform: scale(0.9); }

/* Cart page */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; padding: 32px 0 64px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__thumb {
  width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2);
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem; overflow: hidden;
}
.cart-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-item__name { font-weight: 700; font-size: 0.92rem; }
.cart-item__price { font-size: 0.8rem; color: var(--text-muted); }

.qty-stepper { display: flex; align-items: center; gap: 8px; }
.qty-stepper button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface-2); font-weight: 700; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.qty-stepper span { min-width: 18px; text-align: center; font-weight: 700; }

.summary-card { padding: 20px; position: sticky; top: calc(var(--header-h) + 16px); }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 0.92rem; }
.summary-row.total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }

/* Checkout */
.checkout-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; padding: 32px 0 64px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.location-fields { display: none; }
.location-fields.is-visible { display: block; }

.success-shell { text-align: center; padding: 64px 20px; }
.success-icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem; margin: 0 auto 20px;
}
