/* CURRENT STOREFRONT COMMERCE UI — visual patterns adapted from the design-reference storefront. */
body.commerce-panel-open {
  overflow: hidden;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.store-reference-home.commerce-page {
  min-height: 55vh;
  overflow: visible;
  background: #fff;
}
.store-reference-home.commerce-page .page-hero {
  padding: 76px 0 48px;
  background: linear-gradient(
    180deg,
    var(--storefront-accent-soft) 0%,
    #fff 100%
  );
  border-bottom: 1px solid rgba(23, 17, 22, 0.07);
}
.store-reference-home.commerce-page .page-hero .container {
  max-width: 920px;
  text-align: center;
}
.store-reference-home.commerce-page .page-hero h1 {
  margin: 9px 0 12px;
  font: 500 clamp(42px, 6vw, 76px)/0.96 var(--storefront-serif);
  letter-spacing: -0.035em;
}
.store-reference-home.commerce-page .page-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #756c72;
  font-size: 14px;
  line-height: 1.8;
}
.store-reference-home.commerce-page .section {
  padding: 64px 0;
}
.store-reference-home.commerce-page .container {
  width: min(calc(100% - 48px), 1320px);
  margin-inline: auto;
}
.store-reference-home.commerce-page .eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: #8d7885;
}
.store-reference-home.commerce-page .button {
  appearance: none;
  border: 1px solid var(--storefront-text);
  background: var(--storefront-text);
  color: #fff;
  border-radius: 999px;
  min-height: 48px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.store-reference-home.commerce-page .button:hover {
  transform: translateY(-1px);
}
.store-reference-home.commerce-page .button--ghost {
  background: transparent;
  color: var(--storefront-text);
  border-color: rgba(23, 17, 22, 0.2);
}
.store-reference-home.commerce-page .button--full {
  width: 100%;
}
.store-reference-home.commerce-page .button:disabled,
.store-reference-home.commerce-page .button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.commerce-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(23, 17, 22, 0.08);
}
.commerce-filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.commerce-chip {
  border: 1px solid rgba(23, 17, 22, 0.12);
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fff;
  transition: 0.2s ease;
}
.commerce-chip:hover,
.commerce-chip.is-active {
  background: var(--storefront-text);
  color: #fff;
  border-color: var(--storefront-text);
}
.commerce-toolbar-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.commerce-search-field input,
.commerce-toolbar-controls select,
.commerce-options select,
.commerce-form-section input,
.commerce-form-section textarea,
.commerce-form-section select,
.commerce-discount-row input,
.commerce-track-form input {
  width: 100%;
  border: 1px solid rgba(23, 17, 22, 0.14);
  background: #fff;
  border-radius: 10px;
  min-height: 46px;
  padding: 10px 13px;
  color: var(--storefront-text);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.commerce-search-field input {
  width: min(260px, 36vw);
}
.commerce-toolbar-controls select {
  width: auto;
  min-width: 170px;
}
.commerce-search-field input:focus,
.commerce-toolbar-controls select:focus,
.commerce-options select:focus,
.commerce-form-section input:focus,
.commerce-form-section textarea:focus,
.commerce-track-form input:focus {
  border-color: var(--storefront-accent);
  box-shadow: 0 0 0 3px rgba(240, 60, 165, 0.1);
}
.commerce-product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 18px;
}
.commerce-product-card[hidden] {
  display: none !important;
}
.commerce-no-results,
.commerce-empty {
  text-align: center;
  padding: 56px 16px;
}
.commerce-no-results h2,
.commerce-empty h1 {
  font: 500 38px/1.05 var(--storefront-serif);
  margin: 10px 0 18px;
}
.commerce-no-results p,
.commerce-empty p {
  color: #756c72;
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.75;
}

/* Product */
.commerce-product-detail {
  padding-top: 54px !important;
}
.commerce-options {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.commerce-options label {
  display: grid;
  gap: 7px;
}
.commerce-options label > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.product-purchase-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.commerce-image-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(92vw, 1100px);
  max-height: 92vh;
  overflow: visible;
}
.commerce-image-dialog::backdrop {
  background: rgba(10, 8, 10, 0.85);
  backdrop-filter: blur(6px);
}
.commerce-image-dialog img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
}
.commerce-image-dialog button {
  position: absolute;
  right: -6px;
  top: -42px;
  border: 0;
  background: #fff;
  color: #111;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
}

/* Global cart / search */
.commerce-overlay {
  position: fixed;
  inset: 0;
  z-index: 1450;
  background: rgba(18, 13, 17, 0.36);
  backdrop-filter: blur(3px);
}
.commerce-drawer {
  position: fixed;
  z-index: 1500;
  right: 0;
  top: 0;
  width: min(440px, 100%);
  height: 100dvh;
  background: #fff;
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.13);
  transform: translateX(102%);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.commerce-drawer.is-open {
  transform: none;
}
.commerce-drawer-head,
.commerce-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(23, 17, 22, 0.08);
}
.commerce-drawer-head h2,
.commerce-search-head h2 {
  margin: 4px 0 0;
  font: 500 34px/1 var(--storefront-serif);
}
.commerce-drawer-head button,
.commerce-search-head button {
  border: 0;
  background: transparent;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--storefront-text);
}
.commerce-drawer-head button svg,
.commerce-search-head button svg {
  width: 22px;
  height: 22px;
}
.commerce-drawer-body {
  overflow: auto;
  padding: 8px 24px;
  overscroll-behavior: contain;
}
.commerce-drawer-footer {
  padding: 18px 24px 24px;
  border-top: 1px solid rgba(23, 17, 22, 0.08);
  display: grid;
  gap: 10px;
  background: #fff;
}
.commerce-drawer-footer p {
  margin: 0 0 5px;
  color: #786d74;
  font-size: 11px;
  line-height: 1.55;
}
.commerce-drawer-footer .storefront-button.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.mini-cart-offers {
  display: grid;
  gap: 10px;
  margin: 0 0 4px;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(23, 17, 22, 0.08);
}
.mini-cart-offers[hidden] {
  display: none !important;
}
.mini-cart-offers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mini-cart-offers-head strong {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.mini-cart-offers-head span {
  font-size: 9px;
  color: #8b7d85;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mini-cart-offers-track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.mini-cart-offer-card {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid rgba(23, 17, 22, 0.09);
  border-radius: 12px;
  background: var(--storefront-accent-soft);
}
.mini-cart-offer-card[hidden] {
  display: none !important;
}
.mini-cart-offer-top {
  min-height: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mini-cart-offer-icon {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  font-size: 13px;
  line-height: 1;
}
.mini-cart-offer-badge {
  max-width: 100%;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--storefront-accent-soft);
  color: var(--storefront-accent);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-cart-offer-card > strong {
  font-size: 11px;
  line-height: 1.35;
}
.mini-cart-offer-card > p {
  margin: 0;
  color: #776a72;
  font-size: 9.5px;
  line-height: 1.5;
}
.mini-cart-offer-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.mini-cart-offer-meta span {
  min-width: 0;
  color: #92858d;
  font-size: 8.5px;
  line-height: 1.4;
}
.mini-cart-offer-meta b {
  flex: 0 0 auto;
  font-size: 9px;
  line-height: 1.35;
  text-align: right;
}
.mini-cart-offer-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #ebe7e9;
}
.mini-cart-offer-progress[hidden] {
  display: none !important;
}
.mini-cart-offer-progress span {
  display: block;
  height: 100%;
  max-width: 100%;
  border-radius: inherit;
  background: var(--storefront-text);
}
.mini-cart-offer-link {
  width: max-content;
  max-width: 100%;
  margin-top: 1px;
  border-bottom: 1px solid rgba(23, 17, 22, 0.24);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.storefront-button--dark {
  background: var(--storefront-text);
  color: #fff;
}
.storefront-button--outline {
  background: #fff;
  color: var(--storefront-text);
}
.commerce-cart-line {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(23, 17, 22, 0.08);
}
.commerce-cart-line-image {
  aspect-ratio: 4/5;
  background: var(--storefront-accent-tint);
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.commerce-cart-line-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.commerce-cart-line-image span {
  font: 600 24px var(--storefront-serif);
}
.commerce-cart-line-copy h3 {
  font-size: 13px;
  margin: 1px 0 4px;
}
.commerce-cart-line-copy small {
  display: block;
  color: #857980;
  font-size: 10px;
  margin-bottom: 8px;
}
.commerce-cart-line-copy strong {
  font-size: 12px;
}
.commerce-line-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.commerce-line-actions button {
  border: 1px solid rgba(23, 17, 22, 0.13);
  background: #fff;
  border-radius: 7px;
  min-width: 30px;
  height: 30px;
  cursor: pointer;
}
.commerce-line-actions .commerce-remove {
  border: 0;
  margin-left: auto;
  color: #8b717e;
  font-size: 9px;
  text-decoration: underline;
}
.commerce-cart-empty {
  text-align: center;
  padding: 70px 16px;
}
.commerce-cart-empty strong {
  font: 500 28px var(--storefront-serif);
}
.commerce-cart-empty p {
  font-size: 12px;
  color: #756c72;
  line-height: 1.6;
}
.commerce-cart-empty a {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.commerce-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
}
.commerce-summary-row strong {
  font-size: 13px;
}
.commerce-search-panel {
  position: fixed;
  z-index: 1500;
  top: 0;
  left: 50%;
  width: min(760px, calc(100% - 32px));
  max-height: min(760px, 90dvh);
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.16);
  border-radius: 0 0 16px 16px;
  transform: translate(-50%, -110%);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow: hidden;
}
.commerce-search-panel.is-open {
  transform: translate(-50%, 0);
}
.commerce-search-input {
  margin: 20px 24px 12px;
  border: 1px solid rgba(23, 17, 22, 0.13);
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
}
.commerce-search-input svg {
  width: 18px;
}
.commerce-search-input input {
  border: 0;
  outline: 0;
  min-height: 48px;
  flex: 1;
}
.commerce-search-results {
  padding: 8px 24px 24px;
  max-height: 60dvh;
  overflow: auto;
}
.commerce-search-result {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 17, 22, 0.07);
}
.commerce-search-result img,
.commerce-search-placeholder {
  width: 62px;
  height: 74px;
  object-fit: cover;
  background: var(--storefront-accent-soft);
  border-radius: 7px;
  display: grid;
  place-items: center;
}
.commerce-search-result strong {
  display: block;
  font-size: 12px;
}
.commerce-search-result small {
  font-size: 10px;
  color: #786d74;
}
.commerce-search-hint {
  color: #756c72;
  font-size: 12px;
  padding: 14px 0;
}
.commerce-toast-region {
  position: fixed;
  z-index: 2000;
  right: 20px;
  bottom: 20px;
  display: grid;
  gap: 8px;
  pointer-events: none;
}
.commerce-toast {
  max-width: 340px;
  padding: 12px 15px;
  border-radius: 10px;
  background: var(--storefront-text);
  color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  font-size: 11px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.2s ease;
}
.commerce-toast.is-visible {
  opacity: 1;
  transform: none;
}
.commerce-toast.is-error {
  background: #9b2334;
}
.commerce-toast.is-success {
  background: #1d553f;
}

/* Cart / checkout */
.commerce-cart-page {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 48px;
  align-items: start;
}
.commerce-summary {
  border: 1px solid rgba(23, 17, 22, 0.09);
  background: var(--storefront-bg, #f7f7f7);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 120px;
}
.commerce-summary h2 {
  margin: 0 0 3px;
  font: 500 30px/1 var(--storefront-serif);
}
.commerce-summary-note {
  margin: 0;
  color: #786d74;
  font-size: 11px;
  line-height: 1.6;
}
.commerce-summary-total {
  padding-top: 15px;
  border-top: 1px solid rgba(23, 17, 22, 0.1);
  font-size: 14px;
}
.commerce-summary-total strong {
  font-size: 18px;
}
.commerce-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(330px, 0.7fr);
  gap: 46px;
  align-items: start;
}
.commerce-checkout-form {
  display: grid;
  gap: 20px;
}
.commerce-form-section {
  background: #fff;
  border: 1px solid rgba(23, 17, 22, 0.09);
  border-radius: 14px;
  padding: 24px;
}
.commerce-form-section h2 {
  font: 500 29px/1 var(--storefront-serif);
  margin: 0 0 20px;
}
.commerce-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.commerce-form-grid label,
.commerce-reference,
.commerce-track-form label {
  display: grid;
  gap: 7px;
}
.commerce-form-grid label > span,
.commerce-reference > span,
.commerce-track-form label > span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.commerce-form-grid .full {
  grid-column: 1/-1;
}
.commerce-form-section textarea {
  min-height: 100px;
  resize: vertical;
}
.commerce-payment-options {
  display: grid;
  gap: 9px;
}
.commerce-payment-option {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid rgba(23, 17, 22, 0.1);
  border-radius: 10px;
  padding: 14px;
  cursor: pointer;
}
.commerce-payment-option:has(input:checked) {
  border-color: var(--storefront-accent);
  background: var(--storefront-accent-soft);
}
.commerce-payment-option input {
  margin-top: 2px;
}
.commerce-payment-option span {
  display: grid;
  gap: 3px;
}
.commerce-payment-option strong {
  font-size: 12px;
}
.commerce-payment-option small {
  font-size: 10px;
  color: #786d74;
}
.commerce-reference {
  margin-top: 14px;
}
.commerce-discount-row {
  display: flex;
  gap: 10px;
}
.commerce-discount-row input {
  flex: 1;
}
.commerce-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.commerce-checkout-errors {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(155, 35, 52, 0.25);
  background: var(--storefront-accent-tint);
  color: var(--storefront-accent);
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.6;
}
.commerce-checkout-errors.is-success {
  border-color: rgba(29, 85, 63, 0.25);
  background: #f2fbf7;
  color: #1d553f;
}
.commerce-checkout-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(23, 17, 22, 0.07);
  font-size: 11px;
}
.commerce-checkout-line span {
  display: grid;
  gap: 2px;
}
.commerce-checkout-line small {
  color: #84777f;
  font-size: 9px;
}
.commerce-offer-messages p {
  margin: 5px 0;
  padding: 8px 10px;
  border-radius: 7px;
  background: var(--storefront-accent-soft);
  color: var(--storefront-text);
  font-size: 10px;
}
.commerce-order-success[hidden] {
  display: none;
}
.commerce-order-success {
  position: fixed;
  z-index: 2100;
  inset: 0;
  background: rgba(20, 15, 19, 0.68);
  backdrop-filter: blur(7px);
  display: grid;
  place-items: center;
  padding: 24px;
}
.commerce-order-success > div {
  width: min(560px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 38px;
  text-align: center;
}
.commerce-order-success h2 {
  font: 500 42px/1 var(--storefront-serif);
  margin: 9px 0;
}
.commerce-order-success p {
  color: #756c72;
  line-height: 1.7;
}
.commerce-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

/* Collections / content / tracking */
.commerce-collection-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.commerce-collection-card {
  position: relative;
  min-height: 440px;
  background: var(--storefront-accent-tint);
  overflow: hidden;
  border-radius: 5px;
}
.commerce-collection-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.commerce-collection-card:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(17, 11, 15, 0.65));
}
.commerce-collection-card:hover img {
  transform: scale(1.025);
}
.commerce-collection-card span {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #fff;
  display: grid;
  gap: 4px;
}
.commerce-collection-card small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.commerce-collection-card strong {
  font: 500 38px/1 var(--storefront-serif);
}
.commerce-collection-card em {
  font-style: normal;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.commerce-narrow {
  max-width: 820px !important;
}
.commerce-prose {
  padding-top: 48px !important;
  padding-bottom: 72px !important;
  font-size: 14px;
  line-height: 1.85;
  color: #3f373c;
}
.commerce-prose h2,
.commerce-prose h3 {
  font-family: var(--storefront-serif);
  font-weight: 500;
  color: var(--storefront-text);
}
.commerce-prose h2 {
  font-size: 38px;
}
.commerce-prose img {
  margin: 24px 0;
}
.commerce-contact-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 42px;
}
.commerce-contact-copy h2 {
  font: 500 44px/1 var(--storefront-serif);
  margin-top: 0;
}
.commerce-contact-copy p {
  line-height: 1.7;
  color: #5e5359;
}
.commerce-contact-copy strong {
  color: var(--storefront-text);
}
.commerce-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 18px;
}
.commerce-blog-card {
  background: #fff;
}
.commerce-blog-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.commerce-blog-card > div {
  padding: 17px 3px;
}
.commerce-blog-card h2 {
  font: 500 30px/1.08 var(--storefront-serif);
  margin: 9px 0;
}
.commerce-blog-card p {
  font-size: 12px;
  line-height: 1.7;
  color: #756c72;
}
.commerce-article-image {
  padding-top: 36px;
}
.commerce-article-image img {
  width: 100%;
  max-height: 700px;
  object-fit: cover;
}
.commerce-track-form {
  display: grid;
  gap: 14px;
}
.commerce-track-result {
  margin-top: 26px;
  background: #fff;
  border: 1px solid rgba(23, 17, 22, 0.09);
  border-radius: 14px;
  padding: 28px;
}
.commerce-track-result h2 {
  font: 500 38px/1 var(--storefront-serif);
  text-transform: capitalize;
  margin: 8px 0;
}
.commerce-track-result > p {
  font-size: 11px;
  color: #6f646a;
}
.commerce-timeline {
  margin-top: 22px;
}
.commerce-timeline > div {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  position: relative;
  padding-bottom: 18px;
}
.commerce-timeline > div > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--storefront-accent);
  margin-top: 4px;
}
.commerce-timeline > div:not(:last-child):before {
  content: "";
  position: absolute;
  left: 4px;
  top: 14px;
  bottom: 0;
  width: 1px;
  background: rgba(23, 17, 22, 0.14);
}
.commerce-timeline p {
  margin: 0;
  display: grid;
  gap: 3px;
  text-transform: capitalize;
}
.commerce-timeline small {
  color: #786d74;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .commerce-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .commerce-cart-page,
  .commerce-checkout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .commerce-summary {
    position: static;
  }
  .commerce-collection-grid,
  .commerce-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .commerce-contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .store-reference-home.commerce-page .page-hero {
    padding: 48px 0 32px;
  }
  .store-reference-home.commerce-page .page-hero h1 {
    font-size: 48px;
  }
  .store-reference-home.commerce-page .section {
    padding: 42px 0;
  }
  .store-reference-home.commerce-page .container {
    width: min(calc(100% - 28px), 1320px);
  }
  .commerce-toolbar {
    display: grid;
    align-items: stretch;
  }
  .commerce-toolbar-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .commerce-search-field input,
  .commerce-toolbar-controls select {
    width: 100%;
    min-width: 0;
  }
  .commerce-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 3px;
    margin-inline: -14px;
    padding-inline: 14px;
    scrollbar-width: none;
  }
  .commerce-filter-chips::-webkit-scrollbar {
    display: none;
  }
  .commerce-chip {
    white-space: nowrap;
  }
  .commerce-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 10px;
  }
  .commerce-form-grid {
    grid-template-columns: 1fr;
  }
  .commerce-form-grid .full {
    grid-column: auto;
  }
  .commerce-form-section {
    padding: 18px;
  }
  .commerce-drawer-head,
  .commerce-drawer-body,
  .commerce-drawer-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .commerce-search-panel {
    width: 100%;
    border-radius: 0;
  }
  .commerce-search-head {
    padding: 18px;
  }
  .commerce-search-input {
    margin: 14px 18px 8px;
  }
  .commerce-search-results {
    padding: 8px 18px 18px;
  }
  .commerce-collection-grid,
  .commerce-blog-grid {
    grid-template-columns: 1fr;
  }
  .commerce-collection-card {
    min-height: 390px;
  }
  .commerce-discount-row {
    display: grid;
  }
  .commerce-order-success > div {
    padding: 28px 20px;
  }
  .commerce-order-success h2 {
    font-size: 36px;
  }
}
@media (max-width: 420px) {
  .commerce-product-grid {
    grid-template-columns: 1fr 1fr;
  }
  .commerce-toolbar-controls {
    grid-template-columns: 1fr;
  }
  .commerce-cart-line {
    grid-template-columns: 76px 1fr;
  }
  .commerce-collection-card {
    min-height: 340px;
  }
}
@media (max-width: 460px) {
  .mini-cart-offers-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(76%, 1fr);
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .mini-cart-offers-track::-webkit-scrollbar {
    display: none;
  }
  .mini-cart-offer-card {
    scroll-snap-align: start;
  }
  .mini-cart-offers-head {
    align-items: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-drawer,
  .commerce-search-panel,
  .commerce-toast,
  .commerce-collection-card img {
    transition: none !important;
  }
}

/* Reference storefront refinement: filter sidebar/drawer, richer contact/tracking and resilient cards. */
.commerce-shop-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}
.commerce-shop-results {
  min-width: 0;
}
.commerce-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(23, 17, 22, 0.09);
  margin-bottom: 14px;
}
.commerce-shop-toolbar-left {
  display: flex;
  align-items: center;
  gap: 13px;
}
.commerce-shop-toolbar .muted {
  font-size: 10px;
  color: #81747c;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.commerce-filter-toggle {
  display: none;
  border: 1px solid rgba(23, 17, 22, 0.13);
  background: #fff;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.commerce-filter-toggle span {
  display: inline-grid;
  place-items: center;
  margin-left: 6px;
  min-width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--storefront-text);
  color: #fff;
  font-size: 9px;
}
.commerce-filters {
  position: sticky;
  top: 116px;
  border: 1px solid rgba(23, 17, 22, 0.09);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.commerce-filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 20px;
  border-bottom: 1px solid rgba(23, 17, 22, 0.08);
}
.commerce-filter-head > div {
  display: grid;
  gap: 4px;
}
.commerce-filter-head strong {
  font: 500 28px/1 var(--storefront-serif);
}
.commerce-filter-head > button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
}
.commerce-filter-body {
  padding: 4px 20px;
}
.commerce-filter-block {
  padding: 18px 0;
  border-bottom: 1px solid rgba(23, 17, 22, 0.08);
}
.commerce-filter-block:last-child {
  border-bottom: 0;
}
.commerce-filter-block h3 {
  margin: 0 0 13px;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.commerce-filter-list {
  display: grid;
  gap: 10px;
}
.commerce-filter-list label,
.commerce-stock-filter {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  cursor: pointer;
}
.commerce-filter-list input,
.commerce-stock-filter input {
  accent-color: var(--storefront-text);
}
.commerce-filter-list small {
  font-size: 9px;
  color: #8a7e85;
}
.commerce-size-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.commerce-size-filters label {
  position: relative;
}
.commerce-size-filters input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.commerce-size-filters span {
  display: grid;
  place-items: center;
  min-width: 39px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid rgba(23, 17, 22, 0.12);
  border-radius: 7px;
  font-size: 10px;
  cursor: pointer;
}
.commerce-size-filters input:checked + span {
  background: var(--storefront-text);
  border-color: var(--storefront-text);
  color: #fff;
}
.commerce-price-range {
  width: 100%;
  accent-color: var(--storefront-text);
}
.commerce-filter-footer {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 8px;
  padding: 16px 20px;
  background: var(--storefront-bg, #f7f7f7);
  border-top: 1px solid rgba(23, 17, 22, 0.08);
}
.commerce-filter-footer .button {
  min-width: 0;
  padding-inline: 12px;
}
.commerce-filter-backdrop {
  display: none;
}
.commerce-filter-chips {
  margin-bottom: 22px;
}
.commerce-product-card[hidden] {
  display: none !important;
}
.commerce-collection-card:not(:has(img)) {
  background: linear-gradient(
    145deg,
    var(--storefront-accent-soft),
    var(--storefront-accent-tint)
  );
}
.commerce-collection-card:not(:has(img))::before {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 500 clamp(72px, 10vw, 150px)/1 var(--storefront-serif);
  color: rgba(23, 17, 22, 0.08);
}
.commerce-contact-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  gap: 44px;
  align-items: start;
}
.commerce-contact-panel {
  position: sticky;
  top: 116px;
}
.commerce-contact-visual {
  width: 100%;
  aspect-ratio: 4/4.6;
  object-fit: cover;
  border-radius: 7px;
  background: var(--storefront-accent-tint);
  margin-bottom: 22px;
}
.commerce-contact-panel h2 {
  font: 500 52px/0.95 var(--storefront-serif);
  margin: 8px 0 18px;
}
.commerce-contact-panel > p {
  color: #6f636a;
  line-height: 1.7;
}
.commerce-contact-details {
  display: grid;
  gap: 14px;
  margin-top: 25px;
}
.commerce-contact-details div {
  padding-top: 13px;
  border-top: 1px solid rgba(23, 17, 22, 0.1);
  display: grid;
  gap: 5px;
}
.commerce-contact-details span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #887b83;
}
.commerce-contact-details a,
.commerce-contact-details address {
  font-size: 12px;
  font-style: normal;
}
.commerce-consent {
  display: flex !important;
  grid-column: 1/-1 !important;
  gap: 9px !important;
  align-items: flex-start !important;
  font-size: 11px !important;
  line-height: 1.6;
}
.commerce-consent input {
  margin-top: 3px;
}
.commerce-form-grid select {
  width: 100%;
}
.commerce-tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}
.commerce-tracking-card h2 {
  font: 500 42px/1 var(--storefront-serif);
  margin: 8px 0 12px;
}
.commerce-tracking-intro {
  color: #756970;
  font-size: 12px;
  line-height: 1.7;
  margin: 0 0 20px;
}
.commerce-tracking-help {
  border: 1px solid rgba(23, 17, 22, 0.09);
  background: var(--storefront-bg, #f7f7f7);
  border-radius: 14px;
  padding: 26px;
}
.commerce-tracking-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 18px;
}
.commerce-tracking-steps li {
  display: grid;
  grid-template-columns: 37px 1fr;
  gap: 12px;
}
.commerce-tracking-steps > li > span {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(23, 17, 22, 0.12);
  border-radius: 50%;
  font-size: 9px;
}
.commerce-tracking-steps strong {
  font-size: 12px;
}
.commerce-tracking-steps p {
  margin: 3px 0 0;
  color: #776b72;
  font-size: 10px;
  line-height: 1.6;
}
.commerce-support-box {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(23, 17, 22, 0.1);
  display: grid;
  gap: 6px;
}
.commerce-support-box strong {
  font: 500 24px/1 var(--storefront-serif);
}
.commerce-support-box a,
.commerce-support-box address {
  font-size: 10px;
  color: #675b62;
  font-style: normal;
}
.commerce-about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: center;
}
.commerce-about-image {
  width: 100%;
  max-height: 680px;
  object-fit: cover;
  border-radius: 7px;
  background: var(--storefront-accent-tint);
}
.commerce-about-copy h2 {
  font: 500 clamp(42px, 5vw, 68px)/0.96 var(--storefront-serif);
  margin: 10px 0 20px;
}
.commerce-about-copy p {
  font-size: 13px;
  line-height: 1.85;
  color: #645961;
}
.commerce-about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 25px;
}
.commerce-about-values div {
  border-top: 1px solid rgba(23, 17, 22, 0.12);
  padding-top: 12px;
}
.commerce-about-values strong {
  display: block;
  font: 500 25px/1 var(--storefront-serif);
}
.commerce-about-values small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #82767d;
}
@media (max-width: 1000px) {
  .commerce-shop-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .commerce-filter-toggle {
    display: inline-flex;
    align-items: center;
  }
  .commerce-filters {
    position: fixed;
    z-index: 1601;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(390px, 92vw);
    border: 0;
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overflow: auto;
  }
  .commerce-filters.is-open {
    transform: none;
  }
  .commerce-filter-head > button {
    display: block;
  }
  .commerce-filter-footer {
    position: sticky;
    bottom: 0;
  }
  .commerce-filter-backdrop {
    display: block;
    position: fixed;
    z-index: 1600;
    inset: 0;
    border: 0;
    background: rgba(17, 12, 15, 0.48);
    opacity: 0;
    visibility: hidden;
    transition: 0.2s ease;
  }
  .commerce-filters-open .commerce-filter-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .commerce-filters-open {
    overflow: hidden;
  }
  .commerce-contact-layout,
  .commerce-tracking-layout,
  .commerce-about-grid {
    grid-template-columns: 1fr;
  }
  .commerce-contact-panel {
    position: static;
  }
  .commerce-contact-visual {
    max-height: 520px;
    object-position: center 20%;
  }
}
@media (max-width: 700px) {
  .commerce-shop-toolbar {
    display: grid;
    align-items: stretch;
  }
  .commerce-shop-toolbar-left {
    justify-content: space-between;
  }
  .commerce-toolbar-controls {
    grid-template-columns: 1fr;
  }
  .commerce-filter-chips {
    order: 2;
  }
  .commerce-filter-footer {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .commerce-contact-panel h2 {
    font-size: 43px;
  }
  .commerce-about-values {
    grid-template-columns: 1fr 1fr;
  }
  .commerce-tracking-help {
    padding: 20px;
  }
}
@media (max-width: 420px) {
  .commerce-about-values {
    grid-template-columns: 1fr;
  }
  .commerce-contact-layout {
    gap: 26px;
  }
  .commerce-filter-toggle {
    padding: 9px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .commerce-filters,
  .commerce-filter-backdrop {
    transition: none !important;
  }
}

/* Optional Shop editor content; the default text-only hero is unchanged. */
.store-reference-home .shop-hero-image {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 12px;
  margin: 24px auto 0;
}
.store-reference-home .shop-hero-cta {
  margin-top: 24px;
}

/* Managed Checkout Page Editor: premium editorial checkout connected to live commerce. */
.checkout-editorial-page {
  background: var(--storefront-accent-soft);
  min-width: 0;
  overflow: visible;
}
.checkout-editorial-shell {
  padding: clamp(34px, 5vw, 72px) 0 clamp(48px, 6vw, 80px);
}
.checkout-editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}
.checkout-editorial-main {
  min-width: 0;
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  align-content: start;
}
.checkout-editorial-section {
  min-width: 0;
}
.checkout-editorial-intro {
  padding: 8px 0 4px;
}
.checkout-editorial-intro .eyebrow,
.checkout-payment-section .eyebrow,
.checkout-order-summary .eyebrow,
.checkout-support-section .eyebrow,
.checkout-prepaid-head .eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 10px;
  letter-spacing: 0.18em;
}
.checkout-editorial-intro h1 {
  margin: 0;
  font: 500 clamp(48px, 6vw, 80px)/0.94 var(--storefront-serif);
  letter-spacing: -0.03em;
}
.checkout-editorial-intro p {
  max-width: 720px;
  margin: 22px 0 0;
  color: #6f646b;
  font-size: 14px;
  line-height: 1.8;
}
.checkout-editorial-card {
  padding: clamp(24px, 3.4vw, 42px);
  border: 1px solid var(--storefront-line);
  background: #fff;
}
.checkout-editorial-card > header {
  margin-bottom: 28px;
}
.checkout-editorial-card > header h2,
.checkout-support-section h2,
.checkout-order-summary h2 {
  margin: 0;
  font: 500 clamp(32px, 3.2vw, 46px)/1 var(--storefront-serif);
  letter-spacing: -0.015em;
}
.checkout-editorial-card > header p,
.checkout-support-section p {
  max-width: 700px;
  margin: 12px 0 0;
  color: #756970;
  font-size: 12px;
  line-height: 1.75;
}
.checkout-editorial-fields {
  display: grid;
  gap: 22px 24px;
}
.checkout-editorial-fields--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.checkout-editorial-fields .full {
  grid-column: 1/-1;
}
.checkout-editorial-fields label,
.checkout-reference-field {
  display: grid;
  gap: 9px;
  min-width: 0;
}
.checkout-editorial-fields label > span,
.checkout-reference-field > span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.checkout-editorial-fields label > span small {
  font-weight: 400;
  color: #8b7d85;
  text-transform: none;
  letter-spacing: 0;
}
.checkout-editorial-fields :is(input, textarea),
.checkout-reference-field input,
.checkout-discount-row input {
  width: 100%;
  min-width: 0;
  border: 0;
  border-bottom: 1px solid rgba(23, 17, 22, 0.16);
  border-radius: 0;
  background: transparent;
  min-height: 52px;
  padding: 10px 2px 11px;
  color: var(--storefront-text);
  font: 400 15px/1.5 var(--storefront-sans);
  box-shadow: none;
  outline: 0;
}
.checkout-editorial-fields textarea {
  min-height: 92px;
  resize: vertical;
}
.checkout-editorial-fields :is(input, textarea):focus,
.checkout-reference-field input:focus,
.checkout-discount-row input:focus {
  border-bottom-color: var(--storefront-text);
}
.checkout-editorial-fields [aria-invalid="true"],
.checkout-reference-field input[aria-invalid="true"] {
  border-bottom-color: var(--storefront-accent);
}
.checkout-delivery-option {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--storefront-line);
  padding: 20px;
  cursor: pointer;
}
.checkout-delivery-option input {
  margin-top: 4px;
  accent-color: var(--storefront-text);
}
.checkout-delivery-option span {
  display: grid;
  gap: 7px;
}
.checkout-delivery-option strong {
  font-size: 15px;
  font-weight: 500;
}
.checkout-delivery-option small {
  color: #8a7782;
  font-size: 11px;
}
.checkout-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkout-payment-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 96px;
  border: 1px solid var(--storefront-line);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease;
}
.checkout-payment-option:has(input:checked) {
  border-color: var(--storefront-text);
  background: #fff;
}
.checkout-payment-option input {
  position: absolute;
  opacity: 0;
}
.checkout-payment-radio {
  width: 14px;
  height: 14px;
  border: 1px solid #958991;
  border-radius: 50%;
  margin-top: 3px;
  display: grid;
  place-items: center;
}
.checkout-payment-option:has(input:checked) .checkout-payment-radio:after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--storefront-text);
}
.checkout-payment-copy {
  display: grid;
  gap: 6px;
}
.checkout-payment-copy strong {
  font-size: 13px;
}
.checkout-payment-copy small {
  color: #7e7078;
  font-size: 10px;
  line-height: 1.55;
}
.checkout-payment-saving {
  align-self: start;
  border-radius: 999px;
  background: var(--storefront-accent-tint);
  padding: 5px 8px;
  color: var(--storefront-accent);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.checkout-prepaid-panel {
  margin-top: 20px;
  border: 1px solid var(--storefront-line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}
.checkout-prepaid-panel[hidden] {
  display: none;
}
.checkout-prepaid-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--storefront-line);
}
.checkout-prepaid-head h3 {
  margin: 0;
  font: 500 clamp(28px, 3vw, 38px)/1 var(--storefront-serif);
}
.checkout-prepaid-head p {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.65;
  color: #72666d;
}
.checkout-prepaid-head > div:last-child {
  text-align: right;
  display: grid;
  gap: 8px;
  flex: 0 0 auto;
}
.checkout-prepaid-head > div:last-child span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: #8d7d86;
}
.checkout-prepaid-head > div:last-child strong {
  font-size: 20px;
}
.checkout-payment-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
}
.checkout-payment-details[hidden] {
  display: none;
}
.checkout-payment-detail-list {
  border-top: 1px solid var(--storefront-line);
}
.checkout-payment-detail-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--storefront-line);
}
.checkout-payment-detail-list span {
  font-size: 9px;
  color: #81737b;
}
.checkout-payment-detail-list strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.checkout-copy {
  border: 1px solid var(--storefront-line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 9px;
  cursor: pointer;
}
.checkout-payment-qr {
  border: 1px solid var(--storefront-line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  text-align: center;
}
.checkout-payment-qr img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}
.checkout-payment-qr span {
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  color: #8d7d86;
}
.checkout-reference-field {
  margin-top: 8px;
}
.checkout-reference-field small {
  color: #857780;
  font-size: 10px;
  line-height: 1.6;
}
.checkout-payment-pending {
  margin-top: 18px;
  border-left: 3px solid var(--storefront-text);
  padding: 14px 16px;
  background: var(--storefront-accent-soft);
}
.checkout-payment-pending strong {
  font-size: 10px;
  letter-spacing: 0.05em;
}
.checkout-payment-pending p {
  margin: 7px 0 0;
  color: #7c6f76;
  font-size: 10px;
  line-height: 1.6;
}
.checkout-discount-row {
  display: flex;
  gap: 12px;
}
.checkout-discount-row input {
  flex: 1;
}
.checkout-support-section {
  padding: 28px 0;
  border-top: 1px solid var(--storefront-line);
}
.checkout-support-section .button {
  margin-top: 18px;
}
.checkout-place-order {
  display: grid;
  gap: 10px;
}
.checkout-place-order-button {
  min-height: 56px;
  border-radius: 0;
  justify-content: space-between;
}
.checkout-place-order > small {
  color: #7c6f76;
  font-size: 10px;
  line-height: 1.6;
}
.checkout-editorial-errors {
  margin: 0;
}
.checkout-order-summary {
  grid-column: 2;
  position: sticky;
  top: calc(var(--storefront-sticky-offset, 84px) + 20px);
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--storefront-line);
  background: #fff;
  max-height: calc(100vh - 120px);
  overflow: auto;
  scrollbar-width: none;
}
.checkout-order-summary::-webkit-scrollbar {
  width: 0;
  height: 0;
}
.checkout-order-summary header {
  margin-bottom: 22px;
}
.checkout-order-summary h2 {
  font-size: 34px;
}
.checkout-free-delivery {
  margin-bottom: 24px;
  border: 1px solid var(--storefront-line);
  border-radius: 16px;
  padding: 18px 20px;
  background: #fff;
}
.checkout-free-delivery-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}
.checkout-free-delivery-head strong {
  font-size: 12px;
}
.checkout-free-delivery-head span {
  font-size: 10px;
  color: #856f7a;
  white-space: nowrap;
}
.checkout-free-delivery-track {
  height: 8px;
  border-radius: 999px;
  background: #e6e3e5;
  overflow: hidden;
  margin-top: 14px;
}
.checkout-free-delivery-track span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--storefront-text);
  border-radius: inherit;
  transition: width 0.18s ease;
}
.checkout-free-delivery p {
  margin: 12px 0 0;
  color: var(--storefront-accent);
  font-size: 10px;
  line-height: 1.6;
}
.checkout-free-delivery.is-unlocked p {
  color: #2f6d3a;
}
.checkout-summary-lines {
  display: grid;
  gap: 14px;
  margin-bottom: 20px;
}
.checkout-summary-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.checkout-summary-line img,
.checkout-summary-line-placeholder {
  width: 58px;
  height: 72px;
  object-fit: cover;
  background: var(--storefront-accent-soft);
  display: grid;
  place-items: center;
  font: 500 14px/1 var(--storefront-serif);
}
.checkout-summary-line span {
  display: grid;
  gap: 6px;
}
.checkout-summary-line strong {
  font-size: 11px;
  line-height: 1.45;
}
.checkout-summary-line small {
  font-size: 9px;
  color: #7e7078;
}
.checkout-summary-line b {
  font-size: 12px;
  white-space: nowrap;
}
.checkout-summary-empty {
  font-size: 11px;
  color: #776b72;
}
.checkout-summary-totals {
  border-top: 1px solid var(--storefront-line);
}
.checkout-summary-totals > div:not([data-quote-adjustments]),
.checkout-summary-adjustment {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--storefront-line);
  font-size: 11px;
}
.checkout-summary-adjustment {
  color: var(--storefront-accent);
}
.checkout-summary-total {
  padding-top: 22px !important;
  border-bottom: 0 !important;
  font-size: 15px !important;
}
.checkout-summary-total strong {
  font-size: 18px;
}
.checkout-quote-status {
  margin: 16px 0 0;
  color: #80737a;
  font-size: 9px;
  line-height: 1.55;
}
.commerce-offer-messages p {
  border-radius: 0;
  background: var(--storefront-accent-soft);
}
.checkout-safe-state {
  padding: 16px;
  border: 1px solid #e9c8cf;
  background: #fff5f7;
  color: var(--storefront-accent);
  font-size: 12px;
  line-height: 1.6;
}
.checkout-qr-dialog {
  width: min(560px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 24px;
  background: #fff;
}
.checkout-qr-dialog::backdrop {
  background: rgba(20, 15, 19, 0.72);
  backdrop-filter: blur(5px);
}
.checkout-qr-dialog button {
  margin-left: auto;
  display: block;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}
.checkout-qr-dialog img {
  display: block;
  width: min(420px, 100%);
  margin: 8px auto 0;
  aspect-ratio: 1;
  object-fit: contain;
}
@media (max-width: 980px) {
  .checkout-editorial-layout {
    grid-template-columns: 1fr;
  }
  .checkout-editorial-main,
  .checkout-order-summary {
    grid-column: 1;
  }
  .checkout-order-summary {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }
  .checkout-payment-options {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .checkout-editorial-shell {
    padding: 28px 0 56px;
  }
  .checkout-editorial-layout {
    gap: 22px;
  }
  .checkout-editorial-card,
  .checkout-order-summary {
    padding: 24px 18px;
  }
  .checkout-editorial-fields--two {
    grid-template-columns: 1fr;
  }
  .checkout-editorial-fields .full {
    grid-column: auto;
  }
  .checkout-payment-option {
    grid-template-columns: 18px minmax(0, 1fr);
    min-height: auto;
  }
  .checkout-payment-saving {
    grid-column: 2;
    justify-self: start;
  }
  .checkout-prepaid-head {
    display: grid;
  }
  .checkout-prepaid-head > div:last-child {
    text-align: left;
  }
  .checkout-payment-details {
    grid-template-columns: 1fr;
  }
  .checkout-payment-qr {
    width: min(220px, 100%);
  }
  .checkout-payment-detail-list > div {
    grid-template-columns: 1fr auto;
  }
  .checkout-payment-detail-list span {
    grid-column: 1/-1;
  }
  .checkout-discount-row {
    display: grid;
  }
  .checkout-free-delivery-head {
    display: grid;
  }
  .checkout-summary-line {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }
  .checkout-summary-line img,
  .checkout-summary-line-placeholder {
    width: 50px;
    height: 64px;
  }
}

/* Wallet Management checkout selector */
.checkout-payment-details[data-payment-details="other_wallet"] {
  grid-template-columns: 1fr;
}
.checkout-wallet-picker {
  display: grid;
  gap: 14px;
}
.checkout-wallet-picker-head {
  display: grid;
  gap: 5px;
}
.checkout-wallet-picker-head strong {
  font-size: 12px;
}
.checkout-wallet-picker-head small {
  font-size: 10px;
  color: #7e7078;
  line-height: 1.55;
}
.checkout-wallet-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.checkout-wallet-option {
  position: relative;
  cursor: pointer;
}
.checkout-wallet-option > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkout-wallet-option-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  border: 1px solid var(--storefront-line);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}
.checkout-wallet-option:hover .checkout-wallet-option-card {
  transform: translateY(-1px);
  border-color: #ab9ca4;
}
.checkout-wallet-option:has(input:checked) .checkout-wallet-option-card {
  border-color: var(--storefront-text);
  background: var(--storefront-accent-soft);
  box-shadow: 0 0 0 1px var(--storefront-text) inset;
}
.checkout-wallet-option-card img,
.checkout-wallet-option-mark {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  object-fit: contain;
  background: var(--storefront-accent-tint);
}
.checkout-wallet-option-mark {
  display: grid;
  place-items: center;
  font: 600 18px/1 var(--storefront-serif);
}
.checkout-wallet-option-card > span:last-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.checkout-wallet-option-card strong {
  font-size: 12px;
}
.checkout-wallet-option-card small {
  font-size: 9px;
  color: #857780;
}
.checkout-wallet-details {
  margin-top: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--storefront-line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 20px;
  align-items: start;
}
.checkout-wallet-details[hidden] {
  display: none;
}
.checkout-wallet-selected-head {
  grid-column: 1/-1;
  display: grid;
  gap: 4px;
}
.checkout-wallet-selected-head strong {
  font-size: 13px;
}
.checkout-wallet-selected-head small {
  font-size: 9px;
  color: #857780;
}
.checkout-wallet-instructions {
  grid-column: 1/-1;
  margin: 0;
  padding: 12px 14px;
  background: var(--storefront-accent-soft);
  border-left: 3px solid var(--storefront-text);
  font-size: 10px;
  line-height: 1.65;
  color: #6f636a;
  white-space: normal;
}
@media (max-width: 640px) {
  .checkout-wallet-options {
    grid-template-columns: 1fr;
  }
  .checkout-wallet-details {
    grid-template-columns: 1fr;
  }
  .checkout-wallet-details .checkout-payment-qr {
    width: min(220px, 100%);
  }
}

/* Checkout UI readability + keyboard focus hardening */
.checkout-payment-option:has(input:focus-visible) {
  outline: 3px solid
    color-mix(in srgb, var(--storefront-accent) 45%, transparent);
  outline-offset: 3px;
  border-color: var(--storefront-text);
}
.checkout-wallet-option:has(input:focus-visible) .checkout-wallet-option-card {
  outline: 3px solid
    color-mix(in srgb, var(--storefront-accent) 45%, transparent);
  outline-offset: 3px;
  border-color: var(--storefront-text);
}
.checkout-delivery-option:has(input:focus-visible) {
  outline: 3px solid
    color-mix(in srgb, var(--storefront-accent) 45%, transparent);
  outline-offset: 3px;
}
.checkout-payment-copy small,
.checkout-reference-field small,
.checkout-payment-pending p,
.checkout-place-order > small,
.checkout-free-delivery p,
.checkout-wallet-picker-head small,
.checkout-wallet-option-card small,
.checkout-wallet-selected-head small,
.checkout-wallet-instructions {
  font-size: 12px;
  line-height: 1.55;
}
.checkout-payment-saving,
.checkout-payment-detail-list span,
.checkout-copy,
.checkout-payment-qr span,
.checkout-payment-pending strong,
.checkout-prepaid-head > div:last-child span {
  font-size: 11px;
}
.checkout-summary-line strong,
.checkout-summary-line b,
.checkout-summary-empty,
.checkout-summary-totals > div:not([data-quote-adjustments]),
.checkout-summary-adjustment {
  font-size: 12px;
}
.checkout-summary-line small,
.checkout-quote-status {
  font-size: 11px;
  line-height: 1.55;
}
.checkout-payment-detail-list strong,
.checkout-wallet-option-card strong,
.checkout-wallet-picker-head strong,
.checkout-free-delivery-head strong {
  font-size: 13px;
}

/* Accessible, compact server-side shop page navigation. */
.commerce-shop-pagination{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:8px;margin:30px 0 10px}
.commerce-shop-pagination a,.commerce-shop-pagination span{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;padding:7px 12px;border:1px solid rgba(0,0,0,.13);border-radius:8px;text-decoration:none;color:inherit}
.commerce-shop-pagination a:hover,.commerce-shop-pagination a:focus-visible{border-color:currentColor}
.commerce-shop-pagination a[aria-current="page"]{background:var(--storefront-text,#171717);color:#fff}
