* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #111; background: #f6f7f9; }
nav { background: #0b1f33; color: #fff; padding: 1rem 2rem; display: flex; gap: 2rem; align-items: center; }
nav a { color: #fff; text-decoration: none; }
nav .brand { font-weight: 700; letter-spacing: 0.05em; }
.hero { padding: 6rem 2rem; text-align: center; background: linear-gradient(135deg, #0b1f33, #1e4b7a); color: #fff; }
.hero h1 { font-size: 2.6rem; margin-bottom: 1rem; }
.hero .tag { font-size: 1.2rem; opacity: 0.85; margin-bottom: 2rem; }
.cta { background: #f5b93a; color: #111; padding: 1rem 2rem; text-decoration: none; border-radius: 4px; font-weight: 600; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding: 4rem 2rem; max-width: 1200px; margin: 0 auto; }
.features div { background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
.features h3 { margin-bottom: 0.5rem; color: #0b1f33; }
footer { padding: 2rem; text-align: center; background: #0b1f33; color: #9db3cc; }
footer .small { font-size: 0.85rem; margin-top: 0.5rem; }
footer a { color: #f5b93a; }
main { max-width: 1000px; margin: 2rem auto; padding: 2rem; background: #fff; border-radius: 8px; }
main.product-detail { max-width: 1100px; }
main h1 { margin-bottom: 1rem; color: #0b1f33; }
main h2 { margin-top: 2rem; margin-bottom: 0.5rem; color: #0b1f33; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 1rem; }
.product { padding: 1.5rem; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.product img { width: 100%; height: auto; border-radius: 4px; margin-bottom: 1rem; }
.auth form { display: flex; flex-direction: column; gap: 1rem; max-width: 400px; }
.auth label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
.auth input { padding: 0.5rem; border: 1px solid #cbd5e1; border-radius: 4px; }
.auth button { padding: 0.75rem; background: #0b1f33; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
#chat-log { min-height: 300px; max-height: 500px; overflow-y: auto; padding: 1rem; background: #f6f7f9; border-radius: 4px; margin-bottom: 1rem; }
#chat-log .msg { margin-bottom: 0.75rem; }
#chat-log .msg.user { color: #0b1f33; font-weight: 600; }
#chat-log .msg.bot { color: #374151; white-space: pre-wrap; }
#chat-form { display: flex; gap: 0.5rem; }
#chat-form input { flex: 1; padding: 0.75rem; border: 1px solid #cbd5e1; border-radius: 4px; }
#chat-form button { padding: 0.75rem 1.5rem; background: #f5b93a; color: #111; border: none; border-radius: 4px; cursor: pointer; }
.small { font-size: 0.85rem; color: #6b7280; }
a.product-link { text-decoration: none; color: inherit; }
a.product-link:hover .product { border-color: #0b1f33; box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: #1e4b7a; text-decoration: none; font-size: 0.95rem; }
.back-link:hover { text-decoration: underline; }
.product-hero img { width: 100%; max-height: 400px; object-fit: cover; border-radius: 8px; margin-bottom: 1.5rem; }
.product-detail h1 { font-size: 2rem; color: #0b1f33; margin-bottom: 0.25rem; }
.product-subtitle { font-size: 1.15rem; color: #6b7280; margin-bottom: 2rem; }
.product-body { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.product-description p { margin-bottom: 1rem; line-height: 1.65; color: #374151; }
.product-specs h2 { font-size: 1.1rem; color: #0b1f33; margin-bottom: 0.75rem; }
.product-specs table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.product-specs td { padding: 0.5rem 0; border-bottom: 1px solid #e5e7eb; }
.product-specs td:first-child { color: #6b7280; width: 45%; }
.product-specs td:last-child { font-weight: 600; color: #111; }
@media (max-width: 768px) { .product-body { grid-template-columns: 1fr; } }
.flag { font-family: "Menlo", monospace; background: #fef3c7; padding: 0.2rem 0.5rem; border-radius: 3px; }
