/* Original Max Goods — one stylesheet, CSS variables only (house style of the OriginalMaxGoods repos). */
:root {
  --bg: #f7f6f2; --surface: #ffffff; --surface-2: #efece4; --border: #e2ddd0;
  --text: #1d2430; --text-2: #5b6472; --brand: #1c4fd8; --brand-2: #7a2ff0;
  --good: #1a7f4b; --warn: #b26a00; --bad: #b3261e; --radius: 12px;
  --shadow: 0 1px 3px rgba(29,36,48,.08), 0 6px 18px rgba(29,36,48,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); line-height: 1.55; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.2; }
main { min-height: 60vh; }
.muted { color: var(--text-2); } .small { font-size: .85rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 24px 20px 56px; }
.wrap.narrow { max-width: 760px; }

/* header / footer */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; color: var(--text); font-size: 1.05rem; }
.brand:hover { text-decoration: none; }
.site-head nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-head nav a { padding: 7px 12px; border-radius: 999px; color: var(--text-2); font-weight: 600; }
.site-head nav a:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }
.site-head nav a.on { background: var(--brand); color: #fff; }
.site-foot { background: var(--surface); border-top: 1px solid var(--border); padding: 30px 22px 18px; margin-top: 40px; }
.foot-cols { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 22px; }
.foot-cols h4 { margin: 0 0 6px; } .foot-cols a { display: block; padding: 2px 0; color: var(--text-2); }
.foot-line { max-width: 1080px; margin: 18px auto 0; border-top: 1px solid var(--border); padding-top: 12px; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr 1fr; } }

/* hero + home */
.hero { background: linear-gradient(120deg, var(--brand), var(--brand-2)); color: #fff; }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 64px 20px; }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); margin: 0 0 10px; }
.hero p { font-size: 1.1rem; max-width: 60ch; opacity: .95; }
.btn { display: inline-block; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 10px; border: 0; font-weight: 700; font-size: .95rem; cursor: pointer; }
.btn:hover { filter: brightness(1.1); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.hero .btn.ghost { color: #fff; border-color: #fff; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; }
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promise { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.promise strong { font-size: 1rem; } .promise span { color: var(--text-2); font-size: .9rem; }
@media (max-width: 760px) { .promises { grid-template-columns: 1fr; } }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; font-weight: 700; color: var(--text); display: flex; flex-direction: column; }
.cat:hover { border-color: var(--brand); text-decoration: none; }
.cat span { font-weight: 400; font-size: .8rem; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

/* product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card.product { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card.product:hover { border-color: var(--brand); text-decoration: none; transform: translateY(-2px); transition: .15s; }
.card.product img, .ph { aspect-ratio: 1; object-fit: cover; width: 100%; display: block; }
.ph { display: flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--text-2); font-weight: 700; text-transform: capitalize; }
.ph.big { min-height: 320px; }
.card-body { padding: 12px 14.card-body { padding: 12px 14px; }
.card-body h3 { margin: 0 0 6px; font-size: 1rem; }
.price { font-weight: 800; margin: 0; } .price s { font-weight: 400; font-size: .85em; } .price.big { font-size: 1.5rem; }
.badge { background: var(--surface-2); color: var(--text-2); font-size: .7rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; text-transform: lowercase; }
.badge.s-open { background: #fdecec; color: var(--bad); } .badge.s-answered { background: #e7f5ec; color: var(--good); }
.badge.s-pending { background: #fff4e0; color: var(--warn); } .badge.s-closed { background: var(--surface-2); }

/* product page */
.product-page { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-media { display: flex; flex-direction: column; gap: 10px; }
.product-media img { border-radius: var(--radius); border: 1px solid var(--border); }
.crumbs { color: var(--text-2); font-size: .85rem; }
.fineprint { color: var(--text-2); font-size: .85rem; padding-left: 18px; }
.related { grid-column: 1 / -1; }
@media (max-width: 760px) { .product-page { grid-template-columns: 1fr; } }

/* forms */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.form { display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; }
.form input, .form select, .form textarea { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font: inherit; background: var(--bg); }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brand); border-color: transparent; }
.form small { font-weight: 400; }
.shop-bar { display: flex; gap: 8px; margin: 14px 0; flex-wrap: wrap; }
.shop-bar input, .shop-bar select { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; font: inherit; background: var(--surface); }
.shop-bar input { flex: 1; min-width: 200px; }

/* ticket thread */
.thread { display: flex; flex-direction: column; gap: 12px; margin: 18px 0; }
.msg { border-radius: var(--radius); padding: 10px 14px; border: 1px solid var(--border); }
.msg.customer { background: var(--surface); }
.msg.agent { background: #eef3ff; border-color: #cddafc; margin-left: 40px; }
.msg p { margin: 0 0 4px; }
.faq-mini { list-style: none; padding: 0; } .faq-mini li { padding: 6px 0; border-bottom: 1px dashed var(--border); }

/* prose (legal pages) */
.prose { max-width: 70ch; } .prose h2 { margin-top: 1.6em; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.notice { background: #fff4e0; border: 1px solid #eed9a8; border-radius: var(--radius); padding: 12px 16px; }
code { background: var(--surface-2); border-radius: 5px; padding: 1px 6px; font-size: .9em; }
