/* 換頁時以淡入淡出銜接，取代瀏覽器預設的瞬間空白。
   瀏覽器不支援時會忽略這段，行為與原本相同。
   使用者若在系統中選擇減少動態效果，則不套用。 */
@view-transition {
  navigation: auto;
}

@media (prefers-reduced-motion: reduce) {
  @view-transition {
    navigation: none;
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 140ms;
}

:root {
  --blue: #0078c5;
  --blue-dark: #005e9b;
  --red: #e21f26;
  --ink: #20242a;
  --muted: #6f7782;
  --line: #e6e9ed;
  --soft: #f5f7f9;
  --white: #fff;
  --shadow: 0 18px 38px rgba(26, 38, 51, .12);
}

.admin-page {
  background: #f5f7f8;
  color: #172026;
}

.admin-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.admin-shell--narrow {
  max-width: 920px;
}

.admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.admin-header h1 {
  font-size: 32px;
  margin: 4px 0 0;
}

.admin-header nav,
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-header a,
.admin-table button,
.admin-form button,
.admin-registration button {
  border: 1px solid #d7dde2;
  border-radius: 6px;
  background: #ffffff;
  color: #172026;
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.admin-header a.is-active {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.admin-form button[type="submit"],
.admin-registration button[data-status="approved"] {
  background: #111827;
  border-color: #111827;
  color: #ffffff;
}

.admin-warning {
  background: #fff8df;
  border: 1px solid #ead89b;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 14px 16px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

.admin-grid--two {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
}

.admin-panel {
  background: #ffffff;
  border: 1px solid #e0e5e9;
  border-radius: 8px;
  padding: 18px;
}

.admin-panel--wide {
  grid-column: span 1;
}

.admin-panel h2 {
  font-size: 20px;
  margin: 0 0 14px;
}

.admin-panel__head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.admin-panel__head input {
  max-width: 340px;
}

.admin-form {
  display: grid;
  gap: 10px;
}

.admin-form__row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.admin-form input,
.admin-form select,
.admin-form textarea,
.admin-panel__head input {
  border: 1px solid #ccd4da;
  border-radius: 6px;
  font: inherit;
  padding: 10px 12px;
  width: 100%;
}

.admin-checkbox {
  align-items: center;
  display: flex;
  gap: 8px;
}

.admin-checkbox input {
  width: auto;
}

.admin-table-wrap {
  overflow-x: auto;
}

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

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #edf0f2;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #68737d;
  font-size: 12px;
  text-transform: uppercase;
}

.admin-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  max-height: 360px;
  overflow: auto;
}

.admin-list-item,
.admin-registration {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e6eaee;
  border-radius: 8px;
  color: inherit;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
  text-align: left;
}

.admin-list-item span,
.admin-registration span,
.admin-registration small {
  color: #5f6b75;
  display: block;
  margin-top: 4px;
}

.admin-list--registrations {
  max-height: 520px;
}

.admin-registration > div:last-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-status {
  background: #eef2f6;
  border-radius: 999px;
  padding: 5px 9px;
}

.warranty-register-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

@media (max-width: 980px) {
  .admin-grid,
  .admin-grid--two,
  .admin-form__row,
  .warranty-register-grid {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .admin-panel__head,
  .admin-registration {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Admin workspace refresh */
.admin-page {
  background: #eef2f5;
  color: #18212a;
  min-height: 100vh;
}

.admin-app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  align-self: start;
  background: #111820;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 22px 18px;
  position: sticky;
  top: 0;
}

.admin-brand {
  align-items: center;
  color: #ffffff;
  display: flex;
  gap: 11px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-brand img {
  background: #ffffff;
  border-radius: 6px;
  height: 32px;
  object-fit: contain;
  padding: 4px;
  width: 70px;
}

.admin-side-nav {
  display: grid;
  gap: 6px;
}

.admin-side-nav a {
  align-items: center;
  border-radius: 8px;
  color: #c9d2dc;
  display: flex;
  font-weight: 700;
  gap: 10px;
  padding: 11px 10px;
  text-decoration: none;
}

.admin-side-nav a:hover,
.admin-side-nav a.is-active {
  background: #ffffff;
  color: #111820;
}

.admin-side-nav span {
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: 6px;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.admin-side-nav a.is-active span,
.admin-side-nav a:hover span {
  background: #eef2f5;
}

.admin-sidebar__site {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  margin-top: auto;
  padding: 12px;
  text-align: center;
  text-decoration: none;
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-main--narrow {
  max-width: 980px;
}

.admin-topbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-topbar h1 {
  font-size: 30px;
  letter-spacing: 0;
  margin: 0;
}

.admin-search {
  border: 1px solid #cbd5df;
  border-radius: 8px;
  flex: 1 1 260px;
  font: inherit;
  max-width: 360px;
  min-width: 180px;
  padding: 11px 13px;
  width: 100%;
}

.admin-local-badge,
.admin-status {
  align-items: center;
  background: #e8edf2;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #394756;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  white-space: nowrap;
}

.admin-status--active,
.admin-status--approved,
.admin-status--listed {
  background: #e5f5ec;
  color: #14643d;
}

.admin-status--unused,
.admin-status--pending {
  background: #fff4d7;
  color: #795200;
}

.admin-status--expired,
.admin-status--rejected {
  background: #fde8e8;
  color: #9b1c1c;
}

.admin-status--disabled,
.admin-status--unlisted {
  background: #e7e9ec;
  color: #5f6872;
}

.admin-status--tone-neutral {
  background: #eef2f6;
  border-color: #d3dbe4;
  color: #3f4d5a;
}

.admin-status--tone-waiting {
  background: #fff4d6;
  border-color: #e7c66b;
  color: #6b4700;
}

.admin-status--tone-progress {
  background: #e8f2ff;
  border-color: #a9cdef;
  color: #155a9c;
}

.admin-status--tone-success {
  background: #e6f5ec;
  border-color: #a9d8bd;
  color: #14643d;
}

.admin-status--tone-adjustment {
  background: #f2eafd;
  border-color: #cdb6e4;
  color: #6b3fa0;
}

.admin-status--tone-danger {
  background: #fdeaea;
  border-color: #e5aeae;
  color: #8d2323;
}

.admin-warning {
  border-radius: 8px;
  margin-bottom: 18px;
}

.admin-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-stats article {
  background: #ffffff;
  border: 1px solid #dde5ec;
  border-radius: 8px;
  padding: 18px;
}

.admin-stats span {
  color: #657281;
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.admin-stats strong {
  font-size: 34px;
}

.admin-grid--two {
  align-items: start;
  grid-template-columns: minmax(0, 1.2fr) minmax(390px, .8fr);
}

.admin-panel {
  border-color: #dde5ec;
  box-shadow: 0 18px 44px rgba(17, 24, 32, .05);
  padding: 20px;
}

.admin-panel--sticky {
  position: sticky;
  top: 24px;
}

.admin-panel__head {
  border-bottom: 1px solid #edf1f4;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.admin-panel__head p {
  color: #657281;
  margin: 6px 0 0;
}

.admin-form label {
  color: #364452;
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 7px;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  background: #fbfcfd;
  border-color: #cbd5df;
  color: #18212a;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.admin-search:focus {
  border-color: #111820;
  box-shadow: 0 0 0 3px rgba(17,24,32,.08);
  outline: none;
}

.admin-fieldset {
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 14px;
}

.admin-fieldset legend {
  color: #111820;
  font-size: 13px;
  font-weight: 900;
  padding: 0 7px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-page .admin-button,
.admin-page .admin-row-button,
.admin-login-page .admin-button,
.admin-login-page .admin-row-button {
  border: 1px solid #cbd5df;
  border-radius: 7px;
  background: #ffffff;
  color: #172026;
  cursor: pointer;
  font-weight: 800;
  padding: 10px 14px;
  white-space: nowrap;
}

.admin-button--primary {
  background: #111820;
  border-color: #111820;
  color: #ffffff;
}

.admin-button:disabled,
.admin-row-button:disabled {
  cursor: progress;
  opacity: .65;
}

.admin-table tbody tr:hover {
  background: #f7f9fb;
}

.admin-product-cell {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-width: 260px;
}

.admin-product-cell img,
.admin-product-cell > span {
  background: #edf1f4;
  border-radius: 6px;
  height: 46px;
  object-fit: cover;
  width: 46px;
}

.admin-product-cell small {
  color: #657281;
  display: block;
  margin-top: 4px;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-list {
  max-height: none;
}

.admin-list-item {
  cursor: pointer;
  width: 100%;
}

.admin-list-item:hover,
.admin-registration:hover {
  border-color: #b9c5cf;
  box-shadow: 0 10px 24px rgba(17, 24, 32, .06);
}

.admin-list-item small {
  color: #657281;
  display: block;
  margin-top: 5px;
}

/* 商品列表沒有結果時的說明，避免畫面看起來像壞掉。 */
.catalog-empty {
  align-items: center;
  background: #f8fafb;
  border: 1px dashed #cbd5df;
  border-radius: 12px;
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  justify-items: center;
  padding: 48px 28px;
  text-align: center;
}

.catalog-empty strong {
  font-size: 1.05rem;
}

.catalog-empty span {
  color: #657281;
  max-width: 34ch;
}

.catalog-empty__reset {
  background: #1f2933;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  margin-top: 6px;
  padding: 9px 20px;
  text-decoration: none;
}

.catalog-empty__reset:hover {
  background: #33414f;
}

.admin-empty {
  align-items: center;
  background: #f8fafb;
  border: 1px dashed #cbd5df;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.admin-empty span {
  color: #657281;
}

.admin-process {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-process article {
  background: #ffffff;
  border: 1px solid #dde5ec;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 16px;
}

.admin-process span {
  align-items: center;
  background: #111820;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.admin-process small {
  color: #657281;
}

.admin-registration {
  align-items: start;
  gap: 16px;
}

.admin-registration__actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-toolbar {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.admin-modal {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(17, 24, 32, .28);
  max-height: min(900px, calc(100vh - 48px));
  max-width: min(980px, calc(100vw - 48px));
  overflow: hidden;
  padding: 0;
  width: 920px;
}

.admin-modal::backdrop {
  background: rgba(17, 24, 32, .48);
}

.admin-modal__form {
  display: grid;
  gap: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: min(900px, calc(100vh - 48px));
  max-height: min(900px, calc(100vh - 48px));
  overflow: hidden;
}

.admin-modal__header,
.admin-modal__footer {
  align-items: center;
  background: #ffffff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 18px 22px;
}

.admin-modal__header {
  border-bottom: 1px solid #e5ebf0;
}

.admin-modal__header h2 {
  font-size: 22px;
  margin: 0;
}

.admin-modal__close {
  align-items: center;
  background: #f1f4f7;
  border: 1px solid #dce4eb;
  border-radius: 8px;
  color: #18212a;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.admin-modal__body {
  background: #f6f8fa;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 18px 22px;
}

.admin-modal__footer {
  border-top: 1px solid #e5ebf0;
  justify-content: flex-end;
}

.admin-modal__delete {
  margin-right: auto;
}

.category-modal {
  max-width: min(1120px, calc(100vw - 48px));
  width: min(1120px, calc(100vw - 48px));
}

.category-manager {
  align-items: start;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
}

.category-manager__list,
.category-editor {
  background: #ffffff;
  border: 1px solid #e2e8ed;
  border-radius: 9px;
  min-width: 0;
  padding: 18px;
}

.category-manager__heading {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.category-manager__heading h3,
.category-manager__heading p {
  margin: 0;
}

.category-manager__heading h3 {
  font-size: 18px;
}

.category-manager__heading p {
  color: #68737d;
  font-size: 13px;
  margin-top: 4px;
}

.category-table td {
  vertical-align: middle;
}

.category-table td small {
  color: #68737d;
  display: block;
  margin-top: 3px;
  max-width: 260px;
}

.category-table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.admin-row-button--danger {
  color: #ad2727;
}

.category-editor {
  align-content: start;
}

.category-editor .admin-form__row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-confirm-modal select {
  border: 1px solid #cbd5df;
  border-radius: 7px;
  min-height: 42px;
  padding: 9px 11px;
  width: 100%;
}

.admin-confirm-modal {
  border: 0;
  border-radius: 10px;
  box-shadow: 0 28px 80px rgba(17, 24, 32, .34);
  max-width: min(480px, calc(100vw - 32px));
  padding: 0;
  width: 440px;
}

.admin-confirm-modal::backdrop {
  background: rgba(17, 24, 32, .62);
}

.admin-confirm-modal__form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.admin-confirm-modal__form h2,
.admin-confirm-modal__form p {
  margin: 0;
}

.admin-confirm-modal__form label {
  display: grid;
  font-size: 14px;
  font-weight: 800;
  gap: 8px;
}

.admin-confirm-modal__form input {
  border: 1px solid #cbd5df;
  border-radius: 7px;
  min-height: 42px;
  padding: 9px 11px;
}

@media (max-width: 1060px) {
  .admin-app {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    height: auto;
    min-height: auto;
    overflow: visible;
    position: static;
  }

  .admin-side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .admin-sidebar__site {
    margin-top: 0;
  }

  .admin-grid--two,
  .admin-process,
  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-panel--sticky {
    position: static;
  }

  .category-manager {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-main,
  .admin-sidebar {
    padding: 18px;
  }

  .admin-topbar,
  .admin-toolbar,
  .admin-registration,
  .admin-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-search {
    flex: 0 0 auto;
    max-width: none;
    min-width: 0;
  }

  .admin-side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .admin-side-nav a {
    font-size: 14px;
  }

  .admin-modal {
    max-height: 100vh;
    max-width: 100vw;
    width: 100vw;
  }

  .admin-modal__form {
    height: 100vh;
    max-height: 100vh;
  }

  .category-manager__heading,
  .category-table__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .category-editor .admin-form__row {
    grid-template-columns: 1fr;
  }

  .category-table,
  .category-table tbody,
  .category-table tr,
  .category-table td {
    display: block;
    width: 100%;
  }

  .category-table thead {
    display: none;
  }

  .category-table tr {
    border: 1px solid #e2e8ed;
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 12px;
  }

  .category-table td {
    border: 0;
    padding: 4px 0;
  }

  .category-table td:nth-child(1)::before,
  .category-table td:nth-child(3)::before,
  .category-table td:nth-child(4)::before,
  .category-table td:nth-child(5)::before {
    color: #68737d;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    min-width: 64px;
  }

  .category-table td:nth-child(1)::before {
    content: "代碼";
  }

  .category-table td:nth-child(3)::before {
    content: "商品數";
  }

  .category-table td:nth-child(4)::before {
    content: "首頁";
  }

  .category-table td:nth-child(5)::before {
    content: "排序";
  }

  .category-table__actions {
    flex-direction: row;
    justify-content: flex-start;
    margin-top: 6px;
  }
}

/* Secure commerce operations */
.admin-login-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(57, 196, 117, .18), transparent 34rem),
    #0b1110;
  color: #edf7f1;
}

.admin-login {
  width: min(940px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 24px;
  background: #111a18;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.admin-login__brand,
.admin-login__form {
  padding: clamp(32px, 6vw, 70px);
}

.admin-login__brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(145deg, rgba(48, 173, 105, .18), transparent);
}

.admin-login__brand img {
  width: 130px;
  height: auto;
  margin-bottom: 36px;
}

.admin-login__brand h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 6vw, 60px);
  color: #edf7f1;
}

.admin-login__brand p:last-child {
  color: #a9bbb3;
  line-height: 1.8;
}

.admin-login__form {
  display: grid;
  align-content: center;
  gap: 18px;
  background: #fff;
  color: #18231f;
}

.admin-login__form h2 {
  margin: 0 0 8px;
  font-size: 30px;
}

.admin-login__form label,
.admin-order-filters label,
.admin-inline-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.admin-login__form input,
.admin-order-filters input,
.admin-order-filters select,
.admin-inline-form input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfdbd5;
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: #18231f;
  font: inherit;
}

.admin-login__form small {
  color: #738079;
  line-height: 1.6;
}

.admin-login__link {
  color: #176b48;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.admin-login__link:hover {
  text-decoration: underline;
}

.admin-account-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, .75fr) minmax(0, 1.25fr);
}

.admin-account-grid > *,
.admin-account-invitations {
  min-width: 0;
}

.admin-account-invitations {
  margin-top: 18px;
}

.admin-password-panel {
  margin-top: 18px;
}

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

.admin-password-form .admin-form__actions {
  grid-column: 1 / -1;
}

.admin-account-table small,
.admin-invitation-table small {
  color: #657281;
  display: block;
  margin-top: 5px;
}

.admin-invite-result {
  background: #effaf4;
  border: 1px solid #b9dfc9;
  border-radius: 9px;
  margin-top: 18px;
  padding: 16px;
}

.admin-invite-result p {
  color: #426151;
  line-height: 1.6;
  margin: 7px 0 12px;
}

.admin-copy-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-copy-row input {
  border: 1px solid #b7cec1;
  border-radius: 8px;
  min-height: 44px;
  min-width: 0;
  padding: 0 12px;
  width: 100%;
}

.admin-invitation-profile {
  background: #f3f7f5;
  border: 1px solid #d9e5df;
  border-radius: 10px;
  display: grid;
  gap: 0;
}

.admin-invitation-profile > div {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
}

.admin-invitation-profile > div + div {
  border-top: 1px solid #dfe8e3;
}

.admin-invitation-profile span {
  color: #738079;
  font-size: 12px;
  font-weight: 700;
}

.admin-invitation-profile strong {
  overflow-wrap: anywhere;
}

.admin-register-success {
  background: #effaf4;
  border: 1px solid #b9dfc9;
  border-radius: 9px;
  color: #24643f;
  line-height: 1.7;
  padding: 16px;
}

.admin-user-badge {
  margin-left: auto;
}

.admin-topbar {
  gap: 12px;
}

.admin-warning--secure {
  border-color: #b9dfc9;
  background: #effaf4;
  color: #24643f;
}

.admin-stats--operations {
  margin-top: 12px;
}

.admin-order-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(140px, .55fr)) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid #dfe8e3;
  border-radius: 14px;
  background: #fff;
}

.admin-orders-table td small {
  display: block;
  margin-top: 5px;
  color: #74817a;
}

.admin-list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid #e3ebe7;
  color: #627068;
}

.admin-list-footer div {
  display: flex;
  gap: 8px;
}

.admin-order-modal {
  height: min(900px, calc(100vh - 32px));
  width: min(1120px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
}

.admin-order-detail {
  background: #f5f8f6;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.admin-order-detail .admin-modal__body {
  display: grid;
  gap: 18px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}

.admin-order-status-strip,
.admin-order-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-order-status-strip > strong {
  margin-left: auto;
  font-size: 24px;
}

.admin-order-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-order-section,
.admin-order-risk {
  padding: 18px;
  border: 1px solid #dfe8e3;
  border-radius: 14px;
  background: #fff;
}

.admin-order-section h3,
.admin-order-risk h3 {
  margin: 0 0 14px;
  font-size: 16px;
}

.admin-order-kv {
  display: grid;
  gap: 10px;
  margin: 0;
}

.admin-order-kv div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}

.admin-order-kv dt {
  color: #74817a;
}

.admin-order-kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-order-risk {
  border-color: #efc9c9;
  background: #fffafa;
}

.admin-order-risk > p {
  margin: -6px 0 16px;
  color: #866;
  font-size: 13px;
}

.admin-inline-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding-top: 14px;
  border-top: 1px solid #f0dddd;
}

.admin-inline-form + .admin-inline-form {
  margin-top: 16px;
}

.admin-reconciliation-form {
  grid-template-columns: minmax(180px, 240px) minmax(220px, 320px) auto;
  justify-content: start;
  margin-bottom: 14px;
}

#reconciliation-panel {
  margin-top: 20px;
}

.admin-reconciliation-note {
  margin: 0 0 14px;
  color: #637169;
  font-size: 13px;
}

.admin-manual-refund-form {
  display: grid;
  min-width: 220px;
  gap: 6px;
}

.admin-manual-refund-form input {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d8dfda;
  border-radius: 7px;
}

.admin-button--danger {
  border-color: #ad2f2f;
  background: #ad2f2f;
  color: #fff;
}

.admin-order-timeline {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-order-timeline li {
  display: grid;
  grid-template-columns: 150px minmax(160px, .6fr) 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1ef;
}

.admin-order-timeline time,
.admin-order-timeline span {
  color: #74817a;
  font-size: 13px;
}

.ecpay-logistics-picker {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid #bee5ce;
  border-radius: 12px;
  background: #f0fbf5;
}

.ecpay-logistics-picker p {
  margin: 0;
  color: #426151;
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .admin-account-grid {
    grid-template-columns: 1fr;
  }

  .admin-password-form {
    grid-template-columns: 1fr;
  }

  .admin-order-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 700px) {
  .admin-login {
    grid-template-columns: 1fr;
  }

  .admin-login__brand {
    display: none;
  }

  .admin-order-filters,
  .admin-order-columns,
  .admin-inline-form {
    grid-template-columns: 1fr;
  }

  .admin-order-timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ecpay-logistics-picker {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-copy-row {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "HarmonyOS Sans TC", "HarmonyOS_Sans_TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  line-height: 1.55;
  background: var(--white);
}

body.cart-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.auth-links {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.auth-link {
  color: rgba(255, 255, 255, .86);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.auth-user {
  color: #000;
  display: inline-block;
  font-size: 13px;
  font-weight: 900;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
  white-space: nowrap;
}

.auth-link--member {
  color: #fff;
}

.auth-link--logout {
  padding: 0;
  color: rgba(255, 255, 255, .68);
}

.auth-provider {
  color: rgba(255, 255, 255, .5);
  font-size: 12px;
  font-weight: 700;
}

.nav-auth-links {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}

.nav-auth-links .auth-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 2px;
  color: #333;
}

.nav-auth-links .auth-link:hover {
  color: var(--blue);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav__inner {
  min-height: 76px;
  gap: 26px;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}

.brand__mark {
  color: var(--blue);
  font-size: 38px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: .8;
}

.brand__region {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  flex: 1;
  justify-content: center;
  color: #333941;
  font-size: 15px;
}

.nav-links a {
  position: relative;
  padding: 28px 0;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 3px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transition: .2s ease;
}

.nav-links a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.cart-button,
.button,
.support-form button,
.product button,
.cart-close,
.cart-empty button,
.cart-quantity button,
.cart-remove,
.checkout-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
}

.cart-button strong {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: var(--blue);
  background: #fff;
  border-radius: 50%;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #eef3f7;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .35) 44%, rgba(0, 0, 0, .02)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1800&q=82") center / cover;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 70%, var(--blue-dark) 70% 100%);
  content: "";
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 560px;
  align-content: center;
  color: #fff;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
}

h1 {
  max-width: 680px;
  font-size: clamp(42px, 7vw, 78px);
  font-weight: 900;
}

h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 850;
}

.hero p {
  max-width: 560px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, .86);
  font-size: 18px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 3px;
  font-weight: 800;
}

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

.button--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .65);
}

.button--ghost-light {
  color: var(--blue-dark);
  border: 1px solid rgba(0, 120, 197, .34);
  background: #fff;
}

.section {
  padding: 76px 0;
}

.section--muted {
  background: var(--soft);
}

.section__heading {
  margin-bottom: 30px;
}

.section__heading--split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section__heading--split > a {
  color: var(--blue-dark);
  font-weight: 800;
}

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

.category {
  display: grid;
  min-height: 192px;
  align-content: start;
  gap: 13px;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: .2s ease;
}

.category:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.category__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), #2f9ddd);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 900;
}

.category strong {
  font-size: 19px;
}

.category small {
  color: var(--muted);
  font-size: 14px;
}

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

.product {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.product__image {
  display: grid;
  min-height: 230px;
  place-items: center;
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(0, 120, 197, .12), rgba(226, 31, 38, .06)),
    #f7f9fb;
}

.product__mock {
  position: relative;
  width: 156px;
  height: 156px;
}

.product__mock::before,
.product__mock::after {
  position: absolute;
  content: "";
}

.product__mock::before {
  inset: 20px;
  background: #121820;
  border-radius: 50%;
  box-shadow: inset 0 0 0 18px #1e2731, inset 0 0 0 23px #3c4651;
}

.product__mock::after {
  right: 0;
  bottom: 18px;
  width: 68px;
  height: 48px;
  background: var(--blue);
  border-radius: 4px;
  box-shadow: -76px -92px 0 -18px var(--blue-dark);
}

.product__body {
  padding: 20px;
}

.product__code {
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.product h3 {
  min-height: 54px;
  margin: 8px 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.product__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.product__price {
  color: var(--red);
  font-size: 20px;
  font-weight: 900;
}

.product button {
  min-height: 38px;
  padding: 0 14px;
  color: #fff;
  background: #20242a;
  border-radius: 3px;
  font-weight: 800;
}

.feature-band {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(14, 22, 31, .92), rgba(14, 22, 31, .76)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.feature-band__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  min-height: 330px;
  padding: 70px 0;
}

.feature-band p {
  max-width: 650px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.scenario-list {
  display: grid;
  gap: 12px;
}

.scenario {
  min-height: 54px;
  color: #fff;
  text-align: left;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 4px;
  padding: 0 18px;
  cursor: pointer;
}

.scenario.is-active {
  background: var(--blue);
  border-color: var(--blue);
}

.support {
  padding: 72px 0;
  color: #fff;
  background: var(--blue-dark);
}

.support__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.support p {
  color: rgba(255, 255, 255, .82);
}

.support-form {
  padding: 28px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 5px;
}

.support-form label {
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.support-form div {
  display: flex;
  gap: 10px;
}

.support-form input {
  min-width: 0;
  flex: 1;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 3px;
}

.support-form button {
  min-height: 46px;
  padding: 0 20px;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
  font-weight: 800;
}

.footer {
  padding: 42px 0;
  color: rgba(255, 255, 255, .78);
  background: #111820;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1.35fr .75fr 1fr;
  gap: 36px;
}

.footer strong,
.footer a,
.footer span {
  display: block;
}

.footer strong {
  margin-bottom: 10px;
  color: #fff;
}

.footer a,
.footer span {
  margin-top: 7px;
  line-height: 1.55;
}

.footer a {
  color: inherit;
}

.footer a:hover,
.footer a:focus-visible {
  color: #fff;
}

.footer__address {
  white-space: nowrap;
}

.footer .brand__mark {
  display: block;
  margin-bottom: 18px;
}

.cart-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(8, 14, 20, .48);
  opacity: 0;
  transition: opacity .22s ease;
}

.cart-backdrop.is-visible {
  opacity: 1;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(460px, 100%);
  background: #fff;
  box-shadow: -22px 0 44px rgba(17, 24, 32, .2);
  transform: translateX(100%);
  transition: transform .24s ease;
}

.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 24px 20px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer__header h2 {
  font-size: 30px;
}

.cart-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ink);
  background: var(--soft);
  border-radius: 3px;
  font-size: 28px;
  line-height: 1;
}

.cart-drawer__body {
  min-height: 0;
  overflow: auto;
  padding: 22px 24px;
}

.cart-empty {
  display: grid;
  min-height: 260px;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.cart-empty[hidden] {
  display: none;
}

.cart-empty strong {
  font-size: 20px;
}

.cart-empty p {
  max-width: 280px;
  margin: 10px 0 22px;
  color: var(--muted);
}

.cart-empty button {
  min-height: 42px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
  font-weight: 800;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.cart-item__thumb {
  position: relative;
  display: grid;
  height: 76px;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 120, 197, .14), rgba(226, 31, 38, .07)),
    #f7f9fb;
  border-radius: 4px;
}

.cart-item__thumb::before {
  width: 42px;
  height: 42px;
  background: #121820;
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px #1e2731, inset 0 0 0 13px #3c4651;
  content: "";
}

.cart-item__main {
  min-width: 0;
}

.cart-item__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__code {
  display: block;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.cart-item h3 {
  margin: 4px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.cart-item__price {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 900;
}

.cart-item__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.cart-item.is-unavailable {
  background: #fff8f7;
  border-color: #e8c8c2;
}

.cart-item__unavailable {
  margin: 8px 0 0;
  color: #a33a2b;
  font-size: 13px;
  font-weight: 800;
}

.catalog-card button:disabled,
.product button:disabled,
.cart-quantity button:disabled,
.detail-qty button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.cart-quantity {
  display: inline-grid;
  grid-template-columns: 36px 40px 36px;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.cart-quantity button {
  height: 36px;
  color: var(--ink);
  background: #fff;
  font-size: 18px;
}

.cart-quantity span {
  display: grid;
  height: 36px;
  place-items: center;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-weight: 800;
}

.cart-remove {
  color: var(--muted);
  background: transparent;
  font-size: 13px;
  font-weight: 800;
}

.cart-remove-confirm {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  color: #333;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
}

.cart-remove-confirm div {
  display: inline-flex;
  gap: 8px;
}

.cart-remove-confirm button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 3px;
  cursor: pointer;
  outline: 0;
  font-size: 12px;
  font-weight: 900;
}

.cart-remove-confirm button:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 120, 197, .22);
}

.cart-remove-confirm__cancel {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.cart-remove-confirm__ok {
  color: #fff;
  background: var(--red);
  border: 0;
}

.login-page {
  background: #f7f9fb;
}

.login-hero {
  padding: 58px 0 44px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .72));
  border-bottom: 1px solid var(--line);
}

.login-hero__inner {
  max-width: 720px;
}

.login-hero h1 {
  margin: 8px 0 12px;
  color: #151b22;
  font-size: clamp(34px, 5vw, 54px);
}

.login-hero p {
  max-width: 620px;
  color: #4e5964;
  line-height: 1.75;
}

.login-section {
  padding: 56px 0 76px;
}

.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
  align-items: start;
}

.login-page.is-member-logged-in .login-layout {
  grid-template-columns: minmax(0, 900px);
}

.login-page.is-member-logged-in #login-form {
  display: none !important;
}

.login-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.login-panel[hidden],
.member-panel[hidden] {
  display: none !important;
}

.login-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
  box-shadow: 0 18px 38px rgba(26, 38, 51, .07);
}

.login-panel__heading {
  display: flex;
  gap: 14px;
  align-items: center;
}

.login-panel__heading > span {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.login-panel__heading h2 {
  margin: 0 0 4px;
  font-size: 26px;
}

.login-panel__heading p,
.login-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.social-login {
  display: grid;
  gap: 10px;
}

.social-login__button {
  align-items: center;
  border: 1px solid #d8dde3;
  border-radius: 4px;
  display: flex;
  font-weight: 900;
  gap: 12px;
  justify-content: center;
  min-height: 46px;
  padding: 0 14px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.social-login__button[aria-disabled="true"] {
  opacity: .52;
  cursor: not-allowed;
  filter: grayscale(.35);
}

.social-login__button:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(26, 38, 51, .08);
  transform: translateY(-1px);
}

.social-login__button span {
  align-items: center;
  border-radius: 3px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 13px;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 5px;
}

.social-login__button--google {
  background: #fff;
  color: #1f2933;
}

.social-login__button--google span {
  color: #4285f4;
  border: 1px solid #d8dde3;
}

.social-login__button--line {
  background: #06c755;
  border-color: #06c755;
  color: #fff;
}

.social-login__button--line span {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-size: 11px;
}

.social-login__button--apple {
  background: #111820;
  border-color: #111820;
  color: #fff;
}

.social-login__button--apple span {
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 18px;
}

.login-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 12px;
  grid-template-columns: 1fr auto 1fr;
}

.login-divider::before,
.login-divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}

.login-panel label:not(.login-check) {
  display: grid;
  gap: 8px;
  color: #242a31;
  font-weight: 800;
}

.login-panel input[type="email"],
.login-panel input[type="password"] {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  outline: 0;
}

.login-panel input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 120, 197, .12);
}

.login-check {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #3a444f;
  font-weight: 700;
}

.login-message {
  min-height: 22px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.login-submit {
  min-height: 46px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 900;
}

.member-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.member-summary div {
  display: grid;
  gap: 5px;
  padding: 14px;
  background: #f7f9fb;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.member-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.member-summary dd {
  margin: 0;
  color: #151b22;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.member-panel__heading .member-logout {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 40px;
  padding: 0 20px;
}

.member-orders {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.member-orders__heading,
.member-order-card header,
.member-order-card footer {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.member-orders__heading h2,
.member-order-card h3,
.member-order-card p {
  margin: 0;
}

.member-orders__heading h2 {
  margin-top: 4px;
  font-size: 25px;
}

.member-orders__message {
  margin: 0;
  color: var(--muted);
}

.member-orders__status {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.member-orders__status .admin-button {
  flex: 0 0 auto;
}

.member-order-list {
  display: grid;
  gap: 16px;
}

.member-order-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
}

.member-order-card header h3 {
  margin-top: 4px;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.member-order-card header span,
.member-order-card__status,
.member-order-card li div span,
.member-order-card li small {
  color: var(--muted);
  font-size: 13px;
}

.member-order-card__status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-order-card__status span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef6fb;
  color: var(--blue-dark);
  font-weight: 800;
}

.member-order-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.member-order-card li {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding-top: 10px;
  border-top: 1px solid #edf0f2;
}

.member-order-card li img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  background: #f7f9fb;
}

.member-order-card li div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.member-order-card li strong {
  overflow-wrap: anywhere;
}

.member-order-card li small {
  color: var(--blue-dark);
  font-weight: 800;
}

.member-order-card footer {
  padding-top: 4px;
}

.member-order-card footer p {
  color: #435160;
  font-weight: 800;
}

.member-order-card footer .button {
  flex: 0 0 auto;
}

.member-order-card__actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.member-order-card__notice {
  margin: -4px 0 0;
  padding: 10px 12px;
  border-radius: 4px;
  background: #eef6fb;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.member-order-card__notice.is-error {
  background: #fff3f2;
  color: #a23a30;
}

.member-orders__pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.member-orders__pagination[hidden] {
  display: none !important;
}

.member-orders__pagination button {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #26313c;
  cursor: pointer;
  font-weight: 800;
}

.member-orders__pagination button:hover:not(:disabled),
.member-orders__pagination button[aria-current="page"] {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.member-orders__pagination button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.member-orders__ellipsis {
  color: var(--muted);
  padding: 0 2px;
}

.member-prefill-note {
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
}

.checkout-reorder-notice {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #b9d8ec;
  border-radius: 5px;
  background: #eef7fc;
  color: #184f72;
  font-weight: 800;
  line-height: 1.65;
}

.oauth-complete {
  align-items: center;
  display: grid;
  min-height: 100vh;
  padding: 24px;
  text-align: center;
}

.oauth-complete > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 18px 38px rgba(26, 38, 51, .07);
  margin: 0 auto;
  max-width: 360px;
  padding: 28px;
  width: 100%;
}

.oauth-complete strong {
  color: var(--blue-dark);
  display: block;
  font-size: 24px;
  margin-bottom: 8px;
}

.oauth-complete p {
  color: var(--muted);
  margin: 0;
}

.cart-summary {
  padding: 20px 24px 24px;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -14px 28px rgba(26, 38, 51, .07);
}

.shipping-progress {
  margin-bottom: 16px;
}

.shipping-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.shipping-progress__label strong {
  color: var(--blue-dark);
}

.shipping-progress__track {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  background: var(--soft);
  border-radius: 99px;
}

.shipping-progress__track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--blue-dark));
  border-radius: inherit;
  transition: width .22s ease;
}

.cart-totals {
  display: grid;
  gap: 9px;
  margin: 0;
}

.cart-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cart-totals dt {
  color: var(--muted);
}

.cart-totals dd {
  margin: 0;
  font-weight: 900;
}

.cart-totals__total {
  margin-top: 5px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.cart-totals__total dt {
  color: var(--ink);
  font-weight: 900;
}

.cart-totals__total dd {
  color: var(--red);
}

.cart-summary__note {
  margin: 12px 0 16px;
  color: var(--muted);
  font-size: 13px;
}

.checkout-button {
  width: 100%;
  min-height: 50px;
  color: #fff;
  background: var(--blue);
  border-radius: 3px;
  font-weight: 900;
}

.checkout-page {
  background: var(--soft);
}

.checkout-continue {
  flex: 0 0 auto;
}

.checkout-hero {
  color: #fff;
  background:
    linear-gradient(110deg, rgba(17, 24, 32, .92), rgba(17, 24, 32, .76)),
    url("https://images.unsplash.com/photo-1516035069371-29a1b244cc32?auto=format&fit=crop&w=1600&q=82") center / cover;
}

.checkout-hero__inner {
  display: grid;
  min-height: 260px;
  align-content: center;
  padding: 58px 0;
}

.checkout-hero h1 {
  font-size: clamp(42px, 6vw, 64px);
}

.checkout-hero p {
  max-width: 620px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.checkout-section {
  padding: 58px 0 32px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 32vw, 440px);
  gap: 28px;
  align-items: start;
}

.checkout-form {
  display: grid;
  gap: 18px;
}

.checkout-panel,
.checkout-summary,
.checkout-empty__inner,
.order-success__inner {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.checkout-panel {
  padding: 24px;
}

.checkout-panel__heading {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-bottom: 20px;
}

.checkout-panel__heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.checkout-panel__heading h2,
.checkout-summary h2,
.checkout-empty h2,
.order-success h2 {
  font-size: 26px;
}

.checkout-panel__heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.checkout-fields[hidden],
.delivery-fields[hidden],
.invoice-extra label[hidden] {
  display: none !important;
}

.checkout-fields label,
.checkout-field--wide,
.invoice-extra label {
  display: grid;
  gap: 8px;
}

.checkout-field--wide {
  grid-column: 1 / -1;
}

.checkout-fields span {
  color: #333941;
  font-weight: 800;
}

.checkout-fields input,
.checkout-fields textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 3px;
}

.checkout-fields input[aria-invalid="true"] {
  border-color: var(--red);
  outline: 2px solid color-mix(in srgb, var(--red) 18%, transparent);
}

.checkout-field-hint,
.checkout-field-error {
  font-size: 13px;
  line-height: 1.5;
}

.checkout-field-hint {
  color: #66717d;
}

.checkout-field-error {
  color: var(--red);
  font-weight: 800;
}

.checkout-fields textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

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

.option-card {
  position: relative;
  display: grid;
  min-height: 112px;
  align-content: start;
  gap: 8px;
  padding: 15px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}

.option-card input {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.option-card:has(input:checked) {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.option-card span {
  padding-right: 28px;
  font-weight: 900;
}

.option-card small {
  color: var(--muted);
  line-height: 1.4;
}

.shipping-method-card {
  display: grid;
  align-content: start;
  min-height: 142px;
}

.shipping-method-card b {
  align-self: end;
  margin-top: 18px;
  color: var(--blue);
  font-size: 14px;
}

.shipping-method-card.is-selected {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
  background: #f3f8ff;
}

.shipping-method-card.is-disabled {
  opacity: .58;
  background: #f4f5f6;
}

.shipping-selection-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b8d4ef;
  background: #f3f8ff;
}

.shipping-selection-summary p {
  margin: 6px 0 0;
  color: #5d6875;
}

.shipping-coupon-fields {
  margin-top: 18px;
}

.shipping-coupon-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.shipping-coupon-row .admin-button {
  min-width: 84px;
}

.admin-shipping-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 22px;
}

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

.admin-shipping-method-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 14px;
  border: 1px solid #d8dee5;
}

.admin-shipping-method-checks label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.admin-shipping-records {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.admin-shipping-record-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1100px) {
  .admin-shipping-columns {
    grid-template-columns: 1fr;
  }
}

.delivery-fields,
.invoice-extra {
  margin-top: 16px;
}

.checkout-panel-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  color: #315166;
  background: #eef7fc;
  border-left: 3px solid var(--blue);
  font-weight: 800;
}

.checkout-policy-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px;
  color: #333941;
  background: #f7f9fb;
  border: 1px solid #d8dee5;
  line-height: 1.7;
  cursor: pointer;
}

.checkout-policy-consent input {
  width: 20px;
  height: 20px;
  margin: 3px 0 0;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.checkout-policy-consent a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.checkout-policy-version {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.checkout-policy-consent:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 119, 200, .14);
}

.checkout-confirm dl,
.payment-result-details {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
}

.checkout-confirm div,
.payment-result-details div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.checkout-confirm div:last-child,
.payment-result-details div:last-child {
  border-bottom: 0;
}

.checkout-confirm dt,
.payment-result-details dt {
  color: var(--muted);
  font-weight: 900;
}

.checkout-confirm dd,
.payment-result-details dd {
  min-width: 0;
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.checkout-confirm__total,
.payment-result-details__total {
  color: var(--red);
  background: #fff8f8;
}

.checkout-error {
  min-height: 24px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.checkout-error:empty {
  display: none;
}

.place-order-button {
  min-height: 54px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 3px;
  cursor: pointer;
  font-weight: 900;
}

.place-order-button:disabled {
  cursor: wait;
  opacity: .78;
}

.ecpay-redirect-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 32, .62);
  backdrop-filter: blur(2px);
}

.ecpay-redirect-card {
  width: min(100%, 560px);
  padding: 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dfe7ee;
  box-shadow: 0 22px 70px rgba(0, 0, 0, .24);
}

.ecpay-redirect-card__mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin-bottom: 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.ecpay-redirect-card h2 {
  margin: 8px 0 10px;
  font-size: 30px;
}

.ecpay-redirect-card p {
  color: var(--muted);
  line-height: 1.7;
}

.ecpay-redirect-card dl {
  display: grid;
  margin: 22px 0;
  border: 1px solid var(--line);
}

.ecpay-redirect-card dl div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.ecpay-redirect-card dl div:last-child {
  border-bottom: 0;
}

.ecpay-redirect-card dt {
  color: var(--muted);
  font-weight: 900;
}

.ecpay-redirect-card dd {
  min-width: 0;
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.ecpay-redirect-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ecpay-redirect-card__actions .button {
  min-height: 48px;
}

.ecpay-redirect-card__actions span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-summary {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: calc(100vh - 124px);
  height: calc(100dvh - 124px);
  min-height: 560px;
  overflow: hidden;
  position: sticky;
  top: 100px;
  padding: 22px;
}

.checkout-summary__header {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary__items {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  margin: 18px 0;
  padding-right: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.checkout-summary-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-summary-item__thumb {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  flex: 0 0 64px;
  background: #fff;
  border: 1px solid #e7ebef;
}

.checkout-summary-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 6px;
  object-fit: contain;
}

.checkout-summary-item__thumb img.is-fallback {
  padding: 12px;
  opacity: .75;
}

.checkout-summary-item__main {
  min-width: 0;
  flex: 1 1 auto;
}

.checkout-summary-item span,
.checkout-summary-item small {
  display: block;
}

.checkout-summary-item span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
}

.checkout-summary-item strong {
  display: block;
  margin: 4px 0;
  line-height: 1.35;
}

.checkout-summary-item small {
  color: var(--muted);
}

.checkout-summary-item b {
  flex: 0 0 auto;
  align-self: center;
  color: var(--red);
}

.checkout-empty,
.order-success {
  padding: 72px 0;
}

.checkout-empty__inner,
.order-success__inner {
  display: grid;
  justify-items: center;
  max-width: 680px;
  padding: 48px 28px;
  text-align: center;
}

.checkout-empty__inner p,
.order-success__inner p {
  max-width: 460px;
  color: var(--muted);
}

.order-success__inner strong {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  margin: 12px 0 22px;
  padding: 0 18px;
  color: var(--blue-dark);
  background: var(--soft);
  border-radius: 3px;
  font-size: 18px;
}

.payment-result-layout {
  display: grid;
  justify-items: center;
}

.payment-result-card {
  width: min(100%, 720px);
  padding: 32px;
}

.payment-result-card h2 {
  margin-top: 0;
  font-size: 34px;
}

.payment-result-card p {
  color: var(--muted);
}

.payment-result-card[data-status="paid"] h2 {
  color: var(--blue-dark);
}

.payment-result-card[data-status="awaiting_payment"] h2 {
  color: #8a5a00;
}

.payment-result-card[data-status="failed"] h2 {
  color: var(--red);
}

.payment-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: calc(100% - 36px);
  padding: 14px 18px;
  color: #fff;
  background: #20242a;
  border-radius: 4px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  transition: .2s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 18px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 0;
  }

  .nav-links a::after {
    display: none;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-band__inner,
  .support__grid,
  .checkout-layout,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
    position: static;
  }

  .checkout-summary__items {
    max-height: min(55vh, 520px);
  }

  .option-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav__inner {
    min-height: 68px;
    gap: 12px;
  }

  .brand__region {
    display: none;
  }

  .brand--image img {
    width: 96px;
  }

  .nav-auth-links .auth-link {
    font-size: 12px;
  }

  .brand__mark {
    font-size: 32px;
  }

  .cart-button span {
    display: none;
  }

  .hero,
  .hero__content {
    min-height: 520px;
  }

  .hero__media {
    background-position: 62% center;
  }

  .category-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }

  .section__heading--split {
    align-items: start;
    flex-direction: column;
  }

  .support-form div {
    flex-direction: column;
  }

  .login-hero {
    padding: 42px 0 32px;
  }

  .login-hero h1 {
    font-size: 34px;
  }

  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 22px;
  }

  .login-panel__heading {
    align-items: flex-start;
  }

  .cart-drawer {
    width: min(100%, 420px);
  }

  .cart-drawer__header,
  .cart-drawer__body,
  .cart-summary {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .cart-item__thumb {
    height: 64px;
  }

  .cart-item__top,
  .cart-item__actions {
    align-items: start;
    flex-direction: column;
  }

  .cart-item__price {
    font-size: 15px;
  }

  .cart-summary {
    position: sticky;
    bottom: 0;
  }

  .checkout-nav-links {
    display: none;
  }

  .checkout-continue span {
    display: inline;
  }

  .checkout-hero__inner {
    min-height: 220px;
  }

  .checkout-section {
    padding: 38px 0 28px;
  }

  .checkout-panel,
  .checkout-summary {
    padding: 18px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-confirm div,
  .payment-result-details div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .checkout-panel__heading h2,
  .checkout-summary h2,
  .checkout-empty h2,
  .order-success h2 {
    font-size: 23px;
  }

  .checkout-summary__items {
    max-height: min(55vh, 440px);
  }
}

/* JJC official-style refresh */
:root {
  --blue: #0078c5;
  --blue-dark: #005e9b;
  --red: #e60012;
  --ink: #222;
  --muted: #777;
  --line: #e5e5e5;
  --soft: #f7f7f7;
  --shadow: 0 10px 24px rgba(0, 0, 0, .08);
}

body {
  font-family: "HarmonyOS_Sans_TC", "HarmonyOS Sans TC", "Noto Sans TC", "Microsoft JhengHei", Arial, sans-serif;
  background: #fff;
}

.site-nav {
  background: #fff;
  border-bottom: 1px solid #e9e9e9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
}

.nav__inner {
  min-height: 82px;
}

.brand--image {
  align-items: center;
  gap: 12px;
}

.brand--image img {
  display: block;
  width: 112px;
  height: auto;
}

.brand__region {
  color: #333;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links {
  gap: 34px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.nav-links a {
  padding: 31px 0;
}

.nav-links a::after {
  bottom: 24px;
  height: 2px;
  background: var(--blue);
}

.cart-button {
  color: #fff;
  background: var(--blue);
  border-radius: 0;
  box-shadow: none;
  font-weight: 600;
}

.cart-button strong {
  color: var(--blue);
}

.hero {
  min-height: 610px;
  background: #f6f8fb;
}

.hero__media {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, .72) 35%, rgba(255, 255, 255, .06) 62%),
    url("assets/jjc/hero-1.jpg") center / cover;
}

.hero::after {
  height: 3px;
  background: var(--blue);
}

.hero__content {
  min-height: 610px;
  color: #1f1f1f;
}

h1 {
  max-width: 560px;
  color: #111;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

.hero p {
  max-width: 500px;
  color: #555;
  font-size: 17px;
}

.button {
  border-radius: 0;
  font-weight: 600;
}

.button--primary,
.support-form button,
.checkout-button,
.place-order-button {
  background: var(--blue);
}

.button--ghost {
  color: var(--blue);
  border-color: var(--blue);
}

.section {
  padding: 70px 0;
}

.section--muted {
  background: #f7f7f7;
}

.section__heading {
  text-align: center;
}

.section__heading--split {
  text-align: left;
}

.section__heading h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 13px;
}

.section__heading h2::after {
  position: absolute;
  right: 32%;
  bottom: 0;
  left: 32%;
  height: 3px;
  background: var(--blue);
  content: "";
}

.category {
  min-height: 180px;
  border-radius: 0;
  box-shadow: none;
}

.category:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 24px rgba(0, 120, 197, .12);
}

.category__icon {
  background: var(--blue);
  border-radius: 0;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 24px;
}

.product {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.product:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 120, 197, .22);
  outline-offset: 2px;
}

.product:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.product__image {
  min-height: 246px;
  padding: 18px;
  background: #fff;
}

.product__image img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: contain;
}

.product__mock {
  display: none;
}

.product__body {
  padding: 18px 18px 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
}

.product__code {
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
}

.product h3 {
  min-height: 58px;
  margin-top: 7px;
  color: #333;
  font-size: 15px;
  font-weight: 500;
}

.product__meta {
  align-items: center;
  flex-direction: column;
  gap: 10px;
}

.product__price {
  color: #333;
  font-size: 17px;
  font-weight: 600;
}

.product button {
  min-height: 36px;
  color: #fff;
  background: var(--blue);
  border-radius: 0;
  font-weight: 600;
}

.feature-band {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .65), rgba(0, 0, 0, .15)),
    url("assets/jjc/hero-2.jpg") center / cover;
}

.scenario {
  border-radius: 0;
}

.scenario.is-active {
  background: var(--blue);
  border-color: var(--blue);
}

.support {
  background: #333;
}

.support-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .76), rgba(255, 255, 255, .18)),
    url("assets/jjc/hero-2.jpg") center / cover;
  border-bottom: 1px solid #eee;
}

.support-hero__inner {
  display: grid;
  align-content: center;
  min-height: 360px;
  max-width: 760px;
}

.support-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.support-hero p {
  max-width: 620px;
  color: #4f5964;
  font-size: 17px;
}

.support-page-section {
  padding: 72px 0;
}

.support-page-section--muted {
  background: #f7f9fb;
}

.support-page-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}

.support-page-grid--form {
  align-items: center;
}

.support-page-grid h2,
.support-page-section h2 {
  margin: 0 0 14px;
  color: #242a31;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
}

.support-page-grid p {
  margin: 0;
  color: #5f6873;
}

.support-checklist {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.support-checklist li {
  padding-left: 18px;
  color: #2f363d;
  border-left: 3px solid var(--blue);
  font-weight: 700;
}

.support-form--light {
  background: #fff;
  border: 1px solid #e7ebef;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .06);
}

.support-form--light label {
  color: #242a31;
}

.support-form--light input {
  border-color: #dfe3e8;
  background: #fff;
}

.support-form-result {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.support-form--light .support-query-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin-bottom: 14px;
}

.support-form--light .support-query-row input {
  width: 100%;
}

.support-form--light .support-query-row button {
  min-width: 84px;
}

.warranty-register-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.warranty-register-grid label {
  display: grid;
  gap: 8px;
  margin: 0;
}

.warranty-register-grid label > span {
  color: #242a31;
  font-weight: 800;
}

.warranty-register-grid input {
  width: 100%;
}

.warranty-register-form {
  max-width: 980px;
  margin: 28px auto 0;
}

.support-form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.support-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.support-form-actions button {
  min-width: 168px;
}

.support-form button:disabled {
  cursor: wait;
  opacity: .6;
}

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

.support-card,
.support-contact-card,
.support-method-list div,
.support-faq details {
  background: #fff;
  border: 1px solid #e7ebef;
}

.support-card {
  min-height: 220px;
  padding: 28px;
}

.support-card span {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  min-height: 36px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.support-card h3 {
  margin: 0 0 10px;
  color: #242a31;
  font-size: 21px;
}

.support-card p,
.support-method-list span,
.support-contact-card span,
.support-faq p {
  color: #5f6873;
}

.support-method-list {
  display: grid;
  gap: 12px;
}

.support-method-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
}

.support-method-list strong {
  color: var(--blue-dark);
}

.support-contact-card {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.support-contact-card strong {
  color: #242a31;
  font-size: 24px;
}

.support-contact-card a {
  color: var(--blue);
  font-weight: 800;
}

.support-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: support-step;
}

.support-steps li {
  min-height: 190px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e7ebef;
  counter-increment: support-step;
}

.support-steps li::before {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--blue);
  content: counter(support-step);
  font-weight: 900;
}

.support-steps strong,
.support-steps span {
  display: block;
}

.support-steps strong {
  margin-bottom: 8px;
  color: #242a31;
}

.support-steps span {
  color: #5f6873;
}

.support-faq {
  display: grid;
  gap: 12px;
}

.support-faq details {
  padding: 20px 24px;
}

.support-faq summary {
  color: #242a31;
  cursor: pointer;
  font-weight: 900;
}

.support-faq p {
  margin: 12px 0 0;
}

.about-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .97), rgba(255, 255, 255, .76), rgba(255, 255, 255, .16)),
    url("assets/jjc/about-jjc-building.jpg") center / cover;
  border-bottom: 1px solid #eee;
}

.about-hero__inner {
  display: grid;
  align-content: center;
  min-height: 420px;
  max-width: 820px;
}

.about-hero h1 {
  margin: 0;
  color: #111;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.about-hero p {
  max-width: 680px;
  color: #4f5964;
  font-size: 18px;
}

.about-section {
  padding: 76px 0;
}

.about-section--muted {
  background: #f7f9fb;
}

.about-story,
.about-service,
.about-trust {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1fr);
  gap: 48px;
  align-items: start;
}

.about-story h2,
.about-service h2,
.about-trust h2 {
  margin: 0;
  color: #242a31;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
}

.about-story__copy {
  display: grid;
  gap: 16px;
  color: #4f5964;
  font-size: 17px;
}

.about-story__copy p,
.about-service p,
.about-trust p {
  margin: 0;
  color: #5f6873;
}

.about-value-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.about-value {
  min-height: 250px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e7ebef;
}

.about-value span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 36px;
  margin-bottom: 20px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.about-value h3 {
  margin: 0 0 10px;
  color: #242a31;
  font-size: 21px;
}

.about-value p {
  margin: 0;
  color: #5f6873;
}

.about-service-list {
  display: grid;
  gap: 12px;
}

.about-service-list div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e7ebef;
}

.about-service-list strong {
  color: var(--blue-dark);
}

.about-service-list span {
  color: #5f6873;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button--ghost-light {
  color: var(--blue);
  border-color: var(--blue);
}

.footer {
  background: #2d2d2d;
}

.footer__logo {
  display: block;
  width: 112px;
  height: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.policy-hero {
  padding: 72px 0 64px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(12, 34, 52, .96), rgba(0, 119, 200, .78)),
    #12324a;
}

.policy-hero h1 {
  margin: 8px 0 14px;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
}

.policy-hero p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .86);
  font-size: 17px;
  line-height: 1.8;
}

.policy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  padding-top: 48px;
  padding-bottom: 76px;
}

.policy-index {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #f5f8fb;
  border: 1px solid var(--line);
}

.policy-index strong {
  margin-bottom: 8px;
  color: var(--ink);
}

.policy-index a {
  padding: 10px 12px;
  color: #526170;
  border-left: 3px solid transparent;
}

.policy-index a:hover,
.policy-index a:focus-visible {
  color: var(--blue);
  background: #fff;
  border-left-color: var(--blue);
}

.policy-content {
  display: grid;
  gap: 22px;
}

.policy-section,
.policy-contact {
  scroll-margin-top: 100px;
  padding: clamp(24px, 4vw, 42px);
  background: #fff;
  border: 1px solid var(--line);
}

.policy-section:focus {
  outline: 3px solid rgba(15, 121, 201, 0.32);
  outline-offset: 8px;
}

.policy-section h2,
.policy-contact h2 {
  margin: 5px 0 22px;
  font-size: clamp(28px, 4vw, 36px);
}

.policy-section h3 {
  margin: 28px 0 10px;
  font-size: 20px;
}

.policy-section p,
.policy-section li,
.policy-contact p {
  color: #4f5b67;
  line-height: 1.85;
}

.policy-section ul,
.policy-section ol {
  display: grid;
  gap: 9px;
  padding-left: 1.4em;
}

.policy-section a,
.policy-contact a {
  color: var(--blue);
  font-weight: 800;
}

.policy-contact {
  color: #fff;
  background: #12202d;
  border-color: #12202d;
}

.policy-contact p,
.policy-contact a {
  color: rgba(255, 255, 255, .84);
}

.policy-legal-details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.policy-legal-details summary {
  width: fit-content;
  color: #fff;
  font-weight: 800;
  cursor: default;
  list-style: none;
}

.policy-legal-details summary::marker,
.policy-legal-details summary::-webkit-details-marker {
  display: none;
  content: "";
}

.policy-legal-details > div {
  margin-top: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}

.policy-nav-cart {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .policy-layout {
    grid-template-columns: 1fr;
  }

  .policy-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .policy-index strong {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .policy-nav-cart {
    display: none;
  }

  .policy-hero {
    padding: 48px 0;
  }

  .policy-layout {
    gap: 20px;
    padding-top: 24px;
    padding-bottom: 44px;
  }

  .policy-index {
    grid-template-columns: 1fr;
  }

  .policy-section,
  .policy-contact {
    padding: 22px 18px;
  }
}

.cart-drawer,
.cart-empty button,
.cart-close,
.checkout-panel,
.checkout-summary,
.checkout-empty__inner,
.order-success__inner,
.option-card,
.checkout-fields input,
.checkout-fields textarea {
  border-radius: 0;
}

.cart-item__thumb {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 0;
}

.cart-item__thumb::before {
  display: none;
}

.cart-item__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__code,
.checkout-summary-item span {
  color: var(--blue);
}

.checkout-page {
  background: #f7f7f7;
}

.checkout-hero {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .55), rgba(255, 255, 255, .08)),
    url("assets/jjc/hero-3.jpg") center / cover;
}

.checkout-hero h1 {
  color: #111;
}

.checkout-hero p {
  color: #555;
}

.checkout-panel__heading > span {
  background: var(--blue);
}

.option-card:has(input:checked) {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.checkout-summary-item {
  align-items: center;
}

.checkout-summary-item__thumb {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
}

@media (max-width: 980px) {
  .nav-links {
    top: 82px;
  }
}

@media (max-width: 640px) {
  .brand--image img,
  .footer__logo {
    width: 92px;
  }

  .hero,
  .hero__content {
    min-height: 520px;
  }

  .hero__media,
  .checkout-hero {
    background-position: 60% center;
  }

  .product__image img {
    height: 220px;
  }
}

.products-page {
  background: #fff;
}

.nav-links a.is-current::after {
  opacity: 1;
  transform: scaleX(1);
}

.products-hero {
  background: linear-gradient(90deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .78), rgba(255, 255, 255, .2));
  border-bottom: 1px solid #eee;
}

.products-hero__inner {
  display: grid;
  min-height: 280px;
  align-content: center;
  padding: 54px 0;
}

.products-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
}

.products-hero p {
  max-width: 540px;
  color: #555;
}

.products-shell {
  padding: 54px 0 76px;
  background: #fff;
}

.products-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.products-sidebar {
  position: sticky;
  top: 104px;
  border: 1px solid #e8e8e8;
  background: #fff;
}

.products-sidebar__title {
  padding: 18px 20px;
  color: #fff;
  background: #333;
  font-size: 20px;
  font-weight: 600;
}

.category-filter {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 0 20px;
  color: #555;
  text-align: left;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.category-filter:hover,
.category-filter.is-active {
  color: var(--blue);
  background: #f7fbfe;
}

.products-sidebar__group {
  display: grid;
  gap: 9px;
  padding: 20px;
}

.products-sidebar__group strong {
  color: #333;
}

.products-sidebar__group span {
  color: #777;
  font-size: 14px;
}

.products-content {
  min-width: 0;
}

.products-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.products-toolbar h2 {
  font-size: 32px;
}

.products-tools {
  display: flex;
  gap: 12px;
  align-items: end;
}

.products-tools label {
  display: grid;
  gap: 6px;
}

.products-tools span {
  color: #777;
  font-size: 13px;
}

.products-tools select,
.products-tools input {
  min-height: 42px;
  min-width: 170px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0;
}

.products-count {
  margin: 0 0 18px;
  color: #777;
  font-size: 14px;
}

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

.catalog-card {
  background: #fff;
  border: 1px solid #eee;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.catalog-card:hover,
.catalog-card:focus-within {
  border-color: var(--blue);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .08);
  transform: translateY(-3px);
}

.catalog-card__image {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 238px;
  place-items: center;
  padding: 18px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.catalog-card__image img {
  display: block;
  width: 100%;
  height: 202px;
  object-fit: contain;
}

.catalog-card__image span {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 48px;
  padding: 4px 8px;
  color: #fff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.catalog-card__body {
  display: grid;
  gap: 7px;
  padding: 18px;
  text-align: center;
}

.catalog-card__body h3 {
  min-height: 58px;
  margin: 0;
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.catalog-card__body small {
  color: #888;
}

.catalog-card__footer {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 6px;
}

.catalog-card__footer strong {
  color: #333;
}

.catalog-card__footer button,
.product-detail__content button {
  min-height: 36px;
  padding: 0 16px;
  color: #fff;
  background: var(--blue);
  border: 0;
  border-radius: 0;
  cursor: pointer;
  font-weight: 600;
}

.product-dialog {
  width: min(900px, calc(100% - 32px));
  padding: 0;
  border: 0;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.product-dialog::backdrop {
  background: rgba(0, 0, 0, .45);
}

.product-dialog__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: #f5f5f5;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}

.product-detail {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 28px;
  padding: 34px;
  background: #fff;
}

.product-detail__image {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid #eee;
}

.product-detail__image img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
}

.product-detail__content {
  display: grid;
  align-content: center;
  gap: 14px;
}

.product-detail__content h2 {
  font-size: 28px;
}

.product-detail__content p {
  color: #666;
}

.product-detail__content dl {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.product-detail__content dl div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.product-detail__content dt {
  color: #777;
}

.product-detail__content dd {
  margin: 0;
  color: #333;
  font-weight: 600;
  text-align: right;
}

.detail-page {
  background: #fff;
}

.detail-crumbs {
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.detail-crumbs .container {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  color: #7a828c;
  font-size: 14px;
}

.detail-crumbs a:hover {
  color: var(--blue);
}

.detail-crumbs strong {
  color: #2b3138;
  font-weight: 700;
}

.detail-shell {
  padding: 52px 0 44px;
}

.product-detail-page {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
  gap: 52px;
  align-items: start;
}

.detail-gallery {
  min-width: 0;
}

.detail-gallery__stage {
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid #e7ebef;
  background: #fff;
}

.detail-gallery__stage img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.detail-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.detail-gallery__thumbs button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid #e4e7eb;
  background: #fff;
  cursor: pointer;
}

.detail-gallery__thumbs button.is-active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.detail-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-summary {
  position: sticky;
  top: 104px;
  min-width: 0;
}

.detail-summary__category {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-summary h1 {
  margin: 0;
  color: #242a31;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: 0;
}

.detail-summary__desc {
  margin: 18px 0 0;
  color: #5f6873;
  font-size: 16px;
}

.detail-summary__price {
  margin: 22px 0;
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
}

.detail-meta {
  display: grid;
  gap: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #edf0f3;
}

.detail-meta div:last-child {
  border-bottom: 0;
}

.detail-meta dt {
  color: #858d96;
  font-weight: 700;
}

.detail-meta dd {
  margin: 0;
  color: #2c333b;
  font-weight: 700;
}

.detail-options {
  margin-bottom: 24px;
}

.detail-options h2 {
  margin: 0 0 14px;
  color: #242a31;
  font-size: 18px;
}

.detail-options fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.detail-options legend {
  margin-bottom: 10px;
  color: #737b85;
  font-size: 14px;
  font-weight: 700;
}

.detail-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-swatches button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #2f363d;
  cursor: pointer;
}

.detail-swatches button.is-active {
  border-color: var(--blue);
  color: var(--blue-dark);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.detail-swatches .detail-swatch__image {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  object-fit: contain;
  border: 1px solid #e0e5ea;
  border-radius: 5px;
  background: #fff;
}

.detail-swatches .detail-swatch__label {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
}

.detail-swatches span {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(0, 0, 0, .16);
  border-radius: 50%;
}

.detail-purchase {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.detail-qty {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  align-items: stretch;
  min-height: 46px;
  border: 1px solid #dfe3e8;
}

.detail-qty button {
  border: 0;
  background: #f6f8fa;
  color: #2f363d;
  cursor: pointer;
}

.detail-qty strong {
  display: grid;
  place-items: center;
  border-right: 1px solid #dfe3e8;
  border-left: 1px solid #dfe3e8;
}

.detail-add {
  min-height: 46px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.detail-add:hover {
  background: var(--blue-dark);
}

.detail-service {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 16px 18px;
  color: #59636e;
  background: #f7f9fb;
  border: 1px solid #e8edf2;
  list-style-position: inside;
}

.detail-info {
  padding: 10px 0 58px;
}

.detail-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.detail-tabs button {
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #67717d;
  font-weight: 900;
  cursor: pointer;
}

.detail-tabs button.is-active {
  color: var(--blue-dark);
  border-color: var(--blue);
}

.detail-panel {
  display: none;
  padding: 32px 0 0;
}

.detail-panel.is-active {
  display: block;
}

.detail-copy {
  max-width: 940px;
  color: #4f5964;
  font-size: 16px;
}

.detail-copy p {
  margin: 0 0 14px;
}

.detail-copy h3 {
  margin: 28px 0 12px;
  color: #252b32;
  font-size: 22px;
}

.detail-copy ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
  margin: 0 0 28px;
  padding-left: 20px;
}

.detail-copy img {
  display: block;
  width: min(100%, 980px);
  margin: 18px 0;
  border: 1px solid #eef1f4;
}

.detail-spec-table {
  width: min(760px, 100%);
  border-collapse: collapse;
  color: #2f363d;
}

.detail-spec-table th,
.detail-spec-table td {
  padding: 15px 18px;
  border: 1px solid #e4e9ee;
  text-align: left;
}

.detail-spec-table th {
  width: 180px;
  background: #f7f9fb;
  color: #68727e;
}

.detail-review {
  width: min(760px, 100%);
  padding: 24px;
  border: 1px solid #e4e9ee;
  background: #fbfcfd;
}

.related-products {
  padding: 56px 0 74px;
  background: #f7f9fb;
}

.related-products .section-head {
  margin-bottom: 24px;
}

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

@media (max-width: 980px) {
  .products-layout {
    grid-template-columns: 1fr;
  }

  .products-sidebar {
    position: static;
  }

  .products-toolbar {
    align-items: start;
    flex-direction: column;
  }

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

  .product-detail-page {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .detail-summary {
    position: static;
  }

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

  .support-page-grid,
  .support-card-grid,
  .support-steps,
  .about-story,
  .about-service,
  .about-trust,
  .about-value-grid {
    grid-template-columns: 1fr;
  }

  .support-page-grid,
  .about-story,
  .about-service,
  .about-trust {
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .products-hero__inner {
    min-height: 220px;
  }

  .products-tools {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .products-tools select,
  .products-tools input {
    width: 100%;
    min-width: 0;
  }

  .products-grid,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail {
    padding: 22px;
  }

  .product-detail__image {
    min-height: 260px;
  }

  .product-detail__image img {
    height: 240px;
  }

  .detail-shell {
    padding: 28px 0 32px;
  }

  .detail-gallery__stage {
    min-height: 330px;
  }

  .detail-gallery__stage img {
    max-height: 330px;
  }

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

  .detail-summary h1 {
    font-size: 30px;
  }

  .detail-purchase {
    grid-template-columns: 1fr;
  }

  .detail-tabs {
    overflow-x: auto;
  }

  .detail-tabs button {
    flex: 0 0 auto;
    padding: 0 18px;
  }

  .detail-copy ul,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .detail-meta div,
  .detail-spec-table th,
  .detail-spec-table td {
    display: block;
    width: 100%;
  }

  .support-hero__inner {
    min-height: 280px;
  }

  .about-hero__inner {
    min-height: 320px;
  }

  .support-page-section {
    padding: 48px 0;
  }

  .about-section {
    padding: 50px 0;
  }

  .support-form--light div,
  .support-method-list div,
  .about-service-list div {
    grid-template-columns: 1fr;
  }

  .support-form--light div {
    display: grid;
  }

  .support-card,
  .support-contact-card,
  .support-steps li,
  .support-faq details,
  .about-value {
    padding: 20px;
  }

  .about-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .about-actions .button {
    width: 100%;
  }
}
.product-editor-tabs {
  display: flex;
  gap: 8px;
  padding: 0 0 16px;
  overflow-x: auto;
}

.product-editor-tabs button {
  border: 1px solid #d4dce6;
  border-radius: 999px;
  background: #fff;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
}

.product-editor-tabs button.is-active {
  color: #fff;
  border-color: #0e76bc;
  background: #0e76bc;
}

.product-editor-panel {
  margin-bottom: 16px;
}

.product-legacy-field,
.product-legacy-fields {
  display: none;
}

.admin-help {
  margin: 0 0 12px;
  color: #68778a;
  font-size: 13px;
}

.product-option-list,
.product-image-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.product-option-row {
  display: grid;
  grid-template-columns: minmax(140px, .55fr) minmax(220px, 1fr) auto;
  gap: 8px;
}

.product-option-row input,
.product-image-toolbar input,
.product-variant-table input,
.product-variant-table select {
  width: 100%;
  border: 1px solid #cdd7e3;
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff;
  color: #17202b;
  font: inherit;
}

.product-variant-table {
  min-width: 980px;
}

.product-variant-table th,
.product-variant-table td {
  vertical-align: top;
}

.product-variant-options {
  min-width: 180px;
}

.product-variant-options label {
  display: grid;
  gap: 3px;
  margin-bottom: 6px;
}

.product-variant-table td > small {
  display: block;
  margin-top: 5px;
  color: #68778a;
  white-space: nowrap;
}

.product-image-toolbar {
  display: grid;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  gap: 8px;
  margin-bottom: 14px;
}

.product-image-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-image-list {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.product-image-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border: 1px solid #d9e1ea;
  border-radius: 10px;
  background: #fff;
  cursor: grab;
}

.product-image-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f3f6f9;
  border-radius: 7px;
}

.product-image-card span {
  font-size: 12px;
  font-weight: 800;
  color: #0e76bc;
}

.product-image-card button {
  border: 0;
  background: #eef3f8;
  border-radius: 6px;
  padding: 6px;
  cursor: pointer;
}

@media (max-width: 720px) {
  .product-option-row,
  .product-image-toolbar {
    grid-template-columns: 1fr;
  }
}

.admin-import-batch {
  gap: 16px;
}

#import-form-legacy {
  display: none !important;
}

.import-preview {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dce3eb;
}

.import-preview-row {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d9e1ea;
  border-radius: 12px;
  background: #f8fafc;
}

.import-preview-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.import-preview-images img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  flex: 0 0 auto;
  border: 1px solid #d9e1ea;
  border-radius: 8px;
  background: #fff;
}

/* Unified admin UI controls and spacing */
.admin-page,
.admin-login-page {
  --admin-control-height: 44px;
  --admin-compact-control-height: 36px;
  --admin-control-radius: 8px;
  --admin-control-border: #cbd5df;
  --admin-control-background: #ffffff;
  --admin-control-focus: #111820;
  --admin-control-focus-ring: rgba(17, 24, 32, .1);
  --admin-space-xs: 8px;
  --admin-space-sm: 12px;
  --admin-space-md: 16px;
  --admin-space-lg: 24px;
}

.admin-page :where(input, select, textarea, button),
.admin-login-page :where(input, select, textarea, button) {
  font: inherit;
}

.admin-form {
  gap: var(--admin-space-md);
}

.admin-form__row {
  gap: var(--admin-space-md);
}

.admin-form label,
.admin-login__form label,
.admin-order-filters label,
.admin-inline-form label,
.admin-confirm-modal__form label {
  min-width: 0;
  gap: var(--admin-space-xs);
  line-height: 1.4;
}

.admin-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.admin-form select,
.admin-panel__head input,
.admin-search,
.admin-login__form input,
.admin-order-filters input,
.admin-order-filters select,
.admin-inline-form input,
.admin-confirm-modal__form input,
.admin-manual-refund-form input,
.product-option-row input,
.product-image-toolbar input,
.product-variant-table input,
.product-variant-table select {
  width: 100%;
  min-height: var(--admin-control-height);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-control-radius);
  background: var(--admin-control-background);
  color: #18212a;
  padding: 0 12px;
}

.admin-form textarea {
  width: 100%;
  min-height: 112px;
  resize: vertical;
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-control-radius);
  background: var(--admin-control-background);
  color: #18212a;
  padding: 11px 12px;
}

.admin-page :where(input, select, textarea):focus-visible,
.admin-login-page :where(input, select, textarea):focus-visible {
  border-color: var(--admin-control-focus);
  box-shadow: 0 0 0 3px var(--admin-control-focus-ring);
  outline: none;
}

.admin-page :where(input, select, textarea):disabled,
.admin-login-page :where(input, select, textarea):disabled,
.admin-page :where(input, textarea)[readonly] {
  background: #f1f4f7;
  color: #657281;
  cursor: not-allowed;
}

.admin-page input[type="checkbox"],
.admin-page input[type="radio"] {
  appearance: auto;
  accent-color: #111820;
  block-size: 18px;
  inline-size: 18px;
  min-height: 0;
  flex: 0 0 18px;
  margin: 0;
  padding: 0;
}

.admin-checkbox {
  min-height: 40px;
  width: fit-content;
}

.admin-button,
.admin-page .admin-row-button,
.admin-login-page .admin-row-button {
  align-items: center;
  justify-content: center;
  min-height: var(--admin-control-height);
  border-radius: var(--admin-control-radius);
  padding: 0 16px;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.admin-row-button {
  min-height: var(--admin-compact-control-height);
  padding-inline: 12px;
}

.admin-page .admin-button:focus-visible,
.admin-page .admin-row-button:focus-visible,
.admin-login-page .admin-button:focus-visible,
.admin-login-page .admin-row-button:focus-visible,
.admin-modal__close:focus-visible {
  box-shadow: 0 0 0 3px var(--admin-control-focus-ring);
  outline: 2px solid var(--admin-control-focus);
  outline-offset: 1px;
}

.admin-page .admin-button:disabled,
.admin-page .admin-row-button:disabled,
.admin-login-page .admin-button:disabled,
.admin-login-page .admin-row-button:disabled {
  cursor: not-allowed;
}

.admin-form__actions,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-panel {
  border-radius: 10px;
  padding: var(--admin-space-lg);
}

.admin-panel__head {
  align-items: flex-start;
  gap: var(--admin-space-md);
  margin-bottom: 20px;
  padding-bottom: var(--admin-space-md);
}

.admin-panel__head h2 {
  margin-bottom: 0;
}

.admin-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-gutter: stable;
}

.admin-table th {
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  padding: 12px;
}

.admin-status,
.admin-local-badge {
  white-space: nowrap;
}

.admin-list-footer {
  min-height: 68px;
}

.admin-list-footer > span {
  min-width: 0;
}

.admin-list-item:not(button) {
  cursor: default;
}

.admin-confirm-modal__form input {
  min-height: var(--admin-control-height);
  border-radius: var(--admin-control-radius);
}

/* Shipping settings: keep the two editors side by side without squeezing fields */
.admin-shipping-method-table {
  min-width: 680px;
  table-layout: fixed;
}

.admin-shipping-method-table th:nth-child(1) {
  width: 38%;
}

.admin-shipping-method-table th:nth-child(2) {
  width: 14%;
}

.admin-shipping-method-table th:nth-child(3),
.admin-shipping-method-table th:nth-child(4) {
  width: 24%;
}

.admin-shipping-method-table td {
  vertical-align: middle;
}

.admin-shipping-method-table td small {
  display: block;
  margin-top: 4px;
  color: #657281;
}

.admin-shipping-method-table input[type="number"] {
  width: min(100%, 180px);
  min-height: var(--admin-control-height);
  border: 1px solid var(--admin-control-border);
  border-radius: var(--admin-control-radius);
  background: var(--admin-control-background);
  padding: 0 12px;
}

.admin-shipping-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: var(--admin-space-lg);
  margin-top: var(--admin-space-lg);
}

.admin-shipping-columns > .admin-panel {
  min-width: 0;
}

.admin-shipping-form {
  grid-template-columns: minmax(0, 1fr);
  gap: var(--admin-space-md);
}

.admin-shipping-method-checks {
  display: grid;
  grid-template-columns: repeat(3, minmax(max-content, 1fr));
  gap: 8px 16px;
  min-width: 0;
  padding: 12px 14px 14px;
  border-radius: var(--admin-control-radius);
}

.admin-shipping-method-checks label {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-shipping-form .admin-form__actions {
  grid-column: 1 / -1;
  padding-top: 4px;
}

.admin-shipping-records {
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5ebf0;
}

.admin-shipping-records .admin-list-item {
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}

.admin-shipping-records .admin-list-item > span:first-child {
  min-width: 0;
}

.admin-shipping-records .admin-list-item strong,
.admin-shipping-records .admin-list-item small {
  overflow-wrap: anywhere;
}

.admin-shipping-record-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
}

@media (min-width: 1600px) {
  .admin-shipping-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 768px) {
  .admin-form__row,
  .admin-shipping-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-panel {
    padding: 18px;
  }

  .admin-panel__head,
  .admin-list-footer,
  .admin-shipping-records .admin-list-item {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-list-footer {
    padding: 16px 0 0;
  }

  .admin-list-footer .admin-button,
  .admin-form__actions .admin-button {
    flex: 1 1 160px;
  }

  .admin-list-footer .admin-button {
    width: 100%;
    flex: none;
  }

  .admin-shipping-record-actions {
    width: 100%;
  }

  .admin-shipping-record-actions .admin-button,
  .admin-shipping-record-actions .admin-row-button {
    flex: 1 1 0;
  }
}

@media (max-width: 520px) {
  .admin-shipping-method-checks {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-form__actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-form__actions .admin-button {
    width: 100%;
    flex: none;
  }
}

/* Product editor workspace */
#product-modal {
  width: calc(100vw - 24px);
  max-width: calc(100vw - 24px);
  height: calc(100vh - 24px);
  max-height: calc(100vh - 24px);
  border-radius: 12px;
}

#product-form {
  height: 100%;
  max-height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

#product-form .admin-modal__header,
#product-form .admin-modal__footer {
  flex: 0 0 auto;
  padding: 14px 20px;
}

#product-form .admin-modal__body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0 20px 18px;
}

#product-form .product-editor-tabs {
  position: relative;
  z-index: 1;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8ee;
  background: #f6f8fa;
  scrollbar-width: thin;
}

#product-form .product-editor-tabs button {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 8px;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

#product-form .product-editor-tabs button:focus-visible {
  outline: 2px solid #111820;
  outline-offset: 2px;
}

#product-form .product-editor-panel {
  display: none;
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 16px;
  overflow: auto;
  padding: 18px 4px 4px 0;
  scrollbar-gutter: stable;
}

#product-form .product-editor-panel.is-active {
  display: grid;
}

#product-form .product-base-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, .75fr);
  gap: 16px;
  align-items: start;
}

#product-form .product-basic-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#product-form .product-display-settings {
  align-content: start;
}

#product-form .product-content-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#product-form .product-content-fields label {
  min-width: 0;
}

#product-form .product-content-fields textarea {
  min-height: min(420px, calc(100vh - 300px));
}

#product-form .product-editor-panel--variants {
  grid-template-rows: max-content max-content;
}

#product-form .product-editor-panel--variants > .admin-fieldset {
  min-width: 0;
}

#product-form .product-editor-panel--variants > .admin-fieldset:last-child {
  align-self: start;
  height: max-content;
  min-height: max-content;
}

#product-form .product-editor-panel--variants .admin-table-wrap {
  height: max-content;
  max-height: none;
  border: 1px solid #e1e7ed;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: visible;
}

#product-form .product-variant-table {
  width: 100%;
  min-width: 1260px;
  table-layout: fixed;
}

#product-form .product-variant-col--options {
  width: 15%;
}

#product-form .product-variant-col--code {
  width: 15%;
}

#product-form .product-variant-col--barcode {
  width: 16%;
}

#product-form .product-variant-col--price {
  width: 12%;
}

#product-form .product-variant-col--stock {
  width: 17%;
}

#product-form .product-variant-col--status {
  width: 9%;
}

#product-form .product-variant-col--actions {
  width: 16%;
}

#product-form .product-variant-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8fa;
}

#product-form .product-variant-table td:last-child {
  min-width: 0;
}

#product-form .product-variant-table th,
#product-form .product-variant-table td {
  padding: 12px 10px;
  vertical-align: top;
}

#product-form .product-variant-table td input:not([type="checkbox"]),
#product-form .product-variant-table td select {
  width: 100%;
  min-width: 0;
}

#product-form .product-variant-table .admin-checkbox {
  display: inline-flex;
  min-width: 76px;
  min-height: 44px;
  align-items: center;
  white-space: nowrap;
}

#product-form .product-variant-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#product-form .product-variant-actions .admin-row-button,
#product-form .product-variant-actions .product-image-upload {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding-inline: 8px;
}

#product-form .product-variant-options {
  min-width: 0;
}

#product-form .product-variant-options label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

#product-form .product-variant-options label > small {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#product-form .product-variant-options label:last-child {
  margin-bottom: 0;
}

#product-form .product-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid #dce4eb;
  border-radius: 10px;
  background: #fff;
}

#product-form .product-option-row__head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 10px;
  align-items: end;
}

#product-form .product-option-values {
  display: grid;
  gap: 10px;
}

#product-form .product-option-value-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) auto auto auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid #e3e9ef;
  border-radius: 8px;
  background: #f8fafc;
}

#product-form .product-option-value-image {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  align-self: end;
  border: 1px dashed #c8d2dc;
  border-radius: 8px;
  background: #fff;
  color: #778492;
  font-size: 11px;
  font-weight: 700;
}

#product-form .product-option-value-image.has-image {
  border-style: solid;
}

#product-form .product-option-value-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#product-form .product-option-value-row .product-image-upload,
#product-form .product-option-value-row .admin-row-button {
  min-height: 44px;
  margin: 0;
}

#product-form .product-option-value-add {
  justify-self: start;
}

#product-form .product-image-toolbar {
  grid-template-columns: auto minmax(320px, 1fr) auto;
  align-items: center;
  gap: 10px;
}

#product-form .product-image-list {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  align-content: start;
}

#product-form .product-image-card {
  cursor: grab;
}

.checkout-readiness {
  padding: 24px 0 0;
}

.commerce-public-notice {
  padding: 12px 0;
  border-bottom: 1px solid #d8e6f2;
  background: #eef7fd;
  color: #244861;
}

.commerce-public-notice .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.commerce-public-notice a {
  color: var(--blue, #087bc1);
  font-weight: 800;
  white-space: nowrap;
}

.checkout-readiness__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 30px;
  border: 1px solid #b9d6ee;
  border-left: 5px solid var(--blue, #087bc1);
  background: #f2f8fd;
}

.checkout-readiness__card h2,
.checkout-readiness__card p {
  margin: 0;
}

.checkout-readiness__card h2 + p {
  margin-top: 8px;
  color: #55697a;
}

.checkout-form.is-checkout-unavailable {
  opacity: .62;
}

.admin-readiness__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.admin-readiness__grid article {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 16px;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-readiness__grid article span {
  color: #5b6c7e;
  font-size: 13px;
}

.admin-readiness__grid article strong {
  font-size: 16px;
}

.admin-readiness__grid article.is-ready {
  border-color: #b9dfce;
  background: #f2faf6;
  color: #166a48;
}

.admin-readiness__grid article.is-pending {
  border-color: #ecd8ad;
  background: #fffaf0;
  color: #8b5b0b;
}

.admin-readiness__summary {
  margin: 16px 0 0;
  color: #5b6c7e;
}

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

@media (max-width: 720px) {
  .checkout-readiness__card {
    align-items: stretch;
    flex-direction: column;
    padding: 22px;
  }

  .checkout-readiness__card .button {
    width: 100%;
  }

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

@media (max-width: 1080px) {
  #product-form .product-base-layout,
  #product-form .product-content-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  #product-form .product-content-fields textarea {
    min-height: 180px;
  }

  #product-form .product-option-value-row {
    grid-template-columns: 64px minmax(180px, 1fr) repeat(2, auto);
  }

  #product-form .product-option-value-row > .admin-row-button:last-child {
    grid-column: 2 / -1;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  #product-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  #product-form .admin-modal__header,
  #product-form .admin-modal__footer {
    padding: 12px 14px;
  }

  #product-form .admin-modal__body {
    padding: 0 14px 14px;
  }

  #product-form .product-basic-fields,
  #product-form .product-image-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  #product-form .product-option-row__head,
  #product-form .product-option-value-row {
    grid-template-columns: minmax(0, 1fr);
  }

  #product-form .product-option-value-image {
    width: 72px;
    height: 72px;
  }

  #product-form .product-option-value-row > .admin-row-button:last-child {
    grid-column: auto;
    justify-self: stretch;
  }

  #product-form .product-editor-panel {
    padding-top: 14px;
  }

  #product-form .product-editor-panel--variants .admin-table-wrap {
    max-height: none;
  }

  #product-form .admin-modal__footer {
    flex-wrap: wrap;
  }

  #product-form .admin-modal__footer .admin-button:not(.admin-modal__delete) {
    flex: 1 1 140px;
  }
}

.admin-inventory-table {
  min-width: 880px;
}

.admin-inventory-table th:nth-child(1) { width: 21%; }
.admin-inventory-table th:nth-child(2) { width: 17%; }
.admin-inventory-table th:nth-child(3) { width: 12%; }
.admin-inventory-table th:nth-child(4) { width: 112px; }
.admin-inventory-table th:nth-child(5),
.admin-inventory-table th:nth-child(6) { width: 78px; }
.admin-inventory-table th:nth-child(7) { width: 82px; }
.admin-inventory-table th:nth-child(8) { width: 76px; }

.admin-inventory-table td {
  vertical-align: middle;
}

.admin-inventory-table td strong,
.admin-inventory-table td small {
  display: block;
}

.admin-inventory-table td small {
  margin-top: 4px;
  color: #68788a;
}

.admin-inventory-input {
  width: 104px;
  min-width: 104px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #cbd6e1;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.admin-inventory-input:focus {
  border-color: #087bc1;
  outline: 3px solid rgba(8, 123, 193, .14);
}

.admin-inventory-missing {
  color: #9a650b;
  font-weight: 700;
  white-space: nowrap;
}

.admin-inventory-feedback {
  min-height: 24px;
  margin: 14px 0 0;
  color: #31566f;
}

.admin-inventory-upload {
  cursor: pointer;
}

.admin-inventory-import-modal {
  width: min(1080px, calc(100vw - 32px));
  max-width: 1080px;
  height: min(820px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
}

.admin-inventory-import-modal .admin-modal__form {
  height: 100%;
  max-height: 100%;
}

.admin-inventory-import-modal .admin-modal__footer {
  position: relative;
  z-index: 1;
}

.admin-inventory-import-file {
  margin: 0 0 16px;
  color: #53687a;
  font-weight: 700;
}

.admin-inventory-import-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-inventory-import-summary article {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #dbe3ea;
  border-radius: 10px;
  background: #f8fafc;
}

.admin-inventory-import-summary span {
  color: #677789;
  font-size: 13px;
}

.admin-inventory-import-summary strong {
  font-size: 22px;
}

.admin-inventory-import-errors {
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #e7b8b8;
  border-radius: 10px;
  background: #fff5f5;
  color: #8f2525;
}

.admin-inventory-import-errors h3 {
  margin: 0 0 8px;
}

.admin-inventory-import-errors ul {
  margin: 0;
  padding-left: 22px;
}

.admin-inventory-preview-wrap {
  max-height: 360px;
}

.admin-inventory-preview-wrap table {
  min-width: 720px;
}

.admin-inventory-preview-wrap .is-positive {
  color: #17734b;
  font-weight: 800;
}

.admin-inventory-preview-wrap .is-negative {
  color: #b22d2d;
  font-weight: 800;
}

.admin-inventory-import-note {
  min-height: 24px;
  margin: 14px 0 0;
  color: #53687a;
}

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

#product-form a.admin-row-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
/* Reviews, rewards and points */
.checkout-points {
  margin: 20px 0;
  padding: 18px;
  border: 1px solid #d8e6f2;
  background: #f6fbff;
}

.checkout-points > label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.checkout-points__controls {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.checkout-points__controls input {
  width: 150px;
}

.checkout-points small,
.checkout-review-consent small {
  display: block;
  margin-top: 8px;
  color: #657487;
  line-height: 1.6;
}

.checkout-review-consent {
  margin-top: 12px;
  background: #f6fbff;
}

.review-disclosure,
.review-legal-note,
.admin-review-policy {
  padding: 20px 22px;
  border-left: 4px solid #087ec4;
  background: #f3f9fd;
}

.review-disclosure p,
.review-legal-note p,
.admin-review-policy p {
  margin: 6px 0 0;
  color: #526174;
  line-height: 1.7;
}

.product-review-summary {
  display: flex;
  gap: 16px;
  align-items: baseline;
  margin: 26px 0 10px;
}

.product-review-summary strong {
  font-size: 30px;
}

.product-review-summary span,
.product-review__stars {
  color: #e59a00;
  letter-spacing: 2px;
}

.product-review-list {
  display: grid;
  gap: 18px;
}

.product-review {
  padding: 24px;
  border: 1px solid #e1e5e9;
  background: #fff;
}

.product-review header,
.admin-review-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.product-review header > div:first-child {
  display: grid;
  gap: 6px;
}

.product-review__badges,
.admin-review-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.product-review__badges span {
  padding: 4px 8px;
  border: 1px solid #b9d9ec;
  color: #087ec4;
  font-size: 12px;
  font-weight: 800;
}

.product-review h3 {
  margin: 18px 0 8px;
}

.product-review p {
  color: #434b54;
  line-height: 1.8;
}

.product-review time {
  display: block;
  margin-top: 16px;
  color: #7b8793;
  font-size: 13px;
}

.product-review__photos,
.admin-review-photos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.product-review__photos img,
.admin-review-photos img {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border: 1px solid #e1e5e9;
}

.review-hero {
  padding: 76px 0 56px;
  background: linear-gradient(135deg, #edf7fd, #fff);
}

.review-hero h1 {
  margin: 8px 0 12px;
  font-size: clamp(34px, 5vw, 58px);
}

.review-hero p:last-child {
  max-width: 720px;
  color: #526174;
  line-height: 1.75;
}

.review-workspace {
  padding-top: 48px;
  padding-bottom: 80px;
}

.review-form-card {
  display: grid;
  gap: 20px;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #dfe5ea;
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 62, 89, .07);
}

.review-form-card__product {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e9ec;
}

.review-form-card__product img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  background: #f7f8f9;
}

.review-form-card__product span {
  color: #087ec4;
  font-weight: 800;
}

.review-form-card__product h2 {
  margin: 4px 0 0;
  font-size: 22px;
}

.review-form-card > label,
.admin-review-reject-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.review-form-card input[type="text"],
.review-form-card textarea,
.review-form-card input[type="file"],
.admin-review-reject-form select,
.admin-review-reject-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfd6dc;
  background: #fff;
  color: #161b20;
  font: inherit;
}

.review-stars {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-stars legend {
  margin-bottom: 8px;
  font-weight: 800;
}

.review-stars div {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.review-stars input {
  position: absolute;
  opacity: 0;
}

.review-stars span {
  color: #ccd3d9;
  cursor: pointer;
  font-size: 36px;
}

.review-stars label:hover span,
.review-stars label:hover ~ label span,
.review-stars input:checked ~ span,
.review-stars label:has(input:checked) span,
.review-stars label:has(input:checked) ~ label span {
  color: #e59a00;
}

.review-license {
  grid-template-columns: auto 1fr !important;
  align-items: start;
  color: #4c5967;
  font-weight: 500 !important;
  line-height: 1.7;
}

.review-license input {
  margin-top: 5px;
}

.review-rejection {
  padding: 16px 18px;
  border: 1px solid #e7c3c3;
  background: #fff7f7;
}

.review-rejection p,
.review-form-error {
  margin: 6px 0 0;
  color: #a52222;
}

.review-status {
  padding: 20px;
  background: #f5f8fa;
}

.review-result-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef6fb;
}

.review-result-card {
  width: min(560px, 100%);
  padding: 42px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(21, 52, 76, .12);
  text-align: center;
}

.review-result-card h1 {
  margin: 0 0 14px;
}

.review-result-card p {
  margin-bottom: 24px;
  color: #526174;
  line-height: 1.7;
}

.member-point-lots {
  margin: 16px 0 22px;
  padding: 16px;
  background: #f4f9fc;
}

.member-point-lots p {
  margin: 6px 0 0;
}

.admin-review-policy {
  margin-bottom: 22px;
}

.admin-review-list {
  display: grid;
  gap: 20px;
}

.admin-review-card {
  padding: 24px;
  border: 1px solid #dde3e8;
  background: #fff;
}

.admin-review-card header h2 {
  margin: 4px 0 0;
}

.admin-review-card header > div > span {
  color: #087ec4;
  font-weight: 800;
}

.admin-review-card__meta {
  margin: 16px 0;
  color: #657487;
}

.admin-review-card__meta > span:first-of-type {
  color: #e59a00;
  letter-spacing: 2px;
}

.admin-review-card > p {
  line-height: 1.75;
}

.admin-review-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.admin-review-reject-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #e6d2b7;
  background: #fffaf3;
}

@media (max-width: 760px) {
  .login-page.is-member-logged-in .login-layout {
    grid-template-columns: 1fr;
  }

  .member-orders__heading,
  .member-orders__status,
  .member-order-card header,
  .member-order-card footer {
    align-items: stretch;
    flex-direction: column;
  }

  .member-panel__heading {
    flex-wrap: wrap;
  }

  .member-panel__heading .member-logout {
    margin-left: 68px;
  }

  .member-orders__status .admin-button,
  .member-order-card__actions,
  .member-order-card footer .button {
    width: 100%;
  }

  .member-order-card {
    padding: 16px;
  }

  .member-order-card li {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .member-order-card li img {
    width: 50px;
    height: 50px;
  }

  .member-order-card li > span {
    grid-column: 2;
  }
}

.admin-review-reject-form[hidden] {
  display: none;
}

@media (max-width: 680px) {
  .checkout-points__controls,
  .product-review header,
  .admin-review-card header {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-points__controls input {
    width: 100%;
  }

  .review-form-card {
    padding: 20px;
  }

  .review-form-card__product {
    align-items: flex-start;
  }

  .review-form-card__product img {
    width: 72px;
    height: 72px;
  }

  .product-review__photos img,
  .admin-review-photos img {
    width: 88px;
    height: 88px;
  }
}
