/* Agentic Commerce storefront design system.
 * Ported from developer's shared storefront theme.
 * This layer is loaded after page-level CSS. It deliberately preserves
 * existing Razor controls, commerce data attributes, and API behaviors.
 */
:root {
  --forest-900: #253d4e;
  --forest-800: #255e4b;
  --forest-700: #3bb77e;
  --forest-500: #3bb77e;
  --leaf-300: #a4dfc2;
  --leaf-200: #d9f5e6;
  --leaf-100: #effaf4;
  --earth-700: #248b63;
  --earth-500: #3bb77e;
  --earth-300: #c5e8d5;
  --cream-50: #ffffff;
  --cream-100: #f8fbf9;
  --mist-100: #f8faf9;
  --mist-200: #edf1ef;
  --mist-300: #e3ebe6;
  --text-main: #253d4e;
  --text-soft: #7b858c;
  --shadow: rgba(20, 51, 41, .045);
  --ac-primary: #3bb77e;
  --ac-primary-dark: #27976a;
  --ac-ink: #253d4e;
  --ac-muted: #76848b;
  --ac-border: #e9eeec;
  --ac-surface: #fff;
  --ac-mint: #e6f7ef;
  --ac-radius: 12px;
  --ac-shadow: 0 8px 28px rgba(37, 61, 78, .045);
}
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  background: #fff;
  color: var(--ac-ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.site-body--auth { background: #f6faf8; }
button, input, textarea, select { font-family: inherit; }
a { text-decoration: none; transition: color .17s ease; }
a:hover { color: var(--ac-primary-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(59,183,126,.36);
  outline-offset: 2px;
}
::selection { background: #caf4de; color: var(--ac-ink); }
[hidden], .kb-user-menu__panel[hidden] { display: none !important; }
.kb-shell, .kb-page { width: min(1380px, calc(100% - 48px)); margin-inline: auto; }
.kb-page--wide { width: min(1440px, calc(100% - 48px)); }
.kb-page { padding: 28px 0 66px; min-height: 55vh; }
.site-page { background: #fff; }
.kb-section-kicker {
  color: var(--ac-primary-dark);
  letter-spacing: .13em;
  font-size: .68rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}
:is(h1,h2,h3,h4,h5,h6) { color: var(--ac-ink); letter-spacing: -.025em; }
h1 { font-size: clamp(1.8rem, 2.4vw, 2.5rem); font-weight: 750; }
h2 { font-weight: 740; }

/* --- Top area: utility bar, emblem, search, icon actions and navigation --- */
.kb-header {
  background: #fff;
  border-bottom: 1px solid var(--ac-border);
  box-shadow: none;
  backdrop-filter: none;
}
.kb-topbar {
  background: #fff;
  border-bottom: 1px solid #f0f2f2;
  color: #898e93;
  font-size: .73rem;
}
.kb-topbar__inner { min-height: 33px; padding: 5px 0; gap: 22px; }
.kb-topbar__links { display: flex; flex: 1; gap: 13px; align-items: center; flex-wrap: nowrap; }
.kb-topbar__links :is(a, button[data-chat-widget-launcher]) { color: #7e898b; white-space: nowrap; }
.kb-topbar__links :is(a, button[data-chat-widget-launcher]):hover, .kb-topbar__links strong { color: var(--ac-primary-dark); }
.kb-topbar__links--end { justify-content: flex-end; }
.kb-topbar__message { text-align: center; white-space: nowrap; color: #687d71; }
.kb-topbar__divider { width: 1px; height: 12px; background: #dae3de; }
.kb-mainbar { gap: 34px; min-height: 98px; padding: 17px 0; }
.kb-brand { flex: 0 0 auto; gap: 9px; align-items: center; min-width: 0; }
.kb-brand__mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 48px;
  border-radius: 12px;
  background: #e8f8ef;
  box-shadow: inset 0 0 0 1px #d8f1e5;
  color: var(--ac-primary-dark);
  letter-spacing: -.04em;
  font-weight: 850;
}
.kb-brand__mark svg { width: 37px; height: 37px; }
.kb-brand__text strong { color: var(--ac-primary); font-size: 1.43rem; letter-spacing: -.055em; font-weight: 800; }
.kb-brand__text small { font-size: .64rem; color: var(--ac-ink); letter-spacing: .15em; font-weight: 700; }
.kb-search {
  max-width: 650px;
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
  min-height: 48px;
  border: 2px solid #cbe9da;
  border-radius: 7px;
  background: #fff;
}
.kb-search:focus-within { border-color: var(--ac-primary); box-shadow: 0 0 0 3px rgba(59,183,126,.07); }
.kb-search__category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 118px;
  padding: 0 14px;
  color: var(--ac-ink);
  font-weight: 700;
  white-space: nowrap;
  border-right: 1px solid var(--ac-border);
}
.kb-search__category span { color: var(--ac-primary); }
.kb-search input, .kb-search input:focus {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  color: var(--ac-ink);
}
.kb-search input::placeholder { color: #a4abae; }
.kb-search button {
  flex: 0 0 48px;
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 0;
  min-width: 48px;
  border: 0;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: var(--ac-primary);
  box-shadow: none;
}
.kb-search button:hover { background: var(--ac-mint); transform: none; }
.kb-search button svg { width: 20px; height: 20px; }
.kb-actions { flex: 0 0 auto; display: flex; justify-content: flex-end; flex-wrap: nowrap; gap: 14px; }
.kb-action, .kb-user-menu__trigger {
  border: none;
  background: transparent;
  color: #586c71;
  border-radius: 8px;
  box-shadow: none;
}
/* Keep the original registration entry accessible on desktop. */
.kb-action--register { align-self: center; white-space: nowrap; border: 1px solid var(--ac-primary); color: #fff; background: var(--ac-primary); border-radius: 6px; padding: 9px 14px; font-size: .83rem; }
.kb-action--register:hover { color: #fff; background: var(--ac-primary-dark); border-color: var(--ac-primary-dark); }
.kb-action--icon, .kb-user-menu__trigger.kb-action--icon {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 55px;
  padding: 5px 3px;
  font-size: .83rem;
  line-height: 1.4;
  font-weight: 580;
}
.kb-action--icon svg { width: 23px; height: 23px; stroke-linejoin: round; }
.kb-action:hover, .kb-user-menu__trigger:hover { color: var(--ac-primary-dark); background: #f6fbf8; transform: none; }
.kb-action__icon-wrap { position: relative; display: inline-flex; }
.kb-badge {
  position: absolute;
  top: -10px;
  right: -12px;
  width: 19px;
  min-width: 19px;
  height: 19px;
  padding: 0 3px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 800;
  background: var(--ac-primary);
  color: #fff;
}
.kb-user-menu__panel {
  top: calc(100% + 8px);
  border-radius: 10px;
  border: 1px solid var(--ac-border);
  box-shadow: 0 16px 38px rgba(33,59,51,.14);
  z-index: 1080;
}
.kb-user-menu__panel a, .kb-user-menu__logout { background: transparent; border-radius: 6px; font-size: .91rem; }
.kb-user-menu__panel a:hover, .kb-user-menu__logout:hover { background: var(--ac-mint); }
.kb-user-menu__name { padding: 7px 10px; color: var(--ac-ink); font-weight: 750; border-bottom: 1px solid var(--ac-border); }
.kb-nav-wrap { border-top: 1px solid #f1f3f1; overflow: visible; }
.kb-nav { min-height: 64px; padding: 9px 0; gap: 22px; align-items: center; overflow: visible; }
.kb-nav__links { display: flex; flex: 1; align-items: center; gap: 3px; min-width: 0; flex-wrap: wrap; }
.kb-nav__links a { padding: 8px 13px; font-size: .94rem; font-weight: 720; color: var(--ac-ink); }
.kb-nav__links a:hover, .kb-nav__links a.is-active { color: var(--ac-primary-dark); }
.kb-category-menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 21px;
  min-height: 44px;
  font-weight: 740;
  color: #fff;
  background: var(--ac-primary);
  border-radius: 5px;
}
.kb-category-menu__trigger::before { content: "▦"; font-size: 1.05rem; }
.kb-category-menu__trigger:hover,
.kb-category-menu__trigger:focus-visible,
.kb-category-menu__trigger[aria-expanded="true"] { background: var(--ac-primary-dark); color: #fff; }
.kb-category-menu__panel {
  top: calc(100% + 9px);
  border: 1px solid var(--ac-border);
  border-radius: 10px;
  box-shadow: 0 24px 50px rgba(30,55,50,.13);
  background: #fff;
}
.kb-category-menu__panel[hidden] { display: none !important; }
.kb-category-menu__root, .kb-category-menu__heading strong { color: var(--ac-ink); }
.kb-nav__support { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; margin-left: auto; }
.kb-nav__support svg { width: 26px; height: 26px; color: var(--ac-ink); }
.kb-nav__support span { display: grid; gap: 1px; line-height: 1.16; }
.kb-nav__support strong { color: var(--ac-primary); font-size: 1rem; }
.kb-nav__support small { color: var(--ac-muted); font-size: .72rem; }

/* --- Global surfaces, inputs and navigation feedback --- */
.kb-card, .dashboard-panel, .order-panel, .cart-item, .cart-sidebar-card,
.summary-card, .mini-card, .status-card, .coupon-panel, .my-coupon-card,
.product-gallery-card, .product-purchase-card, .product-description-card,
.favorite-card, .shop-card, .store-card, .shop-section-card,
.checkout-shop-block, .invoice-card, .profile-address-card {
  background: #fff;
  border: 1px solid var(--ac-border);
  border-radius: var(--ac-radius);
  box-shadow: var(--ac-shadow);
}
.dashboard-panel, .order-panel, .status-card { padding: 24px; }
.catalog-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .87rem;
  color: var(--ac-muted);
}
.catalog-breadcrumb a { color: var(--ac-primary-dark); }
.catalog-breadcrumb > :not(:last-child)::after { content: "›"; display: inline-block; margin-left: 10px; color: #b7c2bd; }
.page-breadcrumb { margin: 0 0 18px; }
.kb-section-kicker + h1, .kb-section-kicker + h2 { margin-top: 0; }
.catalog-primary-button, .kb-action--primary, .auth-submit, .checkout-submit,
.primary-link, .page-empty__actions .primary-link, .status-card__link--primary,
.home-hero__button, .member-cta__primary, .checkout-secondary--primary {
  color: #fff;
  background: var(--ac-primary);
  border: 1px solid var(--ac-primary);
  border-radius: 6px;
  box-shadow: none;
  font-weight: 710;
}
.catalog-primary-button:hover, .auth-submit:hover, .checkout-submit:hover,
.primary-link:hover, .page-empty__actions .primary-link:hover, .status-card__link--primary:hover,
.member-cta__primary:hover { background: var(--ac-primary-dark); border-color: var(--ac-primary-dark); color: #fff; }
.catalog-secondary-button, .checkout-secondary, .status-card__link, .catalog-chip,
.catalog-tab, .dashboard-pill, .pagination a, .order-filter-chip {
  border: 1px solid #dde9e2;
  background: #fff;
  color: #427364;
  box-shadow: none;
  border-radius: 7px;
}
.catalog-secondary-button:hover, .catalog-tab:hover, .catalog-chip:hover,
.order-filter-chip:hover, .pagination a:hover { border-color: var(--ac-primary); background: var(--ac-mint); color: var(--ac-primary-dark); }
.catalog-tab.is-active, .catalog-chip.is-active, .dashboard-pill.is-active,
.order-filter-chip.is-active { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.form-control, .form-select, .auth-form__input, .checkout-input, .checkout-select,
textarea, select:not(.catalog-sort select) { border-color: #e4ebe7; border-radius: 7px; background: #fff; }
.form-control, .form-select { min-height: 44px; }
.form-control:focus, .form-select:focus, .checkout-input:focus, .checkout-select:focus,
textarea:focus { border-color: var(--ac-primary); box-shadow: 0 0 0 3px rgba(59,183,126,.11); }
.page-transition-overlay { background: rgba(250,255,252,.75); }
.page-transition-overlay__panel { background: #2c9f70; box-shadow: 0 16px 35px rgba(35,137,90,.18); }
.catalog-inline-error, .checkout-field-error { border-radius: 7px; }
.catalog-feedback, .favorite-feedback { border-radius: 8px; }

/* --- Home: editorial banner / category tiles / three promotions / products --- */
.storefront-shell { gap: 36px; }
.storefront-hero { margin-bottom: 0; border-radius: 17px; overflow: hidden; border: 1px solid #e8f1e9; box-shadow: none; }
.storefront-banner-link { background: #d9f3e7; }
.storefront-banner-image { width: 100%; height: auto; object-fit: cover; }
.storefront-carousel__indicators { bottom: 10px; }
.storefront-carousel__indicators [data-bs-target] { border-radius: 20px; background: #c0dfd0; }
.storefront-carousel__indicators .active { background: var(--ac-primary); }
.storefront-carousel__control { width: 38px; height: 38px; background: rgba(255,255,255,.94); border: 1px solid #e3ede7; border-radius: 50%; opacity: 1; }
.storefront-carousel__control .carousel-control-prev-icon,
.storefront-carousel__control .carousel-control-next-icon { width: 13px; height: 13px; filter: brightness(0) saturate(100%) invert(55%) sepia(35%) saturate(748%) hue-rotate(105deg); }
.home-discovery-panel { padding: 0; margin: 0; gap: 20px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.home-discovery-panel__header { align-items: flex-end; }
.home-discovery-panel__header h2, .storefront-section__header h2 { font-size: 1.55rem; font-weight: 760; }
.home-discovery-panel__all-categories { color: var(--ac-primary-dark); text-decoration: none; font-size: .9rem; }
.home-discovery-panel__all-categories::after { content: "  →"; }
.home-category-shortcuts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.home-category-shortcut {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 2px;
  padding: 18px 8px;
  min-height: 153px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #edf8ec;
  color: var(--ac-ink);
  font-size: .9rem;
  box-shadow: none;
}
.home-category-shortcut:nth-child(6n+2) { background: #fff8e7; }
.home-category-shortcut:nth-child(6n+3) { background: #e9faf2; }
.home-category-shortcut:nth-child(6n+4) { background: #fff1f1; }
.home-category-shortcut:nth-child(6n+5) { background: #f9f1fa; }
.home-category-shortcut:nth-child(6n+6) { background: #edf5fe; }
.home-category-shortcut:hover { transform: translateY(-3px); border-color: #c5ead9; color: var(--ac-primary-dark); box-shadow: 0 12px 22px rgba(37,61,78,.06); }
.home-category-shortcut__visual { font-size: 2.55rem; height: 60px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; transition: transform .2s ease; }
.home-category-shortcut:hover .home-category-shortcut__visual { transform: scale(1.1); }
.home-category-shortcut__name { display: block; max-width: 100%; font-size: .93rem; font-weight: 760; overflow-wrap: anywhere; }
.home-category-shortcut small { color: var(--ac-muted); font-size: .76rem; }
.home-tag-strip { padding: 13px 0 0; border-top: 1px solid #edf1ed; }
.home-tag-strip__label { color: var(--ac-ink); }
.home-tag-strip__item { background: #f6fbf8; border-color: #e0efe7; border-radius: 999px; color: #54836c; }
.storefront-promo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.storefront-promo-card {
  isolation: isolate;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 26px 30px;
  border: 0;
  overflow: hidden;
  border-radius: 11px;
  color: var(--ac-ink);
  background: #f5ebda;
  transition: transform .2s ease, box-shadow .2s ease;
}
.storefront-promo-card:hover { transform: translateY(-3px); color: var(--ac-ink); box-shadow: 0 15px 34px rgba(37,61,78,.08); }
button.storefront-promo-card { font: inherit; text-align: left; cursor: pointer; }
.storefront-promo-card--ai { background: #eaf4f1; }
.storefront-promo-card--member { background: #f0edf8; }
.storefront-promo-card__eyebrow { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: #719282; }
.storefront-promo-card h3 { z-index: 1; margin: 0; font-size: clamp(1.2rem, 1.55vw, 1.55rem); line-height: 1.35; font-weight: 760; }
.storefront-promo-card__cta { z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 5px; background: var(--ac-primary); color: #fff; font-size: .8rem; font-weight: 700; }
.storefront-promo-card__art { position: absolute; right: -10px; bottom: -17px; font-size: clamp(5.5rem, 9vw, 8rem); line-height: 1; transform: rotate(-10deg); opacity: .83; filter: drop-shadow(3px 8px 9px rgba(0,0,0,.05)); pointer-events: none; }
.storefront-section { gap: 20px; }
.storefront-section__header { align-items: flex-end; }
.storefront-section__header h2 { margin: 0; }
.storefront-section__header .catalog-secondary-button { padding: 8px 13px; }
.home-best-sellers.catalog-shell--product-index { width: 100%; max-width: none; }
.home-best-sellers__description { font-size: .86rem; }
.storefront-shell .catalog-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.member-cta { border-radius: 13px; background: linear-gradient(110deg,#e3f6ee,#f5fbf6); border: 1px solid #cfeedd; color: var(--ac-ink); box-shadow: none; }
.member-cta p,
.member-cta__panel ul { color: #456252; }
.member-cta__badge {
  color: #1c6146;
  background: #e0f2e7;
  border-color: #b3dac5;
}
.member-cta__panel {
  color: var(--ac-ink);
  background: rgba(255,255,255,.7);
  border-color: #cfe5d8;
}
.member-cta__primary, .member-cta__secondary { border-radius: 6px; }
.member-cta__primary { color: #fff; background: #16724f; border-color: #16724f; }
.member-cta__primary:hover,
.member-cta__primary:focus-visible { color: #fff; background: #105a3e; border-color: #105a3e; }
.member-cta__secondary { color: #1c6146; background: #fff; border-color: #9fcbb6; }
.member-cta__secondary:hover,
.member-cta__secondary:focus-visible { color: #154c36; background: #d9efe2; border-color: #73ad91; }

/* --- Shared merchandise tile --- */
.catalog-grid, .product-list-grid, .related-product-grid, .shop-product-grid { gap: 17px; }
.catalog-card {
  overflow: hidden;
  border: 1px solid #ecf0ed;
  border-radius: 11px;
  background: #fff;
  box-shadow: none;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.catalog-card:hover, .catalog-card:focus-within,
.catalog-shell--product-index .catalog-card:hover {
  transform: translateY(-2px);
  border-color: #d0e8dc;
  box-shadow: 0 13px 25px rgba(37,61,78,.065);
}
.catalog-card__image, .favorite-card__image,
.catalog-shell--product-index .catalog-card__image {
  aspect-ratio: 1.05 / 1;
  background: #fff;
  overflow: hidden;
  padding: 14px;
  border-radius: 10px 10px 0 0;
}
.catalog-card__image img, .favorite-card__image img { object-fit: contain; width: 100%; height: 100%; }
.catalog-card__body, .catalog-shell--product-index .catalog-card__body {
  gap: 7px;
  padding: 12px 13px 14px;
}
.catalog-card__meta-top { font-size: .74rem; }
.catalog-card__brand { color: var(--ac-primary-dark); font-weight: 580; }
.catalog-card__sku { font-size: .7rem; color: #a0abb0; }
.catalog-card__title, .catalog-shell--product-index .catalog-card__title {
  font-size: .91rem;
  line-height: 1.45;
  font-weight: 760;
  color: var(--ac-ink);
  min-height: 2.75em;
}
.catalog-card__title a:hover { color: var(--ac-primary-dark); }
.catalog-card__meta { font-size: .75rem; }
.catalog-card__shipping { font-size: .77rem; gap: 5px; color: #82918a; }
.catalog-card__shipping svg { width: 14px; height: 14px; color: var(--ac-primary); }
.product-category-badges { gap: 5px; }
.product-category-badges span, .product-category-badges a {
  padding: 2px 7px;
  font-size: .69rem;
  border-radius: 5px;
  border: 1px solid #ebf1ed;
  background: #f7faf8;
  color: #92a09a;
}
.catalog-card__price strong, .catalog-shell--product-index .catalog-card__price strong { color: var(--ac-primary); font-size: 1.11rem; font-weight: 800; }
.catalog-card__price small, .catalog-shell--product-index .catalog-card__price small { font-size: .77rem; color: #adb6b3; }
.catalog-card__price { gap: 7px; }
.catalog-card__actions { margin-top: 6px; padding-top: 0; }
.catalog-card__actions .catalog-primary-button, .catalog-card__actions .catalog-secondary-button {
  min-height: 37px;
  padding: 8px 10px;
  font-size: .82rem;
  border-radius: 6px;
}
.catalog-card__actions .catalog-primary-button { color: var(--ac-primary-dark); background: #e6f8ee; border-color: #e6f8ee; }
.catalog-card__actions .catalog-primary-button:hover { color: #fff; background: var(--ac-primary); border-color: var(--ac-primary); }
.catalog-card__badge, .catalog-shell--product-index .catalog-card__badge {
  top: 10px; left: 10px; border: none; color: #fff;
  background: #3bb77e; box-shadow: none; padding: 4px 11px;
  border-radius: 6px 0 6px 0; font-size: .68rem;
}
.catalog-card__badge--sale, .catalog-shell--product-index .catalog-card__badge--sale { background: #fa6b91; color: #fff; }
.catalog-card__rank--first { background: #efaa51; }
.catalog-card__rank--second { background: #67b9d9; }
.catalog-card__rank--third { background: #b8a4e1; }
.catalog-favorite-button { top: 9px; right: 9px; width: 33px; height: 33px; color: #7c9d90; box-shadow: 0 3px 10px rgba(0,0,0,.055); }
.catalog-favorite-button.is-favorite, .catalog-favorite-button:hover { color: #e46b84; border-color: #f8d6df; background: #fff4f6; }

/* --- Product listing, filters, result count, desktop sidebar at right --- */
.catalog-shell--product-index { width: 100%; max-width: none; gap: 20px; }
.catalog-shell--product-index .catalog-hero {
  padding: 43px 48px;
  border: 0;
  border-radius: 13px;
  background: radial-gradient(circle at 87% 10%,rgba(255,255,255,.55) 0 16%,transparent 17%),
              radial-gradient(circle at 62% 110%,rgba(196,238,221,.7) 0 24%,transparent 25%),
              linear-gradient(110deg,#e0f3eb,#d3eee1);
}
.catalog-shell--product-index .catalog-hero::after { opacity: .22; }
.catalog-hero--compact .home-hero__content h1 { font-size: clamp(1.95rem, 3vw, 2.8rem); font-weight: 780; }
.catalog-hero__summary { color: #698c7d; max-width: 600px; }
.catalog-hero__result { background: rgba(255,255,255,.76); border: 1px solid rgba(255,255,255,.92); border-radius: 9px; box-shadow: none; }
.product-primary-categories { border-bottom: none; padding: 6px 0; }
.product-primary-categories h2 { color: var(--ac-ink); }
.product-category-quick__link { padding: 8px 13px; border: 1px solid var(--ac-border); border-radius: 6px; font-size: .84rem; }
.product-category-quick__link:hover, .product-category-quick__link.is-active,
.product-category-quick__link:focus-visible { color: #fff; border-color: var(--ac-primary); background: var(--ac-primary); }
.product-catalog-layout { grid-template-columns: minmax(0, 1fr) 245px; gap: 23px; }
.product-catalog-layout > .product-category-sidebar { grid-column: 2; grid-row: 1; }
.product-catalog-layout > .catalog-panel { grid-column: 1; grid-row: 1; }
.product-category-sidebar { border: 1px solid var(--ac-border); border-radius: 10px; padding: 20px 18px; box-shadow: var(--ac-shadow); }
.product-category-sidebar__header { border-bottom: 1px solid var(--ac-border); padding-bottom: 12px; }
.product-category-sidebar__header h2 { font-size: 1.13rem; font-weight: 780; }
.product-category-sidebar__all, .product-category-tree__link { border-radius: 5px; font-size: .86rem; }
.product-category-sidebar__all:hover, .product-category-sidebar__all.is-active,
.product-category-tree__link:hover, .product-category-tree__link.is-active { background: var(--ac-mint); color: var(--ac-primary-dark); }
.catalog-panel { border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.catalog-panel__header { align-items: flex-start; }
.catalog-panel__header h2 { font-size: 1.4rem; }
.catalog-panel__intro { font-size: .83rem; }
.catalog-controls { border-color: var(--ac-border); background: #fff; padding: 13px 0; border-radius: 0; }
.catalog-controls__group strong, .catalog-summary-bar strong { color: var(--ac-ink); }
.catalog-sort select { background: #fff; border: 1px solid var(--ac-border); border-radius: 6px; min-height: 38px; }
.catalog-tabs--segmented { border-radius: 7px; background: #f5faf7; }
.catalog-tabs--segmented .catalog-tab { border-radius: 5px; }
.catalog-tabs--segmented .catalog-tab.is-active { background: var(--ac-primary); color: #fff; }
.catalog-summary-bar { border-color: var(--ac-border); }
.product-list-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; }
.catalog-applied-filters { background: #f5fbf8; border-color: #e1f2e9; }
.catalog-applied-filters > a { color: var(--ac-primary-dark); }
.pagination a { border-radius: 5px; }
.pagination a.active, .pagination a[aria-current="page"] { background: var(--ac-primary); color: #fff; border-color: var(--ac-primary); }

/* --- Product detail: 3-column gallery/purchase/help, compact description --- */
.product-detail-panel { border: 0; box-shadow: none; padding: 0; }
.product-detail-panel > .list-header h1 { font-size: 1.6rem; margin: 0; }
.product-detail-layout { grid-template-columns: minmax(0, 1.08fr) minmax(330px, 1fr) 245px; gap: 24px; }
.product-gallery-card, .product-purchase-card { border-radius: 11px; box-shadow: none; }
.product-gallery-card { padding: 16px; }
.product-gallery-card__primary { border: 1px solid var(--ac-border); background: #fff; border-radius: 9px; padding: 20px; }
.product-gallery-card__thumb { border-radius: 8px; width: 66px; height: 66px; }
.product-gallery-card__thumb:hover, .product-gallery-card__thumb.is-active { border-color: var(--ac-primary); }
.product-purchase-card { position: static; padding: 18px 20px; gap: 15px; }
.product-purchase-card h2 { font-size: 1.5rem !important; font-weight: 780; }
.product-price-panel { background: #f8fcfa; border-color: #e3f2ea; border-radius: 8px; }
.product-price-panel__sale { color: var(--ac-primary); font-size: 1.8rem; }
.product-price-panel__market { color: #aab2ae; }
.product-variant-selector { background: #fbfdfc; border-color: var(--ac-border); border-radius: 8px; }
.product-variant-selector__value[aria-pressed="true"], .product-variant-selector__value.is-selected { background: var(--ac-primary); color: #fff; border-color: var(--ac-primary); }
.product-purchase-card__chips .product-stock-chip { color: var(--ac-primary-dark); }
.product-purchase-card__quantity input { border-radius: 6px; }
.product-detail-sidebar { display: grid; gap: 16px; align-content: start; }
.product-detail-sidebar__card { padding: 20px; border: 1px solid var(--ac-border); border-radius: 10px; box-shadow: var(--ac-shadow); }
.product-detail-sidebar__card h3 { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ac-border); font-size: 1.12rem; font-weight: 760; }
.product-detail-sidebar__links { display: grid; gap: 7px; color: var(--ac-primary-dark); }
.product-detail-sidebar__links a { display: flex; justify-content: space-between; padding: 9px; border-radius: 5px; border: 1px solid #eff3ef; color: #5e8170; }
.product-detail-sidebar__links a:hover { background: var(--ac-mint); color: var(--ac-primary-dark); }
.product-detail-sidebar__help { background: #ecf9f3; border-color: #d9f1e4; }
.product-detail-sidebar__help > span { display: inline-flex; color: var(--ac-primary); font-size: 1.6rem; }
.product-detail-sidebar__help h3 { margin-bottom: 8px; }
.product-detail-sidebar__help p { font-size: .84rem; color: #718e7f; }
.product-detail-sidebar__help :is(a, button[data-chat-widget-launcher]) { color: var(--ac-primary-dark); font-weight: 720; }
.product-description-card { padding: 12px; box-shadow: none; border: 0; }
.product-description-card__section { padding: 18px; border-bottom: 1px solid var(--ac-border); }
.product-description-card__section:last-child { border: 0; }
.product-description-card__section h2 { font-size: 1.3rem; }
.product-description-card__content { color: #5b686e; font-size: .91rem; line-height: 1.85; overflow-wrap: anywhere; }
.product-description-card__content img { max-width: 100%; height: auto; }
.related-products { box-shadow: none; }

/* --- Shopping cart: gentle tables and strong summary (all existing JS hooks stay) --- */
.cart-shell, .favorite-shell, .order-shell, .coupon-shell, .status-shell { gap: 20px; }
.cart-shell > .dashboard-panel:first-child, .favorite-shell > .dashboard-panel:first-child,
.order-shell > .dashboard-panel:first-child, .coupon-shell > .dashboard-panel:first-child {
  padding: 6px 0 18px; border: 0; border-bottom: 1px solid #eef1ee; border-radius: 0; box-shadow: none;
}
.cart-shell > .dashboard-panel:first-child h1,
.favorite-shell > .dashboard-panel:first-child h1,
.order-shell > .dashboard-panel:first-child h1 { font-size: 2rem; font-weight: 780; }
.cart-layout { grid-template-columns: minmax(0, 1fr) 350px; gap: 25px; }
.cart-list { gap: 16px; }
.shop-group { gap: 0; margin-bottom: 18px; border: 1px solid var(--ac-border); border-radius: 10px; overflow: hidden; }
.shop-group__header { margin: 0; padding: 16px 20px; border: 0; border-radius: 0; background: #f9fcfa; box-shadow: none; gap: 15px; }
.shop-group__title { font-size: 1.1rem; color: var(--ac-ink); }
.shop-group__label { color: var(--ac-primary-dark); }
.shop-group__accent { background: var(--ac-primary); width: 4px; flex-basis: 4px; border-radius: 4px; }
.shop-group__items { background: #fff; }
.cart-item {
  margin: 0;
  padding: 19px;
  background: #fff;
  border: none;
  border-top: 1px solid #eef2ef;
  border-radius: 0;
  box-shadow: none;
  gap: 17px;
}
.cart-item__image { border: 1px solid var(--ac-border); border-radius: 9px; background: #fff; }
.cart-item__image img { padding: 9px; }
.cart-item__header h3, .cart-item__header a { color: var(--ac-ink); }
.cart-item__code, .cart-item__meta { color: var(--ac-muted); }
.cart-qty input { border-radius: 6px; }
.cart-sidebar-card { top: calc(var(--kb-header-height) + 12px); padding: 22px; border-radius: 10px; }
.cart-sidebar-card h2 { font-size: 1.25rem; }
.cart-summary-row { padding: 10px 0; border-bottom: 1px solid #eef1ee; }
.cart-summary-row strong { color: var(--ac-ink); }
.cart-summary-row:last-child strong { color: var(--ac-primary); }
.shop-coupon-selector { background: #f5fbf7; border: 1px solid #e3f1e7; box-shadow: none; border-radius: 10px; }
.shop-coupon-trigger { background: #fff; border-color: #e4efe9; border-radius: 8px; box-shadow: none; }
.shop-coupon-trigger:hover { background: #fbfefc; border-color: var(--ac-primary); box-shadow: none; }
.shop-coupon-selector__summary strong { color: var(--ac-primary-dark); }
.shop-coupon-selector__eyebrow { color: var(--ac-primary-dark); border-color: #d0eadb; }

/* --- Checkout: consistent field grid, order lines and payment panel --- */
.checkout-page { gap: 20px; }
.checkout-layout { grid-template-columns: minmax(0, 1fr) 355px; gap: 24px; }
.checkout-page-heading h1 { font-size: 2rem; color: var(--ac-ink); }
.checkout-stepper { border-color: var(--ac-border); }
.stepper-step.is-active .stepper-step__number,
.stepper-step.is-complete .stepper-step__number { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.checkout-shop-block { padding: 22px; box-shadow: none; border-radius: 10px; }
.checkout-shop-header { border-color: var(--ac-border); }
.checkout-shop-title, .checkout-section-title { color: var(--ac-ink); font-size: 1.12rem; }
.checkout-item-table th { padding: 12px 10px; background: #f7f9f8; color: var(--ac-ink); font-size: .78rem; border-color: var(--ac-border); }
.checkout-item-table td { padding: 14px 10px; border-bottom: 1px solid #eef2ef; }
.checkout-item-image { width: 60px; height: 60px; border-radius: 7px; }
.checkout-item-name { color: var(--ac-ink); }
.checkout-field-label { color: var(--ac-ink); font-weight: 650; }
.checkout-input, .checkout-select { min-height: 44px; background: #fff; border: 1px solid #e0e8e3; border-radius: 7px; }
.checkout-summary-card { padding: 22px; border: 1px solid var(--ac-border); border-radius: 10px; box-shadow: var(--ac-shadow); }
.checkout-summary-card__title { padding-bottom: 12px; margin: 0 0 17px; border-bottom: 1px solid var(--ac-border); font-size: 1.3rem; font-weight: 770; color: var(--ac-ink); }
.checkout-sidebar { top: calc(var(--kb-header-height) + 12px); }
.checkout-submit { width: 100%; }
.checkout-page .summary-card strong { color: var(--ac-primary-dark); }
.checkout-save-address-option { background: #f8fcfa; border-color: var(--ac-border); }

/* --- Wishlist: desktop rows, mobile cards, no business logic change --- */
.wishlist-list { display: grid; grid-template-columns: minmax(0, 1fr) !important; gap: 0; border: 1px solid var(--ac-border); border-radius: 10px; overflow: hidden; }
.wishlist-list .catalog-card { display: grid; grid-template-columns: 135px minmax(0, 1fr); align-items: center; border-radius: 0; border: 0; border-bottom: 1px solid var(--ac-border); }
.wishlist-list .catalog-card:last-child { border-bottom: none; }
.wishlist-list .catalog-card:hover { transform: none; background: #fbfefc; }
.wishlist-list .catalog-card__image { margin: 11px; border: 1px solid var(--ac-border); border-radius: 8px; width: 114px; height: 114px; aspect-ratio: 1; }
.wishlist-list .catalog-card__body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(120px, .5fr) minmax(145px, .6fr); align-items: center; column-gap: 15px; row-gap: 6px; }
.wishlist-list .catalog-card__meta-top { grid-column: 1; grid-row: 1; }
.wishlist-list .catalog-card__title { grid-column: 1; grid-row: 2; min-height: 0; }
.wishlist-list .product-category-badges { grid-column: 1; grid-row: 3; }
.wishlist-list .catalog-card__meta { grid-column: 1; grid-row: 4; }
.wishlist-list .catalog-card__price { grid-column: 2; grid-row: 1 / span 4; margin: 0; }
.wishlist-list .catalog-card__actions { grid-column: 3; grid-row: 1 / span 4; display: flex; flex-direction: column; gap: 7px; margin: 0; }
.wishlist-list .catalog-card__sponsored-row { grid-column: 1; }
.wishlist-list .catalog-card__badge { z-index: 1; }
.wishlist-list .catalog-card__actions button, .wishlist-list .catalog-card__actions a { width: 100%; }
.wishlist-list .catalog-favorite-button { width: 29px; height: 29px; }
.favorite-shell .mini-card { border-radius: 8px; box-shadow: none; }

/* --- Coupon, account, order, checkout status, store discovery, chat --- */
.coupon-center__tab.is-active { color: #fff; background: var(--ac-primary); border-color: var(--ac-primary); }
.coupon-center__tab:hover { border-color: var(--ac-primary); }
.coupon-center__eyebrow, .coupon-center__section-heading h2 { color: var(--ac-ink); }
.coupon-grid, .shop-grid, .shop-coupon-grid, .home-shop-grid { gap: 17px; }
.my-coupon-card, .coupon-card, .shop-coupon-card { border-color: var(--ac-border); box-shadow: none; border-radius: 9px; }
.coupon-panel, .coupon-wallet-panel, .coupon-center__content { border-color: var(--ac-border); }
.order-filter-chip.is-active, .order-filter-chip[aria-pressed="true"] { background: var(--ac-primary); border-color: var(--ac-primary); color: #fff; }
.order-money, .invoice-summary-box strong, .invoice-card__total strong { color: var(--ac-primary-dark); }
.invoice-card, .invoice-meta-card, .invoice-summary-box { border-color: var(--ac-border); border-radius: 10px; box-shadow: none; }
.order-detail-page .invoice-table thead { background: #f8fbf9; }
.order-row { border-color: var(--ac-border); }
.profile-layout .kb-card, .profile-address-item, .profile-address-card { border-color: var(--ac-border); border-radius: 10px; box-shadow: none; }
.profile-address-item.is-selected, .profile-address-item:hover { border-color: var(--ac-primary); background: #f4fbf7; }
.auth-shell { padding: 36px 24px; }
.auth-card { border: 1px solid #e5efe9; border-radius: 15px; box-shadow: 0 14px 55px rgba(34,90,63,.075); overflow: hidden; }
.auth-copy {
  color: var(--ac-ink);
  background: radial-gradient(circle at 80% 8%,#c7f0dc 0 16%,transparent 17%),
              radial-gradient(circle at 10% 90%,#d6f4e2 0 21%,transparent 22%),
              linear-gradient(130deg,#e0f5e9,#f4fcf7);
}
.auth-copy h1, .auth-copy .kb-section-kicker { color: var(--ac-ink); }
.auth-copy p { color: #597b6a; }
.auth-copy::after { border-color: rgba(79,163,116,.12); }
.auth-form { background: #fff; }
.auth-form h2 { color: var(--ac-ink); }
.auth-field label { color: var(--ac-ink); }
.auth-tabline .is-active { color: var(--ac-primary-dark); border-color: var(--ac-primary); }
.auth-links a { color: var(--ac-primary-dark); }
.activation-state { border-color: var(--ac-border); }
.shop-directory-hero, .shop-detail-intro { background: linear-gradient(110deg,#e1f3e9,#f4fbf6); border-color: #d4eee0; border-radius: 13px; }
.shop-directory-hero h1, .shop-directory__header h2, .shop-detail-intro h2 { color: var(--ac-ink); }
.shop-directory-hero__count, .shop-directory__count { color: var(--ac-primary-dark); }
.shop-card__eyebrow, .store-card__action, .shop-coupon-card__badge { color: var(--ac-primary-dark); }
.store-card { border-radius: 10px; box-shadow: none; }
.store-card:hover { border-color: #d3e9dc; }
.shop-detail-section { box-shadow: none; }
.status-card, .page-empty { border-radius: 11px; }
.status-card h1, .page-empty h2 { color: var(--ac-ink); }
.chat-page { gap: 18px; }
.chat-sidebar, .chat-panel { border: 1px solid var(--ac-border); border-radius: 12px; box-shadow: var(--ac-shadow); }
.chat-sidebar { background: linear-gradient(160deg,#edfaf2,#fafdfb); }
.chat-sidebar h1 { color: var(--ac-ink); }
.prompt-chip { border-color: #d6ece0; color: var(--ac-primary-dark); background: #fff; }
.prompt-chip:hover { border-color: var(--ac-primary); background: #e7f6ec; }
#sendButton, .chat-composer-send, .chat-launcher { background: var(--ac-primary); color: #fff; }
#sendButton:hover, .chat-composer-send:hover, .chat-launcher:hover { background: var(--ac-primary-dark); }
.chat-widget-header { background: var(--forest-800); }
.chat-widget-identity__text strong { color: #fff; }
.chat-widget-avatar {
  background: rgba(255,255,255,.14);
  color: #fff;
  box-shadow: none;
}
.chat-widget-status { color: #fff; }
.chat-widget-status__dot {
  width: 9px;
  height: 9px;
  background: #b7f77a;
  box-shadow: 0 0 0 3px rgba(183,247,122,.18);
}
.chat-widget-status[data-connection-state="connecting"] .chat-widget-status__dot,
.chat-widget-status[data-connection-state="reconnecting"] .chat-widget-status__dot {
  background: #ffd166;
  box-shadow: 0 0 0 3px rgba(255,209,102,.18);
}
.chat-widget-status[data-connection-state="error"] .chat-widget-status__dot {
  background: #ff9b9b;
  box-shadow: 0 0 0 3px rgba(255,155,155,.18);
}
.chat-widget-icon-button {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.chat-widget-icon-button:hover:not(:disabled) {
  background: rgba(255,255,255,.22);
  color: #fff;
}
.chat-widget-icon-button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.chat-composer-field textarea:focus {
  outline: 0;
  box-shadow: none;
}
.policy-card { border-color: var(--ac-border); box-shadow: var(--ac-shadow); }

/* --- Footer: shared on all content pages --- */
.kb-footer { border-top: 1px solid var(--ac-border); background: #fff; }
.kb-footer-promo {
  position: relative;
  z-index: 0;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-height: 165px;
  margin-top: 56px;
  margin-bottom: 29px;
  padding: 25px 55px;
  border-radius: 12px;
  background: radial-gradient(circle at 85% -20%,#a6e6cd 0 25%,transparent 26%),
              radial-gradient(circle at 20% 150%,#c4eedd 0 20%,transparent 21%),
              linear-gradient(100deg,#dcf3e9,#c6ebdf);
}
.kb-footer-promo__icon { font-size: 5rem; transform: rotate(-13deg); filter: drop-shadow(6px 11px 6px rgba(41,115,79,.12)); }
.kb-footer-promo h2 { font-size: 1.75rem; font-weight: 780; margin: 0 0 4px; }
.kb-footer-promo p { margin: 0; color: #608d78; }
.kb-footer-promo .catalog-primary-button { flex: 0 0 auto; gap: 10px; }
.kb-benefits { padding: 12px 0 30px; border-bottom: 1px solid var(--ac-border); background: #fff; }
.kb-benefits__grid { gap: 12px; }
.kb-benefits__grid div {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 14px;
  border: 0;
  border-radius: 9px;
  background: #f7fbf8;
}
.kb-benefits__icon { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border-radius: 10px; background: #e1f6e9; color: var(--ac-primary); font-size: 1.45rem; }
.kb-benefits__grid strong, .kb-benefits__grid small { display: block; }
.kb-benefits__grid strong { color: var(--ac-ink); font-size: .88rem; font-weight: 780; }
.kb-benefits__grid small { color: var(--ac-muted); font-size: .73rem; font-weight: 460; }
.kb-footer__grid { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 35px; padding: 50px 0 38px; }
.kb-footer__grid h3 { font-size: .97rem; color: var(--ac-ink); font-weight: 780; margin-bottom: 19px; }
.kb-footer__grid a, .kb-footer__grid p { color: #74848a; font-size: .89rem; margin-bottom: 12px; }
.kb-footer__grid a:hover { color: var(--ac-primary-dark); }
.kb-footer__grid .kb-brand { display: inline-flex; margin-bottom: 18px; }
.kb-footer__logo .kb-brand__mark { width: 40px; height: 40px; flex-basis: 40px; color: #fff; background: var(--ac-primary); }
.kb-footer__logo .kb-brand__text strong { font-size: 1.2rem; }
.kb-footer__about p { max-width: 260px; }
.kb-footer__grid .kb-footer__chat-link { display: inline-block; color: var(--ac-primary-dark); font-weight: 760; }
.kb-footer__bottom { background: #fff; border-top: 1px solid #eef1ef; padding: 16px 0; }
.kb-footer__bottom-inner { display: flex; flex-direction: row; align-items: center; color: #9da8a5; font-size: .75rem; }

/* --- Responsive grids and header. Must be after original site.css breakpoints. --- */
@media (min-width: 1500px) {
  .product-list-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .home-category-shortcuts { grid-template-columns: repeat(10, minmax(0,1fr)); }
}
@media (max-width: 1250px) {
  .kb-mainbar { gap: 18px; }
  .kb-nav { gap: 12px; }
  .kb-nav__links a { padding-inline: 9px; }
  .kb-nav__support small { display: none; }
  .product-detail-layout { grid-template-columns: minmax(0,1.1fr) minmax(300px,1fr); }
  .product-detail-sidebar { grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-list-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .storefront-shell .catalog-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .home-category-shortcuts { grid-template-columns: repeat(6,minmax(0,1fr)); }
}
@media (max-width: 1024px) {
  .kb-shell, .kb-page, .kb-page--wide { width: min(100% - 36px, 1380px); }
  .kb-topbar__message { display: none; }
  .kb-mainbar { min-height: 83px; }
  .kb-brand__text strong { font-size: 1.15rem; }
  .kb-brand__mark { width: 40px; height: 40px; flex-basis: 40px; }
  .kb-actions { gap: 7px; }
  .kb-nav__support { display: none; }
  .storefront-shell .catalog-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .product-list-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .home-category-shortcuts { grid-template-columns: repeat(5,minmax(0,1fr)); }
  .storefront-promo-card { padding: 20px; }
  .storefront-promo-card__art { opacity: .42; }
  .kb-footer__grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
  .kb-benefits__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .checkout-layout, .cart-layout { grid-template-columns: minmax(0,1fr) 310px; }
}
@media (max-width: 768px) {
  .kb-action--register { display: none; }
  .kb-page { padding: 18px 0 40px; }
  .kb-topbar { display: none; }
  .kb-mainbar { display: grid; grid-template-columns: 1fr auto; min-height: 0; gap: 12px; padding: 12px 0; align-items: center; }
  .kb-mainbar .kb-search { grid-column: 1/-1; grid-row: 2; width: 100%; max-width: none; min-height: 42px; }
  .kb-search input { min-height: 42px; }
  .kb-search__category { min-width: 104px; padding-inline: 9px; font-size: .79rem; }
  .kb-search button { min-width: 42px; flex-basis: 42px; }
  .kb-actions { grid-column: 2; gap: 5px; }
  .kb-action--icon, .kb-user-menu__trigger.kb-action--icon { min-width: 35px; }
  .kb-action--icon > span:last-child, .kb-user-menu__trigger.kb-action--icon > span { font-size: .7rem; }
  .kb-brand { grid-column: 1; }
  .kb-brand__mark { width: 39px; height: 39px; flex-basis: 39px; }
  .kb-brand__mark svg { width: 32px; height: 32px; }
  .kb-nav-wrap { overflow: visible; }
  .kb-mobile-nav-bar { display: block; padding: 6px 0; }
  .kb-mobile-nav-trigger { padding: 7px 4px; min-height: 34px; font-size: .86rem; color: var(--ac-ink); }
  .kb-mobile-nav-trigger svg { width: 19px; height: 19px; }
  .kb-nav { display: none; min-height: 0; padding: 12px 0; flex-wrap: wrap; overflow: visible; align-items: stretch; }
  .kb-nav.is-open { display: flex; flex-direction: column; }
  .kb-nav__links { display: grid; gap: 0; width: 100%; }
  .kb-nav__links a { padding: 9px 12px; }
  .kb-category-menu--desktop { display: none; }
  .kb-mobile-category-menu { display: block; width: 100%; }
  .kb-nav__support { display: flex; margin: 0; }
  .kb-nav__support small { display: block; }
  .product-catalog-layout { grid-template-columns: minmax(0,1fr); }
  .product-catalog-layout > .product-category-sidebar { display: none; }
  .product-catalog-layout > .catalog-panel { grid-column: 1; grid-row: auto; }
  .product-filter-mobile { display: block; grid-column: 1; grid-row: 1; }
  .catalog-shell--product-index .catalog-hero { padding: 28px; }
  .catalog-hero__result { display: none; }
  .product-detail-layout { grid-template-columns: minmax(0,1fr); }
  .product-detail-sidebar { grid-column: 1; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-purchase-card { position: static; }
  .cart-layout, .checkout-layout { grid-template-columns: minmax(0,1fr); }
  .cart-sidebar-card, .checkout-sidebar { position: static; }
  .storefront-promo-grid { grid-template-columns: 1fr 1fr; }
  .storefront-promo-card:last-child { grid-column: 1/-1; }
  .home-category-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .storefront-shell .catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .kb-footer-promo { margin-top: 30px; padding: 26px; }
  .kb-footer-promo__icon { display: none; }
  .kb-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wishlist-list .catalog-card__body { grid-template-columns: minmax(0,1fr) 130px; }
  .wishlist-list .catalog-card__price { grid-column: 2; grid-row: 1/span 3; }
  .wishlist-list .catalog-card__actions { grid-column: 1/-1; grid-row: 5; flex-direction: row; }
}
@media (max-width: 560px) {
  .kb-shell, .kb-page, .kb-page--wide { width: calc(100% - 24px); }
  .kb-mainbar { gap: 8px; }
  .kb-brand__text strong { font-size: 1.02rem; }
  .kb-brand__text small { font-size: .54rem; }
  .kb-action--icon svg { width: 21px; height: 21px; }
  .kb-actions { gap: 1px; }
  .kb-action--icon, .kb-user-menu__trigger.kb-action--icon { min-width: 32px; padding: 3px; }
  .kb-action--icon > span:last-child, .kb-user-menu__trigger.kb-action--icon > span { font-size: .64rem; }
  .home-category-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
  .home-category-shortcut { min-height: 115px; padding: 10px 6px; }
  .home-category-shortcut__visual { font-size: 2rem; height: 49px; }
  .storefront-promo-grid { grid-template-columns: 1fr; }
  .storefront-promo-card:last-child { grid-column: auto; }
  .storefront-promo-card { min-height: 160px; padding: 22px; }
  .storefront-shell .catalog-grid, .product-list-grid, .related-product-grid, .shop-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .catalog-card__image { padding: 7px; }
  .catalog-card__body, .catalog-shell--product-index .catalog-card__body { padding: 9px; }
  .catalog-card__title, .catalog-shell--product-index .catalog-card__title { font-size: .82rem; }
  .catalog-card__price strong, .catalog-shell--product-index .catalog-card__price strong { font-size: .96rem; }
  .catalog-card__badge { top: 5px; left: 5px; }
  .catalog-favorite-button { width: 28px; height: 28px; top: 6px; right: 6px; }
  .catalog-card__actions .catalog-primary-button, .catalog-card__actions .catalog-secondary-button { padding: 7px 5px; font-size: .75rem; min-height: 34px; }
  .catalog-panel__header { display: grid; }
  .catalog-shell--product-index .catalog-hero { padding: 24px 20px; }
  .catalog-hero__summary { font-size: .87rem; }
  .product-detail-sidebar { grid-template-columns: 1fr; }
  .product-gallery-card, .product-purchase-card { padding: 13px; }
  .wishlist-list .catalog-card { grid-template-columns: 95px minmax(0,1fr); }
  .wishlist-list .catalog-card__image { width: 80px; height: 80px; margin: 7px; }
  .wishlist-list .catalog-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 10px 8px; }
  .wishlist-list .catalog-card__title { min-height: 0; }
  .wishlist-list .catalog-card__meta { display: none; }
  .wishlist-list .catalog-card__actions { width: 100%; flex-direction: row; gap: 5px; }
  .wishlist-list .catalog-card__actions > * { min-width: 0; }
  .kb-benefits__grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kb-benefits__grid div { display: grid; justify-content: center; text-align: center; gap: 5px; padding: 11px 5px; }
  .kb-benefits__icon { margin: 0 auto; }
  .kb-benefits__grid small { display: none; }
  .kb-footer__grid { gap: 20px 10px; padding-top: 30px; }
  .kb-footer-promo { display: grid; gap: 14px; }
  .kb-footer-promo h2 { font-size: 1.45rem; }
  .kb-footer-promo .catalog-primary-button { justify-self: start; }
  .kb-footer__bottom-inner { flex-direction: column; align-items: flex-start; gap: 3px; }
  .auth-copy, .auth-form { padding: 28px; }
  .auth-shell { padding: 18px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-category-shortcut, .storefront-promo-card, .catalog-card { transition: none; }
}
/* Keep a single breadcrumb separator (legacy site.css uses ::before). */
.catalog-breadcrumb > * + *::before { content: none; display: none; }
