/* The Well Kart — an additive, self-contained theme for the existing PHP app.
   Load after site.css and categories.css. No external fonts or image requests. */

:is(.well-kart-storefront, .well-kart-admin) {
  --wk-navy: #173951;
  --wk-ink: #183644;
  --wk-teal: #247d79;
  --wk-green: #3c7d32;
  --wk-mint: #e0f1df;
  --wk-surface: #f5f8f3;
  --wk-font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --wk-heading: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --bg: #fff;
  --panel: #fff;
  --panel2: #f4f7f3;
  --line: #e0e8e2;
  --muted: #62736b;
  --text: #183644;
  --cyan: #247d79;
  --purple: #247d79;
  --pink: #9c5945;
  --lime: #3c7d32;
  --radius: 14px;
  --max: 1376px;
  color-scheme: light;
  margin: 0;
  min-width: 280px;
  background: var(--bg);
  color: var(--text);
  font-family: var(--wk-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html:has(> .well-kart-storefront),
html:has(> .well-kart-admin) {
  color-scheme: light;
  background: #fff;
  scroll-padding-top: 24px;
}

:is(.well-kart-storefront, .well-kart-admin) :is(h1, h2, h3, h4) {
  color: var(--wk-navy);
  font-family: var(--wk-heading);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}

:is(.well-kart-storefront, .well-kart-admin) h1 {
  font-size: clamp(32px, 3.7vw, 48px);
  letter-spacing: -.04em;
}

:is(.well-kart-storefront, .well-kart-admin) h2 {
  font-size: 30px;
  letter-spacing: -.035em;
}

:is(.well-kart-storefront, .well-kart-admin) h3 { letter-spacing: -.02em; }
:is(.well-kart-storefront, .well-kart-admin) a { text-underline-offset: 4px; }
:is(.well-kart-storefront, .well-kart-admin) a:hover { color: var(--wk-teal); }
:is(.well-kart-storefront, .well-kart-admin) :is(button, a, input, select, textarea) { touch-action: manipulation; }
:is(.well-kart-storefront, .well-kart-admin) :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--wk-teal);
  outline-offset: 4px;
}

:is(.well-kart-storefront, .well-kart-admin) ::selection { background: #d7eacb; color: var(--wk-navy); }
:is(.well-kart-storefront, .well-kart-admin) :is(small, .small, .field-note) { font-size: 12px; }
:is(.well-kart-storefront, .well-kart-admin) .muted { color: var(--muted); }
:is(.well-kart-storefront, .well-kart-admin) .text-gradient {
  background: none;
  color: var(--wk-green);
  -webkit-text-fill-color: currentColor;
}

:is(.well-kart-storefront, .well-kart-admin) .eyebrow,
.well-kart-storefront .wk-eyebrow {
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .1em;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--wk-green);
}

.well-kart-storefront .container { width: min(var(--max), calc(100% - 96px)); }
:is(.well-kart-storefront, .well-kart-admin) .wk-skip-link {
  position: fixed;
  z-index: 150;
  top: -100px;
  left: 16px;
  padding: 12px 18px;
  border-radius: 7px;
  background: var(--wk-navy);
  color: #fff;
  opacity: 0;
  pointer-events: none;
}

:is(.well-kart-storefront, .well-kart-admin) > a.sr-only:focus,
:is(.well-kart-storefront, .well-kart-admin) .wk-skip-link:focus {
  position: fixed;
  z-index: 150;
  top: 12px;
  left: 16px;
  width: auto;
  height: auto;
  padding: 12px 18px;
  margin: 0;
  overflow: visible;
  clip: auto;
  border-radius: 7px;
  background: var(--wk-navy);
  color: #fff;
  white-space: normal;
  opacity: 1;
  pointer-events: auto;
}

/* Header, original logo crop, and progressively enhanced navigation. */
.well-kart-storefront .wk-announcement {
  background: var(--wk-navy);
  color: #fff;
  font-size: 12px;
  letter-spacing: .015em;
}

.well-kart-storefront .wk-announcement > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 34px;
  padding-block: 6px;
}

.well-kart-storefront .wk-announcement strong { font-weight: 600; color: #fff; }
.well-kart-storefront .wk-announcement span:last-child { color: #e0ece5; }
.well-kart-storefront .wk-announcement .demo-badge {
  color: #e0ece5;
  border-color: #7b95a0;
  font-size: 12px;
}

.well-kart-storefront .wk-header,
.well-kart-storefront .site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.well-kart-storefront .wk-header-main {
  display: flex;
  align-items: center;
  gap: 40px;
  min-height: 108px;
}

:is(.well-kart-storefront, .well-kart-admin) .wk-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  gap: 0;
  line-height: 1;
}

:is(.well-kart-storefront, .well-kart-admin) .wk-logo-window {
  position: relative;
  display: block;
  width: 252px;
  max-width: 100%;
  aspect-ratio: 1580 / 400;
  overflow: hidden;
  background: #fff;
}

/* The source remains unchanged: 2048 × 1143, content at 245,370,1580,400. */
:is(.well-kart-storefront, .well-kart-admin) .wk-logo-window > img {
  position: absolute;
  top: -92.5%;
  left: -15.506329%;
  right: auto;
  bottom: auto;
  width: 129.620253%;
  max-width: none;
  height: auto;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: initial;
  transform: none;
  border-radius: 0;
  background: #fff;
}

:is(.well-kart-storefront, .well-kart-admin) .wk-custom-logo > img {
  width: auto;
  max-width: 252px;
  height: auto;
  max-height: 65px;
  object-fit: contain;
}

.well-kart-storefront .wk-search {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1 1 360px;
  gap: 10px;
  width: auto;
  min-width: 160px;
  max-width: 625px;
  height: 48px;
  padding: 0 6px 0 15px;
  border: 1px solid #dfe7e0;
  border-radius: 8px;
  background: #f7f9f6;
}

.well-kart-storefront .wk-search > svg { color: #6b7d72; width: 20px; height: 20px; }
.well-kart-storefront .wk-search input:not([type="hidden"]) {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--wk-ink);
  box-shadow: none;
  font-size: 14px;
}

.well-kart-storefront .wk-search input::placeholder { color: #69796e; opacity: 1; }
.well-kart-storefront .wk-search:focus-within { outline: 2px solid var(--wk-teal); outline-offset: 3px; }
.well-kart-storefront .wk-search button {
  position: static;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #dce5dc;
  border-radius: 5px;
  background: #fff;
  color: var(--wk-navy);
  font-size: 14px;
  font-weight: 600;
}

.well-kart-storefront .wk-search button:hover { background: #edf4e8; }
.well-kart-storefront .wk-header-actions { display: flex; align-items: center; gap: 23px; margin-left: auto; }
.well-kart-storefront .wk-header-actions > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  color: var(--wk-navy);
  font-size: 14px;
  white-space: nowrap;
}

.well-kart-storefront .wk-header-actions > a:hover { color: var(--wk-teal); }
.well-kart-storefront .wk-header-actions > a > svg { width: 24px; height: 24px; }
.well-kart-storefront .wk-basket { font-weight: 600; line-height: 1.3; }
.well-kart-storefront .wk-basket > span:not(.wk-count) { display: block; }
.well-kart-storefront .wk-basket small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.well-kart-storefront .wk-count {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 24px;
  height: 24px;
  padding-inline: 5px;
  border-radius: 50%;
  background: #edf4e7;
  color: var(--wk-green);
  font-size: 12px;
  font-weight: 700;
}

.well-kart-storefront .wk-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 53px;
  padding-block: 0;
  border-top: 1px solid #edf1ec;
}

.well-kart-storefront .wk-nav-links {
  display: flex;
  align-items: center;
  gap: 27px;
  min-width: 0;
  font-size: 14px;
  font-weight: 500;
}

.well-kart-storefront .wk-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 51px;
  padding: 12px 0;
  white-space: nowrap;
  color: var(--wk-ink);
}

.well-kart-storefront .wk-nav-links a:first-child { font-weight: 700; }
.well-kart-storefront .wk-nav-links a.active,
.well-kart-storefront .wk-nav-links a[aria-current="page"] {
  color: var(--wk-green);
  box-shadow: inset 0 -2px 0 #75a961;
}

.well-kart-storefront .wk-nav-links a:hover { color: var(--wk-green); }
.well-kart-storefront .wk-nav-links a[href*="flag=offer"] { color: var(--wk-green); font-weight: 600; }
.well-kart-storefront .wk-nav-row .nav-note { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.well-kart-storefront .mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 44px;
  min-height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--wk-navy);
}

.well-kart-storefront .mobile-toggle:hover,
.well-kart-storefront .mobile-toggle[aria-expanded="true"] { background: #edf4e7; }

/* Homepage. */
.well-kart-storefront .wk-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: stretch;
  min-height: 465px;
  margin-top: 26px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--wk-mint);
}

.well-kart-storefront .wk-hero-copy {
  position: relative;
  z-index: 2;
  width: 59%;
  padding: 47px 0 39px 48px;
}

.well-kart-storefront .wk-hero .wk-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0; color: #47674a; }
.well-kart-storefront .wk-hero .wk-eyebrow > span:empty { width: 6px; height: 6px; border-radius: 50%; background: #579744; }
.well-kart-storefront .wk-hero h1 {
  max-width: 720px;
  margin: 19px 0 20px;
  color: var(--wk-navy);
  font-size: clamp(44px, 4.65vw, 67px);
  font-weight: 700;
  line-height: 1.09;
  letter-spacing: -.05em;
}

.well-kart-storefront .wk-hero h1 :is(em, span) { color: #3b8037; font-style: normal; }
.well-kart-storefront .wk-hero-copy > p:not(.wk-eyebrow) {
  max-width: 440px;
  margin: 0 0 24px;
  color: #48634d;
  font-size: 16px;
  line-height: 1.75;
}

.well-kart-storefront .wk-hero-copy > .btn { margin-top: 2px; }
.well-kart-storefront .wk-hero-note {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 410px;
  margin-top: 20px;
  color: #506b54;
  font-size: 12px;
  line-height: 1.6;
}

.well-kart-storefront .wk-hero-note > svg { width: 18px; height: 18px; color: #588e4c; }
.well-kart-storefront .wk-hero-art { position: absolute; inset: 0 0 0 auto; z-index: 0; width: 60%; }
.well-kart-storefront .wk-hero-art > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 18%);
  mask-image: linear-gradient(to right, transparent, #000 18%);
}

.well-kart-storefront .wk-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 27px 8px;
  border-bottom: 1px solid var(--line);
}

.well-kart-storefront .wk-benefit { display: flex; align-items: center; justify-content: center; gap: 13px; }
.well-kart-storefront .wk-benefit > svg { width: 29px; height: 29px; color: #598f4b; flex-shrink: 0; }
.well-kart-storefront .wk-benefit strong { display: block; color: var(--wk-ink); font-size: 14px; line-height: 1.45; font-weight: 600; }
.well-kart-storefront .wk-benefit :is(small, div > span) { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.well-kart-storefront .wk-section { padding-top: 49px; }
.well-kart-storefront .wk-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}

.well-kart-storefront .wk-section-heading .wk-eyebrow { margin: 0 0 8px; }
.well-kart-storefront .wk-section-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.035em; }
.well-kart-storefront .wk-section-heading > p { margin: 0; padding-bottom: 2px; color: var(--muted); font-size: 14px; }
.well-kart-storefront .text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 5px 0; color: var(--wk-navy); font-size: 14px; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.well-kart-storefront .text-link:hover { color: var(--wk-green); }
.well-kart-storefront .wk-collections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.well-kart-storefront .wk-collections .category-card {
  position: relative;
  display: block;
  min-height: 200px;
  height: auto;
  padding: 25px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #edf4e5;
  color: var(--wk-navy);
  transition: transform .2s ease, box-shadow .2s ease;
}

.well-kart-storefront .wk-collections .category-card:nth-child(3n + 2) { background: #f8eee9; }
.well-kart-storefront .wk-collections .category-card:nth-child(3n) { background: #e9f1f5; }
.well-kart-storefront .wk-collections .category-card:hover { color: var(--wk-navy); box-shadow: 0 8px 24px #1739510d; transform: translateY(-3px); }
.well-kart-storefront .wk-collections .category-card > small { display: block; position: relative; z-index: 2; width: 64%; margin: 0 0 10px; color: #60735f; font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.well-kart-storefront .wk-collections .category-card > strong { display: block; position: relative; z-index: 2; max-width: 64%; margin: 6px 0 45px; font-size: 25px; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.well-kart-storefront .wk-collections .category-card > span:not(.wk-category-media) { position: absolute; z-index: 2; left: 25px; bottom: 24px; max-width: 61%; color: #425d48; font-size: 14px; text-decoration: underline; line-height: 1.5; }
.well-kart-storefront .wk-collections .wk-category-media { position: absolute; z-index: 1; top: auto; left: auto; right: -3%; bottom: -6%; display: block; width: 48%; height: auto; aspect-ratio: 1; pointer-events: none; transform: rotate(6deg); mix-blend-mode: multiply; }
.well-kart-storefront .wk-collections .category-card > img { position: absolute; z-index: 1; right: -2%; bottom: -4%; width: 47%; height: 92%; object-fit: contain; pointer-events: none; transform: rotate(6deg); }
.well-kart-storefront .wk-care-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  margin-top: 62px;
  margin-bottom: 58px;
  padding: 42px 48px;
  border-radius: 14px;
  background: #173d42;
  color: #fff;
}

.well-kart-storefront .wk-care-banner .wk-eyebrow { display: block; margin: 0 0 14px; color: #c1ddb1; font-size: 12px; }
.well-kart-storefront .wk-care-banner h2 { margin: 0; color: #fff; font-size: 35px; line-height: 1.25; letter-spacing: -.03em; }
.well-kart-storefront .wk-care-banner p:not(.wk-eyebrow) { margin: 0 0 12px; color: #d9e7df; font-size: 16px; line-height: 1.8; }
.well-kart-storefront .wk-care-banner .btn { margin-top: 8px; border-color: #d9eccb; background: #d9eccb; color: #21463d; }
.well-kart-storefront .wk-care-banner .btn:hover { border-color: #e7f4dc; background: #e7f4dc; color: #173d42; }

/* Shared controls retain the existing server-side forms and actions. */
:is(.well-kart-storefront, .well-kart-admin) .btn {
  min-height: 46px;
  gap: 9px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--wk-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: none;
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

:is(.well-kart-storefront, .well-kart-admin) :is(.btn-primary, .btn-lime, .btn-dark) { background: var(--wk-navy); color: #fff; }
:is(.well-kart-storefront, .well-kart-admin) .btn:hover { background: #245068; color: #fff; filter: none; transform: translateY(-1px); }
:is(.well-kart-storefront, .well-kart-admin) .btn-outline { border-color: #cddacf; background: #fff; color: var(--wk-navy); }
:is(.well-kart-storefront, .well-kart-admin) .btn-outline:hover { border-color: #a6c394; background: #edf4e8; color: var(--wk-green); }
:is(.well-kart-storefront, .well-kart-admin) .btn-small { min-height: 40px; padding: 8px 13px; border-radius: 6px; font-size: 14px; }
:is(.well-kart-storefront, .well-kart-admin) .btn-danger { border-color: #e7c3bd; background: #fbece9; color: #973f37; }
:is(.well-kart-storefront, .well-kart-admin) .btn-danger:hover { border-color: #d99991; background: #f5dad5; color: #7f302a; }
:is(.well-kart-storefront, .well-kart-admin) .btn-quiet { min-height: 36px; padding: 7px 0; border: 0; background: transparent; color: var(--muted); box-shadow: none; font-weight: 500; }
:is(.well-kart-storefront, .well-kart-admin) .btn-quiet:hover { background: transparent; color: var(--wk-teal); text-decoration: underline; transform: none; }
:is(.well-kart-storefront, .well-kart-admin) button:disabled { opacity: .5; cursor: not-allowed; }
:is(.well-kart-storefront, .well-kart-admin) .btn:disabled:hover { transform: none; }
:is(.well-kart-storefront, .well-kart-admin) label { font-size: 14px; line-height: 1.5; font-weight: 600; color: #365044; }
:is(.well-kart-storefront, .well-kart-admin) :is(input, select, textarea) {
  border: 1px solid #cedbce;
  border-radius: 7px;
  background: #fff;
  color: var(--wk-ink);
  font-family: var(--wk-font);
  font-size: 16px;
  line-height: 1.5;
  padding: 11px 12px;
  box-shadow: none;
}

:is(.well-kart-storefront, .well-kart-admin) input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
:is(.well-kart-storefront, .well-kart-admin) select { min-height: 46px; }
:is(.well-kart-storefront, .well-kart-admin) :is(input, textarea)::placeholder { color: #657567; opacity: 1; }
:is(.well-kart-storefront, .well-kart-admin) :is(input, select, textarea):focus { border-color: var(--wk-teal); }
:is(.well-kart-storefront, .well-kart-admin) :is(input, select, textarea):disabled { background: #f0f4ef; color: #65786a; }
:is(.well-kart-storefront, .well-kart-admin) :is(input, textarea)[readonly] { background: #f5f8f3; }
:is(.well-kart-storefront, .well-kart-admin) :is(input, select, textarea)[aria-invalid="true"] { border-color: #b54b43; }
:is(.well-kart-storefront, .well-kart-admin) :is(input[type="checkbox"], input[type="radio"]) { flex: 0 0 18px; width: 18px; height: 18px; padding: 0; accent-color: var(--wk-teal); }
:is(.well-kart-storefront, .well-kart-admin) input[type="file"] { font-size: 14px; }
:is(.well-kart-storefront, .well-kart-admin) input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 10px; border: 1px solid #cddacf; border-radius: 5px; background: #edf4e8; color: var(--wk-navy); font: inherit; }
:is(.well-kart-storefront, .well-kart-admin) .checkbox { align-items: flex-start; gap: 9px; min-height: 24px; color: #526a58; font-size: 14px; line-height: 1.55; font-weight: 400; }
:is(.well-kart-storefront, .well-kart-admin) .checkbox input { margin-top: 2px; }
:is(.well-kart-storefront, .well-kart-admin) .field-note { color: var(--muted); font-size: 12px; line-height: 1.65; }
:is(.well-kart-storefront, .well-kart-admin) .field-note a { color: var(--wk-teal); text-decoration: underline; }
:is(.well-kart-storefront, .well-kart-admin) .form-actions { gap: 12px; margin-top: 24px; }
:is(.well-kart-storefront, .well-kart-admin) .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
:is(.well-kart-storefront, .well-kart-admin) .two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
:is(.well-kart-storefront, .well-kart-admin) .three-col { grid-template-columns: repeat(3, minmax(0, 1fr)); }
:is(.well-kart-storefront, .well-kart-admin) .panel { min-width: 0; padding: 26px; border-color: var(--line); background: #fff; color: var(--wk-ink); border-radius: 14px; }
:is(.well-kart-storefront, .well-kart-admin) .panel h2 { font-size: 23px; letter-spacing: -.025em; }
:is(.well-kart-storefront, .well-kart-admin) .panel h3 { font-size: 18px; }
:is(.well-kart-storefront, .well-kart-admin) .page-header { align-items: flex-start; gap: 22px; }
:is(.well-kart-storefront, .well-kart-admin) .page-header h1 { margin-bottom: 10px; font-size: clamp(32px, 3.2vw, 44px); line-height: 1.16; }
:is(.well-kart-storefront, .well-kart-admin) .page-header p { max-width: 740px; font-size: 16px; color: var(--muted); }
.well-kart-storefront .page { padding-top: 40px; padding-bottom: 66px; min-height: 470px; }
.well-kart-storefront .breadcrumb { margin-bottom: 25px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.well-kart-storefront .breadcrumb a:hover { text-decoration: underline; }
.well-kart-storefront .auth-wrap { max-width: 485px; margin: 15px auto; }
.well-kart-storefront .auth-wrap .panel { padding: 36px; box-shadow: 0 10px 38px #17395106; }
.well-kart-storefront .auth-wrap h1 { font-size: 36px; line-height: 1.16; }
.well-kart-storefront .auth-wrap > .panel > .small { font-size: 14px; }
.well-kart-storefront .auth-wrap .form-grid { display: flex; flex-direction: column; }
.well-kart-storefront .auth-links { gap: 12px; flex-wrap: wrap; font-size: 14px; line-height: 1.6; }
.well-kart-storefront .auth-links a { padding-block: 5px; }
.well-kart-storefront .legal-text { font-size: 16px; line-height: 1.9; color: #4f6557; }
:is(.well-kart-storefront, .well-kart-admin) .empty { padding: 46px 28px; border: 1px dashed #cbd9c7; border-radius: 14px; background: #f5f8f3; color: var(--muted); }
:is(.well-kart-storefront, .well-kart-admin) .empty h2 { color: var(--wk-navy); font-size: 27px; }
:is(.well-kart-storefront, .well-kart-admin) .empty p { font-size: 16px; }
:is(.well-kart-storefront, .well-kart-admin) .flash { border-color: #c5ddba; background: #edf6e8; color: #35663c; font-size: 14px; line-height: 1.65; }
:is(.well-kart-storefront, .well-kart-admin) .flash.error { border-color: #e8beb8; background: #fff0ed; color: #8c3c34; }
:is(.well-kart-storefront, .well-kart-admin) .notice { border-color: #d0e0d5; background: #edf5f0; color: #3d6450; font-size: 14px; line-height: 1.75; }
:is(.well-kart-storefront, .well-kart-admin) .notice.warning { border-color: #ead7ad; background: #fff6e5; color: #745b29; }
:is(.well-kart-storefront, .well-kart-admin) .badge { border-color: #d0ded1; background: #f0f5ed; color: #506946; font-size: 12px; font-weight: 500; }
:is(.well-kart-storefront, .well-kart-admin) :is(.badge-paid, .badge-delivered, .badge-picked_up, .badge-refunded, .badge-active, .badge-done) { border-color: #c0dbc8; background: #eaf5ed; color: #306447; }
:is(.well-kart-storefront, .well-kart-admin) :is(.badge-requested, .badge-awaiting_payment, .badge-unpaid, .badge-refunding, .badge-queued, .badge-refund_pending) { border-color: #e5d6b4; background: #fff5df; color: #7b5c23; }
:is(.well-kart-storefront, .well-kart-admin) :is(.badge-cancelled, .badge-stock_exception, .badge-error, .badge-refund_failed, .badge-past_due, .badge-rejected) { border-color: #e7c5c1; background: #fcefed; color: #934a44; }

/* Real products use a contain image or one cell of the supplied product sheet. */
:is(.well-kart-storefront, .well-kart-admin) .wk-product-media {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: #f5f7f4;
}

:is(.well-kart-storefront, .well-kart-admin) .wk-product-media > img {
  position: static;
  inset: auto;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  transform: none;
  opacity: 1;
}

:is(.well-kart-storefront, .well-kart-admin) .wk-product-media.wk-product-sprite > img {
  position: absolute;
  top: calc(var(--row, 0) * -100%);
  left: calc(var(--col, 0) * -100%);
  right: auto;
  bottom: auto;
  width: 400%;
  max-width: none;
  height: 200%;
  max-height: none;
  object-fit: fill;
  transform: none;
}

:is(.well-kart-storefront, .well-kart-admin) .wk-product-media.wk-thumb { flex: 0 0 56px; width: 56px; height: 56px; aspect-ratio: 1; border: 1px solid #edf1e9; border-radius: 7px; }
.well-kart-storefront .wk-category-media .wk-product-media { background: transparent; }
.well-kart-storefront .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 29px 21px; }
.well-kart-storefront .product-card { display: flex; flex-direction: column; min-width: 0; }
.well-kart-storefront .product-card .product-image {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1.1;
  overflow: hidden;
  border: 1px solid #edf1eb;
  border-radius: 11px;
  background: #f5f7f4;
}

.well-kart-storefront .product-image > img { width: 100%; height: 100%; padding: 12px; object-fit: contain; transform: none; }
.well-kart-storefront .product-image > .wk-product-media { transition: transform .28s ease; }
.well-kart-storefront .product-image:hover > .wk-product-media { transform: scale(1.035); }
.well-kart-storefront .product-image:hover img { transform: none; }
.well-kart-storefront .product-image .badge { z-index: 3; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 4px 8px; border: 0; border-radius: 4px; background: #fff; color: #46703b; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.well-kart-storefront .product-image :is(.badge-sale, .badge-clearance, .badge-offer) { background: #fff0e6; color: #935030; }
.well-kart-storefront .product-content { display: flex; flex: 1; flex-direction: column; padding: 14px 2px 0; }
.well-kart-storefront .product-brand { margin-bottom: 5px; color: #69776b; font-size: 12px; font-weight: 500; letter-spacing: .06em; line-height: 1.5; overflow-wrap: anywhere; }
.well-kart-storefront .product-name { display: block; min-height: 46px; color: var(--wk-ink); font-family: var(--wk-heading); font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.45; overflow-wrap: anywhere; }
.well-kart-storefront .product-name:hover { color: var(--wk-green); }
.well-kart-storefront .price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 12px; }
.well-kart-storefront .price { color: var(--wk-navy); font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.well-kart-storefront .wk-from { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; }
.well-kart-storefront .wk-card-cart { margin: 0; }
.well-kart-storefront .old-price { margin-left: 6px; color: #68766b; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.well-kart-storefront .add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 10px; border: 1px solid #dce8d4; border-radius: 6px; background: #eef5e9; color: #35752d; font-size: 14px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.well-kart-storefront .add-btn span { display: inline; }
.well-kart-storefront .add-btn svg { width: 16px; height: 16px; }
.well-kart-storefront .add-btn:hover { border-color: #c4dcb7; background: #e0eed5; color: #2f6728; }
.well-kart-storefront .tabs { gap: 7px; }
.well-kart-storefront .tab { min-height: 40px; padding: 8px 14px; border: 1px solid #e1e8dc; border-radius: 6px; background: #fff; color: #657662; font-size: 14px; font-weight: 500; }
.well-kart-storefront .tab:hover { border-color: #c5d9bb; background: #f5f8f0; color: var(--wk-green); }
.well-kart-storefront .tab.active { border-color: #d2e2c8; background: #edf5e7; color: #36772d; }
.well-kart-storefront .catalog-layout { grid-template-columns: 238px minmax(0, 1fr); gap: 32px; }
.well-kart-storefront .catalog-layout > div { min-width: 0; }
.well-kart-storefront .catalog-layout .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.well-kart-storefront .filters { top: 24px; padding: 22px; background: #f8faf6; }
.well-kart-storefront .filters h3 { font-size: 18px; margin-bottom: 20px; }
.well-kart-storefront .filters label { font-size: 14px; margin-top: 17px; }
.well-kart-storefront .filters label:first-of-type { margin-top: 0; }
.well-kart-storefront .filters :is(input, select) { padding: 9px 10px; font-size: 14px; }
.well-kart-storefront .filters .checkbox { margin-top: 17px; font-size: 14px; }
.well-kart-storefront .filters .btn { min-height: 44px; padding-inline: 12px; margin-top: 20px; }
.well-kart-storefront .filters .btn + .btn { margin-top: 9px; }
.well-kart-storefront .category-context .eyebrow { color: var(--wk-green); font-size: 12px; }
.well-kart-storefront .category-context h2 { font-size: 29px; }
.well-kart-storefront .category-context p { color: var(--muted); font-size: 16px; }
.well-kart-storefront .category-browse { gap: 8px; margin-bottom: 24px; padding-bottom: 2px; }
.well-kart-storefront .category-chip { min-height: 40px; padding: 8px 13px; border-color: #dce5d8; border-radius: 6px; background: #fff; color: #526a55; font-size: 14px; }
.well-kart-storefront .category-chip:hover { border-color: #b9d1ad; background: #f4f8ef; color: var(--wk-green); }
.well-kart-storefront .category-chip.selected { border-color: #c7ddbb; background: #edf5e7; color: #36772d; }
.well-kart-storefront .pagination { align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 35px; }
.well-kart-storefront .product-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 52px; }
.well-kart-storefront .product-detail h1 { font-size: clamp(32px, 3.15vw, 44px); line-height: 1.2; letter-spacing: -.035em; }
.well-kart-storefront .product-detail .price { font-size: 30px; }
.well-kart-storefront .product-detail .description { margin: 23px 0; color: #5c705f; font-size: 16px; line-height: 1.85; }
.well-kart-storefront .detail-art { display: grid; place-items: center; min-height: 0; aspect-ratio: 1; overflow: hidden; border: 1px solid #eaf0e5; border-radius: 16px; background: #f5f7f4; }
.well-kart-storefront .detail-art > img { width: 100%; height: 100%; padding: 20px; object-fit: contain; }
.well-kart-storefront .detail-art > .wk-product-media { width: 100%; height: 100%; aspect-ratio: 1; }
.well-kart-storefront .thumb-row { gap: 10px; flex-wrap: wrap; margin-top: 15px; }
.well-kart-storefront .thumb-row a { display: block; border: 1px solid #dce7d7; border-radius: 8px; overflow: hidden; }
.well-kart-storefront .thumb-row a:hover { border-color: #79a767; }
.well-kart-storefront .thumb-row img { width: 75px; height: 75px; padding: 3px; background: #f5f7f4; border-radius: 0; object-fit: contain; }
.well-kart-storefront .variant-picker { margin: 21px 0; }
.well-kart-storefront .purchase-row { gap: 13px; }
.well-kart-storefront .purchase-row input { width: 78px; text-align: center; }
.well-kart-storefront .purchase-row .btn { flex: 1; }
.well-kart-storefront .subscribe-box { margin-top: 24px; padding: 21px; border-color: #d5e3cc; border-radius: 10px; background: #f0f6eb; }
.well-kart-storefront .subscribe-box h3 { font-size: 18px; }
.well-kart-storefront .subscribe-box p { color: #5b7057; font-size: 14px; line-height: 1.75; }
.well-kart-storefront .subscribe-box .inline { align-items: stretch; }
.well-kart-storefront .subscribe-box .inline .btn { flex: 0 0 auto; }
.well-kart-storefront .detail-meta { padding-top: 18px; margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.8; }

/* Cart, checkout, customer account, and records. */
:is(.well-kart-storefront, .well-kart-admin) .table-wrap { border-color: var(--line); border-radius: 10px; background: #fff; scrollbar-width: thin; scrollbar-color: #b6cbb5 #f4f7f1; }
:is(.well-kart-storefront, .well-kart-admin) table { color: var(--wk-ink); font-size: 14px; line-height: 1.6; }
:is(.well-kart-storefront, .well-kart-admin) :is(th, td) { border-color: var(--line); padding: 15px; }
:is(.well-kart-storefront, .well-kart-admin) th { background: #f5f8f1; color: #65745e; font-size: 12px; letter-spacing: .055em; font-weight: 600; }
:is(.well-kart-storefront, .well-kart-admin) td .small { font-size: 12px; }
:is(.well-kart-storefront, .well-kart-admin) td > img,
:is(.well-kart-storefront, .well-kart-admin) td .inline > img { background: #f5f7f4; border: 1px solid #edf1e9; }
.well-kart-storefront .cart-layout,
.well-kart-storefront .checkout-layout { grid-template-columns: minmax(0, 1.6fr) minmax(305px, 1fr); gap: 30px; }
.well-kart-storefront .cart-layout > div,
.well-kart-storefront .checkout-layout > div { min-width: 0; }
.well-kart-storefront .summary { position: sticky; top: 24px; padding: 26px; background: #f5f8f1; border-color: #dfe8d7; }
.well-kart-storefront .summary h2 { margin-bottom: 25px; font-size: 24px; }
.well-kart-storefront .summary-row { gap: 18px; margin-bottom: 15px; font-size: 14px; line-height: 1.6; }
.well-kart-storefront .summary-row > strong { flex-shrink: 0; color: var(--wk-navy); font-variant-numeric: tabular-nums; }
.well-kart-storefront .summary-total { border-color: #d7e2ce; padding-top: 18px; font-size: 22px; color: var(--wk-navy); }
.well-kart-storefront .summary .small { font-size: 12px; line-height: 1.75; }
.well-kart-storefront .summary .btn { margin-top: 12px; }
.well-kart-storefront .cart-layout .form-actions { align-items: flex-end; }
.well-kart-storefront .cart-layout .form-actions > label { flex: 1 1 200px; max-width: 330px; }
.well-kart-storefront .cart-layout .form-actions + p { margin-top: 14px; }
.well-kart-storefront .cart-layout td .inline { align-items: center; gap: 14px; }
.well-kart-storefront .cart-layout td .inline > div { min-width: 120px; }
:is(.well-kart-storefront, .well-kart-admin) .order-address { color: #536b58; font-size: 14px; line-height: 1.8; }
:is(.well-kart-storefront, .well-kart-admin) .qr-panel svg { background: #fff; }
:is(.well-kart-storefront, .well-kart-admin) .qr-token { font-size: 12px; }
:is(.well-kart-storefront, .well-kart-admin) .timeline li { border-color: #d0dfcb; color: #4f6854; font-size: 14px; }
:is(.well-kart-storefront, .well-kart-admin) .timeline li::before { background: #6b9e57; }
:is(.well-kart-storefront, .well-kart-admin) .timeline small { font-size: 12px; }
:is(.well-kart-storefront, .well-kart-admin) .module-title { gap: 15px; flex-wrap: wrap; }

/* Optional store-managed brands and newsletter remain fully usable. */
.well-kart-storefront .brands { margin-top: 30px; padding: 28px 0 33px; border-color: var(--line); }
.well-kart-storefront .brands-title { margin-bottom: 24px; color: #63765f; font-size: 12px; letter-spacing: .1em; }
.well-kart-storefront .brand-row { justify-content: space-evenly; gap: 25px 34px; }
.well-kart-storefront .brand-word { color: #58715b; font-size: 22px; letter-spacing: .06em; }
.well-kart-storefront .brands .small { font-size: 12px !important; }
.well-kart-storefront .newsletter-bar { padding: 32px 0; border-color: #e0e8d8; background: #f2f7ec; }
.well-kart-storefront .newsletter-inner { gap: 34px; }
.well-kart-storefront .newsletter-inner h3 { margin-bottom: 7px; font-size: 25px; }
.well-kart-storefront .newsletter-inner p { color: #5e7359; font-size: 14px; line-height: 1.7; }
.well-kart-storefront .newsletter-form { flex: 0 1 475px; width: 475px; }
.well-kart-storefront .newsletter-fields { align-items: stretch; gap: 9px; }
.well-kart-storefront .newsletter-fields .btn { flex: 0 0 auto; padding-inline: 15px; }
.well-kart-storefront .newsletter-fields input { height: auto; min-height: 46px; }
.well-kart-storefront .newsletter-form .checkbox { margin-top: 11px; color: #61745b; font-size: 12px; line-height: 1.7; }
.well-kart-storefront .site-footer { border-top: 1px solid var(--line); background: #fff; color: var(--wk-ink); }
.well-kart-storefront .footer-main { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 42px; padding-top: 42px; padding-bottom: 38px; }
.well-kart-storefront .footer-main > div { min-width: 0; }
.well-kart-storefront .footer-main .wk-logo-window { width: 225px; }
.well-kart-storefront .footer-main .wk-brand { margin-bottom: 16px; }
.well-kart-storefront .footer-main p { max-width: 300px; margin-bottom: 11px; color: #67786a; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.well-kart-storefront .footer-main h4 { margin-bottom: 17px; color: var(--wk-navy); font-size: 14px; font-weight: 700; }
.well-kart-storefront .footer-main li { margin-bottom: 7px; color: #627564; font-size: 14px; line-height: 1.6; }
.well-kart-storefront .footer-main li a { display: inline-block; padding: 3px 0; }
.well-kart-storefront .footer-main .small { display: inline-block; padding: 3px 0; color: #536f59; font-size: 14px; overflow-wrap: anywhere; }
.well-kart-storefront .footer-bottom { align-items: center; padding-top: 18px; padding-bottom: 23px; border-color: var(--line); color: #6b7a6e; font-size: 12px; line-height: 1.7; }
.well-kart-storefront .footer-bottom .inline { flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.well-kart-storefront .payment-mark { padding: 5px 8px; border-color: #dfe6d9; background: #fafbf8; color: #576d58; font-size: 12px; font-weight: 500; letter-spacing: 0; }
.well-kart-storefront .wk-demo-note { padding-bottom: 23px; margin-top: 0; margin-bottom: 0; font-size: 12px; line-height: 1.7; }

/* Administration: colors and legibility only; existing navigation mechanics stay. */
.well-kart-admin { --bg: #f5f8f6; background: var(--bg); }
.well-kart-admin .sidebar { border-color: #e0e8e2; background: #fff; }
.well-kart-admin .sidebar .wk-logo-window { width: 100%; max-width: 182px; }
.well-kart-admin .sidebar .wk-custom-logo > img { max-width: 100%; max-height: 60px; }
.well-kart-admin .sidebar .wk-brand { width: calc(100% - 6px); max-width: 182px; margin: 3px 3px 5px; }
.well-kart-admin .sidebar .eyebrow { color: #60765e; font-size: 12px; letter-spacing: .075em; }
.well-kart-admin .admin-shell .side-links { scrollbar-color: #b4cbb0 #f4f7f2; }
.well-kart-admin .admin-shell .side-links a { color: #536c5b; font-size: 14px; line-height: 1.45; }
.well-kart-admin .admin-shell .side-links a:hover { background: #f1f6ec; color: #366e30; }
.well-kart-admin .admin-shell .side-links a.active { border-color: #d2e2c9; background: #edf5e7; color: #36762c; }
.well-kart-admin .side-bottom { border-color: var(--line); color: #62765f; font-size: 12px; line-height: 1.8; }
.well-kart-admin .side-bottom a { color: #476e4c; }
.well-kart-admin .admin-top { border-color: var(--line); }
.well-kart-admin .admin-top strong { font-size: 14px; }
.well-kart-admin .admin-top .small { font-size: 12px; color: var(--muted); }
.well-kart-admin .admin-main .page-header h1 { font-size: 35px; }
.well-kart-admin .admin-main .page-header p { font-size: 14px; }
.well-kart-admin .admin-main .page-header .btn { flex-shrink: 0; }
.well-kart-admin .admin-menu-dialog { border-color: var(--line); background: #fff; color: var(--wk-ink); box-shadow: 16px 0 55px #17395126; }
.well-kart-admin .admin-menu-dialog::backdrop { background: rgb(23 57 81 / 38%); }
.well-kart-admin :is(.admin-menu-toggle, .admin-menu-close) { border-color: #d7e2d2; background: #fff; color: var(--wk-navy); font-size: 14px; }
.well-kart-admin :is(.admin-menu-toggle, .admin-menu-close):hover { border-color: #b7d2a8; background: #edf5e7; color: var(--wk-green); }
.well-kart-admin .stat { border-color: #dfe7dd; background: #fff; }
.well-kart-admin .stat:nth-child(1) { border-color: #cbdcbe; background: #edf5e7; }
.well-kart-admin .stat .label { font-size: 14px; color: #5d735d; }
.well-kart-admin .stat .value { color: var(--wk-navy); font-size: 31px; }
.well-kart-admin .stat .small { color: #62785d; font-size: 12px; }
.well-kart-admin .chart-bar { background: #78a660; }
.well-kart-admin .chart-col small { color: #677b61; font-size: 12px; }
.well-kart-admin .metric-row { font-size: 14px; }
.well-kart-admin .metric-row .metric-num { color: #38792d; }
.well-kart-admin .filter-bar select { font-size: 14px; }
.well-kart-admin .code-block { border-color: #dce5d6; background: #edf2eb; color: #476348; font-size: 12px; }
.well-kart-admin .scanner-status { color: #63785f; font-size: 12px; }
.well-kart-admin .category-stat { border-color: var(--line); background: #fff; }
.well-kart-admin .category-stat-icon { border-radius: 10px; background: #edf5e7; color: var(--wk-green); }
.well-kart-admin .category-stat-icon.pink { background: #f9eee8; color: #975d46; }
.well-kart-admin .category-stat-icon.lime { background: #e8f3ee; color: #31755a; }
.well-kart-admin .category-stat div > span { font-size: 12px; }
.well-kart-admin .category-fields label { font-size: 14px; }
.well-kart-admin .category-fields :is(input, select, textarea) { font-size: 16px; }
.well-kart-admin .category-fields .field-note { font-size: 12px; }
.well-kart-admin .category-editor .eyebrow { font-size: 12px; }
.well-kart-admin :is(.category-tip, .category-list-note) { color: #63775f; font-size: 12px; }
.well-kart-admin .category-filter label { font-size: 14px; }
.well-kart-admin .category-filter :is(input, select) { font-size: 14px; }
.well-kart-admin .category-filter .btn-quiet { font-size: 14px; }
.well-kart-admin .category-table { font-size: 14px; }
.well-kart-admin .category-table th { background: #f2f7ee; color: #607558; font-size: 12px; }
.well-kart-admin .category-parent { background: #f9fbf7; }
.well-kart-admin .category-child { background: #fff; }
.well-kart-admin .category-node { background: #eaf3e4; color: #467d35; }
.well-kart-admin .category-child .category-node { color: #6b8762; }
.well-kart-admin .category-identity strong { font-size: 14px; }
.well-kart-admin .category-meta { color: #60745d; font-size: 12px; }
.well-kart-admin .category-count { color: #3a772e; font-size: 14px; }
.well-kart-admin .category-row-actions .btn { min-height: 36px; font-size: 14px; }
.well-kart-admin .category-add-child { color: #387a62; font-size: 14px; }
.well-kart-admin .category-delete { color: #96574c; font-size: 12px; }
.well-kart-admin .category-delete:hover { color: #873c31; }
.well-kart-admin .category-manage-note { color: #447557; font-size: 14px; }

@media (min-width: 1600px) {
  .well-kart-storefront .wk-hero { min-height: 490px; }
  .well-kart-storefront .wk-hero-copy { padding-top: 55px; }
}

@media (max-width: 1250px) {
  .well-kart-storefront .container { width: calc(100% - 56px); }
  .well-kart-storefront .wk-header-main { gap: 27px; }
  .well-kart-storefront .wk-logo-window { width: 225px; }
  .well-kart-storefront .wk-header-actions { gap: 18px; }
  .well-kart-storefront .wk-nav-row .nav-note { display: none; }
  .well-kart-storefront .wk-nav-links { gap: 25px; }
  .well-kart-storefront .wk-hero { min-height: 442px; }
  .well-kart-storefront .wk-hero-copy { width: 61%; padding: 39px 0 34px 36px; }
  .well-kart-storefront .wk-hero h1 { font-size: 55px; }
  .well-kart-storefront .wk-hero-art { width: 58%; }
  .well-kart-storefront .wk-benefits { gap: 16px; }
  .well-kart-storefront .wk-benefit { gap: 10px; }
  .well-kart-storefront .wk-collections .category-card { padding: 23px; }
  .well-kart-storefront .wk-collections .category-card > strong { font-size: 23px; }
  .well-kart-storefront .wk-collections .category-card > span:not(.wk-category-media) { left: 23px; }
  .well-kart-storefront .wk-care-banner { gap: 45px; padding: 38px 36px; }
  .well-kart-storefront .footer-main { gap: 28px; }
}

@media (max-width: 1080px) {
  .well-kart-storefront .wk-header-actions .label-text { display: none; }
  .well-kart-storefront .wk-account > span { display: none; }
  .well-kart-storefront .wk-header-main { min-height: 96px; }
  .well-kart-storefront .wk-basket > span:not(.wk-count) { display: none; }
  .well-kart-storefront .wk-search { max-width: none; }
  .well-kart-storefront .wk-nav-links { gap: 22px; overflow-x: auto; width: 100%; scrollbar-width: thin; scrollbar-color: #cbd9c5 transparent; }
  .well-kart-storefront .wk-nav-links a { flex-shrink: 0; }
  .well-kart-storefront .wk-hero h1 { font-size: 49px; }
  .well-kart-storefront .wk-hero-copy { padding-left: 31px; }
  .well-kart-storefront .wk-hero-copy > p:not(.wk-eyebrow) { max-width: 360px; }
  .well-kart-storefront .wk-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; padding-inline: 12px; }
  .well-kart-storefront .wk-benefit { justify-content: flex-start; }
  .well-kart-storefront .wk-section-heading { flex-wrap: wrap; align-items: flex-start; gap: 16px; }
  .well-kart-storefront .catalog-layout { grid-template-columns: 215px minmax(0, 1fr); gap: 25px; }
  .well-kart-storefront .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .well-kart-storefront .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .well-kart-storefront .product-detail { gap: 32px; }
  .well-kart-storefront .cart-layout,
  .well-kart-storefront .checkout-layout { grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr); gap: 22px; }
  .well-kart-storefront .summary { padding: 22px; }
  .well-kart-storefront .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
  .well-kart-storefront .footer-main > div:last-child { display: block; grid-column: 1 / -1; }
  .well-kart-storefront .footer-main > div:last-child p { max-width: none; }
}

@media (max-width: 900px) {
  .well-kart-storefront .container { width: calc(100% - 40px); }
  .well-kart-storefront .wk-header-main { gap: 22px; }
  .well-kart-storefront .wk-logo-window { width: 205px; }
  .well-kart-storefront .wk-header-actions { gap: 17px; }
  .well-kart-storefront .wk-hero { min-height: 430px; }
  .well-kart-storefront .wk-hero-copy { width: 65%; padding: 34px 0 32px 30px; }
  .well-kart-storefront .wk-hero .wk-eyebrow { max-width: 320px; }
  .well-kart-storefront .wk-hero h1 { font-size: 45px; }
  .well-kart-storefront .wk-hero-art { width: 54%; opacity: .86; }
  .well-kart-storefront .wk-hero-copy > p:not(.wk-eyebrow) { max-width: 345px; }
  .well-kart-storefront .wk-hero-note { max-width: 340px; }
  .well-kart-storefront .wk-section-heading h2 { font-size: 28px; }
  .well-kart-storefront .wk-collections { gap: 15px; }
  .well-kart-storefront .wk-collections .category-card { min-height: 210px; padding: 20px; }
  .well-kart-storefront .wk-collections .category-card > strong { max-width: 76%; font-size: 23px; }
  .well-kart-storefront .wk-collections .category-card > span:not(.wk-category-media) { left: 20px; bottom: 20px; max-width: 74%; }
  .well-kart-storefront .wk-collections .wk-category-media { right: -17%; opacity: .65; width: 60%; }
  .well-kart-storefront .wk-care-banner { gap: 28px; padding: 34px 29px; }
  .well-kart-storefront .wk-care-banner h2 { font-size: 30px; }
  .well-kart-storefront .wk-care-banner p:not(.wk-eyebrow) { font-size: 16px; }
  .well-kart-storefront .newsletter-inner { flex-direction: column; align-items: stretch; gap: 22px; }
  .well-kart-storefront .newsletter-form { flex: auto; width: 100%; }
  .well-kart-storefront .footer-bottom { align-items: flex-start; }
  .well-kart-storefront .footer-bottom > span:first-child { max-width: 45%; }
  .well-kart-storefront .footer-bottom .inline { max-width: 55%; }
  :is(.well-kart-storefront, .well-kart-admin) .two-col { grid-template-columns: 1fr; }
  .well-kart-admin .sidebar .wk-logo-window { width: 100%; max-width: 182px; }
  .well-kart-admin .admin-main .page-header h1 { font-size: 32px; }
  .well-kart-admin .category-filter .btn-quiet { font-size: 14px; }
}

@media (max-width: 760px) {
  .well-kart-storefront .cart-layout,
  .well-kart-storefront .checkout-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .well-kart-storefront .summary { position: static; }
  .well-kart-storefront .catalog-layout { display: flex; flex-direction: column; gap: 28px; }
  .well-kart-storefront .filters { position: static; width: 100%; padding: 21px; }
  .well-kart-storefront .filters form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .well-kart-storefront .filters label,
  .well-kart-storefront .filters .checkbox { margin-top: 0; }
  .well-kart-storefront .filters :is(input, select) { font-size: 16px; }
  .well-kart-storefront .filters .btn,
  .well-kart-storefront .filters .btn + .btn { margin-top: 0; }
  .well-kart-storefront .filters .checkbox { min-height: 44px; align-items: center; }
  .well-kart-storefront .catalog-layout .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .well-kart-storefront .product-detail { grid-template-columns: minmax(0, 1fr); gap: 29px; }
  .well-kart-storefront .product-detail > div:first-child { width: 100%; max-width: 550px; margin-inline: auto; }
  .well-kart-storefront .product-detail h1 { font-size: 36px; }
  .well-kart-storefront .wk-care-banner { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 700px) {
  .well-kart-storefront .container { width: calc(100% - 32px); }
  .well-kart-storefront .wk-announcement > .container { min-height: 33px; gap: 14px; font-size: 12px; }
  .well-kart-storefront .wk-announcement > .container > :last-child { text-align: right; }
  .well-kart-storefront .wk-announcement .demo-badge { display: none; }
  .well-kart-storefront .wk-header-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 15px 10px; min-height: 0; padding-top: 17px; padding-bottom: 14px; }
  .well-kart-storefront .wk-header-main > .wk-brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .well-kart-storefront .wk-header-main .wk-logo-window { width: clamp(140px, 44vw, 205px); }
  .well-kart-storefront .wk-header-main .wk-custom-logo > img { max-width: clamp(140px, 44vw, 205px); max-height: 55px; }
  .well-kart-storefront .wk-header-actions { grid-column: 2; grid-row: 1; margin: 0; gap: 4px; }
  .well-kart-storefront .wk-header-actions > a { justify-content: center; width: 40px; min-height: 44px; padding: 8px; gap: 0; }
  .well-kart-storefront .wk-header-actions > a > svg { width: 23px; height: 23px; }
  .well-kart-storefront .wk-header-actions .wk-basket { margin-right: 4px; }
  .well-kart-storefront .wk-header-actions .wk-count { position: absolute; top: 0; right: -3px; min-width: 20px; height: 20px; padding-inline: 4px; font-size: 12px; }
  .well-kart-storefront .wk-header-main .mobile-toggle { display: inline-flex; }
  .well-kart-storefront .wk-search { grid-row: 2; grid-column: 1 / -1; width: 100%; max-width: none; min-width: 0; height: 46px; padding-left: 12px; gap: 10px; }
  .well-kart-storefront .wk-search input:not([type="hidden"]) { min-height: 0; font-size: 16px; }
  .well-kart-storefront .wk-search button { min-height: 34px; padding-inline: 10px; font-size: 14px; }
  .well-kart-storefront .wk-nav-row { min-height: 48px; }
  .well-kart-storefront .wk-nav-links { width: 100%; gap: 23px; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: thin; }
  .well-kart-storefront .wk-nav-links a,
  .well-kart-storefront .wk-nav-links a:nth-child(n) { display: inline-flex; min-height: 47px; padding-block: 11px; font-size: 14px; }
  .well-kart-storefront .wk-nav-row.open .wk-nav-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 17px; overflow: visible; white-space: normal; padding: 6px 0 10px; }
  .well-kart-storefront .wk-nav-row.open .wk-nav-links a { min-width: 0; white-space: normal; border-bottom: 1px solid #edf1e8; }
  .well-kart-storefront .wk-hero { display: flex; flex-direction: column; min-height: 0; margin-top: 18px; border-radius: 12px; }
  .well-kart-storefront .wk-hero-copy { width: 100%; padding: 29px 25px 12px; }
  .well-kart-storefront .wk-hero .wk-eyebrow { max-width: 340px; font-size: 12px; line-height: 1.6; }
  .well-kart-storefront .wk-hero h1 { max-width: 520px; margin: 16px 0 19px; font-size: clamp(37px, 7.7vw, 49px); letter-spacing: -.05em; line-height: 1.1; }
  .well-kart-storefront .wk-hero-copy > p:not(.wk-eyebrow) { max-width: 400px; margin-bottom: 21px; font-size: 16px; line-height: 1.7; }
  .well-kart-storefront .wk-hero-copy > .btn { min-height: 46px; margin-top: 0; padding-inline: 18px; font-size: 14px; }
  .well-kart-storefront .wk-hero-note { max-width: 370px; margin-top: 17px; font-size: 12px; }
  .well-kart-storefront .wk-hero-art { position: relative; inset: auto; width: 100%; height: clamp(245px, 65vw, 365px); margin-top: -5px; opacity: 1; }
  .well-kart-storefront .wk-hero-art > img { width: 100%; height: 100%; object-position: center 62%; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%); mask-image: linear-gradient(to bottom, transparent, #000 12%); }
  .well-kart-storefront .wk-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 15px; padding: 25px 0; }
  .well-kart-storefront .wk-benefit { align-items: flex-start; gap: 9px; }
  .well-kart-storefront .wk-benefit > svg { width: 24px; height: 24px; margin-top: 2px; }
  .well-kart-storefront .wk-benefit strong { font-size: 14px; line-height: 1.45; }
  .well-kart-storefront .wk-benefit :is(small, div > span) { font-size: 12px; line-height: 1.55; }
  .well-kart-storefront .wk-section { padding-top: 35px; }
  .well-kart-storefront .wk-section-heading { gap: 15px; margin-bottom: 22px; }
  .well-kart-storefront .wk-section-heading .wk-eyebrow { margin-bottom: 7px; }
  .well-kart-storefront .wk-section-heading h2 { font-size: 26px; line-height: 1.25; }
  .well-kart-storefront .wk-section-heading > .text-link { min-height: 28px; }
  .well-kart-storefront .wk-section-heading .tabs { width: 100%; gap: 7px; }
  .well-kart-storefront .wk-collections { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: #c9d9bf transparent; }
  .well-kart-storefront .wk-collections .category-card { flex: 0 0 84%; min-height: 210px; padding: 24px; scroll-snap-align: start; }
  .well-kart-storefront .wk-collections .category-card > strong { max-width: 64%; font-size: 25px; }
  .well-kart-storefront .wk-collections .category-card > span:not(.wk-category-media) { bottom: 24px; left: 24px; max-width: 60%; font-size: 14px; }
  .well-kart-storefront .wk-collections .wk-category-media { right: -6%; width: 49%; opacity: 1; }
  .well-kart-storefront .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .well-kart-storefront .product-card .product-image { aspect-ratio: 1.02; height: auto; border-radius: 9px; }
  .well-kart-storefront .product-image .badge { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 3px 6px; font-size: 12px; }
  .well-kart-storefront .product-content { padding: 11px 1px 0; }
  .well-kart-storefront .product-brand { min-height: 18px; font-size: 12px; letter-spacing: .035em; }
  .well-kart-storefront .product-name { min-height: 46px; font-size: 16px; line-height: 1.45; }
  .well-kart-storefront .price-row { align-items: flex-end; gap: 7px; padding-top: 11px; }
  .well-kart-storefront .price { font-size: 17px; }
  .well-kart-storefront .price .old-price { display: block; margin-left: 0; font-size: 12px; line-height: 1.7; }
  .well-kart-storefront .add-btn { min-height: 40px; padding: 8px 9px; font-size: 14px; }
  .well-kart-storefront .add-btn span { display: inline; }
  .well-kart-storefront .tab { min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .well-kart-storefront .wk-care-banner { margin-top: 41px; margin-bottom: 38px; padding: 30px 25px; border-radius: 12px; }
  .well-kart-storefront .wk-care-banner h2 { font-size: 30px; }
  .well-kart-storefront .wk-care-banner p:not(.wk-eyebrow) { font-size: 16px; }
  .well-kart-storefront .page { padding-top: 30px; padding-bottom: 43px; }
  :is(.well-kart-storefront, .well-kart-admin) .page-header { flex-wrap: wrap; margin-bottom: 24px; gap: 15px; }
  :is(.well-kart-storefront, .well-kart-admin) .page-header h1 { font-size: 33px; }
  :is(.well-kart-storefront, .well-kart-admin) .page-header p { font-size: 16px; }
  :is(.well-kart-storefront, .well-kart-admin) .form-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  :is(.well-kart-storefront, .well-kart-admin) .three-col { grid-template-columns: minmax(0, 1fr); }
  :is(.well-kart-storefront, .well-kart-admin) .panel { padding: 23px 20px; }
  :is(.well-kart-storefront, .well-kart-admin) :is(th, td) { padding: 13px 12px; }
  .well-kart-storefront .auth-wrap .panel { padding: 29px 23px; }
  .well-kart-storefront .auth-wrap h1 { font-size: 32px; }
  .well-kart-storefront .auth-links { font-size: 14px; }
  .well-kart-storefront .subscribe-box { padding: 20px; }
  .well-kart-storefront .subscribe-box .inline { flex-wrap: wrap; }
  .well-kart-storefront .subscribe-box .inline .btn { width: 100%; }
  .well-kart-storefront .summary { padding: 24px; }
  .well-kart-storefront .summary-total { font-size: 22px; }
  .well-kart-storefront .cart-layout table,
  .well-kart-storefront .cart-layout tbody { display: block; width: 100%; }
  .well-kart-storefront .cart-layout thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .well-kart-storefront .cart-layout tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; padding: 18px; border-bottom: 1px solid var(--line); }
  .well-kart-storefront .cart-layout tbody tr:last-child { border-bottom: 0; }
  .well-kart-storefront .cart-layout td { display: block; padding: 0; border: 0; }
  .well-kart-storefront .cart-layout td:first-child { grid-column: 1 / -1; }
  .well-kart-storefront .cart-layout td:nth-child(2)::before,
  .well-kart-storefront .cart-layout td:nth-child(3)::before { display: block; margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 500; }
  .well-kart-storefront .cart-layout td:nth-child(2)::before { content: "Quantity"; }
  .well-kart-storefront .cart-layout td:nth-child(3)::before { content: "Line total"; }
  .well-kart-storefront .cart-layout td:nth-child(3) { align-self: end; padding-bottom: 10px; color: var(--wk-navy); font-size: 18px; font-weight: 700; }
  .well-kart-storefront .newsletter-bar { padding-block: 28px; }
  .well-kart-storefront .newsletter-inner h3 { font-size: 25px; }
  .well-kart-storefront .newsletter-form { width: 100%; }
  .well-kart-storefront .newsletter-fields .btn { padding-inline: 13px; font-size: 14px; }
  .well-kart-storefront .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; padding-top: 31px; padding-bottom: 31px; }
  .well-kart-storefront .footer-main > div:first-child { grid-column: 1 / -1; }
  .well-kart-storefront .footer-main > div:last-child { display: block; grid-column: 1 / -1; }
  .well-kart-storefront .footer-main .wk-logo-window { width: 223px; }
  .well-kart-storefront .footer-main h4 { font-size: 14px; margin-bottom: 13px; }
  .well-kart-storefront .footer-main :is(p, li) { font-size: 14px; }
  .well-kart-storefront .footer-main p { max-width: 400px; }
  .well-kart-storefront .footer-bottom { flex-direction: column; gap: 13px; align-items: flex-start; font-size: 12px; }
  .well-kart-storefront .footer-bottom > span:first-child,
  .well-kart-storefront .footer-bottom .inline { max-width: 100%; }
  .well-kart-storefront .footer-bottom .inline { justify-content: flex-start; }
  .well-kart-admin .admin-main .page-header h1 { font-size: 31px; }
  .well-kart-admin .admin-main .page-header p { font-size: 14px; }
  .well-kart-admin .admin-top .btn { font-size: 14px; }
  .well-kart-admin .stat .label { font-size: 14px; }
  .well-kart-admin .stat .value { font-size: 28px; }
  .well-kart-admin .stat .small { font-size: 12px; }
  .well-kart-admin .category-table td[data-label]::before { font-size: 12px; }
}

@media (max-width: 420px) {
  .well-kart-storefront .wk-announcement > .container { gap: 8px; }
  .well-kart-storefront .wk-announcement > .container > :last-child { max-width: 47%; }
  .well-kart-storefront .wk-header-main { gap: 14px 6px; }
  .well-kart-storefront .wk-header-actions { gap: 1px; }
  .well-kart-storefront .wk-hero-copy { padding-inline: 22px; }
  .well-kart-storefront .wk-hero h1 { font-size: 38px; }
  .well-kart-storefront .wk-benefits { column-gap: 13px; }
  .well-kart-storefront .wk-benefit { gap: 7px; }
  .well-kart-storefront .wk-benefit > svg { width: 22px; height: 22px; }
  .well-kart-storefront .wk-collections .category-card { flex-basis: 89%; padding: 22px; }
  .well-kart-storefront .wk-collections .category-card > strong { font-size: 24px; }
  .well-kart-storefront .wk-collections .category-card > span:not(.wk-category-media) { left: 22px; }
  .well-kart-storefront .product-grid { gap: 25px 12px; }
  .well-kart-storefront .add-btn { gap: 5px; padding-inline: 8px; }
  .well-kart-storefront .filters { padding: 20px 16px; }
  .well-kart-storefront .filters form { column-gap: 11px; }
  .well-kart-storefront .summary { padding-inline: 21px; }
  .well-kart-storefront .newsletter-fields { flex-wrap: wrap; }
  .well-kart-storefront .newsletter-fields .btn { width: 100%; }
  .well-kart-storefront .newsletter-fields input { flex-basis: 100%; }
}

@media (max-width: 350px) {
  .well-kart-storefront .wk-hero-copy { padding-inline: 19px; }
  .well-kart-storefront .wk-hero h1 { font-size: 35px; }
  .well-kart-storefront .wk-hero-copy > .btn { width: 100%; padding-inline: 12px; }
  .well-kart-storefront .wk-benefits { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .well-kart-storefront .wk-benefit { gap: 12px; }
  .well-kart-storefront .wk-section-heading h2 { font-size: 25px; }
  .well-kart-storefront .wk-collections .category-card { flex-basis: 94%; }
  .well-kart-storefront .price-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .well-kart-storefront .add-btn { width: 100%; }
  .well-kart-storefront .filters form { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(> .well-kart-storefront), html:has(> .well-kart-admin) { scroll-behavior: auto; }
  :is(.well-kart-storefront, .well-kart-admin) *,
  :is(.well-kart-storefront, .well-kart-admin) *::before,
  :is(.well-kart-storefront, .well-kart-admin) *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  :is(.well-kart-storefront, .well-kart-admin) .btn:hover,
  .well-kart-storefront .wk-collections .category-card:hover,
  .well-kart-storefront .product-image:hover > .wk-product-media { transform: none; }
}

@media print {
  :is(.well-kart-storefront, .well-kart-admin) .wk-skip-link,
  .well-kart-storefront .wk-announcement,
  .well-kart-storefront .wk-header,
  .well-kart-storefront .wk-hero,
  .well-kart-storefront .wk-benefits,
  .well-kart-storefront .wk-care-banner { display: none !important; }
  :is(.well-kart-storefront, .well-kart-admin) { background: #fff; color: #111; }
  :is(.well-kart-storefront, .well-kart-admin) .container { width: 100%; padding: 0; margin: 0; }
  :is(.well-kart-storefront, .well-kart-admin) .panel { border-color: #ccc; background: #fff; break-inside: avoid; }
  :is(.well-kart-storefront, .well-kart-admin) .two-col { grid-template-columns: 1fr 1fr; }
  :is(.well-kart-storefront, .well-kart-admin) th { background: #f2f2f2; color: #333; }
  .well-kart-storefront .summary { position: static; }
}
