:root {
  --bg: #f6f8f8;
  --surface: #ffffff;
  --text: #1a2222;
  --muted: #5b6a6a;
  --accent: #0d7377;
  --accent-dark: #095c5f;
  --border: #d9e3e3;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(13, 115, 119, 0.08);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.5; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.logo { font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.logo:hover { color: var(--accent); text-decoration: none; }
.nav { display: flex; gap: 1rem; align-items: center; }
.cart-pill { background: var(--accent); color: #fff; border-radius: 999px; padding: 0.4rem 0.85rem; font-weight: 600; font-size: 0.92rem; }
.cart-pill:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.2rem; height: 1.2rem; margin-left: 0.25rem; background: #fff; color: var(--accent); border-radius: 999px; font-size: 0.75rem; font-weight: 700; padding: 0 0.25rem; }

.hero { margin: 1.5rem 0 2rem; display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 2px); overflow: hidden; box-shadow: var(--shadow); }
.hero img { width: 100%; height: 100%; object-fit: cover; min-height: 240px; display: block; background: #eef3f3; }
.hero-copy { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.hero-copy h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.hero-copy p { margin: 0; color: var(--muted); }

.section-title { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 1rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #eef3f3; display: block; }
.card-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.card-body h2 { margin: 0; font-size: 1.05rem; }
.card-body h2 a { color: inherit; }
.price { color: var(--accent); font-weight: 700; }
.muted { color: var(--muted); font-size: 0.92rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; font: inherit; font-weight: 600; background: var(--accent); color: #fff; border-radius: 999px; padding: 0.65rem 1.1rem; }
.btn:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.btn-ghost:hover { background: #eef7f7; color: var(--accent-dark); }

.product-layout { margin: 1.5rem 0 2.5rem; display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.product-layout img { width: 100%; min-height: 320px; object-fit: cover; background: #eef3f3; }
.product-info { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.85rem; }
.product-info h1 { margin: 0; font-size: 1.7rem; letter-spacing: -0.02em; }
label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
select, .qty-input { width: 100%; max-width: 160px; padding: 0.6rem 0.75rem; border: 1px solid var(--border); border-radius: 10px; font: inherit; background: #fff; }

.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: 0.85rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-table th { background: #eef7f7; color: var(--muted); font-size: 0.85rem; }
.cart-table tr:last-child td { border-bottom: none; }
.cart-item { display: flex; gap: 0.75rem; align-items: center; }
.cart-item img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #eef3f3; }

.panel { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; margin: 1.25rem 0 2.5rem; }
.panel-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem; box-shadow: var(--shadow); }
.ship-options { display: flex; flex-direction: column; gap: 0.55rem; }
.ship-option { display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.7rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.ship-option:has(input:checked) { border-color: var(--accent); background: #eef7f7; }
.totals { display: flex; flex-direction: column; gap: 0.45rem; }
.totals-row { display: flex; justify-content: space-between; }
.totals-row.total { font-weight: 700; font-size: 1.1rem; padding-top: 0.55rem; border-top: 1px solid var(--border); margin-top: 0.25rem; }
.error { background: #fff1f0; color: #a32020; border: 1px solid #f0c4c2; padding: 0.7rem 0.9rem; border-radius: 10px; margin-top: 0.75rem; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.status-card { max-width: 480px; margin: 3rem auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.status-card h1 { margin-top: 0; }
.site-footer { border-top: 1px solid var(--border); padding: 1.25rem 0 2rem; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 800px) {
  .hero, .product-layout, .panel, .grid { grid-template-columns: 1fr; }
  .hero img, .product-layout img { min-height: 200px; max-height: 280px; }
  .cart-table { display: block; overflow-x: auto; }
}

/* Aliases for markup variants */
.wrap { width: min(1040px, calc(100% - 2rem)); margin: 0 auto; }
.hero-copy { padding: 1.75rem; display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; }
.section-title { font-size: 1.25rem; letter-spacing: -0.02em; margin: 0 0 1rem; }
.site-footer { border-top: 1px solid var(--border); padding: 1.25rem 0 2rem; color: var(--muted); font-size: 0.85rem; }
.btn-block { width: 100%; }
.qty-input { width: 4.5rem; max-width: 4.5rem; }

.status-card-wide { max-width: 640px; text-align: left; }
.status-card-wide h1,
.status-card-wide > .btn { text-align: center; display: block; margin-left: auto; margin-right: auto; }
.status-card-wide > .btn { width: fit-content; margin-top: 1.25rem; }
.status-card-wide > .muted { text-align: center; }
.receipt-table { margin: 1.25rem 0 1rem; }
.receipt-totals { margin-top: 0.5rem; }
