html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.admin-surface :is(.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus) {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

input[type="number"] {
  appearance: auto;
  -moz-appearance: auto;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  appearance: auto;
  margin: 0;
  opacity: 1;
}

body {
  margin-bottom: 60px;
}

.page-section {
  margin-bottom: 2rem;
}

.home-hero-section {
  margin: 0 0 2rem;
}

.home-hero-fullbleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}

.home-band {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 clamp(1rem, 3vw, 2rem) 2rem;
  width: 100vw;
}

.home-band-inner {
  margin: 0 auto;
  max-width: 1320px;
}

.home-hero-eyebrow {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.home-hero-overlay h1 {
  color: #ffffff;
  font-size: 2.4rem;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.home-hero-overlay .lead {
  color: #ffffff;
  max-width: 44rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  margin: 0;
}

.home-carousel {
  display: grid;
  width: 100%;
}

.home-carousel-hero {
  position: relative;
}

.home-carousel-frame {
  position: relative;
  aspect-ratio: 21 / 9;
  width: 100%;
  max-width: none;
}

.home-carousel-frame img,
.home-carousel-frame .home-carousel-placeholder {
  position: absolute;
  inset: 0;
}

.home-carousel-frame img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-carousel-control {
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
  border: 0;
  color: #fff;
  display: inline-flex;
  font-size: 2rem;
  height: 2.5rem;
  justify-content: center;
  line-height: 1;
  margin: auto 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  z-index: 3;
}

.home-carousel-control-prev {
  left: 0.5rem;
}

.home-carousel-control-next {
  right: 0.5rem;
}

.home-hero-overlay {
  align-items: start;
  bottom: 0;
  display: grid;
  gap: 1rem;
  left: 0;
  max-width: 56rem;
  padding: 3rem clamp(1rem, 4vw, 3rem);
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}

.home-hero-overlay::before {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.35) 45%, rgba(15, 23, 42, 0) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-hero-overlay > * {
  position: relative;
  z-index: 1;
}

.home-carousel-placeholder {
  align-items: center;
  background: #0f172a;
  color: #fff;
  display: flex;
  justify-content: center;
  padding: 1rem;
  text-align: center;
}

@media (max-width: 768px) {
  .home-carousel-frame {
    aspect-ratio: 16 / 12;
  }

  .home-hero-overlay {
    gap: 0.5rem;
    max-width: none;
    padding: 1rem 3.25rem 1rem 1rem;
  }

  .home-hero-overlay::before {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.2) 55%, rgba(15, 23, 42, 0) 100%);
  }

  .home-hero-eyebrow {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .home-hero-overlay h1 {
    font-size: clamp(1.35rem, 6vw, 1.8rem);
    line-height: 1.15;
  }

  .home-hero-overlay .lead {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
  }

  .home-carousel-control {
    height: 2rem;
    width: 2rem;
    font-size: 1.4rem;
  }

  .home-carousel-control-prev {
    left: 0.35rem;
  }

  .home-carousel-control-next {
    right: 0.35rem;
  }
}

@media (max-width: 480px) {
  .home-carousel-frame {
    aspect-ratio: 1 / 1;
  }

  .home-hero-overlay {
    padding: 0.75rem 2.75rem 0.75rem 0.75rem;
  }

  .home-hero-overlay h1 {
    font-size: 1.2rem;
  }

  .home-hero-overlay .lead {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .home-carousel-control {
    top: auto;
    bottom: 0.5rem;
    transform: none;
  }
}

.home-hero-thumb,
.home-setting-gallery-thumb {
  appearance: none;
  background: #fff;
  border: 1px solid #cfd7df;
  cursor: pointer;
  padding: 0;
}

.home-hero-thumb.is-active,
.home-setting-gallery-thumb.is-active {
  border-color: #258cfb;
  box-shadow: 0 0 0 1px #258cfb inset;
}

.home-setting-form {
  max-width: 920px;
}

.home-setting-section {
  display: grid;
  gap: 0.75rem;
}

.home-setting-form {
  --home-setting-card-width: 360px;
}

.home-setting-preview-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: var(--home-setting-card-width) minmax(0, 1fr);
}

.home-setting-preview-block {
  display: grid;
  gap: 0.5rem;
}

.image-preview.image-preview-main.home-setting-frame {
  aspect-ratio: 1 / 1;
  max-width: none;
  width: 100%;
  border-radius: 8px;
}

.image-preview.image-preview-main.home-setting-frame img,
.image-preview.image-preview-main.home-setting-frame .image-preview-placeholder {
  position: absolute;
  inset: 0;
}

.image-preview.image-preview-main.home-setting-frame img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.home-setting-gallery-list {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(var(--home-setting-card-width), var(--home-setting-card-width)));
  justify-content: start;
}

.home-setting-image-card {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  width: 100%;
  max-width: var(--home-setting-card-width);
}

.home-setting-main-card {
  width: 100%;
  max-width: var(--home-setting-card-width);
}

.home-setting-card-header {
  display: flex;
  justify-content: flex-end;
}

.home-setting-delete-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #b42318;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.4rem;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 1.75rem;
}

.home-setting-delete-button:hover {
  color: #7a1a12;
}

.home-setting-focus-frame {
  position: relative;
  touch-action: none;
  cursor: grab;
}

.home-setting-focus-frame img {
  object-fit: cover;
}

.home-setting-focus-frame:active {
  cursor: grabbing;
}

.home-setting-focus-frame[data-dragging="true"] {
  cursor: grabbing;
}

.home-setting-focus-marker {
  border: 2px solid rgba(37, 140, 251, 0.95);
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
  height: 18px;
  left: 50%;
  pointer-events: none;
  position: absolute;
  top: var(--focus-y, 50%);
  transform: translate(-50%, -50%);
  width: 18px;
  z-index: 2;
}

.home-setting-focus-marker::after {
  background: rgba(37, 140, 251, 0.95);
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
}

.home-setting-focus-row {
  align-items: center;
  color: #475569;
  display: flex;
  font-size: 0.9rem;
  gap: 0.5rem;
  justify-content: space-between;
}

.home-setting-image-card input[type="range"],
.home-setting-preview-block input[type="range"] {
  width: 100%;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
  gap: 1rem;
  justify-content: start;
  align-items: start;
}

.product-card {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  box-sizing: border-box;
  display: grid;
  gap: 0.75rem;
  grid-template-rows: auto auto auto auto auto 1fr;
  padding: 1rem;
  width: 220px;
}

.product-card-image-frame,
.product-detail-main-frame {
  aspect-ratio: 1 / 1;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  display: flex;
  margin: 0 0 0.75rem;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background: #fff;
}

@media (max-width: 480px) {
  .home-setting-preview-layout,
  .home-setting-gallery-list {
    grid-template-columns: 1fr;
  }

  .home-setting-main-card,
  .home-setting-image-card {
    max-width: none;
    width: 100%;
  }

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

  .product-card {
    width: 100%;
  }
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.search-form,
.stacked-form {
  display: grid;
  gap: 0.75rem;
  max-width: 520px;
}

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

.data-table th,
.data-table td {
  border-bottom: 1px solid #d8dee4;
  padding: 0.75rem;
  text-align: left;
}

.table-sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.35rem;
  text-decoration: none;
  white-space: nowrap;
}

.table-sort-link:hover,
.table-sort-link:focus-visible {
  color: inherit;
  text-decoration: underline;
}

.table-action-cell {
  text-align: right !important;
  white-space: nowrap;
}

.table-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.8rem;
  justify-content: flex-end;
}

.table-action-link,
.table-action-button {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--store-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.15rem 0;
  text-decoration: none;
}

.table-action-link:hover,
.table-action-link:focus-visible,
.table-action-button:hover,
.table-action-button:focus-visible {
  color: var(--store-accent);
}

.table-action-link:focus-visible,
.table-action-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.table-action-danger,
.table-action-danger:hover,
.table-action-danger:focus-visible {
  color: var(--moonarrow-color-admin-danger);
}

.order-state {
  align-items: center;
  display: inline-flex;
  gap: 0.45rem;
  white-space: nowrap;
}

.order-state-light {
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  flex: 0 0 0.7rem;
  height: 0.7rem;
  width: 0.7rem;
}

.order-state-light-pending {
  background: #b42318;
}

.order-state-light-review {
  background: #c47b13;
}

.order-state-light-complete {
  background: #237a45;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.nav-form {
  margin: 0;
}

.nav-button {
  background: transparent;
  border: 0;
  cursor: pointer;
}

.cart-total {
  font-weight: 700;
  margin-top: 1rem;
}

.page-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.checkbox-line {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.checkout-recipient-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
}

.clearable-field {
  position: relative;
  width: 100%;
}

.clearable-field input,
.clearable-field textarea {
  padding-right: 2.75rem;
  width: 100%;
}

.clearable-field-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #5f6670;
  cursor: pointer;
  display: flex;
  font-size: 1.4rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
}

.clearable-field-textarea .clearable-field-button {
  top: 0.5rem;
  transform: none;
}

.clearable-field-button:hover,
.clearable-field-button:focus-visible {
  color: #111820;
}

.clearable-field-button[hidden] {
  display: none;
}

.pagination-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.pagination-nav a,
.pagination-nav span {
  display: inline-flex;
  min-width: 2.5rem;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid #c9ced3;
  text-decoration: none;
}

.pagination-nav span[aria-current="page"] {
  border-color: #1f5f4a;
  background: #1f5f4a;
  color: #fff;
}

.storefront-surface .pagination-nav a,
.storefront-surface .pagination-nav span {
  background: #fff;
  border-color: var(--store-line);
  color: var(--store-ink);
}

.storefront-surface .pagination-nav a:hover,
.storefront-surface .pagination-nav a:focus-visible {
  background: var(--store-soft);
  border-color: var(--store-ink);
  color: var(--store-ink);
}

.storefront-surface .pagination-nav span[aria-current="page"] {
  background: var(--store-ink);
  border-color: var(--store-ink);
  color: #fff;
}

.footer-links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-left: 1rem;
}

.legal-content h2 {
  margin-top: 1.5rem;
}

.checkout-copy-toggle {
  margin-left: auto;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1.5rem;
}

.subsection {
  margin: 1.5rem 0;
}

.friendly-error-page {
  align-content: center;
  min-height: clamp(360px, 58vh, 620px);
  max-width: 720px;
}

.friendly-error-page h1 {
  font-size: 3rem;
  margin: 0 0 1rem;
}

.friendly-error-page > p:not(.friendly-error-label) {
  color: #5f635d;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 620px;
}

.friendly-error-label {
  color: #9b5f62;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  text-transform: uppercase;
}

.friendly-error-page .action-row {
  margin-top: 1.5rem;
}

@media (max-width: 576px) {
  .friendly-error-page h1 {
    font-size: 2rem;
  }
}

.remittance-panel {
  border: 1px solid #d8dee4;
  border-left: 4px solid #9b5f62;
  padding: 1.25rem;
}

.remittance-panel h2 {
  font-size: 1.25rem;
  margin: 0 0 0.75rem;
}

.remittance-form {
  grid-template-columns: minmax(0, 320px) auto;
  align-items: end;
  max-width: 560px;
}

.remittance-form label {
  grid-column: 1 / -1;
  margin: 0;
}

.remittance-form input {
  min-width: 0;
}

.remittance-help {
  margin: 0.75rem 0 0;
}

.remittance-locked-help {
  border-top: 1px solid #d8dee4;
  margin: 0.9rem 0 0;
  padding-top: 0.8rem;
}

.remittance-locked-help a {
  color: #9b5f62;
  font-weight: 700;
}

.order-remark-text {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.remittance-panel-confirmed {
  border-left-color: #2f6f4e;
}

.remittance-panel-review {
  border-left-color: #c47b13;
}

@media (max-width: 576px) {
  .remittance-form {
    grid-template-columns: 1fr;
  }

  .remittance-form label {
    grid-column: auto;
  }
}

.danger-form {
  margin-top: 1rem;
}

.cart-summary-widget {
  bottom: 1rem;
  position: fixed;
  right: 1rem;
  z-index: 1040;
}

.cart-summary-widget-link {
  background: #9b5f62;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(77, 36, 39, 0.28);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cart-summary-widget-link:hover,
.cart-summary-widget-link:focus {
  background: #7f4b4e;
  box-shadow: 0 12px 28px rgba(77, 36, 39, 0.34);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.cart-summary-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
}

.cart-summary-widget-body {
  display: grid;
  gap: 0.25rem;
  font-size: 0.92rem;
}

@media (max-width: 768px) {
  .cart-summary-widget {
    bottom: max(0.6rem, env(safe-area-inset-bottom));
    display: block;
    max-width: calc(100vw - 1rem);
    right: 0.5rem;
  }

  .cart-summary-widget-link {
    align-items: center;
    display: flex;
    gap: 0.7rem;
    max-width: calc(100vw - 1rem);
    min-width: 0;
    padding: 0.65rem 0.75rem;
  }

  .cart-summary-widget-title {
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .cart-summary-widget-body {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.72rem;
    gap: 0.2rem 0.55rem;
  }

  .cart-summary-widget-body span {
    white-space: nowrap;
  }
}

.product-form {
  max-width: 680px;
}

.product-spec-section {
  border: 1px solid #d8dee4;
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.product-spec-list {
  display: grid;
  gap: 0.75rem;
}

.product-spec-help {
  margin: 0;
}

.product-spec-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
  border: 1px solid #d8dee4;
  border-radius: 8px;
  padding: 0.75rem;
  background: #fff;
}

.product-spec-row label {
  display: block;
  margin-bottom: 0.25rem;
}

.product-spec-actions {
  display: flex;
  align-items: end;
  grid-column: 1 / -1;
}

@media (max-width: 768px) {
  .product-spec-row {
    grid-template-columns: 1fr;
  }
}

.product-form-preview-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
}

.product-form-preview-block {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.product-form-preview-block + .product-form-preview-block {
  border-top: 1px solid #c9cdc5;
  padding-top: 1.5rem;
}

.product-form-main-preview {
  max-width: 100%;
}

.product-gallery-thumb {
    appearance: none;
    background: #fff;
  border: 1px solid #cfd7df;
  cursor: pointer;
    padding: 0;
  }

  .product-gallery-editor-item {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
  }

  .product-gallery-editor-item .product-gallery-thumb {
    max-width: none;
    width: 100%;
  }


.product-detail-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.product-detail-media {
  align-content: start;
  align-self: start;
  display: grid;
  gap: 1rem;
  grid-auto-rows: max-content;
}

.product-gallery-section {
  display: grid;
  gap: 0.75rem;
}

.product-gallery-title {
  margin: 0;
  font-weight: 700;
}

.product-gallery-grid {
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
}

.product-gallery-grid .image-preview-thumb {
  max-width: none;
}

.image-preview {
  align-items: center;
  border: 1px solid #cfd7df;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: hidden;
  background: #fff;
}

.image-preview-main {
  aspect-ratio: 1 / 1;
  max-width: 320px;
}

.image-preview-thumb {
  aspect-ratio: 1 / 1;
  max-width: 140px;
}

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

.image-preview-placeholder {
  color: #6c757d;
  font-size: 0.95rem;
  padding: 1rem;
  text-align: center;
}

.image-preview-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.form-label-required::after {
  color: #b42318;
  content: " *";
  font-weight: 800;
}

.form-required-note {
  color: #667085;
  font-size: 0.875rem;
  margin: 0 0 0.25rem;
}

.form-required-note span {
  color: #b42318;
  font-weight: 800;
}

.form-validation-summary:empty,
.form-validation-summary.validation-summary-valid {
  display: none;
}

.form-validation-summary.validation-summary-errors {
  background: #fff8f7;
  border: 1px solid #e6aaa5;
  color: #8d221b;
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
}

.form-validation-summary.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.2rem;
}

.product-image-editor {
  background: #f5f8ff;
  border: 1px solid #cdddf7;
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 1rem;
}

.product-image-editor-heading {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.product-image-editor-heading .eyebrow {
  margin: 0 0 0.3rem;
}

.product-image-editor-heading h2 {
  margin: 0;
}

.product-image-editor-count,
.product-image-editor-status {
  color: #52606d;
  font-size: 0.86rem;
  margin: 0;
}

.product-image-editor-count {
  font-weight: 700;
  text-align: right;
}

.site-file-input {
  background: #fff;
  border: 1px solid #c9dcf7;
  border-radius: 10px;
  color: #52606d;
  font: inherit;
  min-height: 44px;
  padding: 0.3rem 0.45rem;
  width: 100%;
}

.site-file-input::file-selector-button {
  background: linear-gradient(135deg, var(--store-accent, #2f6fed), #3157e8);
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: 0 5px 12px rgba(28, 86, 181, 0.2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  margin-right: 0.65rem;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
}

.site-file-input::-webkit-file-upload-button {
  background: linear-gradient(135deg, var(--store-accent, #2f6fed), #3157e8);
  border: 1px solid transparent;
  border-radius: 7px;
  box-shadow: 0 5px 12px rgba(28, 86, 181, 0.2);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  margin-right: 0.65rem;
  min-height: 32px;
  padding: 0.35rem 0.65rem;
}

.site-file-input:hover::file-selector-button,
.site-file-input:focus-visible::file-selector-button,
.site-file-input:hover::-webkit-file-upload-button,
.site-file-input:focus-visible::-webkit-file-upload-button {
  background: linear-gradient(135deg, #075ed0, #243fc1);
}

.site-file-input:focus-visible {
  border-color: var(--store-accent, #2f6fed);
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.2);
  outline: 0;
}

.image-editor-save-button,
.home-image-crop-dialog-actions .btn-primary {
  background: linear-gradient(135deg, var(--store-accent, #2f6fed), #3157e8);
  border: 1px solid transparent;
  border-radius: 9px;
  box-shadow: 0 9px 20px rgba(28, 86, 181, 0.24);
  color: #fff;
  font-weight: 800;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
}

.image-editor-save-button:hover,
.image-editor-save-button:focus-visible,
.home-image-crop-dialog-actions .btn-primary:hover,
.home-image-crop-dialog-actions .btn-primary:focus-visible {
  background: linear-gradient(135deg, #075ed0, #243fc1);
  border-color: transparent;
  color: #fff;
  transform: translateY(-1px);
}

.home-image-crop-dialog-actions .btn-secondary {
  background: #fff;
  border: 1px solid #b9cbe4;
  border-radius: 9px;
  color: #174f9d;
  font-weight: 800;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
}

.home-image-crop-dialog-actions .btn-secondary:hover,
.home-image-crop-dialog-actions .btn-secondary:focus-visible {
  background: #eef5ff;
  border-color: #2f6fed;
  color: #174f9d;
}

.product-image-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
  justify-content: start;
}

.product-image-card,
.product-image-empty-state {
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  min-width: 0;
}

.product-image-card {
  background: #fff;
  border: 1px solid #cdd8ea;
  margin: 0;
  overflow: hidden;
  position: relative;
  transform-origin: center;
  transition:
    transform 0.32s cubic-bezier(.22, .85, .25, 1),
    opacity 0.2s ease,
    box-shadow 0.32s ease;
  user-select: none;
  will-change: transform;
}

.product-image-card.is-main-image {
  border: 2px solid var(--store-accent);
}

.product-image-card.is-new-image {
  outline: 2px solid var(--store-accent);
  outline-offset: -2px;
}

.product-image-card img {
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 0.55rem;
  pointer-events: none;
  width: 100%;
  -webkit-user-drag: none;
}

.product-image-card figcaption {
  background: rgba(8, 20, 40, 0.9);
  bottom: 0;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  left: 0;
  letter-spacing: 0.04em;
  margin: 0;
  padding: 0.45rem 0.6rem;
  position: absolute;
  right: 0;
}

.product-image-drag-handle,
.product-image-remove-button {
  align-items: center;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  top: 0.5rem;
  transition: background 0.16s ease, transform 0.16s ease;
  z-index: 3;
}

.product-image-drag-handle {
  background: rgba(8, 20, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  color: #fff;
  cursor: grab;
  font-size: 0.88rem;
  height: 2rem;
  right: 0.5rem;
  touch-action: none;
  width: 2rem;
}

.product-image-remove-button {
  background: #b42318;
  border: 1px solid #fff;
  color: #fff;
  font-size: 1.2rem;
  height: 1.65rem;
  left: 0.5rem;
  width: 1.65rem;
}

.product-image-drag-handle:hover,
.product-image-drag-handle:focus-visible {
  background: var(--store-accent);
  transform: scale(1.06);
}

.product-image-remove-button:hover,
.product-image-remove-button:focus-visible {
  background: #8d221b;
  transform: scale(1.08);
}

.product-image-grid.is-image-reordering .product-image-drag-handle,
.product-image-drag-handle:active {
  cursor: grabbing;
}

.product-image-grid.is-image-reordering .product-image-card {
  transition: none;
}

.product-image-card.is-image-dragging {
  box-shadow: 0 20px 38px rgba(8, 20, 40, 0.24);
  opacity: 0.82;
  transform: scale(1.035) rotate(0.45deg);
  z-index: 2;
}

.product-image-card.is-image-settling {
  animation: product-image-settle 0.42s cubic-bezier(.2, .9, .2, 1);
}

.product-image-card.is-image-arriving {
  animation: product-image-arrive 0.4s cubic-bezier(.2, .85, .25, 1) both;
}

.product-image-empty-state {
  align-items: center;
  background: #fff;
  border: 1px dashed #97b5e4;
  color: #627185;
  display: flex;
  justify-content: center;
  max-width: 240px;
  padding: 1rem;
  text-align: center;
}

.product-spec-status {
  color: #b42318;
  font-size: 0.88rem;
  margin: 0;
}

body.is-product-image-reordering,
body.is-product-image-reordering * {
  cursor: grabbing !important;
  overscroll-behavior: none;
  user-select: none !important;
  -webkit-user-select: none !important;
}

body.is-product-image-reordering {
  touch-action: none;
}

[data-product-image-sort-list] > .is-image-drag-source {
  display: none !important;
}

.product-image-drop-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(47, 111, 237, 0.14), rgba(47, 111, 237, 0.035)),
    #f4f7fc;
  border: 2px dashed var(--store-accent);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.66);
  box-sizing: border-box;
  color: #174f9d;
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.product-image-drop-placeholder::before {
  border: 1px solid rgba(47, 111, 237, 0.25);
  border-radius: 999px;
  content: "";
  height: 64px;
  position: absolute;
  width: 64px;
}

.product-image-drop-placeholder__label {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(20, 63, 126, 0.12);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.4;
  max-width: calc(100% - 24px);
  padding: 0.48rem 0.68rem;
  position: relative;
  text-align: center;
  z-index: 1;
}

.product-image-drop-placeholder.is-image-drop-target {
  animation: product-image-drop-target-arrive 160ms cubic-bezier(.22, .85, .25, 1);
}

.product-image-drag-ghost {
  animation: none !important;
  box-shadow: 0 20px 44px rgba(8, 20, 40, 0.3) !important;
  contain: layout paint;
  left: 0 !important;
  margin: 0 !important;
  opacity: 0.94 !important;
  pointer-events: none !important;
  position: fixed !important;
  top: 0 !important;
  transition: none !important;
  will-change: transform;
  z-index: 10000 !important;
}

.product-image-drag-ghost input,
.product-image-drag-ghost button,
.product-image-drag-ghost select,
.product-image-drag-ghost textarea {
  pointer-events: none !important;
}

@keyframes product-image-settle {
  0% { transform: scale(1.035) rotate(0.45deg); }
  58% { transform: scale(0.985) rotate(-0.12deg); }
  100% { transform: scale(1) rotate(0); }
}

@keyframes product-image-arrive {
  0% { opacity: 0; transform: translateY(14px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes product-image-drop-target-arrive {
  from { opacity: 0.45; transform: scale(0.965); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 767.98px) {
  .product-image-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-image-empty-state {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-image-card,
  .product-image-card.is-image-settling,
  .product-image-card.is-image-arriving,
  .product-image-drop-placeholder.is-image-drop-target {
    animation: none;
    transition: none;
  }
}

.home-image-crop-button {
  background: rgba(8, 20, 40, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.88);
  bottom: 0.42rem;
  color: #fff;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  min-height: 1.7rem;
  padding: 0.25rem 0.48rem;
  position: absolute;
  right: 0.45rem;
  transition: background 0.16s ease, transform 0.16s ease;
  z-index: 4;
}

.home-image-crop-button:hover,
.home-image-crop-button:focus-visible {
  background: var(--store-accent);
  color: #fff;
  transform: translateY(-1px);
}

.home-image-crop-dialog {
  background: transparent;
  border: 0;
  max-height: calc(100dvh - 1rem);
  max-width: min(680px, calc(100vw - 2rem));
  overflow: hidden;
  padding: 0;
  width: 100%;
}

.home-image-crop-dialog::backdrop {
  background: rgba(8, 20, 40, 0.66);
}

.home-image-crop-dialog-content {
  background: #fff;
  border: 1px solid #cdd8ea;
  border-radius: 14px;
  box-shadow: 0 26px 70px rgba(8, 20, 40, 0.32);
  box-sizing: border-box;
  display: grid;
  gap: 0.9rem;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: min(800px, calc(100dvh - 1rem));
  max-height: calc(100dvh - 1rem);
  overflow: hidden;
  padding: 1rem;
}

.home-image-crop-dialog-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.home-image-crop-dialog-heading h2,
.home-image-crop-dialog-heading p {
  margin: 0;
}

.home-image-crop-dialog-heading h2 {
  font-size: 1.15rem;
}

.home-image-crop-dialog-heading p {
  color: #52606d;
  font-size: 0.88rem;
  line-height: 1.55;
  margin-top: 0.28rem;
}

.home-image-crop-close {
  align-items: center;
  background: transparent;
  border: 0;
  color: #52606d;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.7rem;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2rem;
}

.home-image-crop-close:hover,
.home-image-crop-close:focus-visible {
  color: #0c55ba;
}

.home-setting-crop-frame {
  align-self: center;
  aspect-ratio: 1 / 1;
  background: #111827;
  block-size: 100%;
  border: 1px solid #9fb8dc;
  inline-size: auto;
  justify-self: center;
  margin: 0;
  max-height: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  overscroll-behavior: contain;
  position: relative;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.home-setting-crop-frame[data-dragging="true"],
.home-setting-crop-frame:active {
  cursor: grabbing;
}

.home-setting-crop-frame img {
  display: block;
  height: auto;
  max-width: none;
  object-fit: fill;
  pointer-events: none;
  position: absolute;
  user-select: none;
  width: auto;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.home-setting-crop-grid {
  background:
    linear-gradient(to right,
      transparent 33.1%, rgba(255, 255, 255, 0.72) 33.33%, transparent 33.58%,
      transparent 66.43%, rgba(255, 255, 255, 0.72) 66.66%, transparent 66.91%),
    linear-gradient(to bottom,
      transparent 33.1%, rgba(255, 255, 255, 0.72) 33.33%, transparent 33.58%,
      transparent 66.43%, rgba(255, 255, 255, 0.72) 66.66%, transparent 66.91%);
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.home-setting-crop-controls {
  display: grid;
  gap: 0.35rem;
}

.home-setting-crop-controls input[type="range"] {
  width: 100%;
}

.home-setting-crop-controls input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.home-setting-crop-axis-hint {
  background: #f4f7fc;
  border-left: 3px solid #2f6fed;
  color: #52606d;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0.35rem 0 0;
  padding: 0.45rem 0.6rem;
}

.home-setting-crop-zoom-row {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto minmax(0, 1fr) auto minmax(3.5rem, auto);
}

.home-setting-crop-zoom-row button {
  align-items: center;
  background: #f4f7fc;
  border: 1px solid #b9cbe4;
  border-radius: 999px;
  color: #174f9d;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  font-weight: 800;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 2rem;
}

.home-setting-crop-zoom-row button:hover,
.home-setting-crop-zoom-row button:focus-visible {
  background: #e6effc;
  border-color: #2f6fed;
}

.home-setting-crop-zoom-row output {
  color: #475569;
  font-variant-numeric: tabular-nums;
  min-width: 3.5rem;
  text-align: right;
}

.home-image-crop-dialog-actions {
  align-self: end;
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
}

@media (max-width: 479.98px) {
  .home-image-crop-dialog {
    max-width: calc(100vw - 1rem);
  }

  .home-image-crop-dialog-content {
    border-radius: 10px;
    padding: 0.8rem;
  }

  .home-image-crop-dialog-actions .btn {
    flex: 1 1 0;
  }
}

.order-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #cfd7df;
  background: #fff;
}

.order-thumb-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  border: 1px solid #cfd7df;
  color: #6c757d;
  font-size: 0.85rem;
  background: #fff;
}

.member-order-number-cell {
  overflow-wrap: anywhere;
}

.member-order-money-cell {
  color: var(--store-accent);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .member-order-table,
  .member-order-table tbody {
    display: block;
    width: 100%;
  }

  .member-order-table {
    border: 0;
  }

  .member-order-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .member-order-table tbody {
    display: grid;
    gap: 1rem;
  }

  .member-order-table tbody tr {
    background: #fff;
    border: 1px solid var(--store-line);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 1rem;
  }

  .storefront-surface .member-order-table td {
    align-items: start;
    border-bottom: 1px solid var(--store-line);
    display: grid;
    gap: 0.75rem;
    grid-column: 1 / -1;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    min-width: 0;
    padding: 0.65rem 0;
    text-align: left;
  }

  .storefront-surface .member-order-table td > .order-state-attention {
    grid-column: 2;
  }

  .member-order-table td::before {
    color: var(--store-muted);
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 600;
  }

  .storefront-surface .member-order-table .member-order-image-cell {
    border-bottom: 0;
    display: block;
    grid-column: 1;
    grid-row: 1;
    padding: 0 0.85rem 0.85rem 0;
  }

  .member-order-table .member-order-image-cell::before {
    display: none;
  }

  .storefront-surface .member-order-table .member-order-number-cell {
    align-self: center;
    border-bottom: 0;
    display: block;
    font-size: 0.92rem;
    font-weight: 700;
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0.85rem;
  }

  .member-order-table .member-order-number-cell::before {
    display: block;
    margin-bottom: 0.25rem;
  }

  .member-order-table .member-order-date-cell {
    border-top: 1px solid var(--store-line);
  }

  .storefront-surface .member-order-table .table-action-cell {
    border-bottom: 0;
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    padding: 0.85rem 0 0;
    text-align: left !important;
    white-space: normal;
  }

  .member-order-table .table-action-cell::before {
    display: none;
  }

  .member-order-table .table-action-link {
    align-items: center;
    background: var(--store-ink);
    border: 1px solid var(--store-ink);
    border-radius: 6px;
    box-sizing: border-box;
    color: #fff;
    display: flex;
    justify-content: center;
    max-width: 100%;
    min-width: 0;
    padding: 0.7rem 1rem;
    text-decoration: none;
    width: 100%;
  }

  .member-order-table .table-action-link:hover,
  .member-order-table .table-action-link:focus-visible {
    background: transparent;
    color: var(--store-ink);
  }
}

/* MOONARROW storefront theme */
:root {
  --store-ink: var(--moonarrow-color-legacy-store-ink);
  --store-muted: var(--moonarrow-color-legacy-store-muted);
  --store-line: var(--moonarrow-color-legacy-store-line);
  --store-canvas: var(--moonarrow-color-paper);
  --store-soft: var(--moonarrow-color-legacy-store-soft);
  --store-accent: var(--moonarrow-color-legacy-store-accent);
}

body {
  margin-bottom: 0;
}

.storefront-surface {
  background: var(--store-canvas);
  color: var(--store-ink);
  font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
  overflow-x: clip;
}

.site-header {
  background: rgba(5, 9, 16, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.site-navigation {
  min-height: 82px;
  padding: 0.75rem 0;
}

.site-brand,
.site-footer-brand > a {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
}

.site-navigation-links {
  align-items: center;
  gap: 0.4rem;
}

.site-navigation .nav-link,
.site-navigation .nav-button {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  padding: 0.75rem 0.85rem;
  position: relative;
}

.site-navigation .nav-link::after,
.site-navigation .nav-button::after {
  background: #78a6ff;
  bottom: 0.35rem;
  content: "";
  height: 1px;
  left: 0.85rem;
  position: absolute;
  right: 0.85rem;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.site-navigation .nav-link:hover::after,
.site-navigation .nav-link:focus-visible::after,
.site-navigation .nav-button:hover::after,
.site-navigation .nav-button:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.site-navigation .dropdown-toggle::after {
  background: transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
  border-right: 0.3em solid transparent;
  border-top: 0.3em solid;
  display: inline-block;
  height: auto;
  left: auto;
  margin-left: 0.4em;
  position: static;
  transform: none;
  vertical-align: 0.18em;
  width: auto;
}

.nav-cart-count {
  align-items: center;
  background: var(--store-accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 0.68rem;
  height: 1.25rem;
  justify-content: center;
  margin-left: 0.2rem;
  min-width: 1.25rem;
  padding: 0 0.25rem;
}

.site-main {
  min-height: 62vh;
  padding-bottom: 4.5rem;
  padding-top: 2.5rem;
}

.storefront-page {
  margin: 0 auto;
  max-width: 1180px;
}

.storefront-page-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.storefront-page-header h1,
.home-band h2,
.product-detail-info h1 {
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0;
}

.storefront-page-header h1 {
  font-size: 2.6rem;
  margin: 0;
}

.section-kicker {
  color: var(--store-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 0.55rem;
  text-transform: uppercase;
}

.auth-support-actions {
  border-top: 1px solid var(--store-line);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.25rem;
  padding-top: 1rem;
}

.auth-form-actions {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.auth-form-actions .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  margin: 0;
}

.auth-support-link {
  align-items: center;
  background: #fff;
  border: 1px solid var(--store-line);
  color: var(--store-ink);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 76px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-support-link:hover,
.auth-support-link:focus-visible {
  border-color: var(--store-ink);
  box-shadow: 0 8px 20px rgba(32, 33, 31, 0.1);
  color: var(--store-ink);
  transform: translateY(-1px);
}

.auth-support-link:focus-visible {
  outline: 2px solid var(--store-ink);
  outline-offset: 2px;
}

.auth-support-icon {
  align-items: center;
  background: var(--store-soft);
  border-radius: 50%;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 600;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.auth-support-copy strong,
.auth-support-copy small {
  display: block;
}

.auth-support-copy strong {
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-support-copy small {
  color: var(--store-muted);
  font-size: 0.74rem;
  line-height: 1.45;
  margin-top: 0.2rem;
}

.auth-verification-help {
  align-items: center;
  background: var(--store-soft);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.84rem;
  gap: 0.4rem 0.75rem;
  margin-top: 1rem;
  max-width: 520px;
  padding: 0.9rem 1rem;
}

.auth-verification-help a {
  color: var(--store-ink);
  font-weight: 600;
}

.auth-verification-warning {
  background: #f4f0e6;
  border-left: 3px solid #92723d;
  color: var(--store-ink);
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  padding: 1rem;
}

.auth-verification-warning strong {
  font-weight: 600;
}

.auth-verification-warning p {
  line-height: 1.65;
  margin: 0;
}

.auth-verification-warning .btn {
  justify-self: start;
  width: auto;
}

.auth-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.verification-code-input {
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: 0.45em;
  max-width: 13rem;
  text-align: center;
}

.auth-form-intro {
  line-height: 1.7;
  max-width: 520px;
}

@media (max-width: 575.98px) {
  .auth-support-actions,
  .auth-form-actions {
    grid-template-columns: 1fr;
  }
}

.home-hero-section {
  margin-bottom: 5rem;
  margin-top: -2.5rem;
}

.home-carousel-frame {
  min-height: 0;
}

.home-hero-overlay {
  align-content: center;
  align-items: start;
  gap: 1rem;
  max-width: 46rem;
  padding: 4rem clamp(1.25rem, 7vw, 7rem);
}

.home-hero-overlay::before {
  background: rgba(24, 25, 23, 0.36);
}

.home-hero-overlay h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3.5rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.home-hero-overlay .lead {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 34rem;
}

.home-hero-link {
  border-bottom: 1px solid #fff;
  color: #fff;
  display: inline-block;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  padding-bottom: 0.3rem;
  text-decoration: none;
  width: max-content;
}

.home-hero-link:hover,
.home-hero-link:focus-visible {
  color: #fff;
  opacity: 0.78;
}

.home-carousel-control {
  background: transparent;
  color: #fff;
  height: 3rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.72);
  transition: opacity 160ms ease;
  width: 3rem;
}

.home-carousel-control:hover,
.home-carousel-control:focus-visible {
  background: transparent;
  color: #fff;
  opacity: 0.72;
}

.home-band {
  padding-bottom: 5rem;
}

.home-band .page-heading {
  align-items: end;
  border-bottom: 1px solid var(--store-line);
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
}

.home-band h2 {
  font-size: 2.25rem;
  margin: 0;
}

.storefront-surface .product-grid {
  align-items: start;
  gap: 2.25rem 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 280px));
  justify-content: center;
}

.storefront-surface .product-card {
  border: 0;
  border-radius: 0;
  display: block;
  padding: 0;
  width: 100%;
}

.product-card-image-link {
  display: block;
  overflow: hidden;
}

.storefront-surface .product-card-image-frame {
  background: var(--store-soft);
  border: 0;
  border-radius: 0;
  margin: 0;
}

.storefront-surface .product-card-image {
  mix-blend-mode: multiply;
  padding: 0.5rem;
  transition: transform 300ms ease;
}

.product-card-image-link:hover .product-card-image,
.product-card-image-link:focus-visible .product-card-image {
  transform: scale(1.035);
}

.product-card-content {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-top: 1rem;
}

.product-card-content h2,
.product-card-content h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  margin: 0;
}

.product-card-content h2 a,
.product-card-content h3 a {
  color: var(--store-ink);
  text-decoration: none;
}

.product-card-price {
  color: var(--store-accent);
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0;
  white-space: nowrap;
}

.product-card-meta {
  color: var(--store-muted);
  font-size: 0.8rem;
  grid-column: 1 / -1;
  margin: 0;
}

.product-card-stock {
  color: var(--store-muted);
  font-size: 0.82rem;
  grid-column: 1 / -1;
  margin: 0;
}

.catalog-filter {
  align-items: end;
  background: var(--store-soft);
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 0.5fr) minmax(160px, 0.55fr) minmax(170px, 0.65fr) minmax(240px, 1.5fr) auto;
  margin: 0 0 3rem;
  max-width: none;
  padding: 1.5rem;
}

.catalog-filter.is-live-search {
  grid-template-columns: minmax(150px, 0.5fr) minmax(160px, 0.55fr) minmax(170px, 0.65fr) minmax(240px, 1.5fr);
}

.catalog-filter.is-loading input,
.catalog-filter.is-loading select {
  cursor: progress;
}

[data-product-search-results] {
  transition: opacity 160ms ease;
}

[data-product-search-results][aria-busy="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.catalog-filter-field {
  display: grid;
  gap: 0.45rem;
}

.catalog-filter-field label,
.checkout-form > label,
.product-detail-info .stacked-form > label {
  color: var(--store-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-detail-layout {
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(320px, 560px) minmax(300px, 430px);
  justify-content: center;
}

.product-detail-main-frame {
  background: var(--store-soft);
  border: 0;
  border-radius: 0;
  max-width: 560px;
  width: 100%;
}

.product-detail-main-frame img {
  mix-blend-mode: multiply;
  padding: 1rem;
}

.product-detail-info {
  align-self: start;
  padding-top: 1.5rem;
}

.product-detail-info h1 {
  font-size: 2.6rem;
  margin-bottom: 1.25rem;
}

.product-detail-description {
  color: var(--store-muted);
  line-height: 1.8;
  white-space: pre-line;
}

.product-brand {
  color: var(--store-muted);
  font-weight: 700;
  margin: 0;
}

.product-number {
  color: var(--store-muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin: 0.45rem 0 0;
}

.product-number span {
  color: var(--store-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.paint-product-facts {
  border-block: 1px solid #d8dee4;
  display: grid;
  margin: 0;
  padding: 0.75rem 0;
}

.paint-product-facts > div {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(6rem, 0.45fr) minmax(0, 1fr);
  padding: 0.35rem 0;
}

.paint-product-facts dt {
  color: var(--store-muted);
  font-weight: 600;
}

.paint-product-facts dd {
  margin: 0;
}

.paint-selected-variant {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 1.75rem;
}

.paint-color-swatch {
  border: 1px solid #8b918a;
  display: inline-block;
  height: 1.5rem;
  width: 1.5rem;
}

.paint-calculator {
  border-block: 1px solid #d8dee4;
  display: grid;
  gap: 0.75rem;
  padding: 1rem 0;
}

.paint-calculator h2 {
  font-size: 1.1rem;
  margin: 0;
}

.paint-calculator-fields {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.paint-calculator-fields > div {
  display: grid;
  gap: 0.35rem;
}

.paint-calculator-result {
  font-weight: 700;
  margin: 0;
}

@media (max-width: 575.98px) {
  .paint-calculator-fields {
    grid-template-columns: 1fr;
  }
}

.product-detail-info .stacked-form {
  border-top: 1px solid var(--store-line);
  margin-top: 2rem;
  max-width: none;
  padding-top: 1.75rem;
}

.product-purchase-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.product-purchase-meta p {
  border-bottom: 1px solid var(--store-line);
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0.85rem 0;
}

.product-purchase-meta span {
  color: var(--store-muted);
  font-size: 0.78rem;
}

.product-purchase-meta strong {
  font-size: 1.05rem;
  font-weight: 500;
}

.product-purchase-meta p:first-child strong {
  color: var(--store-accent);
  font-size: 1.45rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.product-gallery-title {
  color: var(--store-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.product-detail-gallery-thumb,
.product-detail-gallery-thumb.is-active {
  border-radius: 0;
}

.product-detail-gallery-thumb.is-active {
  border-color: var(--store-ink);
  box-shadow: 0 0 0 1px var(--store-ink) inset;
}

.table-scroll {
  overflow-x: auto;
  width: 100%;
}

.storefront-surface .data-table th {
  color: var(--store-muted);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.storefront-surface .data-table td {
  padding-bottom: 1rem;
  padding-top: 1rem;
}

.order-detail-product-cell {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.order-detail-money-cell {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .order-detail-table,
  .order-detail-table tbody {
    display: block;
    width: 100%;
  }

  .order-detail-table {
    border: 0;
  }

  .order-detail-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .order-detail-table tbody {
    display: grid;
    gap: 1rem;
  }

  .order-detail-table tbody tr {
    background: #fff;
    border: 1px solid var(--store-line);
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 1rem;
  }

  .storefront-surface .order-detail-table td {
    align-items: start;
    border-bottom: 1px solid var(--store-line);
    display: grid;
    gap: 0.75rem;
    grid-column: 1 / -1;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    min-width: 0;
    padding: 0.65rem 0;
    text-align: left;
  }

  .order-detail-table td::before {
    color: var(--store-muted);
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 600;
  }

  .storefront-surface .order-detail-table .order-detail-image-cell {
    border-bottom: 0;
    display: block;
    grid-column: 1;
    grid-row: 1;
    padding: 0 0.85rem 0.85rem 0;
  }

  .order-detail-table .order-detail-image-cell::before {
    display: none;
  }

  .storefront-surface .order-detail-table .order-detail-product-cell {
    align-self: center;
    border-bottom: 0;
    display: block;
    grid-column: 2;
    grid-row: 1;
    padding: 0 0 0.85rem;
  }

  .order-detail-table .order-detail-product-cell::before {
    display: block;
    margin-bottom: 0.25rem;
  }

  .storefront-surface .order-detail-table .order-detail-money-cell {
    text-align: left !important;
  }

  .order-detail-table .order-detail-subtotal-cell {
    border-bottom: 0;
    color: var(--store-accent);
    font-size: 1.05rem;
    font-weight: 700;
  }
}

.cart-table {
  min-width: 760px;
  table-layout: fixed;
}

.cart-table .cart-column-product {
  width: 25%;
}

.cart-table .cart-column-specification {
  width: 20%;
}

.cart-table .cart-column-unit-price,
.cart-table .cart-column-subtotal {
  width: 14%;
}

.cart-table .cart-column-quantity {
  width: 16%;
}

.cart-table .cart-column-actions {
  width: 11%;
}

.cart-table .cart-text-cell {
  overflow-wrap: anywhere;
}

.cart-product-summary {
  align-items: center;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 64px minmax(0, 1fr);
}

.cart-product-summary strong {
  font-weight: 600;
  min-width: 0;
}

.cart-product-thumb {
  aspect-ratio: 1 / 1;
  background: var(--store-soft);
  border: 1px solid var(--store-line);
  display: block;
  object-fit: cover;
  width: 64px;
}

.cart-product-thumb-placeholder {
  align-items: center;
  color: var(--store-muted);
  display: flex;
  font-size: 0.75rem;
  justify-content: center;
}

.cart-item-form {
  margin: 0;
}

.cart-quantity-stepper {
  align-items: stretch;
  display: grid;
  grid-template-columns: 42px 74px 42px;
  max-width: 100%;
  width: max-content;
}

.cart-quantity-button {
  align-items: center;
  appearance: none;
  background: #fff;
  border: 1px solid var(--store-line);
  color: var(--store-ink);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  font-weight: 600;
  justify-content: center;
  min-height: 44px;
  padding: 0;
}

.cart-quantity-button:hover,
.cart-quantity-button:focus-visible {
  background: var(--store-soft);
  border-color: var(--store-ink);
}

.cart-quantity-button:disabled {
  background: #f4f4f1;
  color: #a8aaa5;
  cursor: not-allowed;
}

.cart-table .cart-quantity-stepper input[type="number"] {
  box-sizing: border-box;
  height: 44px;
  -moz-appearance: textfield;
}

.cart-table .cart-quantity-stepper input[type="number"]::-webkit-inner-spin-button,
.cart-table .cart-quantity-stepper input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
  opacity: 0;
}

.cart-table .cart-action-cell {
  white-space: nowrap;
}

.storefront-money-cell {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.checkout-summary-table {
  min-width: 0;
  table-layout: fixed;
  width: 100%;
}

.checkout-summary-table .checkout-image-cell {
  width: 64px;
}

.checkout-summary-table th,
.checkout-summary-table td {
  overflow-wrap: anywhere;
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.checkout-summary-table .storefront-money-cell {
  width: 84px;
}

.cart-totals-panel {
  align-items: center;
  border-bottom: 1px solid var(--store-line);
  border-top: 1px solid var(--store-line);
  display: flex;
  justify-content: space-between;
  margin: 2rem 0 1rem auto;
  max-width: 360px;
  padding: 1.25rem 0;
}

.cart-totals-panel strong {
  font-family: inherit;
  font-size: 1.5rem;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  min-width: 12ch;
  text-align: right;
  white-space: nowrap;
}

.cart-page .action-row {
  justify-content: flex-end;
}

@media (max-width: 767.98px) {
  .cart-page .table-scroll {
    overflow: visible;
  }

  .cart-table,
  .cart-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .cart-table {
    border: 0;
  }

  .cart-table colgroup {
    display: none;
  }

  .cart-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .cart-table tbody {
    display: grid;
    gap: 1rem;
  }

  .cart-table tbody tr {
    background: #fff;
    border: 1px solid var(--store-line);
    display: block;
    padding: 1rem;
  }

  .storefront-surface .cart-table td {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    min-width: 0;
    text-align: left;
  }

  .cart-table td::before {
    color: var(--store-muted);
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 600;
  }

  .storefront-surface .cart-table .cart-product-cell {
    display: block;
    padding-top: 0;
  }

  .cart-table .cart-product-cell::before {
    display: block;
    margin-bottom: 0.55rem;
  }

  .cart-product-summary {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .cart-product-thumb {
    width: 72px;
  }

  .cart-table .cart-subtotal-cell {
    color: var(--moonarrow-color-brand-blue);
    font-size: 1.05rem;
    font-weight: 700;
  }

  .storefront-surface .cart-table .cart-remove-cell {
    border-bottom: 0;
    display: block;
    padding-bottom: 0;
    padding-top: 0.85rem;
  }

  .cart-table .cart-remove-cell .btn {
    width: 100%;
  }

  .cart-totals-panel {
    max-width: none;
    width: 100%;
  }

  .cart-page .action-row,
  .cart-page .action-row .btn {
    width: 100%;
  }
}

.checkout-layout {
  align-items: start;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 1fr);
}

.checkout-summary {
  background: var(--store-soft);
  min-width: 0;
  padding: 1.5rem;
}

.checkout-summary h2,
.checkout-form h2 {
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.checkout-form {
  max-width: none;
}

.site-footer {
  background: #05080e;
  color: #d6d8d2;
  padding: 4rem 0 0;
}

.site-footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(150px, 1fr));
  padding-bottom: 3.5rem;
}

.site-footer-brand > a {
  color: #fff;
}

.site-footer-brand p {
  color: #aeb1aa;
  line-height: 1.7;
  margin: 1rem 0 0;
  max-width: 26rem;
}

.site-footer nav {
  display: grid;
  gap: 0.65rem;
}

.site-footer h2 {
  color: #fff;
  font-size: 0.86rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.site-footer nav a {
  color: #aeb1aa;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
  text-decoration: none;
}

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

.site-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8f928b;
  font-size: 0.78rem;
  padding-bottom: 1.25rem;
  padding-top: 1.25rem;
}

.cart-summary-widget-link {
  background: var(--store-accent);
  border-color: rgba(255, 255, 255, 0.28);
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(77, 36, 39, 0.3);
}

.cart-summary-widget-link:hover,
.cart-summary-widget-link:focus-visible {
  background: #285fc5;
}

.site-navigation .site-brand:hover,
.site-navigation .site-brand:focus-visible,
.site-navigation .nav-link:hover,
.site-navigation .nav-link:focus-visible,
.site-navigation .nav-button:hover,
.site-navigation .nav-button:focus-visible {
  color: #ffffff;
}

@media (max-width: 991.98px) {
  .site-navigation .navbar-toggler {
    align-items: center;
    display: inline-flex;
    justify-content: center;
  }

  .site-navigation {
    min-height: 70px;
  }

  .site-navigation-links {
    align-items: stretch;
    border-top: 1px solid var(--store-line);
    margin-top: 0.75rem;
    padding-top: 0.75rem;
  }

  .site-navigation .nav-link::after,
  .site-navigation .nav-button::after {
    display: none;
  }

  .home-carousel-frame {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .product-detail-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .product-detail-media,
  .product-detail-info {
    margin: 0 auto;
    max-width: 620px;
    width: 100%;
  }

  .checkout-summary {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .site-main {
    padding-top: 1.5rem;
  }

  .checkout-summary .table-scroll {
    overflow: visible;
  }

  .checkout-summary-table .checkout-image-cell,
  .checkout-summary-table .storefront-money-cell {
    width: auto;
  }

  .product-detail-media {
    min-width: 0;
  }

  .product-gallery-section {
    min-width: 0;
  }

  .product-gallery-grid {
    display: flex;
    gap: 0.65rem;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.15rem 0 0.55rem;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .product-gallery-grid .product-detail-gallery-thumb {
    flex: 0 0 clamp(76px, 22vw, 92px);
    max-width: 92px;
    scroll-snap-align: start;
    width: clamp(76px, 22vw, 92px);
  }

  .product-gallery-grid::-webkit-scrollbar {
    height: 4px;
  }

  .product-gallery-grid::-webkit-scrollbar-thumb {
    background: #b8bbb4;
  }

  .home-hero-fullbleed,
  .home-band {
    margin-left: calc(var(--bs-gutter-x) * -0.5);
    margin-right: calc(var(--bs-gutter-x) * -0.5);
    width: auto;
  }

  .storefront-page-header {
    margin-bottom: 1.75rem;
  }

  .storefront-page-header h1,
  .product-detail-info h1 {
    font-size: 2rem;
  }

  .home-hero-section {
    margin-bottom: 3.5rem;
    margin-top: -1.5rem;
  }

  .home-carousel-frame {
    aspect-ratio: auto;
    height: clamp(380px, 68svh, 460px);
    min-height: 380px;
  }

  .home-hero-overlay {
    align-content: end;
    padding: 3rem 3.5rem 3rem 1.25rem;
  }

  .home-hero-overlay::before {
    background: rgba(24, 25, 23, 0.42);
  }

  .home-hero-overlay h1 {
    font-size: 2.2rem;
  }

  .home-hero-overlay .lead {
    display: -webkit-box;
    font-size: 0.92rem;
    line-height: 1.6;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .home-carousel-control {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
  }

  .home-band {
    padding-bottom: 3.5rem;
  }

  .catalog-filter,
  .catalog-filter.is-live-search {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .catalog-filter .btn {
    width: 100%;
  }

  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 479.98px) {
  .storefront-surface .product-grid {
    grid-template-columns: 1fr;
  }

  .home-band .page-heading {
    align-items: start;
  }

  .checkout-summary {
    padding: 1rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
  }

  .site-footer-brand {
    grid-column: auto;
  }
}

/* Kaira-aligned administration theme */
.admin-surface {
  background: #f4f5f2;
  color: var(--store-ink);
  font-family: "Segoe UI", "Noto Sans TC", Arial, sans-serif;
}

.admin-surface .site-main {
  max-width: 1380px;
  padding-bottom: 4rem;
  padding-top: 2rem;
}

.admin-surface .page-section {
  margin-bottom: 2.5rem;
}

.admin-surface .page-heading {
  align-items: center;
  border-bottom: 1px solid #d7dad3;
  margin-bottom: 1.5rem;
  min-height: 54px;
  padding-bottom: 1rem;
}

.admin-surface .page-heading h1 {
  font-family: inherit;
  font-size: 2rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.admin-surface h2,
.admin-surface legend {
  color: var(--store-ink);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

.admin-surface .search-form {
  align-items: center;
  background: #e9ece6;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 1.5rem;
  max-width: none;
  padding: 1rem;
}

.admin-surface .search-form .checkbox-line {
  background: rgba(255, 255, 255, 0.6);
  min-height: 42px;
  padding: 0 0.75rem;
}

.admin-surface .search-form .btn {
  width: 100%;
}

.admin-surface .search-form-note {
  color: #5d655c;
  font-size: 0.88rem;
  margin: -0.8rem 0 1.5rem;
}

.admin-surface .stacked-form {
  gap: 0.65rem;
  max-width: 720px;
}

.admin-surface .stacked-form > label:not(.checkbox-line),
.admin-surface .product-form-preview-block > label,
.admin-surface .home-setting-preview-block > label {
  color: #555952;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.admin-surface .stacked-form .text-muted {
  color: #6d706a !important;
}

.admin-surface .data-table {
  background: #fff;
  border: 1px solid #d8dbd4;
  display: table;
  min-width: 720px;
  width: 100%;
}

.admin-surface .data-table thead {
  background: #e9ece6;
}

.admin-surface .data-table th {
  border-bottom: 1px solid #cfd3cb;
  color: #555952;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0;
  padding: 0.8rem 0.75rem;
  white-space: nowrap;
}

.admin-surface .data-table td {
  border-bottom: 1px solid #e4e6e1;
  font-size: 0.86rem;
  padding: 0.85rem 0.75rem;
  vertical-align: middle;
}

.admin-surface .data-table tbody tr:hover {
  background: #f7f8f5;
}

.admin-surface .data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-surface .data-table a,
.admin-surface .data-table .nav-button {
  color: var(--store-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: #aeb2aa;
  text-underline-offset: 0.2rem;
}

.admin-surface .data-table a:hover,
.admin-surface .data-table a:focus-visible,
.admin-surface .data-table .nav-button:hover,
.admin-surface .data-table .nav-button:focus-visible {
  color: var(--store-accent);
  text-decoration-color: var(--store-accent);
}

.admin-surface .detail-grid {
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #d8dbd4;
  border: 1px solid #d8dbd4;
}

.admin-surface .detail-grid > div {
  background: #fff;
  min-height: 150px;
  padding: 1rem;
}

.admin-surface .detail-grid h2 {
  border-bottom: 1px solid #e1e3de;
  margin: 0 0 0.75rem;
  padding-bottom: 0.6rem;
}

.admin-surface .detail-grid p {
  color: #555952;
  font-size: 0.86rem;
  margin-bottom: 0.4rem;
  overflow-wrap: anywhere;
}

.admin-surface .subsection {
  border-left: 3px solid var(--store-accent);
  background: #fff;
  padding: 1rem;
}

.admin-surface .subsection h2 {
  margin-top: 0;
}

.admin-surface .pagination-nav a,
.admin-surface .pagination-nav span {
  background: #fff;
  border-color: #c9cdc5;
  color: var(--store-ink);
}

.admin-surface .pagination-nav span[aria-current="page"] {
  background: var(--store-ink);
  border-color: var(--store-ink);
  color: #fff;
}

.admin-surface .pagination-nav a:hover,
.admin-surface .pagination-nav a:focus-visible {
  background: #e8eae5;
  border-color: #aeb2aa;
  color: var(--store-ink);
}

.admin-surface .product-form,
.admin-surface .home-setting-form {
  max-width: none;
}

.admin-surface .product-form-preview-layout {
  background: #e9ece6;
  grid-template-columns: minmax(0, 1fr);
  margin: 0.5rem 0 1rem;
  padding: 1rem;
}

.admin-surface .image-preview,
.admin-surface .product-card-image-frame,
.admin-surface .product-detail-main-frame {
  border-color: #c9cdc5;
  border-radius: 0;
}

.admin-surface .product-spec-section {
  background: #e9ece6;
  border: 0;
  border-radius: 0;
  margin: 1rem 0;
  padding: 1rem;
}

.admin-surface .product-spec-row {
  background: #fff;
  border: 1px solid #d4d7d0;
  border-radius: 0;
  padding: 0.85rem;
}

.admin-surface fieldset:not(.product-spec-section) {
  border: 1px solid #d4d7d0;
  display: grid;
  gap: 0.6rem;
  margin: 0.75rem 0;
  padding: 1rem;
}

.admin-surface fieldset:not(.product-spec-section) legend {
  float: none;
  margin-bottom: 0.5rem;
  padding: 0 0.35rem;
  width: auto;
}

.admin-surface .home-setting-section {
  border-top: 1px solid #d7dad3;
  margin-top: 1rem;
  padding-top: 1.25rem;
}

.admin-surface .home-setting-image-card {
  border-color: #c9cdc5;
  border-radius: 0;
  box-shadow: none;
}

.admin-surface .home-setting-focus-marker {
  border-color: var(--store-accent);
}

.admin-surface .home-setting-focus-marker::after {
  background: var(--store-accent);
}

.admin-surface .danger-form {
  border-top: 1px solid #d7dad3;
  padding-top: 1rem;
}

.admin-surface .danger-form .btn:not(.btn-danger),
.admin-surface .home-setting-delete-button {
  color: var(--moonarrow-color-admin-danger);
}

.admin-surface .admin-page-bottom-actions {
  border-top: 1px solid #d7dad3;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
}

.admin-surface .alert-info {
  background: #e9ece6;
  border-color: #cbd0c7;
  border-radius: 0;
  color: var(--store-ink);
}

.admin-mobile-sort {
  display: none;
}

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

  .admin-surface .product-form-preview-layout,
  .admin-surface .home-setting-preview-layout {
    grid-template-columns: 1fr;
  }

  .admin-surface .data-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 767.98px) {
  .admin-surface .site-main {
    padding-top: 1.25rem;
  }

  .admin-surface .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-surface .page-heading h1 {
    font-size: 1.65rem;
  }

  .admin-surface .page-heading > .btn,
  .admin-surface .page-heading > .action-row,
  .admin-surface .page-heading > .action-row .btn {
    width: 100%;
  }

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

  .admin-surface .detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-surface .product-form-preview-layout {
    padding: 0.75rem;
  }

  .admin-surface .product-spec-row {
    grid-template-columns: 1fr;
  }

  .admin-surface .admin-page-bottom-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-surface .admin-page-bottom-actions .btn {
    width: 100%;
  }

  .admin-mobile-sort {
    background: #fff;
    border: 1px solid #d4d7d0;
    display: block;
    margin: 1rem 0;
    padding: 0.85rem;
  }

  .admin-mobile-sort summary {
    cursor: pointer;
    font-size: 0.86rem;
    font-weight: 700;
  }

  .admin-mobile-sort p {
    margin: 0.65rem 0;
  }

  .admin-mobile-sort-links {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-mobile-sort-links a {
    border: 1px solid #c9cdc5;
    color: var(--store-ink);
    font-size: 0.8rem;
    padding: 0.6rem;
    text-align: center;
    text-decoration: none;
  }

  .admin-mobile-sort-links a:hover,
  .admin-mobile-sort-links a:focus-visible {
    background: #e8eae5;
    border-color: #aeb2aa;
  }

  .admin-surface .admin-card-table,
  .admin-surface .admin-card-table tbody {
    background: transparent;
    border: 0;
    display: block;
    min-width: 0;
    overflow: visible;
    width: 100%;
  }

  .admin-surface .admin-card-table thead {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .admin-surface .admin-card-table tbody {
    display: grid;
    gap: 0.85rem;
  }

  .admin-surface .admin-card-table tbody tr {
    background: #fff;
    border: 1px solid #d4d7d0;
    display: block;
    padding: 0.85rem;
  }

  .admin-surface .admin-card-table td {
    align-items: start;
    border-bottom: 1px solid #e4e6e1;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 6rem minmax(0, 1fr);
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.65rem 0;
    text-align: left;
    white-space: normal;
  }

  .admin-surface .admin-card-table td::before {
    color: #656962;
    content: attr(data-label);
    font-size: 0.76rem;
    font-weight: 700;
  }

  .admin-surface .admin-card-table td:last-child {
    border-bottom: 0;
  }

  .admin-surface .admin-card-table .table-action-cell {
    display: block;
    padding-bottom: 0;
    padding-top: 0.85rem;
    text-align: left !important;
  }

  .admin-surface .admin-card-table .table-action-cell::before {
    display: block;
    margin-bottom: 0.5rem;
  }

  .admin-surface .admin-card-table .table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: stretch;
    width: 100%;
  }

  .admin-surface .admin-card-table .table-actions > * {
    flex: 1 1 110px;
  }

  .admin-surface .admin-card-table .table-action-link,
  .admin-surface .admin-card-table .table-action-button {
    align-items: center;
    border: 1px solid #aeb2aa;
    display: flex;
    justify-content: center;
    padding: 0.65rem 0.8rem;
    text-decoration: none;
    width: 100%;
  }

  .admin-surface .admin-card-table .table-action-danger {
    border-color: #ebc2c7;
  }
}
.admin-detail-list {
    display: grid;
    gap: 0.65rem;
    margin: 1rem 0;
}

.admin-detail-list > div {
    display: grid;
    grid-template-columns: minmax(9rem, 0.35fr) 1fr;
    gap: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e3e6e4;
}

.admin-detail-list dt {
    color: #657069;
    font-weight: 600;
}

.admin-detail-list dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.admin-inline-actions form {
    margin: 0;
}

.refund-panel {
    background: #f7f6f1;
    border: 1px solid #d9ddd8;
    margin-top: 1.5rem;
    padding: clamp(1rem, 3vw, 1.5rem);
}

.refund-panel-heading,
.refund-history-summary {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.refund-panel-heading h3 {
    margin: 0;
}

.refund-panel-heading > strong {
    color: #8b312f;
    font-size: 1.25rem;
}

.refund-history {
    display: grid;
    gap: 1rem;
    margin-top: 1rem;
}

.refund-history-item {
    background: #fff;
    border: 1px solid #e1e3de;
    padding: 1rem;
}

.refund-history-item .admin-detail-list {
    margin-bottom: 0;
}

.refund-form {
    border-top: 1px solid #d9ddd8;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}

.refund-form textarea {
    max-width: 52rem;
    width: 100%;
}

.refund-confirm {
    color: #6f2424;
    font-weight: 700;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .admin-detail-list > div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .refund-panel-heading,
    .refund-history-summary {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.35rem;
    }
}
