/* Reset & Base Variables */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #0F172A;
  background-color: #F8FAFC;
  line-height: 1.6;
}
a { color: #0284C7; text-decoration: none; transition: all 0.2s; }
a:hover { color: #0369A1; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Skip Link */
.skip-link {
  position: absolute; top: -40px; left: 10px; background: #0284C7; color: #FFF;
  padding: 8px 16px; z-index: 10000; font-weight: bold; border-radius: 4px;
}
.skip-link:focus { top: 10px; }

/* Top Announcement Bar */
.top-announcement-bar {
  background-color: #0F172A; color: #E2E8F0; font-size: 13px; padding: 8px 0; border-bottom: 1px solid #1E293B;
}
.announcement-content {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.announcement-links a { color: #CBD5E1; margin-left: 15px; font-weight: 500; }
.announcement-links a:hover { color: #38BDF8; }
.badge-dpp {
  background-color: #0284C7; color: #FFF !important; padding: 2px 8px; border-radius: 4px; font-size: 11px;
}

/* Site Header */
.site-header {
  background-color: #FFFFFF; border-bottom: 1px solid #E2E8F0; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.header-container {
  display: flex; justify-content: space-between; align-items: center; height: 74px;
}
.site-logo { max-height: 38px; width: auto; }
.main-nav .nav-list { display: flex; list-style: none; gap: 24px; align-items: center; }
.nav-link { color: #1E293B; font-weight: 600; font-size: 14px; padding: 8px 0; }
.nav-link:hover, .nav-link.active { color: #0284C7; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; left: 0; background: #FFF; border: 1px solid #E2E8F0;
  border-radius: 8px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); width: 260px; list-style: none;
  padding: 8px 0; display: none; z-index: 100;
}
.has-dropdown:hover .dropdown-menu { display: block; }
.dropdown-link {
  display: block; padding: 8px 16px; color: #334155; font-size: 13.5px; font-weight: 500;
}
.dropdown-link:hover { background-color: #F0F9FF; color: #0284C7; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; font-size: 14px; font-weight: 700; border-radius: 6px;
  cursor: pointer; border: none; transition: background-color 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background-color: #0284C7; color: #FFF; }
.btn-primary:hover { background-color: #0369A1; color: #FFF; }
.btn-accent { background-color: #F59E0B; color: #0F172A; }
.btn-accent:hover { background-color: #D97706; color: #FFF; }
.btn-outline { background: transparent; border: 1.5px solid #0284C7; color: #0284C7; }
.btn-outline:hover { background: #0284C7; color: #FFF; }
.btn-block { width: 100%; }

/* Hero Section */
.hero-section {
  position: relative; background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFF; padding: 80px 0 70px; overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block; background: rgba(56, 189, 248, 0.15); border: 1px solid #38BDF8;
  color: #38BDF8; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.hero-title { font-size: 38px; font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: #FAF9F5; }
.hero-sub { font-size: 16px; color: #CBD5E1; margin-bottom: 24px; line-height: 1.6; }
.hero-credentials-row { display: flex; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.cred-item { display: flex; flex-direction: column; }
.cred-val { font-size: 22px; font-weight: 800; color: #FBBF24; }
.cred-label { font-size: 12px; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px; padding: 24px; backdrop-filter: blur(8px);
}
.hero-card h3 { font-size: 18px; margin-bottom: 12px; color: #38BDF8; }
.hero-card ul { list-style: none; }
.hero-card li { padding: 6px 0; font-size: 13.5px; color: #E2E8F0; border-bottom: 1px solid rgba(255,255,255,0.06); }

/* Category Cards Grid */
.section { padding: 60px 0; }
.section-header { text-align: center; max-width: 750px; margin: 0 auto 40px; }
.section-tag { font-size: 12px; font-weight: 700; text-transform: uppercase; color: #0284C7; letter-spacing: 1px; }
.section-title { font-size: 30px; font-weight: 800; margin: 8px 0; color: #0F172A; }
.section-desc { font-size: 15px; color: #64748B; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cat-card {
  background: #FFF; border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04); transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,0.08); }
.cat-card-img-wrap { height: 200px; background: #F1F5F9; overflow: hidden; }
.cat-card-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.cat-card-body { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.cat-card-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #0F172A; }
.cat-card-text { font-size: 13.5px; color: #64748B; margin-bottom: 16px; flex-grow: 1; }
.cat-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F1F5F9; padding-top: 12px; }
.cat-moq { font-size: 12px; font-weight: 600; color: #0284C7; }

/* Product Grid */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card {
  background: #FFF; border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,0.07); }
.prod-card-img-wrap { height: 220px; background: #FFF; position: relative; overflow: hidden; }
.prod-card-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.prod-badge {
  position: absolute; top: 10px; left: 10px; background: rgba(15, 23, 42, 0.85); color: #FFF;
  font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
}
.prod-card-body { padding: 14px; flex-grow: 1; display: flex; flex-direction: column; }
.prod-sku { font-size: 11px; font-weight: 700; color: #0284C7; margin-bottom: 4px; }
.prod-title { font-size: 14px; font-weight: 700; color: #0F172A; margin-bottom: 8px; line-height: 1.35; height: 38px; overflow: hidden; }
.prod-meta-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; border-top: 1px solid #F1F5F9; }
.prod-price { font-size: 16px; font-weight: 800; color: #0284C7; }
.prod-price span { font-size: 11px; font-weight: 500; color: #64748B; }
.prod-sales { font-size: 11.5px; color: #10B981; font-weight: 600; }

/* Category Hub BLUF & Spec Table */
.category-hero { background: #0F172A; color: #FFF; padding: 50px 0; }
.category-hero-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.category-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 14px; color: #FAF9F5; }
.category-hero p { font-size: 16px; color: #94A3B8; line-height: 1.6; }

.spec-table-container { margin: 40px 0; background: #FFF; border: 1px solid #E2E8F0; border-radius: 10px; overflow: hidden; }
.spec-table { width: 100%; border-collapse: collapse; text-align: left; }
.spec-table th, .spec-table td { padding: 12px 18px; border-bottom: 1px solid #E2E8F0; font-size: 13.5px; }
.spec-table th { background: #F8FAFC; color: #0F172A; font-weight: 700; width: 30%; }
.spec-table td { color: #334155; }

/* FAQ Accordion */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: #FFF; border: 1px solid #E2E8F0; border-radius: 8px; margin-bottom: 14px; padding: 18px 24px;
}
.faq-question { font-size: 16px; font-weight: 700; color: #0F172A; margin-bottom: 8px; }
.faq-answer { font-size: 14px; color: #475569; line-height: 1.6; }

/* Breadcrumbs */
.breadcrumbs-nav { padding: 14px 0; font-size: 13px; color: #64748B; }
.breadcrumbs-nav ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumbs-nav li + li::before { content: "›"; margin-right: 8px; color: #94A3B8; }
.breadcrumbs-nav a { color: #0284C7; }

/* Product Detail Page */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0; }
.product-gallery { background: #FFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 20px; text-align: center; }
.product-gallery img { max-height: 480px; margin: 0 auto; object-fit: contain; }
.product-info h1 { font-size: 26px; font-weight: 800; color: #0F172A; margin-bottom: 12px; line-height: 1.3; }
.product-price-box {
  background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 8px; padding: 16px; margin: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.price-tag { font-size: 28px; font-weight: 800; color: #0284C7; }
.price-unit { font-size: 13px; color: #64748B; font-weight: 500; }
.product-actions { display: flex; gap: 14px; margin-top: 24px; }

/* RFQ Modal */
.rfq-modal {
  display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.7); z-index: 10000; align-items: center; justify-content: center;
}
.rfq-modal.open { display: flex; }
.rfq-modal-content {
  background: #FFF; border-radius: 12px; width: 100%; max-width: 600px; padding: 32px;
  position: relative; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.rfq-close-btn {
  position: absolute; top: 16px; right: 18px; font-size: 28px; background: none; border: none; cursor: pointer; color: #64748B;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: #334155; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; font-size: 14px; border: 1px solid #CBD5E1; border-radius: 6px;
  font-family: inherit;
}
.form-guarantee { font-size: 11.5px; color: #64748B; margin-top: 10px; text-align: center; }

/* Site Footer */
.site-footer { background: #0F172A; color: #E2E8F0; padding: 60px 0 20px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 15px; font-weight: 700; color: #FAF9F5; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #94A3B8; }
.footer-col a:hover { color: #38BDF8; }
.footer-credentials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cred-pill { background: #1E293B; color: #38BDF8; padding: 3px 8px; border-radius: 4px; font-size: 11px; }
.footer-bottom { border-top: 1px solid #1E293B; padding-top: 20px; font-size: 12px; color: #64748B; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom-links a { color: #64748B; margin-left: 14px; }
.footer-bottom-links a:hover { color: #CBD5E1; }

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .product-detail-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .category-grid, .products-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}
