:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #eef1f4;
  --ink: #1f242b;
  --text: #2f3742;
  --muted: #6c7786;
  --line: #d9dee5;
  --brand: #b51f24;
  --brand-dark: #8d171b;
  --accent: #0f766e;
  --warning: #b7791f;
  --shadow: 0 12px 34px rgba(23, 31, 43, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.45;
}
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px clamp(14px, 4vw, 48px);
  background: var(--ink);
  color: #f8fafc;
  font-size: 13px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(14px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-topbar { grid-template-columns: auto auto; justify-content: space-between; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  width: auto;
  height: 38px;
  max-width: 170px;
  object-fit: contain;
  background: transparent;
  border: 0;
  border-radius: 4px;
}
.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 18px; letter-spacing: 0; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2.2vw, 30px);
  font-weight: 700;
  font-size: 14px;
}
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 9px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover { color: var(--brand); border-color: var(--brand); }
.top-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; white-space: nowrap; }

.primary-button, .secondary-button, .ghost-button, .ghost-link, .icon-button, .searchbar button, .category-list button, .tabbar button, .row-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 9px 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
}
.primary-button, .searchbar button { background: var(--brand); color: #fff; }
.primary-button:hover, .searchbar button:hover { background: var(--brand-dark); }
.secondary-button { background: var(--accent); color: #fff; }
.secondary-button:hover { background: #0b5d56; }
.ghost-button, .ghost-link, .category-list button, .tabbar button, .row-button {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.ghost-button:hover, .ghost-link:hover, .category-list button:hover, .tabbar button:hover, .row-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.icon-button { width: 38px; padding: 0; background: #fff; color: var(--ink); border-color: var(--line); }
.full-width { width: 100%; }

input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
input:focus { outline: 2px solid rgba(181, 31, 36, 0.16); border-color: var(--brand); }
label { display: grid; gap: 6px; }
label span { color: var(--muted); font-size: 13px; font-weight: 700; }

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 430px);
  gap: clamp(18px, 4vw, 42px);
  align-items: center;
  min-height: 520px;
  margin: 0;
  padding: clamp(34px, 6vw, 72px) clamp(14px, 4vw, 48px);
  background: var(--ink);
  color: #fff;
  border-bottom: 4px solid var(--brand);
}
.hero-copy { max-width: 780px; }
.eyebrow {
  margin-bottom: 10px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
}
.hero-copy p {
  max-width: 690px;
  margin: 18px 0 0;
  color: #d7dde6;
  font-size: 17px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin-top: 28px;
}
.hero-stats div {
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.06);
}
.hero-stats strong { display: block; color: #fff; font-size: 26px; }
.hero-stats span { display: block; color: #c5cdd7; font-size: 13px; margin-top: 4px; }
.hero-search-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-search-card .panel-title { color: var(--ink); font-size: 22px; margin: 0; }

.service-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 0 clamp(14px, 4vw, 48px);
  background: var(--line);
}
.service-band article {
  display: grid;
  gap: 5px;
  min-height: 110px;
  padding: 22px;
  background: #fff;
}
.service-band strong { color: var(--ink); font-size: 18px; }
.service-band span { color: var(--muted); }

.searchbar { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 8px; min-width: min(420px, 100%); }
.store-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 330px;
  gap: 18px;
  padding: 22px clamp(14px, 4vw, 48px) 42px;
  scroll-margin-top: 86px;
}
.filter-panel, .catalog-panel, .cart-panel, .login-panel, .table-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.filter-panel, .cart-panel { padding: 16px; align-self: start; }
.cart-panel { position: sticky; top: 96px; }
.catalog-panel { padding: 18px; min-width: 0; }
.panel-title, .table-title { margin-bottom: 12px; color: var(--ink); font-weight: 800; }
.category-list { display: grid; gap: 8px; }
.category-list button { justify-content: flex-start; width: 100%; text-align: left; }
.category-list button.active { border-color: var(--brand); color: var(--brand); background: #fff6f6; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.catalog-head { align-items: center; flex-wrap: wrap; }
.section-head h1 { margin: 0; color: var(--ink); font-size: clamp(25px, 3vw, 36px); }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.dense-head h1 { font-size: 28px; }
.notice {
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #f0d38a;
  border-radius: 6px;
  background: #fff7db;
  color: #60440b;
}
.notice.success { border-color: #9bd5c5; background: #e9fbf5; color: #0f513f; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 15px; }
.product-card {
  display: grid;
  grid-template-rows: 158px auto;
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.product-card:hover { transform: translateY(-2px); border-color: #c7cdd5; box-shadow: 0 10px 26px rgba(23, 31, 43, 0.11); }
.product-media { display: grid; place-items: center; background: var(--surface-soft); min-height: 158px; }
.product-media img { width: 100%; height: 158px; object-fit: contain; padding: 11px; }
.product-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0;
}
.product-body { padding: 13px; display: grid; gap: 8px; }
.product-name { min-height: 44px; color: var(--ink); font-weight: 800; overflow-wrap: anywhere; }
.product-code { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.product-tags { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.product-tags span {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}
.product-price { color: var(--brand); font-size: 18px; font-weight: 800; }
.cart-list { display: grid; gap: 10px; min-height: 72px; }
.cart-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; }
.cart-item strong { overflow-wrap: anywhere; }
.cart-item small { color: var(--muted); }
.qty-actions { display: inline-flex; gap: 4px; align-items: center; }
.qty-actions button { width: 30px; height: 30px; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
.cart-summary { display: flex; justify-content: space-between; margin: 14px 0; padding-top: 12px; border-top: 1px solid var(--line); }
.cart-summary strong { color: var(--brand); font-size: 20px; }
.checkout-form, .auth-box { display: grid; gap: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.account-dialog, .order-dialog {
  width: min(960px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
}
.account-dialog { width: min(560px, calc(100vw - 24px)); }
.account-dialog::backdrop, .order-dialog::backdrop { background: rgba(15, 23, 42, .45); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.auth-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; padding: 18px; }
.auth-box h2 { margin: 0 0 4px; color: var(--ink); font-size: 20px; }
.auth-reset-box { grid-column: 1 / -1; width: 100%; }
.auth-grid[hidden], .auth-box[hidden], .account-profile-view[hidden] { display: none !important; }
.otp-request-row { display: flex; }
.otp-request-row button { width: 100%; min-height: 42px; }
.otp-panel { display: grid; gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }
.otp-panel[hidden] { display: none !important; }
.otp-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.otp-code-row input { width: 100%; min-width: 0; }
.otp-code-row button { min-width: 112px; }
.auth-status { min-height: 18px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-status.success { color: #08785f; }
.auth-status.error { color: #b42318; }
.auth-link-button {
  width: fit-content;
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-link-button:hover { text-decoration: underline; }
.auth-back-button { justify-self: center; margin-top: 2px; }
.auth-switch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.auth-switch span { color: var(--muted); font-size: 14px; }
.auth-switch-button { min-width: 140px; }
.auth-box button:disabled { cursor: not-allowed; opacity: .55; }
.order-dialog-body { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 14px; padding: 16px; }
.order-list { display: grid; align-content: start; gap: 8px; max-height: 65vh; overflow: auto; }
.order-card { width: 100%; display: grid; gap: 4px; text-align: left; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.order-card:hover, .order-card.active { border-color: var(--accent); }
.order-card strong, .order-detail strong { overflow-wrap: anywhere; }
.order-detail { min-height: 220px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0 14px; }
.order-items { display: grid; gap: 8px; }
.order-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }

.admin-shell { padding: 18px clamp(14px, 4vw, 48px) 34px; }
.login-panel { width: min(460px, 100%); margin: 40px auto; padding: 22px; }
.login-panel h1 { margin: 0 0 16px; color: var(--ink); font-size: 26px; }
.compact-auth { max-width: 360px; }
.admin-dashboard { display: grid; gap: 14px; }
.tabbar { display: flex; flex-wrap: wrap; gap: 8px; }
.tabbar button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.table-panel { padding: 16px; }
.responsive-table { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 13px; font-weight: 700; }
.status-pill { display: inline-flex; padding: 4px 8px; border-radius: 999px; background: var(--surface-soft); color: var(--text); font-size: 12px; }
.status-pill.pending, .status-pill.pendingPayment { background: #fff7db; color: var(--warning); }
.status-pill.cancelled { background: #fee2e2; color: var(--brand); }
.status-pill.completed, .status-pill.processing { background: #e9fbf5; color: var(--accent); }
.admin-order-body { grid-template-columns: 1fr; }
.row-input { min-height: 34px; min-width: 160px; padding: 6px 8px; font-size: 13px; }

.admin-cart-panel { display: grid; gap: 10px; }
.admin-cart-search-row { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-cart-search-row .row-input { flex: 1; min-width: 220px; }
.admin-cart-results { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; }
.admin-cart-result-item {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.admin-cart-result-item:hover { border-color: var(--brand); }
.admin-cart-result-item strong { color: var(--ink); font-size: 13px; }
.admin-cart-result-item span { color: var(--muted); font-size: 12px; }
.admin-cart-search-state,
.admin-cart-search-empty {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.admin-cart-search-state span {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border: 2px solid #d6dbe0;
  border-top-color: #f04b18;
  border-radius: 50%;
  animation: admin-datatable-spin .7s linear infinite;
}
.admin-cart-selected-card {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--surface-soft);
}
.admin-cart-selected-card strong { color: var(--ink); }
.admin-cart-selected-card span { color: var(--muted); font-size: 12px; }
.admin-credit-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.admin-credit-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.admin-credit-row span { color: var(--muted); }
.admin-credit-row strong { color: var(--ink); font-weight: 800; }
.admin-credit-remaining { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 2px; }
.admin-credit-remaining strong { color: var(--brand); font-size: 15px; }
.admin-cart-address-select { width: 100%; min-width: 0; }
.admin-cart-address-form { display: grid; gap: 8px; margin-top: 10px; }
.admin-cart-address-actions { display: flex; justify-content: flex-end; gap: 8px; }
.admin-cart-qty { display: inline-flex; align-items: center; gap: 6px; }
.admin-cart-qty button {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.admin-cart-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.admin-cart-thumb-fallback,
#cartTableRows img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: contain;
  background: var(--surface-soft);
}
.admin-cart-thumb-fallback {
  display: grid;
  place-items: center;
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}
.admin-cart-breakdown { display: grid; gap: 6px; margin: 14px 0; padding: 12px 14px; border-top: 1px solid var(--line); }
body[data-page="admin"] #cartCheckoutBtn {
  width: min(280px, calc(100% - 32px));
  min-height: 46px;
  display: flex;
  margin: 20px auto 30px;
}
body[data-page="admin"] #cartCheckoutMessage:not([hidden]) {
  margin: -12px 16px 24px;
}
.admin-member-erp-cell {
  min-width: 360px;
}
.admin-member-erp-cell > .row-input {
  width: 100%;
}
.admin-member-erp-summary {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #dfe4e8;
  border-radius: 7px;
  background: #f8fafb;
  line-height: 1.45;
}
.admin-member-erp-summary > span {
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}
.admin-member-erp-summary.connected > span {
  background: #e5f7ed;
  color: #147446;
}
.admin-member-erp-summary.pending > span {
  background: #fff4d8;
  color: #946000;
}
.admin-member-erp-summary strong,
.admin-member-erp-summary small {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 7px;
  color: #4f5964;
  font-size: 11px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.admin-member-erp-summary b {
  color: #7a838e;
  font-size: 10px;
  font-weight: 800;
}
.admin-member-erp-feedback {
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid #dfe4e8;
  border-radius: 7px;
  background: #f8fafb;
  color: #56616c;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}
.admin-member-erp-feedback.loading {
  border-color: #cdd9e7;
  background: #f1f6fb;
  color: #46647f;
}
.admin-member-erp-feedback.success {
  border-color: #b9dfc9;
  background: #edf9f2;
  color: #147446;
}
.admin-member-erp-feedback.error {
  border-color: #f0c9c9;
  background: #fff1f1;
  color: #a52c32;
}
.admin-cart-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.admin-cart-catalog-toolbar .admin-cart-search-row { flex-wrap: nowrap; }
.admin-cart-sort {
  min-width: 190px;
  display: grid;
  gap: 5px;
}
.admin-cart-sort span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.admin-cart-sort select { width: 100%; }
.admin-cart-catalog-filters {
  display: flex;
  align-items: end;
  gap: 8px;
}
.admin-cart-catalog-meta {
  color: var(--muted);
  font-size: 12px;
}
.admin-cart-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.admin-cart-product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e4e8;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(22, 29, 38, 0.05);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.admin-cart-product-card:hover {
  border-color: #f04b18;
  box-shadow: 0 10px 24px rgba(22, 29, 38, 0.1);
  transform: translateY(-2px);
}
.admin-cart-product-media {
  height: 150px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid #edf0f3;
  background: #f7f8fa;
}
.admin-cart-product-media img {
  width: 100%;
  height: 100%;
  padding: 12px;
  object-fit: contain;
}
.admin-cart-product-fallback {
  max-width: 90%;
  color: #f04b18;
  font-size: 18px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.admin-cart-product-body {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 13px;
}
.admin-cart-product-code {
  color: #7a838e;
  font-size: 11px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.admin-cart-product-body h3 {
  min-height: 40px;
  margin: 0;
  color: #171a1e;
  font-size: 14px;
  line-height: 1.45;
}
.admin-cart-product-stock {
  color: #6d7680;
  font-size: 11px;
}
.admin-cart-product-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #edf0f3;
}
.admin-cart-product-footer > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.admin-cart-product-footer strong {
  color: #f04b18;
  font-size: 16px;
}
.admin-cart-product-footer small {
  color: #168455;
  font-size: 10px;
  font-weight: 700;
}
.admin-cart-product-footer button { flex: 0 0 auto; }
.admin-cart-catalog-state,
.admin-cart-catalog-empty {
  grid-column: 1 / -1;
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 24px;
  border: 1px dashed #d8dde2;
  border-radius: 9px;
  color: var(--muted);
  text-align: center;
}
.admin-cart-catalog-state span {
  width: 16px;
  height: 16px;
  border: 2px solid #d6dbe0;
  border-top-color: #f04b18;
  border-radius: 50%;
  animation: admin-datatable-spin .7s linear infinite;
}
.admin-cart-catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 6px;
}
.admin-cart-catalog-pagination button {
  min-width: 34px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  background: #fff;
  color: #4b535c;
  font: inherit;
  cursor: pointer;
}
.admin-cart-catalog-pagination button:hover,
.admin-cart-catalog-pagination button.active {
  border-color: #f04b18;
  background: #f04b18;
  color: #fff;
}
.admin-cart-catalog-pagination button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 1180px) {
  .store-shell { grid-template-columns: 205px minmax(0, 1fr); }
  .cart-panel { grid-column: 1 / -1; position: static; }
  .hero-section { grid-template-columns: 1fr; }
  .hero-search-card { max-width: 680px; }
}
@media (max-width: 900px) {
  .site-topline { display: none; }
  .topbar { grid-template-columns: 1fr; align-items: stretch; }
  .admin-topbar { grid-template-columns: 1fr; }
  .main-nav { justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .top-actions { justify-content: space-between; }
  .hero-section { min-height: 0; padding-top: 34px; }
  .hero-stats, .service-band { grid-template-columns: 1fr; }
  .store-shell { grid-template-columns: 1fr; }
  .section-head { align-items: stretch; flex-direction: column; }
  .catalog-head { align-items: stretch; }
  .searchbar { min-width: 0; }
  .auth-grid, .order-dialog-body { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-copy h1 { font-size: 34px; }
  .hero-actions { display: grid; }
  .hero-stats div { min-height: auto; }
  .product-grid { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
}
.company-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(28px, 5vw, 56px) clamp(14px, 4vw, 48px);
  background: #fff;
  border-top: 1px solid var(--line);
}
.company-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.14;
}
.company-section p {
  margin: 16px 0 0;
  color: var(--muted);
  max-width: 720px;
}
.company-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.company-points article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}
.company-points strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 18px;
}
.company-points span { color: var(--muted); }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(14px, 4vw, 48px);
  background: var(--ink);
  color: #f8fafc;
}
.site-footer div { display: grid; gap: 3px; }
.site-footer span { color: #cbd5e1; font-size: 13px; }
.site-footer nav { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.site-footer a { color: #f8fafc; text-decoration: none; }
.site-footer a:hover { color: #ffb4b6; }
/* Company/footer responsive */
@media (max-width: 900px) {
  .company-section,
  .company-points {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
  }
}
.sync-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.sync-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.sync-card strong,
.sync-card span,
.sync-card small,
.sync-card code,
td code {
  overflow-wrap: anywhere;
}
.sync-card code,
td code {
  color: var(--muted);
  font-family: Consolas, Monaco, monospace;
  font-size: 12px;
  white-space: normal;
}
.status-pill.success { background: #e9fbf5; color: var(--accent); }
.status-pill.error { background: #fee2e2; color: var(--brand); }
.status-pill.running { background: #dbeafe; color: #1d4ed8; }

/* Storefront redesign 2026-07 */
body[data-page="store"] {
  background: #f2f4f7;
}
body[data-page="store"] .site-topline {
  background: #111820;
  border-bottom: 3px solid #c32026;
}
body[data-page="store"] .topbar {
  grid-template-columns: auto minmax(320px, 1fr) auto;
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 5px 18px rgba(18, 24, 32, 0.08);
}
body[data-page="store"] .brand img {
  width: 50px;
  height: 50px;
  border-color: #eef0f3;
}
body[data-page="store"] .brand strong {
  font-size: 21px;
}
body[data-page="store"] .main-nav a {
  text-transform: none;
}
body[data-page="store"] .hero-section {
  position: relative;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  min-height: 500px;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(17, 24, 32, 0.98), rgba(17, 24, 32, 0.9) 54%, rgba(195, 32, 38, 0.9)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 1px, transparent 1px 18px);
  border-bottom: 0;
}
body[data-page="store"] .hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 5px;
  background: linear-gradient(90deg, #c32026, #f15b2a, #1f2933);
}
body[data-page="store"] .hero-copy {
  position: relative;
  z-index: 1;
}
body[data-page="store"] .hero-copy h1 {
  max-width: 680px;
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: 0;
}
body[data-page="store"] .hero-copy p {
  max-width: 680px;
  color: #e6ebf1;
  font-size: 18px;
}
body[data-page="store"] .hero-actions .primary-button,
body[data-page="store"] .hero-actions .secondary-button {
  min-width: 138px;
}
.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 340px;
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}
.hero-logo-mark {
  width: min(220px, 70%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}
.hero-logo-mark img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}
.part-lines {
  display: grid;
  gap: 8px;
  max-width: 360px;
}
.part-lines span {
  display: block;
  padding: 10px 12px;
  border-left: 4px solid #f15b2a;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
}
.quick-finder {
  padding: 0 clamp(14px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.finder-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  transform: translateY(-28px);
  margin-bottom: -12px;
  padding: 16px;
  background: #fff;
  border: 1px solid #d7dce3;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(17, 24, 32, 0.13);
}
.finder-form .primary-button {
  min-height: 42px;
  padding-inline: 22px;
}
body[data-page="store"] .service-band {
  padding-top: 22px;
  background: #d8dde4;
}
body[data-page="store"] .service-band article {
  min-height: 94px;
  border-top: 3px solid transparent;
}
body[data-page="store"] .service-band article:hover {
  border-top-color: #c32026;
}
body[data-page="store"] .store-shell {
  grid-template-columns: 240px minmax(0, 1fr) 340px;
  gap: 16px;
  padding-top: 28px;
}
body[data-page="store"] .filter-panel,
body[data-page="store"] .catalog-panel,
body[data-page="store"] .cart-panel {
  box-shadow: 0 10px 28px rgba(17, 24, 32, 0.08);
}
body[data-page="store"] .catalog-panel {
  padding: 16px;
}
body[data-page="store"] .section-head h1 {
  font-size: clamp(26px, 3vw, 38px);
}
body[data-page="store"] .searchbar {
  grid-template-columns: minmax(230px, 1fr) auto;
}
body[data-page="store"] .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 14px;
}
body[data-page="store"] .product-card {
  grid-template-rows: 150px auto;
  border-radius: 7px;
}
body[data-page="store"] .product-media {
  min-height: 150px;
  background: linear-gradient(180deg, #f8fafc, #edf1f5);
}
body[data-page="store"] .product-media img {
  height: 150px;
}
body[data-page="store"] .product-body {
  gap: 9px;
  padding: 14px;
}
body[data-page="store"] .product-name {
  min-height: 48px;
  line-height: 1.28;
}
.product-meta-line {
  display: grid;
  gap: 3px;
  color: #6c7786;
  font-size: 12px;
}
body[data-page="store"] .product-price {
  font-size: 20px;
}
body[data-page="store"] .company-section {
  border-top: 4px solid #c32026;
}
body[data-page="store"] .company-points article {
  background: #f8fafc;
}
body[data-page="store"] .site-footer {
  border-top: 4px solid #c32026;
}

@media (max-width: 1180px) {
  body[data-page="store"] .store-shell { grid-template-columns: 220px minmax(0, 1fr); }
  body[data-page="store"] .cart-panel { grid-column: 1 / -1; position: static; }
  .finder-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder-form .primary-button { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  body[data-page="store"] .topbar { grid-template-columns: 1fr; }
  body[data-page="store"] .hero-section { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { min-height: 230px; }
  .hero-logo-mark { width: 160px; }
  .finder-form { transform: none; margin: 0; border-radius: 0; border-inline: 0; box-shadow: none; }
  body[data-page="store"] .service-band { padding-top: 0; }
  body[data-page="store"] .store-shell { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body[data-page="store"] .hero-copy h1 { font-size: 38px; }
  .finder-form { grid-template-columns: 1fr; padding: 14px 0; }
  body[data-page="store"] .product-grid { grid-template-columns: 1fr; }
}

/* CJ dark landing redesign 2026-07 */
:root {
  --cj-orange: #f15a24;
  --cj-orange-deep: #b83713;
  --cj-black: #020202;
  --cj-panel: #151515;
  --cj-panel-soft: #202020;
  --cj-text-soft: #b9b9b9;
}
body[data-page="store"] {
  background: var(--cj-black);
  color: #f7f7f7;
}
body[data-page="store"] .site-topline.cj-overlay-line {
  position: absolute;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  min-height: 30px;
  padding: 7px clamp(16px, 5vw, 58px);
  background: rgba(0, 0, 0, 0.62);
  border: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}
body[data-page="store"] .topbar.cj-transparent-nav {
  position: absolute;
  inset: 30px 0 auto;
  z-index: 41;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 14px clamp(16px, 5vw, 58px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0));
  border: 0;
  box-shadow: none;
}
body[data-page="store"] .cj-transparent-nav .brand img {
  width: auto;
  height: 44px;
  max-width: 200px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  object-fit: contain;
}
body[data-page="store"] .cj-transparent-nav .brand strong,
body[data-page="store"] .cj-transparent-nav .brand small,
body[data-page="store"] .cj-transparent-nav .main-nav a {
  color: #fff;
}
body[data-page="store"] .cj-transparent-nav .main-nav {
  justify-content: flex-end;
  gap: 20px;
}
body[data-page="store"] .cj-transparent-nav .main-nav a {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.9;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
body[data-page="store"] .cj-transparent-nav .main-nav a:hover {
  color: var(--cj-orange);
}
body[data-page="store"] .cj-transparent-nav .ghost-button {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
}
body[data-page="store"] .hero-section.cj-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 690px;
  padding: 145px clamp(20px, 6vw, 86px) 92px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.18) 52%, #000 98%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.04) 62%),
    url("images/bg_navbar.png") center / cover no-repeat;
  border: 0;
}
body[data-page="store"] .cj-hero-copy {
  width: min(1120px, 100%);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
body[data-page="store"] .cj-hero-copy .eyebrow {
  color: var(--cj-orange);
  letter-spacing: 0;
  font-weight: 900;
}
body[data-page="store"] .cj-hero-copy h1 {
  max-width: 720px;
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.05;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.6);
}
body[data-page="store"] .cj-hero-copy p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}
body[data-page="store"] .primary-button,
body[data-page="store"] .secondary-button {
  border-radius: 2px;
  font-weight: 900;
}
body[data-page="store"] .primary-button {
  background: var(--cj-orange);
  color: #fff;
  border-color: var(--cj-orange);
}
body[data-page="store"] .secondary-button {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
}
.cj-company-dark {
  display: grid;
  gap: 72px;
  padding: 82px clamp(20px, 6vw, 84px) 92px;
  background: #000;
  color: #fff;
}
.cj-company-row {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 80px);
  align-items: center;
}
.cj-company-row.reverse {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
}
.cj-company-row.reverse .company-photo {
  order: 2;
}
.company-photo {
  min-height: 250px;
  aspect-ratio: 4 / 3;
  background: #111 center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.company-photo-1 { background-image: url("images/CJB_3.webp"); }
.company-photo-2 { background-image: url("images/CJB_1.webp"); }
.company-photo-3 { background-image: url("images/CJB_2.webp"); }
.cj-company-row h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.24;
}
.cj-company-row p {
  margin: 0 0 20px;
  color: var(--cj-text-soft);
  line-height: 1.85;
}
.cj-company-row ul {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
}
.cj-company-row li {
  list-style: none;
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--cj-orange);
  font-weight: 800;
}
.cj-company-row li .li-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  object-fit: contain;
}
.section-title-line {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-bottom: 30px;
  text-align: center;
}
.section-title-line span {
  width: 80px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.section-title-line h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(22px, 3vw, 32px);
}
.section-title-line.light {
  color: #fff;
}
.cj-innovation {
  padding: 72px clamp(16px, 5vw, 70px) 84px;
  background: var(--cj-orange);
  color: #1b100b;
}
.robot-main,
.robot-grid {
  width: min(1160px, 100%);
  margin-inline: auto;
}
.robot-main img {
  width: 100%;
  max-height: 410px;
  display: block;
  object-fit: cover;
  border: 0;
}
.robot-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.robot-grid figure {
  margin: 0;
  color: #1b100b;
  font-size: 11px;
  font-weight: 900;
}
.robot-grid img {
  width: 100%;
  height: 132px;
  display: block;
  object-fit: cover;
  background: #111;
}
.robot-grid figcaption {
  margin-top: 7px;
}
.cj-product-band {
  padding: 76px clamp(18px, 5vw, 76px) 88px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.78)),
    url("images/bg_product.webp") center / cover no-repeat;
}
body[data-page="store"] .finder-form.cj-finder-form {
  width: min(1120px, 100%);
  margin: 0 auto;
  transform: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr)) auto;
  gap: 12px;
  padding: 18px;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: none;
}
body[data-page="store"] .finder-form label span {
  color: rgba(255, 255, 255, 0.72);
}
body[data-page="store"] input,
body[data-page="store"] textarea,
body[data-page="store"] select {
  border-radius: 2px;
}
body[data-page="store"] .store-shell.cj-store-shell {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) 320px;
  gap: 18px;
  padding: 54px clamp(18px, 5vw, 72px) 76px;
  background: #000;
  color: #fff;
}
body[data-page="store"] .filter-panel.cj-filter-panel,
body[data-page="store"] .catalog-panel.cj-catalog-panel,
body[data-page="store"] .cart-panel.cj-cart-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: var(--cj-panel);
  color: #fff;
  box-shadow: none;
}
body[data-page="store"] .catalog-panel.cj-catalog-panel {
  padding: 0;
  border: 0;
  background: transparent;
}
body[data-page="store"] .catalog-head {
  margin-bottom: 16px;
  padding: 0;
}
body[data-page="store"] .catalog-head h1,
body[data-page="store"] .panel-title {
  color: #fff;
}
body[data-page="store"] #catalogMeta,
body[data-page="store"] .small-title {
  color: var(--cj-text-soft);
}
body[data-page="store"] .side-searchbar {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
body[data-page="store"] .side-searchbar button,
body[data-page="store"] .contact-form button {
  min-height: 40px;
  border: 0;
  border-radius: 2px;
  background: var(--cj-orange);
  color: #fff;
  font-weight: 900;
}
body[data-page="store"] .category-list button {
  background: #242424;
  border-color: #2f2f2f;
  color: #fff;
}
body[data-page="store"] .category-list button.active,
body[data-page="store"] .category-list button:hover {
  border-color: var(--cj-orange);
  color: var(--cj-orange);
}
.mini-product-list {
  display: grid;
  gap: 10px;
}
.mini-product {
  width: 100%;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border: 1px solid #282828;
  border-radius: 2px;
  background: #0c0c0c;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.mini-product img,
.mini-product div {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: #fff;
  color: var(--cj-orange);
  font-size: 14px;
  font-weight: 900;
}
.mini-product span {
  min-width: 0;
  overflow: hidden;
  color: #eee;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}
body[data-page="store"] .product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
body[data-page="store"] .product-card {
  grid-template-rows: 220px auto;
  overflow: hidden;
  border: 0;
  border-radius: 2px;
  background: #111;
  color: #fff;
  box-shadow: none;
}
body[data-page="store"] .product-media {
  min-height: 220px;
  background: #f4f4f4;
}
body[data-page="store"] .product-media img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
body[data-page="store"] .product-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--cj-orange);
  font-size: 44px;
  font-weight: 900;
}
body[data-page="store"] .product-body {
  gap: 8px;
  padding: 12px 0 0;
  background: #050505;
}
body[data-page="store"] .product-name,
body[data-page="store"] .product-code,
body[data-page="store"] .product-tags,
body[data-page="store"] .product-meta-line,
body[data-page="store"] .product-price,
body[data-page="store"] .product-body .primary-button {
  margin-inline: 10px;
}
body[data-page="store"] .product-name {
  min-height: 44px;
  color: #fff;
  font-size: 14px;
  line-height: 1.35;
}
body[data-page="store"] .product-code,
body[data-page="store"] .product-meta-line {
  color: #a8a8a8;
  font-size: 11px;
}
body[data-page="store"] .product-tags span {
  border-color: #333;
  background: #161616;
  color: #d6d6d6;
}
body[data-page="store"] .product-price {
  color: var(--cj-orange);
  font-size: 16px;
  text-align: right;
}
body[data-page="store"] .product-body .primary-button {
  margin-bottom: 12px;
  min-height: 38px;
}
body[data-page="store"] .cart-panel {
  position: sticky;
  top: 18px;
}
body[data-page="store"] .cart-item,
body[data-page="store"] .notice {
  border-color: #2d2d2d;
  background: #0f0f0f;
  color: #fff;
}
body[data-page="store"] .cart-summary {
  border-color: #333;
  color: #fff;
}
.cj-news-section {
  padding: 82px clamp(18px, 5vw, 72px) 88px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), #000 92%),
    url("images/bg_newAric.webp") center / cover no-repeat;
  color: #fff;
}
.news-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.news-grid article {
  min-height: 275px;
  background: #1b1b1b;
  color: #fff;
}
.news-grid article div {
  height: 140px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.22)),
    url("images/bg_article.webp") center / cover no-repeat;
}
.news-grid h3 {
  margin: 14px 14px 16px;
  color: #fff;
  font-size: 15px;
  line-height: 1.5;
}
.news-grid a {
  margin-inline: 14px;
  color: var(--cj-orange);
  font-weight: 900;
}
.cj-export-section {
  padding: 78px clamp(18px, 5vw, 72px) 86px;
  background: var(--cj-orange);
  color: #1b100b;
  text-align: center;
}
.cj-export-section p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(0, 0, 0, 0.64);
}
.cj-export-section .export-map-card {
  width: min(980px, 100%);
  margin: 36px auto 0;
}
.cj-export-section .export-map-card img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3));
}
.cj-contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 1.2fr);
  gap: 44px;
  align-items: center;
  padding: 78px clamp(18px, 5vw, 72px) 90px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.92)),
    url("images/bg_footer.webp") center / cover no-repeat;
}
.cj-contact-section h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
}
.cj-contact-section p {
  color: var(--cj-text-soft);
}
.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-form textarea {
  grid-column: 1 / -1;
  min-height: 130px;
  resize: vertical;
}
.contact-form button {
  grid-column: 1 / -1;
  width: min(240px, 100%);
  justify-self: center;
  background: #000;
}
body[data-page="store"] .site-footer.cj-footer {
  border-top: 1px solid rgba(241, 90, 36, 0.35);
  background: linear-gradient(180deg, #000, #1d0700);
  color: #fff;
}
body[data-page="store"] .cj-footer a,
body[data-page="store"] .cj-footer span {
  color: rgba(255, 255, 255, 0.66);
}
body[data-page="store"] .account-dialog {
  background: #151515;
  color: #fff;
  border-color: #343434;
}
body[data-page="store"] .auth-box {
  background: #0d0d0d;
  border-color: #2b2b2b;
}
body[data-page="store"] .auth-box h2,
body[data-page="store"] .dialog-head strong {
  color: #fff;
}
body[data-page="store"] .otp-panel { border-color: #343434; background: #111; }
body[data-page="store"] .auth-status { color: rgba(255, 255, 255, 0.66); }
body[data-page="store"] .auth-status.success { color: #75d7ba; }
body[data-page="store"] .auth-status.error { color: #ff8c82; }
@media (max-width: 1180px) {
  body[data-page="store"] .store-shell.cj-store-shell {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  body[data-page="store"] .cart-panel.cj-cart-panel {
    grid-column: 1 / -1;
    position: static;
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 920px) {
  body[data-page="store"] .site-topline.cj-overlay-line {
    display: none;
  }
  body[data-page="store"] .topbar.cj-transparent-nav {
    inset: 0 0 auto;
    grid-template-columns: 1fr;
    background: rgba(0, 0, 0, 0.82);
  }
  body[data-page="store"] .cj-transparent-nav .main-nav,
  body[data-page="store"] .top-actions {
    justify-content: flex-start;
  }
  body[data-page="store"] .hero-section.cj-hero {
    min-height: 560px;
    padding-top: 220px;
  }
  .cj-company-row,
  .cj-company-row.reverse,
  .cj-contact-section {
    grid-template-columns: 1fr;
  }
  .cj-company-row.reverse .company-photo {
    order: 0;
  }
  .robot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  body[data-page="store"] .finder-form.cj-finder-form,
  body[data-page="store"] .store-shell.cj-store-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  body[data-page="store"] .hero-section.cj-hero {
    min-height: 500px;
    padding-top: 250px;
    padding-bottom: 56px;
  }
  body[data-page="store"] .cj-hero-copy h1 {
    font-size: 38px;
  }
  .section-title-line span {
    width: 34px;
  }
  .news-grid,
  .contact-form,
  .robot-grid {
    grid-template-columns: 1fr;
  }
  body[data-page="store"] .product-grid {
    grid-template-columns: 1fr;
  }
}

/* CJ split page layout 2026-07 */
body[data-page="store"] .main-nav a.active {
  color: var(--cj-orange);
  border-color: var(--cj-orange);
}
.cj-page-hero {
  min-height: 470px;
  display: flex;
  align-items: flex-end;
  padding: 150px clamp(20px, 6vw, 86px) 72px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), #000 94%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12)),
    url("images/bg_navbar.png") center / cover no-repeat;
}
.cj-page-hero > div {
  width: min(1120px, 100%);
  margin: 0 auto;
}
.cj-page-hero .eyebrow {
  color: var(--cj-orange);
  font-weight: 900;
}
.cj-page-hero h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
}
.cj-page-hero p {
  max-width: 650px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}
.cj-products-hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.26), #000 94%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18)),
    url("images/bg_product.webp") center / cover no-repeat;
}
.cj-news-hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), #000 94%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18)),
    url("images/bg_newAric.webp") center / cover no-repeat;
}
.cj-contact-hero {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), #000 94%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18)),
    url("images/bg_footer.webp") center / cover no-repeat;
}
.cj-home-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  padding: 72px clamp(18px, 5vw, 72px) 86px;
  background: #000;
  color: #fff;
}
.cj-home-links article {
  min-height: 240px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #151515;
}
.cj-home-links span {
  color: var(--cj-orange);
  font-weight: 900;
}
.cj-home-links h2 {
  margin: 18px 0 10px;
  color: #fff;
  font-size: 28px;
}
.cj-home-links p {
  color: var(--cj-text-soft);
  min-height: 50px;
}
.cj-home-links a {
  color: var(--cj-orange);
  font-weight: 900;
  text-decoration: none;
}
.news-grid-large {
  grid-template-columns: repeat(4, 1fr);
}
.contact-lines {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: var(--cj-orange);
  font-weight: 800;
}
.cj-map-section {
  padding: 76px clamp(18px, 5vw, 72px) 88px;
  background: linear-gradient(180deg, #000, #1d0700 64%, var(--cj-orange));
  color: #fff;
}
.cj-map-section iframe {
  width: min(1120px, 100%);
  height: 430px;
  display: block;
  margin: 0 auto;
  border: 0;
  background: #111;
}
@media (max-width: 920px) {
  .cj-page-hero {
    min-height: 420px;
    padding-top: 220px;
  }
  .cj-home-links,
  .news-grid-large {
    grid-template-columns: 1fr;
  }
}

/* CJ product pagination 2026-07 */
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111;
  color: #fff;
}
.pagination-summary {
  color: var(--cj-text-soft);
  font-size: 13px;
}
.sort-control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: min(300px, 100%);
  color: var(--cj-text-soft);
  font-size: 13px;
}
.sort-control select {
  min-height: 38px;
  border: 1px solid #303030;
  background: #050505;
  color: #fff;
}
.pagination-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
.pagination-controls button,
.pagination-controls span {
  min-width: 38px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #303030;
  border-radius: 2px;
  background: #111;
  color: #fff;
  font-weight: 800;
}
.pagination-controls button.active,
.pagination-controls button:hover:not(:disabled) {
  border-color: var(--cj-orange);
  background: var(--cj-orange);
  color: #fff;
}
.pagination-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}
@media (max-width: 700px) {
  .catalog-toolbar,
  .sort-control {
    align-items: stretch;
    flex-direction: column;
  }
}

/* CJ category list sizing 2026-07 */
body[data-page="store"] .category-list {
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}
body[data-page="store"] .category-list::-webkit-scrollbar {
  width: 8px;
}
body[data-page="store"] .category-list::-webkit-scrollbar-thumb {
  background: #3a3a3a;
}

/* CJ product detail dialog 2026-07 */
.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
body[data-page="store"] .product-actions {
  margin: 0 10px 12px;
}
body[data-page="store"] .product-actions .primary-button,
body[data-page="store"] .product-actions .ghost-button {
  min-height: 38px;
  margin: 0;
  padding-inline: 8px;
  font-size: 12px;
}
body[data-page="store"] .product-actions .ghost-button {
  border-color: #333;
  background: #101010;
  color: #fff;
}
.product-detail-dialog {
  width: min(980px, calc(100vw - 24px));
  border: 1px solid #343434;
  border-radius: 2px;
  padding: 0;
  background: #151515;
  color: #fff;
  box-shadow: var(--shadow);
}
.product-detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
}
.product-detail-content {
  padding: 18px;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}
.product-detail-media {
  min-height: 360px;
  display: grid;
  place-items: center;
  background: #fff;
}
.product-detail-media img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}
.product-gallery-main {
  position: relative;
  width: 100%;
  min-height: 360px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-gallery-main > img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
}
.product-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 54px;
  display: grid;
  place-items: center;
  padding: 0 0 5px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.product-gallery-arrow:hover {
  background: #ff5526;
  color: #fff;
}
.product-gallery-arrow.previous { left: 10px; }
.product-gallery-arrow.next { right: 10px; }
.product-gallery-counter {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.product-detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.product-detail-thumbs button {
  min-width: 0;
  padding: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
}
.product-detail-thumbs button:hover,
.product-detail-thumbs button.active {
  border-color: #ff5526;
}
.product-detail-thumbs img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: #fff;
}
.product-detail-info h2 {
  margin: 8px 0 10px;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.25;
}
.product-detail-info p {
  color: var(--cj-text-soft);
}
.product-detail-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
}
.product-detail-fields div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #2d2d2d;
  background: #0f0f0f;
}
.product-detail-fields span {
  color: var(--cj-text-soft);
  font-size: 12px;
}
.product-detail-fields strong {
  overflow-wrap: anywhere;
  color: #fff;
}
.product-detail-price {
  margin-bottom: 14px;
  color: var(--cj-orange);
  font-size: 26px;
  font-weight: 900;
}
@media (max-width: 760px) {
  .product-actions,
  .product-detail-layout,
  .product-detail-fields {
    grid-template-columns: 1fr;
  }
  .product-detail-media {
    min-height: 240px;
  }
  .product-gallery-main {
    min-height: 240px;
  }
  .product-gallery-arrow {
    width: 38px;
    height: 46px;
    font-size: 34px;
  }
}
/* CJ product fallback polish 2026-07 */
body[data-page="store"] .product-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(135deg, var(--cj-orange) 0 23%, transparent 23%),
    #fff;
  color: #111;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  overflow: hidden;
}
body[data-page="store"] .product-fallback strong {
  color: var(--cj-orange);
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.88;
  letter-spacing: 0;
}
body[data-page="store"] .product-fallback span {
  color: #3a3a3a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}
body[data-page="store"] .product-fallback small {
  max-width: 100%;
  color: #777;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.product-detail-media .product-fallback {
  min-height: 360px;
}
@media (max-width: 760px) {
  .product-detail-media .product-fallback {
    min-height: 240px;
  }
}
/* CJ product segment filters 2026-07 */
.product-segment-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 18px;
}
.product-segment-tabs button {
  min-height: 48px;
  padding: 0 26px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 4px;
  background: #050505;
  color: #fff;
  font-weight: 900;
}
.product-segment-tabs button.active,
.product-segment-tabs button:hover {
  border-color: var(--cj-orange);
  background: rgba(248, 79, 34, 0.08);
  color: var(--cj-orange);
}
@media (max-width: 760px) {
  .product-segment-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }
  .product-segment-tabs button {
    width: 100%;
  }
}
/* CJ sidebar finder and cart polish 2026-07 */
body[data-page="store"] .product-quick-search {
  grid-template-columns: minmax(0, 1fr) 46px;
  margin-bottom: 24px;
}
body[data-page="store"] .product-quick-search input {
  min-height: 48px;
  border: 0;
  background: #fff;
  color: #111;
}
body[data-page="store"] .product-quick-search button {
  min-height: 48px;
  border: 0;
  background: #fff;
  color: #000;
  font-size: 20px;
}
.sidebar-product-finder {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
  padding: 18px;
  border: 1px solid #444;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
}
.sidebar-product-finder .panel-title {
  margin: 0;
  text-align: center;
}
.sidebar-product-finder label {
  display: grid;
  gap: 8px;
}
.sidebar-product-finder label span {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}
.sidebar-product-finder input {
  min-height: 46px;
  border: 0;
  background: #fff;
  color: #111;
}
.vehicle-combobox {
  position: relative;
  min-width: 0;
}
.vehicle-combobox-input {
  width: 100%;
  padding-right: 42px !important;
}
body[data-page="store"] .vehicle-combobox-trigger {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 8px 8px 0;
  background: var(--cj-orange);
  color: #fff;
  cursor: pointer;
  line-height: 1;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.08);
}
body[data-page="store"] .vehicle-combobox-trigger svg {
  display: block;
  width: 19px;
  height: 19px;
  pointer-events: none;
}
body[data-page="store"] .vehicle-combobox-trigger:hover,
body[data-page="store"] .vehicle-combobox-trigger:focus-visible {
  background: #df4318;
  color: #fff;
}
body[data-page="store"] .vehicle-combobox-trigger:focus-visible {
  outline: 3px solid rgba(255, 85, 38, 0.25);
  outline-offset: 2px;
}
.vehicle-combobox-menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid #d8dce2;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.24);
}
.vehicle-combobox-menu[hidden] {
  display: none;
}
.vehicle-combobox-option {
  display: block;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #17191d;
  cursor: pointer;
  font: inherit;
  line-height: 1.35;
  text-align: left;
}
.vehicle-combobox-option:hover,
.vehicle-combobox-option.active,
.vehicle-combobox-option[aria-selected="true"] {
  background: #fff0ea;
  color: #b9380d;
}
.vehicle-combobox-status {
  padding: 12px 10px;
  color: #6f7782;
  font-size: 13px;
  text-align: center;
}
.product-detail-buy {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}
.product-detail-buy label {
  display: grid;
  gap: 6px;
}
.product-detail-buy span {
  color: var(--cj-text-soft);
  font-size: 12px;
  font-weight: 800;
}
.product-detail-buy input {
  min-height: 44px;
  border: 1px solid #333;
  background: #050505;
  color: #fff;
}
body[data-page="store"] .cart-list {
  gap: 12px;
}
body[data-page="store"] .cart-item {
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  gap: 10px;
  align-items: start;
  padding: 10px;
}
.cart-item-media img,
.cart-thumb-fallback {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  object-fit: contain;
  background: #fff;
  color: var(--cj-orange);
  font-size: 16px;
  font-weight: 900;
}
.cart-item-info {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cart-item-info strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.35;
}
.cart-item-info small {
  color: #aaa;
  overflow-wrap: anywhere;
}
.cart-line-price {
  color: var(--cj-orange);
  font-weight: 900;
}
body[data-page="store"] .qty-actions {
  display: inline-grid;
  grid-template-columns: 30px minmax(30px, auto) 30px;
  gap: 4px;
  align-items: center;
  justify-content: start;
}
body[data-page="store"] .qty-actions .cart-quantity-input {
  width: 64px;
  min-height: 30px;
  height: 30px;
  padding: 2px 4px;
  border: 1px solid #555;
  border-radius: 2px;
  background: #050505;
  color: #fff;
  text-align: center;
  font-weight: 800;
  appearance: textfield;
  -moz-appearance: textfield;
}
.cart-quantity-input::-webkit-inner-spin-button,
.cart-quantity-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
body[data-page="store"] .qty-actions .cart-quantity-input:focus { outline: 2px solid var(--cj-orange); outline-offset: 2px; }
body[data-page="store"] .qty-actions span {
  min-width: 30px;
  text-align: center;
  color: #fff;
  font-weight: 800;
}
body[data-page="store"] .qty-actions button,
.cart-remove {
  width: 30px;
  height: 30px;
  border: 1px solid #333;
  border-radius: 2px;
  background: #050505;
  color: #fff;
  font-weight: 900;
}
.cart-remove {
  width: 28px;
  height: 28px;
  color: #bbb;
}
.cart-remove:hover,
body[data-page="store"] .qty-actions button:hover {
  border-color: var(--cj-orange);
  color: var(--cj-orange);
}
.checkout-message {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #5b2b1d;
  background: #1a0e0a;
  color: #ffb09a;
  font-size: 13px;
}
.checkout-message.success {
  border-color: rgba(37, 211, 102, 0.35);
  background: rgba(37, 211, 102, 0.08);
  color: #9cf2be;
}
@media (max-width: 760px) {
  .product-detail-buy {
    grid-template-columns: 1fr;
  }
}

/* CJ header cart and dedicated cart page 2026-07 */
.cart-nav-button {
  position: relative;
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  background: rgba(0, 0, 0, 0.16);
}
.cart-nav-button svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cart-nav-button:hover,
.cart-nav-button.active {
  border-color: var(--cj-orange);
  color: var(--cj-orange);
}
.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e02626;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
body[data-page="store"] .store-shell.cj-store-shell.catalog-only-shell {
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 28px;
}
body[data-page="store"] .catalog-only-shell .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
}
.cart-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 54px clamp(18px, 5vw, 72px) 78px;
  background: #000;
  color: #fff;
}
.cart-page-panel {
  position: static !important;
  padding: 24px !important;
}
.cart-page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.cart-page-head h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 4vw, 44px);
}
.cart-page-list {
  min-height: 180px;
}
.cart-page-panel .cart-item {
  grid-template-columns: 82px minmax(0, 1fr) 34px;
  padding: 14px;
}
.cart-page-panel .cart-item-media img,
.cart-page-panel .cart-thumb-fallback {
  width: 82px;
  height: 82px;
}
.cart-page-summary {
  margin-top: 20px;
  padding-top: 18px;
  font-size: 18px;
}
.cart-page-summary strong {
  font-size: clamp(24px, 3vw, 34px);
}
.cart-checkout-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #333;
}
.cart-checkout-form h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
}
.cart-help-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  background: #151515;
  color: #fff;
}
.cart-help-panel strong {
  font-size: 20px;
}
.cart-help-panel span {
  color: var(--cj-text-soft);
}
@media (max-width: 1180px) {
  body[data-page="store"] .store-shell.cj-store-shell.catalog-only-shell,
  .cart-page-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 920px) {
  .cart-nav-button {
    width: 42px;
    height: 42px;
  }
  .cart-page-head {
    align-items: stretch;
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .cart-page-shell {
    padding-inline: 14px;
  }
  .cart-page-panel .cart-item {
    grid-template-columns: 68px minmax(0, 1fr) 30px;
  }
  .cart-page-panel .cart-item-media img,
  .cart-page-panel .cart-thumb-fallback {
    width: 68px;
    height: 68px;
  }
}
/* CJ cart page compact correction 2026-07 */
body.cart-page {
  background: #000;
}
body.cart-page .site-topline.cj-overlay-line {
  position: static;
  inset: auto;
  min-height: 30px;
  background: #050505;
  border-bottom: 0;
}
body.cart-page .topbar.cj-transparent-nav {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 41;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid rgba(241, 90, 36, 0.28);
  backdrop-filter: blur(10px);
}
body.cart-page main {
  background: #000;
}
body.cart-page .cart-page-shell {
  grid-template-columns: minmax(0, 1fr);
  width: min(1480px, calc(100% - clamp(28px, 7vw, 104px)));
  margin: 0 auto;
  padding: 42px 0 78px;
}
body.cart-page .cart-page-panel {
  width: 100%;
  min-width: 0;
}
body.cart-page .cart-page-head {
  padding-bottom: 18px;
  border-bottom: 1px solid #2d2d2d;
}
body.cart-page .cart-page-list {
  gap: 14px;
  margin-top: 18px;
}
body.cart-page .cart-page-panel .cart-item {
  position: relative;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 126px;
  padding: 16px 52px 16px 16px;
}
body.cart-page .cart-page-panel .cart-item-media img,
body.cart-page .cart-page-panel .cart-thumb-fallback {
  width: 96px;
  height: 96px;
}
body.cart-page .cart-page-panel .cart-item-info {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 24px;
  align-items: center;
}
body.cart-page .cart-page-panel .cart-item-info strong {
  grid-column: 1;
  min-height: auto;
  color: #fff;
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
body.cart-page .cart-page-panel .cart-item-info small {
  grid-column: 1;
  color: #9b9b9b;
  font-size: 13px;
}
body.cart-page .cart-page-panel .cart-line-price {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  color: var(--cj-orange);
  font-size: 18px;
  white-space: nowrap;
}
body.cart-page .cart-page-panel .qty-actions {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
}
body.cart-page .cart-page-panel .cart-remove {
  position: absolute;
  top: 14px;
  right: 14px;
}
body.cart-page .cart-page-summary {
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
}
body.cart-page .cart-checkout-form {
  gap: 12px;
}
body.cart-page .cart-checkout-form input {
  border-radius: 2px;
}
body.cart-page .cart-checkout-form .primary-button {
  min-height: 48px;
  border-radius: 2px;
  background: var(--cj-orange);
}
@media (max-width: 820px) {
  body.cart-page .cart-page-shell {
    width: calc(100% - 28px);
    padding-top: 28px;
  }
  body.cart-page .cart-page-panel .cart-item {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 14px 44px 14px 14px;
  }
  body.cart-page .cart-page-panel .cart-item-media img,
  body.cart-page .cart-page-panel .cart-thumb-fallback {
    width: 76px;
    height: 76px;
  }
  body.cart-page .cart-page-panel .cart-item-info {
    grid-template-columns: 1fr;
  }
  body.cart-page .cart-page-panel .cart-line-price,
  body.cart-page .cart-page-panel .qty-actions {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}
@media (max-width: 520px) {
  body.cart-page .cart-page-panel {
    padding: 16px !important;
  }
  body.cart-page .cart-page-panel .cart-item {
    grid-template-columns: 1fr;
    padding-right: 44px;
  }
  body.cart-page .cart-page-panel .cart-item-media img,
  body.cart-page .cart-page-panel .cart-thumb-fallback {
    width: 100%;
    height: 150px;
  }
}
/* CJ products page compact correction 2026-07 */
body.products-page {
  background: #000;
}

body.products-page .site-topline.cj-overlay-line {
  position: static;
  inset: auto;
  min-height: 30px;
  background: #050505;
  border-bottom: 0;
}

body.products-page .topbar.cj-transparent-nav {
  position: sticky;
  inset: auto;
  top: 0;
  z-index: 41;
  background: rgba(0, 0, 0, 0.96);
  border-bottom: 1px solid rgba(241, 90, 36, 0.28);
  backdrop-filter: blur(10px);
}

body.products-page main {
  background: #000;
}

body.products-page .store-shell.cj-store-shell.catalog-only-shell {
  padding-top: 40px;
}

@media (max-width: 920px) {
  body.products-page .topbar.cj-transparent-nav {
    position: static;
  }

  body.products-page .store-shell.cj-store-shell.catalog-only-shell {
    padding-top: 28px;
  }
}
/* CJ cart add toast 2026-07 */
.notice.toast-notice {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 140;
  width: min(390px, calc(100vw - 32px));
  min-height: 68px;
  margin: 0;
  padding: 16px 18px 16px 54px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(241, 90, 36, 0.72);
  border-radius: 8px;
  background: linear-gradient(135deg, #151515, #1a0e0a);
  color: #fff;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.48);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  pointer-events: none;
  animation: cjToastIn 0.24s ease forwards;
}

.notice.toast-notice::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--cj-orange);
  box-shadow: inset 0 0 0 6px rgba(0, 0, 0, 0.24);
}

.notice.toast-notice.success {
  border-color: rgba(241, 90, 36, 0.84);
  background: linear-gradient(135deg, #151515, #211006);
  color: #fff;
}

.notice.toast-notice.error {
  border-color: rgba(220, 38, 38, 0.8);
  background: linear-gradient(135deg, #1a1010, #2b0909);
  color: #fff;
}

.notice.toast-notice[hidden] {
  display: none !important;
}

@keyframes cjToastIn {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/* CJ cart-added toast with checkmark + product preview 2026-07-17 */
.notice.toast-notice.cart-toast {
  align-items: flex-start;
  padding: 14px 18px;
  gap: 12px;
}
.notice.toast-notice.cart-toast::before {
  display: none;
}
.cart-toast-check {
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 2px;
  border-radius: 50%;
  background: #1dbf73;
  color: #fff;
  display: grid;
  place-items: center;
}
.cart-toast-check svg { width: 16px; height: 16px; }
.cart-toast-body { display: grid; gap: 8px; min-width: 0; }
.cart-toast-body strong { font-size: 13px; font-weight: 700; color: #fff; }
.cart-toast-product { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cart-toast-media {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.cart-toast-media img { width: 100%; height: 100%; object-fit: contain; }
.cart-toast-thumb-fallback {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--cj-orange);
  font-size: 11px;
  font-weight: 900;
}
.cart-toast-product span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d9dee5;
  font-size: 12px;
}

@media (max-width: 640px) {
  .notice.toast-notice {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
  }
}
/* CJ home full 333 style 2026-07 */
body.home-page {
  background: #000;
}

body.home-page .cj-home-hero {
  min-height: 760px;
  align-items: center;
  justify-content: center;
  padding-bottom: 80px;
}

body.home-page .cj-home-hero-copy {
  display: flex;
  justify-content: center;
  text-align: center;
}

.home-brand-kicker {
  display: inline-grid;
  place-items: center;
  gap: 12px;
  width: min(460px, 86vw);
  padding: clamp(16px, 3vw, 28px);
  border: 2px solid rgba(80, 229, 255, 0.48);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cj-orange);
  box-shadow: 0 0 38px rgba(80, 229, 255, 0.35), inset 0 0 42px rgba(241, 90, 36, 0.16);
  transform: perspective(900px) rotateY(-8deg);
}

.home-brand-kicker img {
  width: 100%;
  height: auto;
}

.home-brand-kicker span {
  color: rgba(241, 90, 36, 0.88);
  font-size: clamp(34px, 6vw, 66px);
  font-weight: 900;
  line-height: 1;
}

.company-photo-4 {
  background-image: url("images/CJB_4.webp");
}

.home-section-copy {
  max-width: 760px;
  margin: -12px auto 30px;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.home-top-products-head {
  width: min(1120px, 100%);
  margin: 46px auto 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.home-top-products-head h3 {
  margin: 0;
  color: var(--cj-orange);
  font-size: 22px;
}

.home-top-products-head a {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.home-top-products {
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.home-top-products .mini-product {
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0;
  background: #101010;
  border-color: #242424;
}

.home-top-products .mini-product img,
.home-top-products .mini-product div {
  width: 100%;
  height: 150px;
  font-size: 42px;
}

.home-top-products .mini-product span {
  min-height: 52px;
  padding: 12px;
  font-size: 13px;
}


.home-contact-lines {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  color: var(--cj-orange);
  font-weight: 800;
}

body.home-page .notice.toast-notice {
  text-align: left;
}

@media (max-width: 1180px) {
  .home-top-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.home-page .cj-home-hero {
    min-height: 620px;
  }

  .home-brand-kicker {
    min-width: min(320px, 82vw);
    min-height: min(320px, 82vw);
  }

  .home-top-products,
  .robot-grid,
  .news-grid.news-grid-large {
    grid-template-columns: 1fr;
  }
}

/* CJ modern storefront refresh 2026-07-13 */
body[data-page="store"] {
  --cj-orange: #ff5526;
  --cj-orange-2: #ff7a35;
  --cj-red: #d72b2f;
  --cj-ink: #f7f8fb;
  --cj-muted: #aeb7c4;
  --cj-muted-2: #7f8997;
  --cj-bg: #050607;
  --cj-panel-modern: rgba(18, 18, 18, 0.88);
  --cj-panel-raised: rgba(24, 24, 24, 0.94);
  --cj-line-modern: rgba(255, 255, 255, 0.12);
  --cj-line-strong: rgba(255, 255, 255, 0.2);
  --cj-shadow-modern: 0 22px 70px rgba(0, 0, 0, 0.42);
  background:
    linear-gradient(180deg, #050607 0%, #000 42%, #080302 100%);
  color: var(--cj-ink);
  font-family: "Leelawadee UI", "Noto Sans Thai", Tahoma, Arial, sans-serif;
  text-rendering: geometricPrecision;
}

body[data-page="store"] main {
  background:
    linear-gradient(180deg, rgba(255, 85, 38, 0.035), transparent 320px),
    #000;
}

body[data-page="store"] .site-topline.cj-overlay-line {
  position: static;
  min-height: 30px;
  padding: 7px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #07090d;
  color: #dfe4ec;
  font-size: 12px;
}

body[data-page="store"] .topbar.cj-transparent-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid rgba(255, 85, 38, 0.26);
  background: rgba(5, 7, 10, 0.86);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

body[data-page="store"] .brand {
  min-width: 210px;
  color: #fff;
}

body[data-page="store"] .brand img {
  width: auto;
  height: 44px;
  max-width: 200px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(255, 85, 38, 0.16);
}

body[data-page="store"] .brand strong {
  color: #fff;
  font-size: 22px;
  font-weight: 900;
}

body[data-page="store"] .brand small {
  color: #d7dde8;
}

body[data-page="store"] .main-nav {
  gap: clamp(14px, 2vw, 28px);
  font-size: 14px;
}

body[data-page="store"] .main-nav a {
  position: relative;
  color: #f4f6fb;
  opacity: 0.9;
  border-bottom: 0;
}

body[data-page="store"] .main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 3px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--cj-orange);
  transition: transform 0.18s ease;
}

body[data-page="store"] .main-nav a:hover,
body[data-page="store"] .main-nav a.active {
  color: #fff;
  opacity: 1;
}

body[data-page="store"] .main-nav a:hover::after,
body[data-page="store"] .main-nav a.active::after {
  transform: scaleX(1);
}

body[data-page="store"] .top-actions {
  gap: 10px;
}

body[data-page="store"] .ghost-button,
body[data-page="store"] .ghost-link,
body[data-page="store"] .icon-button {
  min-height: 42px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

body[data-page="store"] .ghost-button:hover,
body[data-page="store"] .ghost-link:hover,
body[data-page="store"] .icon-button:hover {
  border-color: rgba(255, 85, 38, 0.86);
  color: var(--cj-orange);
  background: rgba(255, 85, 38, 0.08);
}

body[data-page="store"] .primary-button,
body[data-page="store"] .secondary-button {
  min-height: 44px;
  border-radius: 8px;
  border-color: transparent;
  background: linear-gradient(180deg, var(--cj-orange-2), var(--cj-orange));
  color: #fff;
  box-shadow: 0 12px 26px rgba(255, 85, 38, 0.22);
}

body[data-page="store"] .primary-button:hover,
body[data-page="store"] .secondary-button:hover {
  background: linear-gradient(180deg, #ff8650, #fa4618);
}

body[data-page="store"] input,
body[data-page="store"] textarea,
body[data-page="store"] select {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
}

body[data-page="store"] input:focus,
body[data-page="store"] textarea:focus,
body[data-page="store"] select:focus {
  outline: 3px solid rgba(255, 85, 38, 0.18);
  border-color: var(--cj-orange);
}

body[data-page="store"] .eyebrow {
  color: var(--cj-orange);
  font-weight: 900;
}

body.home-page .cj-home-hero {
  position: relative;
  min-height: clamp(560px, 74vh, 760px);
  padding: clamp(44px, 7vw, 92px) clamp(18px, 6vw, 88px);
  overflow: hidden;
  background: #000;
}

.cj-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.home-page .cj-home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.86)),
    linear-gradient(180deg, rgba(255, 85, 38, 0.12), rgba(0, 0, 0, 0.92));
}

body.home-page .cj-home-hero .home-hero-panel {
  position: relative;
  z-index: 2;
}

.home-hero-panel {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
}

body.home-page .cj-home-hero-copy {
  justify-content: start;
}

body.home-page .home-brand-kicker {
  width: min(420px, 78vw);
  padding: clamp(14px, 2.4vw, 22px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 0 8px rgba(255, 85, 38, 0.08), 0 28px 80px rgba(0, 0, 0, 0.42);
  transform: none;
}

body.home-page .home-brand-kicker img {
  width: 100%;
  height: auto;
}

body.home-page .home-brand-kicker span {
  font-size: clamp(30px, 5vw, 54px);
}

.home-hero-text {
  max-width: 740px;
}

.home-hero-text h1 {
  margin: 10px 0 14px;
  color: #fff;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  font-weight: 900;
}

.home-hero-text p {
  max-width: 620px;
  margin: 0;
  color: #d9e0ea;
  font-size: clamp(16px, 2vw, 20px);
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cj-company-dark,
.cj-news-section,
.cj-contact-section,
.cj-product-band {
  background: #000;
}

.cj-company-dark {
  padding-block: clamp(54px, 7vw, 96px);
}

.cj-company-row {
  width: min(1120px, calc(100% - 32px));
  gap: clamp(24px, 5vw, 68px);
  margin-bottom: clamp(42px, 7vw, 82px);
}

.cj-company-row .company-photo {
  min-height: 270px;
  border-radius: 8px;
  box-shadow: var(--cj-shadow-modern);
}

.cj-company-row article,
.cj-company-row > div:not(.company-photo) {
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid var(--cj-line-modern);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018));
}

.cj-company-row h2,
.cj-contact-section h2,
.section-title-line h2 {
  color: #fff;
}

.cj-company-row p,
.cj-company-row li,
.cj-contact-section p,
.cj-news-section h3 {
  color: #d6dce6;
}

.cj-innovation {
  padding: clamp(42px, 6vw, 82px) clamp(18px, 5vw, 64px);
  background: linear-gradient(180deg, #ff5b2a, #ed4518);
}

.robot-main,
.robot-grid figure,
.news-grid article {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--cj-shadow-modern);
}

body[data-page="store"] .store-shell.cj-store-shell.catalog-only-shell {
  width: min(1820px, calc(100% - clamp(28px, 5vw, 96px)));
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 36px);
  padding-top: clamp(34px, 5vw, 64px);
}

body[data-page="store"] .filter-panel.cj-filter-panel,
body[data-page="store"] .catalog-panel.cj-catalog-panel,
body.cart-page .cart-page-panel,
.cart-help-panel,
body[data-page="store"] .account-dialog,
body[data-page="store"] .order-dialog,
.product-detail-dialog {
  border: 1px solid var(--cj-line-modern);
  border-radius: 8px;
  background: var(--cj-panel-modern);
  box-shadow: var(--cj-shadow-modern);
}

body[data-page="store"] .filter-panel.cj-filter-panel {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 16px;
}

body[data-page="store"] .product-quick-search {
  gap: 8px;
  margin-bottom: 18px;
}

body[data-page="store"] .product-quick-search input,
body[data-page="store"] .product-quick-search button {
  min-height: 52px;
  border-radius: 8px;
}

.sidebar-product-finder {
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

body[data-page="store"] .category-list button {
  min-height: 48px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

body[data-page="store"] .category-list button.active,
body[data-page="store"] .category-list button:hover {
  border-color: var(--cj-orange);
  background: rgba(255, 85, 38, 0.13);
  color: var(--cj-orange);
}

body[data-page="store"] .catalog-panel.cj-catalog-panel {
  padding: clamp(18px, 2.4vw, 28px);
}

body[data-page="store"] .catalog-head {
  margin-bottom: 18px;
}

body[data-page="store"] .catalog-head h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.05;
}

.product-segment-tabs {
  gap: 10px;
}

.product-segment-tabs button {
  min-height: 46px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
}

.product-segment-tabs button.active,
.product-segment-tabs button:hover {
  border-color: var(--cj-orange);
  background: rgba(255, 85, 38, 0.12);
}

.catalog-toolbar {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

body[data-page="store"] .catalog-only-shell .product-grid,
body[data-page="store"] .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

body[data-page="store"] .product-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

body[data-page="store"] .product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 85, 38, 0.48);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.36);
}

body[data-page="store"] .product-card:focus-visible {
  border-color: #ff5526;
  outline: 3px solid rgba(255, 85, 38, 0.28);
  outline-offset: 3px;
}

body[data-page="store"] .product-card button,
body[data-page="store"] .product-card input {
  cursor: pointer;
}

body[data-page="store"] .product-media {
  aspect-ratio: 1 / 0.78;
  min-height: auto;
  background: #fff;
}

body[data-page="store"] .product-media img {
  width: 100%;
  height: 100%;
  padding: 18px;
  object-fit: contain;
}

body[data-page="store"] .product-body {
  min-height: 280px;
  padding: 16px;
  gap: 10px;
}

body[data-page="store"] .product-name {
  min-height: 54px;
  color: #fff;
  font-size: 16px;
  line-height: 1.35;
}

body[data-page="store"] .product-code {
  color: #d6dde8;
  font-size: 13px;
}

body[data-page="store"] .product-tags {
  gap: 6px;
}

body[data-page="store"] .product-tags span {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

body[data-page="store"] .product-meta-line {
  color: var(--cj-muted);
}

body[data-page="store"] .product-price {
  margin-top: auto;
  color: var(--cj-orange);
  font-size: 20px;
}

body[data-page="store"] .product-actions {
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

body[data-page="store"] .product-actions .ghost-button,
body[data-page="store"] .product-actions .primary-button {
  min-height: 42px;
  border-radius: 8px;
}

body[data-page="store"] .product-fallback {
  background:
    linear-gradient(135deg, var(--cj-orange) 0 24%, transparent 24%),
    #fff;
}

body[data-page="store"] .mini-product-list {
  gap: 10px;
}

body[data-page="store"] .mini-product {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

body[data-page="store"] .mini-product span {
  color: #fff;
}

.pagination-controls button,
.pagination-controls span {
  border-radius: 8px;
}

body.cart-page .cart-page-shell {
  width: min(1380px, calc(100% - clamp(28px, 6vw, 96px)));
  padding-top: clamp(38px, 5vw, 64px);
}

body.cart-page .cart-page-panel {
  padding: clamp(18px, 3vw, 34px) !important;
}

body.cart-page .cart-page-head h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
}

body.cart-page .cart-page-panel .cart-item {
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

body.cart-page .cart-page-panel .cart-item:hover {
  border-color: rgba(255, 85, 38, 0.36);
}

body.cart-page .cart-page-summary {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

body.cart-page .cart-checkout-form {
  display: grid;
  gap: 12px;
}

body.cart-page .cart-checkout-form h2 {
  margin-bottom: 4px;
}

body.cart-page .cart-checkout-form input {
  min-height: 48px;
}

body[data-page="store"] .cart-nav-button {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

body[data-page="store"] .cart-nav-button:hover,
body[data-page="store"] .cart-nav-button.active {
  border-color: var(--cj-orange);
  color: var(--cj-orange);
  background: rgba(255, 85, 38, 0.09);
}

body[data-page="store"] .cart-badge {
  top: -7px;
  right: -7px;
  background: var(--cj-red);
  box-shadow: 0 8px 20px rgba(215, 43, 47, 0.3);
}

body[data-page="store"] .account-dialog,
body[data-page="store"] .order-dialog,
.product-detail-dialog {
  color: #fff;
}

body[data-page="store"] .account-dialog::backdrop,
body[data-page="store"] .order-dialog::backdrop,
.product-detail-dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

body[data-page="store"] .dialog-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
}

body[data-page="store"] .auth-grid {
  gap: 16px;
  padding: 18px;
}

body[data-page="store"] .auth-box {
  padding: 18px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
}

body[data-page="store"] .auth-switch {
  border-top-color: rgba(255, 255, 255, 0.12);
}

body[data-page="store"] .auth-switch span {
  color: var(--cj-text-soft, #aeb7c4);
}

body[data-page="store"] .auth-box h2,
body[data-page="store"] .dialog-head strong {
  color: #fff;
}

body[data-page="store"] .otp-panel {
  border-radius: 8px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.notice.toast-notice {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(30, 30, 30, 0.98), rgba(18, 18, 18, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.cj-page-hero {
  min-height: 360px;
  display: grid;
  align-items: end;
  padding: clamp(58px, 8vw, 104px) clamp(18px, 6vw, 88px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.88)),
    url("images/bg_navbar.png") center / cover;
}

.cj-page-hero > div {
  width: min(960px, 100%);
}

.cj-page-hero h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.04;
}

.cj-page-hero p {
  max-width: 760px;
  color: #d9e0ea;
}

.cj-home-links article,
.news-grid article {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.cj-footer {
  border-top: 1px solid rgba(255, 85, 38, 0.28);
  background: linear-gradient(180deg, #050505, #120501);
}

@media (max-width: 1180px) {
  body[data-page="store"] .topbar.cj-transparent-nav {
    grid-template-columns: 1fr;
  }

  body[data-page="store"] .brand,
  body[data-page="store"] .main-nav,
  body[data-page="store"] .top-actions {
    justify-content: center;
  }

  body[data-page="store"] .store-shell.cj-store-shell.catalog-only-shell {
    grid-template-columns: 1fr;
  }

  body[data-page="store"] .filter-panel.cj-filter-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 900px) {
  .home-hero-panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  body.home-page .cj-home-hero-copy,
  .home-hero-actions {
    justify-content: center;
  }

  .cj-company-row,
  .cj-company-row.reverse,
  .cj-contact-section {
    grid-template-columns: 1fr;
  }

  .cj-company-row.reverse .company-photo {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  body[data-page="store"] .site-topline.cj-overlay-line {
    display: none;
  }

  body[data-page="store"] .topbar.cj-transparent-nav {
    position: static;
    padding: 12px 14px;
  }

  body[data-page="store"] .main-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 4px;
  }

  body[data-page="store"] .top-actions {
    flex-wrap: wrap;
  }

  .home-hero-text h1,
  .cj-page-hero h1,
  body[data-page="store"] .catalog-head h1 {
    font-size: 38px;
  }

  body[data-page="store"] .store-shell.cj-store-shell.catalog-only-shell,
  body.cart-page .cart-page-shell {
    width: calc(100% - 24px);
  }

  body[data-page="store"] .product-actions,
  body[data-page="store"] .auth-grid,
  body.cart-page .cart-page-panel .cart-item-info {
    grid-template-columns: 1fr;
  }

  body[data-page="store"] .catalog-only-shell .product-grid,
  body[data-page="store"] .product-grid,
  .home-top-products,
  .news-grid.news-grid-large {
    grid-template-columns: 1fr;
  }

  .catalog-toolbar,
  .sort-control {
    align-items: stretch;
  }
}

/* CJ premium interaction layer 2026-07-13b */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0s);
  }
  .reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }

  /* The product shell can be taller than ten viewports. Never hide the whole
     catalog while waiting for an intersection ratio that it cannot reach. */
  body.products-page #products.reveal {
    opacity: 1;
    transform: none;
  }
}

body[data-page="store"] .eyebrow,
.cj-page-hero .eyebrow {
  position: relative;
  padding-left: 20px;
}
body[data-page="store"] .eyebrow::before,
.cj-page-hero .eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--cj-orange, #ff5526);
  animation: cjPulseDot 2.2s ease-in-out infinite;
}
@keyframes cjPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(255, 85, 38, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(255, 85, 38, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 85, 38, 0); }
}

body[data-page="store"] .product-media {
  overflow: hidden;
}
body[data-page="store"] .product-media img {
  transition: transform 0.45s ease;
}
body[data-page="store"] .product-card:hover .product-media img {
  transform: scale(1.06);
}

body[data-page="store"] .primary-button,
body[data-page="store"] .secondary-button,
body[data-page="store"] .ghost-button,
body[data-page="store"] .ghost-link,
.cart-nav-button,
.pagination-controls button,
.product-segment-tabs button {
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
body[data-page="store"] .primary-button:active,
body[data-page="store"] .secondary-button:active,
body[data-page="store"] .ghost-button:active,
body[data-page="store"] .ghost-link:active,
.cart-nav-button:active,
.pagination-controls button:active {
  transform: scale(0.96);
}

.cart-badge.pop {
  animation: cjBadgePop 0.32s ease;
}
@keyframes cjBadgePop {
  0% { transform: scale(1); }
  45% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.skeleton-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}
.skeleton-media,
.skeleton-line {
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.05) 30%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0.05) 70%);
  background-size: 200% 100%;
  animation: cjShimmer 1.4s ease-in-out infinite;
}
.skeleton-media {
  aspect-ratio: 1 / 0.78;
}
.skeleton-line {
  height: 12px;
  margin: 12px 16px 0;
  border-radius: 4px;
}
.skeleton-line.short {
  width: 55%;
  margin-bottom: 16px;
}
@keyframes cjShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.notice.toast-notice {
  transition: opacity 0.25s ease;
}

/* CJ account dropdown menu 2026-07-13c */
.account-menu {
  position: relative;
}
body[data-page="store"] .account-trigger--active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 8px 12px;
}
.account-avatar-inline {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cj-orange, #ff5526);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.account-name-inline {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}
.account-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
  transition: transform 0.18s ease;
}
.account-menu:has(> #accountDropdown:not([hidden])) .account-chevron {
  transform: rotate(180deg);
}
.account-dropdown[hidden] {
  display: none;
}
.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  min-width: 210px;
  padding: 8px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(15, 15, 15, 0.98);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  animation: cjDropdownIn 0.16s ease;
}
@keyframes cjDropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.account-dropdown-item {
  min-height: 40px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f4f6fb;
  font-weight: 700;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.account-dropdown-item:hover {
  background: rgba(255, 85, 38, 0.14);
  color: var(--cj-orange, #ff5526);
}
.account-dropdown-item--danger:hover {
  background: rgba(215, 43, 47, 0.16);
  color: #ff6b6f;
}
.account-profile-view {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 30px 18px 22px;
  text-align: center;
}
.account-profile-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cj-orange, #ff5526);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
}
.account-profile-view h2 {
  margin: 0;
  color: #fff;
}
.account-profile-fields {
  width: 100%;
  display: grid;
  gap: 8px;
  text-align: left;
}
.account-profile-fields div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.account-profile-fields span {
  color: var(--cj-text-soft, #aeb7c4);
  font-size: 13px;
}
.account-profile-fields strong {
  color: #fff;
  overflow-wrap: anywhere;
  text-align: right;
}
@media (max-width: 720px) {
  .auth-switch {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-switch-button {
    width: 100%;
  }

  .account-name-inline {
    display: none;
  }
  .account-dropdown {
    right: 0;
    left: auto;
  }
}

/* CJ ERP customer link gate 2026-07-13d */
.erp-gate-notice {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: 8px;
  background: rgba(255, 184, 0, 0.12);
  color: #ffd166;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.5;
}
body[data-page="store"] .primary-button:disabled,
body[data-page="store"] .secondary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
body[data-page="store"] .primary-button:disabled:hover,
body[data-page="store"] .secondary-button:disabled:hover {
  background: linear-gradient(180deg, var(--cj-orange-2, #ff7a35), var(--cj-orange, #ff5526));
}

/* CJ company row layout rhythm 2026-07-14 */
.cj-company-dark .company-photo {
  transition: transform 0.35s ease;
}
.cj-company-dark .cj-company-row:nth-child(4n+1) .company-photo {
  aspect-ratio: 4 / 3;
  border-radius: 26px 8px 26px 8px;
  transform: rotate(-1.4deg);
}
.cj-company-dark .cj-company-row:nth-child(4n+2) .company-photo {
  aspect-ratio: 16 / 10;
  border-radius: 8px 26px 8px 26px;
  transform: rotate(1.1deg);
}
.cj-company-dark .cj-company-row:nth-child(4n+3) .company-photo {
  aspect-ratio: 1 / 1;
  border-radius: 26px 8px 26px 8px;
  transform: rotate(-1deg);
}
.cj-company-dark .cj-company-row:nth-child(4n+4) .company-photo {
  aspect-ratio: 4 / 3;
  border-radius: 8px 26px 8px 26px;
  transform: rotate(1.3deg);
}
.cj-company-dark .cj-company-row:hover .company-photo {
  transform: rotate(0deg) scale(1.015);
}
@media (max-width: 720px) {
  .cj-company-dark .company-photo {
    transform: none !important;
    border-radius: 14px !important;
  }
}

/* CJ address book 2026-07-14 */
.checkout-form-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.address-book-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.address-book-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cj-orange, #ff5526);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.address-book-link:hover {
  color: #fff;
}
.address-selected-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}
.address-selected-card strong {
  color: #fff;
  font-size: 15px;
}
.address-selected-card span {
  color: var(--cj-text-soft, #aeb7c4);
  font-size: 13px;
}
.address-default-tag {
  justify-self: start;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(255, 85, 38, 0.16);
  color: var(--cj-orange, #ff5526);
  font-size: 11px;
  font-weight: 800;
}
.address-dialog {
  width: min(640px, calc(100vw - 24px));
}
.address-manage-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}
.address-manage-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.address-manage-item.active {
  border-color: rgba(255, 85, 38, 0.55);
  background: rgba(255, 85, 38, 0.08);
}
.address-manage-select {
  flex: 1;
  min-width: 200px;
  display: grid;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.address-manage-select strong {
  font-size: 14px;
}
.address-manage-select small {
  color: var(--cj-text-soft, #aeb7c4);
  font-size: 12px;
}
.address-manage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.address-manage-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.address-manage-actions button:hover {
  border-color: var(--cj-orange, #ff5526);
  color: var(--cj-orange, #ff5526);
}
.address-form {
  display: grid;
  gap: 12px;
  padding: 18px;
}
.address-form-default {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--cj-text-soft, #aeb7c4);
  font-size: 13px;
}
.address-form-default input {
  width: auto;
  min-height: auto;
}
.address-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* CJ cart discount/credit breakdown 2026-07-14 */
.cart-line-original {
  margin-right: 8px;
  color: var(--cj-muted, #7f8997);
  font-size: 12px;
  font-weight: 700;
  text-decoration: line-through;
}
.cart-breakdown {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.cart-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.cart-breakdown-row span {
  color: var(--cj-text-soft, #aeb7c4);
}
.cart-breakdown-row strong {
  color: #fff;
  font-weight: 800;
}
.cart-breakdown-discount strong {
  color: var(--cj-orange, #ff5526);
}
.cart-breakdown-net {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 8px;
  margin-top: 2px;
}
.cart-breakdown-net span,
.cart-breakdown-net strong {
  color: #fff;
  font-weight: 900;
}
.cart-breakdown-warning span {
  color: #ff6b5e;
  font-weight: 700;
}
.cart-line-discount-badge {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255, 85, 38, 0.16);
  color: var(--cj-orange, #ff5526);
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.credit-box {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
}
.credit-box-title {
  color: var(--cj-orange, #ff5526);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 4px;
}
.credit-box-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.credit-box-row span {
  color: var(--cj-text-soft, #aeb7c4);
}
.credit-box-row strong {
  color: #fff;
  font-weight: 800;
}
.credit-box-remaining {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 6px;
  margin-top: 2px;
}
.credit-box-remaining strong {
  color: var(--cj-orange, #ff5526);
  font-size: 15px;
}

/* Admin dashboard shell 2026-07-18 */
body[data-page="admin"] {
  min-width: 320px;
  margin: 0;
  background: #f4f5f7;
  color: #15171a;
  font-family: Tahoma, Arial, sans-serif;
}
body[data-page="admin"] [hidden] {
  display: none !important;
}
body[data-page="admin"] button,
body[data-page="admin"] input,
body[data-page="admin"] select {
  font: inherit;
}
.admin-login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 75% 18%, rgba(245, 78, 23, 0.17), transparent 28%),
    linear-gradient(135deg, #090a0c 0%, #17191e 56%, #0b0c0e 100%);
}
.admin-login-card {
  width: min(430px, 100%);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}
.admin-login-logo {
  display: inline-flex;
  margin-bottom: 24px;
}
.admin-login-logo img {
  width: 108px;
  height: auto;
  display: block;
}
.admin-login-card .eyebrow {
  color: #f04b18;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.admin-login-card h1 {
  margin: 8px 0;
  font-size: clamp(26px, 5vw, 34px);
}
.admin-login-card > p {
  margin: 0 0 24px;
  color: #68717d;
  line-height: 1.7;
}
.admin-login-card .auth-box {
  display: grid;
  gap: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}
.admin-login-card label {
  display: grid;
  gap: 7px;
  color: #3b4149;
  font-size: 13px;
  font-weight: 700;
}
.admin-login-card input {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d9dde3;
  border-radius: 9px;
  background: #fff;
  color: #17191c;
}
.admin-login-card input:focus {
  border-color: #f04b18;
  outline: 3px solid rgba(240, 75, 24, 0.12);
}
.admin-login-card .primary-button {
  min-height: 48px;
  border: 0;
  border-radius: 9px;
  background: #f04b18;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(240, 75, 24, 0.25);
}
.admin-login-store-link {
  display: block;
  margin-top: 18px;
  color: #666e78;
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.admin-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  background: #f4f5f7;
}
.admin-sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px 10px 18px;
  background: #060708;
  color: #fff;
  box-shadow: 8px 0 24px rgba(8, 12, 18, 0.1);
}
.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 0 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-sidebar-brand img {
  width: 72px;
  max-height: 42px;
  object-fit: contain;
  border-radius: 3px;
}
.admin-sidebar-brand div {
  display: grid;
  gap: 2px;
}
.admin-sidebar-brand strong {
  font-size: 16px;
}
.admin-sidebar-brand span {
  color: #89909a;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}
.admin-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 18px 8px 10px;
  padding: 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
}
.admin-avatar {
  width: 37px;
  height: 37px;
  flex: 0 0 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f04b18;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.admin-profile > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.admin-profile strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-profile small {
  color: #8e96a0;
  font-size: 10px;
}
.admin-side-nav {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.admin-nav-label {
  padding: 8px 15px 5px;
  color: #666d76;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.admin-side-nav button,
.admin-sidebar-footer a,
.admin-sidebar-footer button {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #d9dde2;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}
.admin-side-nav button:hover,
.admin-sidebar-footer a:hover,
.admin-sidebar-footer button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.admin-side-nav button.active {
  background: #202328;
  color: #ff5a24;
}
.admin-side-nav svg,
.admin-sidebar-footer svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: currentColor;
}
.admin-side-nav b {
  min-width: 22px;
  margin-left: auto;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  color: #c8cdd3;
  font-size: 9px;
  text-align: center;
}
.admin-side-nav button.active b {
  background: rgba(255, 90, 36, 0.16);
  color: #ff6a38;
}
.admin-sidebar-footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.admin-sidebar-footer button {
  color: #ff8a70;
}
.admin-sidebar-backdrop {
  display: none;
}
.admin-main {
  min-width: 0;
  background: #f4f5f7;
}
.admin-main-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 30px;
  border-bottom: 1px solid #dde1e6;
  background: rgba(255, 255, 255, 0.93);
}
.admin-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.admin-title-row h1 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 31px);
  line-height: 1;
}
.admin-title-row p {
  margin: 0;
  color: #757e89;
  font-size: 12px;
}
.admin-menu-toggle {
  width: 42px;
  height: 42px;
  display: none;
  place-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
}
.admin-menu-toggle span {
  width: 18px;
  height: 2px;
  display: block;
  background: #222;
}
.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-date-label {
  padding: 10px 14px;
  border: 1px solid #d7dce2;
  border-radius: 7px;
  background: #fff;
  color: #636c77;
  font-size: 12px;
}
.admin-refresh-button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  border: 0;
  border-radius: 7px;
  background: #090a0b;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.16);
}
.admin-refresh-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.admin-content {
  padding: 28px 30px 44px;
}
.admin-content .tab-panel {
  display: grid;
  gap: 22px;
}
.admin-overview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}
.admin-overview-heading span {
  color: #f04b18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.admin-overview-heading h2 {
  margin: 6px 0 0;
  font-size: 19px;
}
.admin-overview-heading small {
  color: #7b8490;
  font-size: 11px;
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.admin-kpi-card {
  min-height: 126px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  padding: 21px;
  border: 1px solid #e5e8ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(18, 25, 33, 0.07);
}
.admin-kpi-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: var(--kpi-color, #f04b18);
}
.admin-kpi-card > div {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.admin-kpi-card > div > span {
  color: #707985;
  font-size: 12px;
}
.admin-kpi-card strong {
  overflow: hidden;
  color: #17191d;
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-kpi-card small {
  color: #9aa1aa;
  font-size: 10px;
}
.admin-kpi-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--kpi-color, #f04b18) 11%, white);
  color: var(--kpi-color, #f04b18);
}
.admin-kpi-icon svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
}
.kpi-orange { --kpi-color: #f04b18; }
.kpi-blue { --kpi-color: #2581d8; }
.kpi-red { --kpi-color: #d94141; }
.kpi-green { --kpi-color: #29a36a; }
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 20px;
}
.admin-dashboard-card,
body[data-page="admin"] .table-panel {
  overflow: hidden;
  padding: 0;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 29, 38, 0.06);
}
.admin-card-head,
body[data-page="admin"] .table-title {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 19px;
  border-bottom: 1px solid #edf0f3;
}
.admin-card-head h3,
body[data-page="admin"] .table-title > span {
  margin: 0;
  color: #181b1f;
  font-size: 15px;
  font-weight: 800;
}
.admin-card-head p,
body[data-page="admin"] .table-title small {
  display: block;
  margin: 4px 0 0;
  color: #9299a3;
  font-size: 10px;
  font-weight: 400;
}
.admin-card-head button {
  padding: 7px 11px;
  border: 1px solid #dedfe2;
  border-radius: 6px;
  background: #fff;
  color: #f04b18;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
body[data-page="admin"] .responsive-table {
  overflow-x: auto;
}
body[data-page="admin"] table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
body[data-page="admin"] th {
  padding: 13px 16px;
  border-bottom: 1px solid #e7eaee;
  background: #fafbfc;
  color: #747d89;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
body[data-page="admin"] td {
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f3;
  color: #343a42;
  font-size: 12px;
  white-space: nowrap;
}
body[data-page="admin"] tbody tr:last-child td {
  border-bottom: 0;
}
body[data-page="admin"] tbody tr:hover td {
  background: #fcfcfd;
}

/* Keep long ERP sync metadata from stretching an entire table row. */
body[data-page="admin"] #tab-sync .responsive-table {
  max-height: min(560px, 68vh);
  overflow: auto;
}
body[data-page="admin"] #tab-sync table {
  height: auto !important;
  min-width: 980px;
  table-layout: fixed;
}
body[data-page="admin"] #tab-sync thead {
  height: auto !important;
}
body[data-page="admin"] #tab-sync tbody {
  height: auto !important;
  display: table-row-group;
}
body[data-page="admin"] #tab-sync tr {
  height: auto !important;
  display: table-row;
}
body[data-page="admin"] #tab-sync th,
body[data-page="admin"] #tab-sync td {
  height: auto !important;
  vertical-align: top;
}
body[data-page="admin"] #tab-sync th {
  position: sticky;
  top: 0;
  z-index: 1;
}
body[data-page="admin"] #tab-sync th:nth-child(1) { width: 110px; }
body[data-page="admin"] #tab-sync th:nth-child(2) { width: 84px; }
body[data-page="admin"] #tab-sync th:nth-child(3),
body[data-page="admin"] #tab-sync th:nth-child(4) { width: 138px; }
body[data-page="admin"] #tab-sync th:nth-child(5) { width: 190px; }
body[data-page="admin"] #tab-sync th:nth-child(6) { width: auto; }
body[data-page="admin"] #tab-sync td {
  white-space: normal;
  line-height: 1.45;
}
body[data-page="admin"] #syncRows code {
  max-height: 4.35em;
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body[data-page="admin"] .row-button {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid #d9dde2;
  border-radius: 6px;
  background: #fff;
  color: #23272d;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
body[data-page="admin"] .row-button:hover {
  border-color: #f04b18;
  color: #f04b18;
}
body[data-page="admin"] .row-button.primary {
  border-color: #f04b18;
  background: #f04b18;
  color: #fff;
}
body[data-page="admin"] .status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 99px;
  background: #eef1f4;
  color: #606a76;
  font-size: 9px;
  font-weight: 700;
}
body[data-page="admin"] .status-pill.processing,
body[data-page="admin"] .status-pill.pendingPayment,
body[data-page="admin"] .status-pill.pending {
  background: #fff1d2;
  color: #b46b00;
}
body[data-page="admin"] .status-pill.success,
body[data-page="admin"] .status-pill.completed,
body[data-page="admin"] .status-pill.paid,
body[data-page="admin"] .status-pill.approved {
  background: #dcf6e9;
  color: #168451;
}
body[data-page="admin"] .status-pill.cancelled,
body[data-page="admin"] .status-pill.failed,
body[data-page="admin"] .status-pill.rejected {
  background: #ffe2e2;
  color: #be2d36;
}
.admin-status-bars {
  min-height: 260px;
  display: grid;
  align-content: center;
  gap: 19px;
  padding: 20px;
}
.admin-status-row {
  display: grid;
  gap: 8px;
}
.admin-status-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.admin-status-row strong {
  color: #434b55;
  font-size: 12px;
}
.admin-status-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: #eef0f3;
}
.admin-status-track i {
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #8995a3;
}
.admin-status-track i.processing,
.admin-status-track i.pendingPayment,
.admin-status-track i.pending { background: #f2ad31; }
.admin-status-track i.success,
.admin-status-track i.completed,
.admin-status-track i.paid,
.admin-status-track i.approved { background: #24a76b; }
.admin-status-track i.cancelled,
.admin-status-track i.failed,
.admin-status-track i.rejected { background: #df4b52; }
.admin-empty-state,
.admin-empty-cell {
  padding: 30px !important;
  color: #929aa4 !important;
  font-size: 12px;
  text-align: center;
}
.admin-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.admin-quick-grid button {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid #e1e5e9;
  border-radius: 9px;
  background: #fff;
  color: #171a1e;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 4px 13px rgba(22, 29, 38, 0.05);
}
.admin-quick-grid button:hover {
  border-color: #f04b18;
  transform: translateY(-1px);
}
.admin-quick-grid span {
  color: #f04b18;
  font-size: 10px;
  font-weight: 800;
}
.admin-quick-grid strong {
  font-size: 13px;
}
body[data-page="admin"] .admin-cart-panel {
  padding: 0 18px 18px;
}
body[data-page="admin"] .admin-cart-panel .table-title {
  margin: 0 -18px 18px;
}
body[data-page="admin"] .row-input,
body[data-page="admin"] .admin-cart-address-form input,
body[data-page="admin"] .admin-cart-address-select {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #daddE3;
  border-radius: 6px;
  background: #fff;
  color: #25292e;
}
body[data-page="admin"] .admin-credit-box {
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(22, 29, 38, 0.06);
}
.admin-product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 13px 16px;
  border-bottom: 1px solid #edf0f3;
  background: #fafbfc;
}
.admin-datatable-search {
  min-width: min(520px, 100%);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.admin-product-toolbar input {
  width: min(440px, 100%);
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  background: #fff;
}
.admin-datatable-length {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #626b76;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.admin-datatable-length span {
  color: #7e8792;
  font-size: 10px;
}
.admin-datatable-length select {
  min-height: 36px;
  padding: 6px 27px 6px 9px;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  background: #fff;
  color: #252a30;
}
.admin-datatable th button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.admin-datatable th button span {
  color: #a8afb8;
  font-size: 8px;
}
.admin-datatable th button.active,
.admin-datatable th button.active span {
  color: #e94a18;
}
.admin-datatable-loading {
  height: 150px !important;
  text-align: center !important;
  color: #7f8893 !important;
}
.admin-datatable-loading span {
  width: 18px;
  height: 18px;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid #e1e5e9;
  border-top-color: #f04b18;
  border-radius: 50%;
  vertical-align: middle;
  animation: admin-datatable-spin 700ms linear infinite;
}
@keyframes admin-datatable-spin {
  to { transform: rotate(360deg); }
}
.admin-datatable-footer {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 16px;
  border-top: 1px solid #edf0f3;
  background: #fafbfc;
}
.admin-datatable-footer > span {
  color: #747d87;
  font-size: 10px;
}
.admin-datatable-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.admin-datatable-pagination button,
.admin-datatable-pagination span {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #dce0e5;
  border-radius: 5px;
  background: #fff;
  color: #4f5863;
  font-size: 10px;
  font-weight: 700;
}
.admin-datatable-pagination button {
  cursor: pointer;
}
.admin-datatable-pagination button:hover:not(:disabled),
.admin-datatable-pagination button.active {
  border-color: #f04b18;
  background: #f04b18;
  color: #fff;
}
.admin-datatable-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
.admin-datatable-pagination span {
  border-color: transparent;
  background: transparent;
}
.admin-image-count {
  display: inline-flex;
  min-width: 39px;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 99px;
  background: #eef1f4;
  color: #727b85;
  font-size: 10px;
  font-weight: 800;
}
.admin-image-count.has-images {
  background: #fff0e9;
  color: #e94a18;
}
.admin-product-images-dialog {
  width: min(1040px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: #f5f6f8;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}
.admin-product-images-dialog::backdrop {
  background: rgba(5, 7, 10, 0.66);
  backdrop-filter: blur(2px);
}
.admin-product-images-dialog .dialog-head {
  background: #fff;
}
.admin-product-images-dialog .dialog-head > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.admin-product-images-dialog .dialog-head small {
  overflow: hidden;
  color: #7a838e;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-product-images-body {
  max-height: calc(100vh - 116px);
  overflow-y: auto;
  padding: 20px;
}
.admin-product-upload-form {
  display: grid;
  align-items: stretch;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
}
.product-image-dropzone {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border: 1px solid #d6dce7;
  border-radius: 10px;
  background: #fff;
  transition: border-color 150ms, background 150ms;
}
.product-image-dropzone.is-dragging { border-color: #ff501f; background: #fff3ed; }
.product-image-drop-hint { display: flex; align-items: center; gap: 14px; padding: 22px; }
.product-image-drop-hint strong, .product-image-drop-hint span:not(.product-image-upload-icon) { display: block; }
.product-image-drop-hint strong, .product-image-select > strong { color: #202735; font-size: 14px; }
.product-image-drop-hint div > span { color: #778194; font-size: 12px; margin-top: 4px; }
.product-image-upload-icon { display: grid; place-items: center; width: 68px; height: 62px; flex-shrink: 0; border-radius: 40% 55% 45% 40%; background: #ffe5db; color: #ff501f; }
.product-image-upload-icon svg { width: 38px; height: 38px; }
.product-image-select { min-width: 0; display: grid; gap: 10px; text-align: center; padding: 18px; border-left: 1px solid #e2e6ed; }
.product-image-select-actions { display: flex; gap: 8px; }
.product-image-select-actions button { flex: 1; min-width: 0; }
.product-image-paste { border: 1px solid #cfd7e5; border-radius: 5px; padding: 8px 12px; background: white; color: #e64614; font: inherit; font-size: 12px; cursor: pointer; }
.product-image-select small, .product-image-conversion-hint { color: #778194; font-size: 11px; line-height: 1.7; }
.product-image-conversion-hint { margin: 0; }
.product-image-queue { display: grid; gap: 8px; }
.product-image-queue:empty { display: none; }
.product-image-queue-row { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid #e0e5ec; border-radius: 8px; background: #fff; }
.product-image-queue-row img { width: 58px; height: 58px; object-fit: contain; border-radius: 5px; background: #f3f5f8; }
.product-image-queue-row > div { flex: 1; min-width: 0; }
.product-image-queue-row strong, .product-image-queue-row span { display: block; overflow-wrap: anywhere; font-size: 12px; }
.product-image-queue-row span { margin-top: 4px; font-size: 11px; color: #68778c; }
.product-image-queue-row button { padding: 7px 10px; border: 1px solid #d9dfe7; border-radius: 5px; background: #fff; color: #b33620; cursor: pointer; }
.product-image-upload-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.product-image-upload-footer > span { color: #68778c; font-size: 12px; }
@media (max-width: 650px) {
  .product-image-dropzone { grid-template-columns: minmax(0, 1fr); }
  .product-image-select { border-left: 0; border-top: 1px solid #e2e6ed; padding: 14px; }
  .product-image-drop-hint { justify-content: center; padding: 16px; }
  .product-image-select-actions { flex-wrap: wrap; }
  .product-image-upload-footer { flex-wrap: wrap; }
}
.admin-product-file-picker {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 7px;
}
.admin-product-file-picker > span {
  color: #252a30;
  font-size: 12px;
  font-weight: 800;
}
.admin-product-file-picker input {
  min-height: 40px;
  padding: 7px;
  border: 1px solid #d9dde3;
  border-radius: 6px;
  background: #fafbfc;
}
.admin-product-file-picker small {
  color: #8a929c;
  font-size: 10px;
}
.admin-product-upload-form .primary-button {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: #f04b18;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.admin-product-upload-form button:disabled,
.admin-product-file-picker input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.admin-product-images-body > .notice {
  margin-top: 12px;
}
.admin-product-image-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  margin-top: 16px;
}
.admin-product-image-item {
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
  background: #fff;
}
.admin-product-image-item.primary {
  border-color: #f04b18;
  box-shadow: 0 0 0 2px rgba(240, 75, 24, 0.1);
}
.admin-product-image-preview {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #fff;
}
.admin-product-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.admin-product-image-preview span {
  position: absolute;
  top: 7px;
  left: 7px;
  padding: 4px 7px;
  border-radius: 99px;
  background: #f04b18;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
}
.admin-product-image-actions {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-top: 1px solid #eef0f2;
}
.admin-product-image-actions button {
  min-height: 29px;
  padding: 4px 7px;
  border: 1px solid #d9dde2;
  border-radius: 5px;
  background: #fff;
  color: #343a42;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}
.admin-product-image-actions button:hover {
  border-color: #f04b18;
  color: #f04b18;
}
.admin-product-image-actions button.danger {
  color: #bd2c37;
}
.admin-product-image-empty {
  grid-column: 1 / -1;
  padding: 44px 20px;
  border: 1px dashed #d5dae0;
  border-radius: 9px;
  background: #fff;
  color: #8b939d;
  font-size: 12px;
  text-align: center;
}
body[data-page="admin"] .order-dialog {
  width: min(860px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

@media (max-width: 1180px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-app {
    display: block;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    width: 250px;
    transition: transform 180ms ease;
  }
  .admin-app.sidebar-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    border: 0;
    background: rgba(6, 8, 11, 0.48);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }
  .admin-app.sidebar-open .admin-sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .admin-menu-toggle {
    display: grid;
  }
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .admin-login-card {
    padding: 30px 22px;
  }
  .admin-main-header {
    align-items: flex-start;
    padding: 16px;
  }
  .admin-title-row p,
  .admin-date-label {
    display: none;
  }
  .admin-refresh-button {
    width: 39px;
    padding: 0;
    justify-content: center;
    overflow: hidden;
    color: transparent;
  }
  .admin-refresh-button svg {
    color: #fff;
  }
  .admin-content {
    padding: 20px 14px 34px;
  }
  .admin-overview-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .admin-kpi-grid,
  .admin-quick-grid {
    grid-template-columns: 1fr;
  }
  .admin-product-toolbar,
  .admin-product-upload-form {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-datatable-search {
    min-width: 0;
    width: 100%;
  }
  .admin-datatable-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .admin-datatable-pagination {
    max-width: 100%;
    overflow-x: auto;
  }
  .admin-product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-kpi-card {
    min-height: 112px;
  }
  .admin-card-head,
  body[data-page="admin"] .table-title {
    min-height: 62px;
    padding: 14px;
  }
}

/* Unified mobile layout 2026-07-21
   Keep this block last: the storefront accumulated several older responsive
   layers and these rules provide one predictable mobile contract for all pages. */
@media (max-width: 760px) {
  html {
    scroll-padding-top: 16px;
  }

  body[data-page="store"] {
    min-width: 0;
    overflow-x: clip;
  }

  body[data-page="store"] main,
  body[data-page="store"] section,
  body[data-page="store"] article,
  body[data-page="store"] form,
  body[data-page="store"] dialog {
    min-width: 0;
  }

  /* Header: compact brand, swipeable navigation and one stable action row. */
  body[data-page="store"] .topbar.cj-transparent-nav {
    position: relative;
    top: auto;
    z-index: 50;
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
    padding: 10px 12px 12px;
    background: #06080b;
    backdrop-filter: none;
  }

  body[data-page="store"] .brand {
    min-width: 0;
    width: max-content;
    max-width: 100%;
    justify-self: center;
    justify-content: center;
    gap: 9px;
  }

  body[data-page="store"] .brand img {
    width: auto;
    height: 38px;
    max-width: 136px;
  }

  body[data-page="store"] .brand strong {
    font-size: 18px;
    line-height: 1.05;
  }

  body[data-page="store"] .brand small {
    font-size: 10px;
  }

  body[data-page="store"] .main-nav {
    width: calc(100% + 24px);
    max-width: none;
    justify-self: center;
    justify-content: flex-start;
    gap: 2px;
    margin-inline: -12px;
    padding: 1px 12px 5px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    scroll-snap-type: inline proximity;
  }

  body[data-page="store"] .main-nav::-webkit-scrollbar {
    display: none;
  }

  body[data-page="store"] .main-nav a {
    min-height: 38px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 7px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  body[data-page="store"] .main-nav a.active {
    background: rgba(255, 85, 38, 0.1);
  }

  body[data-page="store"] .main-nav a::after {
    right: 12px;
    left: 12px;
    bottom: 1px;
  }

  body[data-page="store"] .top-actions {
    width: 100%;
    min-width: 0;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 7px;
  }

  body[data-page="store"] .top-actions > .ghost-button,
  body[data-page="store"] .top-actions > .ghost-link,
  body[data-page="store"] .top-actions > .account-menu > .ghost-button {
    min-width: 0;
    min-height: 40px;
    padding-inline: 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  body[data-page="store"] .cart-nav-button {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  body[data-page="store"] .account-menu {
    min-width: 0;
  }

  body[data-page="store"] .account-dropdown {
    width: min(280px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
  }

  /* Home hero: remove the legacy 620px minimum that caused the large blank gap. */
  body.home-page .cj-home-hero {
    min-height: 0 !important;
    height: auto;
    align-items: start;
    justify-content: start;
    padding: 24px 14px 34px !important;
  }

  body.home-page .cj-home-hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.9)),
      linear-gradient(90deg, rgba(255, 85, 38, 0.08), transparent);
  }

  .home-hero-panel {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    text-align: center;
  }

  body.home-page .cj-home-hero-copy {
    min-height: 0;
    align-items: start;
    justify-content: center;
  }

  body.home-page .home-brand-kicker {
    width: min(286px, 82vw);
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 0 5px rgba(255, 85, 38, 0.07), 0 18px 46px rgba(0, 0, 0, 0.36);
  }

  .home-hero-text {
    max-width: 100%;
  }

  .home-hero-text h1,
  .cj-page-hero h1,
  body[data-page="store"] .catalog-head h1 {
    font-size: clamp(29px, 8.6vw, 38px);
    line-height: 1.14;
  }

  .home-hero-text h1 {
    margin: 7px 0 11px;
  }

  .home-hero-text p,
  .cj-page-hero p {
    font-size: 14px;
    line-height: 1.65;
  }

  .home-hero-actions {
    width: 100%;
    justify-content: center;
    gap: 9px;
    margin-top: 18px;
  }

  .home-hero-actions a {
    flex: 1 1 140px;
    max-width: 220px;
  }

  /* Inner-page heroes and shared page sections. */
  .cj-page-hero {
    min-height: 250px;
    align-items: end;
    padding: 46px 16px 32px;
    background-position: center;
  }

  .cj-company-dark {
    gap: 28px;
    padding: 38px 14px 44px;
  }

  .cj-company-row,
  .cj-company-row.reverse {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 0;
  }

  .cj-company-row.reverse .company-photo {
    order: 0;
  }

  .cj-company-row .company-photo {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10 !important;
  }

  .cj-company-row article,
  .cj-company-row > div:not(.company-photo) {
    padding: 17px;
  }

  .cj-company-row h2,
  .cj-contact-section h2 {
    font-size: 25px;
    line-height: 1.3;
  }

  .cj-company-row p,
  .cj-company-row li,
  .cj-contact-section p {
    font-size: 14px;
    line-height: 1.7;
  }

  .cj-company-row li {
    align-items: flex-start;
  }

  .section-title-line {
    gap: 10px;
    margin-bottom: 22px;
  }

  .section-title-line span {
    width: 34px;
  }

  .section-title-line h2 {
    font-size: 23px;
  }

  .home-section-copy {
    margin: -8px auto 22px;
    font-size: 14px;
    line-height: 1.65;
  }

  .cj-innovation,
  .cj-product-band,
  .cj-news-section,
  .cj-export-section,
  .cj-contact-section,
  .cj-map-section {
    padding: 40px 14px 44px;
  }

  .robot-main img {
    max-height: 260px;
  }

  .robot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .robot-grid img {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .finder-form,
  body[data-page="store"] .finder-form.cj-finder-form {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
    padding: 15px;
  }

  body[data-page="store"] input,
  body[data-page="store"] textarea,
  body[data-page="store"] select {
    min-width: 0;
    max-width: 100%;
    font-size: 16px;
  }

  .home-top-products-head {
    align-items: flex-start;
    margin: 32px auto 14px;
  }

  .home-top-products-head h3 {
    font-size: 19px;
  }

  .home-top-products-head a {
    font-size: 13px;
  }

  .news-grid,
  .news-grid.news-grid-large {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .news-grid article {
    min-height: 0;
    padding-bottom: 18px;
  }

  .cj-export-section .export-map-card {
    margin-top: 24px;
  }

  .cj-contact-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

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

  .contact-form button {
    width: 100%;
  }

  .cj-map-section iframe {
    height: 310px;
    border-radius: 8px;
  }

  body[data-page="store"] .site-footer.cj-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding: 34px 18px;
    text-align: center;
  }

  body[data-page="store"] .cj-footer nav {
    justify-content: center;
  }

  /* Products and catalog. */
  body[data-page="store"] .store-shell.cj-store-shell.catalog-only-shell {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 16px 12px 42px;
  }

  body[data-page="store"] .filter-panel.cj-filter-panel,
  body[data-page="store"] .catalog-panel.cj-catalog-panel {
    width: 100%;
    max-height: none;
    padding: 14px;
  }

  .sidebar-product-finder {
    padding: 14px;
  }

  body[data-page="store"] .product-quick-search {
    margin-bottom: 14px;
  }

  body[data-page="store"] .catalog-head {
    align-items: flex-start;
    gap: 8px;
  }

  .product-segment-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin-inline: -2px;
    padding: 2px 2px 6px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .product-segment-tabs::-webkit-scrollbar {
    display: none;
  }

  .product-segment-tabs button {
    width: auto;
    min-height: 40px;
    flex: 0 0 auto;
    padding: 0 14px;
    font-size: 12px;
  }

  .catalog-toolbar,
  .sort-control {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .sort-control select {
    width: 100%;
  }

  body[data-page="store"] .catalog-only-shell .product-grid,
  body[data-page="store"] .product-grid,
  .home-top-products {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  body[data-page="store"] .product-card:hover {
    transform: none;
  }

  body[data-page="store"] .product-body {
    min-height: 0;
  }

  body[data-page="store"] .product-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .pagination-controls {
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    padding-bottom: 5px;
    overflow-x: auto;
  }

  /* Cart, account and product detail dialogs. */
  body.cart-page .cart-page-shell {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
    padding: 16px 12px 42px;
  }

  body.cart-page .cart-page-panel {
    padding: 15px !important;
  }

  body.cart-page .cart-page-head {
    gap: 10px;
  }

  body.cart-page .cart-page-head h1 {
    font-size: 29px;
  }

  body.cart-page .cart-page-panel .cart-item {
    grid-template-columns: 64px minmax(0, 1fr) 30px;
    gap: 10px;
    padding: 11px;
  }

  body.cart-page .cart-page-panel .cart-item-media img,
  body.cart-page .cart-page-panel .cart-thumb-fallback {
    width: 64px;
    height: 64px;
  }

  body.cart-page .cart-page-summary {
    align-items: flex-end;
    gap: 12px;
  }

  .cart-help-panel {
    padding: 17px;
  }

  body[data-page="store"] .account-dialog,
  body[data-page="store"] .order-dialog,
  .product-detail-dialog,
  .address-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    margin: 8px auto;
    overflow: auto;
  }

  body[data-page="store"] .dialog-head {
    position: sticky;
    top: 0;
    z-index: 5;
    gap: 10px;
    padding: 12px 13px;
    backdrop-filter: blur(14px);
  }

  body[data-page="store"] .auth-grid,
  .order-dialog-body,
  .product-detail-layout,
  .product-detail-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="store"] .auth-grid,
  .order-dialog-body,
  .product-detail-content,
  .address-manage-list,
  .address-form {
    padding: 13px;
  }

  .product-gallery-main,
  .product-detail-media,
  .product-detail-media .product-fallback {
    min-height: 220px;
  }

  .product-detail-thumbs {
    gap: 5px;
  }

  .product-detail-thumbs img {
    height: 54px;
  }

  .address-manage-select {
    min-width: 0;
  }

  .address-form-actions,
  .address-manage-actions {
    width: 100%;
  }

  .address-form-actions > *,
  .address-manage-actions > * {
    flex: 1 1 auto;
  }
}

@media (max-width: 420px) {
  body[data-page="store"] .top-actions > .ghost-button,
  body[data-page="store"] .top-actions > .ghost-link,
  body[data-page="store"] .top-actions > .account-menu > .ghost-button {
    padding-inline: 8px;
    font-size: 11px;
  }

  .home-hero-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .home-hero-actions a {
    width: 100%;
    max-width: none;
  }

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

  body[data-page="store"] .product-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Admin mobile contract: off-canvas navigation, compact cards and safe tables. */
@media (max-width: 960px) {
  body[data-page="admin"] {
    min-width: 0;
    overflow-x: clip;
  }

  .admin-main-header {
    position: sticky;
    top: 0;
    z-index: 18;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
  }

  .admin-sidebar {
    z-index: 40;
    width: min(292px, 86vw);
    max-width: 86vw;
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }

  .admin-sidebar-backdrop {
    z-index: 35;
  }

  body[data-page="admin"] .responsive-table {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body[data-page="admin"] .responsive-table > table {
    min-width: 720px;
  }

  body[data-page="admin"] .admin-datatable {
    min-width: 880px;
  }
}

@media (max-width: 680px) {
  .admin-main-header {
    min-height: 68px;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
  }

  .admin-title-row {
    min-width: 0;
    gap: 10px;
  }

  .admin-title-row > div {
    min-width: 0;
  }

  .admin-title-row h1 {
    overflow: hidden;
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-menu-toggle,
  .admin-refresh-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    flex: 0 0 40px;
  }

  .admin-header-actions {
    flex: 0 0 auto;
    gap: 0;
  }

  .admin-content {
    padding: 16px 11px 34px;
  }

  .admin-content .tab-panel {
    gap: 14px;
  }

  .admin-overview-heading h2 {
    font-size: 18px;
    line-height: 1.35;
  }

  .admin-overview-heading small {
    line-height: 1.5;
  }

  .admin-kpi-grid,
  .admin-dashboard-grid,
  .admin-quick-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .admin-kpi-card {
    min-height: 98px;
    padding: 16px;
  }

  .admin-kpi-card strong {
    font-size: 24px;
  }

  .admin-kpi-icon {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .admin-dashboard-card,
  body[data-page="admin"] .table-panel,
  body[data-page="admin"] .admin-credit-box {
    border-radius: 8px;
  }

  .admin-card-head,
  body[data-page="admin"] .table-title {
    min-height: 0;
    align-items: flex-start;
    padding: 13px;
  }

  body[data-page="admin"] th,
  body[data-page="admin"] td {
    padding: 11px 12px;
  }

  body[data-page="admin"] .admin-cart-panel {
    padding: 0 12px 14px;
  }

  body[data-page="admin"] .admin-cart-panel .table-title {
    margin: 0 -12px 14px;
  }

  .admin-cart-search-row,
  .admin-cart-address-actions,
  .admin-product-toolbar,
  .admin-product-upload-form,
  .admin-datatable-search {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .admin-cart-search-row .row-input {
    min-width: 0;
    width: 100%;
  }

  .admin-cart-catalog-toolbar {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .admin-cart-search-row > button,
  .admin-cart-address-actions > button,
  .admin-product-upload-form > button,
  .admin-datatable-search > button {
    width: 100%;
  }

  .admin-cart-sort {
    min-width: 0;
  }

  .admin-cart-catalog-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-cart-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
  }

  .admin-product-toolbar {
    padding: 12px;
  }

  .admin-datatable-length {
    justify-content: space-between;
  }

  .admin-datatable-footer {
    gap: 10px;
    padding: 12px;
  }

  .admin-datatable-pagination {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .admin-product-images-dialog,
  body[data-page="admin"] .order-dialog {
    width: calc(100vw - 12px);
    max-width: calc(100vw - 12px);
    max-height: calc(100dvh - 12px);
    margin: 6px auto;
    border-radius: 9px;
  }

  .admin-product-images-dialog .dialog-head,
  body[data-page="admin"] .order-dialog .dialog-head {
    position: sticky;
    top: 0;
    z-index: 3;
    gap: 9px;
    padding: 12px;
  }

  .admin-product-images-body {
    max-height: calc(100dvh - 75px);
    padding: 12px;
  }

  .admin-product-upload-form {
    padding: 12px;
  }

  .admin-product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  body[data-page="admin"] .order-dialog-body,
  body[data-page="admin"] .admin-order-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  body[data-page="admin"] #tab-sync .responsive-table {
    max-height: 62dvh;
  }

  body[data-page="admin"] #tab-sync table {
    min-width: 760px;
  }
}

@media (min-width: 481px) and (max-width: 680px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-login-screen {
    align-items: flex-start;
    padding: 18px 10px;
  }

  .admin-login-card {
    width: 100%;
    padding: 24px 17px;
  }

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

/* Mobile hamburger navigation 2026-07-21 */
.mobile-nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  body[data-page="store"] .topbar.cj-transparent-nav {
    grid-template-columns: minmax(0, 1fr) 40px 42px;
    align-items: center;
    column-gap: 7px;
  }

  body[data-page="store"] .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    justify-content: flex-start;
  }

  .mobile-nav-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 42px;
    height: 42px;
    display: grid;
    place-content: center;
    gap: 5px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
  }

  .mobile-nav-toggle span {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 99px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mobile-nav-toggle:hover,
  .mobile-nav-toggle:focus-visible,
  .mobile-nav-open .mobile-nav-toggle {
    border-color: var(--cj-orange, #ff5526);
    color: var(--cj-orange, #ff5526);
    outline: none;
  }

  .mobile-nav-open .mobile-nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .mobile-nav-open .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-open .mobile-nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  body[data-page="store"] .main-nav {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 2;
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 5px;
    margin: 0;
    padding: 8px;
    overflow: visible;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: #111318;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
    scroll-snap-type: none;
  }

  body[data-page="store"] .topbar.mobile-nav-open .main-nav {
    display: grid;
  }

  body[data-page="store"] .main-nav a {
    width: 100%;
    min-height: 43px;
    justify-content: flex-start;
    padding: 0 13px;
    border-radius: 6px;
    font-size: 13px;
    white-space: normal;
  }

  body[data-page="store"] .main-nav a::after {
    top: 8px;
    right: auto;
    bottom: 8px;
    left: 2px;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: center;
  }

  body[data-page="store"] .main-nav a:hover::after,
  body[data-page="store"] .main-nav a.active::after {
    transform: scaleY(1);
  }

  body[data-page="store"] .top-actions {
    display: contents;
  }

  body[data-page="store"] .top-actions > .cart-nav-button {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  body[data-page="store"] .top-actions > :not(.cart-nav-button) {
    display: none;
  }

  body[data-page="store"] .topbar.mobile-nav-open .top-actions > .order-history-entry,
  body[data-page="store"] .topbar.mobile-nav-open .top-actions > .mobile-account-entry {
    width: 100%;
    min-height: 43px;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 13px;
    border-color: rgba(255, 255, 255, 0.11);
    background: #111318;
    font-size: 13px;
    text-align: left;
  }

  body[data-page="store"] .topbar.mobile-nav-open .top-actions > .order-history-entry {
    grid-row: 3;
  }

  body[data-page="store"] .topbar.mobile-nav-open .top-actions > .account-menu,
  body[data-page="store"] .topbar.mobile-nav-open .top-actions > .mobile-account-entry {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  body[data-page="store"] .topbar.mobile-nav-open .top-actions > .account-menu {
    width: 100%;
    display: block;
  }

  body[data-page="store"] .topbar.mobile-nav-open .account-menu > .ghost-button {
    width: 100%;
    min-height: 43px;
    display: flex;
    justify-content: flex-start;
    padding-inline: 13px;
    border-color: rgba(255, 255, 255, 0.11);
    background: #111318;
    font-size: 13px;
  }

  body[data-page="store"] .topbar.mobile-nav-open .account-name-inline {
    display: inline;
    max-width: min(220px, 58vw);
  }

  body[data-page="store"] .topbar.mobile-nav-open .account-dropdown {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: 5px;
  }
}
