@font-face {
  font-family: Inter;
  src: url("/fonts/inter-latin-400-700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #10212f;
  --muted: #4b6272;
  --line: #dce4ea;
  --cream: #f4f7fa;
  --warm: #eaf0f4;
  --gold: #0078d4;
  --gold-deep: #003b7a;
  --blue: #0078d4;
  --navy: #003b7a;
  --green: #23633e;
  --red: #a32633;
  --surface: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font:
    400 15px/22px Inter,
    ui-sans-serif,
    system-ui,
    sans-serif;
  font-synthesis: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 32px;
  line-height: 38px;
  margin-bottom: 16px;
}
h2 {
  font-size: 24px;
  line-height: 30px;
  margin-bottom: 20px;
}
h3 {
  font-size: 18px;
  line-height: 24px;
}
p {
  margin-bottom: 16px;
}
a {
  color: var(--navy);
  text-decoration: none;
}
p a:not(.button),
.notice a,
.active-filters a,
.settings-form > a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
svg {
  flex-shrink: 0;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
h1,
h2,
h3,
p,
a,
td,
dd {
  overflow-wrap: break-word;
}
small {
  font-size: 12px;
  line-height: 16px;
}
dl,
dd {
  margin: 0;
}
label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  margin-top: 8px;
}
:where(
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  select,
  textarea
) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #aabcc9;
  border-radius: 6px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 20px;
}
input[type="color"] {
  max-width: 140px;
  padding: 5px;
}
input[type="file"] {
  padding: 8px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #566b7a;
  opacity: 1;
}
input:read-only {
  background: #f4f7fa;
}
textarea {
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 19px;
  height: 19px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border: 2px solid var(--red);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
legend {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 12px;
}
summary {
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  min-height: 44px;
  display: list-item;
  align-content: center;
}
details > summary {
  margin-bottom: 0;
}
details[open] > summary {
  margin-bottom: 20px;
}
[hidden] {
  display: none !important;
}
main {
  min-height: 45vh;
}
main:focus {
  outline: none;
}
.container {
  width: min(1200px, calc(100% - 64px));
  margin-inline: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  overflow: hidden;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
}
.skip-link:focus {
  top: 12px;
}
.button,
.small-button,
.card-options {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  padding: 11px 20px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  white-space: normal;
}
.button:hover,
.small-button:hover,
.card-options:hover {
  background: #0069ba;
  border-color: #0069ba;
  text-decoration: none;
}
.button-outline {
  background: #fff;
  border-color: #aabcc9;
  color: var(--navy);
}
.button-outline:hover {
  background: #edf4fa;
  border-color: var(--navy);
}
.full {
  width: 100%;
}
.small-button {
  padding: 10px 14px;
}
.text-button,
.remove-button {
  border: 0;
  background: none;
  color: var(--navy);
  min-height: 44px;
  min-width: 44px;
  font-size: 14px;
  padding: 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.remove-button {
  font-size: 26px;
  text-decoration: none;
}
.muted,
.field-help {
  color: var(--muted);
}
.field-help {
  display: block;
  font-size: 12px;
  line-height: 18px;
  margin: -8px 0 20px;
}
.field-error {
  display: block;
  font-size: 13px;
  line-height: 18px;
  color: var(--red);
  margin: -8px 0 18px;
}
.eyebrow {
  display: block;
  color: var(--navy);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.notice,
.form-error-summary {
  background: #edf4fa;
  border-left: 3px solid var(--blue);
  padding: 16px 20px;
  margin: 0 0 24px;
  font-size: 14px;
  line-height: 22px;
}
.form-error-summary {
  border-color: var(--red);
  background: #fff4f3;
}
.form-error-summary h2 {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 8px;
}
.form-error-summary p:last-child {
  margin-bottom: 0;
}
.form-error-summary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #8c1d29;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 400;
}
.check-label input {
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
.form-grid > div,
.form-grid > label {
  min-width: 0;
}
.form-grid .field-help {
  grid-column: auto;
}
/* Public shell */
.announcement {
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  line-height: 18px;
}
.announcement .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  gap: 16px;
}
.announcement a {
  color: #fff;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
}
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1200px, calc(100% - 64px));
  margin: auto;
  min-height: 106px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.wordmark {
  display: flex;
  flex-direction: column;
  min-height: 44px;
  justify-content: center;
  line-height: 1.12;
  color: var(--navy);
  flex-shrink: 0;
}
.wordmark:hover {
  text-decoration: none;
}
.brand-name {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -1px;
}
.brand-caption {
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.15px;
  color: var(--muted);
  font-weight: 500;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-lockup > span {
  display: flex;
  flex-direction: column;
}
.brand-symbol {
  width: 62px;
  height: 50px;
  object-fit: contain;
}
.brand-logo {
  width: auto;
  max-width: 215px;
  max-height: 64px;
  object-fit: contain;
}
.header-search {
  display: flex;
  flex: 1;
  max-width: 540px;
  min-width: 0;
  border: 1px solid #aabcc9;
  border-radius: 6px;
  height: 48px;
}
.header-search input {
  border: 0;
  background: none;
  min-height: 46px;
  margin: 0;
  border-radius: 6px 0 0 6px;
  padding: 12px 16px;
}
.header-search:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.header-search input:focus-visible {
  outline: 0;
}
.header-search button {
  width: 50px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: var(--navy);
  color: #fff;
  border-radius: 0 5px 5px 0;
}
.header-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-left: auto;
}
.header-actions a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  min-height: 44px;
  white-space: nowrap;
}
.cart-link {
  font-weight: 600;
}
.icon-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  color: var(--navy);
}
.mobile-only {
  display: none;
}
.store-nav {
  border-top: 1px solid var(--line);
}
.store-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.store-nav a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
}
.store-nav a[aria-current="page"] {
  border-color: var(--blue);
  color: var(--blue);
}
.mobile-menu {
  display: none;
}
.footer {
  background: #f4f7fa;
  border-top: 1px solid var(--line);
  padding-top: 48px;
  margin-top: 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer h2 {
  font-size: 13px;
  line-height: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer a:not(.wordmark) {
  display: flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--muted);
}
.footer p {
  font-size: 14px;
  color: var(--muted);
  margin: 16px 0 0;
  max-width: 260px;
}
.footer-bottom {
  border-top: 1px solid var(--line);
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.footer .contact-actions {
  display: block;
}
/* Home and catalogue */
.store-hero {
  background: #edf3f8;
  border-bottom: 1px solid var(--line);
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-block: 48px;
}
.hero-copy h1 {
  font-size: 48px;
  line-height: 54px;
  max-width: 510px;
  margin: 18px 0 20px;
}
.hero-copy p {
  font-size: 17px;
  line-height: 26px;
  max-width: 430px;
  margin-bottom: 28px;
}
.hero-secondary {
  display: block;
  min-height: 44px;
  font-size: 14px;
  width: fit-content;
  align-content: center;
  margin-top: 14px;
}
.hero-media {
  position: relative;
  background: #fff;
  min-width: 0;
  display: grid;
  place-items: center;
  border: 1px solid #dce4ea;
}
.hero-media img {
  width: 100%;
  height: 330px;
  object-fit: contain;
  padding: 35px;
}
.hero-media > span {
  width: 100%;
  text-align: center;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
}
.section {
  padding: 48px 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.department-grid > a {
  display: grid;
  grid-template-columns: 28px 1fr 20px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  gap: 16px;
  padding: 16px;
  background: #fff;
}
.department-grid > a:hover {
  border-color: var(--navy);
  text-decoration: none;
}
.department-photo {
  grid-column: 1/-1;
  background: #f6f8fa;
  display: grid;
  place-items: center;
  min-height: 155px;
  margin-bottom: 8px;
}
.department-photo img {
  width: 100%;
  height: 155px;
  object-fit: contain;
  padding: 16px;
}
.department-number {
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.department-grid h3 {
  font-size: 17px;
  line-height: 24px;
  margin-bottom: 4px;
}
.department-grid div > span {
  font-size: 12px;
  color: var(--muted);
}
.department-arrow {
  color: var(--navy);
}
.featured-section {
  border-top: 1px solid var(--line);
}
.store-help {
  padding: 36px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 32px;
  justify-content: space-between;
  align-items: center;
}
.store-help h2 {
  margin-bottom: 8px;
}
.store-help p {
  margin: 0;
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 20px;
}
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}
.product-photo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border-bottom: 1px solid #eaf0f4;
}
.product-photo img {
  width: 100%;
  height: 100%;
  max-height: 250px;
  object-fit: contain;
  padding: 14px;
}
.product-info {
  padding: 16px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-height: 128px;
}
.product-category {
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.product-name {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  line-height: 21px;
}
.product-info strong {
  font-size: 17px;
  line-height: 24px;
  color: var(--navy);
  margin-top: auto;
  font-variant-numeric: tabular-nums;
}
.product-info del {
  font-size: 12px;
  color: var(--muted);
}
.card-add {
  margin: 0;
}
.card-add button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid #b9cad8;
  border-radius: 5px;
  background: #f4f8fc;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
}
.card-add button:hover {
  background: #e8f2fa;
}
.card-add button svg {
  width: 18px;
  height: 18px;
}
.card-add button:not(:disabled)::after {
  content: "Add to cart";
}
.card-options {
  background: #f4f8fc;
  color: var(--navy);
  border-color: #b9cad8;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
  margin-bottom: 22px;
}
.breadcrumbs a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.catalog-page,
.product-page {
  padding-top: 28px;
  padding-bottom: 40px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 32px;
}
.page-title h1 {
  margin-bottom: 0;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.page-title .eyebrow {
  margin-bottom: 8px;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 32px;
}
.filters {
  align-self: start;
  border-top: 1px solid var(--line);
}
.filters h2 {
  font-size: 15px;
  line-height: 22px;
  margin: 20px 0 12px;
}
.category-nav {
  display: flex;
  flex-direction: column;
}
.category-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--muted);
}
.category-nav a span {
  font-size: 12px;
}
.category-nav a[aria-current="page"] {
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--navy);
}
.filter-fields {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.filter-fields label {
  margin-bottom: 20px;
}
.filter-toggle {
  display: none;
}
.filter-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.catalog-results .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.active-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  font-size: 13px;
}
.active-filters p {
  margin: 10px 0;
}
.active-filters a {
  flex-shrink: 0;
  min-height: 44px;
  align-content: center;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 32px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
}
.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
}
.pagination > span {
  font-size: 13px;
  color: var(--muted);
}
.empty-state {
  padding: 52px 24px;
  border: 1px solid var(--line);
  text-align: center;
  grid-column: 1/-1;
}
.empty-state h2 {
  font-size: 24px;
  margin-bottom: 10px;
}
.empty-state p {
  color: var(--muted);
}
/* Product and buying */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.product-gallery {
  min-width: 0;
}
.gallery-main {
  width: 100%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  border-radius: 6px;
  padding: 24px;
  aspect-ratio: 1;
}
.main-photo {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
}
.gallery-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.thumbs button {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  width: 76px;
  height: 76px;
  padding: 6px;
}
.thumbs button[aria-pressed="true"] {
  border: 2px solid var(--navy);
}
.thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.product-detail {
  padding-top: 12px;
}
.product-detail h1 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 20px;
}
.detail-price {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.detail-price strong {
  font-size: 27px;
  line-height: 34px;
  font-variant-numeric: tabular-nums;
  color: var(--navy);
}
.detail-price del {
  font-size: 14px;
  color: var(--muted);
}
.stock {
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  display: block;
  margin-bottom: 20px;
}
.in-stock {
  color: var(--green);
}
.out-stock {
  color: var(--red);
}
.product-description {
  white-space: pre-line;
  line-height: 25px;
  color: var(--muted);
}
.product-spec {
  margin: 24px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.product-spec > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.product-spec dt {
  color: var(--muted);
}
.product-spec dd {
  font-weight: 500;
}
.buy-form {
  margin-top: 24px;
}
.buy-actions {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  align-items: end;
}
.buy-actions label {
  margin: 0;
}
.buy-actions .button {
  min-height: 46px;
}
.product-links {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.product-links a {
  min-height: 44px;
  align-content: center;
  font-size: 14px;
}
.photo-dialog {
  max-width: min(900px, calc(100vw - 48px));
  width: 900px;
  max-height: calc(100dvh - 48px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.photo-dialog::backdrop {
  background: #10212f99;
}
.photo-dialog > button {
  display: flex;
  margin-left: auto;
  margin-bottom: 16px;
}
.photo-dialog > img {
  max-height: calc(100dvh - 175px);
  width: 100%;
  object-fit: contain;
}
.narrow-page,
.checkout-page {
  max-width: 1000px;
  padding-block: 28px 48px;
}
.checkout-steps {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0 0 24px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.checkout-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
}
.checkout-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #b5c6d4;
  font-size: 12px;
}
.checkout-steps li[aria-current] {
  color: var(--navy);
  font-weight: 600;
}
.checkout-steps li[aria-current] > span {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.checkout-steps a {
  min-height: 44px;
  align-content: center;
}
.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}
.cart-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 44px;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.cart-row > img {
  width: 90px;
  height: 90px;
  object-fit: contain;
}
.cart-row > div {
  min-width: 0;
}
.cart-row strong {
  display: block;
  font-size: 16px;
  line-height: 24px;
  margin: 8px 0;
  color: var(--navy);
}
.cart-row form {
  display: flex;
  align-items: end;
  gap: 12px;
}
.cart-row form > label {
  margin: 0;
  width: 80px;
  flex-shrink: 0;
}
.cart-row input[type="number"] {
  width: 80px;
}
.cart-row > form {
  align-self: start;
}
.cart-row small {
  display: block;
  margin-top: 4px;
}
.order-summary {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}
.order-summary h2 {
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 24px;
}
.order-summary > div:not(.summary-item) {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
}
.order-summary p {
  font-size: 13px;
  color: var(--muted);
}
.order-summary .button {
  margin: 8px 0 16px;
}
.subtle-link {
  display: block;
  text-align: center;
  min-height: 44px;
  align-content: center;
  font-size: 14px;
}
.summary-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.summary-item:first-of-type {
  padding-top: 0;
}
.summary-item > img {
  width: 54px;
  height: 62px;
  object-fit: contain;
  background: #fff;
}
.summary-item > span {
  flex: 1;
  min-width: 0;
}
.summary-item strong {
  white-space: nowrap;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.summary-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.total-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 18px;
  font-weight: 600;
}
.checkout-form .form-card {
  padding: 24px 0;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.checkout-form .form-card:first-of-type {
  padding-top: 0;
}
.checkout-form .form-card h2 {
  font-size: 20px;
  line-height: 26px;
}
.choice-list {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bdcdd9;
  border-radius: 6px;
  padding: 16px;
  margin: 0;
  font-weight: 400;
}
.choice:has(input:checked) {
  border: 2px solid var(--navy);
  padding: 15px;
  background: #f4f8fc;
}
.choice input {
  margin: 0;
}
.choice > span {
  flex: 1;
}
.choice strong {
  font-size: 14px;
  line-height: 20px;
  display: block;
}
.choice small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.choice b {
  font-size: 13px;
  font-weight: 500;
}
.checkout-form details {
  margin: 12px 0;
}
.payment-hint {
  border-left: 3px solid var(--blue);
  background: #edf4fa;
  padding: 16px;
  margin-bottom: 20px;
}
.payment-hint p {
  margin: 0;
  font-size: 14px;
}
.checkout-form [data-payment-ready="0"] {
  opacity: 0.6;
}
.contact-page-actions a {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 44px;
  padding: 12px 16px;
}
/* Information, access and orders */
.prose-page {
  max-width: 760px;
  padding-block: 48px 64px;
  min-height: 380px;
}
.prose-page p {
  white-space: pre-line;
  font-size: 16px;
  line-height: 27px;
  max-width: 680px;
}
.auth-page {
  width: min(500px, calc(100% - 32px));
  margin: 48px auto 72px;
}
.form-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin-bottom: 24px;
}
.auth-page h1 {
  font-size: 30px;
  line-height: 38px;
}
.auth-page a[href="/admin/access"] {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.auth-page .form-card > p:last-child {
  margin: 12px 0 0;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  margin-bottom: 8px;
}
.order-page {
  max-width: 1000px;
  padding-block: 40px;
}
.order-state {
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.order-state p {
  max-width: 660px;
}
.state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #edf4fa;
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 20px;
}
.order-state.success .state-icon {
  background: #e7f3eb;
  color: var(--green);
}
.status-text {
  font-size: 14px;
  line-height: 20px;
  color: var(--muted);
  font-weight: 500;
}
.order-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.order-details .form-card {
  margin: 0;
}
.order-details h2 {
  font-size: 20px;
  line-height: 26px;
}
.order-timeline,
.order-help {
  padding: 24px 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.order-timeline h2,
.order-help h2 {
  font-size: 20px;
  line-height: 26px;
}
.order-timeline ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 20px;
  border-left: 1px solid #b5c6d4;
}
.order-timeline li {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 4px 0 20px;
}
.order-timeline li:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--blue);
  left: -24px;
  top: 12px;
  border-radius: 50%;
}
.order-timeline time {
  font-size: 12px;
  color: var(--muted);
}
.order-timeline > p {
  font-size: 14px;
  margin: 10px 0 0;
}
.center-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.order-help p {
  font-size: 14px;
  max-width: 680px;
}
.loading-bar {
  width: 100%;
  height: 4px;
  background: #dce4ea;
  margin: 20px 0;
}
.loading-bar:after {
  content: "";
  display: block;
  width: 35%;
  height: 100%;
  background: var(--blue);
  animation: progress 1.4s infinite alternate;
}
@keyframes progress {
  to {
    transform: translateX(180%);
  }
}
/* Admin shell and data */
.admin-body {
  background: #f4f7fa;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  background: var(--navy);
  color: #fff;
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
}
.admin-brand {
  display: block;
  color: #fff;
  font-size: 25px;
  line-height: 30px;
  font-weight: 700;
  padding: 0 12px 24px;
  border-bottom: 1px solid #ffffff30;
  margin-bottom: 24px;
}
.admin-brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #d9eafa;
  margin-top: 5px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.admin-sidebar nav a,
.admin-sidebar-foot a,
.admin-sidebar-foot button {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  color: #e4f0fc;
  font-size: 14px;
  border-radius: 4px;
}
.admin-sidebar nav a.selected {
  background: #ffffff18;
  color: #fff;
  border-left: 3px solid #a8d5ff;
  padding-left: 9px;
  font-weight: 600;
}
.admin-sidebar nav a:hover,
.admin-sidebar-foot a:hover {
  background: #ffffff12;
  text-decoration: none;
}
.admin-sidebar-foot {
  margin-top: auto;
  border-top: 1px solid #ffffff30;
  padding-top: 16px;
}
.admin-sidebar-foot button {
  background: none;
  border: 0;
  width: 100%;
  font-weight: 400;
}
.admin-shell {
  margin-left: 224px;
}
.admin-top {
  height: 68px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.admin-top > span {
  font-weight: 600;
}
.admin-top > a {
  min-height: 44px;
  align-content: center;
}
.admin-main {
  padding: 28px 32px 48px;
  margin-inline: auto;
}
.width-dashboard {
  max-width: 1480px;
}
.width-data {
  max-width: 1600px;
}
.width-standard {
  max-width: 1180px;
}
.admin-subnav,
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 28px;
}
.admin-subnav a,
.tabs a {
  display: flex;
  align-items: center;
  min-height: 46px;
  min-width: 44px;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  color: var(--muted);
}
.admin-subnav a[aria-current],
.tabs a.active {
  border-color: var(--blue);
  color: var(--navy);
  font-weight: 600;
}
.admin-subnav:has(a:only-child) {
  display: none;
}
.admin-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.admin-heading h1 {
  margin: 0;
}
.admin-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.admin-heading-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.admin-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  background: #fff;
  margin-bottom: 24px;
  min-width: 0;
}
.admin-card h2 {
  font-size: 18px;
  line-height: 24px;
  margin-bottom: 20px;
}
.admin-card p {
  font-size: 14px;
  line-height: 22px;
}
.admin-card > p:last-child {
  margin-bottom: 0;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.card-heading h2 {
  margin: 0;
}
.card-heading > a {
  font-size: 14px;
  min-height: 44px;
  align-content: center;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  margin-bottom: 28px;
}
.metric-grid > div {
  padding: 20px 24px;
  min-width: 0;
}
.metric-grid > div + div {
  border-left: 1px solid var(--line);
}
.metric-grid small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}
.metric-grid strong {
  display: block;
  font-size: 27px;
  line-height: 36px;
  margin-top: 8px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  border-top: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 14px;
  line-height: 20px;
}
th {
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  color: var(--muted);
  background: #f8fafc;
}
th,
td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
td {
  min-height: 48px;
}
td strong {
  font-weight: 600;
}
.table-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}
.table-product img {
  width: 44px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.table-product strong {
  font-size: 14px;
  line-height: 20px;
}
.table-product small {
  display: block;
  color: var(--muted);
}
.admin-search {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.admin-search label {
  margin: 0;
  min-width: 130px;
}
.admin-search label:first-child {
  flex: 1;
  min-width: 180px;
  max-width: 400px;
}
.admin-search input {
  margin-top: 6px;
}
.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline-form input {
  width: 150px;
}
.inline-form input[type="number"] {
  width: 90px;
  min-height: 44px;
}
.inline-form .small-button {
  min-height: 44px;
}
.price-edit {
  min-width: 190px;
}
.admin-two {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.list-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.list-row-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.list-row-actions a {
  min-height: 44px;
  align-content: center;
}
.connection-state,
.settings-state {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin-bottom: 24px;
  font-size: 14px;
}
.connection-state strong,
.settings-state strong {
  font-size: 18px;
}
.setup-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.setup-list li {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.setup-list a {
  min-height: 44px;
  align-content: center;
}
.setup-list small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.setup-list > li:first-child {
  border-top: 0;
}
.settings-form {
  max-width: 850px;
}
.settings-form > button {
  margin-top: 12px;
}
.settings-preview {
  width: 180px;
  max-height: 100px;
  object-fit: contain;
  border: 1px solid var(--line);
  padding: 12px;
  background: #f8fafc;
  margin: 12px 0 20px;
}
.settings-preview.wide {
  width: 100%;
  max-height: 200px;
}
.settings-form details {
  margin: 20px 0;
}
.settings-form .form-grid > label {
  align-self: start;
}
.settings-form pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Product editor */
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 0 24px;
  align-items: start;
  max-width: 1180px;
}
.editor-main,
.editor-side {
  min-width: 0;
}
.editor-side {
  position: sticky;
  top: 24px;
}
.editor-grid .admin-card {
  padding: 24px;
}
.editor-grid .advanced summary {
  font-size: 15px;
}
.editor-grid details .form-grid {
  margin-top: 16px;
}
.editor-save {
  grid-column: 1/-1;
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #c2d1dc;
  border-radius: 6px;
}
.editor-save > div {
  min-width: 0;
}
.editor-save strong {
  display: block;
  font-size: 14px;
}
.editor-save-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.upload-submit-status {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted);
}
.photo-upload {
  font-size: 14px;
}
.photo-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}
.photo-list > [data-upload-item] {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  position: relative;
}
.photo-list img {
  width: 100%;
  height: 120px;
  object-fit: contain;
  margin-bottom: 8px;
}
.photo-list [data-main-photo="true"]::before {
  content: "Main photo";
  position: absolute;
  top: 8px;
  left: 8px;
  color: var(--muted);
  font-size: 12px;
  background: #fff;
  padding: 2px 5px;
}
.photo-remove,
.photo-move {
  min-height: 44px;
  border: 1px solid #c2d1dc;
  border-radius: 5px;
  background: #fff;
  padding: 8px 10px;
  font-size: 14px;
  color: var(--navy);
}
.photo-remove {
  width: 100%;
  border: 0;
  color: var(--red);
}
.photo-move {
  flex: 1;
}
.upload-feedback {
  font-size: 13px;
  line-height: 20px;
  color: var(--muted);
}
.variant-row {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.variant-row > .form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.variant-row small {
  display: block;
  color: var(--muted);
  margin-bottom: 14px;
}
.variant-row .text-button {
  padding-left: 0;
}
.collection-picker {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.collection-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
/* Provider checkout keeps its own interaction boundary. */
.payment-body {
  background: #fff;
}
.payment-shell {
  width: min(1120px, 100%);
  margin: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.payment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.payment-header h1 {
  font-size: 18px;
  line-height: 24px;
  margin: 0;
}
.payment-header > a:last-child {
  font-size: 14px;
  min-height: 44px;
  align-content: center;
}
.payment-summary {
  padding: 12px 24px;
  border-bottom: 1px solid var(--line);
}
.payment-summary > summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.summary-hint {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.payment-summary-content {
  padding-top: 16px;
}
.payment-window {
  flex: 1;
  min-height: 600px;
}
.hubtel-checkout {
  width: 100%;
  height: calc(100dvh - 265px);
  min-height: 600px;
  border: 0;
  display: block;
  background: #fff;
}
.payment-status {
  border-top: 1px solid var(--line);
  padding: 16px 24px;
  font-size: 14px;
}
.payment-status p {
  margin: 0 0 8px;
}
.payment-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.payment-help a {
  min-height: 44px;
  align-content: center;
}
.payment-return {
  max-width: 600px;
  margin: 10vh auto;
  padding: 24px;
}
.payment-return h1 {
  font-size: 24px;
  line-height: 30px;
}
/* Compact desktop and tablet */
@media (min-width: 1600px) {
  .admin-main {
    padding: 36px;
  }
}
@media (max-width: 1199px) {
  .header-inner {
    gap: 24px;
  }
  .header-actions {
    gap: 16px;
  }
  .store-nav a {
    font-size: 12px;
  }
  .hero-content {
    gap: 40px;
  }
  .hero-copy h1 {
    font-size: 42px;
    line-height: 48px;
  }
  .hero-media img {
    height: 300px;
  }
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 24px;
  }
  .product-grid {
    gap: 16px;
  }
  .product-info {
    min-height: 138px;
  }
  .product-layout {
    gap: 36px;
  }
  .admin-main {
    padding: 24px;
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 0 20px;
  }
  .editor-grid .admin-card {
    padding: 20px;
  }
  .metric-grid > div {
    padding: 18px 16px;
  }
  .metric-grid strong {
    font-size: 24px;
  }
  .table-product {
    min-width: 160px;
  }
  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
  }
}
@media (max-width: 1023px) {
  .container,
  .header-inner {
    width: calc(100% - 40px);
  }
  .mobile-only {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
  }
  .desktop-nav {
    display: none;
  }
  .header-inner {
    min-height: 92px;
    gap: 20px;
  }
  .header-actions {
    gap: 12px;
  }
  .header-actions .order-link {
    display: none;
  }
  .mobile-menu.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line);
    padding: 12px 20px;
    background: #f4f7fa;
    gap: 0 20px;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: 14px;
  }
  .hero-content {
    gap: 28px;
    padding-block: 36px;
  }
  .hero-copy h1 {
    font-size: 36px;
    line-height: 42px;
  }
  .hero-copy p {
    font-size: 16px;
    line-height: 24px;
  }
  .hero-media img {
    height: 260px;
    padding: 24px;
  }
  .department-grid {
    gap: 16px;
  }
  .department-grid > a {
    grid-template-columns: 1fr 20px;
    gap: 10px;
    padding: 12px;
  }
  .department-number {
    display: none;
  }
  .department-grid h3 {
    font-size: 16px;
  }
  .department-photo {
    height: 135px;
    min-height: 0;
  }
  .department-photo img {
    height: 135px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    gap: 28px;
    grid-template-columns: 1.3fr 1fr 1fr;
  }
  .footer-grid > div:last-child {
    grid-column: 1/-1;
    display: flex;
    gap: 24px;
    align-items: center;
  }
  .footer-grid > div:last-child h2,
  .footer-grid > div:last-child p {
    margin: 0;
  }
  .footer-grid .contact-actions {
    display: flex;
  }
  .product-layout {
    gap: 28px;
  }
  .product-detail h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr 280px;
    gap: 24px;
  }
  .cart-row {
    grid-template-columns: 70px minmax(0, 1fr) 44px;
    gap: 12px;
  }
  .cart-row > img {
    width: 70px;
    height: 80px;
  }
  .admin-shell {
    margin-left: 0;
  }
  .admin-sidebar {
    transform: translateX(-100%);
    width: 248px;
    max-width: calc(100vw - 48px);
  }
  .admin-menu-open .admin-sidebar {
    transform: translateX(0);
  }
  .admin-menu-open {
    overflow: hidden;
  }
  .admin-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: #10212f66;
  }
  .admin-top {
    height: 64px;
    padding: 0 20px;
  }
  .admin-top > span {
    margin-right: auto;
  }
  .admin-top .mobile-only {
    background: none;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--navy);
    font-size: 20px;
  }
  .admin-sidebar > .mobile-only {
    align-self: flex-end;
    border: 0;
    background: none;
    color: #fff;
    font-size: 14px;
    margin: -12px 0 8px;
  }
  .admin-main {
    padding: 24px 20px;
  }
  .admin-two {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .editor-main .form-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid > div {
    padding: 20px;
  }
  .settings-form {
    max-width: none;
  }
}
@media (max-width: 767px) {
  .container,
  .header-inner {
    width: calc(100% - 32px);
  }
  h1 {
    font-size: 28px;
    line-height: 36px;
  }
  h2 {
    font-size: 22px;
    line-height: 28px;
  }
  .announcement .container {
    min-height: 34px;
    font-size: 12px;
    justify-content: center;
  }
  .announcement a {
    display: none;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0 16px;
    padding: 16px 0;
    min-height: 0;
  }
  .wordmark {
    min-height: 44px;
  }
  .brand-symbol {
    width: 48px;
    height: 40px;
  }
  .brand-lockup {
    gap: 8px;
  }
  .brand-name {
    font-size: 25px;
  }
  .brand-caption {
    font-size: 12px;
  }
  .brand-logo {
    max-width: 185px;
    max-height: 56px;
  }
  .header-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    margin-top: 16px;
    height: 46px;
  }
  .header-actions {
    gap: 4px;
  }
  .header-actions .cart-link {
    width: 44px;
    justify-content: center;
  }
  .cart-link > span {
    display: none;
  }
  .mobile-menu.open {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }
  .hero-content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-block: 32px;
  }
  .hero-copy h1 {
    font-size: 36px;
    line-height: 42px;
    max-width: 450px;
    margin-top: 12px;
  }
  .hero-copy p {
    margin-bottom: 24px;
  }
  .hero-copy .eyebrow {
    letter-spacing: 0.8px;
  }
  .hero-secondary {
    display: inline-flex;
    margin: 0 0 0 16px;
    vertical-align: middle;
  }
  .hero-media img {
    height: 230px;
    padding: 24px;
  }
  .hero-media > span {
    font-size: 12px;
    padding: 8px;
  }
  .section {
    padding: 32px 0;
  }
  .section-heading {
    gap: 16px;
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: 22px;
    line-height: 28px;
  }
  .section-heading a {
    white-space: nowrap;
  }
  .department-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .department-grid > a {
    padding: 12px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) 14px;
  }
  .department-grid h3 {
    font-size: 15px;
    line-height: 22px;
  }
  .department-photo {
    height: 105px;
    margin-bottom: 0;
  }
  .department-photo img {
    height: 105px;
    padding: 8px;
  }
  .product-grid,
  .catalog-results .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .product-card {
    padding: 10px;
  }
  .product-photo img {
    padding: 8px;
  }
  .product-category {
    font-size: 12px;
    line-height: 16px;
  }
  .product-info {
    min-height: 150px;
    padding: 12px 0;
    gap: 6px;
  }
  .product-name {
    font-size: 14px;
    line-height: 20px;
  }
  .product-info strong {
    font-size: 16px;
    line-height: 24px;
  }
  .card-add button,
  .card-options {
    font-size: 14px;
    gap: 6px;
    padding: 10px 4px;
  }
  .card-add button svg {
    width: 16px;
    height: 16px;
  }
  .store-help {
    align-items: start;
    flex-direction: column;
    gap: 20px;
    padding: 28px 0 32px;
  }
  .footer {
    margin-top: 16px;
    padding-top: 32px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
    padding-bottom: 28px;
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .footer-grid > div:last-child {
    grid-column: auto;
    display: block;
  }
  .footer-grid > div:last-child h2 {
    margin-bottom: 16px;
  }
  .footer-grid > div:last-child p {
    margin-top: 12px;
  }
  .footer .contact-actions {
    display: block;
  }
  .footer a:not(.wordmark) {
    min-height: 44px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: start;
    justify-content: center;
    min-height: 90px;
    gap: 8px;
    padding-block: 16px;
  }
  .catalog-page,
  .product-page {
    padding-top: 20px;
  }
  .breadcrumbs {
    margin-bottom: 16px;
  }
  .page-title {
    margin-bottom: 24px;
    gap: 16px;
    align-items: start;
    flex-direction: column;
  }
  .page-title h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .page-title p {
    font-size: 13px;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .filters {
    border: 0;
  }
  .filter-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    border: 1px solid #b5c6d4;
    border-radius: 5px;
    background: #fff;
    color: var(--navy);
    font-weight: 600;
    font-size: 14px;
  }
  .filter-toggle:after {
    content: "+";
  }
  .filter-toggle[aria-expanded="true"]:after {
    content: "−";
  }
  .filters form {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
  .category-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .category-nav a {
    font-size: 13px;
  }
  .filter-fields {
    margin-top: 20px;
  }
  .product-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .gallery-main {
    padding: 20px;
    aspect-ratio: 1.15;
  }
  .main-photo {
    max-height: 340px;
  }
  .product-detail {
    padding: 0;
  }
  .product-detail h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .product-links {
    margin-top: 24px;
  }
  .product-spec > div {
    grid-template-columns: 90px minmax(0, 1fr);
  }
  .buy-actions {
    grid-template-columns: 100px 1fr;
    gap: 12px;
  }
  .photo-dialog {
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px;
  }
  .photo-dialog > img {
    max-height: calc(100dvh - 135px);
  }
  .narrow-page,
  .checkout-page {
    padding-block: 20px 32px;
  }
  .checkout-steps {
    gap: 20px;
    padding-bottom: 16px;
    margin-bottom: 24px;
  }
  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cart-row {
    grid-template-columns: 64px minmax(0, 1fr) 44px;
    gap: 12px;
    padding-block: 20px;
  }
  .cart-row > img {
    width: 64px;
    height: 80px;
  }
  .cart-row form {
    gap: 8px;
  }
  .cart-row form > label,
  .cart-row input[type="number"] {
    width: 68px;
  }
  .order-summary {
    padding: 20px;
  }
  .checkout-form .form-card {
    padding-block: 24px;
  }
  .checkout-form .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .choice {
    padding: 14px 12px;
  }
  .choice:has(input:checked) {
    padding: 13px 11px;
  }
  .choice b {
    font-size: 12px;
  }
  .choice small {
    font-size: 12px;
    line-height: 18px;
  }
  .prose-page {
    padding-block: 32px 48px;
  }
  .prose-page p {
    font-size: 15px;
    line-height: 25px;
  }
  .auth-page {
    margin: 32px auto;
  }
  .form-card {
    padding: 20px;
  }
  .order-page {
    padding-block: 24px;
  }
  .order-state {
    padding-top: 12px;
  }
  .order-details {
    grid-template-columns: 1fr;
  }
  .order-details .form-card {
    padding: 20px;
  }
  .order-state h1 {
    font-size: 28px;
  }
  .order-help,
  .order-timeline {
    margin-top: 24px;
  }
  .center-actions {
    flex-direction: column;
  }
  .admin-main {
    padding: 20px 16px 32px;
  }
  .admin-heading {
    align-items: start;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
  }
  .admin-heading h1 {
    font-size: 28px;
    line-height: 36px;
  }
  .admin-heading-actions {
    width: 100%;
    display: flex;
    gap: 10px;
  }
  .admin-heading-actions .button {
    flex: 1;
    padding-inline: 12px;
  }
  .admin-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  .admin-top {
    padding: 0 16px;
    gap: 12px;
  }
  .admin-top > a {
    font-size: 13px;
  }
  .admin-subnav,
  .tabs {
    gap: 0 20px;
    margin-bottom: 24px;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 24px;
  }
  .metric-grid > div {
    padding: 16px;
  }
  .metric-grid > div:nth-child(3) {
    border-left: 0;
  }
  .metric-grid > div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .metric-grid strong {
    font-size: 24px;
    line-height: 32px;
  }
  .admin-two {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .admin-search {
    gap: 12px;
  }
  .admin-search label {
    flex: 1;
    min-width: 120px;
  }
  .admin-search label:first-child {
    flex-basis: 100%;
    max-width: none;
  }
  .admin-search .button {
    flex: 1;
  }
  .admin-search > .text-button {
    flex: 0;
  }
  .card-heading {
    align-items: start;
    gap: 16px;
  }
  .card-heading h2 {
    font-size: 18px;
  }
  .card-heading > a {
    font-size: 13px;
    white-space: nowrap;
  }
  .list-row {
    align-items: start;
    gap: 16px;
  }
  .list-row-actions {
    gap: 12px;
    flex-direction: column;
    align-items: end;
    font-size: 13px;
  }
  .table-wrap {
    border-top: 0;
  }
  .table-wrap:has(.products-table):before {
    content: "Scroll for more columns →";
    display: block;
    position: sticky;
    left: 0;
    padding: 8px 0;
    font-size: 12px;
    color: var(--muted);
  }
  .products-table {
    min-width: 690px;
  }
  .products-table td,
  .products-table th {
    padding: 14px 10px;
  }
  .admin-mobile-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
    overflow: hidden;
  }
  .admin-mobile-table,
  .admin-mobile-table tbody {
    display: block;
    width: 100%;
  }
  .admin-mobile-table tr {
    display: block;
    border-top: 1px solid var(--line);
    padding: 12px 0;
  }
  .admin-mobile-table td {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 12px;
    border: 0;
    padding: 10px 0;
    min-height: 44px;
    white-space: normal;
    min-width: 0;
  }
  .admin-mobile-table td:before {
    content: attr(data-label);
    font-size: 12px;
    line-height: 20px;
    color: var(--muted);
  }
  .admin-mobile-table .inline-form {
    grid-column: 1/-1;
    flex-wrap: wrap;
    margin-top: 8px;
  }
  .table-product {
    min-width: 0;
  }
  .table-product img {
    width: 38px;
    height: 46px;
  }
  .inline-form input {
    max-width: 180px;
  }
  .settings-form {
    max-width: none;
  }
  .settings-preview {
    max-width: 100%;
  }
  .settings-state,
  .connection-state {
    align-items: start;
    flex-direction: column;
    gap: 10px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .editor-main,
  .editor-side {
    width: 100%;
  }
  .editor-side {
    position: static;
  }
  .editor-grid .admin-card {
    padding: 20px;
  }
  .editor-main {
    order: 1;
  }
  .editor-side {
    order: 2;
  }
  .editor-save {
    order: 3;
    position: static;
    width: 100%;
    padding: 12px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .editor-save > div:first-child {
    width: 100%;
  }
  .editor-save-actions {
    width: 100%;
    gap: 10px;
  }
  .editor-save-actions .button {
    flex: 1;
    padding-inline: 12px;
  }
  .photo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .photo-list img {
    height: 110px;
  }
  .photo-move {
    font-size: 14px;
    padding: 8px 4px;
  }
  .variant-row > .form-grid {
    grid-template-columns: 1fr;
  }
  .collection-list {
    grid-template-columns: 1fr;
  }
  .payment-header {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 8px 16px;
  }
  .payment-header .wordmark {
    font-size: 18px;
  }
  .payment-header h1 {
    font-size: 16px;
  }
  .payment-header > a:last-child {
    font-size: 13px;
  }
  .payment-summary {
    padding: 12px 16px;
  }
  .payment-summary summary {
    font-size: 14px;
  }
  .summary-hint {
    display: block;
  }
  .hubtel-checkout {
    min-height: 620px;
    height: calc(100dvh - 250px);
  }
  .payment-status {
    padding: 12px 16px;
  }
  .payment-window {
    min-height: 620px;
  }
}
@media (max-width: 359px) {
  .hero-secondary {
    display: block;
    margin: 12px 0 0;
  }
  .department-grid h3 {
    font-size: 14px;
  }
  .card-add button {
    font-size: 14px;
  }
  .cart-row {
    grid-template-columns: 52px minmax(0, 1fr) 44px;
    gap: 8px;
  }
  .cart-row > img {
    width: 52px;
  }
  .header-actions {
    gap: 0;
  }
  .brand-name {
    font-size: 21px;
  }
  .brand-symbol {
    width: 40px;
    height: 34px;
  }
  .brand-caption {
    font-size: 12px;
    max-width: 155px;
  }
  .hero-copy h1 {
    font-size: 32px;
    line-height: 38px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
