* { box-sizing: border-box; margin: 0; padding: 0; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
body { background: #f6f6f6; color: #111; }
.topbar { background: #fff; padding: 16px 32px; border-bottom: 1px solid #eee; }
.wrap { display: grid; grid-template-columns: 1fr 380px; max-width: 1080px; margin: 32px auto; gap: 48px; padding: 0 24px; }
.form fieldset { border: none; background: #fff; padding: 24px; margin-bottom: 12px; border-radius: 8px; }
.form legend { font-weight: 600; padding: 0 8px; }
.form input, .form select { width: 100%; padding: 12px; margin-top: 8px; border: 1px solid #ccc; border-radius: 4px; font-size: 15px; }
.pay { margin-top: 16px; width: 100%; padding: 14px; background: #2f6fff; color: #fff; border: none; border-radius: 4px; font-size: 16px; font-weight: 600; cursor: pointer; }
.pay[disabled] { opacity: .5; cursor: not-allowed; }
.summary { background: #fafafa; padding: 24px; border-radius: 8px; }
.summary .item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; margin-bottom: 12px; }
.summary .item img { border-radius: 4px; }
.summary hr { border: none; border-top: 1px solid #ddd; margin: 12px 0; }
.summary .total { font-weight: 700; font-size: 18px; }
.summary p { display: flex; justify-content: space-between; margin: 4px 0; }
.summary .review { border-top: 1px solid #eee; padding: 10px 0; }
.muted { color: #666; font-size: 14px; }
@media (max-width: 800px) { .wrap { grid-template-columns: 1fr; } }

/* Task 9B: storefront product grid */
.hero { background: #fff; padding: 32px 24px; text-align: center; border-bottom: 1px solid #eee; }
.hero h1 { font-size: 32px; margin: 8px 0 4px; letter-spacing: -0.5px; }
.hero p { color: #666; }
.product-grid { max-width: 1080px; margin: 32px auto; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.product-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.06); display: flex; flex-direction: column; }
.product-card img { width: 100%; height: 200px; object-fit: contain; background: #fafafa; padding: 16px; }
.product-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-title { font-size: 14px; line-height: 1.4; margin-bottom: 8px; min-height: 40px; }
.product-price { font-size: 20px; font-weight: 700; color: #111; margin-bottom: 12px; }
.buy-btn { margin-top: auto; padding: 10px; background: #2f6fff; color: #fff; text-align: center; border: none; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; }
.buy-btn:hover { background: #1e5eee; }
footer { max-width: 1080px; margin: 48px auto 24px; padding: 24px; text-align: center; color: #666; font-size: 13px; border-top: 1px solid #eee; }
