* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f7; color: #1d1d1f; line-height: 1.6; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.navbar { background: #1a1a2e; color: #fff; padding: 0; position: sticky; top: 0; z-index: 100; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; height: 56px; }
.nav-brand { font-size: 1.2rem; font-weight: 700; color: #e8b84b; text-decoration: none; letter-spacing: 0.5px; }
.nav-links { display: flex; align-items: center; gap: 0; }
.nav-links a { color: #ccc; text-decoration: none; padding: 18px 16px; font-size: 0.85rem; transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-partner { border: 1px solid #e8b84b; color: #e8b84b !important; border-radius: 4px; padding: 6px 14px !important; margin: 12px 0 12px 8px; font-size: 0.8rem; }
.nav-partner:hover { background: #e8b84b !important; color: #1a1a2e !important; }
.nav-cart { position: relative; }
.cart-badge { background: #dc3545; color: #fff; border-radius: 50%; padding: 1px 6px; font-size: 0.7rem; margin-left: 2px; vertical-align: top; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.nav-dropdown .dropdown-content { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: 0 4px 16px rgba(0,0,0,0.12); border-radius: 0 0 8px 8px; z-index: 200; }
.nav-dropdown .dropdown-content a { color: #333; display: block; padding: 10px 16px; white-space: nowrap; }
.nav-dropdown .dropdown-content a:hover { background: #f0f0f5; color: #1a1a2e; }
.nav-dropdown:hover .dropdown-content { display: block; }

main { min-height: calc(100vh - 300px); padding: 32px 0; }

/* Footer */
.footer { background: #1a1a2e; color: #999; margin-top: 48px; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-grid h4 { color: #e8b84b; font-size: 0.9rem; margin-bottom: 12px; }
.footer-grid a { color: #999; text-decoration: none; display: block; margin-bottom: 6px; font-size: 0.85rem; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #333; text-align: center; padding: 16px; font-size: 0.8rem; }

/* Hero */
.hero { text-align: center; padding: 64px 0 48px; background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); color: #fff; margin: -32px -20px 32px; padding-left: 20px; padding-right: 20px; }
.hero h1 { font-size: 2.5rem; margin-bottom: 12px; }
.hero .subtitle { color: #e8b84b; font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* Cards */
.card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s, box-shadow 0.2s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

/* Dashboard Grid */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 32px 0; }
.card-icon { font-size: 2rem; margin-bottom: 8px; }
.card-number { font-size: 2.5rem; font-weight: 700; }
.card-label { color: #666; font-size: 0.9rem; margin-top: 4px; }

/* Buttons */
.btn { display: inline-block; padding: 10px 24px; background: #1a1a2e; color: #fff; text-decoration: none; border-radius: 8px; border: none; cursor: pointer; font-size: 0.9rem; }
.btn:hover { background: #16213e; }
.btn-outline { background: transparent; border: 2px solid #e8b84b; color: #e8b84b; }
.btn-outline:hover { background: #e8b84b; color: #1a1a2e; }
.btn-sm { padding: 6px 14px; background: #e8e8ed; border-radius: 6px; border: none; cursor: pointer; font-size: 0.8rem; text-decoration: none; color: #1d1d1f; }
.btn-sm.active { background: #1a1a2e; color: #fff; }
.btn-gold { background: #e8b84b; color: #1a1a2e; }
.btn-gold:hover { background: #d4a43a; }

/* Tables */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.table th, .table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #e8e8ed; }
.table th { background: #f5f5f7; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: #666; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin-top: 24px; }
.product-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: transform 0.2s; }
.product-card:hover { transform: translateY(-3px); }
.product-card img { width: 100%; height: 200px; object-fit: cover; }
.product-card-body { padding: 20px; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.product-series { color: #e8b84b; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }
.product-category { color: #666; font-size: 0.8rem; }
.product-price { font-size: 1.3rem; font-weight: 700; margin: 8px 0; }
.product-desc { color: #666; font-size: 0.85rem; margin-bottom: 12px; }

/* Forms */
.input { width: 100%; padding: 10px 14px; border: 1px solid #d2d2d7; border-radius: 8px; font-size: 0.9rem; margin-bottom: 12px; }
.input-sm { padding: 6px 10px; border: 1px solid #d2d2d7; border-radius: 6px; font-size: 0.85rem; }
.textarea { min-height: 100px; resize: vertical; }
.form-panel { background: #fff; border-radius: 12px; padding: 24px; margin: 16px 0; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.hidden { display: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Filters */
.catalog-filters { margin-bottom: 20px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Status Badges */
.status-badge { padding: 3px 8px; border-radius: 4px; font-size: 0.8rem; }
.status-badge.paid { background: #e8f5e9; color: #2e7d32; }
.status-badge.sent { background: #e3f2fd; color: #1565c0; }
.status-badge.draft { background: #f5f5f5; color: #666; }
.status-badge.award { background: #fff8e1; color: #f57f17; }
.status-badge.rd { background: #e3f2fd; color: #1565c0; }
.status-badge.event { background: #f3e5f5; color: #7b1fa2; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 24px; }
.news-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.news-card-body { padding: 20px; }
.news-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.news-meta { color: #999; font-size: 0.8rem; margin-bottom: 8px; display: flex; gap: 12px; align-items: center; }

/* Service page */
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.service-section { scroll-margin-top: 80px; }
.section-title { font-size: 1.5rem; margin-bottom: 20px; color: #1a1a2e; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* About page */
.about-hero { text-align: center; padding: 48px 0; }
.awards-showcase { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 20px; }
.award-card { background: #fff; border-radius: 12px; padding: 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); text-align: center; }
.award-card .award-year { font-size: 2rem; font-weight: 700; color: #e8b84b; }
.faq-item { background: #fff; border-radius: 8px; margin-bottom: 8px; padding: 16px 20px; cursor: pointer; }
.faq-item h4 { font-size: 0.95rem; }
.faq-item .faq-answer { display: none; margin-top: 8px; color: #666; }
.faq-item.open .faq-answer { display: block; }

/* Tab filters */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tab { padding: 8px 20px; background: #e8e8ed; color: #1d1d1f; text-decoration: none; border-radius: 6px; font-size: 0.85rem; }
.tab.active { background: #1a1a2e; color: #fff; }
.tab:hover { background: #d2d2d7; }

/* Invoice */
.invoice-header { background: #fff; padding: 24px; border-radius: 12px; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.invoice-totals { text-align: right; margin-top: 16px; font-size: 1.1rem; }
.invoice-totals .total { font-size: 1.4rem; margin-top: 8px; }

/* Partner page */
.partner-login { max-width: 400px; margin: 48px auto; }

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 12px; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: #1a1a2e; padding: 12px; }
    .nav-links.show { display: flex; }
    .nav-dropdown .dropdown-content { position: static; box-shadow: none; background: rgba(255,255,255,0.05); }
    .nav-dropdown .dropdown-content a { color: #ccc; }
    .service-grid { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

.quick-actions { margin-top: 32px; }
.action-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.stock-qty.low { color: #d32f2f; font-weight: 600; }
.empty { color: #999; font-style: italic; padding: 40px; text-align: center; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.product-image { border-radius: 12px; overflow: hidden; }
.product-image img { width: 100%; height: auto; }
.specs-table { width: 100%; }
.specs-table td { padding: 8px 12px; border-bottom: 1px solid #e8e8ed; }
.specs-table td:first-child { font-weight: 600; color: #666; width: 40%; }
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 8px 0; border-bottom: 1px solid #e8e8ed; }
.feature-list li:before { content: "✓ "; color: #2e7d32; }
.article-content { background: #fff; border-radius: 12px; padding: 32px; box-shadow: 0 2px 8px rgba(0,0,0,0.08); line-height: 1.8; max-width: 800px; margin: 0 auto; }

/* Quantity Selector */
.qty-selector { display: inline-flex; align-items: center; border: 1px solid #d2d2d7; border-radius: 6px; overflow: hidden; }
.qty-btn { padding: 8px 14px; border: none; background: #f5f5f7; cursor: pointer; font-size: 1.1rem; color: #1d1d1f; }
.qty-btn:hover { background: #e8e8ed; }
.qty-selector input[type=number] { -moz-appearance: textfield; }
.qty-selector input[type=number]::-webkit-inner-spin-button,
.qty-selector input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Add to Cart Button */
.add-to-cart-btn { transition: transform 0.15s, box-shadow 0.15s; }
.add-to-cart-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(232, 184, 75, 0.3); }
.add-to-cart-btn:active { transform: translateY(0); }
.product-card .btn-sm { transition: all 0.2s; }
.product-card .btn-sm:hover { background: #e8b84b !important; color: #1a1a2e !important; }
