:root { font-family: Arial, sans-serif; color: #252525; background: #fafafa; line-height: 1.5; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: #315346; }
header, main, footer { max-width: 1100px; margin: auto; padding: 24px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid #ddd; }
nav { display: flex; gap: 20px; }
.brand { font-size: 21px; font-weight: bold; text-decoration: none; color: inherit; }
h1 { font-size: 30px; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 16px; }
h3 { font-size: 17px; margin: 0 0 8px; }
p { margin: 8px 0 14px; }
.intro { margin: 6px 0 24px; }
.muted { color: #656565; }
.small { font-size: 13px; }
.shop-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product, .panel { border: 1px solid #ddd; background: white; border-radius: 5px; }
.product { overflow: hidden; }
.product > img { width: 100%; height: 190px; display: block; object-fit: cover; background: #f0f0f0; }
.product-content { padding: 16px; }
.product-content > p { font-size: 14px; min-height: 42px; }
.product-buy, .section-heading, .total { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.panel { padding: 20px; margin-bottom: 22px; }
.cart { position: sticky; top: 20px; }
.cart-item { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid #eee; }
.cart-item input { width: 66px; }
.total { margin-top: 18px; font-size: 18px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
button { font: inherit; font-size: 14px; padding: 8px 12px; border: 1px solid #bbb; border-radius: 4px; background: white; color: #252525; cursor: pointer; }
button:hover { background: #f0f0f0; }
button:disabled { opacity: .5; cursor: default; }
button.primary { background: #315346; color: white; border-color: #315346; }
button.primary:hover { background: #253f35; }
button[aria-pressed="true"] { background: #e7eee9; border-color: #315346; }
.full { width: 100%; }
input, textarea { font: inherit; width: 100%; padding: 9px; border: 1px solid #bbb; border-radius: 3px; background: white; color: inherit; }
textarea { resize: vertical; }
label { display: grid; gap: 5px; font-size: 14px; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form > button { justify-self: start; }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.narrow { max-width: 440px; }
.checkbox { display: flex; gap: 8px; align-items: center; }
.checkbox input { width: auto; }
.account { margin-top: 24px; }
.notice { padding: 12px 16px; margin-bottom: 22px; border: 1px solid #b5c7bc; border-radius: 4px; background: #f0f7f2; overflow-wrap: anywhere; }
.notice[data-error="true"] { border-color: #d8b3ae; background: #fff4f1; }
details { border-top: 1px solid #eee; margin-top: 14px; padding-top: 12px; font-size: 14px; }
summary { cursor: pointer; }
.comment, .order { padding: 12px 0; border-bottom: 1px solid #eee; overflow-wrap: anywhere; }
.comment p { white-space: pre-wrap; }
.comment button { margin-left: 8px; padding: 3px 7px; }
.order:last-child { border: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th, td { padding: 12px 10px; border-bottom: 1px solid #eee; vertical-align: middle; overflow-wrap: anywhere; }
th { white-space: nowrap; }
td { min-width: 70px; max-width: 240px; }
.thumbnail { width: 60px; height: 45px; display: block; object-fit: cover; border-radius: 3px; }
footer { font-size: 13px; color: #656565; }
:focus-visible { outline: 2px solid #315346; outline-offset: 3px; }
@media (max-width: 800px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cart { position: static; }
  header { align-items: flex-start; }
  header .muted { display: none; }
}
@media (max-width: 480px) {
  header, main, footer { padding: 18px; }
  header { flex-direction: column; }
  .products, .form-row { grid-template-columns: 1fr; }
  .product > img { height: 220px; }
}
