:root {
  --paper: #faf8f4;
  --white: #fff;
  --ink: #202720;
  --muted: #5e645c;
  --brand: #ab3526;
  --brand-hover: #87291e;
  --line: #e4dfd5;
  --soft-line: #ece8e0;
  --sage: #e8ece3;
  --sand: #eee3d5;
  --market: #252d25;
  --heading: Georgia, "Times New Roman", "Songti SC", serif;
  --system-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --body: var(--system-font);
  --container: 1250px;
  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 275px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.55;
}

.store-body { min-height: 100vh; display: flex; flex-direction: column; }
.store-body > main { flex: 1; }

.theme-outlet {
  --paper: #f7f8f1;
  --ink: #243023;
  --muted: #596450;
  --brand: #3f5a36;
  --brand-hover: #314729;
  --line: #dde2d5;
  --soft-line: #e7ebdf;
  --sand: #e7eada;
  --market: #2e3b28;
}

.theme-outlet .hero { border-color: var(--line); }
.theme-outlet .hero-image { background: #bcc4ae; }
.theme-outlet .site-search, .theme-outlet .site-footer { background: #ebeee2; }

h1, h2, h3, p, dl, dd { margin: 0; }
h1, h2 { font-family: var(--heading); font-weight: 500; letter-spacing: -.033em; line-height: 1.09; }
a { color: inherit; text-decoration: none; }
img { display: block; height: auto; }
img:where(:not(.product-description-body img)) { width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: fixed;
  z-index: 10;
  top: 10px;
  left: 10px;
  padding: 8px 14px;
  transform: translateY(-150%);
  color: var(--white);
  background: var(--ink);
}

.skip:focus { transform: none; }

.container {
  width: min(var(--container), calc(100% - 96px));
  margin-inline: auto;
}

.market-bar {
  color: #f4f1ea;
  background: var(--market);
  font-size: .76rem;
}

.market-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 35px;
}

.market-menu { position: relative; max-width: 100%; }
.market-menu summary, .market-option { display: flex; align-items: center; gap: 7px; }
.market-menu summary { min-height: 37px; padding-block: 4px; cursor: pointer; list-style: none; }
.market-menu summary::-webkit-details-marker { display: none; }
.market-menu summary:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.market-menu summary svg { flex: none; }
.market-menu[open] summary svg { transform: rotate(180deg); }
.market-flag { flex: none; font: 1rem/1 "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", emoji; }
.market-label { min-width: 0; overflow-wrap: anywhere; }

.market-menu nav {
  position: absolute;
  z-index: 5;
  top: calc(100% + 4px);
  inset-inline-end: 0;
  display: grid;
  width: max-content;
  min-width: min(210px, calc(100vw - 32px));
  max-width: min(320px, calc(100vw - 32px));
  max-height: min(65vh, 420px);
  overflow-y: auto;
  padding: 5px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 26px #20272017;
  font-size: .85rem;
}

.market-menu .market-option { min-height: 40px; padding: 7px 9px; border-radius: 3px; }
.market-menu button.market-option { width: 100%; color: inherit; text-align: start; }
.market-menu :is(a, button.market-option):is(:hover, :focus-visible) { color: var(--brand); background: var(--paper); }
.market-option[aria-current="true"] { font-weight: 650; background: var(--paper); }
.market-selected { margin-inline-start: auto; color: var(--brand); }

.masthead {
  display: grid;
  grid-template-columns: 1fr minmax(235px, 475px) 1fr;
  align-items: center;
  gap: 30px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--ink);
  font-family: var(--heading);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.1vw, 2.75rem);
  letter-spacing: -.065em;
  line-height: 1;
}

.brand b { color: var(--brand); }
.brand img { width: auto; max-width: 170px; height: auto; max-height: 48px; object-fit: contain; }

.site-search {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #f5f2ec;
  border-radius: 5px;
}

.site-search:focus-within { border-color: var(--brand); }
.site-search input {
  min-width: 0;
  flex: 1;
  width: 100%;
  align-self: stretch;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.site-search input:focus-visible { outline: 0; }
.site-search button {
  display: grid;
  align-self: stretch;
  place-items: center;
  min-width: 43px;
  border: 0;
  color: var(--ink);
  background: transparent;
}

.site-search button:hover { color: var(--brand); }
.cart-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-weight: 630; }
.cart-link:hover { color: var(--brand); }
.cart-link b {
  display: grid;
  min-width: 21px;
  height: 21px;
  padding-inline: 4px;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: var(--brand);
  font-size: .72rem;
}

.site-nav-wrap { border-top: 1px solid var(--soft-line); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: thin; }
.site-nav a { flex: 0 0 auto; padding: 11px 0 12px; font-size: .87rem; font-weight: 630; }
.site-nav a:hover { color: var(--brand); }

.home-main { padding-top: 29px; padding-bottom: clamp(48px, 8vw, 100px); }
.hero {
  position: relative;
  display: grid;
  min-height: 395px;
  background: var(--sand);
  border: 1px solid #e5d8c9;
  overflow: hidden;
}

.hero-with-image { grid-template-columns: 54% 46%; }
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(40px, 6.3vw, 90px);
}

.eyebrow {
  color: var(--brand);
  font-size: .76rem;
  font-weight: 760;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 650px;
  margin-top: 13px;
  font-size: clamp(2.9rem, 5.2vw, 5rem);
  letter-spacing: -.061em;
  line-height: .99;
  text-wrap: balance;
}

.hero-content > p:not(.eyebrow) {
  max-width: 375px;
  margin-top: 19px;
  color: #474b42;
  font-size: clamp(.95rem, 1.4vw, 1.11rem);
}

.hero-image { min-width: 0; min-height: 100%; position: relative; background: #d5c5ad; }
.hero-image img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.hero-button { margin-top: 26px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: .62rem 1rem;
  text-align: center;
  font-size: .87rem;
  font-weight: 690;
  line-height: 1.3;
  transition: background .16s, color .16s, border .16s;
}

.button-primary { color: var(--white); background: var(--brand); border-color: var(--brand); }
.button-primary:hover:not(:disabled) { background: var(--brand-hover); border-color: var(--brand-hover); }
.button-outline { color: var(--ink); background: transparent; border-color: #bcbcb0; }
.button-outline:hover { color: var(--brand); border-color: var(--brand); }
.button-block { width: 100%; }
.button-small { min-height: 38px; font-size: .84rem; }

.browse-section { margin-top: clamp(38px, 5.1vw, 68px); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; margin-bottom: 17px; }
.section-head h2 { font-size: clamp(1.9rem, 3vw, 2.65rem); }
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--brand); font-size: .88rem; font-weight: 680; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(205px, 100%), 1fr));
  gap: 9px 12px;
}

.category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-weight: 640;
  transition: background .16s, color .16s;
}

.category-list a:hover { color: var(--brand); background: #f4efe7; }
.category-list svg { width: 15px; flex: none; color: var(--brand); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 15px; }
.product-card { min-width: 0; }
.card-link { display: block; }
.card-image {
  position: relative;
  display: grid;
  overflow: hidden;
  place-items: center;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  background: #eee9df;
}

.card-image img { height: 100%; object-fit: cover; transition: transform .22s; }
.card-link:hover img { transform: scale(1.035); }
.card-link:hover h3 { color: var(--brand); }

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 80px;
  color: #6c7864;
  background: var(--sage);
  font-family: var(--heading);
  font-size: clamp(1.7rem, 5vw, 5rem);
}

.stock-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 2px 7px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .68rem;
  font-weight: 680;
}

.card-body { padding: 11px 1px 1px; }
.product-vendor { color: var(--muted); font-size: .83rem; font-weight: 610; overflow-wrap: anywhere; }
.product-vendor a { color: var(--store-link-color, var(--brand)); text-decoration: underline; text-underline-offset: .15em; }
.product-detail .product-vendor { margin-bottom: 7px; }
.quick-view-purchase .product-vendor { margin-bottom: 8px; }
.card-category { color: var(--muted); margin-bottom: 3px; font-size: .73rem; font-weight: 610; }
.card-body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 1rem; line-height: 1.34; }
.money { font-weight: 690; font-variant-numeric: tabular-nums; }
.card-body .money { display: flex; flex-wrap: wrap; gap: 1px 6px; margin-top: 5px; font-size: .94rem; }
.card-body .money > span { white-space: nowrap; }
.money s { color: var(--muted); font-size: .86em; font-weight: 460; white-space: nowrap; }
.detail-price s { margin-left: 5px; }

.site-footer { background: #f0ede5; border-top: 1px solid var(--line); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 21px;
  min-height: 105px;
  padding-block: 22px;
}

.footer-inner .brand { font-size: 2rem; }
.footer-inner .brand img { max-height: 34px; }
.footer-inner nav { display: flex; gap: 9px 18px; flex-wrap: wrap; }
.footer-inner nav a, .footer-inner > span { font-size: .8rem; color: #565e52; }
.footer-inner nav a:hover { color: var(--brand); }

.page-main { padding-block: 25px clamp(57px, 8vw, 112px); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 27px; color: var(--muted); font-size: .81rem; }
.breadcrumbs a { font-weight: 630; }
.breadcrumbs a:hover { color: var(--brand); }
.page-heading { margin-bottom: 22px; }
.page-heading h1 { font-size: clamp(2.35rem, 5.2vw, 4.35rem); }
.page-heading > p { margin-top: 6px; color: var(--muted); }
.page-copy { white-space: pre-wrap; max-width: 700px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-bottom: 25px;
  padding: 11px 0 15px;
  border-bottom: 1px solid var(--line);
}

.filters label { display: grid; gap: 3px; color: var(--muted); font-size: .78rem; font-weight: 660; }
.filters select, .filters .button { min-height: 39px; }
.result-count { margin-left: auto; align-self: center; color: var(--muted); font-size: .8rem; }

input:not([type="checkbox"], [type="radio"]), select, textarea {
  max-width: 100%;
  color: var(--ink);
}

main input:not([type="checkbox"], [type="radio"]), main select, main textarea {
  min-height: 43px;
  border: 1px solid #cfc9bd;
  border-radius: 4px;
  padding: 7px 10px;
  background: var(--white);
}

main textarea { resize: vertical; }
main input[type="file"] { min-width: 0; width: 100%; }
main input[type="checkbox"], main input[type="radio"] { accent-color: var(--brand); }
.message { margin-bottom: 15px; border: 1px solid; border-radius: 4px; padding: 10px 13px; font-size: .91rem; }
.message-success { color: #334b35; background: #eaf0e5; border-color: #cfddc9; }
.message-error { color: #8b281b; background: #fbebe7; border-color: #efcdc5; }

.product-main .breadcrumbs { flex-wrap: nowrap; margin-bottom: clamp(13px, 2.2vw, 23px); }
.product-main .breadcrumbs > :not([aria-current]) { flex: none; }
.product-main .breadcrumbs [aria-current] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-layout { display: grid; align-items: start; grid-template-columns: minmax(0, 1.22fr) minmax(276px, 1fr); gap: clamp(17px, 3.25vw, 44px); }
.product-media, .product-detail { min-width: 0; }
.product-photo {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1.12;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(10px, 1.8vw, 22px);
  background: var(--white);
}

.product-photo:not(:has(img)) { background: var(--sand); }
.product-photo img { position: absolute; inset: 0; height: 100%; padding: inherit; object-fit: contain; }
a.product-photo { cursor: zoom-in; }
.product-photo-expand {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--paper);
}
.product-photo:hover .product-photo-expand, .product-photo:focus-visible .product-photo-expand { border-color: var(--brand); color: var(--brand); }
.product-thumbnails {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  margin: 8px 0 0;
  padding: 4px 3px 7px;
  list-style: none;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.product-thumbnails li { flex: none; scroll-snap-align: start; }
.thumbnail {
  display: block;
  overflow: hidden;
  width: clamp(55px, 6vw, 70px);
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  background: var(--white);
}

.thumbnail img { height: 100%; object-fit: contain; }
.thumbnail:hover, .thumbnail[aria-current="true"] { border-color: var(--brand); }
.thumbnail[aria-current="true"] { box-shadow: inset 0 0 0 1px var(--brand); }
.product-image-dialog {
  width: min(980px, calc(100vw - 26px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  color: var(--ink);
  background: var(--white);
}
.product-image-dialog::backdrop { background: #151b16bf; }
.product-image-dialog-frame { display: grid; justify-items: center; gap: 5px; }
.product-image-dialog-frame img { width: 100%; height: min(74vw, calc(100dvh - 158px)); object-fit: contain; }
.product-image-pagination { display: flex; gap: 8px; }
.product-image-control {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 0;
  color: var(--ink);
  background: var(--white);
}
.product-image-control:hover { border-color: var(--brand); color: var(--brand); }
.product-image-close { justify-self: end; }
.product-detail {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: clamp(16px, 2.7vw, 34px);
  background: var(--white);
}
.product-detail h1 { margin-bottom: 15px; overflow-wrap: anywhere; font-size: clamp(1.65rem, 2.6vw, 2.25rem); }
.product-detail .eyebrow { margin-bottom: 7px; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 11px; font-size: clamp(1.55rem, 2.25vw, 2rem); }
.detail-price s { font-size: .58em; }
.product-saving {
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--brand-hover);
  background: var(--sand);
  font-size: .75rem;
  font-weight: 720;
  white-space: nowrap;
}
.product-form { margin-top: 16px; border-top: 1px solid var(--soft-line); padding-top: 16px; }
.product-form label, .product-variant-label { display: block; margin-bottom: 5px; font-size: .85rem; font-weight: 660; }
.product-variant-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.product-variant-controls select { flex: 1 1 150px; width: 100%; min-width: 0; min-height: 44px; }
.product-variant-controls button { min-height: 44px; }
.product-options { display: grid; gap: 11px; min-width: 0; }
.product-option-group { min-width: 0; border: 0; margin: 0; padding: 0; }
.product-option-group legend { max-width: 100%; margin-bottom: 5px; padding: 0; font-size: .85rem; font-weight: 670; overflow-wrap: anywhere; }
.product-option-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.product-option-choice { position: relative; max-width: 100%; }
.product-option-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--store-rule, var(--line));
  border-radius: 6px;
  background: var(--store-surface, var(--white));
  color: var(--ink);
  font-size: .86rem;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.product-option-choice input:checked + .product-option-chip { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.product-option-choice input:focus-visible + .product-option-chip { outline: 2px solid var(--brand); outline-offset: 2px; }
.product-option-choice input:disabled + .product-option-chip { opacity: .48; cursor: not-allowed; }
.product-option-choice.is-sold-out .product-option-chip, .product-option-choice input:disabled + .product-option-chip { text-decoration: line-through; }
.product-option-color { flex: none; width: 17px; height: 17px; border: 1px solid #17191436; border-radius: 50%; background: var(--option-color); }

.stock-note {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 630;
}

.stock-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7b766a; }
.stock-note.is-available { color: #34543a; }
.stock-note.is-available::before { background: #477447; }
.stock-note.is-low { color: #874500; }
.stock-note.is-low::before { background: #874500; }
.catalog-stock { margin-top: 5px; font-size: .8rem; overflow-wrap: anywhere; }
.buy-row { display: flex; flex-wrap: wrap; align-items: end; gap: 11px; }
.buy-row > .button { flex: 1 1 146px; min-width: 0; min-height: 46px; }
.buy-row > .button svg { width: 19px; flex: none; }
.product-quantity { display: flex; min-height: 46px; }
.product-quantity input[type="number"] { width: 73px; min-height: 46px; font-variant-numeric: tabular-nums; }
.product-quantity:has(button:not([hidden])) { border: 1px solid #cfc9bd; border-radius: 4px; }
.product-quantity:has(button:not([hidden])) input { width: 46px; min-height: 44px; appearance: textfield; border: none; padding: 3px; text-align: center; }
.product-quantity:has(button:not([hidden])) input::-webkit-inner-spin-button,
.product-quantity:has(button:not([hidden])) input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.product-quantity button { width: 44px; min-height: 44px; border: none; border-radius: 3px; padding: 0; color: var(--ink); background: var(--white); font-size: 1.13rem; }
.product-quantity button:hover:not(:disabled) { color: var(--brand); background: var(--paper); }
.product-quantity :focus-visible { outline-offset: -3px; }
.product-description { margin-top: clamp(21px, 3.6vw, 43px); border: 1px solid var(--line); border-radius: 9px; padding: clamp(16px, 3vw, 31px); background: var(--white); }
.product-description h2 { margin-bottom: 11px; font-size: clamp(1.45rem, 2.45vw, 1.85rem); }
.product-description p { max-width: 75ch; color: var(--muted); overflow-wrap: anywhere; white-space: pre-wrap; }

.empty-state { padding: clamp(45px, 7.5vw, 92px) 13px; text-align: center; background: #f2eee5; border: 1px solid var(--line); }
.empty-state h1, .empty-state h2 { font-size: clamp(1.9rem, 3.7vw, 2.95rem); }
.empty-state p { margin: 9px 0 0; color: var(--muted); }
.empty-state .button { margin-top: 19px; }
.empty-icon {
  display: inline-grid;
  width: 43px;
  height: 43px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--white);
}

.purchase-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(280px, .78fr); gap: clamp(24px, 5vw, 66px); align-items: start; }
.cart-lines { border-top: 1px solid var(--line); }
.cart-line {
  display: grid;
  grid-template-columns: 99px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.line-image { display: block; overflow: hidden; width: 99px; aspect-ratio: 1; background: var(--sand); border-radius: 3px; }
.line-image img { height: 100%; object-fit: cover; }
.line-body { min-width: 0; }
.line-body h2 { margin-bottom: 3px; font: 670 1rem/1.35 var(--body); letter-spacing: 0; overflow-wrap: break-word; }
.line-body h2 a:hover { color: var(--brand); }
.line-body p { color: var(--muted); font-size: .85rem; }
.line-total { text-align: right; }
.line-actions { display: flex; flex-wrap: wrap; gap: 7px 11px; margin-top: 8px; align-items: center; }
.line-actions form { display: flex; align-items: center; gap: 5px; }
.line-actions form input[type="number"] { width: 56px; min-height: 33px; padding: 3px 6px; }
.quiet-button { border: 0; padding: 5px 2px; background: transparent; color: var(--brand); font-size: .78rem; font-weight: 650; }
.quiet-button:hover { text-decoration: underline; }
.cart-page-error .text-link { display: inline-block; margin-top: 4px; }
[data-cart-checkout][aria-disabled="true"], [data-cart-open-page][aria-disabled="true"] { cursor: wait; opacity: .68; }
.cart-quantity [data-cart-step] { display: none; }

.cart-is-enhanced .cart-quantity {
  width: max-content;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.cart-is-enhanced [data-cart-quantity-submit] { display: none; }
.cart-is-enhanced .cart-quantity [data-cart-step] {
  display: grid;
  place-items: center;
  width: 40px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1;
}

.cart-is-enhanced .cart-quantity [data-cart-step]:not(:disabled, [aria-disabled="true"]):hover { background: var(--sage); }
.cart-is-enhanced .cart-quantity [data-cart-step][aria-disabled="true"] { cursor: default; opacity: .55; }
.cart-is-enhanced .cart-quantity input[type="number"] {
  appearance: textfield;
  width: 36px;
  min-height: 42px;
  padding: 0;
  border: 0;
  border-inline: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.cart-is-enhanced .cart-quantity input::-webkit-inner-spin-button,
.cart-is-enhanced .cart-quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.summary, .order-panel {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: clamp(18px, 3vw, 30px);
  background: #f4f0e8;
}

.summary h2 { font-size: 1.6rem; }
.totals { display: grid; gap: 8px; margin-block: 15px 20px; }
.totals div { display: flex; align-items: start; justify-content: space-between; gap: 17px; }
.totals dt { color: var(--muted); }
.totals dd { font-variant-numeric: tabular-nums; text-align: right; }
.totals .total { margin-top: 3px; padding-top: 12px; border-top: 1px solid #d8d1c3; font-size: 1.05rem; font-weight: 720; }
.totals .total dt { color: var(--ink); }
.summary-back { margin-top: 11px; }
.summary-items { display: grid; gap: 9px; list-style: none; margin: 0 0 15px; padding: 0 0 13px; border-bottom: 1px solid var(--line); }
.summary-items li { display: flex; justify-content: space-between; gap: 13px; }
.summary-items li small { color: var(--muted); }
.summary-items li strong { flex-shrink: 0; text-align: right; }

.checkout-form { display: grid; gap: 19px; }
.checkout-form fieldset { min-width: 0; margin: 0; padding: 15px 17px 20px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.checkout-form legend { padding-inline: 7px; font-family: var(--heading); font-size: 1.4rem; }
.input-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.input-grid > label { display: grid; align-content: start; gap: 4px; min-width: 0; font-size: .86rem; font-weight: 630; }
.checkout-form .input-grid > label > :is(input, select) { width: 100%; min-width: 0; }
.input-grid > label small { color: var(--muted); font-weight: 450; }
.checkout-form [aria-invalid="true"] { border-color: #8b281b; }
.checkout-form .checkout-field-error, .checkout-review-item .checkout-field-error { color: #8b281b; }
.checkout-line-issue { display: block; }
.input-grid > .full-field { grid-column: 1 / -1; }
.payment-options { display: grid; gap: 7px; }
.payment-options label { display: flex; align-items: center; min-height: 37px; gap: 9px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; }
.order-main { max-width: 770px; }
.order-panel .eyebrow { margin: 0 0 6px; color: var(--brand); }
.order-panel h1 span { overflow-wrap: anywhere; }
.order-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-bottom: 19px; }
.order-facts div { padding: 9px 11px; background: var(--white); border: 1px solid var(--soft-line); }
.order-facts dt { color: var(--muted); font-size: .75rem; }
.order-facts dd { overflow-wrap: break-word; font-weight: 660; }
.order-tracking { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.order-tracking > span { min-width: 0; overflow-wrap: anywhere; }
.order-tracking-link { color: var(--brand); font-size: .82rem; font-weight: 660; text-decoration: underline; text-underline-offset: 3px; }
.order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.mock-payment { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.market-switch-form { display: flex; flex-wrap: wrap; align-items: end; gap: 7px; margin-top: 15px; }
.market-switch-form label { display: grid; gap: 3px; color: var(--muted); font-size: .8rem; font-weight: 630; }
.empty-state .market-switch-form { justify-content: center; }
.empty-state .market-switch-form .button { margin-top: 0; }

@media (max-width: 920px) {
  .container { width: calc(100% - 48px); }
  .masthead { gap: 15px; }
  .hero-content { padding: 36px; }
}

@media (max-width: 660px) {
  .container { width: calc(100% - 30px); }
  .market-inner { min-height: 32px; }
  .masthead { grid-template-columns: 1fr auto; gap: 12px; min-height: 0; padding-block: 14px 12px; }
  .site-search { grid-area: 2 / 1 / 3 / -1; }
  .cart-link { grid-column: 2; grid-row: 1; }
  .site-nav { gap: 13px; }
  .site-nav a { font-size: .82rem; }
  .home-main { padding-top: 15px; }
  .hero { min-height: 0; }
  .hero-with-image { grid-template-columns: 1fr; }
  .hero-content { padding: 29px 23px; }
  .hero-content h1 { font-size: clamp(2.45rem, 10vw, 3.9rem); }
  .hero-content > p:not(.eyebrow) { margin-top: 11px; }
  .hero-button { margin-top: 18px; }
  .hero-image { min-height: 0; aspect-ratio: 16 / 9; }
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .category-list a { padding: 7px 9px; min-height: 43px; font-size: .82rem; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 9px; }
  .card-body h3 { font-size: .89rem; }
  .footer-inner { align-items: start; flex-direction: column; gap: 12px; }
  .page-main { padding-top: 16px; }
  .breadcrumbs { margin-bottom: 16px; }
  .filters { align-items: stretch; gap: 8px; }
  .filters label { flex: 1 1 130px; }
  .result-count { flex: 1 1 100%; margin: 0; }
  .product-layout, .purchase-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .cart-line { grid-template-columns: 65px 1fr auto; gap: 7px; }
  .line-image { width: 65px; }
}

@media (max-width: 380px) {
  .input-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
  .section-head .text-link { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.admin-body {
  --ops-ink: #202a37;
  --ops-muted: #626b77;
  --ops-paper: #f6f4ef;
  --ops-surface: #fffefa;
  --ops-rail: #151f2c;
  --ops-rail-text: #e2e7ee;
  --ops-rail-muted: #acb9cb;
  --ops-accent: #a7392a;
  --ops-accent-hover: #892a1f;
  --ops-accent-light: #eca087;
  --ops-border: #deddd6;
  --ops-line: #eae7df;
  --ops-shadow: 0 2px 3px #27313a07;
  min-height: 100vh;
  background: var(--ops-paper);
  color: var(--ops-ink);
  font-size: 14px;
}

.admin-body h1, .admin-body h2, .admin-body h3 {
  font-family: var(--body);
  letter-spacing: -.025em;
  font-weight: 740;
  line-height: 1.28;
}

.admin-body :focus-visible { outline-color: var(--ops-accent); }
.ops-rail :focus-visible, .ops-login-brand :focus-visible, .ops-confirmation-header :focus-visible { outline-color: var(--ops-accent-light); }
.ops-icon { flex: none; width: 18px; height: 18px; vertical-align: middle; }

.ops-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}

.ops-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100dvh;
  padding: 23px 13px 15px;
  overflow: auto;
  color: var(--ops-rail-text);
  background: linear-gradient(160deg, #1a2636 0%, var(--ops-rail) 52%, #121a25 100%);
}

.ops-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ops-brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; color: #fcfbf8; }

.ops-brand-mark {
  display: grid;
  grid-auto-flow: column;
  place-content: center;
  place-items: baseline;
  min-width: 39px;
  height: 39px;
  padding: 0 3px 4px 6px;
  border: 1px solid #c9674d;
  border-radius: 11px;
  background: #a7392a;
  color: #fff6e9;
  font: 700 1.6rem/1 var(--heading);
  letter-spacing: -.085em;
  box-shadow: 0 4px 10px #0b111c36;
}

.ops-brand-mark span { color: #ffd2a8; }
.ops-brand-name { display: grid; font: 670 1.35rem/1.03 var(--heading); letter-spacing: -.035em; }
.ops-brand-name small { margin-top: 6px; color: var(--ops-rail-muted); font: 500 .69rem/1.15 var(--body); letter-spacing: .035em; }
.ops-rail-head > .ops-brand { margin-left: 6px; }

.ops-nav { display: grid; align-content: start; gap: 4px; margin: 27px 0 22px; }
.ops-nav-group {
  margin: 12px 0 4px;
  padding-inline: 10px;
  color: var(--ops-rail-muted);
  font-size: .73rem;
  font-weight: 610;
  letter-spacing: .055em;
}
.ops-nav-group:first-child { margin-top: 0; }
.ops-nav a, .ops-rail-foot a, .ops-rail-foot button {
  display: grid;
  grid-template-columns: 18px minmax(0,1fr) auto;
  align-items: center;
  min-height: 40px;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-align: left;
  overflow-wrap: anywhere;
}
.ops-nav a { position: relative; font-weight: 620; }
.ops-nav a .ops-icon, .ops-rail-foot .ops-icon { color: #aebed1; }
.ops-nav a:hover, .ops-rail-foot a:hover, .ops-rail-foot button:hover { background: #ffffff0d; color: #fff; }

.ops-nav a[aria-current="page"] {
  background: #f3a58d19;
  color: #fff6ed;
}

.ops-nav a[aria-current="page"]::before {
  position: absolute;
  inset: 8px auto 8px 0;
  width: 3px;
  border-radius: 3px;
  background: var(--ops-accent-light);
  content: "";
}

.ops-nav a[aria-current="page"] .ops-icon { color: var(--ops-accent-light); }
.ops-nav a small { color: inherit; font-size: .73rem; font-weight: 580; }
.ops-rail-foot { display: grid; gap: 3px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f4f5f720; color: var(--ops-rail-muted); }

.ops-workspace { min-width: 0; }
.ops-top { position: sticky; z-index: 3; top: 0; background: #fbfaf6; border-bottom: 1px solid var(--ops-border); }
.ops-top-inner {
  display: flex;
  align-items: center;
  width: min(1400px, 100%);
  min-height: 59px;
  margin-inline: auto;
  gap: 12px;
  padding: 9px clamp(17px, 3vw, 42px);
}

.ops-top-name, .ops-breadcrumbs [aria-current="page"] { color: var(--ops-ink); font-weight: 670; }
.ops-breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-width: 0; color: var(--ops-muted); font-size: .9rem; }
.ops-breadcrumbs a { color: var(--ops-muted); }
.ops-breadcrumbs a:hover { color: var(--ops-accent); }
.ops-divider { color: #8a8e94; }

.ops-main {
  display: flex;
  flex-direction: column;
  width: min(1400px, 100%);
  min-width: 0;
  gap: 17px;
  margin-inline: auto;
  padding: clamp(22px, 3.1vw, 45px) clamp(17px, 3vw, 42px) 45px;
}

.ops-main > .message { margin: 0; }
.ops-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; column-gap: 16px; row-gap: 10px; margin-bottom: 6px; }
.ops-intro > div:first-child { min-width: 0; flex: 1 1 250px; }
.ops-intro h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); overflow-wrap: anywhere; }
.ops-intro p { margin-top: 7px; color: var(--ops-muted); }
.ops-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

.ops-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 37px;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: .84rem;
  font-weight: 660;
  line-height: 1.3;
  white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}

.ops-button .ops-icon { width: 16px; height: 16px; }
.ops-primary { border-color: var(--ops-accent); background: var(--ops-accent); color: white; box-shadow: var(--ops-shadow); }
.ops-primary:hover { background: var(--ops-accent-hover); border-color: var(--ops-accent-hover); }
.ops-secondary { border-color: #d3d1c9; background: var(--ops-surface); color: var(--ops-ink); }
.ops-secondary:hover { border-color: #bca193; color: var(--ops-accent); background: #faf1eb; }
.ops-square { display: grid; align-items: center; justify-content: center; width: 37px; height: 37px; border: 1px solid var(--ops-border); border-radius: 7px; color: var(--ops-ink); background: var(--ops-surface); }
.ops-rail-toggle, .ops-rail-close, .ops-backdrop { display: none; }

.ops-filter-panel {
  min-width: 0;
  padding: 12px 15px;
  border: 1px solid var(--ops-border);
  border-radius: 9px;
  background: var(--ops-surface);
  box-shadow: var(--ops-shadow);
}

.ops-filter-form { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.ops-filter-form > .ops-field { flex: 0 1 180px; }
.ops-filter-form > .ops-field:has(input[type="search"]) { flex: 1 1 235px; }
.ops-filter-form .ops-button { min-height: 38px; }

.ops-tabs { display: flex; max-width: 100%; gap: 18px; overflow: auto; border-bottom: 1px solid var(--ops-border); scrollbar-width: thin; }
.ops-tabs a { display: inline-flex; align-items: center; flex: none; gap: 6px; min-height: 39px; padding: 7px 0; border-bottom: 2px solid transparent; color: var(--ops-muted); font-weight: 630; white-space: nowrap; }
.ops-tabs a:hover { color: var(--ops-accent); }
.ops-tabs a[aria-current="page"] { color: var(--ops-accent); border-bottom-color: var(--ops-accent); font-weight: 750; }
.ops-tabs a span { padding: 1px 5px; border-radius: 12px; background: #ece8df; color: #5a5149; font-size: .72rem; }

.ops-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(155px, 100%), 1fr)); gap: 11px; }
.ops-stat {
  position: relative;
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  min-height: 111px;
  padding: 16px 15px 13px;
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  background: var(--ops-surface);
  box-shadow: var(--ops-shadow);
}
.ops-stat-label { color: var(--ops-muted); font-weight: 660; }
.ops-stat strong { font-size: clamp(1.25rem, 2.5vw, 1.95rem); font-variant-numeric: tabular-nums; line-height: 1.19; overflow-wrap: anywhere; }
.ops-stat small { color: var(--ops-muted); font-size: .75rem; }
.ops-stat-link { padding-right: 34px; }
.ops-stat-link:hover { border-color: #c7aa9b; }
.ops-stat-arrow { position: absolute; top: 15px; right: 13px; color: var(--ops-accent); }

.ops-panel {
  min-width: 0;
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  background: var(--ops-surface);
  box-shadow: var(--ops-shadow);
  scroll-margin-top: 85px;
}

.ops-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 16px 17px; border-bottom: 1px solid var(--ops-line); }
.ops-panel-head h2 { font-size: 1rem; }
.ops-panel-head p { color: var(--ops-muted); font-size: .82rem; }

.ops-table-scroll { overflow: auto; scrollbar-width: thin; }
.ops-table-scroll:focus-visible { outline-offset: -2px; }
.ops-table { width: max-content; min-width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.ops-table th, .ops-table td { max-width: 260px; padding: 11px 16px; vertical-align: middle; overflow-wrap: anywhere; text-align: start; }
.ops-table th { border-bottom: 1px solid var(--ops-line); background: #f3f1eb; color: #535d68; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.ops-table tbody tr + tr { border-top: 1px solid var(--ops-line); }
.ops-table tbody tr:hover { background: #f8f6f0; }
.ops-table td small { display: block; margin-top: 1px; color: var(--ops-muted); font-size: .75rem; }
.ops-row-link { color: var(--ops-ink); font-weight: 700; }
.ops-row-link:hover { color: var(--ops-accent); text-decoration: underline; text-underline-offset: 3px; }
.ops-cell { display: flex; align-items: center; gap: 8px; }
.ops-cell > div { min-width: 0; }
.ops-thumb { flex: none; width: 37px; height: 37px; border: 1px solid #e9e5dc; border-radius: 6px; background: #f1ede3; object-fit: cover; }

.ops-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  gap: 5px;
  padding: 2px 7px;
  border: 1px solid #e7e4db;
  border-radius: 13px;
  color: #505966;
  background: #f3f1ec;
  font-size: .74rem;
  font-weight: 650;
  line-height: 1.2;
}

.ops-badge::before { width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; content: ""; }
.ops-badge:is([data-tone="success"], [data-tone="positive"], [data-status="paid"], [data-status="shipped"]) { border-color: #dbe8d6; color: #315c39; background: #eaf2e6; }
.ops-badge:is([data-tone="warning"], [data-status="pending"], [data-status="partially_refunded"]) { border-color: #efe2c5; color: #74541b; background: #f8f0db; }
.ops-badge:is([data-tone="danger"], [data-tone="negative"], [data-status="cancelled"], [data-status="failed"], [data-status="expired"]) { border-color: #f0dad3; color: #8a3b2c; background: #f8ebe6; }
.ops-badge:is([data-tone="info"], [data-status="refunded"]) { border-color: #dce6f0; color: #355576; background: #edf3fa; }

.ops-empty { padding: 30px 17px; text-align: center; }
.ops-empty-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 8px; border-radius: 10px; color: var(--ops-accent); background: #f6e9df; }
.ops-empty h3 { font-size: .96rem; }
.ops-empty p { margin-top: 5px; color: var(--ops-muted); font-size: .84rem; }

.ops-pagination { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.ops-details, .ops-editors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(375px, 100%), 1fr)); min-width: 0; gap: 13px; align-items: start; }
.ops-editor { min-width: 0; }
.ops-form-fields { padding: 15px 17px; }
.ops-field, .ops-order-form label { display: grid; width: 100%; min-width: 0; gap: 4px; color: #374352; font-size: .82rem; font-weight: 660; }

.admin-body :is(.ops-field, .ops-order-form, .ops-login-form) :is(input:not([type="hidden"], [type="checkbox"]), select, textarea) {
  width: 100%;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #cfcec6;
  border-radius: 6px;
  font-size: .85rem;
  background: var(--ops-surface);
  color: var(--ops-ink);
}

.admin-body input[type="file"]::file-selector-button { margin-right: 8px; padding: 4px 8px; border: 1px solid var(--ops-border); border-radius: 5px; color: var(--ops-ink); background: #f3f0e8; cursor: pointer; }
.ops-field small, .ops-checkbox small { color: var(--ops-muted); font-size: .77rem; font-weight: 500; }
.ops-checkbox { display: flex !important; align-items: center; min-height: 38px; gap: 7px; }
.ops-checkbox input { width: 15px; height: 15px; margin: 0; accent-color: var(--ops-accent); }
.ops-submit { display: flex; justify-content: flex-end; padding: 12px 17px; border-top: 1px solid var(--ops-line); }

.ops-facts { display: grid; gap: 9px; margin: 0; padding: 15px 17px; }
.ops-facts > div { display: grid; grid-template-columns: minmax(70px, .8fr) minmax(0, 1.3fr); align-items: start; gap: 8px; }
.ops-facts dt { color: var(--ops-muted); font-size: .81rem; }
.ops-facts dd { overflow-wrap: anywhere; font-weight: 650; }
.ops-customer-layout { display: grid; align-items: start; gap: 15px; min-width: 0; }
.ops-customer-with-summary { grid-template-columns: minmax(0, 1.75fr) minmax(245px, .85fr); }
.ops-customer-compact { width: min(100%, 740px); }
.ops-customer-main, .ops-customer-summary { min-width: 0; }
.ops-customer-main { display: grid; gap: 15px; }
.ops-customer-summary .ops-details { grid-template-columns: minmax(0, 1fr); }
.ops-order-customer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; }
.ops-customer-profile-link { display: inline-flex; align-items: center; gap: 3px; color: var(--ops-accent); font-size: .78rem; white-space: nowrap; }
.ops-customer-profile-link .ops-icon { width: 13px; height: 13px; }
.ops-customer-profile-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ops-order-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(245px, .8fr); gap: 13px; align-items: start; }
.ops-order-main, .ops-order-aside { display: grid; min-width: 0; gap: 13px; }
.ops-order-main .ops-details { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.ops-order-total { display: flex; justify-content: flex-end; align-items: center; gap: 13px; padding: 13px 17px; border-top: 1px solid var(--ops-line); }
.ops-order-total strong { font-size: 1.02rem; }
.ops-order-form { display: grid; gap: 9px; padding: 14px 17px; }
.ops-refund-help { color: var(--ops-muted); font-size: .81rem; }
.ops-refund-help strong { color: var(--ops-ink); font-variant-numeric: tabular-nums; }
.admin-body .order-tracking-link { color: var(--ops-accent); }
.ops-reviews { display: grid; gap: 7px; margin: 0; padding: 15px 17px 15px 34px; overflow-wrap: anywhere; }
.ops-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 12px; padding: 14px 17px; }
.ops-media figure { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; }
.ops-media a { display: block; width: 100%; aspect-ratio: 5 / 4; overflow: hidden; border: 1px solid var(--ops-border); border-radius: 6px; background: #f3efe5; }
.ops-media img { height: 100%; object-fit: cover; }
.ops-media figcaption { color: var(--ops-muted); font-size: .72rem; overflow-wrap: anywhere; }

.ops-login-body {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 25px;
  background: radial-gradient(ellipse at top, #efe5d7 0, transparent 58%), var(--ops-paper);
}

.ops-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  width: min(100%, 691px);
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--ops-border);
  border-radius: 14px;
  background: var(--ops-surface);
  box-shadow: 0 22px 70px #3a322021;
}

.ops-login-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 26px;
  background: radial-gradient(ellipse at 82% 87%, #803b33 0, transparent 55%), linear-gradient(160deg, #22334b, var(--ops-rail) 63%);
}

.ops-login-brand .ops-brand-mark { width: 45px; height: 45px; font-size: 1.75rem; }
.ops-login-brand .ops-brand-name { font-size: 1.5rem; }
.ops-login-store { display: inline-flex; align-items: center; gap: 6px; color: #efe5db; font-size: .83rem; }
.ops-login-store:hover { color: #fff; text-decoration: underline; }
.ops-login-store .ops-icon { width: 14px; height: 14px; }
.ops-login-card { align-content: center; padding: clamp(22px, 4vw, 42px); }
.ops-login-card h1 { margin-bottom: 18px; font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.ops-login-form { display: grid; gap: 9px; }
.ops-login-form label { font-weight: 660; }
.ops-login-form .ops-primary { justify-content: space-between; width: 100%; margin-top: 5px; }

.ops-confirmation-header { background: var(--ops-rail); }
.ops-confirmation-header > div { width: min(1400px, 100%); margin-inline: auto; padding: 13px clamp(17px, 3vw, 42px); }
.ops-confirmation-main { width: min(660px, 100%); padding-block: clamp(27px, 6vw, 75px) 45px; }
.ops-confirmation-card h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); overflow-wrap: anywhere; }
.ops-confirmation-message { margin: 15px 17px; border-inline-start: 3px solid var(--ops-accent); padding: 9px 12px; color: #792c21; background: #faede6; overflow-wrap: anywhere; }
.ops-confirmation-facts > div + div { border-top: 1px solid var(--ops-line); padding-top: 9px; }
.ops-confirmation-facts dd { font-size: .96rem; font-variant-numeric: tabular-nums; }
.ops-confirmation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; border-top: 1px solid var(--ops-line); padding: 14px 17px; }
.ops-confirmation-actions .ops-button { min-height: 42px; }
.ops-confirmation-dialog {
  box-sizing: border-box;
  width: min(510px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  background: var(--ops-surface);
  color: var(--ops-ink);
  box-shadow: 0 16px 45px #151f2c45;
}
.ops-confirmation-dialog::backdrop { background: #151f2c65; }
.ops-confirmation-dialog [data-admin-confirmation-result] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  max-height: calc(100vh - 30px);
  max-height: calc(100dvh - 30px);
  overflow: hidden;
  border: 0;
}
.ops-confirmation-dialog .ops-panel-head { padding-inline-end: 59px; }
.ops-confirmation-dialog .ops-panel-head h2 { font-size: 1.13rem; overflow-wrap: anywhere; }
.ops-confirmation-dialog .ops-confirmation-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ops-confirmation-dialog .ops-confirmation-close { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; }
.ops-confirmation-dialog .ops-confirmation-actions { background: var(--ops-surface); }
[data-admin-confirmation-loading] :is(button, input)[type="submit"] { cursor: progress; }

@media (max-width: 960px) {
  .ops-shell { grid-template-columns: 194px minmax(0, 1fr); }
  .ops-order-layout { grid-template-columns: minmax(0, 1fr); }
  .ops-customer-with-summary { grid-template-columns: minmax(0, 1fr); }
  .ops-order-aside { grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr)); align-items: start; }
}

@media (max-width: 720px) {
  .ops-shell { display: block; }
  .ops-rail { position: static; height: auto; }
  .ops-top { position: static; }
  .ops-main { gap: 13px; }
  .ops-top-inner { gap: 9px; min-height: 53px; }
  .ops-intro { margin-bottom: 3px; }
  .ops-panel-head, .ops-form-fields, .ops-facts { padding-inline: 12px; }
  .ops-table th, .ops-table td { padding-inline: 12px; }
  .ops-nav { margin-block: 14px; }
  .ops-login { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .ops-login-brand { flex-direction: row; align-items: center; min-height: 91px; padding: 15px 19px; }
  .ops-login-brand .ops-brand-mark { width: 39px; height: 39px; font-size: 1.6rem; }

  .ops-enhanced .ops-rail {
    position: fixed;
    z-index: 6;
    inset: 0 auto 0 0;
    width: min(280px, 83vw);
    height: 100dvh;
    transform: translateX(-105%);
    visibility: hidden;
  }

  .ops-enhanced.ops-open .ops-rail { transform: none; visibility: visible; animation: ops-rail-enter .18s ease-out; }
  .ops-enhanced .ops-rail-toggle, .ops-enhanced .ops-rail-close { display: grid; flex: none; }
  .ops-enhanced .ops-rail-close { border-color: #f4f5f72c; color: var(--ops-rail-text); background: transparent; }
  .ops-enhanced .ops-backdrop { display: block; position: fixed; z-index: 5; inset: 0; width: 100%; border: 0; border-radius: 0; background: #1118229c; }
  .ops-enhanced.ops-open { overflow: hidden; }
}

@keyframes ops-rail-enter {
  from { transform: translateX(-100%); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-enhanced.ops-open .ops-rail { animation: none; }
}

@media (max-width: 460px) {
  .ops-filter-panel { padding: 10px; }
  .ops-filter-form .ops-field { flex: 1 1 133px; }
  .ops-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .ops-stat { padding: 13px 9px; }
  .ops-stat-link { padding-right: 25px; }
  .ops-stat-arrow { top: 12px; right: 7px; }
  .ops-login-body { padding: 15px; }
  .ops-login-brand .ops-brand-name { font-size: 1.25rem; }
}

.ops-media-picker {
  min-width: 0;
  margin: 0;
  padding: 9px 0 2px;
  border: 0;
}

.ops-media-picker legend {
  padding: 0;
  color: #374352;
  font-size: .88rem;
  font-weight: 700;
}

.ops-media-help {
  margin-bottom: 8px;
  color: var(--ops-muted);
  font-size: .8rem;
}

.ops-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(112px, 100%), 1fr));
  align-items: start;
  max-height: 355px;
  gap: 8px;
  padding: 8px;
  overflow: auto;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: #f6f3eb;
  scrollbar-width: thin;
}

.ops-media-grid:focus-visible { outline-offset: 2px; }

.ops-product-media-selection {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(128px, 100%), 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ops-product-media-gallery-item, .ops-product-media-cover-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  min-width: 0;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: var(--ops-surface);
}
.ops-product-media-cover-item { width: min(152px, 100%); }
.ops-product-media [data-product-media-label] { min-width: 0; }
.ops-product-media-gallery-item [data-product-media-fallback] { overflow-wrap: anywhere; }
#product-images { scroll-margin-top: 72px; }
.ops-product-media-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 8px; }
.ops-product-media-upload { max-width: 660px; margin-block-start: 12px; padding: 12px; border: 1px solid var(--ops-border); border-radius: 8px; }
.ops-product-media-upload [role="status"] { margin-block: 6px; }
.ops-product-media-upload [role="status"]:empty { display: none; }
.ops-product-media-upload [data-invalid] { color: #8b281b; }
.ops-appearance-media { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; min-width: 0; }
.ops-appearance-media .ops-field, .ops-appearance-media input { min-width: 0; }
.ops-product-media-manual { max-width: 36rem; margin-block-start: 10px; }
.ops-product-media-move { flex-wrap: wrap; }
.ops-product-media-move button { min-height: 32px; }

.ops-product-media-dialog {
  width: min(740px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ops-border);
  border-radius: 10px;
  color: var(--ops-ink);
  background: var(--ops-surface);
}
.ops-product-media-dialog::backdrop { background: #15181080; }
body:has(.ops-product-media-dialog[open]) { overflow: hidden; }
.ops-product-media-dialog-body { padding: clamp(12px, 3vw, 20px); }
.ops-product-media-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-block-end: 10px; }
.ops-product-media-dialog-heading h2 { font-size: 1.12rem; }
.ops-product-media-query { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; margin-block-end: 10px; }
.ops-product-media-query .ops-field { min-width: 0; }
.ops-product-media-query input { min-width: 0; }
.ops-product-media-results { max-height: min(355px, 50dvh); }
.ops-product-media-results:empty { display: none; }
.ops-product-media-result { width: 100%; text-align: start; }
.ops-product-media-result[aria-pressed="true"] { border-color: var(--ops-accent); background: #fff1e8; }
.ops-product-media-result[aria-pressed="true"] .ops-media-option-title::before { content: "✓ "; }

.ops-media-choice { min-width: 0; }
.ops-media-option {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  gap: 5px;
  padding: 5px;
  border: 1px solid var(--ops-border);
  border-radius: 7px;
  background: var(--ops-surface);
  cursor: pointer;
}

.ops-media-option:hover { border-color: #b99987; }
.ops-media-option:has(input:checked) { border-color: var(--ops-accent); background: #fff1e8; }
.ops-media-option:focus-within { outline: 2px solid var(--ops-accent); outline-offset: 1px; }

.ops-media-option input {
  position: absolute;
  z-index: 1;
  top: 9px;
  right: 9px;
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--ops-accent);
}

.ops-media-tile {
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
  color: var(--ops-muted);
  background: #eee8dd;
}

.ops-media-tile img { width: 100%; height: 100%; object-fit: cover; }
.ops-media-none { background: #f0ece5; }
.ops-media-option-title { overflow: hidden; color: var(--ops-ink); font-size: .76rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }

.ops-media-position {
  position: absolute;
  top: 9px;
  left: 9px;
  min-width: 20px;
  padding: 1px 4px;
  border-radius: 11px;
  background: var(--ops-accent);
  color: #fff;
  text-align: center;
  font-size: .69rem;
  font-weight: 730;
}

.ops-media-move { display: flex; justify-content: space-between; gap: 4px; padding-top: 4px; }
.ops-media-move button { flex: 1; min-width: 0; padding: 4px; border: 1px solid var(--ops-border); border-radius: 4px; background: var(--ops-surface); color: var(--ops-ink); font: 630 .74rem/1.2 var(--body); }
.ops-media-move button:hover:not(:disabled) { border-color: var(--ops-accent); color: var(--ops-accent); }
.ops-media-move button:disabled { color: var(--ops-muted); }

@media (max-width: 460px) {
  .ops-media-grid { max-height: 255px; }
}

.site-nav-inner { position: relative; display: flex; align-items: stretch; gap: clamp(10px, 1.7vw, 24px); }
.site-nav-inner .site-nav { flex: 1 1 auto; min-width: 0; }
.department-menu { position: relative; flex: none; }
.department-menu summary {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  min-height: 43px;
  padding: 8px 12px 8px 1px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: .85rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.department-menu summary::-webkit-details-marker { display: none; }
.department-menu summary > svg:first-child { color: var(--brand); }
.department-menu summary > svg:last-child { margin-inline-start: 2px; }
.department-menu[open] summary { color: var(--brand); }
.department-menu[open] summary > svg:last-child { transform: rotate(180deg); }

.department-links {
  position: absolute;
  z-index: 6;
  inset-block-start: calc(100% + 1px);
  inset-inline-start: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 12px;
  width: min(525px, calc(100vw - 48px));
  max-height: min(60vh, 29rem);
  padding: 12px;
  overflow: auto;
  border: 1px solid var(--line);
  border-top: 2px solid var(--brand);
  border-radius: 0 0 6px 6px;
  background: var(--white);
  box-shadow: 0 12px 29px #20272019;
}

.department-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 39px; padding: 7px 8px; border-radius: 3px; font-size: .85rem; font-weight: 620; overflow-wrap: anywhere; }
.department-links a svg { flex: none; width: 13px; color: var(--brand); }
.department-links a:hover { background: var(--paper); color: var(--brand); }
.department-links .department-all { grid-column: 1 / -1; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0; color: var(--brand); }

.site-search { position: relative; }
.search-suggestions {
  position: absolute;
  z-index: 7;
  inset-block-start: calc(100% + 6px);
  inset-inline: -1px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 12px 28px #20272019;
}

.search-suggestions-heading { padding: 11px 12px 8px; color: var(--muted); font-size: .75rem; font-weight: 720; }
.search-suggestions-results { max-height: min(52vh, 350px); overflow: auto; }
.search-suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  margin: 0 6px;
  padding: 5px 6px;
  border-radius: 3px;
  color: var(--ink);
  font-size: .86rem;
}

.search-suggestion:hover, .search-suggestion[aria-selected="true"] { background: var(--paper); color: var(--brand); }
.search-suggestion-link { grid-template-columns: minmax(0, 1fr); min-height: 42px; }
.search-suggestion-media { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 3px; background: var(--sage); }
.search-suggestion-media img { height: 100%; object-fit: cover; }
.search-suggestion-title { overflow-wrap: anywhere; }
.search-suggestion-title mark { border-radius: 2px; color: inherit; background: var(--sage); font-weight: 720; }
.search-suggestion-price { font-size: .8rem; white-space: nowrap; }
.search-suggestions-empty { padding: 8px 12px 12px; color: var(--muted); font-size: .83rem; }
.site-search .search-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  color: var(--brand);
  background: var(--paper);
  font-size: .84rem;
  font-weight: 680;
}

.site-search .search-all:hover { background: var(--sand); }
.store-body:has(.cart-drawer[open]) { overflow: hidden; }
.cart-drawer:not([open]) { display: none; }
.cart-drawer {
  position: fixed;
  inset-block: 0;
  inset-inline: auto 0;
  width: min(460px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-inline-start: 1px solid var(--line);
  color: var(--ink);
  background: var(--paper);
  box-shadow: -10px 0 32px #20272026;
}

.cart-drawer::backdrop { background: #1820187d; }
.cart-drawer-shell { display: flex; flex-direction: column; height: 100%; }
.cart-drawer-head {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: space-between;
  min-height: 69px;
  gap: 10px;
  padding: 11px clamp(12px, 3vw, 20px);
  border-bottom: 1px solid var(--line);
}

.cart-drawer-head h2 { font-size: clamp(1.6rem, 4vw, 2rem); }
.cart-drawer-close { display: grid; flex: none; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: var(--white); }
.cart-drawer-close:hover { color: var(--brand); }
.cart-drawer-content { flex: 1 1 auto; min-height: 0; overflow: auto; }
.cart-drawer-panel { display: flex; flex-direction: column; min-height: 100%; }
.cart-drawer-loading, .cart-drawer-error, .cart-drawer-messages { padding: 13px clamp(12px, 3vw, 20px) 0; }
.cart-drawer-loading { padding-block-end: 13px; color: var(--muted); font-size: .86rem; }
.cart-drawer-error p { margin-bottom: 10px; color: var(--muted); }
.cart-drawer-messages .message { margin-bottom: 0; }
.cart-drawer-lines { padding-inline: clamp(12px, 3vw, 20px); }
.cart-drawer-line {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr) auto;
  gap: 10px 12px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-line:last-child { border-bottom: 0; }
.cart-drawer-image { display: block; overflow: hidden; align-self: start; aspect-ratio: 1; border-radius: 4px; background: var(--sage); }
.cart-drawer-image img { height: 100%; object-fit: cover; }
.cart-drawer-image .image-placeholder { min-height: 0; font-size: 1.65rem; }
.cart-drawer-line-body h3 { font-size: .88rem; line-height: 1.35; overflow-wrap: anywhere; }
.cart-drawer-line-body h3 a:hover { color: var(--brand); }
.cart-drawer-line-body p, .cart-drawer-line-actions > span { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.line-body .cart-stock-issue, .cart-drawer-line-body .cart-stock-issue { color: var(--store-sold-out, #a32f31); }
.cart-drawer-price { align-self: start; font-size: .8rem; white-space: nowrap; }
.cart-drawer-line-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 7px; margin-top: 6px; }
.cart-drawer-line-actions form { display: flex; align-items: center; gap: 4px; }
.cart-drawer-line-actions input[type="number"] { width: 48px; min-height: 33px; padding: 3px 4px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.cart-drawer-totals { margin-top: auto; padding: 16px clamp(12px, 3vw, 20px) 18px; border-top: 1px solid var(--line); background: var(--paper); }
.cart-drawer-totals h2 { font-size: 1.35rem; }
.cart-drawer-totals .totals { margin-block: 12px; font-size: .85rem; }
.cart-drawer-full { display: flex; justify-content: center; margin-top: 9px; }
.cart-drawer-empty { display: grid; justify-items: center; align-content: start; gap: 11px; min-height: 180px; padding: 31px 12px; text-align: center; }
.cart-drawer-empty .empty-icon { margin: 0; }

@media (max-width: 660px) {
  .site-nav-inner { gap: 10px; }
  .department-menu { position: static; }
  .department-menu summary { gap: 5px; padding-inline-end: 7px; font-size: .8rem; }
  .department-menu summary > svg:first-child { width: 16px; }
  .department-links { width: 100%; gap: 2px 6px; padding: 8px; }
  .department-links a { padding-inline: 5px; font-size: .8rem; }
}

@media (max-width: 380px) {
  .cart-drawer-line { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; }
  .cart-drawer-price { white-space: normal; text-align: end; }
}

.ops-market-editor { display: grid; min-width: 0; align-items: start; gap: 14px; }
.ops-market-guide { color: var(--ops-muted); font-size: .84rem; }
.ops-market-site { overflow: hidden; }
.ops-market-site > .ops-panel-head { background: #f3f1eb; border-radius: 9px 9px 0 0; }
.ops-market-grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); background: var(--ops-line); }
.ops-market-region { min-width: 0; padding: 12px 14px 14px; background: var(--ops-surface); }
.ops-market-region-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; margin-bottom: 9px; }
.ops-market-region-heading h3 { font-size: .97rem; overflow-wrap: anywhere; }
.ops-market-preview { display: inline-flex; align-items: center; gap: 4px; padding: 3px 2px; font-size: .84rem; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.ops-market-preview .ops-icon { width: 14px; height: 14px; }
.ops-market-currency { color: var(--ops-muted); font-size: .77rem; font-weight: 650; white-space: nowrap; }
.ops-market-region-heading .ops-checkbox { min-height: 25px; margin-inline-start: auto; font-size: .84rem; }
.ops-market-link { grid-template-columns: auto minmax(0, 1fr); align-items: center; max-width: 420px; margin-top: 10px; }
.ops-market-link span { white-space: nowrap; }

.ops-market-prices { width: 100%; max-width: 720px; table-layout: fixed; border-collapse: collapse; text-align: start; }
.ops-market-variant-col { width: 43%; }
.ops-market-prices th, .ops-market-prices td { padding: 7px 9px; text-align: start; }
.ops-market-prices thead th { background: #f5f2ec; color: var(--ops-muted); font-size: .77rem; font-weight: 650; }
.ops-market-prices tbody tr { border-bottom: 1px solid var(--ops-line); }
.ops-market-variant { overflow-wrap: anywhere; font-size: .83rem; font-weight: 650; }
.ops-market-variant small { display: block; color: var(--ops-muted); font-size: .74rem; font-weight: 490; }
.ops-market-prices input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 5px 8px;
  border: 1px solid #cfcec6;
  border-radius: 6px;
  background: var(--ops-surface);
  font-size: .86rem;
  font-variant-numeric: tabular-nums;
}

.ops-market-save {
  position: sticky;
  z-index: 2;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  padding: 9px 12px;
  border: 1px solid var(--ops-border);
  border-radius: 8px;
  background: var(--ops-surface);
  box-shadow: 0 2px 9px #27313a12;
}

#product-market-empty-title { font-size: .96rem; }
#product-market-empty-title ~ .ops-button { margin-top: 12px; }

@media (min-width: 970px) {
  .ops-market-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-market-editor > .ops-market-guide, .ops-market-save,
  .ops-market-site:has(.ops-market-region + .ops-market-region),
  .ops-market-site:only-of-type { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .ops-market-region { padding-inline: 10px; }
  .ops-market-region-heading .ops-checkbox { margin-inline-start: 0; }
  .ops-market-prices th, .ops-market-prices td { padding-inline: 4px; }
  .ops-market-variant-col { width: 36%; }
  .ops-market-prices input[type="text"] { padding-inline: 5px; }
  .ops-market-save .ops-button { width: 100%; }
}

.masthead-actions {
  display: flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: clamp(10px, 1.7vw, 24px);
}

.account-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-weight: 630; }
.account-link:hover { color: var(--brand); }
.account-link svg, .masthead-actions .cart-link svg { flex: none; }

.account-auth {
  display: grid;
  align-content: center;
  justify-items: center;
  padding-block: clamp(30px, 6vw, 86px);
}

.account-auth-card {
  width: min(100%, 470px);
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand);
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 8px 30px #20272009;
}

.account-auth-mark { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 13px; border-radius: 50%; color: var(--brand); background: var(--sage); }
.account-auth-card h1 { font-size: clamp(1.9rem, 4vw, 2.75rem); }
.account-auth-card > p { margin-top: 9px; color: var(--muted); overflow-wrap: anywhere; }
.account-auth-card > .message { margin: 15px 0 0; }
.account-auth-form { display: grid; gap: 7px; margin-top: 19px; }
.account-auth-form label { font-size: .87rem; font-weight: 660; }
.account-auth-form .button { margin-top: 6px; }
.account-auth-form .account-code { font-variant-numeric: tabular-nums; font-weight: 660; letter-spacing: .22em; }
.account-password-form { gap: 12px; }
.account-form-field { display: grid; min-width: 0; gap: 5px; }
.account-field-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.account-field-label .text-link, .account-field-help, .account-auth-card > .account-code-help { font-size: .82rem; }
.account-field-help { color: var(--muted); }
.account-auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; margin-top: 12px; }
.account-auth-links :is(a, button) { min-height: 36px; padding: 0; border: 0; background: transparent; text-align: start; }
.account-sign-in-options { display: grid; gap: 5px; margin-top: 19px; border-top: 1px solid var(--line); padding-top: 15px; }
.account-sign-in-options p { color: var(--muted); font-size: .86rem; text-align: center; }
.account-sign-in-options .text-link { min-height: 36px; margin-inline-start: 2px; }
.account-security-card { margin-inline: auto; }

.account-main { max-width: 1060px; }
.account-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 43px;
  gap: 6px 16px;
  margin-bottom: 22px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}

.account-nav-current, .account-nav-actions { display: flex; align-items: center; gap: 7px; }
.account-nav-current { font-weight: 690; }
.account-nav-current svg { color: var(--brand); }
.account-nav-actions { min-width: 0; justify-content: flex-end; flex-wrap: wrap; gap: 6px 13px; margin-inline-start: auto; }
.account-nav-actions form { flex: none; }
.account-security-link { min-height: 38px; }
.account-identity { display: flex; align-items: baseline; flex-wrap: wrap; gap: 1px 8px; min-width: 0; overflow-wrap: anywhere; }
.account-identity strong { font-size: .86rem; }
.account-identity span { color: var(--muted); font-size: .82rem; }
.account-back-arrow { display: inline-flex; transform: rotate(180deg); }

.account-order-list, .account-order-items { display: grid; margin: 0; padding: 0; list-style: none; }
.account-order-list { gap: 9px; }
.account-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(105px, .85fr) auto 18px;
  align-items: center;
  min-height: 72px;
  column-gap: 14px;
  row-gap: 5px;
  padding: 13px 17px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
}

a.account-order-card:hover { border-color: var(--brand); }
.account-order-card h2 { font-family: var(--body); font-size: .99rem; font-weight: 680; letter-spacing: 0; overflow-wrap: anywhere; }
.account-order-meta { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.account-order-total { white-space: nowrap; }
.account-order-arrow { display: grid; grid-column: 4; justify-content: end; color: var(--brand); }
.account-order-state { display: flex; flex-wrap: wrap; gap: 4px; }
.account-status { display: inline-block; padding: 2px 7px; border: 1px solid var(--line); border-radius: 16px; color: #535349; background: #f4f1e9; font-size: .76rem; font-weight: 650; }
.account-status:is([data-status="paid"], [data-status="shipped"], [data-status="fulfilled"]) { border-color: #dbe7d5; background: #eaf2e6; color: #315c39; }
.account-status:is([data-status="pending"], [data-status="partially_refunded"], [data-status="partially_fulfilled"]) { border-color: #efe2c5; background: #f8f0db; color: #74541b; }
.account-status:is([data-status="failed"], [data-status="cancelled"], [data-status="expired"]) { border-color: #f0dad3; background: #f8ebe6; color: #8a3b2c; }
.account-status[data-status="refunded"] { border-color: #dce6f0; background: #edf3fa; color: #355576; }

.account-order-heading h1 span { overflow-wrap: anywhere; }
.account-order-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(270px, .8fr); align-items: start; gap: clamp(12px, 3vw, 28px); }
.account-order-summary { display: grid; gap: 12px; min-width: 0; }
.account-order-summary .totals { margin-bottom: 0; }
.account-order-section { min-width: 0; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.account-order-section h2 { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 1.4rem; }
.account-order-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: start;
  gap: 9px 12px;
  padding: 13px 16px;
}

.account-order-item + .account-order-item { border-top: 1px solid var(--line); }
.account-order-thumbnail { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 4px; background: var(--sage); color: var(--muted); object-fit: cover; }
.account-item-description h3 { font-size: .91rem; overflow-wrap: anywhere; }
.account-item-description p { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.account-order-item > strong { font-size: .83rem; white-space: nowrap; }
.account-empty-items { padding: 14px 16px; color: var(--muted); }
.account-order-facts dl { display: grid; gap: 9px; padding: 13px 16px; }
.account-order-facts dl > div { display: grid; grid-template-columns: minmax(84px, .8fr) minmax(0, 1.2fr); align-items: start; gap: 6px; }
.account-order-facts dt { color: var(--muted); font-size: .83rem; }
.account-order-facts dd { overflow-wrap: anywhere; font-size: .84rem; }

@media (max-width: 660px) {
  .masthead-actions { grid-column: 2; grid-row: 1; }
  .account-order-card { grid-template-columns: minmax(0, 1fr) auto 18px; min-height: 0; column-gap: 8px; padding: 11px; }
  .account-order-state { grid-column: 1 / -1; }
  .account-order-total { grid-column: 2; grid-row: 1; }
  .account-order-arrow { grid-column: 3; grid-row: 1; }
  .account-order-layout { grid-template-columns: minmax(0, 1fr); }
  .account-order-section h2, .account-order-item, .account-order-facts dl { padding-inline: 10px; }
}

@media (max-width: 440px) {
  .masthead-actions { gap: 10px; }
  .masthead-actions :is(.account-link, .cart-link) { position: relative; flex-direction: column; gap: 0; font-size: .72rem; }
  .masthead-actions .cart-link b { position: absolute; inset-block-start: -4px; inset-inline-end: -6px; min-width: 17px; height: 17px; font-size: .64rem; }
  .account-nav-actions { justify-content: flex-start; margin-inline-start: 0; }
  .account-order-item { grid-template-columns: 45px minmax(0, 1fr) auto; gap: 7px; }
  .account-order-thumbnail { width: 45px; height: 45px; }
  .account-order-item > strong, .account-order-total { white-space: normal; text-align: end; }
}
