:root {
  --primary: #ff4f27;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-soft: #f9fafb;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
.nav a:hover { color: var(--primary); }
.cart-link { display: flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--primary); color: #fff; border-radius: 999px;
  font-size: 11px; min-width: 18px; height: 18px; display: inline-flex;
  align-items: center; justify-content: center; padding: 0 5px;
}

.main { padding: 40px 20px 80px; min-height: 60vh; }

.hero {
  text-align: center; padding: 64px 20px; background: var(--bg-soft);
  border-radius: 24px; margin-bottom: 48px;
}
.hero h1 { font-size: 40px; margin: 0 0 12px; letter-spacing: -0.5px; }
.hero p { color: var(--muted); font-size: 18px; margin: 0 0 28px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: 12px 28px; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: opacity .15s;
}
.btn:hover { opacity: .9; }
.btn.outline { background: transparent; color: var(--ink); border: 2px solid var(--border); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.full { width: 100%; }

h2.section-title { font-size: 24px; margin: 0 0 20px; }

.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px;
}
.product-card {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.product-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--bg-soft); }
.product-card-body { padding: 14px 16px; }
.product-card-body .category { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.product-card-body h3 { font-size: 15px; margin: 4px 0 8px; }
.product-card-body .price { font-weight: 700; margin: 0; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.product-detail img { width: 100%; border-radius: 20px; background: var(--bg-soft); }
.product-detail h1 { font-size: 30px; margin: 0 0 8px; }
.product-detail .price { font-size: 24px; font-weight: 700; margin: 8px 0 20px; }
.product-detail .desc { color: var(--muted); margin-bottom: 28px; }
@media (max-width: 700px) {
  .product-detail { grid-template-columns: 1fr; }
}

.cart-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border);
}
.cart-row img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: var(--bg-soft); }
.cart-row .info { flex: 1; }
.cart-row .qty-controls { display: flex; align-items: center; gap: 8px; }
.cart-row .qty-controls button {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border);
  background: #fff; cursor: pointer; font-size: 16px;
}
.cart-summary { max-width: 340px; margin-left: auto; padding-top: 20px; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .total { font-weight: 700; font-size: 18px; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
input, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 15px; font-family: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; }

.checkout-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; }
.payment-options { border: none; padding: 0; margin: 24px 0 16px; max-width: 560px; }
.payment-options legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; }
.payment-option {
  display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: 15px;
  border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer;
}
.payment-option:has(input:checked) { border-color: var(--primary); background: #fff7f5; }
.payment-option input { width: auto; margin-top: 3px; accent-color: var(--primary); }
.payment-option > span { display: flex; flex-direction: column; gap: 2px; }
.payment-option .muted { font-size: 13px; }
.payment-message { color: #b91c1c; font-size: 14px; margin: 0 0 12px; max-width: 560px; }

.policy-page { max-width: 720px; }
.policy-page h1 { font-size: 32px; margin: 0 0 8px; }
.policy-page .intro { font-size: 16px; margin-bottom: 32px; }
.policy-page section { margin-bottom: 28px; }
.policy-page h2 { font-size: 18px; margin: 0 0 8px; }
.policy-page p { color: var(--ink); line-height: 1.7; }
.policy-page a { color: var(--primary); text-decoration: underline; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 8px; }
.contact-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.contact-card h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.contact-card a, .contact-card span { font-size: 16px; font-weight: 600; }
.contact-card a { color: var(--primary); }

.confirmation { text-align: center; padding: 60px 20px; }
.confirmation .check {
  width: 64px; height: 64px; border-radius: 50%; background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 32px; margin: 0 auto 20px;
}
.confirmation .check.failed { background: #dc2626; }
.confirmation .check.pending { background: var(--muted); }

.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 48px 0 32px; margin-top: 64px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.footer-cols a { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.footer-cols a:hover { color: var(--ink); }
.powered-by { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) {
  .footer-cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .checkout-layout { grid-template-columns: 1fr; gap: 32px; }
}

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }
