/* Member-facing readability and contrast improvements. */
body,
body *:not(svg):not(svg *) {
  font-family: "Inter", "Roboto", Arial, sans-serif !important;
}

body {
  font-size: 16px;
  line-height: 1.5;
}

.sidebar .nav-item { font-size: 14px; line-height: 1.4; }
.sidebar .side-label { font-size: 11px; }
.breadcrumbs { font-size: 13px; }
.welcome-row p,
.view-title p { font-size: 15px; line-height: 1.55; }

.product-card {
  border-color: #e1e6ef;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(28, 39, 67, .10);
}
.product-card:hover {
  box-shadow: 0 9px 22px rgba(28, 39, 67, .14);
}
.product-card .product-details { padding: 16px; }
.product-card .product-seller { font-size: 14px; line-height: 1.45; }
.product-card .product-title { font-size: 17px; line-height: 1.4; }
.product-card .product-desc { font-size: 14px; line-height: 1.55; color: #65718a; }
.product-card .product-price { font-size: 19px; line-height: 1.35; }
.product-card .product-price small,
.product-card .product-rating,
.product-card .product-stock { font-size: 13px; line-height: 1.4; }
.product-card .product-badge { font-size: 12px; }
.product-card .add-cart { min-height: 44px; font-size: 14px; }

.product-detail-card {
  border-color: #e1e6ef;
  box-shadow: 0 5px 18px rgba(28, 39, 67, .10);
}
.product-detail-copy h1 { font-size: 34px; line-height: 1.25; }
.product-type-pill { font-size: 14px; }
.product-detail-seller { font-size: 16px; line-height: 1.5; }
.product-detail-description { font-size: 17px; line-height: 1.7; }
.product-detail-copy .field label { font-size: 15px; line-height: 1.4; }
.product-detail-copy .field select { font-size: 16px; }
.variant-spec-grid > div { font-size: 15px; line-height: 1.45; }
.product-detail-copy .cart-summary { font-size: 16px; }
.product-detail-copy .cart-summary strong { font-size: 26px; }
.product-detail-copy .button-primary { min-height: 52px; font-size: 16px; }
.product-detail-copy .demo-note { font-size: 14px; line-height: 1.55; }

.modal:has(#checkoutButton) .modal-head h2,
.modal:has(.modal-head + .empty-state) .modal-head h2 { font-size: 26px; }
.modal:has(#checkoutButton) .modal-head p,
.modal:has(.modal-head + .empty-state) .modal-head p { font-size: 15px; line-height: 1.55; }
.modal:has(#checkoutButton) .cart-line-copy strong { font-size: 16px; line-height: 1.45; }
.modal:has(#checkoutButton) .cart-line-copy small { font-size: 14px; line-height: 1.55; }
.modal:has(#checkoutButton) .cart-line-price { font-size: 16px; }
.modal:has(#checkoutButton) .cart-summary { font-size: 16px; }
.modal:has(#checkoutButton) .cart-summary strong { font-size: 24px; }
.modal:has(#checkoutButton) #checkoutButton { min-height: 54px; font-size: 16px; }
.modal:has(#checkoutButton) .demo-note { font-size: 14px; line-height: 1.55; }

.generic-page:has(.checkout-summary-panel) .checkout-summary-panel,
.generic-page:has(.checkout-summary-panel) .checkout-payment-panel {
  box-shadow: 0 4px 16px rgba(28, 39, 67, .08);
}
.generic-page:has(.checkout-summary-panel) .cart-line-copy strong { font-size: 16px; line-height: 1.5; }
.generic-page:has(.checkout-summary-panel) .cart-line-copy small { font-size: 14px; line-height: 1.6; }
.generic-page:has(.checkout-summary-panel) .cart-line-price { font-size: 16px; line-height: 1.45; }
.generic-page:has(.checkout-summary-panel) .cart-summary { font-size: 16px; }
.generic-page:has(.checkout-summary-panel) .cart-summary strong { font-size: 24px; }
.generic-page:has(.checkout-summary-panel) .checkout-payment-panel .method-card strong { font-size: 16px; }
.generic-page:has(.checkout-summary-panel) .checkout-payment-panel .method-card small { font-size: 14px; line-height: 1.5; }
.generic-page:has(.checkout-summary-panel) .checkout-shortfall { font-size: 16px; }
.generic-page:has(.checkout-summary-panel) .checkout-payment-panel > .button { min-height: 52px; font-size: 16px; }
.order-detail-pair { font-size: 15px; line-height: 1.5; }

body.dark .product-card {
  border-color: #3a425b;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .24);
}
body.dark .product-card:hover { box-shadow: 0 9px 24px rgba(0, 0, 0, .32); }
body.dark .product-card .product-desc { color: #c3cbe0; }
body.dark .product-card .product-price,
body.dark .product-card .product-price small,
body.dark .product-detail-copy .cart-summary strong,
body.dark .modal:has(#checkoutButton) .cart-line-price,
body.dark .modal:has(#checkoutButton) .cart-summary strong,
body.dark .generic-page:has(.checkout-summary-panel) .cart-line-price,
body.dark .generic-page:has(.checkout-summary-panel) .cart-summary strong,
body.dark .order-detail-pair strong { color: #fff; }
body.dark .product-detail-card {
  border-color: #3a425b;
  box-shadow: 0 5px 20px rgba(0, 0, 0, .28);
}
body.dark .generic-page:has(.checkout-summary-panel) .checkout-summary-panel,
body.dark .generic-page:has(.checkout-summary-panel) .checkout-payment-panel {
  box-shadow: 0 4px 18px rgba(0, 0, 0, .24);
}

@media (max-width: 760px) {
  .product-card .product-details { padding: 14px; }
  .product-card .product-title { font-size: 16px; }
  .product-card .product-desc { font-size: 14px; }
  .product-card .product-price { font-size: 18px; }
  .product-detail-copy h1 { font-size: 29px; }
  .product-detail-description { font-size: 16px; }
  .modal:has(#checkoutButton) .cart-line-copy small { font-size: 14px; }
  .generic-page:has(.checkout-summary-panel) .cart-line-copy strong { font-size: 15px; }
  .generic-page:has(.checkout-summary-panel) .cart-line-price { font-size: 15px; }
}
