:root {
  --bg: #f8f9fa; --surface: #ffffff; --text: #1a1d20; --muted: #6c757d;
  --accent: #2b4c3f; --accent-hover: #1f382e; --border: #e2e8f0; --radius: 10px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; }
header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: 1.5px; color: var(--accent); }
nav { display: flex; gap: 28px; }
nav a { font-size: 15px; font-weight: 500; color: var(--text); transition: color 0.2s; }
nav a:hover, nav a.active { color: var(--accent); }
.cart-btn { background: var(--accent); color: #fff; border: none; padding: 9px 16px; border-radius: var(--radius); cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.cart-btn:hover { background: var(--accent-hover); }
.hero { background: linear-gradient(135deg, #2b4c3f 0%, #1c332a 100%); color: #fff; padding: 72px 0; margin-bottom: 48px; }
.hero h1 { font-size: 40px; max-width: 650px; margin-bottom: 16px; line-height: 1.2; }
.hero p { font-size: 18px; opacity: 0.9; max-width: 540px; margin-bottom: 28px; }
.btn-light { display: inline-block; background: #fff; color: var(--accent); padding: 12px 26px; border-radius: var(--radius); font-weight: 600; }
.section-title { font-size: 26px; margin-bottom: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; align-items: center; justify-content: space-between; }
.cat-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-btn { background: var(--surface); border: 1px solid var(--border); padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 14px; }
.cat-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.search-input { padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius); width: 260px; font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; margin-bottom: 60px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.06); }
.card-img { height: 200px; display: flex; align-items: center; justify-content: center; background: #eef2f0; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.card-title { font-size: 17px; font-weight: 600; margin: 6px 0 10px; }
.card-desc { font-size: 14px; color: var(--muted); margin-bottom: 16px; flex: 1; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-size: 18px; font-weight: 700; }
.btn-add { background: var(--accent); color: #fff; border: none; padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px; }
.btn-add:hover { background: var(--accent-hover); }
.product-detail { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; margin: 40px 0; }
.product-detail-img { background: #eef2f0; border-radius: var(--radius); min-height: 340px; display: flex; align-items: center; justify-content: center; }
.specs-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.specs-table td { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.specs-table td:first-child { color: var(--muted); width: 45%; }
.info-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; margin: 32px 0; }
.info-box h2 { margin-bottom: 14px; font-size: 22px; }
.info-box p, .info-box li { color: #333; margin-bottom: 10px; }
.info-box ul { padding-left: 20px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 200; }
.modal-backdrop.open { display: flex; }
.modal { background: var(--surface); width: 100%; max-width: 480px; border-radius: var(--radius); padding: 24px; max-height: 85vh; overflow-y: auto; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); }
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 36px 0; margin-top: auto; font-size: 14px; color: var(--muted); }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
@media (max-width: 768px) { .product-detail { grid-template-columns: 1fr; } nav { display: none; } }
