/* ===== Storefront CSS — EMPR-style public pages ===== */

/* ---- Utility Bar ---- */
.sf-util {
  background: #1a2332; color: #8899aa; font-size: 12.5px;
  padding: 6px 0;
}
.sf-util-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 24px;
}

/* ---- Main Header ---- */
.sf-header {
  background: #fff; border-bottom: 1px solid #e3e7ee;
  padding: 12px 0;
}
.sf-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 20px; align-items: center;
  flex-wrap: wrap;
}
.sf-logo {
  font-weight: 700; font-size: 22px; text-decoration: none; color: #1c2430;
  letter-spacing: -0.3px; white-space: nowrap;
}
.sf-search {
  flex: 1; min-width: 240px; max-width: 520px;
  display: flex; gap: 0;
}
.sf-search input {
  flex: 1; padding: 10px 14px; font-size: 15px;
  border: 1.5px solid #cdd4de; border-right: none; border-radius: 6px 0 0 6px;
}
.sf-search input:focus { border-color: #0b7285; outline: none; }
.sf-search button {
  padding: 10px 18px; font-size: 15px;
  background: #0b7285; color: #fff; border: 1.5px solid #0b7285;
  border-radius: 0 6px 6px 0; cursor: pointer; font-weight: 600;
}
.sf-nav-right {
  display: flex; gap: 12px; align-items: center; white-space: nowrap;
}
.sf-nav-right a { color: #1c2430; text-decoration: none; font-size: 14px; }
.sf-nav-right a:hover { color: #0b7285; }
.sf-nav-right form.inline { display: inline; margin: 0; }

.sf-btn-outline {
  display: inline-block; padding: 8px 16px;
  border: 1.5px solid #0b7285; border-radius: 6px;
  color: #0b7285; text-decoration: none; font-weight: 600; font-size: 14px;
}
.sf-btn-outline:hover { background: #e8f3f6; }

/* ---- Brand Navigation Bar ---- */
.sf-brands {
  background: #fff; border-bottom: 1px solid #e3e7ee;
}
.sf-brands-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; gap: 0; align-items: center;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sf-brands a {
  display: inline-block; padding: 12px 16px;
  text-decoration: none; color: #44505f; font-size: 13.5px; font-weight: 500;
  white-space: nowrap; border-bottom: 2px solid transparent;
}
.sf-brands a:hover, .sf-brands a.active {
  color: #0b7285; border-bottom-color: #0b7285;
}
.sf-brands-more {
  color: #0b7285 !important; font-weight: 600 !important;
}

/* ---- Hero ---- */
.sf-hero {
  background: linear-gradient(135deg, #0b7285 0%, #095a6a 100%);
  color: #fff; padding: 48px 24px;
}
.sf-hero-inner {
  max-width: 1200px; margin: 0 auto;
}
.sf-hero h1 {
  font-size: 32px; margin: 0 0 12px; font-weight: 700; line-height: 1.2;
}
.sf-hero p {
  font-size: 17px; margin: 0 0 24px; opacity: 0.9; max-width: 640px;
}
.sf-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }

.sf-btn-primary {
  display: inline-block; padding: 12px 24px;
  background: #fff; color: #0b7285; border-radius: 6px;
  text-decoration: none; font-weight: 700; font-size: 15px;
}
.sf-btn-primary:hover { background: #e8f3f6; }
.sf-btn-outline-light {
  display: inline-block; padding: 12px 24px;
  border: 1.5px solid rgba(255,255,255,0.6); border-radius: 6px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
}
.sf-btn-outline-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ---- Sections ---- */
.sf-section {
  max-width: 1200px; margin: 0 auto; padding: 32px 24px;
}
.sf-section h1 { font-size: 26px; margin: 0 0 8px; }
.sf-section h2 { font-size: 22px; margin: 0 0 20px; }
.sf-section .muted { color: #6b7686; margin: 0 0 20px; }

/* ---- Brand Grid ---- */
.sf-brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.sf-brand-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 18px; background: #fff; border: 1px solid #e3e7ee;
  border-radius: 8px; text-decoration: none; color: #1c2430;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sf-brand-card:hover {
  border-color: #0b7285; box-shadow: 0 2px 8px rgba(11, 114, 133, 0.12);
}
.sf-brand-name { font-weight: 600; font-size: 15px; }
.sf-brand-count { font-size: 12.5px; color: #6b7686; }

/* ---- Trust Bar ---- */
.sf-trust {
  background: #fff; border-top: 1px solid #e3e7ee;
  padding: 32px 24px;
}
.sf-trust-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.sf-trust-item {
  display: flex; flex-direction: column; gap: 4px; text-align: center;
}
.sf-trust-icon { font-size: 28px; }
.sf-trust-item strong { font-size: 14px; }
.sf-trust-item span:last-child { font-size: 13px; color: #6b7686; }

/* ---- Product Table ---- */
.sf-product-table-wrap {
  overflow-x: auto; border: 1px solid #e3e7ee; border-radius: 8px;
  background: #fff;
}
.sf-product-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.sf-product-table th {
  padding: 10px 14px; text-align: left; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: #6b7686; background: #fafbfd; border-bottom: 1px solid #e3e7ee;
}
.sf-product-table td {
  padding: 10px 14px; border-bottom: 1px solid #f0f2f5;
  vertical-align: top;
}
.sf-product-table tr:last-child td { border-bottom: 0; }
.sf-product-table td.r { text-align: right; }

.sf-model-code {
  font-family: "SF Mono", "Consolas", "Monaco", monospace;
  font-size: 13px; font-weight: 600;
}
.sf-product-name { font-weight: 500; }
.sf-compat { font-size: 12px; color: #6b7686; margin-top: 3px; }
.sf-price { font-weight: 700; font-size: 15px; }
.sf-stock {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 10px; margin-left: 6px;
}
.sf-stock.in { background: #e1f4e8; color: #14633a; }
.sf-stock.out { background: #fff0d6; color: #8a5a00; }

.sf-empty, .sf-search-prompt {
  padding: 32px; text-align: center; color: #6b7686;
}
.sf-empty a { color: #0b7285; }

.sf-flash {
  max-width: 1200px; margin: 0 auto; padding: 8px 24px;
  background: #e8f3f6; border-bottom: 1px solid #b9dbe3;
  font-size: 14px; color: #0b7285;
}

/* ---- Footer ---- */
.sf-footer {
  background: #1a2332; color: #8899aa; padding: 32px 24px 16px;
  margin-top: 40px; font-size: 13.5px;
}
.sf-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}
.sf-footer strong { color: #ccd6e0; display: block; margin-bottom: 8px; }
.sf-footer a { color: #8899aa; text-decoration: none; }
.sf-footer a:hover { color: #fff; }
.sf-footer-bottom {
  max-width: 1200px; margin: 24px auto 0; padding-top: 16px;
  border-top: 1px solid #2a3648; text-align: center; font-size: 12px;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .sf-header-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .sf-search { max-width: none; }
  .sf-nav-right { justify-content: center; }
  .sf-hero h1 { font-size: 24px; }
  .sf-hero p { font-size: 15px; }
  .sf-brand-grid { grid-template-columns: repeat(2, 1fr); }
  .sf-trust-inner { grid-template-columns: repeat(2, 1fr); }
  .sf-brands-inner { gap: 0; }
  .sf-brands a { padding: 10px 12px; font-size: 12.5px; }
}