:root {
  --navy: #142b45;
  --navy2: #233e59;
  --orange: #e85418;
  --ink: #182b3d;
  --muted: #617181;
  --line: #dce2e7;
  --paper: #f5f7f9;
  --white: #fff;
  --error: #a52c23;
  --success: #226045;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--orange);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
a,
input,
select,
textarea,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 3px solid var(--orange);
}
img {
  max-width: 100%;
  display: block;
}
h1,
h2,
h3,
p {
  margin: 0 0 16px;
}
h1 {
  font-size: 34px;
  line-height: 1.4;
  letter-spacing: -1px;
}
h2 {
  font-size: 25px;
  line-height: 1.5;
}
h3 {
  font-size: 18px;
}
small,
.muted {
  color: var(--muted);
}
.container {
  max-width: 1280px;
  margin: auto;
  padding: 0 40px;
}
.topline {
  background: var(--navy);
  color: #fff;
  text-align: center;
  font-size: 12px;
  padding: 7px 20px;
  letter-spacing: 0.06em;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-row {
  display: flex;
  gap: 32px;
  align-items: center;
  min-height: 94px;
}
.brand {
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -1.7px;
  line-height: 1.1;
  color: var(--navy);
  white-space: nowrap;
}
.brand b {
  color: var(--orange);
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  font-weight: 500;
  margin-top: 7px;
}
.header-search {
  display: flex;
  flex: 1;
  max-width: 470px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
}
.header-search input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  padding: 11px 16px;
}
.header-search button {
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 9px 17px;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  white-space: nowrap;
  font-size: 14px;
}
.header-links a {
  display: flex;
  align-items: center;
  gap: 7px;
}
.icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  vertical-align: middle;
}
.shop-nav {
  display: flex;
  gap: 30px;
  padding-top: 13px;
  padding-bottom: 13px;
  font-size: 14px;
}
.shop-nav .active {
  color: var(--orange);
}
main {
  min-height: 55vh;
}
.page {
  padding-top: 36px;
  padding-bottom: 70px;
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}
.hero {
  background: #edf1f4;
  overflow: hidden;
}
.hero-inner {
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
  padding-top: 35px;
  padding-bottom: 35px;
}
.hero-copy {
  padding: 28px 0;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 1.35;
  font-weight: 750;
  margin: 0 0 22px;
  max-width: 540px;
}
.hero-copy p {
  max-width: 400px;
  color: #4e6276;
  font-size: 17px;
}
.hero-media {
  position: relative;
  align-self: stretch;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  border-bottom: 5px solid var(--orange);
}
.hero-media img {
  width: 90%;
  height: 360px;
  object-fit: contain;
}
.hero-caption {
  position: absolute;
  bottom: 12px;
  left: 18px;
  right: 18px;
  font-size: 12px;
  background: #fffffff0;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border: 1px solid var(--orange);
  border-radius: 4px;
  min-height: 46px;
  padding: 10px 24px;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}
.btn:hover {
  color: #fff;
  background: #ca4210;
  border-color: #ca4210;
}
.btn.secondary {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
}
.btn.secondary:hover {
  border-color: var(--navy);
  background: var(--paper);
}
.btn.navy {
  background: var(--navy);
  border-color: var(--navy);
}
.btn.small {
  padding: 6px 12px;
  min-height: 36px;
  font-size: 13px;
}
.btn.danger {
  background: #fff;
  color: var(--error);
  border-color: #e6c2bd;
}
.text-button {
  border: 0;
  background: none;
  color: var(--navy);
  text-decoration: underline;
  padding: 7px 2px;
  min-height: 40px;
}
.service-strip {
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 22px;
  padding-bottom: 22px;
  gap: 35px;
}
.service-strip strong {
  font-size: 15px;
  display: block;
}
.service-strip span {
  font-size: 12px;
  color: var(--muted);
}
.section {
  padding: 54px 0 4px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-head h2,
.section-head h1 {
  margin: 0;
}
.section-head p {
  margin: 5px 0 0;
  color: var(--muted);
}
.category-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.category-links a {
  padding: 11px 18px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  font-size: 14px;
}
.category-links a:hover {
  border-color: var(--orange);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 24px;
}
.product-card {
  min-width: 0;
}
.product-image {
  aspect-ratio: 1;
  background: #f8f9fa;
  overflow: hidden;
  border: 1px solid #eef1f3;
  position: relative;
}
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transition: transform 0.2s;
}
.product-card:hover .product-image img {
  transform: scale(1.025);
}
.product-info {
  padding: 16px 0 6px;
}
.product-info .meta {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 6px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.product-info h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 10px;
}
.price {
  font-size: 20px;
  font-weight: 750;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.price del {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.stock {
  font-size: 12px;
  color: var(--success);
  display: block;
  margin-top: 5px;
}
.stock.sold {
  color: var(--muted);
}
.footer {
  background: var(--navy);
  color: #fff;
  margin-top: 20px;
  padding: 42px 0 22px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer .brand {
  color: #fff;
}
.footer p {
  font-size: 12px;
  color: #c5d1dc;
  margin-top: 15px;
  max-width: 400px;
}
.footer nav {
  display: flex;
  gap: 25px;
  font-size: 13px;
  align-items: start;
}
.footer-bottom {
  border-top: 1px solid #ffffff25;
  margin-top: 28px;
  padding-top: 16px;
  font-size: 11px;
  color: #b9c7d4;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin: 25px 0;
}
.toolbar label {
  flex: 1;
  min-width: 140px;
  max-width: 290px;
}
.toolbar label:first-child {
  max-width: none;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
  margin-bottom: 18px;
  min-width: 0;
}
.field > span,
.toolbar label > span {
  display: block;
  margin-bottom: 3px;
}
.field small {
  font-weight: 400;
}
.field input,
.field select,
.field textarea,
.toolbar input,
.toolbar select,
.inline-input {
  border: 1px solid #bbc6d0;
  background: #fff;
  border-radius: 4px;
  width: 100%;
  padding: 11px 12px;
  min-height: 46px;
  color: var(--ink);
}
textarea {
  resize: vertical;
  min-height: 105px;
}
.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background: var(--paper);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin: 15px 0;
}
.check input {
  width: 18px;
  height: 18px;
  margin: 4px 0;
  flex: none;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.notice {
  padding: 17px 20px;
  background: #f0f4f8;
  border-left: 3px solid var(--navy);
  font-size: 14px;
  margin: 20px 0;
}
.notice.warning {
  background: #fff5ea;
  border-left-color: var(--orange);
}
.error {
  background: #fff0ed;
  color: var(--error);
  border-left: 3px solid var(--error);
  padding: 14px 18px;
  margin: 14px 0;
  overflow-wrap: anywhere;
}
.error:empty {
  display: none;
}
.empty,
.loading {
  padding: 70px 25px;
  text-align: center;
  color: var(--muted);
}
.loading:before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid var(--line);
  border-top-color: var(--orange);
  border-radius: 50%;
  margin-right: 10px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 35px 0;
  font-size: 13px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 65px;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: #f8f9fa;
  border: 1px solid var(--line);
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.gallery-thumbs button {
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 3px;
  width: 70px;
  height: 70px;
}
.gallery-thumbs button[aria-pressed="true"] {
  border: 2px solid var(--orange);
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-detail h1 {
  font-size: 28px;
  margin: 13px 0 20px;
}
.product-detail .price {
  font-size: 32px;
}
.sku {
  font-size: 12px;
  color: var(--muted);
}
.product-summary {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin: 24px 0;
  color: #526477;
}
.purchase {
  display: flex;
  gap: 15px;
  align-items: end;
}
.purchase .field {
  width: 100px;
  margin: 0;
}
.purchase .btn {
  flex: 1;
}
.description {
  padding: 30px 0;
  overflow-wrap: anywhere;
  max-width: 100%;
}
.description * {
  max-width: 100% !important;
}
.description table {
  display: block;
  overflow: auto;
}
.description img {
  height: auto;
}
.description-header {
  margin-top: 50px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 13px;
}
.auth-shell {
  max-width: 490px;
  margin: 40px auto 65px;
  padding: 32px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  border-radius: 4px;
}
.auth-shell h1 {
  font-size: 28px;
}
.auth-shell .btn {
  width: 100%;
}
.auth-shell .auth-links {
  text-align: center;
  margin-top: 22px;
  font-size: 14px;
}
.panel {
  border: 1px solid var(--line);
  padding: 26px;
  background: #fff;
  border-radius: 5px;
  margin-bottom: 24px;
}
.panel h2 {
  font-size: 20px;
  margin-bottom: 22px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}
.summary {
  padding: 25px;
  background: var(--paper);
  border-top: 3px solid var(--navy);
}
.summary h2 {
  font-size: 20px;
}
.totals {
  margin: 0;
}
.totals > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
}
.totals dt,
.totals dd {
  margin: 0;
}
.totals .total {
  border-top: 1px solid #c3ccd5;
  margin-top: 10px;
  padding-top: 18px;
  font-size: 20px;
  font-weight: 750;
}
.payment-form {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 22px;
}
.payment-form fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.payment-form legend,
.payment-status h3,
.payment-instruction h3 {
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
}
.payment-methods {
  display: grid;
  gap: 9px;
}
.payment-method {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  padding: 11px 12px;
}
.payment-method:has(input:checked) {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange);
}
.payment-method input {
  flex: none;
  height: 18px;
  margin: 3px 0 0;
  width: 18px;
}
.payment-method strong,
.payment-method small {
  display: block;
}
.payment-method small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-top: 2px;
}
.installment-field {
  margin-top: 16px;
}
.payment-state {
  color: var(--navy);
  font-weight: 650;
  min-height: 1.7em;
}
.payment-status,
.payment-instruction {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.payment-success {
  background: #edf8f1;
  border-left-color: var(--success);
}
.payment-code,
.barcode-values {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.barcode-values {
  margin: 0 0 14px;
  padding-left: 24px;
}
.barcode-values li {
  margin-bottom: 7px;
}
.payment-expiry {
  font-size: 13px;
  font-weight: 650;
  margin-top: 14px;
}
.summary .btn {
  width: 100%;
  margin-top: 20px;
}
.cart-line {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr) 100px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.cart-line:first-child {
  padding-top: 0;
}
.cart-line img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  background: var(--paper);
}
.cart-line h3 {
  font-size: 16px;
  margin: 2px 0;
}
.cart-line .field {
  margin: 8px 0;
}
.cart-line .line-end {
  text-align: right;
}
.cart-line .price {
  font-size: 16px;
}
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row input {
  min-width: 0;
}
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 3px;
  background: #edf2f6;
  color: var(--navy);
  font-size: 12px;
  white-space: nowrap;
}
.badge.test {
  background: #fff0dd;
  color: #935204;
}
.badge.cancelled {
  background: #f0f1f3;
  color: #65717c;
}
.badge.pending_payment {
  background: #fff0df;
  color: #95510e;
}
.badge.test_shipped {
  background: #e8f5ec;
  color: #246745;
}
.details-list {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px 16px;
  margin: 0;
}
.details-list dt {
  color: var(--muted);
  font-size: 13px;
}
.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}
th {
  background: #f2f5f7;
  color: #5a6e80;
  font-weight: 500;
  white-space: nowrap;
}
th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
td a {
  color: #164a79;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.table-product {
  display: flex;
  gap: 12px;
  min-width: 235px;
  max-width: 360px;
}
.table-product img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: var(--paper);
}
.table-product small {
  display: block;
}
.nowrap {
  white-space: nowrap;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.timeline li {
  border-left: 2px solid var(--line);
  padding: 0 0 25px 20px;
  position: relative;
}
.timeline li:before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  position: absolute;
  left: -6px;
  top: 7px;
}
.timeline p {
  margin: 4px 0;
  font-size: 13px;
}
.timeline small {
  display: block;
}
.admin-layout {
  background: #f4f6f8;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 222px minmax(0, 1fr);
}
.admin-sidebar {
  background: var(--navy);
  color: #d0dbe4;
  padding: 28px 20px;
  min-height: 100vh;
}
.admin-sidebar .brand {
  color: #fff;
  font-size: 28px;
  margin: 0 12px 40px;
  display: block;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-sidebar nav a {
  padding: 11px 15px;
  border-radius: 4px;
  font-size: 14px;
}
.admin-sidebar nav a.active {
  background: #ffffff18;
  color: #fff;
  border-left: 3px solid var(--orange);
  padding-left: 12px;
}
.admin-sidebar .side-bottom {
  border-top: 1px solid #ffffff25;
  padding-top: 18px;
  margin-top: 30px;
  font-size: 13px;
}
.admin-sidebar .side-bottom a {
  display: block;
  padding: 8px 15px;
}
.admin-body {
  min-width: 0;
}
.admin-top {
  background: #fff;
  min-height: 74px;
  border-bottom: 1px solid var(--line);
  padding: 16px 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}
.admin-top p {
  margin: 0;
}
.admin-main {
  padding: 35px;
  max-width: 1500px;
  margin: auto;
}
.admin-main h1 {
  font-size: 28px;
}
.admin-title {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 26px;
}
.admin-title h1 {
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  margin: 25px 0;
}
.stat {
  padding: 23px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  font-size: 30px;
  color: var(--navy);
  line-height: 1.5;
  font-weight: 650;
}
.stat span {
  color: var(--muted);
  font-size: 13px;
}
.admin-form {
  max-width: 980px;
}
.gallery-editor {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.gallery-edit-item {
  border: 1px solid var(--line);
  padding: 10px;
  width: 150px;
  border-radius: 4px;
}
.gallery-edit-item img {
  height: 110px;
  width: 100%;
  object-fit: contain;
}
.gallery-edit-item .controls {
  display: flex;
  gap: 5px;
  justify-content: space-between;
  margin-top: 5px;
}
.gallery-edit-item button {
  border: 0;
  background: var(--paper);
  padding: 5px;
  font-size: 11px;
  min-height: 34px;
}
.gallery-edit-item small {
  font-size: 11px;
}
.edit-section {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 25px;
  margin-top: 25px;
  scroll-margin-top: 20px;
}
.edit-section h2 {
  font-size: 22px;
}
details {
  margin: 18px 0;
}
summary {
  cursor: pointer;
  font-size: 14px;
  color: #345574;
  padding: 8px 0;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  padding: 16px;
  background: var(--paper);
  max-height: 350px;
  overflow: auto;
}
.archive-record {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.archive-record:last-child {
  border: 0;
}
.archive-record h3 {
  font-size: 16px;
}
.issue-list {
  max-height: 320px;
  overflow: auto;
}
.mobile-admin-nav {
  display: none;
}
.skip {
  position: absolute;
  top: -60px;
  left: 10px;
  padding: 10px;
  background: var(--navy);
  color: white;
  z-index: 20;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 13px 24px;
  border-radius: 4px;
  max-width: 90vw;
  box-shadow: 0 5px 20px #142b4525;
  z-index: 30;
}
#toast:empty {
  display: none;
}
.inline-status {
  font-size: 13px;
  color: var(--success);
}
.table-actions {
  display: flex;
  gap: 8px;
}
.help {
  font-size: 13px;
  color: var(--muted);
}
.wide-break {
  overflow-wrap: anywhere;
}
.muted-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 15px;
}
.readonly-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
.readonly-form fieldset:disabled {
  opacity: 0.8;
}
button svg {
  pointer-events: none;
}
@media (max-width: 1000px) {
  .container {
    padding-left: 25px;
    padding-right: 25px;
  }
  .header-row {
    gap: 24px;
  }
  .header-links {
    gap: 15px;
  }
  .hero-copy h1 {
    font-size: 38px;
  }
  .hero-inner {
    gap: 30px;
    min-height: 410px;
  }
  .hero-media img {
    height: 315px;
  }
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-grid {
    gap: 30px;
  }
  .split {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }
  .admin-layout {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .admin-sidebar {
    padding: 25px 12px;
  }
  .admin-main {
    padding: 25px;
  }
  .admin-top {
    padding: 16px 25px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}
@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
  .topline {
    font-size: 10px;
    padding: 7px 10px;
  }
  .header-row {
    min-height: 0;
    flex-wrap: wrap;
    padding-top: 20px;
    padding-bottom: 16px;
    gap: 18px;
  }
  .brand {
    font-size: 28px;
  }
  .brand span {
    font-size: 9px;
  }
  .header-links {
    font-size: 12px;
    gap: 17px;
  }
  .header-links .icon {
    width: 18px;
  }
  .header-search {
    order: 3;
    max-width: none;
    flex-basis: 100%;
  }
  .shop-nav {
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 13px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-top: 26px;
    padding-bottom: 26px;
  }
  .hero-copy {
    padding: 0;
  }
  .hero-copy h1 {
    font-size: 34px;
    max-width: 350px;
    margin-bottom: 14px;
  }
  .hero-copy p {
    font-size: 14px;
    margin-bottom: 22px;
  }
  .hero-media {
    min-height: 265px;
  }
  .hero-media img {
    height: 250px;
    width: 80%;
  }
  .hero-caption {
    font-size: 10px;
    left: 10px;
    right: 10px;
    bottom: 8px;
    padding: 6px;
  }
  .service-strip {
    gap: 18px;
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .service-strip strong {
    font-size: 12px;
  }
  .service-strip span {
    font-size: 10px;
    line-height: 1.4;
    display: block;
    margin-top: 4px;
  }
  .section {
    padding-top: 35px;
  }
  .section-head {
    gap: 15px;
    align-items: start;
  }
  .section-head h2 {
    font-size: 22px;
  }
  .section-head a {
    font-size: 12px;
    white-space: nowrap;
  }
  .section-head p {
    font-size: 12px;
  }
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 14px;
  }
  .product-info {
    padding-top: 11px;
  }
  .product-info h3 {
    font-size: 13px;
  }
  .product-info .meta {
    font-size: 9px;
    display: block;
  }
  .product-info .meta span {
    display: block;
  }
  .price {
    font-size: 16px;
  }
  .price del {
    font-size: 10px;
    margin-left: 4px;
  }
  .category-links {
    gap: 8px;
  }
  .category-links a {
    font-size: 12px;
    padding: 8px 11px;
  }
  .footer {
    padding-top: 30px;
  }
  .footer-grid {
    gap: 15px;
  }
  .footer nav {
    flex-wrap: wrap;
    gap: 20px;
  }
  .page {
    padding-top: 25px;
    padding-bottom: 35px;
  }
  h1 {
    font-size: 27px;
  }
  .toolbar {
    gap: 10px;
  }
  .toolbar label {
    min-width: 130px;
    max-width: none;
  }
  .toolbar label:first-child {
    flex-basis: 100%;
  }
  .toolbar .btn {
    width: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-detail h1 {
    font-size: 24px;
  }
  .product-detail .price {
    font-size: 28px;
  }
  .description-header {
    margin-top: 30px;
  }
  .auth-shell {
    border-left: 0;
    border-right: 0;
    padding: 24px 0;
    margin: 10px auto 30px;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .panel {
    padding: 20px;
  }
  .cart-line {
    grid-template-columns: 70px minmax(0, 1fr) 74px;
    gap: 12px;
  }
  .cart-line img {
    width: 70px;
    height: 70px;
  }
  .cart-line h3 {
    font-size: 13px;
  }
  .cart-line .price {
    font-size: 12px;
  }
  .cart-line .sku {
    font-size: 10px;
  }
  .cart-line input {
    padding: 6px;
    min-height: 39px;
  }
  .cart-line .field {
    font-size: 11px;
  }
  .cart-line .text-button {
    font-size: 12px;
  }
  .details-list {
    grid-template-columns: 95px minmax(0, 1fr);
    gap: 10px;
  }
  .admin-layout {
    display: block;
  }
  .admin-sidebar {
    min-height: 0;
    padding: 15px 20px;
  }
  .admin-sidebar .brand {
    font-size: 24px;
    margin: 0;
    display: inline-block;
  }
  .admin-sidebar nav,
  .admin-sidebar .side-bottom {
    display: none;
  }
  .mobile-admin-nav {
    display: block;
    margin-top: 15px;
    width: 100%;
    padding: 10px;
    border: 1px solid #fff5;
    background: var(--navy2);
    color: #fff;
    border-radius: 4px;
  }
  .admin-top {
    padding: 12px 20px;
    min-height: 60px;
    font-size: 12px;
    gap: 10px;
  }
  .admin-top .btn {
    font-size: 11px;
    min-height: 35px;
    padding: 5px 10px;
  }
  .admin-main {
    padding: 25px 16px;
  }
  .admin-title {
    gap: 15px;
  }
  .admin-title h1 {
    font-size: 23px;
  }
  .admin-title .btn {
    font-size: 12px;
    padding: 8px 12px;
  }
  .admin-main .panel {
    padding: 18px;
  }
  .stats-grid {
    margin: 20px 0;
  }
  .stat {
    padding: 16px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat span {
    font-size: 11px;
  }
  .edit-section {
    padding: 18px;
  }
  .gallery-edit-item {
    width: calc(50% - 6px);
  }
  th,
  td {
    padding: 12px;
  }
  .notice {
    padding: 14px;
    font-size: 13px;
  }
  .summary {
    padding: 20px;
  }
  .table-product {
    min-width: 210px;
  }
  .breadcrumb {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .form-actions .btn {
    flex: 1;
  }
  .pagination {
    gap: 12px;
  }
  .pagination .btn {
    padding: 6px 12px;
  }
  .footer-bottom {
    font-size: 10px;
  }
}
@media print {
  .site-header,
  .topline,
  .footer,
  .breadcrumb,
  .admin-title .btn,
  .payment-form,
  .panel,
  #page-error {
    display: none !important;
  }
  .container,
  .page {
    max-width: none;
    padding: 0;
  }
  .split {
    display: block;
  }
  .summary {
    background: #fff;
    border: 0;
    padding: 0;
  }
  .payment-instruction,
  .payment-status {
    border: 1px solid #000;
    break-inside: avoid;
    color: #000;
    padding: 16px;
  }
  .payment-code,
  .barcode-values {
    color: #000;
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}
