:root {
  --ink: #142133;
  --muted: #617086;
  --paper: #f5f9ff;
  --paper-strong: #ffffff;
  --line: rgba(60, 98, 140, 0.16);
  --brand: #23649c;
  --brand-dark: #153b5f;
  --accent: #6fa8dc;
  --success: #28784b;
  --shadow: 0 18px 44px rgba(38, 83, 130, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(59, 130, 196, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 196, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 10% 0%, rgba(186, 221, 250, 0.8), transparent 26rem),
    radial-gradient(circle at 94% 4%, rgba(222, 241, 255, 0.9), transparent 28rem),
    var(--paper);
  background-size: 42px 42px, 42px 42px, auto, auto, auto;
  font-synthesis: none;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header,
.utility-bar,
.breadcrumbs,
.hero,
.trust-grid,
.service-band,
.carousel-section,
.section,
.page-hero,
.admin-table-wrap,
.cart-layout,
.checkout-layout,
.contact-layout,
.account-auth-layout,
.profile-page-cards,
.product-detail,
.admin-edit-form,
.profile-form,
.order-details-layout,
.order-payment-layout,
.order-resend-panel,
.shipping-rates-layout,
.legal-page-layout,
.invoice,
.site-footer {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
}

.utility-bar {
  position: relative;
  z-index: 101;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 18px;
  padding: 10px 0 0;
  color: #516b85;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  overflow: visible;
}

.utility-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.utility-copy a,
.site-footer a {
  color: var(--brand-dark);
  font-weight: 900;
}

.selector-group {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
}

.exchange-rate {
  color: var(--brand-dark);
  white-space: nowrap;
}

.footer-preference-bar {
  display: none;
  grid-column: 1 / -1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.shipping-policy-banner {
  width: 100%;
  margin: 0;
  padding: 7px 16px;
  background: linear-gradient(90deg, #153b5f 0%, #1f5f8f 100%);
  color: #f4f8fc;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  padding: 7px 14px;
  border: 1px solid rgba(87, 139, 188, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 38px rgba(55, 106, 154, 0.12);
  backdrop-filter: blur(14px);
  transition:
    gap 180ms ease,
    padding 180ms ease,
    box-shadow 180ms ease;
}

.site-header.is-compact {
  gap: 12px;
  padding: 4px 12px;
  box-shadow: 0 10px 26px rgba(55, 106, 154, 0.14);
}

.brand,
.main-nav,
.account-nav,
.currency-nav,
.language-nav,
.hero-actions,
.product-meta,
.tag-row,
.detail-stats {
  display: flex;
  align-items: center;
}

.brand {
  gap: 18px;
  min-width: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
  transition: gap 180ms ease;
}

.site-header.is-compact .brand {
  gap: 12px;
}

.brand-copy {
  color: var(--brand-dark);
  font-size: 1.18rem;
  line-height: 1.05;
  min-width: 0;
  transition:
    font-size 180ms ease,
    line-height 180ms ease;
}

.site-header.is-compact .brand-copy {
  font-size: 0.98rem;
  line-height: 1;
}

.brand-copy small {
  display: block;
  color: #60758b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: font-size 180ms ease;
}

.site-header.is-compact .brand-copy small {
  font-size: 0.62rem;
}

.brand-mark {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 6px 10px 6px 4px;
  place-items: center;
  background: transparent;
  transition:
    width 180ms ease,
    height 180ms ease,
    margin 180ms ease;
}

.site-header.is-compact .brand-mark {
  width: 58px;
  height: 58px;
  margin: 4px 8px 4px 2px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  gap: 4px;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.account-nav {
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}

.header-search {
  display: flex;
  align-items: center;
  flex: 1 1 220px;
  max-width: 320px;
  min-width: 0;
  margin: 0 4px;
  border: 1px solid rgba(87, 139, 188, 0.28);
  border-radius: 999px;
  background: #f7fafc;
  overflow: hidden;
}

.header-search:focus-within {
  border-color: #3b73a8;
  box-shadow: 0 0 0 2px rgba(59, 115, 168, 0.16);
}

.header-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 8px 12px;
  font: inherit;
  font-size: 0.88rem;
  color: #1f3347;
}

.header-search-input:focus {
  outline: none;
}

.header-search-input::placeholder {
  color: #6a849c;
}

.header-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  background: transparent;
  color: #31516f;
  padding: 8px 12px 8px 4px;
  cursor: pointer;
}

.header-search-button:hover,
.header-search-button:focus-visible {
  color: #153b5f;
}

.product-search-field {
  grid-column: 1 / -1;
}

.product-search-field input {
  width: 100%;
}

.account-dropdown {
  position: relative;
}

.account-dropdown summary {
  border-radius: 5px;
  color: #31516f;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  list-style: none;
  padding: 9px 14px;
}

.account-dropdown summary::-webkit-details-marker {
  display: none;
}

.account-dropdown summary::after {
  content: "▾";
  margin-left: 6px;
}

.account-dropdown[open] summary,
.account-dropdown summary:hover {
  background: #eef6ff;
}

.account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 35;
  display: grid;
  min-width: 150px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(55, 106, 154, 0.16);
  overflow: hidden;
}

.account-auth-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.account-auth-layout .profile-form,
.account-auth-layout .panel {
  width: 100%;
  margin: 0;
}

.required-asterisk {
  color: #c62828;
  font-weight: 850;
  margin-left: 0.15em;
}

.field-label-text {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.required-fields-note {
  margin: 0;
  color: #60758b;
}

.account-auth-column {
  display: grid;
  gap: 12px;
}

.account-auth-heading {
  font-size: 1.15rem;
  margin: 0;
}

.account-auth-panel {
  margin-top: 0;
}

.google-auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 18px;
  border: 1px solid #d5dee8;
  border-radius: 12px;
  background: #ffffff;
  color: #1f3347;
  box-shadow: none;
  text-decoration: none;
  font-weight: 600;
}

.google-auth-button:hover {
  background: #f7fafc;
  color: #1f3347;
}

.google-auth-button-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.google-auth-button-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.account-login-card > .google-auth-button,
.account-register-card > .google-auth-button {
  grid-column: span 2;
  margin-bottom: 4px;
}

.account-login-card > .login-main-form,
.account-login-card > .login-forgot-panel {
  grid-column: span 2;
}

.account-login-card > .login-main-form,
.account-login-card > .login-forgot-panel,
.account-login-card .login-forgot-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.account-login-card .login-forgot-form {
  grid-column: span 2;
  width: 100%;
}

.account-login-card .login-main-form {
  grid-column: span 2;
}

.account-register-card .register-main-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  grid-column: span 2;
  margin: 0;
}

.account-login-card .login-main-form {
  width: 100%;
}

.login-forgot-link-wrap {
  margin: 0;
  text-align: left;
}

.login-forgot-panel {
  padding-top: 14px;
  border-top: 1px solid rgba(87, 139, 188, 0.18);
}

.login-forgot-panel[hidden] {
  display: none;
}

.account-login-card.is-forgot-open .login-forgot-panel {
  display: grid;
}

.login-forgot-intro,
.login-forgot-panel .success-message,
.login-forgot-panel .error-message {
  margin: 0;
}

.account-login-card .login-forgot-form button[type='submit'],
.account-login-card .login-main-form button[type='submit'] {
  display: inline-flex;
  justify-content: center;
  padding: 13px 18px;
  background: linear-gradient(135deg, #1f5f97, #6fa8dc);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(35, 100, 156, 0.2);
}

.account-auth-notice,
.contact-auth-notice {
  display: grid;
  gap: 14px;
}

.contact-auth-notice p {
  margin: 0;
}

.profile-page-cards {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.profile-page-cards .profile-form,
.profile-page-cards .panel {
  width: 100%;
  margin: 0;
}

.account-password-form {
  display: grid;
  gap: 14px;
}

.account-password-form h2 {
  font-size: 1.05rem;
  margin: 0;
}

.account-password-form .form-footnote {
  margin: 0;
}
.account-menu .account-menu-action {
  border-radius: 0;
}

.account-menu a.account-menu-action,
.account-menu .account-menu-action {
  appearance: none;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: #31516f;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.account-menu a.account-menu-action:hover,
.account-menu .account-menu-action:hover {
  background: #eef6ff;
  color: var(--brand-dark);
}

.account-menu .account-logout-form {
  display: none;
  margin: 0;
  border-top: 1px solid rgba(87, 139, 188, 0.12);
}

body[data-signed-in="true"] .account-menu .account-logout-form,
.account-dropdown[data-signed-in="true"] .account-logout-form,
.footer-account-dropdown[data-signed-in="true"] .account-logout-form {
  display: block;
}

.account-menu .account-logout-form .account-menu-action {
  color: #8b3a3a;
}

.account-menu .account-logout-form .account-menu-action:hover {
  background: #fff0f0;
  color: #6f2f2f;
}

.blog-dropdown {
  position: relative;
}

.blog-dropdown summary {
  border-radius: 5px;
  color: #31516f;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 850;
  list-style: none;
  padding: 9px 14px;
}

.blog-dropdown summary::-webkit-details-marker {
  display: none;
}

.blog-dropdown summary::after {
  content: "▾";
  margin-left: 6px;
}

.blog-dropdown[open] summary,
.blog-dropdown summary:hover {
  background: #eef6ff;
}

.blog-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 35;
  display: grid;
  min-width: 220px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(55, 106, 154, 0.16);
  overflow: hidden;
}

.blog-menu a {
  display: block;
  border-radius: 0;
  color: #31516f;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.blog-menu a:hover {
  background: #eef6ff;
  color: var(--brand-dark);
}

.blog-menu-all {
  border-top: 1px solid rgba(87, 139, 188, 0.14);
  color: var(--brand-dark);
}

.currency-nav {
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(87, 139, 188, 0.16);
  border-radius: 6px;
  background: #ffffff;
}

.language-nav {
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(87, 139, 188, 0.16);
  border-radius: 6px;
  background: #ffffff;
}

.preference-dropdown {
  position: relative;
}

.preference-dropdown[open] {
  z-index: 110;
}

.preference-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 116px;
  border-radius: 5px;
  color: #31516f;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 850;
  list-style: none;
  padding: 6px 10px;
}

.site-header .main-nav a,
.site-header .account-nav > a {
  border-radius: 5px;
}

.preference-dropdown summary::-webkit-details-marker {
  display: none;
}

.preference-dropdown summary::after {
  color: var(--muted);
  content: "▾";
  margin-left: auto;
}

.preference-dropdown[open] summary {
  background: #dcefff;
}

.preference-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 110;
  display: grid;
  min-width: 160px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(55, 106, 154, 0.16);
  overflow: hidden;
}

.preference-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #31516f;
  font-size: 0.82rem;
  font-weight: 850;
  padding: 9px 10px;
  text-decoration: none;
}

.preference-menu a:hover,
.preference-menu a.active {
  background: #eef6ff;
  color: var(--brand-dark);
}

.flag-icon {
  width: 22px;
  height: 15px;
  border: 1px solid rgba(49, 81, 111, 0.14);
  border-radius: 2px;
  flex: 0 0 auto;
  object-fit: cover;
}

.main-nav a,
.account-nav a,
.button,
.inline-form button,
.purchase-box button,
.summary-card button,
.profile-form button,
.account-password-form button,
.contact-form button,
.quantity-form button,
.product-filter-bar button,
.admin-logout-form button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.main-nav a {
  padding: 9px 14px;
  color: #31516f;
  font-size: 0.9rem;
}

.account-nav a {
  padding: 9px 14px;
  color: #31516f;
  font-size: 0.9rem;
}

.main-nav strong,
.account-nav strong {
  color: var(--brand);
}

.button,
.inline-form button,
.purchase-box button,
.summary-card button,
.profile-form button,
.account-password-form button,
.contact-form button,
.product-filter-bar button {
  display: inline-flex;
  justify-content: center;
  padding: 13px 18px;
}

.button:hover,
button:hover {
  transform: translateY(-1px);
}

.primary,
.inline-form button,
.purchase-box button,
.summary-card button,
.profile-form button,
.account-password-form button,
.contact-form button,
.product-filter-bar button {
  background: linear-gradient(135deg, #1f5f97, #6fa8dc);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(35, 100, 156, 0.2);
}

.profile-form button.login-forgot-toggle {
  display: inline;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.profile-form button.login-forgot-toggle:hover {
  transform: none;
  background: transparent;
  color: var(--brand-dark);
  box-shadow: none;
  text-decoration: underline;
}

.secondary {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--brand);
}

.disabled {
  opacity: 0.72;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: start;
  padding: 14px 0 10px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
}

.page-hero h1 {
  margin-bottom: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  color: #153b5f;
}

.hero h1 {
  margin-bottom: 14px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.05rem, 4.2vw, 4.1rem);
  line-height: 1;
  color: #153b5f;
}

.product-detail h1 {
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.12;
  color: #153b5f;
}

.cart-page-hero h1 {
  margin-bottom: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.2;
  color: #153b5f;
}

.cart-login-notice {
  margin: 0;
  color: #41586f;
  font-size: 0.95rem;
  line-height: 1.5;
}

.cart-login-notice a {
  color: var(--brand);
  font-weight: 850;
  text-decoration: none;
}

.cart-login-notice a:hover {
  text-decoration: underline;
}

.order-page-hero h1 {
  margin-bottom: 10px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  color: #153b5f;
  word-break: break-word;
}

.order-email-status--pending {
  color: #41586f;
}

.order-email-status--failed {
  color: #9b3b2f;
}

.order-resend-panel {
  margin-bottom: 18px;
  padding: 18px;
}

.order-resend-panel h2 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #153b5f;
}

.order-resend-form {
  display: grid;
  gap: 10px;
}

.order-resend-cooldown {
  margin: 0;
  color: #60758b;
  font-size: 0.95rem;
}

.order-resend-feedback {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.order-resend-feedback--success {
  color: #1f6b4d;
}

.order-resend-feedback--error {
  color: #9b3b2f;
}

.order-details-layout {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.order-meta-panel,
.order-meetup-panel,
.order-shipping-panel {
  display: grid;
  gap: 0;
  padding: 18px;
  border-radius: 12px;
}

.order-meta-panel h2,
.order-meetup-panel h2,
.order-shipping-panel h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
}

.order-meta-panel .order-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.order-meta-panel .order-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.order-meta-panel .order-meta-row-spaced {
  padding-top: 12px;
}

.order-meta-panel .order-meta-row-spaced span {
  line-height: 1.5;
}

.order-meta-panel .order-meta-row-spaced strong {
  line-height: 1.5;
}

.order-invoice-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-card > .order-invoice-line,
.invoice > .order-invoice-line {
  align-items: flex-start;
}

.order-invoice-line-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.order-invoice-item-name {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.45;
}

.order-invoice-note {
  display: block;
  color: var(--brand-dark);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.5;
}

.order-meetup-panel {
  border-top: 3px solid var(--accent);
}

.order-meetup-highlight {
  display: grid;
  gap: 12px;
  margin: 12px 0 16px;
}

.order-meetup-highlight-item {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(87, 139, 188, 0.22);
  border-radius: 10px;
  background: linear-gradient(180deg, #f5faff 0%, #eef6ff 100%);
}

.order-meetup-highlight-item span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.order-meetup-highlight-item strong {
  color: var(--brand-dark);
  font-size: 1.2rem;
  line-height: 1.25;
}

.order-meetup-highlight-date strong {
  font-size: 1.45rem;
  color: var(--brand);
}

.order-meetup-reminder,
.order-meetup-cash {
  margin: 14px 0 0;
  color: #41586f;
  font-size: 0.92rem;
  line-height: 1.55;
}

.order-meetup-cash {
  margin-top: 8px;
  color: var(--brand-dark);
  font-weight: 800;
}

.order-delivery-table {
  width: 100%;
  border-collapse: collapse;
}

.order-delivery-table th,
.order-delivery-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
}

.order-delivery-table tr:last-child th,
.order-delivery-table tr:last-child td {
  border-bottom: 0;
  padding-bottom: 0;
}

.order-delivery-table th {
  width: 34%;
  padding-right: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.order-delivery-table td {
  color: var(--ink);
  font-size: 0.94rem;
}

.checkout-email-note {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.order-history-id-link {
  color: var(--brand-dark);
  text-decoration: none;
}

.order-history-id-link:hover {
  text-decoration: underline;
}

.lede,
.page-hero p,
.product-card p,
.category-detail-card p,
.category-card p,
.feedback-card li,
.summary-card span,
.cart-line span,
.spec-list,
.site-footer {
  color: var(--muted);
}

.lede {
  max-width: 660px;
  font-size: 1rem;
}

.hero-text-slider {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: 14px;
}

.hero-slide-track {
  display: grid;
}

.hero-slide {
  position: relative;
  grid-area: 1 / 1;
  min-height: 250px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 22px;
  background: #153b5f;
  transform: translateY(8px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(135deg, rgba(21, 59, 95, 0.72), rgba(21, 59, 95, 0.48)),
    radial-gradient(circle at 18% 18%, rgba(111, 168, 220, 0.4), transparent 32%);
  content: '';
  pointer-events: none;
}

.hero-slide-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide > *:not(.hero-slide-photo) {
  position: relative;
  z-index: 2;
}

.hero-slide .eyebrow,
.hero-slide h1,
.hero-slide .lede {
  color: #ffffff;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.hero-slider-controls {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-slider-controls > button,
.hero-slider-dots button {
  border: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-dark);
  cursor: pointer;
}

.hero-slider-controls > button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  padding: 0;
  pointer-events: auto;
}

.hero-slider-controls > button[data-hero-prev] {
  position: absolute;
  right: calc(50% + 30px);
  bottom: 2px;
}

.hero-slider-controls > button[data-hero-next] {
  position: absolute;
  left: calc(50% + 30px);
  bottom: 2px;
}

.hero-slider-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 5px;
  pointer-events: auto;
  transform: translateX(-50%);
}

.hero-slider-dots button {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  padding: 0;
}

.hero-slider-controls > button:hover,
.hero-slider-dots button.active {
  background: #dcefff;
}

.feedback-card,
.compact-panel,
.panel,
.summary-card,
.product-card,
.category-detail-card {
  border: 1px solid rgba(87, 139, 188, 0.18);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.feedback-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 247, 255, 0.88)),
    #ffffff;
}

.feedback-card span {
  color: var(--brand);
  font-weight: 900;
}

.feedback-card h2 {
  margin: 10px 0 18px;
  color: #153b5f;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1.02;
}

.spec-list {
  padding-left: 20px;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0;
}

.metric-list div,
.metric-list a {
  display: grid;
  gap: 2px;
  padding: 10px 8px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 8px;
  background: #f2f8ff;
  text-align: center;
  text-decoration: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.metric-list a:hover {
  background: #dcefff;
  border-color: rgba(87, 139, 188, 0.36);
  transform: translateY(-1px);
}

.metric-list strong {
  color: var(--brand);
  font-size: 1.08rem;
}

.metric-list small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.above-fold-products {
  display: grid;
  gap: 8px;
}

.hero-carousel {
  display: grid;
  grid-auto-columns: minmax(132px, 160px);
  grid-auto-flow: column;
  gap: 10px;
  max-width: 100%;
  margin-top: 4px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-color: #b7d9f6 transparent;
}

.hero-carousel-group {
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.carousel-section {
  display: grid;
  gap: 10px;
  padding: 6px 0 4px;
}

.carousel-block {
  min-width: 0;
}

.section-heading.compact {
  margin-bottom: 0;
}

.section-heading.compact .eyebrow {
  margin-bottom: 0;
}

.carousel-item {
  position: relative;
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(55, 106, 154, 0.08);
  color: #153b5f;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 8px;
  text-decoration: none;
}

.carousel-price-tag {
  position: absolute;
  left: 12px;
  top: 68px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  padding: 4px 6px;
  box-shadow: 0 6px 14px rgba(23, 60, 95, 0.12);
}

.carousel-item img {
  width: 100%;
  height: 76px;
  border-radius: 8px;
  background: #edf6ff;
  object-fit: cover;
}

.carousel-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-panel {
  display: grid;
  gap: 9px;
  padding: 10px;
  border-radius: 10px;
}

.compact-panel > span {
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mini-product-list {
  display: grid;
  gap: 7px;
}

.panel-list-title {
  margin: 2px 0 0;
  color: #153b5f;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.panel-list-link {
  display: inline-block;
  font-weight: 900;
  text-decoration: none;
}

.panel-list-link:hover {
  color: var(--brand);
}

.mini-product {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 26px rgba(55, 106, 154, 0.08);
}

.mini-art {
  display: block;
  width: 64px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: #edf6ff;
}

.mini-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-product a {
  display: block;
  overflow: hidden;
  color: #153b5f;
  font-weight: 900;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product span {
  color: var(--muted);
  font-size: 0.78rem;
}

.mini-product strong {
  color: var(--brand);
  font-size: 0.94rem;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(87, 139, 188, 0.16);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(55, 106, 154, 0.08);
}

.trust-grid article {
  display: grid;
  gap: 7px;
  padding: 16px;
  border-right: 1px solid var(--line);
  background: transparent;
}

.trust-grid article:last-child {
  border-right: 0;
}

.service-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 24px 0 0;
}

.service-band div {
  display: grid;
  gap: 9px;
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 253, 248, 0.62);
}

.service-band span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.service-band strong {
  color: #153b5f;
  font-size: 1.12rem;
}

.service-band p {
  margin: 0;
  color: var(--muted);
}

.section,
.page-hero,
.product-detail,
.cart-layout,
.checkout-layout {
  padding: 18px 0;
}

.section-heading {
  margin-bottom: 16px;
}

.section-heading h2,
.page-hero h1 {
  max-width: 820px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1;
}

.home-section .section-heading h2 {
  font-size: clamp(1.5rem, 2.65vw, 2.75rem);
}

.category-grid,
.product-grid {
  display: grid;
  gap: 14px;
}

.category-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.blog-topic-grid {
  display: grid;
  gap: 14px;
}

.blog-topic-grid:not(.is-list-view) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-view-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.blog-view-toggle {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.blog-view-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  min-width: 36px;
  min-height: 36px;
  padding: 8px;
}

.blog-view-icon {
  display: block;
}

.blog-view-toggle button[aria-pressed='true'] {
  background: var(--brand-dark);
  color: #fff;
}

.blog-topic-grid.is-list-view {
  grid-template-columns: 1fr;
}

.blog-topic-grid.is-list-view .blog-topic-card {
  display: grid;
  align-items: start;
  gap: 12px;
  grid-template-columns: 1fr;
}

.blog-topic-grid.is-list-view .blog-topic-card p {
  grid-column: auto;
}

.blog-topic-grid.is-list-view .blog-topic-card .button {
  align-self: stretch;
  grid-column: auto;
  grid-row: auto;
  justify-self: stretch;
  width: 100%;
  white-space: normal;
}

.blog-topic-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.blog-topic-card h2 {
  font-size: 1.1rem;
  line-height: 1.3;
}

.blog-topic-card h2 a {
  color: var(--brand-dark);
  text-decoration: none;
}

.blog-topic-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-topic-panel {
  max-width: 720px;
  padding: 22px;
  color: var(--muted);
}

.blog-post-grid {
  display: grid;
  gap: 18px;
}

.blog-post-grid:not(.is-list-view) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-post-grid.is-list-view {
  grid-template-columns: 1fr;
}

.blog-post-grid.is-list-view .blog-post-card {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  align-items: start;
}

.blog-post-grid.is-list-view .blog-post-card-image {
  aspect-ratio: auto;
  min-height: 150px;
}

.blog-post-grid.is-list-view .blog-post-card-copy {
  align-content: start;
  height: auto;
}

.blog-post-grid.is-list-view .blog-post-card-copy .blog-tag-row {
  align-self: start;
  justify-self: start;
  width: fit-content;
  max-width: 100%;
}

.blog-post-grid.is-list-view .blog-post-card-copy .button {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
}

.blog-post-card {
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.blog-post-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.blog-post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 14px;
}

.blog-post-card-copy {
  display: grid;
  gap: 10px;
  padding: 18px 20px 22px;
}

.blog-post-card-copy h2 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.blog-post-card-copy h2 a {
  color: var(--brand-dark);
  text-decoration: none;
}

.blog-post-card-copy p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.blog-tag {
  border-radius: 4px;
  background: rgba(36, 58, 59, 0.08);
  color: var(--brand-dark);
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 9px;
}

.blog-post-hero .blog-tag-row {
  margin-top: 10px;
}

.blog-page-hero h1 {
  font-size: clamp(1.95rem, 3.4vw, 3.1rem);
  line-height: 1.04;
}

.blog-post-hero h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.45rem);
  line-height: 1.12;
}

.blog-post-section {
  padding-top: 0;
}

.blog-post-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.618fr) minmax(280px, 1fr);
  align-items: start;
}

.blog-article {
  max-width: none;
  padding: 24px;
}

.blog-note-specs {
  margin-bottom: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: rgba(237, 246, 255, 0.55);
}

.blog-note-specs h2 {
  margin: 0 0 14px;
  color: var(--brand-dark);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-note-specs-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.blog-note-specs-list div {
  display: grid;
  gap: 4px;
}

.blog-note-specs-list dt {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.blog-note-specs-list dd {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.45;
}

@media (min-width: 640px) {
  .blog-note-specs-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 20px;
  }
}

.blog-related-items {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
  padding: 20px;
}

.blog-related-items h2 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 1.02rem;
  line-height: 1.3;
}

.blog-related-items-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.blog-related-product-list {
  display: grid;
  gap: 14px;
}

.blog-related-product {
  display: grid;
  gap: 12px;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: start;
}

.blog-related-product-image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.blog-related-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.blog-related-product-copy {
  display: grid;
  gap: 8px;
}

.blog-related-product-copy h3 {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.35;
}

.blog-related-product-copy h3 a {
  color: var(--brand-dark);
  text-decoration: none;
}

.blog-related-product-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.blog-related-product-link {
  justify-self: start;
  padding: 8px 12px;
  font-size: 0.84rem;
}

.blog-article p,
.blog-article li {
  color: var(--ink);
  line-height: 1.7;
}

.blog-article h3 {
  margin: 28px 0 10px;
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.blog-article ul {
  margin: 0 0 18px;
  padding-left: 1.2rem;
}

.blog-figure {
  margin: 22px 0;
}

.blog-figure img {
  display: block;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}

.blog-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.blog-image-credit {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
}

.blog-back-link {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.blog-back-link a {
  color: var(--brand);
  font-weight: 800;
  text-decoration: none;
}

.category-card,
.category-detail-card {
  --category-bg: linear-gradient(145deg, rgba(21, 59, 95, 0.72), rgba(7, 29, 55, 0.82));
  min-height: 180px;
  overflow: hidden;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(21, 59, 95, 0.72), rgba(7, 29, 55, 0.84)),
    var(--category-bg),
    #153b5f;
  background-position: center;
  background-size: cover;
  text-decoration: none;
}

.category-card {
  display: grid;
  align-content: end;
  padding: 18px;
  color: #fff;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(55, 106, 154, 0.16);
}

.category-card span {
  font-size: 1.2rem;
  font-weight: 900;
}

.category-card small,
.listing-count {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 900;
  padding: 5px 8px;
}

.category-card p {
  color: rgba(255, 255, 255, 0.78);
}

.category-detail-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px;
}

.category-detail-card h2 {
  margin-bottom: 0;
}

.category-detail-card .listing-count {
  background: rgba(255, 255, 255, 0.18);
}

.category-detail-card[class*='tone-'] {
  color: #fff;
}

.category-detail-card[class*='tone-'] p {
  color: rgba(255, 255, 255, 0.82);
}

.category-detail-card small {
  color: rgba(255, 255, 255, 0.82);
}

.category-detail-card .button {
  width: fit-content;
  margin-top: auto;
}

.product-card {
  overflow: visible;
  border-radius: 12px;
}

.product-art,
.product-detail-art {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  color: #fff;
  text-decoration: none;
}

.product-art {
  isolation: isolate;
  min-height: 128px;
  align-content: end;
  gap: 8px;
  padding: 20px;
  background: #edf6ff;
}

.product-art::before,
.product-detail-art::before {
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  pointer-events: none;
  content: '';
}

.product-art span,
.product-art strong,
.product-detail-art span,
.product-detail-art strong {
  position: relative;
  z-index: 1;
}

.product-art img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  object-fit: cover;
}

.product-art strong {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--brand-dark);
  padding: 6px 10px;
  box-shadow: 0 8px 20px rgba(23, 60, 95, 0.14);
}

.product-art span {
  font-size: 1.25rem;
  font-weight: 900;
}

.product-content {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.product-meta,
.detail-stats {
  flex-wrap: wrap;
  gap: 8px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card h3 {
  min-height: 42px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.08;
}

.product-card h3 a {
  text-decoration: none;
}

.tag-row {
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span,
.detail-stats span,
.category-tag {
  border-radius: 4px;
  background: rgba(36, 58, 59, 0.08);
  padding: 6px 9px;
}

.category-tag {
  display: inline-block;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.category-tag:hover {
  background: rgba(36, 100, 156, 0.14);
}

.product-meta .category-tag-row,
.blog-related-product-meta-row .category-tag-row {
  flex: 0 1 auto;
}

.product-stock {
  flex: 0 0 auto;
  white-space: nowrap;
}

.product-stock-sold {
  color: #8b3a3a;
  font-weight: 700;
}

.product-card--sold .product-art {
  opacity: 0.82;
}

.product-sold-notice {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e8c9c9;
  border-radius: 10px;
  background: #fff5f5;
  color: #8b3a3a;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
}

.mini-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.mini-product-meta .category-tag-row {
  gap: 5px;
}

.mini-product-meta .category-tag {
  padding: 3px 7px;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.25;
}

.mini-product-meta .product-stock {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
}

.inline-form button {
  width: 100%;
}

.page-hero {
  padding-top: 42px;
}

.compact-listing-hero {
  display: grid;
  gap: 2px;
  padding-top: 18px;
}

.compact-listing-hero .eyebrow,
.compact-listing-hero h1,
.compact-listing-hero p {
  margin: 0;
}

.compact-listing-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.compact-page-hero h1 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.page-hero.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
  gap: 24px;
  align-items: end;
  margin-top: 28px;
  padding: 28px;
  border-radius: 12px;
  color: #fff;
}

.category-hero-overlay {
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(135deg, rgba(21, 59, 95, 0.88), rgba(35, 100, 156, 0.76)),
    var(--category-bg),
    linear-gradient(135deg, #153b5f, #6fa8dc);
  background-position: center;
  background-size: cover;
}

.category-hero-overlay > * {
  position: relative;
  z-index: 1;
}

.category-hero-overlay .eyebrow,
.category-hero-overlay h1 {
  color: #ffffff;
}

.category-hero-overlay h1 {
  text-shadow: 0 2px 16px rgba(7, 23, 41, 0.32);
}

.page-hero.split p,
.page-hero.split span {
  color: rgba(255, 255, 255, 0.78);
}

.page-hero.split aside {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.category-note-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  line-height: 1.45;
}

.category-note-table th,
.category-note-table td {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: left;
  vertical-align: top;
}

.category-note-table thead th {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
}

.category-note-table tbody th {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
  white-space: nowrap;
}

.category-note-table tbody td {
  color: rgba(255, 255, 255, 0.78);
}

.product-filter-bar {
  position: relative;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) repeat(2, minmax(120px, 0.7fr)) minmax(180px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin: 18px auto 0;
  width: min(1440px, calc(100% - 24px));
  overflow: visible;
}

.listing-filter-bar {
  margin-top: 8px;
}

.product-filter-collapse {
  position: relative;
  z-index: 40;
  overflow: visible;
}

.product-filter-collapse-summary {
  display: none;
  list-style: none;
}

.section .product-filter-collapse {
  width: 100%;
  margin: 12px 0 22px;
}

.section .product-filter-collapse .category-filter-bar {
  width: 100%;
  margin: 0;
}

.product-filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.category-filter-field {
  display: grid;
  gap: 6px;
  align-self: stretch;
}

.category-filter-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.category-filter-dropdown {
  position: relative;
  z-index: 1;
}

.category-filter-dropdown[open] {
  z-index: 50;
}

.category-filter-dropdown summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.92rem;
  font-weight: 700;
  list-style: none;
  padding: 10px 14px;
}

.category-filter-dropdown summary::-webkit-details-marker {
  display: none;
}

.category-filter-dropdown summary::after {
  color: var(--muted);
  content: "▾";
  flex: 0 0 auto;
}

.category-filter-dropdown[open] summary {
  border-color: rgba(123, 63, 34, 0.45);
  box-shadow: 0 0 0 4px rgba(123, 63, 34, 0.1);
}

.category-filter-dropdown summary span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.category-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: grid;
  width: 100%;
  min-width: 220px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(55, 106, 154, 0.16);
}

.category-filter-menu-divider {
  height: 1px;
  background: rgba(87, 139, 188, 0.14);
}

.category-filter-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: center;
  cursor: pointer;
  padding: 10px 14px;
}

.category-filter-option:hover {
  background: #eef6ff;
}

.category-filter-option--disabled,
.category-filter-option--disabled:hover {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
  background: transparent;
}

.category-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.category-filter-check {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(87, 139, 188, 0.28);
  border-radius: 4px;
  background: #ffffff;
  color: transparent;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.category-filter-option input:checked + .category-filter-check,
.category-filter-select-all input:checked + .category-filter-check {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.category-filter-option-label {
  color: #31516f;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.35;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 40px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: none;
}

.pagination .active {
  background: linear-gradient(135deg, #1f5f97, #6fa8dc);
  color: #ffffff;
}

.pagination .disabled {
  color: var(--muted);
  opacity: 0.45;
}

.pagination .ellipsis {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.pagination-jump {
  display: flex;
  align-items: end;
  gap: 8px;
  margin-left: 8px;
}

.pagination-jump label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.pagination-jump input {
  width: 84px;
  border-radius: 8px;
  padding: 8px 10px;
}

.pagination-jump button {
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1f5f97, #6fa8dc);
  color: #ffffff;
  cursor: pointer;
  font-weight: 850;
  padding: 10px 14px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
  grid-template-areas:
    "gallery summary"
    "gallery copy";
  row-gap: 14px;
  column-gap: clamp(24px, 5vw, 68px);
  align-items: start;
  padding-top: 38px;
}

.product-gallery {
  grid-area: gallery;
  display: grid;
  gap: 12px;
}

.product-summary-card {
  grid-area: summary;
}

.product-detail-copy {
  grid-area: copy;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}

.product-detail-art {
  min-height: 430px;
  align-content: end;
  gap: 18px;
  padding: 30px;
  border-radius: 14px;
  background: #edf6ff;
}

.product-detail-art img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  background: #ffffff;
  object-fit: contain;
  padding: 18px;
  transition: transform 180ms ease;
  user-select: none;
  touch-action: none;
}

.product-detail-art img.is-pannable,
.gallery-modal-image-wrap img.is-pannable {
  cursor: grab;
}

.product-detail-art img.is-panning,
.gallery-modal-image-wrap img.is-panning {
  cursor: grabbing;
  transition: none;
}

.gallery-expand-button {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(87, 139, 188, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-dark);
  font-size: 1.15rem;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(23, 60, 95, 0.14);
  padding: 0;
}

.gallery-zoom-control {
  position: absolute;
  right: 18px;
  bottom: 30px;
  z-index: 2;
  display: grid;
  justify-items: center;
  border: 1px solid rgba(87, 139, 188, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 6px;
  box-shadow: 0 10px 24px rgba(23, 60, 95, 0.12);
}

.gallery-zoom-control input {
  width: 26px;
  height: 142px;
  padding: 0;
  accent-color: var(--brand);
  writing-mode: vertical-lr;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(20, 33, 51, 0.58);
  padding: 24px;
}

body.gallery-modal-open {
  overflow: hidden;
}

.gallery-modal-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 16px;
  width: min(75vw, 1140px);
  height: min(90vh, 1140px);
  border: 1px solid rgba(87, 139, 188, 0.2);
  border-radius: 18px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 24px 70px rgba(7, 23, 41, 0.32);
}

.gallery-modal-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #edf6ff;
}

.gallery-modal-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform 180ms ease;
  user-select: none;
  touch-action: none;
}

.gallery-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 33, 51, 0.1);
  color: var(--ink);
  padding: 0;
}

.gallery-modal-zoom {
  align-self: center;
  width: 32px;
  height: min(58vh, 420px);
  padding: 0;
  accent-color: var(--brand);
  writing-mode: vertical-lr;
}

.product-detail-art span {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 0.92;
}

.product-detail-art strong {
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--brand-dark);
  padding: 10px 14px;
  box-shadow: 0 10px 24px rgba(23, 60, 95, 0.14);
}

.detail-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-photo-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: #ffffff;
}

.detail-photo-grid figure.active {
  border-color: rgba(87, 139, 188, 0.8);
  box-shadow: 0 0 0 3px rgba(87, 139, 188, 0.14);
}

.detail-photo-grid button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.detail-photo-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 8px;
}

.detail-photo-grid figcaption {
  border-top: 1px solid rgba(87, 139, 188, 0.12);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 8px;
}

.breadcrumb {
  color: var(--brand);
  font-weight: 900;
  text-decoration: none;
}

.product-detail-copy {
  display: grid;
  gap: 14px;
}

.product-info-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(38, 83, 130, 0.08);
  padding: 18px;
}

.product-summary-card {
  display: grid;
  gap: 14px;
}

.product-detail-price {
  width: fit-content;
  border-radius: 999px;
  background: #e7f3ff;
  color: var(--brand-dark);
  padding: 10px 14px;
  font-size: 1.1rem;
  box-shadow: 0 10px 24px rgba(23, 60, 95, 0.1);
}

.product-price-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price-original {
  color: #7a8794;
  font-size: 0.92em;
  font-weight: 600;
  text-decoration: line-through;
}

.product-price-sale {
  color: #b42318;
}

.product-gallery-price .product-price-wrap,
.product-card-price .product-price-wrap,
.carousel-price-tag .product-price-wrap {
  display: inline-flex;
  gap: 6px;
}

.admin-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 4px;
}

.admin-badge-hidden {
  background: #eef2f6;
  color: #41586f;
}

.admin-badge-sold {
  background: #fdecec;
  color: #b42318;
}

.admin-badge-discount {
  background: #fff4e5;
  color: #9a6700;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}

.category-tabs a {
  border: 1px solid rgba(87, 139, 188, 0.22);
  border-radius: 999px;
  background: #edf6ff;
  color: var(--brand-dark);
  font-size: 0.82rem;
  font-weight: 900;
  padding: 7px 11px;
  text-decoration: none;
}

.certification-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin: 0;
}

.certification-list div {
  padding: 0 0 10px;
}

.certification-list dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.certification-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 900;
}

.product-description-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.product-description-table th,
.product-description-table td {
  border-bottom: 1px solid rgba(87, 139, 188, 0.16);
  padding: 11px 0;
  text-align: left;
  vertical-align: top;
}

.product-description-table tr:last-child th,
.product-description-table tr:last-child td {
  border-bottom: 0;
}

.product-description-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--ink);
  line-height: 1.6;
}

.product-description-list li + li {
  margin-top: 6px;
}

.product-description-table th {
  width: 30%;
  padding-right: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  white-space: nowrap;
}

.product-description-table td {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.55;
}

.product-description-content {
  display: grid;
  gap: 14px;
  color: var(--ink);
  line-height: 1.65;
}

.product-description-content > p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
}

.product-description-heading {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  line-height: 1.35;
}

.product-description-heading--1 {
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}

.product-description-heading--2 {
  font-size: 1.02rem;
}

.product-description-heading--3 {
  font-size: 0.94rem;
  color: var(--muted);
}

.product-description-content .product-description-list,
.product-description-content .product-description-table {
  margin: 0;
}

.purchase-box {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  align-items: end;
  margin: 0;
}

.purchase-box label,
.panel label,
.contact-form label,
.profile-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.stock-inline {
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 900;
}

.purchase-box .qty-input-wrap {
  width: 100%;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--ink);
  outline: none;
  padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(123, 63, 34, 0.45);
  box-shadow: 0 0 0 4px rgba(123, 63, 34, 0.1);
}

input[readonly] {
  background: #edf6ff;
  color: var(--muted);
}

.locked-contact-field {
  position: relative;
}

.locked-field-label {
  position: relative;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
}

.locked-field-label button[data-profile-tooltip] {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: help;
  padding: 0;
}

.locked-field-label button[data-profile-tooltip] svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.field-tooltip {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  z-index: 4;
  width: min(260px, 100%);
  border: 1px solid rgba(87, 139, 188, 0.2);
  border-radius: 8px;
  background: #153b5f;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 850;
  opacity: 0;
  padding: 8px 10px;
  pointer-events: none;
  transform: translateY(-50%) translateX(-4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.locked-contact-field.show-tooltip .field-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.cart-layout,
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 22px;
  align-items: start;
}

.cart-lines,
.panel,
.summary-card {
  border-radius: 12px;
}

.cart-lines {
  display: grid;
  overflow: visible;
  border: 1px solid var(--line);
  --cart-row-bg: rgba(255, 253, 248, 0.78);
  background: var(--cart-row-bg);
}

.cart-line {
  display: grid;
  grid-template-columns: auto 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-lines-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.45);
}

.cart-select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 850;
  cursor: pointer;
}

.cart-select-all input,
.cart-line-select input {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cart-line-select {
  display: grid;
  place-items: center;
  align-self: center;
  cursor: pointer;
}

.cart-delete-selected {
  padding: 8px 14px;
  border: 1px solid rgba(120, 130, 140, 0.42);
  border-radius: 999px;
  background: var(--cart-row-bg);
  color: #667788;
  font-size: 0.84rem;
  font-weight: 850;
  cursor: pointer;
}

.cart-delete-selected:hover:not(:disabled) {
  border-color: rgba(120, 130, 140, 0.62);
  color: #4f5d6b;
}

.cart-delete-selected:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cart-bulk-remove-form {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cart-line:last-child {
  border-bottom: 0;
}

.cart-line-thumb {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #edf6ff;
  text-decoration: none;
}

.cart-line-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line-thumb-fallback {
  color: var(--brand);
  font-size: 1.6rem;
  font-weight: 900;
}

.cart-line-form {
  min-width: 0;
}

.cart-line-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.cart-line-copy {
  display: grid;
  gap: 6px;
}

.cart-line-title {
  display: block;
  font-weight: 900;
  text-decoration: none;
}

.cart-line-unit-price {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.cart-line-actions {
  display: flex;
  align-items: center;
}

.cart-qty-group {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.cart-qty-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  line-height: 1.2;
}

.cart-stock-text {
  font-size: 0.82rem;
  line-height: 1.2;
}

.cart-stock-count {
  color: #1f6b96;
  font-weight: 900;
}

.cart-stock-label {
  color: #5a9ab8;
  font-weight: 800;
}

.cart-qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty-input-wrap,
.qty-input-wrap {
  position: relative;
}

.cart-qty-tooltip,
.qty-tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 6px);
  z-index: 4;
  display: none;
  min-width: 180px;
  max-width: 240px;
  padding: 8px 10px;
  border: 1px solid rgba(123, 63, 34, 0.22);
  border-radius: 8px;
  background: #fffdf8;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(55, 106, 154, 0.12);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.cart-qty-input-wrap.show-qty-tooltip .cart-qty-tooltip,
.qty-input-wrap.show-qty-tooltip .qty-tooltip {
  display: block;
}

.cart-qty-input-wrap.show-qty-tooltip input,
.qty-input-wrap.show-qty-tooltip input {
  border-color: rgba(123, 63, 34, 0.45);
}

.cart-qty-controls input {
  width: 76px;
}

.cart-qty-controls button {
  padding: 10px 16px;
  border: 1px solid rgba(120, 130, 140, 0.42);
  border-radius: 999px;
  background: var(--cart-row-bg);
  color: #667788;
  font-size: 0.88rem;
  font-weight: 850;
}

.cart-qty-controls button:hover {
  background: var(--cart-row-bg);
  border-color: rgba(120, 130, 140, 0.62);
  color: #4f5d6b;
}

.cart-note-field {
  display: grid;
  margin-top: 2px;
}

.cart-note-field input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(123, 63, 34, 0.28);
  border-radius: 0;
  background: transparent;
  padding: 4px 0 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.cart-note-field input::placeholder {
  color: var(--muted);
  font-weight: 700;
}

.cart-note-field input:focus {
  border-bottom-color: rgba(123, 63, 34, 0.62);
  box-shadow: none;
}

.cart-line-total {
  align-self: center;
  white-space: nowrap;
}

.cart-shipping-form {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding-top: 14px;
}

.cart-shipping-form h3 {
  margin: 0;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.cart-shipping-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.cart-shipping-option:has(input:checked) {
  border-color: rgba(123, 63, 34, 0.35);
  background: rgba(255, 255, 255, 0.88);
}

.cart-shipping-option--static {
  grid-template-columns: minmax(0, 1fr) auto;
  cursor: default;
  border-color: rgba(123, 63, 34, 0.35);
  background: rgba(255, 255, 255, 0.88);
}

.cart-shipping-option input {
  width: auto;
  margin-top: 3px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.cart-shipping-option-copy {
  display: grid;
  gap: 3px;
}

.cart-shipping-option-copy strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.cart-shipping-option-copy small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cart-shipping-option em {
  color: var(--brand);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.cart-shipping-form:not(.cart-shipping-form--mtr-only):not(:has(input[value="mtr-meetup"]:checked)) .cart-mtr-station-field {
  display: none;
}

.cart-shipping-group {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.cart-shipping-group h4 {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.cart-shipping-intl {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.cart-shipping-intl--selected {
  border-color: rgba(123, 63, 34, 0.35);
  background: rgba(255, 255, 255, 0.88);
}

.cart-shipping-intl-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.cart-shipping-intl-head strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.cart-shipping-intl-head em {
  color: var(--brand);
  font-style: normal;
  font-size: 0.88rem;
  font-weight: 900;
  white-space: nowrap;
}

.cart-shipping-intl-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.cart-shipping-intl-select {
  display: grid;
  gap: 6px;
}

.cart-shipping-intl-select span {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.cart-shipping-intl-select select {
  width: 100%;
}

.checkout-shipping-region-panel .checkout-shipping-region-label {
  margin: 0 0 6px;
  color: var(--ink);
}

.checkout-intl-region-form {
  display: grid;
  gap: 10px;
}

.checkout-intl-region-field {
  display: grid;
  gap: 8px;
}

.checkout-intl-region-field span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}

.checkout-intl-region-field select {
  width: 100%;
}

.checkout-intl-region-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.checkout-shipping-address-panel {
  grid-template-columns: 1fr;
}

.checkout-shipping-address-panel h2,
.checkout-shipping-address-panel label,
.checkout-shipping-address-panel .country-select {
  grid-column: 1 / -1;
}

.checkout-shipping-region-panel {
  grid-template-columns: 1fr;
}

.checkout-shipping-region-panel h2,
.checkout-shipping-region-panel .intl-destination-select {
  grid-column: 1 / -1;
}

.intl-destination-select small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.checkout-summary-card {
  position: sticky;
  top: 104px;
  z-index: 20;
}

.checkout-summary-card .info-tooltip-wrap .info-tooltip {
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  left: auto;
  z-index: 100;
  width: min(320px, 84vw);
}

.checkout-submit-wrap {
  position: relative;
  display: grid;
}

.checkout-submit-wrap button {
  width: 100%;
}

.checkout-submit-wrap button:disabled {
  opacity: 0.72;
  cursor: wait;
}

.checkout-submit-tooltip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
}

.checkout-submit-tooltip--warning {
  background: rgba(146, 64, 14, 0.96);
  color: #fff;
  box-shadow: 0 12px 24px rgba(146, 64, 14, 0.22);
}

.checkout-submit-tooltip[hidden] {
  display: none;
}

.checkout-shipping-address-panel label {
  display: grid;
  gap: 6px;
}

.cart-mtr-station-field {
  margin: -2px 0 2px 28px;
}

.cart-mtr-station-label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--muted);
}

.cart-mtr-station-label select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.cart-mtr-station-label select:invalid {
  border-color: var(--line);
  box-shadow: none;
}

.cart-mtr-station-warning {
  margin: 0 0 10px;
  color: #a93226;
  font-size: 0.88rem;
  font-weight: 800;
}

a.button.primary.disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.checkout-breadcrumbs {
  margin-top: 24px;
  margin-bottom: 0;
}

.checkout-page-hero {
  padding-top: 12px;
}

.checkout-mtr-station-form {
  display: contents;
}

.checkout-mtr-station-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 800;
}

.checkout-mtr-station-input,
.checkout-mtr-station-input[readonly] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: inherit;
  line-height: inherit;
}

select.checkout-mtr-station-input {
  cursor: pointer;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237b3f22' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkout-mtr-date-field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.checkout-mtr-date-field span {
  color: var(--muted);
  font-size: 0.88rem;
}

.checkout-mtr-date-field input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.checkout-mtr-date-field input[type="date"] {
  cursor: pointer;
}

.checkout-mtr-date-field small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.checkout-main {
  display: grid;
  gap: 16px;
}

.checkout-main .panel {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.checkout-main .panel:has(.country-select.is-open) {
  z-index: 12;
}

.checkout-layout .country-select.is-open .country-select-list {
  z-index: 30;
}

.checkout-shipping-region-panel:has(.country-select.is-open),
.checkout-shipping-address-panel:has(.country-select.is-open) {
  position: relative;
  z-index: 12;
}

.profile-form:has(.country-select.is-open) {
  position: relative;
  z-index: 12;
}

.profile-form .country-select.is-open .country-select-list {
  z-index: 30;
}

.checkout-payment-form {
  display: grid;
  gap: 10px;
}

.checkout-payment-form h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.checkout-payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  cursor: pointer;
}

.checkout-payment-option:has(input:checked) {
  border-color: var(--brand);
  background: rgba(237, 246, 255, 0.72);
}

.checkout-payment-option--static {
  border-color: var(--brand);
  background: rgba(237, 246, 255, 0.72);
  cursor: default;
}

.checkout-payment-option input {
  margin-top: 4px;
}

.checkout-payment-option-copy {
  display: grid;
  gap: 4px;
}

.checkout-payment-option-copy strong {
  font-size: 0.95rem;
}

.checkout-payment-option-copy small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.summary-label-with-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.info-tooltip-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}

.info-tooltip-wrap button[data-info-tooltip] {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: help;
  padding: 0;
}

.info-tooltip-wrap button[data-info-tooltip] svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.info-tooltip-wrap .info-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  left: auto;
  top: auto;
  z-index: 30;
  width: min(280px, 72vw);
  display: grid;
  gap: 6px;
  border: 1px solid rgba(87, 139, 188, 0.2);
  border-radius: 10px;
  background: #153b5f;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.45;
  opacity: 0;
  padding: 10px 12px;
  pointer-events: none;
  transform: translateY(4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  white-space: pre-line;
}

.info-tooltip-wrap .info-tooltip strong,
.info-tooltip-wrap .info-tooltip span {
  color: #ffffff;
}

.info-tooltip-wrap .info-tooltip strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 850;
}

.info-tooltip-wrap.show-tooltip .info-tooltip {
  opacity: 1;
  transform: translateY(0);
}

.cart-shipping-breakdown {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.cart-shipping-breakdown small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.cart-shipping-link {
  margin: 0 0 14px;
  font-size: 0.84rem;
}

.cart-shipping-link a {
  color: var(--brand);
  font-weight: 700;
}

.quantity-form {
  display: grid;
  grid-template-columns: 76px minmax(180px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.quantity-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.quantity-form input {
  width: 76px;
}

.quantity-form button {
  padding: 10px 12px;
  background: rgba(123, 63, 34, 0.1);
  color: var(--brand);
}

.summary-card,
.panel,
.profile-form,
.invoice {
  padding: 18px;
}

.summary-card {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 14px;
  border-top: 3px solid var(--accent);
  overflow: visible;
}

[data-checkout-fee-row][hidden] {
  display: none !important;
}

.summary-card > div,
.invoice > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-card small,
.invoice small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.summary-card .total,
.invoice .total {
  align-items: baseline;
  border-bottom: 0;
  font-size: 1.22rem;
}

.summary-card .total strong,
.invoice .total strong {
  color: var(--brand);
  font-size: 1.65rem;
}

.checkout-layout .panel,
.profile-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 18px;
  align-items: start;
  margin-top: 18px;
  min-width: 0;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.contact-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.contact-panel div {
  display: grid;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  min-width: 0;
}

.contact-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-panel strong {
  display: block;
  line-height: 1.45;
}

.contact-panel span {
  display: block;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.55;
}

.contact-panel a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-form button[disabled] {
  opacity: 0.68;
  cursor: not-allowed;
}

.admin-hero {
  padding-bottom: 12px;
}

.admin-table-wrap {
  padding: 8px 0 30px;
}

.admin-email-list {
  margin-bottom: 4px;
}

.admin-table-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}

.admin-table-head strong {
  color: var(--brand-dark);
}

.admin-list {
  display: grid;
  gap: 8px;
}

.admin-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  box-shadow: 0 10px 24px rgba(55, 106, 154, 0.08);
}

.admin-row img {
  width: 92px;
  height: 58px;
  border-radius: 8px;
  background: #edf6ff;
  object-fit: cover;
}

.admin-row div {
  display: grid;
  gap: 4px;
}

.admin-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.order-history-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-order-row {
  align-items: start;
}

.admin-order-meta-secondary {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  word-break: break-word;
}

.admin-order-details-layout {
  display: grid;
  gap: 18px;
  align-items: start;
  padding-bottom: 30px;
}

.admin-order-details-layout .order-shipping-panel,
.admin-order-details-layout .invoice,
.admin-order-details-layout .profile-form {
  margin: 0;
}

.admin-order-admin-panels {
  display: grid;
  gap: 18px;
}

.admin-order-items-list {
  display: grid;
  gap: 12px;
}

.admin-order-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.admin-order-item-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.admin-order-item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-order-item-meta {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-order-item-note {
  margin: 0;
  color: #153b5f;
  font-size: 0.88rem;
  line-height: 1.45;
}

.admin-order-item-amounts {
  display: grid;
  gap: 4px;
  text-align: right;
  white-space: nowrap;
}

.admin-order-item-amounts span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-order-items-totals {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.admin-order-items-totals > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.admin-order-items-total {
  font-size: 1.05rem;
  font-weight: 700;
}

.admin-invoice-print {
  padding: 0;
  overflow: hidden;
  background: #eef2f6;
}

.admin-invoice-print-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 18px;
  background: #ffffff;
  border-bottom: 1px solid #d8e2ec;
}

.admin-invoice-print-controls {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-invoice-language-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-invoice-language-field select {
  min-width: 180px;
}

.admin-invoice-lang-variants {
  padding: 16px 12px;
}

.admin-invoice-lang-panel:not(.is-active) {
  display: none;
}

.admin-invoice-currency-panel:not(.is-active) {
  display: none;
}

.admin-invoice-email-card {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #d8e2ec;
  border-radius: 10px;
  overflow: hidden;
  color: #1f3347;
  font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.admin-invoice-email-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
}

.admin-invoice-email-header-start {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-invoice-email-header-end {
  flex: 0 0 auto;
  text-align: right;
}

.admin-invoice-email-logo {
  display: block;
  width: 88px;
  max-width: 88px;
  height: auto;
  flex: 0 0 auto;
}

.admin-invoice-email-brand {
  min-width: 0;
}

.admin-invoice-email-brand-primary {
  margin: 0;
  color: #153b5f;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.admin-invoice-email-brand-secondary {
  margin: 2px 0 0;
  color: #60758b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-invoice-email-divider {
  height: 0;
  border-bottom: 1px solid #d8e2ec;
}

.admin-invoice-email-body {
  padding: 12px 16px 14px;
}

.admin-invoice-email-title {
  margin: 0;
  color: #1f3347;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-invoice-email-order-id {
  margin: 2px 0 0;
  color: #60758b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
}

.admin-invoice-email-info-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 14px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: #f7fafc;
  border: 1px solid #e3ebf3;
  border-radius: 8px;
}

.admin-invoice-info-line {
  margin: 0;
  color: #1f3347;
  font-size: inherit;
  line-height: 1.35;
}

.admin-invoice-info-line--full {
  grid-column: 1 / -1;
}

.admin-invoice-info-line strong {
  font-weight: 700;
}

.admin-invoice-info-note {
  margin: 0;
  color: #60758b;
  font-size: 0.75rem;
  line-height: 1.35;
}

.admin-invoice-email-items-section {
  display: grid;
  gap: 6px;
}

.admin-invoice-email-items-title {
  margin: 0;
  color: #1f3347;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-invoice-email-items {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.admin-invoice-email-items td {
  padding: 4px 0;
  border-bottom: 1px solid #e8edf2;
  color: #1f3347;
  font-size: inherit;
  line-height: 1.35;
  vertical-align: top;
}

.admin-invoice-email-items tr:last-child td {
  border-bottom: 0;
}

.admin-invoice-item-name strong {
  display: inline;
  font-weight: 700;
}

.admin-invoice-item-note {
  display: inline;
  margin-left: 6px;
  color: #153b5f;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
}

.admin-invoice-item-amount {
  width: 1%;
  padding-left: 12px;
  text-align: right;
  white-space: nowrap;
}

.admin-invoice-email-summary {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.admin-invoice-email-summary th,
.admin-invoice-email-summary td {
  padding: 3px 0;
  color: #60758b;
  font-size: inherit;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}

.admin-invoice-email-summary td {
  color: #1f3347;
  text-align: right;
  white-space: nowrap;
}

.admin-invoice-email-summary-total th,
.admin-invoice-email-summary-total td {
  padding-top: 6px;
  border-top: 1px solid #d8e2ec;
  color: #1f3347;
  font-size: 0.92rem;
  font-weight: 700;
}

.admin-invoice-footnote {
  margin: 8px 0 0;
  color: #60758b;
  font-size: 0.75rem;
  line-height: 1.35;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  .admin-no-print,
  .admin-shell {
    display: none !important;
  }

  html,
  body,
  body.admin-body {
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
  }

  .admin-main,
  .admin-order-details-layout,
  .admin-invoice-print,
  .admin-invoice-lang-variants,
  .admin-invoice-lang-panel.is-active,
  .admin-invoice-email-card {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff !important;
    overflow: visible;
  }

  .admin-invoice-lang-panel:not(.is-active),
  .admin-invoice-currency-panel:not(.is-active) {
    display: none !important;
  }

  .admin-invoice-email-card {
    font-size: 10pt;
    line-height: 1.25;
    page-break-after: avoid;
    page-break-inside: avoid;
  }

  .admin-invoice-email-header {
    padding: 0 0 8px;
    page-break-after: avoid;
  }

  .admin-invoice-email-logo {
    width: 72px;
    max-width: 72px;
  }

  .admin-invoice-email-brand-primary {
    font-size: 13pt;
  }

  .admin-invoice-email-brand-secondary,
  .admin-invoice-email-order-id {
    font-size: 8.5pt;
  }

  .admin-invoice-email-title {
    font-size: 13pt;
  }

  .admin-invoice-email-body {
    padding: 8px 0 0;
  }

  .admin-invoice-email-info-box {
    margin-bottom: 8px;
    padding: 8px 10px;
    gap: 2px 12px;
    page-break-inside: avoid;
  }

  .admin-invoice-email-items-section {
    gap: 4px;
    page-break-inside: avoid;
  }

  .admin-invoice-email-items-title {
    font-size: 10.5pt;
  }

  .admin-invoice-email-items td,
  .admin-invoice-email-summary th,
  .admin-invoice-email-summary td {
    padding-top: 2px;
    padding-bottom: 2px;
  }

  .admin-invoice-email-summary-total th,
  .admin-invoice-email-summary-total td {
    padding-top: 4px;
    font-size: 10.5pt;
  }

  .admin-invoice-footnote {
    margin-top: 6px;
    font-size: 8.5pt;
  }
}

.order-history-amount {
  color: var(--brand);
  font-size: 1rem;
  white-space: nowrap;
}

.order-history-copy {
  display: grid;
  gap: 4px;
}

.order-history-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.order-portal-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 0;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.order-portal-status--pending-payment {
  color: #8a5a00;
  background: rgba(255, 196, 77, 0.18);
}

.order-portal-status--confirmed {
  color: #155f46;
  background: rgba(56, 176, 131, 0.16);
}

.order-portal-status--shipped {
  color: #153b5f;
  background: rgba(21, 59, 95, 0.12);
}

.order-portal-status--cancelled {
  color: #8b2f2f;
  background: rgba(214, 74, 74, 0.14);
}

.order-shipping-panel p {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}

.order-shipping-panel p + p {
  margin-top: 4px;
}

.order-shipping-address {
  display: grid;
  gap: 4px;
}

.country-select {
  position: relative;
  display: grid;
  gap: 8px;
}

.country-select label {
  display: grid;
  gap: 8px;
}

.country-select label > span {
  color: var(--muted);
  font-weight: 800;
}

.country-select-control {
  position: relative;
  display: grid;
}

.country-select-search {
  width: 100%;
  padding: 12px 14px;
  -webkit-appearance: none;
  appearance: none;
}

.country-select-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.country-select-list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 280px;
  overflow: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid rgba(87, 139, 188, 0.24);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(55, 106, 154, 0.14);
}

.country-select-list li {
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.country-select-list li.is-selected {
  background: rgba(21, 59, 95, 0.08);
  font-weight: 700;
}

.country-select-list li:hover,
.country-select-list li:focus {
  background: rgba(21, 59, 95, 0.08);
}

.country-select-list li[hidden] {
  display: none;
}

.order-history-row a {
  text-decoration: none;
}

.admin-row-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-inline-form {
  margin: 0;
}

.admin-inline-form button {
  margin: 0;
}

.button.small {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.admin-edit-form {
  margin-bottom: 30px;
}

.photo-order-section h2 {
  margin-bottom: 4px;
}

.photo-order-section p {
  color: var(--muted);
  margin-bottom: 12px;
}

.photo-order-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.photo-order-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: #ffffff;
  cursor: grab;
  padding: 8px;
  transition:
    opacity 160ms ease,
    transform 160ms ease,
    border-color 160ms ease;
}

.photo-order-card.dragging {
  border-color: var(--brand);
  cursor: grabbing;
  opacity: 0.55;
  transform: scale(0.98);
}

.photo-order-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  background: #edf6ff;
  object-fit: contain;
}

.photo-order-card.photo-marked-remove {
  border-color: #f1b4b4;
  opacity: 0.72;
}

.photo-order-card.photo-marked-remove img {
  filter: grayscale(0.35);
}

.photo-remove-field,
.photo-upload-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #41586f;
}

.photo-upload-field {
  margin-top: 14px;
}

.drag-handle {
  color: var(--brand);
  font-size: 0.78rem;
}

.span-2 {
  grid-column: span 2;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.success-message {
  width: fit-content;
  border-radius: 999px;
  background: rgba(40, 120, 75, 0.12);
  color: var(--success) !important;
  padding: 10px 14px;
  font-weight: 900;
}

.error-message {
  width: fit-content;
  border-radius: 999px;
  background: rgba(176, 48, 48, 0.12);
  color: #b03030 !important;
  padding: 10px 14px;
  font-weight: 900;
}

.add-to-cart-anchor {
  position: relative;
  display: inline-flex;
  width: fit-content;
}

.inline-form .add-to-cart-anchor {
  display: flex;
  width: 100%;
}

.add-to-cart-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 12;
  border: 1px solid rgba(40, 120, 75, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(55, 106, 154, 0.14);
  color: var(--success);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.add-to-cart-tooltip.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.purchase-box .add-to-cart-anchor {
  display: flex;
  width: 100%;
}

.purchase-box .add-to-cart-anchor button {
  width: 100%;
}

.order-payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 18px;
  align-items: start;
  padding: 18px 0 28px;
}

.order-payment-summary,
.order-payment-panel {
  display: grid;
  gap: 14px;
}

.order-summary-table {
  width: 100%;
  border-collapse: collapse;
  border: 0;
}

.order-summary-table th,
.order-summary-table td {
  padding: 8px 0;
  border: 0;
  text-align: left;
  vertical-align: top;
  line-height: 1.55;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 700;
}

.order-summary-table th {
  width: 42%;
  padding-right: 14px;
}

.order-summary-table__total th,
.order-summary-table__total td {
  padding-top: 14px;
}

.order-payment-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.stripe-payment-element {
  padding: 8px 0 4px;
}

.order-payment-message {
  min-height: 1.25rem;
  margin: 0;
  color: #9b3b2f;
  font-size: 0.92rem;
}

.order-payment-alt-form {
  margin: 0;
}

.shipping-rates-layout,
.legal-page-layout {
  display: grid;
  gap: 18px;
  padding: 18px 0 40px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  margin: 0;
  font-size: 1.1rem;
}

.legal-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.legal-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.shipping-rates-panel {
  display: grid;
  gap: 14px;
}

.shipping-rates-processing p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shipping-processing-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shipping-processing-list li {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: rgba(247, 250, 252, 0.9);
}

.shipping-processing-list strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.shipping-processing-list span {
  color: var(--muted);
  line-height: 1.6;
}

.shipping-rates-table {
  width: 100%;
  border-collapse: collapse;
}

.shipping-rates-table--local tbody th,
.shipping-rates-table--intl tbody th {
  width: 28%;
  min-width: 140px;
}

.shipping-rates-table--local td:nth-child(2),
.shipping-rates-table--local .shipping-rates-fee-cell {
  width: 22%;
  min-width: 11rem;
  white-space: pre-line;
  word-break: break-word;
}

.shipping-rates-intro--compact {
  max-width: 42rem;
  margin-bottom: 14px;
}

.shipping-rates-panel--intl {
  display: grid;
  gap: 0;
}

.shipping-rates-table--intl tbody th {
  width: 22%;
  font-weight: 600;
}

.shipping-rates-table--intl td:nth-child(2) {
  width: 16%;
  white-space: nowrap;
}

.shipping-rates-table--intl td:nth-child(3) {
  width: 10%;
  white-space: nowrap;
}

.shipping-rates-table--intl td:nth-child(4) {
  width: 14%;
  white-space: nowrap;
}

.shipping-rates-intro {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.shipping-rates-table--detailed td,
.shipping-rates-table--local td,
.shipping-rates-table--intl td,
.shipping-rates-table--intl tbody th {
  font-size: 0.94rem;
  line-height: 1.55;
}

.shipping-rates-table th,
.shipping-rates-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.shipping-rates-table thead th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.shipping-rates-table tbody th {
  width: 38%;
  font-weight: 700;
}

.shipping-rates-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 960px) {
  .shipping-rates-table--detailed,
  .shipping-rates-table--local,
  .shipping-rates-table--intl {
    display: block;
  }

  .shipping-rates-table--detailed tbody,
  .shipping-rates-table--local tbody,
  .shipping-rates-table--intl tbody {
    display: block;
  }

  .shipping-rates-table--detailed thead,
  .shipping-rates-table--local thead,
  .shipping-rates-table--intl thead {
    display: none;
  }

  .shipping-rates-table--detailed tbody tr,
  .shipping-rates-table--intl tbody tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .shipping-rates-table--local tbody tr {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }

  .shipping-rates-table--detailed tbody tr:last-child,
  .shipping-rates-table--local tbody tr:last-child,
  .shipping-rates-table--intl tbody tr:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .shipping-rates-table--detailed tbody th,
  .shipping-rates-table--detailed tbody td,
  .shipping-rates-table--local tbody th,
  .shipping-rates-table--local tbody td,
  .shipping-rates-table--intl tbody th,
  .shipping-rates-table--intl tbody td {
    display: grid;
    grid-template-columns: minmax(4.8rem, 38%) minmax(0, 1fr);
    gap: 4px 10px;
    align-items: baseline;
    width: auto;
    min-width: 0;
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .shipping-rates-table--local tbody td.shipping-rates-fee-cell {
    white-space: pre-line;
  }

  .shipping-rates-table--detailed tbody th,
  .shipping-rates-table--local tbody th,
  .shipping-rates-table--local tbody td {
    grid-column: 1 / -1;
  }

  .shipping-rates-table--local tbody th {
    display: grid;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1.55;
  }

  .shipping-rates-table--detailed tbody th {
    grid-column: 1 / -1;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(87, 139, 188, 0.16);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .shipping-rates-table--detailed tbody th::before {
    content: none;
  }

  .shipping-rates-table--local tbody th::before,
  .shipping-rates-table--detailed tbody td::before,
  .shipping-rates-table--local tbody td::before,
  .shipping-rates-table--intl tbody td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.35;
    text-transform: uppercase;
  }

  .shipping-rates-table--intl tbody th {
    grid-column: 1 / -1;
    grid-row: 1;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid rgba(87, 139, 188, 0.16);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
  }

  .shipping-rates-table--intl tbody th::before {
    content: none;
  }

  .shipping-rates-table--intl tbody td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .shipping-rates-table--intl tbody td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .shipping-rates-table--intl tbody td:nth-child(4) {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .shipping-rates-table--detailed tbody td:nth-child(2) {
    grid-column: 1;
  }

  .shipping-rates-table--detailed tbody td:nth-child(3) {
    grid-column: 2;
  }

  .shipping-rates-table--detailed tbody td:nth-child(4) {
    grid-column: 1 / -1;
  }

  .shipping-rates-panel {
    overflow: hidden;
  }

  .shipping-rates-layout .button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 860px) {
  .order-payment-layout {
    grid-template-columns: 1fr;
  }
}

.invoice {
  display: grid;
  gap: 14px;
  margin-bottom: 60px;
}

.empty-state {
  padding: 24px;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
  padding: 26px 0 42px;
  border-top: 1px solid var(--line);
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.footer-brand div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: #153b5f;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a,
.footer-account-dropdown summary {
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.footer-checkout-steps {
  display: grid;
  gap: 4px;
  margin: 6px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.footer-checkout-steps li::marker {
  color: var(--brand);
  font-weight: 900;
}

.footer-account-dropdown {
  position: relative;
}

.footer-account-dropdown summary {
  cursor: pointer;
  list-style: none;
}

.footer-account-dropdown summary::-webkit-details-marker {
  display: none;
}

.footer-account-dropdown summary::after {
  content: "▾";
  margin-left: 6px;
}

.footer-account-dropdown[open] summary,
.footer-account-dropdown summary:hover {
  color: var(--brand-dark);
}

.footer-account-dropdown div {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 35;
  display: grid;
  min-width: 150px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 16px 32px rgba(55, 106, 154, 0.16);
  overflow: hidden;
}

.footer-account-dropdown div a {
  padding: 9px 10px;
}

.footer-account-dropdown div a.account-menu-action,
.footer-account-dropdown div .account-menu-action {
  appearance: none;
  background: transparent;
  border: 0;
  box-sizing: border-box;
  color: #31516f;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.footer-account-dropdown div .account-logout-form {
  margin: 0;
  border-top: 1px solid rgba(87, 139, 188, 0.12);
}

.footer-account-dropdown div .account-logout-form .account-menu-action {
  color: #8b3a3a;
}

.footer-account-dropdown div a:hover,
.footer-account-dropdown div .account-menu-action:hover {
  background: #eef6ff;
  color: var(--brand-dark);
}

.footer-account-dropdown div .account-logout-form .account-menu-action:hover {
  background: #fff0f0;
  color: #6f2f2f;
}

.footer-bottom {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #71859a;
  font-size: 0.86rem;
}

.tone-clay,
.tone-sand {
  background: linear-gradient(145deg, #b7d9f6, #4f8fc8);
}

.tone-indigo,
.tone-graphite,
.tone-slate {
  background: linear-gradient(145deg, #88bdea, #2f679a);
}

.tone-olive,
.tone-forest,
.tone-sage {
  background: linear-gradient(145deg, #d4ecff, #75aeda);
}

.tone-garnet,
.tone-onyx,
.tone-copper,
.tone-walnut {
  background: linear-gradient(145deg, #9fcdf2, #356f9f);
}

.category-card,
.category-detail-card,
.category-hero-overlay {
  background:
    linear-gradient(145deg, rgba(21, 59, 95, 0.72), rgba(7, 29, 55, 0.84)),
    var(--category-bg),
    #153b5f;
  background-position: center;
  background-size: cover;
}

@media (max-width: 1040px) {
  .hero-carousel-group,
  .above-fold-products {
    content-visibility: auto;
    contain-intrinsic-size: auto 320px;
  }

  .section {
    content-visibility: auto;
    contain-intrinsic-size: auto 480px;
  }

  .hero,
  .product-detail,
  .cart-layout,
  .checkout-layout,
  .page-hero.split,
  .blog-post-layout {
    grid-template-columns: 1fr;
  }

  .product-detail {
    grid-template-areas:
      "gallery"
      "summary"
      "copy";
    row-gap: 14px;
  }

  .blog-related-items {
    position: static;
  }

  .category-grid,
  .product-grid,
  .trust-grid,
  .service-band,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-card {
    position: static;
  }

  .product-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1040px) and (min-width: 861px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .brand {
    flex: 1 1 200px;
    gap: 12px;
    min-width: 0;
  }

  .header-search {
    order: 3;
    flex: 1 1 100%;
    max-width: none;
    margin: 0;
  }

  .brand-mark {
    width: 68px;
    height: 68px;
    margin: 2px 8px 2px 0;
  }

  .brand-copy {
    line-height: 1.2;
  }

  .brand-copy small {
    line-height: 1.35;
    white-space: normal;
  }

  .main-nav,
  .account-nav {
    flex: 0 1 auto;
  }
}

@media (max-width: 860px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand account"
      "search search"
      "nav nav";
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
  }

  .header-search {
    grid-area: search;
    max-width: none;
    width: 100%;
    margin: 0;
  }

  .site-header.is-compact {
    gap: 10px;
    padding: 8px 10px;
  }

  .brand {
    grid-area: brand;
    gap: 10px;
    min-width: 0;
    align-self: center;
  }

  .brand-mark {
    width: 54px;
    height: 54px;
    margin: 0;
    flex-shrink: 0;
  }

  .site-header.is-compact .brand-mark {
    width: 44px;
    height: 44px;
    margin: 0;
  }

  .brand-copy {
    font-size: 1.02rem;
    line-height: 1.25;
    min-width: 0;
  }

  .site-header.is-compact .brand-copy {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .brand-copy small {
    margin-top: 3px;
    font-size: 0.64rem;
    letter-spacing: 0.04em;
    line-height: 1.35;
    white-space: normal;
  }

  .site-header.is-compact .brand-copy small {
    font-size: 0.58rem;
  }

  .main-nav {
    grid-area: nav;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    padding: 0;
  }

  .main-nav a,
  .main-nav .blog-dropdown summary {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .main-nav .blog-dropdown {
    grid-column: auto;
  }

  .main-nav .blog-dropdown summary {
    text-align: left;
    width: auto;
  }

  .account-nav {
    grid-area: account;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    margin-left: 0;
    padding: 0;
  }

  .account-nav a,
  .account-dropdown summary {
    padding: 8px 12px;
    font-size: 0.84rem;
  }

  .utility-bar {
    gap: 10px;
    padding-top: 8px;
  }

  .shipping-policy-banner {
    padding: 8px 12px;
    font-size: 0.7rem;
  }

  .utility-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
  }

  .selector-group {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .exchange-rate {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .product-filter-collapse {
    margin: 12px auto 0;
    width: min(1440px, calc(100% - 24px));
    padding: 0;
  }

  .product-filter-collapse-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    color: #153b5f;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 850;
  }

  .product-filter-collapse-summary::-webkit-details-marker {
    display: none;
  }

  .product-filter-collapse-summary::after {
    color: var(--muted);
    content: '+';
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1;
  }

  .product-filter-collapse[open] .product-filter-collapse-summary::after {
    content: '−';
  }

  .product-filter-collapse .product-filter-bar {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 0;
    width: 100%;
    padding: 0 16px 16px;
    border: none;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .product-filter-collapse .listing-filter-bar {
    margin-top: 0;
  }
}

@media (min-width: 641px) {
  .product-filter-collapse.panel {
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .product-filter-collapse-summary {
    display: none;
  }
}

@media (max-width: 640px) {
  .product-detail {
    grid-template-areas:
      "summary"
      "gallery"
      "copy";
  }

  .utility-bar {
    display: none;
  }

  .footer-preference-bar {
    display: block;
    padding-top: 14px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }

  .footer-preference-bar .selector-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
  }

  .footer-preference-bar .currency-nav,
  .footer-preference-bar .language-nav {
    flex: 1 1 140px;
    display: flex;
  }

  .footer-preference-bar .preference-dropdown summary {
    width: 100%;
  }
}

@media (max-width: 700px) {
  .selector-group,
  .currency-nav,
  .language-nav,
  .utility-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-post-grid:not(.is-list-view),
  .blog-topic-grid:not(.is-list-view) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-post-grid.is-list-view {
    gap: 14px;
  }

  .blog-post-grid.is-list-view .blog-post-card {
    grid-template-columns: 1fr;
  }

  .blog-post-grid.is-list-view .blog-post-card-image {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .blog-post-grid.is-list-view .blog-post-card-copy {
    padding: 14px 16px 18px;
  }

  .blog-post-grid.is-list-view .blog-post-card-copy h2 {
    font-size: 1rem;
    line-height: 1.3;
  }

  .blog-post-grid.is-list-view .blog-post-card-copy p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .selector-group {
    gap: 6px;
  }

  .currency-nav {
    display: flex;
  }

  .language-nav {
    display: flex;
  }

  .preference-dropdown summary {
    width: 100%;
  }

  .category-grid,
  .trust-grid,
  .service-band,
  .site-footer,
  .checkout-layout .panel,
.contact-layout,
.contact-form,
.account-auth-layout,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-content {
    gap: 8px;
    padding: 10px;
  }

  .product-card h3 {
    min-height: 0;
    font-size: 0.92rem;
    line-height: 1.15;
  }

  .product-art {
    min-height: 108px;
    padding: 12px;
  }

  .product-meta {
    font-size: 0.68rem;
    gap: 5px;
  }

  .product-meta .category-tag {
    padding: 3px 6px;
    font-size: 0.62rem;
  }

  .tag-row {
    gap: 5px;
  }

  .tag-row span {
    padding: 4px 6px;
    font-size: 0.68rem;
  }

  .product-card .inline-form button {
    padding: 10px 12px;
    font-size: 0.82rem;
  }

  .span-2 {
    grid-column: auto;
  }

  .account-login-card,
  .account-login-card .login-main-form,
  .account-login-card > .login-forgot-panel,
  .account-login-card .login-forgot-form {
    grid-template-columns: 1fr;
  }

  .account-login-card .login-main-form > *,
  .account-login-card > .login-forgot-panel > *,
  .account-login-card .login-forgot-form > * {
    grid-column: 1 / -1;
  }

  .account-login-card .login-main-form button[type='submit'],
  .account-login-card .login-forgot-form button[type='submit'] {
    width: 100%;
  }

  .account-register-card,
  .account-register-card .register-main-form {
    grid-template-columns: 1fr;
  }

  .account-register-card > .google-auth-button,
  .account-register-card .register-main-form > * {
    grid-column: 1 / -1;
  }

  .account-register-card .register-main-form button[type='submit'] {
    width: 100%;
  }

  .account-register-card .register-main-form label,
  .account-register-card .register-main-form label input {
    width: 100%;
  }

  .login-forgot-link-wrap {
    justify-self: start;
  }

  .login-forgot-intro {
    line-height: 1.55;
  }

  .contact-layout > * {
    min-width: 0;
    max-width: 100%;
  }

  .contact-form > * {
    grid-column: 1 / -1;
  }

  .purchase-box,
  .certification-list,
  .quantity-form,
  .product-filter-bar,
  .cart-line,
  .cart-line-main {
    grid-template-columns: 1fr;
  }

  .cart-line-thumb {
    width: 72px;
    height: 72px;
  }

  .product-detail-art {
    min-height: 380px;
  }

  .gallery-modal {
    place-items: center;
  }

  .gallery-modal-panel {
    width: min(92vw, 760px);
    height: min(82vh, 720px);
  }
}

.admin-body {
  background: #f5f9ff;
}

.admin-main {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  padding-bottom: 40px;
}

.admin-shell {
  width: min(1440px, calc(100% - 24px));
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid rgba(87, 139, 188, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 38px rgba(55, 106, 154, 0.12);
}

.admin-shell-brand {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.admin-shell-brand strong {
  color: var(--brand-dark);
  font-size: 1.05rem;
}

.admin-shell-brand span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.admin-nav a,
.admin-logout-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(87, 139, 188, 0.18);
  border-radius: 6px;
  background: #ffffff;
  color: #31516f;
  font-size: 0.86rem;
  font-weight: 850;
  text-decoration: none;
}

.admin-nav a.active {
  background: linear-gradient(135deg, #1f5f97, #6fa8dc);
  border-color: transparent;
  color: #ffffff;
}

.admin-logout-form {
  margin-left: auto;
}

.admin-login-form {
  max-width: 520px;
}

.admin-error {
  color: #b42318;
  font-weight: 700;
}

.admin-stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-bottom: 30px;
}

.admin-stat-card {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.admin-stat-card strong {
  color: var(--brand-dark);
  font-size: 1.6rem;
  line-height: 1;
}

.admin-stat-card span {
  color: var(--muted);
  font-size: 0.9rem;
}

.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-form label.settings-checkbox,
.panel label.settings-checkbox,
.contact-form label.settings-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
}

.settings-checkbox input,
.profile-form label.settings-checkbox input,
.panel label.settings-checkbox input {
  width: auto;
  flex: 0 0 auto;
  margin: 0;
}

@media (max-width: 900px) {
  .admin-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-logout-form {
    margin-left: 0;
  }
}

.maintenance-body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(120, 176, 228, 0.18), transparent 42%),
    linear-gradient(180deg, #f5f9ff 0%, #eef4fb 100%);
}

.maintenance-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.maintenance-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 0 32px;
}

.maintenance-shell {
  width: min(720px, calc(100% - 32px));
  padding: 36px 28px;
  border: 1px solid rgba(87, 139, 188, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 48px rgba(55, 106, 154, 0.14);
  text-align: center;
}

.maintenance-brand-mark {
  margin: 0 auto 16px;
}

.maintenance-shell h1 {
  margin: 8px 0 12px;
}

.maintenance-footer {
  width: min(1440px, calc(100% - 24px));
  margin: 0 auto;
  padding: 32px 0 28px;
  text-align: center;
}

.maintenance-footer .footer-bottom {
  margin: 0;
}

.maintenance-countdown-label {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: #4f6d8d;
}

.maintenance-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.maintenance-countdown-grid div {
  padding: 14px 10px;
  border-radius: 8px;
  background: rgba(87, 139, 188, 0.08);
}

.maintenance-countdown-grid strong {
  display: block;
  font-size: 1.6rem;
  line-height: 1.1;
}

.maintenance-countdown-grid span {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #4f6d8d;
}

.maintenance-no-countdown {
  margin: 0;
  color: #35516d;
}

.form-hint {
  margin: -4px 0 0;
  font-size: 0.92rem;
  color: #4f6d8d;
}

@media (max-width: 560px) {
  .maintenance-countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
