/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #003d7a;
  --primary-dark: #002952;
  --primary-light: #e8f0fa;
  --accent: #ff6600;
  --accent-dark: #e55a00;
  --accent-light: #fff0e6;
  --success: #2d8a3e;
  --warning: #d97706;
  --danger: #c0392b;
  --steel: #4a6d8c;
  --ink: #0a1929;
  --ink-light: #1a2b3c;
  --gray-50: #f7f8fa;
  --gray-100: #eef1f5;
  --gray-200: #e0e4ea;
  --gray-300: #cdd3dc;
  --gray-400: #9ba5b4;
  --gray-500: #6b7785;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --gray-900: #0a1929;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --max-width: 1280px;
  --header-height: 60px;
  --topbar-height: 36px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--gray-700);
  background: var(--gray-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a {
  color: inherit;
  text-decoration: none;
}

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== Top Bar ===== */
.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.65);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-left span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar-left svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.topbar-email {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-right: 14px;
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.topbar-email:hover {
  color: #fff;
}

.topbar-email svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-right a {
  transition: color 0.2s;
}

.topbar-right a:hover {
  color: #fff;
}

.topbar-divider {
  color: rgba(255, 255, 255, 0.2);
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 3px solid var(--primary);
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  letter-spacing: -0.5px;
}

.logo svg {
  width: 34px;
  height: 34px;
}

.logo .logo-accent {
  color: var(--accent);
}

.logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: 8px;
  object-fit: contain;
}

.footer-brand .logo-img-light {
  height: 50px;
  padding: 4px;
  background: #fff;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 26px;
  flex: 1;
}

.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  transition: color 0.15s;
  position: relative;
  padding: 4px 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.nav a.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

.header-search {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 7px 12px;
  width: 280px;
  transition: all 0.2s;
}

.header-search:focus-within {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px var(--primary-light);
}

.header-search input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--gray-700);
}

.header-search input::placeholder {
  color: var(--gray-400);
}

.header-search svg {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
  margin-right: 8px;
}

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.cart-btn:hover {
  background: var(--accent-dark);
}

.cart-btn svg {
  width: 19px;
  height: 19px;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--ink);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
}

.cart-count:empty,
.cart-count[data-count="0"] {
  display: none;
}

/* ===== Hero ===== */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 72px 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255, 102, 0, 0.03) 39px, rgba(255, 102, 0, 0.03) 40px),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(255, 102, 0, 0.03) 39px, rgba(255, 102, 0, 0.03) 40px);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -100px;
  right: -50px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 61, 122, 0.4) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 102, 0, 0.12);
  border: 1px solid rgba(255, 102, 0, 0.3);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 22px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero h1 .highlight {
  color: var(--accent);
}

.hero h1 .steel {
  color: #6fa3d4;
}

.hero p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  max-width: 520px;
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(255, 102, 0, 0.3);
}

.btn-blue {
  background: var(--primary);
  color: #fff;
}

.btn-blue:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 61, 122, 0.3);
}

.btn-white {
  background: #fff;
  color: var(--ink);
}

.btn-white:hover {
  background: var(--gray-100);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

.btn-lg {
  padding: 13px 32px;
  font-size: 15px;
}

.hero-visual {
  flex-shrink: 0;
  width: 400px;
}

.hero-stats {
  display: flex;
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
}

.hero-stat {
  flex: 1;
  padding-right: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-stat:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-stat .num {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.hero-stat .num .accent {
  color: var(--accent);
}

.hero-stat .label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== Section ===== */
.section {
  padding: 64px 0;
}

.section-header {
  margin-bottom: 36px;
}

.section-header .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}

.section-header h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

.section-header p {
  font-size: 15px;
  color: var(--gray-500);
}

.section-header.text-center {
  text-align: center;
}

.section-header.text-center .eyebrow {
  justify-content: center;
}

.section-header.text-center .eyebrow::before {
  display: none;
}

/* ===== Category Grid ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: all 0.2s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.25s;
}

.category-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.category-card:hover::before {
  height: 100%;
}

.category-card .icon-box {
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--primary);
  overflow: hidden;
  transition: all 0.2s;
}

.category-card:hover .icon-box {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.category-card .icon-box svg {
  width: 30px;
  height: 30px;
}

.category-card .icon-box img.cat-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.category-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.category-card .cat-desc {
  font-size: 12px;
  color: var(--gray-400);
  margin-bottom: 10px;
  line-height: 1.5;
}

.category-card .cat-count {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-card .cat-count .arrow {
  color: var(--accent);
  transition: transform 0.2s;
}

.category-card:hover .cat-count .arrow {
  transform: translateX(3px);
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.product-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card .product-img {
  background: var(--gray-50);
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gray-100);
}

.product-card .product-img svg {
  width: 76px;
  height: 76px;
  transition: transform 0.3s;
}

.product-card:hover .product-img svg {
  transform: scale(1.08);
}

.product-card .product-img img.product-thumb {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  transition: transform 0.3s;
}

.product-card:hover .product-img img.product-thumb {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 0 0 6px 0;
}

.tag-hot { background: var(--accent); color: #fff; }
.tag-new { background: var(--success); color: #fff; }
.tag-sale { background: var(--warning); color: #fff; }
.tag-rfq { background: var(--primary); color: #fff; }

.product-card .product-body {
  padding: 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card .product-brand {
  font-size: 11px;
  color: var(--gray-400);
  margin-bottom: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.product-card .product-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  line-height: 1.4;
}

.product-card .product-part {
  font-size: 11px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.product-card .stock-info {
  font-size: 11px;
  color: var(--success);
  margin-bottom: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-card .stock-info::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.product-card .stock-info.low { color: var(--warning); }
.product-card .stock-info.out { color: var(--gray-400); }
.product-card .stock-info.out::before { background: var(--gray-300); }

.product-card .product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}

.product-card .product-price {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.product-card .product-price .unit {
  font-size: 11px;
  font-weight: 400;
  color: var(--gray-400);
}

.add-cart-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  flex-shrink: 0;
}

.add-cart-btn:hover {
  background: var(--accent-dark);
  transform: scale(1.05);
}

.add-cart-btn svg {
  width: 17px;
  height: 17px;
}

.add-cart-btn:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
}

/* ===== Sourcing Section (Hard-to-Find) ===== */
.sourcing-section {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.sourcing-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255, 102, 0, 0.02) 60px, rgba(255, 102, 0, 0.02) 61px);
  pointer-events: none;
}

.sourcing-section .container {
  position: relative;
  z-index: 1;
}

.sourcing-section .section-header h2 {
  color: #fff;
}

.sourcing-section .section-header p {
  color: rgba(255, 255, 255, 0.5);
}

.sourcing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.sourcing-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.25s;
}

.sourcing-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 102, 0, 0.3);
  transform: translateY(-3px);
}

.sourcing-card .sc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: rgba(255, 102, 0, 0.12);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.sourcing-card .sc-icon svg {
  width: 26px;
  height: 26px;
}

.sourcing-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.sourcing-card p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 16px;
}

.sourcing-card .sc-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sourcing-card .sc-feature {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
}

/* ===== Features Section ===== */
.features-section {
  background: #fff;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-item {
  padding: 16px;
  border-left: 3px solid var(--gray-200);
  transition: border-color 0.2s;
}

.feature-item:hover {
  border-left-color: var(--accent);
}

.feature-item .icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
}

.feature-item .icon svg {
  width: 24px;
  height: 24px;
}

.feature-item h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
}

.feature-item p {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(135deg, var(--primary), var(--ink));
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 250px;
  height: 250px;
  background: rgba(255, 102, 0, 0.1);
  border-radius: 50%;
}

.cta-section h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.cta-section p {
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.cta-section .btn {
  position: relative;
  z-index: 1;
  margin: 0 6px;
}

/* ===== Products Page ===== */
.products-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-sidebar {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-child {
  margin-bottom: 0;
  border-bottom: none;
  padding-bottom: 0;
}

.filter-group h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-600);
  transition: color 0.15s;
}

.filter-option:hover {
  color: var(--primary);
}

.filter-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
  cursor: pointer;
}

.filter-option .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--gray-400);
}

.products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.products-toolbar .result-count {
  font-size: 13px;
  color: var(--gray-500);
}

.products-toolbar .result-count strong {
  color: var(--ink);
}

.sort-select {
  padding: 7px 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--gray-600);
  background: #fff;
  cursor: pointer;
  outline: none;
}

.sort-select:focus {
  border-color: var(--primary);
}

.products-main .product-grid {
  grid-template-columns: repeat(3, 1fr);
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.no-results svg {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
}

.no-results h3 {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 6px;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 13px;
  color: var(--gray-400);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb svg {
  width: 13px;
  height: 13px;
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.product-gallery {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 400px;
}

.product-gallery svg {
  width: 200px;
  height: 200px;
}

.product-gallery img.product-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info h1 {
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.product-info .brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.product-info .brand-name {
  font-size: 14px;
  color: var(--gray-500);
}

.product-info .brand-name strong {
  color: var(--primary);
}

.product-info .part-number {
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", "Consolas", monospace;
  background: var(--gray-100);
  padding: 3px 10px;
  border-radius: 4px;
  color: var(--gray-600);
}

.product-info .price-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.product-info .price-main {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.product-info .price-current {
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}

.product-info .price-unit {
  font-size: 13px;
  color: var(--gray-400);
}

.product-info .price-original {
  font-size: 14px;
  color: var(--gray-400);
  text-decoration: line-through;
  margin-left: 8px;
}

.product-info .price-tier {
  margin-top: 12px;
  font-size: 13px;
  color: var(--gray-500);
}

.product-info .price-tier table {
  width: 100%;
  margin-top: 6px;
  border-collapse: collapse;
}

.product-info .price-tier th,
.product-info .price-tier td {
  padding: 5px 8px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--gray-200);
}

.product-info .price-tier th {
  color: var(--gray-400);
  font-weight: 500;
}

.product-info .price-tier .tier-price {
  color: var(--accent);
  font-weight: 700;
}

.product-info .spec-quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-bottom: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.product-info .spec-quick .spec-item {
  display: flex;
  gap: 8px;
  font-size: 13px;
}

.product-info .spec-quick .spec-label {
  color: var(--gray-400);
  flex-shrink: 0;
  min-width: 70px;
}

.product-info .spec-quick .spec-value {
  color: var(--gray-700);
  font-weight: 600;
}

.product-info .stock-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.product-info .stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
}

.stock-badge.in-stock { background: #e6f4ea; color: var(--success); }
.stock-badge.low-stock { background: #fef3e2; color: var(--warning); }

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  width: fit-content;
}

.quantity-selector button {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--gray-50);
  cursor: pointer;
  font-size: 18px;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.quantity-selector button:hover {
  background: var(--gray-100);
  color: var(--ink);
}

.quantity-selector input {
  width: 56px;
  height: 38px;
  border: none;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  outline: none;
  border-left: 1px solid var(--gray-200);
  border-right: 1px solid var(--gray-200);
  color: var(--ink);
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
}

.btn-cart {
  background: var(--accent);
  color: #fff;
}

.btn-cart:hover {
  background: var(--accent-dark);
}

.btn-rfq {
  background: var(--primary);
  color: #fff;
}

.btn-rfq:hover {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-200);
}

.product-extra {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--gray-500);
  flex-wrap: wrap;
}

.product-extra span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.product-extra svg {
  width: 15px;
  height: 15px;
  color: var(--success);
}

/* ===== Detail Tabs ===== */
.detail-tabs {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tab-headers {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.tab-headers button {
  padding: 14px 28px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tab-headers button:hover {
  color: var(--ink);
}

.tab-headers button.active {
  color: var(--primary);
  border-bottom-color: var(--accent);
  background: #fff;
}

.tab-content { padding: 28px; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 11px 16px;
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}

.spec-table th {
  color: var(--gray-400);
  font-weight: 600;
  width: 200px;
  background: var(--gray-50);
}

.spec-table td {
  color: var(--gray-700);
  font-weight: 500;
}

.desc-content p {
  margin-bottom: 12px;
  color: var(--gray-600);
  line-height: 1.8;
}

.desc-content ul {
  margin: 12px 0 12px 20px;
}

.desc-content li {
  margin-bottom: 6px;
  color: var(--gray-600);
}

/* ===== Cart Page ===== */
.cart-page {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.cart-items {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-table { width: 100%; }

.cart-table th {
  padding: 12px 18px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cart-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  vertical-align: middle;
}

.cart-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-product .cart-product-icon {
  width: 52px;
  height: 52px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cart-product .cart-product-icon svg {
  width: 30px;
  height: 30px;
}

.cart-product .cart-product-icon img.cart-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
}

.cart-product .cart-product-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
}

.cart-product .cart-product-info p {
  font-size: 12px;
  color: var(--gray-400);
}

.cart-price {
  font-weight: 700;
  color: var(--ink);
}

.cart-total-cell {
  font-weight: 800;
  color: var(--accent);
}

.cart-remove {
  color: var(--gray-400);
  cursor: pointer;
  transition: color 0.15s;
  background: none;
  border: none;
  padding: 4px;
}

.cart-remove:hover { color: var(--danger); }

.cart-remove svg {
  width: 17px;
  height: 17px;
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: calc(var(--header-height) + 20px);
}

.cart-summary h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--gray-500);
}

.summary-row.total {
  padding-top: 14px;
  border-top: 2px solid var(--gray-200);
  margin-top: 14px;
  margin-bottom: 18px;
}

.summary-row.total .label {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.summary-row.total .value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent);
}

.cart-empty {
  text-align: center;
  padding: 72px 20px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
}

.cart-empty svg {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  color: var(--gray-300);
}

.cart-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.cart-empty p {
  color: var(--gray-400);
  margin-bottom: 22px;
}

/* ===== About Page ===== */
.about-hero {
  background: var(--ink);
  color: #fff;
  padding: 56px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(255, 102, 0, 0.03) 39px, rgba(255, 102, 0, 0.03) 40px);
}

.about-hero .container { position: relative; z-index: 1; }

.about-hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.about-hero h1 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 12px;
}

.about-hero p {
  font-size: 16px;
  opacity: 0.6;
  max-width: 580px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}

.about-card:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-lg);
}

.about-card .icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-card .icon svg {
  width: 28px;
  height: 28px;
}

.about-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 8px;
}

.about-card p {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
}

.about-stat {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.about-stat:last-child { border-right: none; }

.about-stat .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}

.about-stat .label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 52px 0 20px;
  margin-top: 56px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 36px;
}

.footer-brand .logo {
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.footer-col ul li {
  margin-bottom: 9px;
}

.footer-col ul li a {
  font-size: 13px;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.footer-social a:hover {
  background: var(--accent);
  color: #fff;
}

.footer-social svg {
  width: 17px;
  height: 17px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 3px solid var(--accent);
}

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

.toast svg {
  width: 19px;
  height: 19px;
  color: var(--accent);
}

/* ===== Core Business ===== */
.core-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.core-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.core-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.core-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.core-card:hover::after {
  transform: scaleX(1);
}

.core-num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 14px;
  font-family: "Inter", sans-serif;
}

.core-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}

.core-card > p {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.core-card ul {
  list-style: none;
  margin: 0 0 16px 0;
  padding: 0;
}

.core-card ul li {
  font-size: 13px;
  color: var(--gray-600);
  padding: 5px 0 5px 18px;
  position: relative;
  line-height: 1.55;
}

.core-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.core-card ul li strong {
  color: var(--ink);
  font-weight: 600;
}

.core-brands {
  font-size: 12px;
  color: var(--accent-dark);
  font-weight: 600;
  padding-top: 12px;
  border-top: 1px dashed var(--gray-200);
  line-height: 1.6;
}

/* ===== Industries Served ===== */
.industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.industry-chip {
  padding: 10px 22px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  transition: all 0.2s;
  cursor: default;
}

.industry-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
  box-shadow: var(--shadow-sm);
}

/* ===== About Lead ===== */
.about-lead {
  max-width: 860px;
  margin: 0 auto 36px;
}

.about-lead p {
  font-size: 16px;
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 16px;
}

.about-lead p:last-child {
  margin-bottom: 0;
}

.about-lead strong {
  color: var(--ink);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .category-grid,
  .product-grid,
  .feature-grid,
  .sourcing-grid,
  .core-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .products-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual { display: none; }
  .hero-stats { flex-wrap: wrap; }
  .hero-stat { border-right: none; padding-right: 0; margin-bottom: 16px; }
  .product-detail { grid-template-columns: 1fr; }
  .cart-page { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .about-stat:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav, .header-search { display: none; }
  .logo-img { height: 38px; }
  .footer-brand .logo-img-light { height: 44px; }
  .category-grid, .product-grid, .feature-grid,
  .about-grid, .sourcing-grid, .core-grid {
    grid-template-columns: 1fr;
  }
  .core-card {
    padding: 22px 20px;
  }
  .products-page { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .hero h1 { font-size: 28px; }
  .cart-table th:nth-child(3),
  .cart-table td:nth-child(3) { display: none; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .about-stats { grid-template-columns: 1fr; }
  .about-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 16px; }
  .about-stat:last-child { border-bottom: none; }
}
