/* Shop look: calm, readable, works on a phone. Colors are set once here. */
:root {
  --ink: #2b2a28;         /* text */
  --soft: #6b6660;        /* small notes */
  --paper: #fffdf9;       /* page background */
  --line: #e6dfd5;        /* borders */
  --accent: #b5476b;      /* buttons, links (a flower pink) */
  --accent-dark: #8f3354;
  --warn: #fff4d6;        /* closed-shop banner */
  --test: #e3f1ff;        /* test-mode banner */
  --error: #b42318;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Georgia, "Times New Roman", serif; color: var(--ink); background: var(--paper); line-height: 1.55; }
a { color: var(--accent); }
main { max-width: 1040px; margin: 0 auto; padding: 16px; }
.banner { padding: 8px 16px; text-align: center; font-family: system-ui, sans-serif; font-size: 14px; }
.banner.warn { background: var(--warn); }
.banner.test { background: var(--test); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; max-width: 1040px; margin: 0 auto; padding: 16px; border-bottom: 1px solid var(--line); }
.brand { font-size: 24px; color: var(--ink); text-decoration: none; letter-spacing: 0.5px; }
.top nav a { margin-left: 16px; font-family: system-ui, sans-serif; text-decoration: none; }
h1 { font-weight: normal; font-size: 30px; margin: 8px 0 12px; }
h2 { font-weight: normal; font-size: 20px; margin-top: 24px; }
.lead { color: var(--soft); margin-top: 0; }
.message { background: #eef7ee; border: 1px solid #cfe6cf; padding: 8px 12px; border-radius: 6px; font-family: system-ui, sans-serif; }
.hint { color: var(--soft); font-size: 14px; font-family: system-ui, sans-serif; }
.error { color: var(--error); font-family: system-ui, sans-serif; font-size: 14px; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card a { display: block; color: var(--ink); text-decoration: none; }
.card img, .no-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #f2ece4; }
.no-photo { display: flex; align-items: center; justify-content: center; color: var(--soft); font-family: system-ui, sans-serif; }
.no-photo.big { max-width: 480px; }
.card-title { display: block; margin-top: 8px; }
.card-price { display: block; color: var(--soft); font-family: system-ui, sans-serif; }
.crumbs { font-family: system-ui, sans-serif; font-size: 14px; color: var(--soft); }
.item { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.main-photo { width: 100%; border-radius: 8px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
.price { font-size: 24px; margin: 4px 0; font-family: system-ui, sans-serif; }
.left { color: var(--error); font-family: system-ui, sans-serif; min-height: 1em; margin: 0 0 8px; }
form label { display: block; margin: 12px 0; font-family: system-ui, sans-serif; font-size: 15px; }
select, input[type=number], textarea { display: block; width: 100%; max-width: 360px; margin-top: 4px; padding: 8px; font-size: 16px; border: 1px solid var(--line); border-radius: 6px; background: white; }
input[type=number] { max-width: 100px; }
button { background: var(--accent); color: white; border: 0; border-radius: 6px; padding: 10px 20px; font-size: 16px; cursor: pointer; font-family: system-ui, sans-serif; }
button:hover { background: var(--accent-dark); }
button:disabled { background: #c9c2b9; cursor: not-allowed; }
button.big { padding: 14px 36px; font-size: 18px; }
button.small { padding: 6px 10px; font-size: 14px; }
button.link { background: none; color: var(--accent); text-decoration: underline; padding: 6px 4px; }
.cart { width: 100%; border-collapse: collapse; font-family: system-ui, sans-serif; }
.cart th, .cart td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cart tr.problem td { background: #fff5f4; }
form.inline { display: inline-flex; align-items: center; gap: 4px; }
form.inline input[type=number] { width: 64px; margin: 0; }
.totals { margin-top: 16px; text-align: right; font-family: system-ui, sans-serif; }
.totals .total { font-size: 20px; }
footer { border-top: 1px solid var(--line); margin-top: 48px; padding: 16px; text-align: center; color: var(--soft); font-family: system-ui, sans-serif; font-size: 14px; }
footer nav a { margin: 0 8px; }
@media (max-width: 700px) {
  .item { grid-template-columns: 1fr; gap: 16px; }
  .cart thead { display: none; }
  .cart td { display: block; border: 0; padding: 4px 0; }
  .cart tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .totals { text-align: left; }
  h1 { font-size: 24px; }
}
