/* Fluid storefront typography and compact, accessible login controls. */
html { font-size: clamp(17px, 1rem + .2vw, 19px); }
body { font-size: 1rem; }
/* Consistent native checkbox rows, including Django's label/input paragraphs. */
body input[type="checkbox"] { appearance: auto; width: 16px !important; height: 16px !important; min-height: 16px !important; min-width: 16px; max-width: 16px; padding: 0; margin: 0; flex: 0 0 16px; accent-color: var(--gold); vertical-align: middle; }
body label:has(> input[type="checkbox"]):not(.size-filter), body p:has(> input[type="checkbox"]) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 36px; line-height: 1.4; cursor: pointer; }
body p:has(> input[type="checkbox"]) > input { order: -1; }
body p:has(> input[type="checkbox"]) > label { display: inline; margin: 0; }
body p:has(> input[type="checkbox"]) > .helptext { flex-basis: 100%; }
.account-actions .button[aria-current="page"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.profile-marketing label { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.profile-marketing input[type="checkbox"] { appearance: auto; width: 16px; height: 16px; min-height: 16px; min-width: 16px; max-width: 16px; flex: 0 0 16px; padding: 0; margin: 0; accent-color: var(--gold); }
.payment-method-layout { grid-template-columns: minmax(0,1.2fr) minmax(320px,1fr); }
.payment-method-layout h2, .account-actions h2 { font-size: clamp(1.4rem,2.4vw,2rem); }
.payment-method-layout .account-card { min-width: 0; }
.payment-method-layout .button { white-space: normal; width: 100%; margin-top: 20px; }
@media(max-width:800px) { .payment-method-layout { grid-template-columns: minmax(0,1fr); } }
.announcement, footer, .footer-links, .footer-bottom { font-size: .9rem; }
.auth-shell { width: 100%; max-width: 620px; padding: clamp(32px, 5vw, 72px) 24px; }
.auth-shell h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.1; }
.auth-shell p, .auth-shell label, .auth-shell .button, .auth-shell input { font-size: 1rem; }
.auth-shell .eyebrow, .auth-shell .auth-divider { font-size: .85rem; }
.auth-shell .button { white-space: normal; min-height: 52px; }
#login-options .remember-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 0; cursor: pointer; line-height: 1.4; }
#login-options .remember-choice input[type="checkbox"] { appearance: auto; display: inline-block; width: 16px; height: 16px; min-width: 16px; min-height: 16px; max-width: 16px; padding: 0; margin: 0; flex: 0 0 16px; accent-color: var(--gold); }
#login-options .remember-choice input:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (max-width: 640px) {
  .auth-shell { padding: 32px 20px 48px; }
  .auth-shell .auth-form, .auth-shell .field { min-width: 0; }
  .auth-shell input:not([type="checkbox"]), .auth-shell .button { width: 100%; max-width: 100%; box-sizing: border-box; }
  .auth-divider span { white-space: normal; text-align: center; }
  footer { overflow-wrap: anywhere; }
}

/* Bright storefront surfaces with high-contrast text and controls. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #fcfbf8;
  --surface: #f3efe7;
  --text: #252823;
  --muted: #555b52;
  --line: #cec9bf;
  --gold: #72552c;
}
html[data-theme="light"] .header,
html[data-theme="light"] footer { background: #fff; }
html[data-theme="light"] .announcement { background: #f3efe7; color: #41483d; }
html[data-theme="light"] .hero-image,
html[data-theme="light"] .product-image,
html[data-theme="light"] .gallery .detail-image,
html[data-theme="light"] .gallery-thumbnails a { background: #f0ede6; }
html[data-theme="light"] .button { background: #fff; color: var(--text); }
html[data-theme="light"] .button.light,
html[data-theme="light"] .button:hover,
html[data-theme="light"] .account-actions .button[aria-current="page"] {
  background: var(--gold); border-color: var(--gold); color: #fff;
}
html[data-theme="light"] .button.danger { background: #692e2a; color: #fff; }
html[data-theme="light"] .button.danger:hover { background: #843a35; }
html[data-theme="light"] .filter-count,
html[data-theme="light"] .size-filter input:checked + span,
html[data-theme="light"] .page-numbers span[aria-current],
html[data-theme="light"] .skip:focus { color: #fff; }
html[data-theme="light"] input,
html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: #fff; color: var(--text); border-color: #858b80;
}
html[data-theme="light"] textarea { padding: 12px; font: inherit; }
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #64695f; opacity: 1; }
html[data-theme="light"] .message.error { background: #fff0ec; color: #8b291b; border-color: #b64d3c; }
html[data-theme="light"] [aria-invalid="true"] { border-color: #a33424 !important; outline-color: #a33424; }
html[data-theme="light"] .field:has(.errorlist) { border-left-color: #a33424; }
html[data-theme="light"] .sort-menu summary:focus-visible { outline-color: var(--gold); }
html[data-theme="light"] .mobile-buy-bar { background: rgba(252,251,248,.98); }
