
:root {
  --color-bg: #f3f4f6;
  --color-surface: #ffffff;
  --color-primary: #2563eb;
  --color-primary-soft: #dbeafe;
  --color-secondary: #059669;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --container-width: 1100px;
  --transition-fast: 0.15s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
}

.logo.logo-with-img {
  padding: 0.15rem 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  padding: 0.35rem;
  border-radius: 0.4rem;
  cursor: pointer;
  margin-left: 0.4rem;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #4b5563;
  margin: 3px 0;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

body.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
body.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}
body.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.main-nav a {
  color: #4b5563;
  padding: 0.3rem 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22c55e);
  transition: width var(--transition-fast);
}

.main-nav a:hover::after {
  width: 100%;
}

.main-nav a.active {
  color: #111827;
  font-weight: 600;
}

.main-nav a.active::after {
  width: 100%;
}

/* Hero & Sections */

.hero {
  padding: 2.4rem 0 2rem;
}

.hero-inner {
  padding: 1.8rem 1.6rem;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, #e0f2fe 0, #eff6ff 35%, #ffffff 80%);
  box-shadow: var(--shadow-soft);
}

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.4rem;
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 500;
  color: #1d4ed8;
  margin-bottom: 0.5rem;
}

.hero-text {
  max-width: 620px;
  color: #4b5563;
  margin-bottom: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.section {
  padding: 2rem 0 2.5rem;
}

.section-muted {
  background: #f9fafb;
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-header h1,
.section-header h2 {
  margin: 0 0 0.3rem;
}

.section-header p {
  margin: 0;
  color: #4b5563;
}

/* Grids */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

/* Cards & Buttons */

.icon-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  color: #4b5563;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.icon-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: #111827;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.9rem;
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.product-meta h3 {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
}

.product-code {
  font-size: 0.8rem;
  color: #6b7280;
}

.product-category {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  padding: 0.08rem 0.55rem;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}

.product-desc {
  margin: 0;
  font-size: 0.85rem;
  color: #4b5563;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.15rem;
}

.product-card-actions .btn-primary {
  flex: 1;
}

.product-card-actions .btn-outline {
  flex: 1;
}

.product-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 0.5rem 0 1.1rem;
}

.product-filters input,
.product-filters select {
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 0.86rem;
}

.product-filters input {
  flex: 1 1 220px;
}

.product-filters select {
  flex: 0 0 190px;
}

/* Product detail */

.product-detail-main--card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.product-detail-main h1 {
  margin-top: 0;
}

.product-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.88rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eff6ff;
  color: #1d4ed8;
}

/* Tables & Forms */

.product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.4rem;
  font-size: 0.86rem;
}

.product-specs-table th,
.product-specs-table td {
  text-align: left;
  padding: 0.3rem 0.2rem;
  border-bottom: 1px solid var(--color-border);
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.rfq-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.rfq-table th,
.rfq-table td {
  padding: 0.35rem 0.3rem;
  border-bottom: 1px solid var(--color-border);
}

.rfq-table th {
  text-align: left;
  font-weight: 600;
}

.rfq-qty {
  width: 70px;
}

.rfq-notes {
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.9rem;
  margin-top: 1.2rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.86rem;
  gap: 0.15rem;
}

.form-grid input,
.form-grid textarea {
  padding: 0.45rem 0.55rem;
  border-radius: 0.55rem;
  border: 1px solid var(--color-border);
  font-size: 0.86rem;
  font-family: inherit;
}

.full-width {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

/* Buttons */

.btn-primary,
.btn-secondary,
.btn-outline {
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #22c55e);
  color: #ffffff;
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-secondary {
  background: #e0f2fe;
  color: #1d4ed8;
}

.btn-outline {
  border: 1px solid #cbd5f5;
  color: #1d4ed8;
  background: transparent;
}

.link-button {
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-size: 0.8rem;
  color: #ef4444;
}

/* States & Layout */

.empty-state {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px dashed #cbd5f5;
  background: #eff6ff;
  font-size: 0.9rem;
  color: #1e293b;
}

.success-msg {
  font-size: 0.86rem;
  color: #15803d;
  margin-top: 0.5rem;
}

.prose {
  max-width: 720px;
}

.prose h1 {
  margin-top: 0;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
  gap: 1.2rem;
}

.contact-info {
  font-size: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--color-border);
  background: #0f172a;
  color: #cbd5f5;
  margin-top: 1.5rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1.4fr;
  gap: 1.2rem;
  padding: 1.4rem 1.25rem 1rem;
}

.site-footer h4 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0.1rem 0;
  font-size: 0.86rem;
}

.site-footer a {
  display: block;
  color: #bfdbfe;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.55rem 1.25rem 0.75rem;
  font-size: 0.76rem;
  text-align: center;
  color: #9ca3af;
}

/* Toast */

.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1.1rem;
  transform: translateX(-50%) translateY(120%);
  background: #111827;
  color: #f9fafb;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .hero-inner {
    border-radius: 1rem;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: center;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
    gap: 0.4rem 0.75rem;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    width: 100%;
    display: none;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-start;
    margin-top: 0.35rem;
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .hero {
    padding-top: 1.6rem;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
.menu-banner {
  width: 100%;
  overflow: hidden;
}

.menu-banner-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}