:root {
  --accent: #D99586;
  --accent-dark: #B9705F;
  --ink: #2b2320;
  --muted: #857a76;
  --bg: #fffaf8;
  --card: #ffffff;
  --border: #eee0dc;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
a { color: inherit; text-decoration: none; }

.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; flex-wrap: wrap; gap: 10px; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--accent-dark); }
.main-nav { display: flex; gap: 16px; flex-wrap: wrap; order: 3; width: 100%; }
.header-actions { display: flex; gap: 16px; align-items: center; }
@media (min-width: 800px) {
  .main-nav { order: 0; width: auto; }
}

.hero { background: linear-gradient(135deg, var(--accent), var(--accent-dark)); color: #fff; padding: 40px 20px; border-radius: 12px; margin: 20px 0; text-align: center; }
.hero h1 { margin: 0 0 8px; font-size: 1.6rem; }

.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin: 20px 0; }
.category-tile { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 10px; text-align: center; font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; margin: 16px 0 40px; }
.product-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; display: block; }
.product-card img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #f4ecea; }
.product-card-name { padding: 8px 10px 0; font-size: 0.92rem; }
.product-card-price { padding: 4px 10px 10px; font-weight: 700; color: var(--accent-dark); }

.product-detail { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 20px 0 50px; }
@media (min-width: 800px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail-image { width: 100%; border-radius: 12px; }
.product-detail-price { font-size: 1.4rem; font-weight: 700; color: var(--accent-dark); }
.variant-option { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin-bottom: 6px; }
.variant-option.disabled { opacity: 0.5; }

form label { display: block; margin-bottom: 12px; font-size: 0.9rem; }
form input, form select, form textarea { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; margin-top: 4px; font-size: 1rem; }
button, .btn { background: var(--accent-dark); color: #fff; border: none; border-radius: 8px; padding: 12px 20px; font-size: 1rem; cursor: pointer; display: inline-block; }
button:hover, .btn:hover { background: #a15c4c; }
.form-message { min-height: 1.2em; font-size: 0.9rem; }
.error { color: #c0392b; }
.muted { color: var(--muted); font-size: 0.85rem; }

.cart-table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.cart-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.cart-item-name { display: flex; gap: 10px; align-items: center; }
.cart-item-name img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: #f4ecea; }
.cart-qty { width: 60px; }
.cart-summary { display: flex; justify-content: space-between; align-items: center; margin: 20px 0 60px; }

.checkout-layout { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 60px; }
@media (min-width: 900px) { .checkout-layout { grid-template-columns: 2fr 1fr; } }
.checkout-summary { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px; align-self: start; position: sticky; top: 90px; }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; }
.summary-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.address-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 14px; margin-bottom: 16px; }

.site-footer { text-align: center; padding: 24px 0; color: var(--muted); font-size: 0.85rem; }
