:root { color-scheme: light; --ink:#17211c; --green:#0e7a45; --line:#e6e1d8; --bg:#f4f6f4; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, Segoe UI, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { background: #101814; color: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { max-width: 1180px; margin: 0 auto; padding: 12px 18px; display: flex; gap: 16px; align-items: center; }
.brand { color: #fff; font-weight: 800; letter-spacing: .06em; font-size: 20px; text-decoration: none; }
.search { flex: 1; display: flex; }
.search input { flex: 1; border: 0; border-radius: 8px 0 0 8px; padding: 10px 12px; font: inherit; }
.search button, .buy button, .cart button { background: var(--green); color: #fff; border: 0; font: 700 15px/1 system-ui, sans-serif; cursor: pointer; }
.search button { border-radius: 0 8px 8px 0; padding: 0 16px; }
.cartlink { color: #fff; text-decoration: none; font-weight: 700; background: #24332c; border-radius: 999px; padding: 8px 12px; }
nav.cats { max-width: 1180px; margin: 0 auto; padding: 8px 18px 12px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
nav.cats a { color: #d7efe3; font-size: 14px; text-decoration: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 18px; }
.crumbs { font-size: 13px; color: #5c675f; margin: 0 0 14px; }
.crumbs a { color: #5c675f; }
.product { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.gallery img { width: 100%; border-radius: 10px; background: #fafafa; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs img { width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.buy h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.price { font-size: 28px; font-weight: 800; margin: 8px 0; }
.meta { color: #546056; font-size: 14px; margin: 0 0 6px; }
.stock.in { color: var(--green); font-weight: 700; }
.stock.out { color: #a33; font-weight: 700; }
.buy form { display: flex; gap: 8px; margin-top: 14px; }
.buy input[type="number"] { width: 72px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.buy button { border-radius: 8px; padding: 12px 18px; }
.desc, .panel { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-top: 18px; }
.desc h2, .desc h3, .panel h2 { line-height: 1.3; }
.desc img { max-width: 100%; height: auto; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 1; object-fit: cover; background: #fafafa; }
.card div { padding: 10px 12px 14px; }
.card strong { display: block; color: var(--ink); font-size: 14px; line-height: 1.35; min-height: 38px; }
.card em { font-style: normal; font-weight: 800; color: var(--green); }
.cart table { width: 100%; border-collapse: collapse; background: #fff; }
.cart td, .cart th { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: middle; }
.total { font-size: 22px; font-weight: 800; }
.foot { text-align: center; color: #667; font-size: 13px; padding: 22px; }
@media (max-width: 860px) {
  .product, .grid { grid-template-columns: 1fr 1fr; }
  .product { grid-template-columns: 1fr; }
  .search { display: none; }
}
