:root {
  --primary: #eb3256;
  --primary-hover: #d92549;
  --page-bg: #f5f7fa;
  --text: #1e2a3a;
  --muted: #6c757d;
  --mint: #e8f5ef;
  --navy: #1a2c3e;
  --line: #edf0f3;
  --bs-primary: #eb3256;
  --bs-primary-rgb: 235, 50, 86;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font:
    16px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--primary);
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea {
  touch-action: manipulation;
}
a,
button {
  transition:
    color 0.18s,
    background 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #f4a4b4;
  outline-offset: 4px;
}
.page-width {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
  background: #fff;
  box-shadow: 0 2px 8px #00000008;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: #ff2857;
  color: white;
  box-shadow: 0 4px 10px #07c16026;
}
.brand-text strong {
  display: block;
  color: var(--primary);
  font-size: 25.6px;
  line-height: 1.25;
  font-weight: 700;
}
.brand-text small {
  display: block;
  margin-top: 2px;
  color: #88929c;
  font-size: 11.2px;
  line-height: 1.4;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  color: #2c3e50;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active:not([data-nav='home']) {
  color: var(--primary);
}
.payment-channel-icon {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 0;
  object-fit: contain;
  flex-shrink: 0;
}
.wallet-choice.wallet-maintenance,
.wallet-choice.wallet-maintenance:hover {
  filter: grayscale(1);
  opacity: 0.62;
  cursor: not-allowed;
  border-style: dashed;
  background: var(--page-bg);
  color: var(--muted);
}
.variant-selector {
  min-width: 0;
}
.variant-selector legend {
  float: none;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.variant-choice {
  display: inline-flex;
  position: relative;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface, #fff);
  cursor: pointer;
  font-size: 13px;
}
.variant-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.variant-choice strong {
  color: var(--primary);
}
.variant-stock {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--muted);
}
.variant-choice.variant-sold-out {
  opacity: 0.55;
  cursor: not-allowed;
  border-style: dashed;
}
.variant-choice:has(input:checked) {
  background: var(--mint);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.variant-choice:has(input:focus-visible) {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}
.purchase-discounts {
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page-bg);
}
.purchase-discount-tier {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 7px 0;
  font-size: 13px;
  color: var(--muted);
}
.purchase-discount-tier strong {
  margin: 0 3px;
}
.purchase-discount-tier.active {
  color: var(--primary);
}
.purchase-discounts > small {
  display: block;
  margin-top: 7px;
  font-size: 11px;
  color: var(--muted);
}
.discount-breakdown {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--primary);
}
.discount-breakdown[hidden] {
  display: none;
}
.wallet-maintenance-label {
  display: block;
  font-size: 10px;
  line-height: 1.2;
}
.chat-welcome {
  white-space: pre-wrap;
}
.chat-send-status {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  opacity: 0.8;
  margin-top: 5px;
}
.chat-send-status button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-decoration: underline;
}
.chat-message-time {
  display: block;
  margin-top: 6px;
  color: inherit;
  opacity: 0.65;
  font-size: 11px;
  line-height: 1.4;
}
.chat-bubble.send-error {
  outline: 1px solid #e15d6a;
}
main {
  min-height: 65vh;
}
.hero-banner {
  margin: 30px 0 50px;
  padding: 60px 48px;
  text-align: center;
  border-radius: 28px;
  background: var(--primary);
  box-shadow: 0 10px 25px -8px #07c1604d;
}
.hero-banner h1 {
  margin: 0 0 20px;
  color: white;
  font-size: 44.8px;
  line-height: 1.4;
  font-weight: 750;
}
.hero-banner p {
  margin: 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 600;
}
.hero-banner.compact {
  padding: 40px 48px;
  margin: 24px 0 36px;
}
.hero-banner.compact h1 {
  font-size: 35px;
}
.hero-banner.compact p {
  font-size: 17px;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 10px;
  padding: 4px 0;
  margin-bottom: 28px;
}
.category-tabs a {
  display: block;
  padding: 12px 22px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 50px;
  color: #475569;
  font-size: 15.2px;
  font-weight: 600;
}
.category-tabs a.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px #07c1604d;
}
.category-tabs a:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.category-tabs a.active:hover {
  color: white;
}
.products-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  scroll-margin-top: 110px;
}
.product-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 12px #0000000a;
}
.product-card:hover {
  box-shadow: 0 6px 20px #0000000e;
}
.product-image {
  display: block;
  flex: 0 0 104px;
  overflow: hidden;
  width: 104px;
  height: 84px;
  border-radius: 12px;
  background: #f1f4f7;
}
.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info {
  flex: 1;
  min-width: 0;
}
.product-info h2 {
  margin: 0 0 8px;
  font-size: 17.6px;
  line-height: 1.5;
  font-weight: 700;
}
.product-info p {
  margin: 0;
  color: var(--muted);
  font-size: 13.6px;
  line-height: 1.55;
}
.product-meta {
  flex: 0 0 170px;
  text-align: center;
}
.product-price {
  color: var(--primary);
  font-size: 25.6px;
  line-height: 1.5;
  font-weight: 700;
  white-space: nowrap;
}
.product-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.auto-delivery-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 11px;
  border-radius: 24px;
  background: var(--mint);
  color: var(--primary);
  font-size: 11.2px;
  white-space: nowrap;
  border: 1px solid currentColor;
}
.stock-badge {
  display: inline-block;
  margin-top: 5px;
  padding: 4px 11px;
  border-radius: 24px;
  background: var(--mint);
  color: var(--primary);
  font-size: 11.2px;
  white-space: nowrap;
}
.stock-badge.stock-tight {
  background: #fff4de;
  color: #a86613;
}
.stock-badge.stock-low {
  background: #fff0ed;
  color: #cc4c3a;
}
.stock-badge.sold-out {
  background: #f1f3f5;
  color: #929aa3;
}
.product-action {
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 26px;
}
.btn-primary {
  --bs-btn-bg: var(--primary);
  --bs-btn-border-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-hover);
  --bs-btn-hover-border-color: var(--primary-hover);
  --bs-btn-active-bg: var(--primary-hover);
  --bs-btn-active-border-color: var(--primary-hover);
  --bs-btn-disabled-bg: #eaa1b0;
  --bs-btn-disabled-border-color: #eaa1b0;
}
.buy-button {
  font-size: 14.4px;
  padding: 11px 28px;
  min-width: 114px;
  box-shadow: 0 3px 8px #07c1601a;
}
.btn-dark {
  --bs-btn-bg: #2c3e50;
  --bs-btn-border-color: #2c3e50;
  --bs-btn-hover-bg: #1a2c3e;
  --bs-btn-hover-border-color: #1a2c3e;
}
.btn-outline-dark {
  --bs-btn-color: #475569;
  --bs-btn-border-color: #e0e4e8;
  --bs-btn-hover-color: var(--primary);
  --bs-btn-hover-bg: #fff4f6;
  --bs-btn-hover-border-color: var(--primary);
}
.section-card {
  margin: 40px 0;
  padding: 36px 32px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 4px 20px #0000000a;
  scroll-margin-top: 105px;
}
.section-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  height: 48px;
  background: var(--mint);
  border-radius: 16px;
  font-size: 23px;
}
.section-card-header h1,
.section-card-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
}
.section-card-header p {
  margin: 4px 0 0;
  font-size: 15px;
}
.track-form {
  display: flex;
  align-items: center;
  gap: 12px;
}
.track-form .form-control {
  min-width: 0;
}
.track-form .number-input {
  flex: 1.5;
}

.track-form .btn {
  flex-shrink: 0;
}
.form-control {
  padding: 11px 18px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}
.form-control::placeholder {
  color: #939ba5;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #eb325612;
}
.track-form .form-control {
  border-radius: 50px;
}
.field {
  margin-bottom: 20px;
}
.field > label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 16px;
  font-weight: 600;
}
.field > small,
.help-text {
  display: block;
  margin-top: 7px;
  color: #8a939e;
  font-size: 12px;
  line-height: 1.7;
}
.faq-list {
  margin-top: 4px;
}
.faq-item {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f2f5;
}
.faq-item:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  list-style: none;
  cursor: pointer;
  font-size: 15.2px;
  font-weight: 600;
  color: var(--navy);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary:after {
  content: '▼';
  flex-shrink: 0;
  color: var(--primary);
  font-size: 12px;
}
.faq-item:not([open]) summary:after {
  transform: rotate(-90deg);
}
.faq-item p {
  white-space: pre-line;
  color: var(--muted);
  font-size: 13.6px;
  line-height: 1.75;
  margin: 12px 0 0;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
  color: #475569;
  font-size: 13.6px;
  line-height: 1.5;
}
.breadcrumbs a {
  color: var(--primary);
}
.breadcrumbs span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-note {
  margin: 0 0 20px;
  color: #8a939e;
  font-size: 13px;
}
.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.31fr) minmax(0, 1fr);
  align-items: start;
  gap: 40px;
  margin: 20px 0 50px;
}
.product-info-left,
.purchase-sidebar {
  padding: 32px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 4px 20px #0000000a;
}
.product-info-left h1 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 25.6px;
  line-height: 1.5;
  font-weight: 700;
}
.product-subtitle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: #7f8a97;
  font-size: 13px;
}
.product-subtitle a {
  color: var(--primary);
}
.product-price-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: #f8fafc;
}
.detail-price {
  color: var(--primary);
  font-size: 32px;
  line-height: 1.4;
  font-weight: 700;
}
.detail-price small {
  font-size: 18px;
}
.account-info-card {
  margin: 20px 0;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #e8f5ef, #d4e9e0);
}
.account-info-card h2 {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}
.account-info-card dl {
  margin: 0;
}
.account-info-card dl > div {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid #d5e7df;
}
.account-info-card dl > div:last-child {
  border: none;
  padding-bottom: 0;
}
.account-info-card dt {
  color: #596c73;
  font-size: 14px;
  font-weight: 500;
}
.account-info-card dd {
  margin: 0;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
}
.text-primary,
.account-info-card .stock-value {
  color: var(--primary) !important;
}
.product-description {
  margin-top: 24px;
  color: #5f6c78;
  font-size: 14px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.product-description h2 {
  margin: 0 0 14px;
  font-size: 17px;
  color: var(--navy);
  font-weight: 600;
}
.product-description p {
  margin: 0;
  white-space: pre-wrap;
}
.purchase-sidebar {
  padding: 28px;
  position: sticky;
  top: 106px;
}
.purchase-title {
  margin: 0 0 20px;
  padding: 0 0 12px;
  border-bottom: 1px solid #edf0f3;
  font-size: 19.2px;
  font-weight: 700;
}
.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}
.quantity-control button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f0f2f5;
  color: #334155;
  font-size: 20px;
}
.quantity-control button:hover {
  background: #e8edf1;
}
.quantity-control button:disabled {
  color: #b5bdc6;
  cursor: not-allowed;
}
.quantity-control input {
  width: 60px;
  padding: 4px;
  border: 0;
  background: none;
  text-align: center;
  font-size: 18px;
  color: var(--text);
  appearance: textfield;
}
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button {
  appearance: none;
}
.total-box {
  padding: 14px 20px;
  background: var(--mint);
  border-radius: 12px;
  text-align: center;
}
.total-box strong {
  color: var(--primary);
  font-size: 28px;
  font-weight: 700;
}
.total-box strong small {
  font-size: 15px;
}
.wallet-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wallet-choice {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  margin: 0;
  padding: 8px 12px;
  border: 2px solid transparent;
  border-radius: 40px;
  background: #f8fafc;
  color: #374151;
  font-size: 12.8px;
  font-weight: 400;
  cursor: pointer;
}
.wallet-choice:has(input:checked) {
  border-color: var(--primary);
  background: var(--mint);
}
.wallet-choice:has(input:focus-visible) {
  outline: 3px solid #f4a4b4;
  outline-offset: 2px;
}
.wallet-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
/* Shared by product checkout and member recharge, including narrow screens. */
:is(#checkout-form, #member-recharge-form) .wallet-options {
  gap: 8px;
}
:is(#checkout-form, #member-recharge-form) .wallet-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
:is(#checkout-form, #member-recharge-form) .payment-channel-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
}
:is(#checkout-form, #member-recharge-form) .wallet-choice > span {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
:is(#checkout-form, #member-recharge-form) .wallet-choice > .balance-wallet-symbol {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}
:is(#checkout-form, #member-recharge-form) .wallet-choice small {
  display: inline-flex;
  margin: 0;
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--mint);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
}
@media (max-width: 575px) {
  :is(#checkout-form, #member-recharge-form) .wallet-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  :is(#checkout-form, #member-recharge-form) .wallet-choice {
    min-width: 0;
    padding: 6px 8px;
    font-size: 12px;
    line-height: 1.15;
  }
  :is(#checkout-form, #member-recharge-form) .wallet-choice > span:not(.balance-wallet-symbol) {
    display: block;
    line-height: 1.15;
  }
  :is(#checkout-form, #member-recharge-form) .wallet-choice small {
    display: inline-block;
    margin: 0 0 0 4px;
    padding: 0 3px;
    font-size: 10px;
    line-height: 1.15;
  }
}
.payment-symbol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 3px;
  background: #55ac9b;
  color: white;
  font-size: 21px;
  font-weight: 700;
}
.payment-symbol.fiat {
  background: #3388d9;
  font-size: 18px;
}
.empty-wallet {
  padding: 13px 16px;
  border-radius: 12px;
  background: #f8fafc;
  color: #77828e;
  font-size: 13px;
}
.purchase-sidebar .submit-button {
  margin-top: 18px;
  padding: 14px;
  font-size: 16px;
}
.form-check {
  font-size: 12px;
  line-height: 1.8;
  color: #7a8592;
  margin-top: 18px;
}
.form-check a {
  color: var(--primary);
}
.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}
.form-check-input:focus {
  box-shadow: 0 0 0 3px #eb325612;
  border-color: var(--primary);
}
.related-products {
  margin: 40px 0;
}
.related-products h2 {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.related-card {
  display: block;
  padding: 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 2px 12px #0000000a;
}
.related-card img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 14px;
}
.related-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}
.related-card .product-price {
  font-size: 21px;
}
.notice-text {
  display: flex;
  gap: 10px;
  align-items: start;
  margin: 28px 0;
  padding: 18px 24px;
  border-radius: 16px;
  background: #e8f5ef;
  color: #5d746a;
  font-size: 13px;
  line-height: 1.8;
}
.notice-text strong {
  white-space: nowrap;
  color: #39594a;
}
.notice-text p {
  margin: 0;
}
.content-page {
  min-height: 55vh;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.95;
  color: #5e6c78;
}
.prose h2 {
  color: var(--navy);
  font-size: 21px;
  margin: 0 0 16px;
  font-weight: 600;
}
.prose p {
  margin: 0 0 22px;
}
.content-actions {
  margin-top: 26px;
}
.order-page {
  margin-bottom: 40px;
}
.order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 32px;
  margin: 0 0 24px;
}
.order-summary > div {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.order-summary dt {
  color: #8c96a2;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 6px;
}
.order-summary dd {
  margin: 0;
  color: #334155;
  font-size: 14px;
}
.order-summary button {
  margin-left: 8px;
}
.order-status-badge {
  display: inline-block;
  border-radius: 30px;
  padding: 5px 14px;
  background: var(--mint);
  color: var(--primary);
  font-size: 13px;
}
.order-search-results {
  margin-top: 24px;
  padding: 28px;
}
.order-search-results h2 {
  font-size: 20px;
  margin-bottom: 8px;
}
.order-search-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.order-search-item > div:first-child {
  flex: 1 1 240px;
  min-width: 0;
}
.order-search-title {
  font-size: 17px;
  font-weight: 600;
}
.order-search-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.order-search-number {
  font-family: ui-monospace, monospace;
}
.order-search-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}
.order-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}
.order-record-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.order-record-notice {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--page-bg);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.order-record-support {
  padding: 8px 4px;
  background: none;
  border: 0;
  color: var(--primary);
  font-size: 14px;
}
.order-return-card .delivery {
  max-height: 480px;
  overflow: auto;
  font-family: inherit;
  margin: 0;
}
.order-record .order-summary dd {
  font-size: 15px;
}
.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
}
.payment-amount {
  padding: 24px 20px;
  border-radius: 16px;
  background: var(--mint);
  text-align: center;
}
.payment-amount .price {
  margin: 8px 0;
  color: var(--primary);
  font-size: 36px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.payment-amount .price small {
  font-size: 17px;
}
.payment-amount p {
  margin: 8px 0 0;
  color: #718679;
  font-size: 13px;
  line-height: 1.7;
}
.payment-details {
  margin-top: 22px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 16px;
}
.payment-details h2,
.proof-area h2,
.delivery-title {
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}
.payment-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  object-fit: contain;
  background: white;
}
.payment-address {
  margin: 14px 0;
  padding: 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid #edf0f3;
  font: 14px/1.8 monospace;
  overflow-wrap: anywhere;
}
.proof-area {
  padding: 24px;
  border-radius: 16px;
  background: #f8fafc;
}
.proof-area .form-control {
  background: white;
}
.payment-tip {
  margin: 20px 0 0;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fff6f8;
  color: #985266;
  font-size: 13px;
  line-height: 1.8;
}
.delivery {
  padding: 24px;
  border-radius: 16px;
  background: var(--mint);
  color: #365e4d;
  font: 14px/1.9 monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.order-footer {
  text-align: center;
  margin-top: 24px;
  color: #7b8794;
  font-size: 14px;
}
.empty-state,
.loading-state {
  padding: 60px 28px;
  text-align: center;
  color: #7c8793;
}
.empty-state > svg {
  color: var(--primary);
  display: block;
  margin: 0 auto 18px;
}
.empty-state h1 {
  color: var(--navy);
  font-size: 25px;
  margin: 0 0 14px;
}
.empty-state p {
  font-size: 14px;
  margin-bottom: 22px;
}
.site-footer {
  padding: 40px 0 32px;
  margin-top: 50px;
  background: var(--navy);
  color: #b8c2cc;
  font-size: 13.6px;
  text-align: center;
}
.site-footer p {
  margin: 0 0 12px;
  line-height: 1.6;
}
.site-footer a {
  color: #e2e8ee;
}
.site-footer a:hover {
  color: #ff879e;
}
.footer-payments {
  font-size: 13px;
  color: #8faeaa;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 16px;
  font-size: 12px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 0;
  background: none;
  color: inherit;
}
.support-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  bottom: 28px;
  right: 26px;
  z-index: 110;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  box-shadow: 0 5px 16px #eb325633;
}
.support-launcher:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.support-panel {
  position: fixed;
  right: 26px;
  bottom: 98px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: 370px;
  height: min(540px, calc(100dvh - 125px));
  overflow: hidden;
  border: 1px solid #edf0f3;
  border-radius: 24px;
  background: white;
  box-shadow: 0 12px 50px #1e2a3a26;
}
.support-panel[hidden] {
  display: none;
}
.support-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  background: var(--mint);
}
.support-panel > header strong {
  display: block;
  color: var(--navy);
  font-size: 17px;
}
.support-panel > header small {
  display: block;
  margin-top: 4px;
  color: #7c9187;
  font-size: 12px;
}
.support-panel > header button {
  font-size: 26px;
  color: #759184;
}
.chat-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 13px;
  overflow-y: auto;
  padding: 18px;
  min-height: 80px;
}
.chat-welcome {
  padding: 14px;
  background: #f7f9fb;
  color: #7b8794;
  border-radius: 14px;
  font-size: 12px;
  line-height: 1.9;
}
.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  background: #f1f5f8;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  align-self: flex-start;
}
.chat-bubble.visitor {
  align-self: flex-end;
  background: #fff0f3;
  color: #a53f58;
}
.chat-bubble img,
.chat-bubble video {
  display: block;
  max-width: 100%;
    max-height: 260px;
    object-fit: contain;
  border-radius: 8px;
}
.chat-toolbar {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 18px;
  border-top: 1px solid #edf0f3;
  color: #8d97a1;
}
.chat-toolbar button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}
.chat-toolbar span:last-child {
  margin-left: auto;
  font-size: 10px;
}
.image-pick {
  cursor: pointer;
}
.chat-input {
  display: flex;
  gap: 10px;
  align-items: end;
  padding: 0 16px 16px;
}
.chat-input textarea {
  flex: 1;
  min-width: 0;
  resize: none;
  border: 0;
  outline: none;
  font-size: 13px;
}
.chat-input button {
  padding: 8px 17px;
  font-size: 12px;
}
.emoji-panel {
  padding: 10px;
  border-top: 1px solid #edf0f3;
}
.emoji-panel button {
  padding: 5px;
  border: 0;
  background: none;
  font-size: 20px;
}
#toast-container {
  position: fixed;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: 90vw;
}
.notice-toast {
  padding: 13px 22px;
  margin-bottom: 8px;
  border: 1px solid #d9e8e0;
  border-radius: 12px;
  background: #f1faf6;
  color: #457460;
  font-size: 13px;
  box-shadow: 0 5px 20px #0000000a;
}
.notice-toast.error {
  background: #fff3f6;
  border-color: #f4ced8;
  color: #b54c68;
}
@media (max-width: 1000px) {
  .nav-menu {
    gap: 22px;
  }
  .brand-text strong {
    font-size: 23px;
  }
  .brand-text small {
    font-size: 10px;
  }
  .hero-banner h1 {
    font-size: 36px;
  }
  .hero-banner p {
    font-size: 18px;
  }
  .product-card {
    padding: 22px;
    gap: 16px;
  }
  .product-meta {
    flex-basis: 150px;
  }
  .product-price {
    font-size: 23px;
  }
  .product-image {
    flex-basis: 88px;
    width: 88px;
    height: 78px;
  }
  .buy-button {
    min-width: 100px;
    padding: 11px 20px;
  }
  .product-detail-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .product-info-left {
    padding: 26px;
  }
  .purchase-sidebar {
    padding: 24px;
  }
  .wallet-choice {
    padding: 7px 10px;
  }
  .related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .page-width {
    padding-left: 18px;
    padding-right: 18px;
  }
  .header-inner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
  }
  .brand {
    margin-right: auto;
  }
  .nav-menu {
    justify-content: space-between;
    width: 100%;
    gap: 12px;
  }
  .nav-menu a {
    font-size: 14px;
  }
  .site-header {
    padding: 13px 0 12px;
  }
  .brand-icon {
    width: 42px;
    height: 42px;
  }
  .brand-text strong {
    font-size: 22px;
  }
  .brand-text small {
    font-size: 10px;
  }
  .hero-banner {
    margin: 24px 0 30px;
    padding: 35px 24px;
    border-radius: 22px;
  }
  .hero-banner h1 {
    font-size: 29px;
    margin-bottom: 16px;
  }
  .hero-banner p {
    font-size: 15px;
    line-height: 1.7;
  }
  .hero-banner.compact {
    padding: 30px 24px;
  }
  .hero-banner.compact h1 {
    font-size: 27px;
  }
  .hero-banner.compact p {
    font-size: 15px;
  }
  .category-tabs {
    gap: 10px 8px;
    margin-bottom: 24px;
  }
  .category-tabs a {
    font-size: 13px;
    padding: 10px 16px;
  }
  .products-list {
    gap: 16px;
  }
  .product-card {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    gap: 12px 14px;
    padding: 20px;
    border-radius: 18px;
  }
  .product-image {
    width: 80px;
    height: 80px;
    grid-column: 1;
    grid-row: 1;
  }
  .product-info {
    grid-column: 2;
    grid-row: 1;
  }
  .product-info h2 {
    font-size: 16px;
    margin-bottom: 6px;
  }
  .product-info p {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .product-meta {
    grid-row: 2;
    grid-column: 1 / -1;
    text-align: left;
    padding-right: 120px;
  }
  .product-price {
    font-size: 22px;
  }
  .stock-badge {
    margin-top: 2px;
    font-size: 10px;
    padding: 3px 8px;
  }
  .product-action {
    grid-row: 2;
    grid-column: 2;
    justify-self: end;
    align-self: center;
  }
  .buy-button {
    min-width: 104px;
    padding: 10px 18px;
    font-size: 13px;
  }
  .section-card {
    margin: 28px 0;
    padding: 26px 22px;
    border-radius: 22px;
    scroll-margin-top: 132px;
  }
  .section-card-header {
    padding-bottom: 17px;
    margin-bottom: 20px;
  }
  .section-card-header h1,
  .section-card-header h2 {
    font-size: 22px;
  }
  .section-card-header p {
    font-size: 13px;
  }
  .track-form {
    flex-wrap: wrap;
    gap: 12px;
  }
  .track-form .number-input {
    flex: 1 1 calc(50% - 12px);
  }
  .track-form .btn {
    width: 100%;
  }
  .product-detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 32px;
  }
  .purchase-sidebar {
    position: static;
  }
  .product-info-left {
    padding: 25px 24px;
  }
  .product-info-left h1 {
    font-size: 23px;
  }
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .related-card {
    padding: 16px;
  }
  .related-card img {
    height: 95px;
  }
  .related-card h3 {
    font-size: 13px;
  }
  .related-card .product-price {
    font-size: 18px;
  }
  .breadcrumbs {
    font-size: 12px;
  }
  .payment-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .order-summary {
    gap: 14px 20px;
  }
  .order-summary dd {
    font-size: 13px;
  }
  .payment-amount .price {
    font-size: 30px;
  }
  .notice-text {
    padding: 16px 20px;
    font-size: 12px;
  }
  .site-footer {
    padding: 30px 0;
    margin-top: 36px;
    font-size: 12px;
  }
  .footer-payments {
    font-size: 11px;
  }
  .support-launcher {
    right: 18px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
  .support-panel {
    right: 12px;
    bottom: 84px;
    width: calc(100vw - 24px);
    max-width: 380px;
  }
}
@media (max-width: 420px) {
  .page-width {
    padding-left: 14px;
    padding-right: 14px;
  }
  .hero-banner h1 {
    font-size: 26px;
  }
  .hero-banner p {
    font-size: 14px;
  }
  .hero-banner {
    padding: 32px 20px;
  }
  .category-tabs a {
    padding: 9px 13px;
    font-size: 12px;
  }
  .product-card {
    padding: 18px 16px;
    gap: 12px;
    grid-template-columns: 72px minmax(0, 1fr);
  }
  .product-image {
    width: 72px;
    height: 76px;
  }
  .product-info h2 {
    font-size: 14px;
  }
  .product-info p {
    font-size: 11.5px;
  }
  .section-card {
    padding: 24px 18px;
  }
  .section-icon {
    flex-basis: 42px;
    height: 42px;
    border-radius: 14px;
    font-size: 21px;
  }
  .section-card-header h1,
  .section-card-header h2 {
    font-size: 20px;
  }
  .track-form .number-input {
    flex-basis: 100%;
  }
  .account-info-card {
    padding: 18px;
  }
  .account-info-card dt,
  .account-info-card dd {
    font-size: 13px;
  }
  .order-summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-item summary {
    font-size: 14px;
  }
  .faq-item p {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

.rich-content {
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.rich-content img,
.rich-content video {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 18px auto;
  border-radius: 12px;
}
.rich-content video {
  width: 100%;
  max-height: 650px;
  background: #101621;
}
.rich-content p {
  white-space: normal;
}
.rich-content .ql-align-center {
  text-align: center;
}
.rich-content .ql-align-right {
  text-align: right;
}
.rich-content .ql-align-justify {
  text-align: justify;
}
.rich-content pre {
  white-space: pre-wrap;
  background: #f4f6f9;
  padding: 16px;
  border-radius: 10px;
}
.rich-content blockquote {
  border-left: 3px solid #eb3256;
  padding-left: 18px;
}
.rich-content a {
  color: #d92e51;
  text-decoration: underline;
}
.telegram-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  right: 26px;
  bottom: 98px;
  z-index: 110;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 7px 22px color-mix(in srgb, var(--primary) 28%, transparent);
  transition:
    transform 0.2s,
    background 0.2s;
}
.telegram-launcher:hover {
  color: #fff;
  background: var(--primary-hover);
  transform: translateY(-2px);
}
.telegram-launcher[hidden],
.telegram-nav[hidden] {
  display: none;
}
.telegram-nav {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.telegram-nav svg {
  flex: 0 0 21px;
}
.announcement-dialog {
  width: min(520px, calc(100vw - 32px));
  max-height: min(680px, calc(100dvh - 48px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius, 18px);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 28px 90px #0004;
}
.announcement-dialog::backdrop {
  background: #10182799;
  backdrop-filter: blur(4px);
}
.announcement-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 23px 24px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--primary) 8%, var(--surface));
}
.announcement-heading > span {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  border-radius: 13px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}
.announcement-heading h2 {
  flex: 1;
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.announcement-dialog .icon-button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 5px;
}
.announcement-body {
  padding: 24px;
  max-height: 45dvh;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.9;
}
.announcement-footer {
  padding: 0 24px 24px;
  text-align: right;
}
@media (max-width: 760px) {
  .telegram-launcher {
    right: 18px;
    bottom: 84px;
    width: 50px;
    height: 50px;
  }
  .announcement-heading {
    padding: 18px;
  }
  .announcement-body {
    padding: 20px;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 10px;
  }
}

.template-preview-mode .site-header {
  top: var(--preview-toolbar-height, 76px);
}
.template-preview-toolbar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface, #fff);
  box-shadow: 0 3px 14px #17243a0a;
  color: var(--text);
}
.template-preview-toolbar strong {
  display: block;
  font-size: 16px;
  color: var(--primary);
}
.template-preview-toolbar span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.template-preview-toolbar nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.template-preview-toolbar button {
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  background: var(--primary);
  color: var(--on-primary, #fff);
  font-weight: 600;
  font-size: 14px;
}
.template-preview-toolbar button:disabled {
  opacity: 0.6;
  cursor: default;
}
.template-preview-toolbar a {
  font-size: 14px;
  color: var(--muted);
  padding: 8px;
}
@media (max-width: 650px) {
  .template-preview-toolbar {
    padding: 12px 16px;
    gap: 10px;
  }
}
