.shopfront-hero {
  color: #fff;
  background: radial-gradient(ellipse at 85% 75%, #28538c 0, transparent 55%), linear-gradient(125deg, #101b31, #1a3459);
}
.shopfront-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding-block: clamp(44px, 8vw, 100px);
}
.shopfront-hero h1 {font-size: clamp(36px, 7vw, 76px); line-height: 1.04; margin: 0; letter-spacing: -.055em;}
.shopfront-hero p {color: #d9e7f7; font-size: clamp(16px, 2vw, 19px); margin: 15px 0 0;}
.shopfront-cart-link {display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 8px 12px; border: 1px solid var(--night-blue, #7e9bc3); border-radius: 11px; color: #fff; background: #182b49; font-weight: 650; cursor: pointer;}
.shopfront-cart-count {display: grid; place-items: center; min-width: 26px; min-height: 26px; padding-inline: 4px; border-radius: 50%; color: var(--night-text, #183457); background: var(--night-tint-blue, #e6f1ff); font-size: 13px;}
.shopfront-page {max-width: 1200px; padding-block: clamp(30px, 5vw, 68px); color: var(--night-text, #192a40); min-height: 480px;}
.shopfront-page h2, .shopfront-dialog h2 {font-size: clamp(25px, 4vw, 40px); letter-spacing: -.04em; line-height: 1.18; margin: 0 0 14px;}
.shopfront-category-cards:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(148px, 100%), 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.shopfront-category-card {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid var(--night-line, #c4d6e8);
  border-radius: 11px;
  background: var(--night-panel, #f4f8fc);
  color: var(--night-blue, #1a3d66);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.shopfront-category-card::after {
  content: '';
  flex: none;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}
.shopfront-category-card:hover {background: var(--night-tint-blue, #e6f0fb); border-color: var(--night-line, #8daecf);}
.shopfront-category-card[aria-pressed=true] {background: #1b467a; border-color: #194578; color: #fff;}
.shopfront-filters {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; align-items: end; padding: 16px; border: 1px solid var(--night-line, #d8e5f1); border-radius: 15px; background: var(--night-panel, #f4f8fc);}
.shopfront-keywords {grid-column: 1/-1; display: grid; align-items: end; grid-template-columns: minmax(0,1fr) auto; gap: 10px;}
.shopfront-filters label, .shopfront-contact label {display: grid; gap: 6px; color: var(--night-secondary, #374d66); font-size: 14px; font-weight: 650; min-width: 0;}
.shopfront-filters :is(input,select), .shopfront-contact input {width: 100%; min-width: 0; min-height: 46px; padding: 9px 11px; border: 1px solid var(--night-line, #aebed1); border-radius: 9px; color: var(--night-text, #182a40); background: var(--night-panel, #fff); font: inherit; font-size: 16px; font-weight: 400;}
.shopfront-filters select:disabled {color: var(--night-muted, #586a7f); background: var(--night-well, #ecf1f7);}
.shopfront-button {display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 9px 15px; border: 1px solid #194578; border-radius: 9px; background: #1b467a; color: #fff; font-size: 14px; font-weight: 670; text-align: center; cursor: pointer;}
.shopfront-button:hover {background: #16355c;}
.shopfront-button:disabled {cursor: default; opacity: .55;}
.shopfront-button-subtle {background: var(--night-well, #f0f6fc); border-color: var(--night-line, #c4d6e8); color: var(--night-blue, #154779);}
.shopfront-button-subtle:hover {background: var(--night-tint-blue, #e6f0fb);}
.shopfront-link {display: inline-flex; align-items: center; min-height: 44px; padding: 5px 0; color: var(--night-blue, #215486); font-size: 14px; font-weight: 650; text-underline-offset: 4px; cursor: pointer;}
.shopfront-link:hover {text-decoration: underline;}
.shopfront-list-head {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 52px; color: var(--night-secondary, #425973); font-size: 14px;}
.shopfront-products {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px;}
.shopfront-card {min-width: 0; display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--night-line, #d8e5f1); border-radius: 17px; background: var(--night-panel, #fff);}
.shopfront-media {display: grid; position: relative; place-items: center; aspect-ratio: 1.5; overflow: hidden; background: radial-gradient(ellipse at 30% 40%, var(--night-panel, #f8fbff), var(--night-well, #eaf2fa));}
.shopfront-media img {width: 100%; height: 100%; object-fit: contain; object-position: center;}
.shopfront-placeholder {display: grid; place-content: center; width: 76px; height: 76px; border-radius: 24px; color: var(--night-blue, #4e729d); background: var(--night-tint-blue, #dfeaf7);}
.shopfront-placeholder svg {width: 42px; height: 42px;}
.shopfront-card-body {display: flex; flex-direction: column; gap: 8px; padding: 16px; min-width: 0;}
.shopfront-card h3 {font-size: 20px; line-height: 1.22; margin: 0; letter-spacing: -.02em; overflow-wrap: anywhere;}
.shopfront-product-meta {color: var(--night-muted, #506987); font-size: 13px; overflow-wrap: anywhere;}
.shopfront-product-price {font-size: 23px; color: var(--night-blue, #173b65); letter-spacing: -.035em;}
.shopfront-stock {display: inline-block; align-self: flex-start; padding: 4px 8px; border-radius: 6px; color: var(--night-green, #256046); background: var(--night-well, #eaf5ee); font-size: 12px; font-weight: 650;}
.shopfront-stock[data-state=on_order] {background: var(--night-well, #ecf2fa); color: var(--night-blue, #345b85);}
.shopfront-stock[data-state=unavailable] {background: var(--night-well, #f2f3f5); color: var(--night-secondary, #545b64);}
.shopfront-card-actions {display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 5px 12px; margin-top: auto; padding-top: 4px;}
.shopfront-empty {grid-column: 1/-1; padding: 28px; border: 1px dashed var(--night-line, #c2d3e5); border-radius: 15px; background: var(--night-panel, #f7faff);}
.shopfront-empty h3 {margin: 0 0 6px; font-size: 19px;}
.shopfront-empty p {margin: 0; color: var(--night-muted, #506987);}
.shopfront-more {margin: 18px 0 0; text-align: center;}
.shopfront-feedback, .shopfront-result {padding: 12px 14px; margin: 0 0 14px; border-radius: 10px; border: 1px solid var(--night-line, #c6ddf4); color: var(--night-blue, #21476e); background: var(--night-well, #edf5ff); overflow-wrap: anywhere;}
.shopfront-feedback[data-tone=error], .shopfront-result[data-tone=error] {color: var(--night-red, #7a3027); background: var(--night-well, #fff4f1); border-color: var(--night-line, #efccc5);}
.shopfront-feedback button {margin-left: 10px;}
.shopfront-result p {margin: 0 0 5px;}
.shopfront-cart {margin-top: 36px; padding: clamp(15px, 3vw, 26px); border: 1px solid var(--night-line, #d3e2f0); border-radius: 16px; background: var(--night-panel, #f5f9fd);}
.shopfront-cart-head {display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px;}
.shopfront-cart-head h2 {margin-bottom: 0;}
.shopfront-cart-dialog {
  --cart-gutter: clamp(16px, 4vw, 24px);
  --cart-pad-left: max(var(--cart-gutter), env(safe-area-inset-left));
  --cart-pad-right: max(var(--cart-gutter), env(safe-area-inset-right));
  position: fixed;
  inset: 0 0 0 auto;
  box-sizing: border-box;
  width: min(100%, 540px);
  max-width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0 var(--cart-pad-right) max(var(--cart-gutter), env(safe-area-inset-bottom)) var(--cart-pad-left);
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scroll-padding-top: 90px;
  border: 0;
  border-left: 1px solid var(--night-line, #c6d6e6);
  border-radius: 18px 0 0 18px;
  color: var(--night-text, #192a40);
  box-shadow: -12px 0 44px #0a172938;
}
.shopfront-cart-dialog::backdrop {background: #0a1729a8;}
html:has(.shopfront-cart-dialog[open]) {overflow: hidden;}
.shopfront-cart-dialog .shopfront-cart-head {
  position: sticky;
  top: 0;
  z-index: 1;
  margin-inline: calc(-1 * var(--cart-pad-left)) calc(-1 * var(--cart-pad-right));
  padding: max(12px, env(safe-area-inset-top)) var(--cart-pad-right) 12px var(--cart-pad-left);
  border-bottom: 1px solid var(--night-line, #d3e2f0);
  background: var(--night-panel, #f5f9fd);
}
.shopfront-cart-dialog .shopfront-cart-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.15;
  letter-spacing: -.035em;
}
.shopfront-cart-drawer-close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--night-line, #c4d6e8);
  border-radius: 50%;
  background: var(--night-panel, #fff);
  color: var(--night-blue, #204c7a);
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.shopfront-cart-drawer-close:hover {background: var(--night-tint-blue, #e6f0fb);}
.shopfront-cart-dialog .shopfront-contact {grid-template-columns: repeat(2, minmax(0, 1fr));}
.shopfront-cart-dialog .shopfront-contact > label:first-child {grid-column: 1/-1;}
@media (prefers-reduced-motion: no-preference) {
  .shopfront-cart-dialog[open] {animation: shopfront-cart-enter 220ms cubic-bezier(.2,.75,.3,1) both;}
  .shopfront-cart-dialog[open]::backdrop {animation: shopfront-backdrop-enter 180ms ease-out both;}
}
@keyframes shopfront-cart-enter {from {transform: translateX(100%);} to {transform: translateX(0);}}
@keyframes shopfront-backdrop-enter {from {opacity: 0;} to {opacity: 1;}}
.shopfront-cart-items {display: grid; gap: 8px;}
.shopfront-cart-row {display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid var(--night-line, #dce7f2); border-radius: 10px; background: var(--night-panel, #fff);}
.shopfront-cart-row h3 {font-size: 16px; margin: 0; overflow-wrap: anywhere;}
.shopfront-cart-row p {font-size: 13px; color: var(--night-muted, #506987);}
.shopfront-quantity {display: flex; align-items: center; gap: 6px;}
.shopfront-quantity button {display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 8px; border: 1px solid var(--night-line, #bdd1e7); background: var(--night-well, #edf5ff); color: var(--night-blue, #1d4778); font-weight: 650; cursor: pointer;}
.shopfront-quantity button:disabled {opacity: .45; cursor: default;}
.shopfront-cart-summary {display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; color: var(--night-blue, #25476e); font-weight: 550;}
.shopfront-cart-summary strong {white-space: nowrap;}
.shopfront-shipping-cost {display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; color: var(--night-secondary, #425973); font-size: 14px;}
.shopfront-checkout {padding-top: 12px; border-top: 1px solid var(--night-line, #cddded);}
.shopfront-checkout h3 {font-size: 20px; margin-bottom: 5px;}
.shopfront-checkout > p {color: var(--night-secondary, #425973); margin-bottom: 13px;}
.shopfront-contact {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px;}
.shopfront-checkout-actions {display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 12px;}
.shopfront-checkout-actions a {color: var(--night-blue, #215486); text-decoration: underline; text-underline-offset: 3px;}
.shopfront-order-modes, .shopfront-shipping {border: 0; margin: 0 0 13px; padding: 0; min-width: 0;}
.shopfront-order-modes legend, .shopfront-shipping legend {padding: 0; margin-bottom: 7px; color: var(--night-secondary, #374d66); font-weight: 650;}
.shopfront-order-modes label {display: inline-flex; vertical-align: top; min-height: 46px; align-items: flex-start; gap: 9px; margin: 0 5px 5px 0; padding: 8px 11px; border: 1px solid var(--night-line, #c6d6e6); border-radius: 9px; background: var(--night-panel, #fff); cursor: pointer;}
.shopfront-order-modes label:has(input:checked) {background: var(--night-tint-blue, #ebf4fe); border-color: var(--night-blue, #426d9c);}
.shopfront-order-modes input {margin-top: 4px; width: 17px; height: 17px; accent-color: var(--night-blue, #1b467a);}
.shopfront-order-modes small {display: block; color: var(--night-secondary, #425973);}
.shopfront-shipping {margin-top: 12px;}
.shopfront-disclosure h3 {font-size: 15px; margin: 0;}
.shopfront-disclosure p {font-size: 14px; color: var(--night-secondary, #425973);}
.shopfront-checkout-method {color: var(--night-secondary, #425973); font-size: 14px; margin-top: 8px;}
.shopfront-supplier-notice {padding: 11px 13px; border: 1px solid var(--night-line, #cfdeec); border-radius: 8px; background: var(--night-well, #edf4fb); color: var(--night-blue, #25476e);}
.shopfront-dialog {width: min(94vw,760px); max-height: 90vh; margin: auto; padding: clamp(16px,4vw,27px); border: 1px solid var(--night-line, #c6d6e6); border-radius: 16px; color: var(--night-text, #192a40); background: var(--night-panel, white);}
.shopfront-dialog::backdrop {background: #0a1729b3;}
.shopfront-dialog > form {display: flex; justify-content: flex-end; margin: 0 0 9px;}
.shopfront-dialog-close {width: 44px; height: 44px; border-radius: 50%; background: var(--night-well, #eef5fd); color: var(--night-blue, #204c7a); font-size: 24px; cursor: pointer;}
.shopfront-detail {display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 20px;}
.shopfront-detail .shopfront-media {border-radius: 13px;}
.shopfront-detail-copy {display: grid; gap: 8px; align-content: start; min-width: 0;}
.shopfront-detail-copy h2 {margin: 0; overflow-wrap: anywhere;}
.shopfront-detail-copy p {white-space: pre-wrap; overflow-wrap: anywhere;}
.shopfront-detail-copy .shopfront-button {justify-self: start;}
.shopfront-page :focus-visible, .shopfront-dialog :focus-visible, .shopfront-cart-dialog :focus-visible, .shopfront-cart-link:focus-visible {outline: 3px solid var(--night-focus, #1984e5); outline-offset: 3px;}
@media (max-width: 840px) {
  .shopfront-products {grid-template-columns: repeat(2,minmax(0,1fr));}
  .shopfront-filters {grid-template-columns: repeat(2,minmax(0,1fr));}
  .shopfront-filters > label:nth-child(3) {grid-column: 1/-1;}
}
@media (max-width: 540px) {
  .shopfront-hero-inner {grid-template-columns: minmax(0,1fr);}
  .shopfront-cart-link {justify-self: start;}
  .shopfront-category-cards:not([hidden]) {grid-template-columns: repeat(2, minmax(0, 1fr));}
  .shopfront-products, .shopfront-contact, .shopfront-detail {grid-template-columns: minmax(0,1fr);}
  .shopfront-cart-dialog {width: 100%; border-left: 0; border-radius: 0;}
  .shopfront-cart-dialog .shopfront-contact {grid-template-columns: minmax(0, 1fr);}
  .shopfront-cart-row {grid-template-columns: minmax(0,1fr) auto;}
  .shopfront-cart-row .shopfront-quantity {grid-column: 1/-1;}
}
@media (max-width: 360px) {
  .shopfront-filters {grid-template-columns: minmax(0,1fr);}
  .shopfront-keywords {grid-template-columns: minmax(0,1fr);}
  .shopfront-keywords .shopfront-button {justify-self: start;}
}
