.shop-page {
  background: #f5f6f3;
  min-height: 62vh;
}
.shop-section {
  padding-top: 44px;
  padding-bottom: 72px;
}
.shop-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 26px;
}
.shop-heading h1 {
  font-size: clamp(29px, 4vw, 47px);
  letter-spacing: -.045em;
  margin: 0;
  line-height: 1.1;
}
.shop-heading p {
  margin: 10px 0 0;
  color: #526266;
  line-height: 1.6;
}
.shop-back {
  display: inline-block;
  margin-bottom: 17px;
  color: #51666a;
  font-size: 14px;
  font-weight: 650;
}
.checkout-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
}
.checkout-step {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #dfe7e4;
  border-radius: 9px;
  color: #465e64;
  font-size: 13px;
  font-weight: 650;
  background: #fff;
}
.checkout-step-number {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: #374e54;
  background: #edf1ef;
  font-size: 12px;
}
.checkout-step.is-current {
  border-color: #d4a333;
  color: #132e37;
  background: #fffbec;
}
.checkout-step.is-current .checkout-step-number { background: #f9d676; color: #493508; }
.checkout-step.is-complete .checkout-step-number { background: #e3eee5; color: #245239; }
#checkoutTitle:focus { outline: none; }
.market-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 19px;
}
.market-card:hover {
  transform: translateY(-3px);
}
.market-meta, .market-meta > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.market-meta {
  justify-content: space-between;
  color: #536469;
  font-size: 13px;
  font-weight: 650;
}
.market-flag {
  font-size: 23px;
  line-height: 1.15;
  flex-shrink: 0;
}
.market-card h3 {
  font-size: 18px;
  line-height: 1.3;
  margin: 17px 0 5px;
  overflow-wrap: anywhere;
}
.market-dial {
  margin: 0;
  color: #596c70;
  font-size: 13px;
}
.market-spec {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px 10px;
  color: #536469;
  font-size: 12px;
  margin-top: auto;
  padding-top: 16px;
}
.market-spec strong {
  color: #364b50;
}
.market-card .price-row {
  margin-top: 14px;
  border-top: 1px solid #e8ece9;
  padding-top: 16px;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.shop-price {
  color: #162832;
  font-size: 25px;
  letter-spacing: -.035em;
  white-space: nowrap;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}
.shop-price small {
  font-size: 12px;
  color: #53666a;
  font-weight: 600;
  letter-spacing: 0;
}
.shop-status {
  display: inline-block;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.shop-status.is-live { background: #e5f0e7; color: #21563a; }
.shop-status.is-sold { background: #faedd7; color: #774b18; }
.shop-status.is-off { background: #eceeed; color: #485a60; }
.shop-unavailable, .shop-page .btn:disabled, .product-editor .btn:disabled {
  background: #e9edec;
  color: #53656b;
  cursor: not-allowed;
  border-color: #e9edec;
  box-shadow: none;
  transform: none;
}
.market-empty {
  grid-column: 1 / -1;
}
.catalog-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e3e8e5;
  border-radius: 14px;
}
.catalog-toolbar .field { margin: 0; }
.catalog-search { flex: 1; }
.catalog-toolbar .field > span, .checkout-panel .field > span, .product-editor .field > span {
  font-size: 13px;
  font-weight: 700;
  color: #41565b;
}
.catalog-stock {
  display: flex;
  gap: 6px;
  align-items: center;
  align-self: end;
  white-space: nowrap;
  min-height: 40px;
  font-size: 13px;
  color: #40545a;
}
.catalog-count { margin: 18px 0 11px; color: #53666a; font-size: 13px; }
.shop-page select:focus, .product-editor select:focus {
  border-color: #d9ae54;
  box-shadow: 0 0 0 3px #f5c75b24;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  align-items: start;
  gap: 22px;
}
.checkout-mobile-price { display: none; }
.checkout-panel, .checkout-summary {
  min-inline-size: 0;
  background: white;
  border: 1px solid #e0e6e2;
  border-radius: 17px;
  padding: 22px;
  margin: 0;
}
.checkout-panel + .checkout-panel { margin-top: 16px; }
.checkout-panel legend {
  color: #213842;
  padding: 0 7px;
  font-size: 17px;
  font-weight: 800;
}
.checkout-notice {
  margin: 0 0 17px;
  padding: 11px 13px;
  border: 1px solid #eed79f;
  border-radius: 9px;
  background: #fffbef;
  color: #634817;
  font-size: 13px;
  line-height: 1.7;
}
.checkout-terms h2, .payment-review h2 { margin: 0 0 12px; font-size: 18px; }
.terms-sections section { padding: 13px 0; border-top: 1px solid #e6ebe8; }
.terms-sections h3 { margin: 0 0 6px; font-size: 15px; }
.terms-sections p, .payment-review p {
  margin: 0;
  color: #435a60;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.payment-review p + p { margin-top: 6px; }
.terms-consent { margin: 4px 0 0; padding-top: 12px; border-top: 1px solid #e6ebe8; }
.checkout-step-actions {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 16px;
}
.checkout-terms .checkout-step-actions { justify-content: end; }
#checkoutPaymentForm { margin-top: 16px; }
.card-choices, .shop-field-row, .shop-address-row {
  display: grid;
  gap: 12px;
}
.card-choices, .shop-field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shop-address-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 82px;
  padding: 13px 12px;
  border: 1px solid #dce6e2;
  border-radius: 12px;
  cursor: pointer;
}
.card-choice:has(input:checked) { border-color: #d8aa3b; background: #fffbef; }
.card-choice input { flex-shrink: 0; margin: 3px 0 0; accent-color: #825b16; }
.card-choice small, .checkout-product small {
  display: block;
  color: #53676c;
  line-height: 1.55;
  margin-top: 5px;
}
.panel-hint {
  color: #526369;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.shipping-panel .field:last-child { margin-bottom: 0; }
.shipping-panel .shop-field-row, .shipping-panel .shop-address-row { margin-bottom: 14px; }
.checkout-summary h2 { margin: 0 0 14px; font-size: 18px; }
.checkout-product, .checkout-year {
  display: flex;
  align-items: center;
  gap: 11px;
  overflow-wrap: anywhere;
}
.checkout-summary dl { border-bottom: 1px solid #e6ebe7; margin: 16px 0; padding-bottom: 10px; }
.checkout-summary dl div, .checkout-year { display: flex; justify-content: space-between; }
.checkout-summary dl div { font-size: 13px; padding: 6px 0; color: #485e65; }
.checkout-summary dd { margin: 0; color: #213842; font-weight: 700; }
.checkout-year { font-weight: 700; }
.checkout-summary .check-line, .product-editor .check-line { margin: 14px 0 16px; }
.shop-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-bottom: 25px; }
.shop-metrics > div { background: white; border: 1px solid #e0e6e2; border-radius: 14px; padding: 15px 17px; }
.shop-metrics span { display: block; font-size: 13px; color: #486065; }
.shop-metrics strong { display: block; margin-top: 7px; font-size: 25px; }
.admin-tabs { display: flex; gap: 18px; margin-bottom: 12px; }
.admin-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
  color: #516569;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.admin-tabs button[aria-pressed=true] { color: #172d36; border-bottom-color: #bd8727; }
.shop-table-wrap { border: 1px solid #e0e6e2; background: white; border-radius: 14px; }
.admin-table { border-collapse: collapse; width: 100%; text-align: left; }
.admin-table th { background: #f4f6f3; color: #41565d; font-size: 13px; padding: 13px 16px; white-space: nowrap; }
.admin-table td { border-top: 1px solid #edf0ed; padding: 13px 16px; font-size: 13px; vertical-align: top; }
.admin-table .shop-price, .rates .shop-price, .order-meta .shop-price { font-size: 15px; }
.admin-name > div { display: flex; align-items: center; gap: 8px; }
.admin-name strong { overflow-wrap: anywhere; }
.admin-name > small { display: block; color: #516469; margin-top: 5px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 4px; }
.admin-actions .btn { padding: 7px 9px; }
.order-shipping { font-size: 12px; margin-top: 8px; color: #435d63; }
.order-shipping summary { cursor: pointer; font-weight: 700; }
.order-shipping p { margin: 5px 0; overflow-wrap: anywhere; }
.product-editor { width: min(100%, 560px); }

@media (max-width: 1050px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-mobile-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #e9eeea;
    overflow-wrap: anywhere;
  }
  .shop-section { padding-top: 30px; padding-bottom: 44px; }
  .catalog-toolbar { flex-wrap: wrap; align-items: center; }
}
@media (max-width: 600px) {
  .checkout-step { padding: 7px 5px; gap: 4px; font-size: 11px; }
  .checkout-step-number { width: 18px; height: 18px; font-size: 11px; }
  .product-grid { grid-template-columns: 1fr; }
  .catalog-toolbar .field { flex: 0 0 100%; }
  .shop-address-row { grid-template-columns: 1fr; }
  .checkout-panel, .checkout-summary { padding: 16px; }
  .card-choices { grid-template-columns: 1fr; }
  .shop-metrics { gap: 7px; }
  .shop-metrics > div { padding: 10px 9px; }
  .shop-metrics span { font-size: 11px; }
  .shop-metrics strong { font-size: 19px; }
  .admin-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .admin-table, .admin-table tbody, .admin-table tr { display: block; }
  .admin-table tr { border-bottom: 1px solid #e2e7e4; padding: 7px 0; }
  .admin-table tr:last-child { border-bottom: 0; }
  .admin-table td { display: block; border: 0; padding: 6px 13px; }
  .admin-table td[data-label] { display: flex; justify-content: space-between; gap: 10px; }
  .admin-table td[data-label]::before { content: attr(data-label); color: #51676d; }
}
