/* ============================================================
   eezglobal / ASC365 JJS - Graphite & Vermilion theme
   Distinct from the ASC365CA blue and ASC365JJS graphite systems.
   ============================================================ */

:root {
  --ink: #12233d;
  --ink-2: #1b3151;
  --ink-3: #2b4466;
  --accent: #e08a00;
  --accent-dark: #b06c00;
  --accent-soft: #fdf0d9;
  --paper: #f1f4f9;
  --card: #ffffff;
  --line: #d9e1eb;
  --line-soft: #e7edf5;
  --muted: #5e6b7c;
  --gold: #c08a1e;
  --radius: 6px;
  --container: 1260px;
  --shadow: 0 10px 30px rgba(18, 35, 61, .08);
  --serif: "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body.los,
body.los-page {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.los a,
.los-page a { color: var(--ink); text-decoration: none; }
.los a:hover,
.los-page a:hover { color: var(--accent); }

img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 10px; }
ul { margin: 0; padding: 0; }

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

/* ---------------- Header ---------------- */
.los-topbar {
  background: #0a1526;
  color: #93a1b4;
  font-size: 12px;
  letter-spacing: .02em;
}
.los-topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 7px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.los-topbar-left { display: flex; align-items: center; gap: 8px; }
.los-topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.los-topbar a { color: #c3ccd8; }
.los-topbar a:hover { color: #fff; }
.los-topbar-links { display: flex; gap: 18px; white-space: nowrap; }

.los-masthead { background: var(--ink); border-bottom: 1px solid rgba(255,255,255,.06); }
.los-masthead-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.los-logo {
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.los-logo img { display: block; height: 38px; width: auto; }

.los-search { flex: 1 1 auto; display: flex; min-width: 0; }
.los-search form {
  display: flex;
  width: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.los-search input[type="text"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--ink);
  outline: none;
  background: #fff;
  font-family: var(--sans);
}
.los-search select {
  border: 0;
  border-left: 1px solid var(--line);
  background: #eef3fa;
  color: var(--muted);
  padding: 0 12px;
  font-size: 13px;
  max-width: 190px;
  outline: none;
  font-family: var(--sans);
}
.los-search button {
  border: 0;
  background: var(--accent);
  color: #fff;
  padding: 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: var(--sans);
}
.los-search button:hover { background: var(--accent-dark); }

.los-head-actions { display: flex; gap: 22px; flex: 0 0 auto; }
a.los-head-action { color: #cfd8e4; display: flex; align-items: center; gap: 8px; font-size: 12.5px; line-height: 1.25; }
a.los-head-action:hover { color: #fff; }
a.los-head-action svg { width: 20px; height: 20px; stroke: #cfd8e4; fill: none; stroke-width: 1.6; }
a.los-head-action:hover svg { stroke: #fff; }
.los-head-action b { display: block; font-weight: 600; }

.los-navbar { background: var(--ink-2); }
.los-nav {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  overflow-x: auto;
}
.los-nav li { list-style: none; }
.los-nav a {
  display: block;
  padding: 13px 16px;
  color: #c2ccd9;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.los-nav a:hover { color: #fff; border-bottom-color: rgba(224,138,0,.6); }
.los-nav a.is-active { color: #fff; border-bottom-color: var(--accent); }
.los-nav-note { margin-left: auto; color: #8b96a5; font-size: 12px; white-space: nowrap; }

/* ---------------- Page shell ---------------- */
.los-page-wrap { padding: 26px 0 46px; }
.los-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 28px; align-items: start; }
.los-main { min-width: 0; }

.los-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.los-breadcrumb a { color: var(--muted); }
.los-breadcrumb a:hover { color: var(--accent); }
.los-breadcrumb .sep { color: #a7b2c0; }
.los-breadcrumb .current { color: var(--ink); font-weight: 600; }

.los-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.los-page-head h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.los-page-head .sub { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.los-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.los-eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }

/* ---------------- Home hero ---------------- */
.los-hero {
  background:
    radial-gradient(900px 320px at 82% -30%, rgba(224,138,0,.30), transparent 62%),
    linear-gradient(120deg, #0a1526 0%, #152945 58%, #2e2410 100%);
  border-radius: 12px;
  padding: 44px 48px;
  color: #fff;
  margin-bottom: 30px;
  position: relative;
  overflow: hidden;
}
.los-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
}
.los-hero h1 {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 14px;
  max-width: 640px;
}
.los-hero h1 em { color: #f2a63c; font-style: italic; }
.los-hero-sub { color: #c4cdd8; max-width: 560px; font-size: 14.5px; }
.los-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; position: relative; z-index: 1; }
.los-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #a3adbb;
  font-size: 12.5px;
}
.los-hero-points span::before { content: "\2022"; color: var(--accent); margin-right: 8px; }

/* ---------------- Buttons ---------------- */
.los-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--sans);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
a.los-btn-primary { background: var(--accent); color: #fff; }
a.los-btn-primary:hover { background: var(--accent-dark); color: #fff; }
a.los-btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
a.los-btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.07); }
a.los-btn-dark { background: var(--ink); color: #fff; }
a.los-btn-dark:hover { background: var(--ink-3); color: #fff; }
a.los-btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
a.los-btn-line:hover { border-color: var(--ink); color: var(--ink); }
.los-btn-sm { height: 34px; padding: 0 14px; font-size: 11.5px; }
.los-btn-block { width: 100%; }

/* ---------------- Category rail ---------------- */
.los-side { position: sticky; top: 18px; }
.los-cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.los-cat-head {
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.los-cat-head span { font-family: var(--sans); font-size: 10px; letter-spacing: .2em; color: #b9bdc4; text-transform: uppercase; }
.los-cat-list { list-style: none; }
.los-cat-list li { list-style: none; border-bottom: 1px solid var(--line-soft); }
.los-cat-list li:last-child { border-bottom: 0; }
.los-cat-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: #3c3e44;
  border-left: 3px solid transparent;
}
.los-cat-list a:hover { background: #e9f1fa; color: var(--accent); border-left-color: var(--accent); }
.los-cat-list a.is-active { background: var(--accent-soft); color: var(--accent-dark); border-left-color: var(--accent); font-weight: 700; }
.los-cat-list .count {
  flex: 0 0 auto;
  min-width: 34px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1px 8px;
}
.los-cat-extra { padding: 14px 18px; background: #eef3fa; border-top: 1px solid var(--line-soft); }
.los-cat-extra a { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--accent); }
.los-cat-extra a span { font-size: 11px; letter-spacing: .12em; }

/* ---------------- Product grid & cards ---------------- */
.los-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.los-toolbar .perpage { display: flex; align-items: center; gap: 6px; }
.los-toolbar .perpage a {
  min-width: 34px;
  text-align: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-weight: 600;
}
.los-toolbar .perpage a:hover { border-color: var(--ink); color: var(--ink); }
.los-toolbar .perpage a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.los-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}
.los-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.los-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #d3cbbd; }
.los-card-media {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.los-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.los-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.los-sku { font-size: 11px; letter-spacing: .08em; color: #9a948a; text-transform: uppercase; }
.los-title {
  font-size: 13px;
  line-height: 1.45;
  color: #2c2d31;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}
.los-card:hover .los-title { color: var(--accent); }
.los-price-row { margin-top: auto; display: flex; align-items: baseline; gap: 6px; padding-top: 8px; border-top: 1px dashed var(--line-soft); }
.los-price { font-size: 18px; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.los-price small { font-size: 11px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.los-was { font-size: 12px; color: #a39d93; text-decoration: line-through; }
.los-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  z-index: 1;
}
.los-badge.is-used { background: var(--ink); }

.los-empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 42px 20px;
  text-align: center;
  color: var(--muted);
}

/* ---------------- Pagination ---------------- */
.los-pager { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 22px; font-size: 13px; }
.los-pager a, .los-pager span.cur, .los-pager span.gap {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
}
.los-pager a:hover { border-color: var(--ink); }
.los-pager span.cur { background: var(--accent); border-color: var(--accent); color: #fff; }
.los-pager span.gap, .los-pager span.disabled { border-color: transparent; background: transparent; color: #a39d93; }

/* ---------------- Detail page ---------------- */
.los-detail { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 34px; align-items: start; }
.los-detail-media {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.los-detail-media img { width: 100%; max-height: 420px; object-fit: contain; display: block; }
.los-detail-info h1 { font-family: var(--serif); font-size: 28px; line-height: 1.25; margin-bottom: 8px; }
.los-detail-sku { color: #9a948a; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.los-detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.los-detail-price .num { font-size: 30px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.los-detail-price .cur { font-size: 13px; color: var(--muted); font-weight: 600; }
.los-detail-price .free { margin-left: auto; font-size: 12px; color: #2f7d52; font-weight: 700; }
.los-spec { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.los-spec td { padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; vertical-align: top; }
.los-spec td:first-child { width: 40%; color: var(--muted); }
.los-spec td:last-child { color: var(--ink); font-weight: 600; }
.los-buybar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.los-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; background: #fff; height: 42px; overflow: hidden; }
.los-qty label { font-size: 11px; letter-spacing: .12em; color: var(--muted); padding: 0 10px; text-transform: uppercase; }
.los-qty input { width: 64px; height: 100%; border: 0; border-left: 1px solid var(--line-soft); text-align: center; font-size: 14px; outline: none; font-family: var(--sans); }
.los-stock { font-size: 12px; font-weight: 700; color: #2f7d52; }
.los-stock.out { color: var(--accent); }
.los-desc {
  margin-top: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 28px;
  overflow: hidden;
}
.los-desc img { max-width: 100%; height: auto; }
.los-section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.los-similar { margin-top: 36px; }
.los-similar-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.los-mini { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.los-mini img { width: 100%; height: 130px; object-fit: contain; display: block; margin-bottom: 8px; }
.los-mini .t { font-size: 12px; line-height: 1.4; color: #3c3e44; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 34px; }
.los-mini:hover { border-color: #d3cbbd; box-shadow: var(--shadow); }
.los-mini:hover .t { color: var(--accent); }

/* ---------------- Forms & account ---------------- */
.los-card-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 20px;
}
.los-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.los-field { display: flex; flex-direction: column; gap: 6px; }
.los-field.full { grid-column: 1 / -1; }
.los-field label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.los-field input[type="text"], .los-field input[type="password"], .los-field input[type="email"], .los-field select, .los-field textarea {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  outline: none;
}
.los-field input:focus, .los-field select:focus, .los-field textarea:focus { border-color: var(--ink); }
.los-field textarea { min-height: 130px; resize: vertical; }
.los-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.los-muted { color: var(--muted); font-size: 12.5px; }
.los-note {
  background: #fdf6e7;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: #6f6152;
  font-size: 12.5px;
}

.los-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.los-table th {
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 11px 12px;
  font-weight: 700;
}
.los-table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.los-table tr:hover td { background: #f4f8fd; }
.los-table .empty td { text-align: center; color: var(--muted); padding: 30px 12px; }
.los-danger { color: var(--accent); font-weight: 600; }
.los-danger:hover { color: var(--accent-dark); }

.los-account-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.los-account-nav a {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.los-account-nav a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- FAQ / content ---------------- */
.los-prose { font-size: 14px; color: #34363b; }
.los-prose h2, .los-prose h3 { font-family: var(--serif); margin: 22px 0 10px; }
.los-prose p { margin-bottom: 12px; }
.los-prose a { color: var(--accent); text-decoration: underline; }
.los-prose img { max-width: 100%; height: auto; }
.los-prose table { max-width: 100%; }
.los-prose table[width] { width: 100% !important; }

/* ---------------- Footer ---------------- */
.los-footer { background: var(--ink); color: #b9bdc4; margin-top: 40px; border-top: 3px solid var(--accent); }
.los-footer-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 20px 30px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 30px;
}
.los-footer-brand img { background: #fff; border-radius: 6px; padding: 8px 12px; height: 44px; width: auto; display: block; margin-bottom: 14px; }
.los-footer p { font-size: 12.5px; color: #8f959d; }
.los-footer h3 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.los-footer ul { list-style: none; }
.los-footer li { margin-bottom: 8px; }
.los-footer li a { color: #a9aeb6; font-size: 12.5px; }
.los-footer li a:hover { color: #fff; }
.los-footer strong { color: #e8e9ec; font-weight: 600; }
.los-footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.los-footer-bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  font-size: 12px;
  color: #7f858d;
}
.los-footer-bottom a { color: #a9aeb6; }
.los-footer-bottom a:hover { color: #fff; }

/* ---------------- Legacy page compatibility ---------------- */
body.los-page {
  width: auto !important;
  margin: 0 !important;
  background: var(--paper) !important;
  text-align: left !important;
}
.los-page > table,
.los-page table[width="1000"],
.los-page table[style*="width:1000px"] {
  width: var(--container) !important;
  max-width: calc(100% - 32px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
}
.los-page table[width="998"],
.los-page table[width="900"],
.los-page form table[width="450"] { width: 100% !important; }
.los-page td, .los-page th { font-family: var(--sans); }
.los-page input[type="text"], .los-page input[type="password"], .los-page select, .los-page textarea {
  font-family: var(--sans);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 10px;
  background: #fff;
}
.los-page input[type="submit"], .los-page input[type="button"] {
  font-family: var(--sans);
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.los-page input[type="submit"]:hover, .los-page input[type="button"]:hover { background: var(--accent-dark); }
.los-page table[bordercolor] { border-color: var(--line) !important; }
.los-page table[height] { height: auto !important; }
.los-page table[bgcolor="#00a0e9"], .los-page td[bgcolor="#00a0e9"] { background: var(--ink) !important; }
.los-page table[bgcolor="#00a0e9"] font { color: #fff !important; }
.los-page td[bgcolor="#FFFFCC"] { background: #f4f8fd !important; }
.los-page font[color="#0033FF"] { color: var(--accent) !important; }
.los-page a font[color="#0033FF"] { color: var(--accent) !important; }
.los-page font[color="#800080"], .los-page font[color="#0000cc"] { color: var(--ink) !important; }
.los-page a[style*="color:#000000"] { color: var(--ink) !important; }
.los-account-main table { max-width: 100%; }
.los-account-main table[width="800"],
.los-account-main table[width="799"],
.los-account-main #main_content { width: 100% !important; }
.los-account-main [style*="width:800px"],
.los-account-main [style*="width:799px"],
.los-account-main [style*="width:600px"] { width: 100% !important; }
.los-account-main table[bordercolor] { border-color: var(--line) !important; }
.los-cart-head { padding: 24px 26px 0; }
.los-cart-head h1 { font-family: var(--serif); font-size: 30px; margin-top: 4px; }
.los-page > table > tbody > tr > td > table[width="900"] {
  width: calc(100% - 52px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Raw supplier descriptions on detail pages */
.los-desc { overflow-wrap: break-word; }
.los-desc table { max-width: 100% !important; table-layout: fixed !important; }
.los-desc table[width] { width: 100% !important; }
.los-desc img { max-width: 100% !important; height: auto !important; }
.los-desc iframe, .los-desc video { max-width: 100%; }

/* ---------------- Responsive ---------------- */
@media (max-width: 1180px) {
  .los-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .los-similar-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .los-footer-main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 980px) {
  .los-masthead-inner { flex-wrap: wrap; gap: 14px; }
  .los-search { order: 3; flex: 1 1 100%; }
  .los-layout { grid-template-columns: 1fr; }
  .los-side { position: static; }
  .los-hero { padding: 34px 30px; }
  .los-hero h1 { font-size: 36px; }
  .los-detail { grid-template-columns: 1fr; }
  .los-similar-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .los-nav-note { display: none; }
}

@media (max-width: 720px) {
  .los-topbar-inner { flex-direction: column; align-items: flex-start; gap: 4px; }
  .los-topbar-links { gap: 14px; }
  .los-masthead-inner { padding: 14px 16px; }
  .los-logo img { height: 30px; }
  .los-head-actions { margin-left: auto; gap: 14px; }
  .los-search select { display: none; }
  .los-nav a { padding: 11px 12px; font-size: 11.5px; }
  .los-wrap, .los-topbar-inner, .los-masthead-inner, .los-nav { padding-left: 14px; padding-right: 14px; }
  .los-hero { padding: 26px 20px; border-radius: 10px; }
  .los-hero h1 { font-size: 28px; }
  .los-hero-sub { font-size: 13px; }
  .los-hero-ctas .los-btn { flex: 1 1 auto; }
  .los-page-wrap { padding-top: 18px; padding-bottom: 34px; }
  .los-page-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .los-page-head h1 { font-size: 24px; }
  .los-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .los-card-body { padding: 10px 10px 12px; }
  .los-title { font-size: 12.5px; min-height: 36px; }
  .los-price { font-size: 16px; }
  .los-similar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .los-form-grid { grid-template-columns: 1fr; }
  .los-card-box { padding: 18px 16px; }
  .los-desc { padding: 18px 14px; }
  .los-detail-media { padding: 14px; }
  .los-detail-info h1 { font-size: 22px; }
  .los-detail-price .num { font-size: 24px; }
  .los-footer-main { grid-template-columns: 1fr; padding: 28px 16px; }
  .los-footer-bottom-inner { padding: 12px 16px; }
  .los-table th, .los-table td { padding: 8px 8px; }

  /* Legacy table pages (cart, register, account) */
  .los-page table { max-width: 100% !important; }
  .los-page table[width] { width: 100% !important; }
  .los-page td[width], .los-page th[width] { width: auto !important; }
  .los-page td[height], .los-page tr[height] { height: auto !important; }
  .los-page table img { max-width: 100% !important; height: auto !important; }
  .los-page .los-footer img { max-width: none !important; width: auto !important; height: 44px !important; }
  .los-page input[type="text"], .los-page input[type="password"] { max-width: 100% !important; }
  .los-auth > table > tbody > tr,
  .los-auth > table > tr,
  .los-register > table > tbody > tr,
  .los-register > table > tr { display: block; }
  .los-auth > table > tbody > tr > td,
  .los-auth > table > tr > td,
  .los-register > table > tbody > tr > td,
  .los-register > table > tr > td { display: block; width: 100% !important; }
  .los-cart-head { padding: 18px 14px 0; }
  .los-cart-head h1 { font-size: 24px; }
  .los-page table[rules="rows"] > tbody > tr > td { display: block; width: 100% !important; text-align: center; }
  .los-page table[rules="rows"] th { display: block; width: auto !important; text-align: left !important; }
}

@media (max-width: 480px) {
  .los-topbar-inner { font-size: 11px; }
  .los-topbar-links { gap: 12px; }
  .los-head-actions { gap: 10px; }
  .los-search button { padding: 0 14px; font-size: 12px; }
  .los-nav { padding-left: 8px !important; padding-right: 8px !important; }
  .los-nav a { padding: 10px 9px; font-size: 10.5px; }
  .los-hero { padding: 22px 16px; }
  .los-hero h1 { font-size: 23px; }
  .los-hero-sub { font-size: 12.5px; }
  .los-hero-ctas { flex-direction: column; }
  .los-hero-ctas .los-btn { width: 100%; flex: 0 0 auto; }
  .los-hero-points { font-size: 11.5px; gap: 8px 16px; }
  .los-page-head h1 { font-size: 22px; }
  .los-grid { gap: 8px; }
  .los-card-body { padding: 8px; }
  .los-title { font-size: 12px; }
  .los-price { font-size: 15px; }
  .los-detail-info h1 { font-size: 20px; }
  .los-section-title { font-size: 18px; }
  .los-desc { padding: 14px 12px; }
  .los-footer-main { padding: 24px 14px; }
  .los-footer-bottom-inner { flex-direction: column; gap: 4px; text-align: center; }
}

/* ---------------- INTBUYING legacy accent overrides ---------------- */
.los-page table[bgcolor="#C3DAF9"], .los-page td[bgcolor="#C3DAF9"],
.los-page table[bgcolor="#c3daf9"], .los-page td[bgcolor="#c3daf9"] { background: var(--ink) !important; }
.los-page td[bgcolor="#C3DAF9"] font, .los-page td[bgcolor="#c3daf9"] font { color: #fff !important; }
.los-page td[bgcolor="#F1F1F1"], .los-page td[bgcolor="#f1f1f1"] { background: var(--paper) !important; }
.los-page font[color="#800000"] { color: #c3ccd8 !important; }
.los-page .STYLE1 { color: var(--accent) !important; }

/* ---------------- Account / auth / cart / article shells ---------------- */
.los-account { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; align-items: start; padding: 6px 0 44px; }
.los-account-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; display: flex; flex-direction: column; gap: 2px; position: sticky; top: 16px; }
.los-account-nav a { display: block; padding: 10px 14px; border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.los-account-nav a:hover { background: var(--accent-soft); text-decoration: none; }
.los-account-nav a.is-active { background: var(--ink); color: #fff; }
.los-account-main { min-width: 0; }
.los-account-main > div, .los-account-main > table { max-width: 100%; }

.los-auth { max-width: 860px; margin: 0 auto; padding: 6px 0 44px; }
.los-auth > table { width: 100% !important; background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 14px 28px 28px; }
.los-auth table { max-width: 100%; }
.los-auth > table > tbody > tr { display: block; }
.los-auth > table > tbody > tr > td { display: block; width: 100% !important; }
.los-auth form { display: block; margin-top: 12px; }
.los-auth form table[width] { width: 100% !important; }
.los-auth td[height], .los-auth tr[height], .los-register td[height], .los-register tr[height] { height: auto !important; }
.los-register { max-width: 1140px; margin: 0 auto; padding: 6px 0 44px; }
.los-register > table { width: 100% !important; background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius); padding: 14px 28px 28px; }
.los-register > table > tbody > tr > td[width] { width: 50% !important; padding: 8px 18px; vertical-align: top; }
.los-register > table > tbody > tr > td table[width] { width: 100% !important; }
.los-register table { max-width: 100%; }
.los-page td[style*="signin.jpg"] { background-image: none !important; }
.los-page img[src*="signin.jpg"] { display: none !important; }

.los-cart { max-width: 1240px; margin: 0 auto; }
.los-cart > div { max-width: 100% !important; width: auto !important; margin-left: 0 !important; }
.los-page [style*="width:920px"], .los-page [style*="width:800px"] { max-width: 100% !important; }
.los-page table[rules="rows"] { border: 1px solid var(--line) !important; border-radius: 8px; }
.los-page table[rules="rows"] > tbody > tr > td,
.los-page table[rules="rows"] > tr > td { border-bottom: 1px dashed var(--line-soft); }

.los-article { align-items: start; }
.los-article-body { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 30px; min-width: 0; overflow-wrap: break-word; }
.los-article-body table { max-width: 100% !important; }
.los-article-body img { max-width: 100% !important; height: auto !important; }
.los-article .los-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.los-article .los-side ul { list-style: none; margin: 0; padding: 0; }
.los-article .los-side li { list-style: none; }
.los-article .los-side li a { display: block; padding: 9px 2px; border-bottom: 1px dashed var(--line-soft); font-size: 13.5px; font-weight: 600; color: var(--ink); height: auto !important; line-height: 1.4 !important; white-space: normal !important; }
.los-article .los-side li a font { color: var(--ink) !important; font-family: var(--sans) !important; }
.los-article .los-side li:last-child a { border-bottom: 0; }
.los-auth td[style*="url("], .los-register td[style*="url("] { background-image: none !important; }
.los-auth img[src*="regedit"], .los-register img[src*="regedit"] { display: none !important; }
.los-auth td[height="29"][colspan="2"], .los-register td[height="29"][colspan="2"] {
  background: var(--ink) !important;
  text-align: center; color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; padding: 8px 0;
}
.los-auth td[height="29"][colspan="2"]::before, .los-register td[height="29"][colspan="2"]::before { content: "Create an Account"; }
.los-auth td[height="28"][colspan="2"][style*="signin"] {
  background: var(--ink) !important;
  text-align: center; color: #fff; font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
}
.los-auth td[height="28"][colspan="2"][style*="signin"]::before { content: "Sign In"; }
.los-cart table[rules="rows"] { margin-top: 10px; }
.los-cart table[rules="rows"] > tbody > tr > td { padding: 8px 10px; }

.los-account-wide { grid-column: 1 / -1; }
.los-market-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.los-market-links a { font-weight: 600; border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; background: #fff; color: var(--ink); }
.los-market-links a:hover { border-color: var(--ink); text-decoration: none; }
.los-page .STYLE11 { color: var(--accent) !important; }
.los-page font[color="#000099"] { color: var(--ink) !important; }
.los-page div[style*="height:500px"] { height: auto !important; padding: 30px 0 10px; }
.los-article .los-side div, .los-article .los-side ul { width: auto !important; }

@media (max-width: 980px) {
  .los-account { grid-template-columns: 1fr; gap: 16px; }
  .los-account-nav { position: static; flex-direction: row; overflow-x: auto; padding: 6px; }
  .los-account-nav a { white-space: nowrap; }
  .los-article { display: block; }
  .los-article .los-side { margin-bottom: 16px; }
  .los-article .los-side div, .los-article .los-side ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .los-article .los-side li { height: auto !important; }
  .los-article .los-side li a { border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px !important; font-size: 12px; line-height: 1.2 !important; background: var(--paper); }
}
@media (max-width: 720px) {
  .los-auth > table, .los-register > table { padding: 10px 14px 18px; }
  .los-article-body { padding: 18px 14px; }
  .los-cart table img { height: auto; }
  .los-cat-list { max-height: 320px; overflow-y: auto; }
  .los-account-main #main_content td,
  .los-account-main #main_content th { display: block; width: 100% !important; text-align: left !important; }
}
