:root {
  --color-accent: #e17055;
  --color-background: #fafafa;
  --color-primary: #2d3436;
  --color-secondary: #636e72;
  --color-text: #2d3436;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--color-background); color: var(--color-text); min-height: 100vh; display: flex; flex-direction: column; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
main { flex: 1; }
.add-btn { background: var(--color-primary); color: #fff; border: none; padding: 8px 18px; border-radius: 6px; cursor: pointer; font-size: 0.9rem; transition: background 0.2s; }
.add-btn:hover { background: var(--color-secondary); }
.add-btn-lg { padding: 12px 28px; font-size: 1rem; font-weight: 600; }
.back-link { display: inline-block; margin: 24px 0 8px; color: #666; font-size: 0.95rem; }
.back-link:hover { color: var(--color-primary); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 24px 0 48px; align-items: start; }
.detail-image { width: 100%; height: 400px; display: flex; align-items: center; justify-content: center; font-size: 8rem; border-radius: 12px; }
.detail-info { padding: 16px 0; }
.detail-name { font-size: 1.8rem; margin-bottom: 12px; }
.detail-desc { font-size: 1.05rem; color: #666; margin-bottom: 24px; line-height: 1.5; }
.detail-price { font-size: 1.8rem; font-weight: 700; color: var(--color-accent); margin-bottom: 24px; }
.detail-actions { display: flex; gap: 16px; align-items: center; }
.qty-picker { display: flex; align-items: center; gap: 12px; border: 1px solid #ddd; border-radius: 8px; padding: 6px 12px; }
.qty-picker span { min-width: 28px; text-align: center; font-size: 1.1rem; font-weight: 600; }
.qty-btn { width: 32px; height: 32px; border: 1px solid #ddd; background: #fff; border-radius: 6px; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.qty-btn:hover { background: #f0f0f0; }
.not-found { padding: 60px 0; text-align: center; font-size: 1.1rem; color: #666; }
.not-found a { color: var(--color-accent); text-decoration: underline; }
.cart-page-empty { text-align: center; padding: 80px 0; }
.cart-page-empty p { font-size: 1.2rem; color: #999; margin-bottom: 24px; }
.cart-table { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); margin-top: 16px; }
.cart-row { display: flex; align-items: center; padding: 16px 20px; gap: 16px; border-bottom: 1px solid #f0f0f0; }
.cart-row:last-child { border-bottom: none; }
.cart-row-product { display: flex; align-items: center; gap: 14px; flex: 1; }
.cart-row-icon { width: 60px; height: 60px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; flex-shrink: 0; }
.cart-row-name { font-weight: 600; }
.cart-row-price { font-size: 0.85rem; color: #888; margin-top: 2px; }
.cart-row-qty { display: flex; align-items: center; gap: 8px; }
.cart-row-qty span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-row-subtotal { min-width: 100px; text-align: right; font-weight: 600; color: var(--color-accent); }
.cart-row-remove { background: none; border: none; font-size: 1.4rem; color: #ccc; cursor: pointer; padding: 4px 8px; transition: color 0.15s; }
.cart-row-remove:hover { color: var(--color-accent); }
.cart-summary { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); padding: 24px; margin-top: 20px; max-width: 400px; margin-left: auto; }
.cart-summary-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 1rem; }
.cart-summary-total { font-size: 1.2rem; font-weight: 700; border-top: 1px solid #eee; padding-top: 12px; margin-top: 4px; margin-bottom: 20px; }
.checkout-btn { width: 100%; background: var(--color-accent); color: #fff; border: none; padding: 14px; border-radius: 8px; font-size: 1.05rem; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.checkout-btn:hover { opacity: 0.9; }
.continue-link { display: block; text-align: center; margin-top: 12px; color: #888; font-size: 0.9rem; }
.continue-link:hover { color: #333; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--color-primary); color: #fff; padding: 12px 24px; border-radius: 8px; font-size: 0.95rem; opacity: 0; transition: all 0.3s; z-index: 400; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; gap: 20px; }
  .detail-image { height: 260px; font-size: 5rem; }
  .cart-row { flex-wrap: wrap; }
  .cart-row-subtotal { min-width: auto; }
  .cart-summary { max-width: 100%; }
}
header { background: var(--color-primary); color: #fff; padding: 16px 0; position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: #fff; }
nav { display: flex; gap: 24px; align-items: center; }
.nav-link { color: #aaa; font-weight: 500; transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: #fff; }
.cart-link { color: var(--color-accent); font-weight: 600; }
.hero { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: #fff; padding: 48px 24px; border-radius: 16px; margin-top: 24px; text-align: center; }
.hero-title { font-size: 2.2rem; margin-bottom: 8px; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.85; }
.page-title { font-size: 1.6rem; padding: 32px 0 8px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; padding: 24px 0 48px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; display: block; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.product-image { width: 100%; height: 220px; display: flex; align-items: center; justify-content: center; font-size: 4rem; }
.product-info { padding: 20px; }
.product-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.product-desc { font-size: 0.9rem; color: #666; margin-bottom: 12px; }
.product-bottom { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--color-accent); }
.cta { text-align: center; padding: 48px 0; }
footer { background: var(--color-primary); color: #888; padding: 20px 0; margin-top: 48px; text-align: center; font-size: 0.85rem; }
