/* ==========================================================================
   Terramilk Digital — App (cliente / mobile-first)
   ========================================================================== */
:root {
  --tm-green-900: #0a3d1f;
  --tm-green-850: #0e4a26;
  --tm-green-700: #145c2a;
  --tm-green-600: #1d7a37;
  --tm-green-500: #2a9c4a;
  --tm-lime: #7BC142;
  --tm-lime-dark: #5fa330;
  --tm-yellow: #F7B538;
  --tm-orange: #E76F51;
  --tm-logo-green: #00793A;
  --tm-logo-orange: #EF7F1A;
  --tm-cream: #fff8e7;
  --tm-bg: #f5f7f1;
  --tm-card: #ffffff;
  --tm-text: #1c2820;
  --tm-text-soft: #4a5a4f;
  --tm-text-muted: #7c8a82;
  --tm-border: #e3ebe2;
  --tm-shadow: 0 10px 28px -18px rgba(10, 61, 31, .35);
  --tm-shadow-lg: 0 26px 70px -34px rgba(10, 61, 31, .42);
  --tm-radius: 14px;
  --tm-radius-sm: 9px;
  --tm-tap: #2a9c4a1f;
  --tm-success: #2a9c4a;
  --tm-warn: #F7B538;
  --tm-danger: #d64545;
  --tm-info: #2680c2;
  --tm-scrollbar-track: rgba(10, 61, 31, .06);
  --tm-scrollbar-thumb: rgba(29, 122, 55, .34);
  --tm-scrollbar-thumb-hover: rgba(29, 122, 55, .56);
  --tm-safe-top: env(safe-area-inset-top, 0px);
  --tm-safe-right: env(safe-area-inset-right, 0px);
  --tm-safe-bottom: env(safe-area-inset-bottom, 0px);
  --tm-safe-left: env(safe-area-inset-left, 0px);
  --tm-shell-safe-top: var(--tm-safe-top);
  --tm-shell-safe-bottom: var(--tm-safe-bottom);
}

@media (display-mode: standalone), (display-mode: fullscreen) {
  :root {
    --tm-shell-safe-top: max(var(--tm-safe-top), 30px);
    --tm-shell-safe-bottom: max(var(--tm-safe-bottom), 8px);
  }
}

html.is-standalone-app,
html.is-native-app {
  --tm-shell-safe-top: max(var(--tm-safe-top), 30px);
  --tm-shell-safe-bottom: max(var(--tm-safe-bottom), 8px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--tm-scrollbar-thumb) var(--tm-scrollbar-track);
}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--tm-scrollbar-thumb) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--tm-scrollbar-thumb);
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--tm-scrollbar-thumb-hover);
  background-clip: padding-box;
}
*::-webkit-scrollbar-corner {
  background: transparent;
}
body {
  font-family: "Aptos", "Trebuchet MS", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 14% -10%, rgba(247, 181, 56, .14), transparent 34%),
    linear-gradient(180deg, #fbfcf7 0%, var(--tm-bg) 38%, #eef4eb 100%);
  color: var(--tm-text);
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: var(--tm-shell-safe-bottom);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--tm-green-600); text-decoration: none; }
a:hover { text-decoration: underline; }

/* App shell */
.app-shell {
  min-height: 100vh;
  background: transparent;
}
.app-main {
  min-width: 0;
  min-height: 100vh;
}
.app {
  width: 100%;
  background: transparent;
  min-height: 100vh;
  position: relative;
  padding-bottom: 80px;
}
.app-shell.is-guest-shell .app {
  max-width: 640px;
  margin: 0 auto;
}
.client-sidebar {
  display: none;
}

/* Header */
.app-header {
  position: sticky; top: 0; z-index: 30;
  background:
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,0) 42%),
    linear-gradient(140deg, var(--tm-green-900), var(--tm-green-850) 48%, var(--tm-green-600));
  color: #fff;
  padding:
    calc(16px + var(--tm-shell-safe-top))
    max(16px, var(--tm-safe-right))
    15px
    max(16px, var(--tm-safe-left));
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  box-shadow: 0 16px 38px -26px rgba(10, 61, 31, .8);
}
.app-header.simple { background: var(--tm-card); color: var(--tm-text); border-bottom: 1px solid var(--tm-border); border-radius: 0; box-shadow: none; }
.app-header.simple .app-header-title { color: var(--tm-text); }
.product-header-spacer { width: 42px; height: 42px; flex: 0 0 42px; }
.app-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-header-context-title {
  min-width: 0;
  flex: 1 1 auto;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-header-title { font-size: 20px; font-weight: 700; margin: 0; color: #fff; }
.app-header-sub { font-size: 13px; opacity: .85; margin-top: 2px; }
.home-app-header {
  padding:
    calc(14px + var(--tm-shell-safe-top))
    max(16px, var(--tm-safe-right))
    10px
    max(16px, var(--tm-safe-left));
}
.home-app-header .app-header-row {
  align-items: stretch;
}
.home-header-main {
  width: 100%;
  min-width: 0;
}
.home-header-top {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.home-header-greeting {
  min-width: 0;
  font-size: 13px;
  line-height: 1.1;
  opacity: .85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-header-search {
  width: 100%;
  height: 40px;
  margin-top: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 5px 0 13px;
  border: 1px solid rgba(255,255,255,.36);
  border-radius: 12px;
  background: #fff;
  color: var(--tm-text-muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 30px -24px rgba(0,0,0,.7);
}
.home-header-search svg {
  flex: 0 0 auto;
}
.home-header-search input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--tm-text);
  font: inherit;
  font-size: 14px;
  line-height: 40px;
  padding: 0;
}
.home-header-search input::-webkit-search-decoration,
.home-header-search input::-webkit-search-cancel-button,
.home-header-search input::-webkit-search-results-button,
.home-header-search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
.home-header-search input::placeholder {
  color: #65706b;
  opacity: 1;
}
.home-header-search button {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: var(--tm-green-700);
  color: #fff;
  cursor: pointer;
}
.app-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
}
.home-app-header .app-header-actions {
  min-width: 0;
  width: auto;
  justify-content: flex-end;
  gap: 7px;
}
.home-header-action {
  position: relative;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.home-header-action:hover {
  color: #fff;
  text-decoration: none;
}
.home-header-action-icon {
  position: relative;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.home-header-action-icon svg {
  width: 18px;
  height: 18px;
}
.home-header-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  padding: 0 3px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--tm-orange);
  color: #fff;
  border: 2px solid var(--tm-green-850);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.b2c-notification-bell {
  position: relative;
  overflow: visible;
  flex: 0 0 auto;
  line-height: 0;
}

.b2c-notification-bell-frame {
  position: relative;
  box-sizing: border-box;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #0f172a;
}

.b2c-notification-bell-icon {
  display: block;
  color: #0f172a;
  transform-origin: 50% 8%;
  will-change: transform;
}

.b2c-notification-badge {
  background: #d83a3a;
  color: #fff;
  border-color: #fff;
  box-shadow: 0 6px 12px rgba(216, 58, 58, .24);
}

.b2c-notification-bell.has-unread .b2c-notification-bell-icon {
  animation: b2c-notification-ring 1.8s ease-in-out 3;
}

.b2c-notification-bell.has-unread .b2c-notification-badge {
  animation: b2c-notification-badge-pop 1.5s ease-in-out 3;
}

.home-header-notification-bell {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  display: inline-grid;
  place-items: center;
  background: transparent;
  color: #fff;
  box-shadow: none;
  cursor: pointer;
  gap: 0;
}

.home-header-notification-bell .home-header-action-icon,
.home-header-notification-bell .b2c-notification-bell-frame {
  width: 36px;
  height: 36px;
}

.home-header-notification-bell .b2c-notification-bell-frame {
  background: transparent;
  box-shadow: none;
  color: currentColor;
}

.home-header-notification-bell .b2c-notification-bell-icon {
  width: 24px;
  height: 24px;
  color: currentColor;
}

.home-header-notification-bell .home-header-badge {
  top: -7px;
  right: -11px;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  font-size: 10px;
  border-width: 2px;
}

@keyframes b2c-notification-ring {
  0%, 100% { transform: rotate(0deg); }
  8% { transform: rotate(16deg); }
  16% { transform: rotate(-14deg); }
  24% { transform: rotate(12deg); }
  32% { transform: rotate(-10deg); }
  40% { transform: rotate(6deg); }
  48% { transform: rotate(-4deg); }
}

@keyframes b2c-notification-badge-pop {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(220, 38, 38, .7);
  }
  50% {
    transform: scale(1.15);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .b2c-notification-bell.has-unread .b2c-notification-bell-icon,
  .b2c-notification-bell.has-unread .b2c-notification-badge {
    animation: none;
  }
}
[data-order-summary-panel][hidden],
[data-order-summary-backdrop][hidden] {
  display: none !important;
}

body.has-order-summary-open {
  overflow: hidden;
}

.order-summary-backdrop {
  position: fixed;
  inset: 0;
  z-index: 118;
  background: rgba(9, 16, 12, .44);
}

.order-summary-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 119;
  max-height: min(88vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  color: var(--tm-text);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -22px 58px -30px rgba(0, 0, 0, .55);
  overflow: hidden;
}

.order-summary-head {
  min-height: 78px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #242424;
  color: #fff;
}

.order-summary-head-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-summary-head-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: #f39200;
  color: #111;
}

.order-summary-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.order-summary-head p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
  font-weight: 700;
}

.order-summary-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}

.order-summary-close:hover {
  background: rgba(255, 255, 255, .2);
}

.order-summary-status {
  padding: 14px 18px;
  color: var(--tm-text-soft);
  font-size: 13px;
  font-weight: 800;
  border-bottom: 1px solid var(--tm-border);
}

.order-summary-loading {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.order-summary-loading span {
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(90deg, #eef4ea, #f8fbf6, #eef4ea);
  background-size: 220% 100%;
  animation: order-summary-loading 1.1s ease-in-out infinite;
}

.order-summary-loading span:nth-child(2) { width: 86%; }
.order-summary-loading span:nth-child(3) { width: 64%; }

@keyframes order-summary-loading {
  0% { background-position: 0% 0; }
  100% { background-position: 220% 0; }
}

.order-summary-body {
  min-height: 0;
  overflow: auto;
}

.order-summary-items {
  display: grid;
}

.order-summary-item {
  min-height: 88px;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: #fff8e7;
  border-bottom: 1px solid rgba(243, 146, 0, .14);
}

.order-summary-item-img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  color: var(--tm-green-700);
  font-size: 16px;
  font-weight: 900;
}

.order-summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.order-summary-item-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.order-summary-item-main strong {
  min-width: 0;
  color: var(--tm-text);
  font-size: 13px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.order-summary-item-main span,
.order-summary-item-main small {
  min-width: 0;
  color: var(--tm-text-muted);
  font-size: 12px;
  line-height: 1.18;
}

.order-summary-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.order-summary-qty {
  height: 27px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #f2d9a4;
  border-radius: 999px;
  background: #fff8e7;
  overflow: hidden;
}

.order-summary-qty button,
.order-summary-remove {
  width: 27px;
  height: 27px;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--tm-text-soft);
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.order-summary-qty button:disabled,
.order-summary-remove:disabled {
  cursor: default;
  opacity: .45;
}

.order-summary-qty span {
  min-width: 26px;
  text-align: center;
  color: var(--tm-text-soft);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.order-summary-remove {
  border: 1px solid #f1d4cf;
  border-radius: 999px;
  background: #fff7f5;
  color: #9f2f2f;
}

.order-summary-remove:hover {
  background: #fde8e8;
  color: #8a2424;
}

.order-summary-remove svg {
  width: 15px;
  height: 15px;
}

.order-summary-item.is-updating {
  opacity: .68;
}

.order-summary-item-total {
  align-self: start;
  padding-top: 4px;
  color: var(--tm-text);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.order-summary-more {
  padding: 10px 18px;
  color: var(--tm-text-soft);
  font-size: 12px;
  font-weight: 800;
  background: #fff8e7;
  border-bottom: 1px solid rgba(243, 146, 0, .14);
}

.order-summary-totals {
  padding: 14px 18px;
  display: grid;
  gap: 8px;
  background: #f39200;
  color: #0b0b0b;
}

.order-summary-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.order-summary-totals span {
  font-weight: 800;
}

.order-summary-totals strong {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.order-summary-totals .order-summary-total {
  padding-top: 4px;
  border-top: 1px solid rgba(0, 0, 0, .18);
}

.order-summary-totals .order-summary-total strong {
  font-size: 18px;
}

.order-summary-free-freight {
  padding: 18px;
  display: grid;
  gap: 10px;
  background: #242424;
  color: #fff;
}

.order-summary-free-message {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.order-summary-free-message svg {
  color: #f39200;
}

.order-summary-free-message strong {
  min-width: 0;
  font-size: 15px;
  line-height: 1.25;
}

.order-summary-progress {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, .16);
}

.order-summary-progress span {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: inherit;
  background: #f39200;
}

.order-summary-free-freight.is-reached .order-summary-progress span {
  background: var(--tm-lime);
}

.order-summary-progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  font-weight: 800;
}

.order-summary-cta {
  min-height: 48px;
  margin: 14px 18px 18px;
  border: 0;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f39200;
  color: #111;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.order-summary-cta:hover {
  background: #f7a62a;
  color: #111;
  text-decoration: none;
}

.order-summary-empty {
  padding: 28px 22px 12px;
  text-align: center;
}

.order-summary-empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #f5faf2;
  color: var(--tm-green-700);
}

.order-summary-empty h3 {
  margin: 0;
  font-size: 18px;
}

.order-summary-empty p {
  margin: 6px 0 14px;
  color: var(--tm-text-muted);
  font-size: 14px;
}

@media (min-width: 1024px) {
  .order-summary-backdrop {
    background: transparent;
  }

  .order-summary-panel {
    top: 88px;
    right: max(28px, calc((100vw - 1520px) / 2 + 28px));
    left: auto;
    bottom: auto;
    width: min(430px, calc(100vw - 56px));
    max-height: calc(100vh - 106px);
    border-radius: 8px;
    box-shadow: 0 24px 64px -30px rgba(0, 0, 0, .58);
  }

  .order-summary-head {
    min-height: 72px;
    padding: 15px 18px;
  }

  .order-summary-item {
    grid-template-columns: 58px minmax(0, 1fr) auto;
    min-height: 82px;
  }

  .order-summary-item-img {
    width: 58px;
    height: 58px;
  }
}
.points-header-link {
  min-width: 56px;
  max-width: 112px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
  transition: background .2s;
}
.points-header-link:hover {
  background: rgba(255,255,255,.22);
  text-decoration: none;
}
.points-header-link svg {
  flex: 0 0 auto;
}
.points-header-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}
.favorites-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 12px;
  background: #f5faf2;
  color: var(--tm-green-700);
  border: 1px solid #dce9d7;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.favorites-link:hover {
  background: #edf6e8;
  color: var(--tm-green-850);
  text-decoration: none;
}
.favorites-link.is-active {
  background: var(--tm-green-700);
  color: #fff;
  border-color: var(--tm-green-700);
}
.favorites-link strong {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .84);
  color: var(--tm-green-850);
  font-size: 11px;
}
.brand-mark { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand-mark .brand-dot {
  width: 38px; height: 38px; border-radius: 11px;
  background: transparent;
  display: grid; place-items: center;
  overflow: hidden;
}
.brand-mark .brand-dot img { width: 100%; height: 100%; object-fit: contain; }
.user-avatar {
  width: 44px; height: 44px; flex: 0 0 auto;
  border-radius: 999px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--tm-green-600); color: #fff;
  font-weight: 800; font-size: 13px;
}
.user-avatar img,
.client-avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.user-avatar-header {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(255,255,255,.18);
  color: #fff;
}
.user-avatar-xl {
  width: 76px; height: 76px;
  font-size: 22px;
  border: 3px solid #fff;
  box-shadow: var(--tm-shadow);
}
.profile-photo-field {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  background: #f8fbf6;
  margin: 12px 0 16px;
}
.profile-photo-actions { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sr-only-file {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}
.photo-editor-overlay {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 23, 15, .62);
  backdrop-filter: blur(4px);
}
.photo-editor-modal {
  width: min(760px, 100%);
  max-height: min(92vh, 820px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  background: #fff;
  color: var(--tm-text);
  box-shadow: 0 28px 80px -34px rgba(10, 61, 31, .7);
}
.photo-editor-head,
.photo-editor-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
}
.photo-editor-head {
  border-bottom: 1px solid var(--tm-border);
}
.photo-editor-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}
.photo-editor-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #f1f7ee;
  color: var(--tm-green-700);
  cursor: pointer;
}
.photo-editor-close:hover {
  background: #e5f0df;
}
.photo-editor-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  padding: 0 16px;
  overflow: auto;
}
.photo-editor-stage {
  min-height: 360px;
  border-radius: 14px;
  background: #101811;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}
.photo-editor-stage:active {
  cursor: grabbing;
}
.photo-editor-canvas {
  width: min(100%, 460px);
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  background: #172419;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.photo-editor-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.photo-editor-preview {
  width: 128px;
  height: 128px;
  align-self: center;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #fff;
  background: #eaf2e3;
  box-shadow: var(--tm-shadow);
}
.photo-editor-preview canvas {
  width: 100%;
  height: 100%;
}
.photo-editor-control {
  display: grid;
  gap: 7px;
}
.photo-editor-control label {
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-text-soft);
}
.photo-editor-control input[type="range"] {
  width: 100%;
  accent-color: var(--tm-green-600);
}
.photo-editor-tools {
  display: grid;
  gap: 8px;
}
.photo-editor-actions {
  border-top: 1px solid var(--tm-border);
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .photo-editor-overlay {
    padding: 0;
    align-items: end;
  }
  .photo-editor-modal {
    width: 100%;
    max-height: 96vh;
    border-radius: 16px 16px 0 0;
  }
  .photo-editor-body {
    grid-template-columns: 1fr;
  }
  .photo-editor-stage {
    min-height: 300px;
  }
  .photo-editor-side {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
  }
  .photo-editor-tools,
  .photo-editor-control {
    grid-column: 2;
  }
}
@media (max-width: 430px) {
  .photo-editor-actions {
    flex-direction: column-reverse;
  }
  .photo-editor-actions .btn {
    width: 100%;
  }
  .photo-editor-side {
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .photo-editor-preview {
    width: 96px;
    height: 96px;
  }
}
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  color: #fff; border: 0; cursor: pointer;
  transition: background .2s;
}
.icon-btn:hover { background: rgba(255,255,255,.22); }
.icon-btn.dark { background: var(--tm-green-700); }

/* Page section */
.page { padding: 16px; }
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.page-sub { color: var(--tm-text-muted); font-size: 14px; margin: 0 0 16px; }

/* Cards */
.card {
  background: var(--tm-card);
  border-radius: var(--tm-radius);
  padding: 16px;
  box-shadow: var(--tm-shadow);
  margin-bottom: 14px;
  border: 1px solid var(--tm-border);
}
.card.tight { padding: 14px; }
.card-title { font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.card-text { color: var(--tm-text-soft); font-size: 14px; margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 20px;
  border-radius: 12px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; line-height: 1;
  transition: transform .12s, box-shadow .2s, background .2s, color .2s;
  text-decoration: none;
  background: linear-gradient(135deg, var(--tm-green-700), var(--tm-green-500)); color: #fff;
}
.btn:hover { background: linear-gradient(135deg, var(--tm-green-900), var(--tm-green-600)); text-decoration: none; transform: translateY(-1px); box-shadow: var(--tm-shadow); }
.btn:active { transform: translateY(0); }
.btn.btn-block { width: 100%; }
.btn.btn-lime { background: var(--tm-lime); color: var(--tm-green-900); }
.btn.btn-lime:hover { background: var(--tm-lime-dark); color: var(--tm-green-900); }
.btn.btn-ghost { background: transparent; color: var(--tm-green-700); border: 1.5px solid var(--tm-green-600); }
.btn.btn-ghost:hover { background: var(--tm-green-600); color: #fff; }
.btn.btn-soft { background: #ffffff; color: var(--tm-green-700); border: 1px solid var(--tm-border); }
.btn.btn-soft:hover { background: #f1f7ee; }
.btn.btn-danger { background: var(--tm-danger); color: #fff; }
.btn.btn-warn { background: var(--tm-warn); color: var(--tm-text); }
.btn.btn-sm { height: 36px; font-size: 13px; padding: 0 14px; border-radius: 10px; }

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--tm-text-soft); margin-bottom: 6px; }
.required-marker { color: #f28c28; font-weight: 800; margin-left: 4px; }
.field .hint { font-size: 12px; color: var(--tm-text-muted); margin-top: 4px; }
.password-feedback {
  min-height: 18px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}
.password-feedback:empty { display: none; }
.password-feedback.is-valid { color: var(--tm-success); }
.password-feedback.is-invalid { color: var(--tm-danger); }
.input, .select, .textarea {
  width: 100%; height: 48px; min-height: 48px;
  padding: 0 14px;
  border-radius: 12px; border: 1.5px solid var(--tm-border);
  background: #fff; color: var(--tm-text);
  font-size: 16px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 100px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus {
  outline: 0; border-color: var(--tm-green-500);
  box-shadow: 0 0 0 4px var(--tm-tap);
}
.b2c-file-upload {
  position: relative;
  display: grid;
  gap: 8px;
  min-width: 0;
}
.b2c-file-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.b2c-file-trigger {
  min-height: 82px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1.5px dashed #bdd9b3;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(123, 193, 66, .14), rgba(247, 181, 56, .09)),
    #fbfdf8;
  color: var(--tm-text);
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.b2c-file-trigger:hover,
.b2c-file-upload.is-dragover .b2c-file-trigger,
.b2c-file-native:focus-visible + .b2c-file-trigger {
  border-color: var(--tm-green-600);
  background:
    linear-gradient(135deg, rgba(123, 193, 66, .2), rgba(247, 181, 56, .1)),
    #fff;
  box-shadow: 0 12px 28px -20px rgba(10, 61, 31, .55), 0 0 0 4px var(--tm-tap);
  outline: 0;
}
.b2c-file-upload.is-dragover .b2c-file-trigger {
  transform: translateY(-1px);
}
.b2c-file-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf4e3;
  color: var(--tm-green-700);
}
.b2c-file-icon svg {
  width: 23px;
  height: 23px;
}
.b2c-file-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.b2c-file-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.2;
  color: var(--tm-text);
}
.b2c-file-copy span,
.b2c-file-meta {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--tm-text-muted);
}
.b2c-file-action {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border-radius: 10px;
  background: var(--tm-green-700);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.b2c-file-upload.has-files .b2c-file-icon {
  background: var(--tm-green-700);
  color: #fff;
}
.b2c-file-upload.has-files .b2c-file-meta {
  color: var(--tm-green-700);
  font-weight: 600;
}
.password-field {
  position: relative;
}
.password-field .input {
  padding-right: 58px;
}
.password-toggle {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: transparent;
  color: var(--tm-text-muted);
  cursor: pointer;
}
.password-toggle:hover,
.password-toggle:focus-visible {
  background: #f1f7ee;
  color: var(--tm-green-700);
  outline: 0;
}
.password-toggle svg {
  grid-area: 1 / 1;
}
.password-toggle .icon-eye-off,
.password-toggle.is-visible .icon-eye {
  display: none;
}
.password-toggle.is-visible .icon-eye-off {
  display: block;
}
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .b2c-file-trigger {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .b2c-file-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.checkbox-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.checkbox-row input { width: 20px; height: 20px; accent-color: var(--tm-green-600); }

/* Alerts */
.alert {
  border-radius: 12px; padding: 12px 14px;
  font-size: 14px; margin-bottom: 14px;
  border: 1px solid;
}
.alert-success { background: #e6f5ec; color: #1a6e34; border-color: #b8e0c5; }
.alert-warning { background: #fef5dc; color: #7a5407; border-color: #f4dd99; }
.alert-danger  { background: #fde8e8; color: #8a2424; border-color: #f3b3b3; }
.alert-info    { background: #e6f0fa; color: #1a4f80; border-color: #bcd4ec; }

/* App modals */
body.has-app-modal {
  overflow: hidden;
}
.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 23, 15, .54);
  backdrop-filter: blur(3px);
}
.app-modal {
  width: min(420px, 100%);
  border-radius: 14px;
  background: #fff;
  color: var(--tm-text);
  border: 1px solid rgba(255,255,255,.72);
  box-shadow: 0 26px 70px -34px rgba(10, 61, 31, .62);
  padding: 18px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
}
.app-modal.app-modal-wide {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
}
.app-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eaf2e3;
  color: var(--tm-green-700);
}
.app-modal-body {
  min-width: 0;
  min-height: 0;
}
.app-modal-title {
  margin: 1px 0 5px;
  font-size: 18px;
  line-height: 1.25;
}
.app-modal-message {
  margin: 0;
  color: var(--tm-text-soft);
  font-size: 14px;
}
.app-modal-message-html {
  color: var(--tm-text);
}
.stock-alert-qty-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--tm-text);
}
.stock-alert-error {
  margin-top: 8px;
  color: #a42f2f;
  font-size: 13px;
}
.stock-alert-return-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 430px);
  overflow: auto;
  padding-right: 2px;
}
.stock-alert-return-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  background: #fff;
}
.stock-alert-return-img {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--tm-bg);
  color: var(--tm-green-700);
  font-weight: 800;
}
.stock-alert-return-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 4px;
}
.stock-alert-return-copy {
  min-width: 0;
}
.stock-alert-return-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}
.stock-alert-return-copy small {
  display: block;
  margin-top: 3px;
  color: var(--tm-text-muted);
  font-size: 12px;
}
.client-notifications-modal {
  display: grid;
  gap: 12px;
}
.client-notifications-enable {
  min-height: 42px;
}
.client-notifications-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 440px);
  overflow: auto;
  padding-right: 4px;
}
.client-notification-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px;
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.client-notification-item:hover {
  text-decoration: none;
  border-color: rgba(29, 122, 55, .28);
  background: #f8fbf6;
}
.client-notification-item.is-unread {
  border-color: rgba(29, 122, 55, .42);
  background: #f6faf2;
}
.client-notification-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eaf2e3;
  color: var(--tm-green-700);
}
.client-notification-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.client-notification-body strong {
  color: var(--tm-text);
  font-size: 14px;
  line-height: 1.2;
}
.client-notification-body span {
  color: var(--tm-text-soft);
  font-size: 13px;
  line-height: 1.35;
}
.client-notification-body small {
  color: var(--tm-text-muted);
  font-size: 11px;
  font-weight: 700;
}
.client-notifications-empty {
  padding: 18px 12px 8px;
  text-align: center;
}
.client-notifications-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #eaf2e3;
  color: var(--tm-green-700);
}
.client-notifications-empty-icon svg {
  width: 26px;
  height: 26px;
}
.client-notifications-empty h3 {
  margin: 0 0 4px;
  color: var(--tm-text);
  font-size: 16px;
}
.client-notifications-empty p {
  margin: 0;
  color: var(--tm-text-muted);
  font-size: 13px;
}
.order-review {
  display: grid;
  gap: 14px;
  max-height: min(64vh, 520px);
  overflow: auto;
  padding-right: 4px;
}
.order-review-grid {
  display: grid;
  gap: 8px;
}
.order-review-grid > div,
.order-review-section {
  min-width: 0;
}
.order-review-grid > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}
.order-review-grid span,
.order-review-section > span {
  color: var(--tm-text-muted);
  font-size: 13px;
}
.order-review-grid strong,
.order-review-section strong {
  color: var(--tm-green-700);
  text-align: right;
}
.order-review-total {
  border-top: 1px solid var(--tm-border);
  padding-top: 10px;
  margin-top: 2px;
}
.order-review-total strong {
  font-size: 18px;
}
.order-review-section {
  display: grid;
  gap: 6px;
  border-top: 1px solid var(--tm-border);
  padding-top: 12px;
}
.order-review-section p {
  margin: 0;
  color: var(--tm-text-soft);
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.order-review-date-field label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  color: var(--tm-text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}
.order-review-date-field label small {
  color: var(--tm-text-muted);
  font-size: 12px;
  font-weight: 600;
}
.order-review-date-field .input {
  display: block;
  min-width: 0;
  max-width: 100%;
  height: 44px;
  line-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.order-review-installments {
  margin-top: 4px;
}
.order-review-installments div {
  padding: 6px 0;
}
.app-modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}
.app-modal-btn {
  min-width: 112px;
}
@media (max-width: 420px) {
  .app-modal-overlay {
    padding: 16px 10px;
  }
  .app-modal {
    grid-template-columns: 1fr;
    padding: 16px;
  }
  .order-review {
    max-height: 56vh;
  }
  .order-review-date-field .input {
    font-size: 16px;
  }
  .app-modal-actions {
    flex-direction: column-reverse;
  }
  .app-modal-btn {
    width: 100%;
  }
  .stock-alert-return-item {
    grid-template-columns: 52px minmax(0, 1fr);
  }
  .stock-alert-return-item .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

/* Steps */
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.step { flex: 1; height: 6px; border-radius: 4px; background: var(--tm-border); }
.step.is-active, .step.is-done { background: var(--tm-green-500); }

/* Bottom nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0;
  width: 100%;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--tm-border);
  display: flex;
  align-items: stretch;
  z-index: 40;
  padding:
    6px
    max(6px, var(--tm-safe-right))
    calc(6px + var(--tm-shell-safe-bottom))
    max(6px, var(--tm-safe-left));
  box-shadow: 0 -18px 34px -30px rgba(10, 61, 31, .55);
}
.bottom-nav a {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 3px;
  min-height: 56px;
  font-size: 10px; color: var(--tm-text-muted); text-decoration: none;
  border: 0; background: transparent;
  border-radius: 12px;
  min-width: 0;
}
.bottom-nav a.is-active { color: var(--tm-green-700); background: #edf5e8; }
.bottom-nav a.is-active svg { stroke: var(--tm-green-600); }
.bottom-nav a:hover { color: var(--tm-green-700); text-decoration: none; }
.bottom-nav .badge {
  position: absolute; top: 4px; right: 18%;
  background: var(--tm-orange); color: #fff;
  font-size: 10px; padding: 1px 6px; border-radius: 999px;
  font-weight: 700;
}
.bottom-nav .nav-item { position: relative; }
.cart-success-badge {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: min(260px, calc(100vw - 24px));
  padding: 7px 10px 7px 8px;
  border: 1px solid rgba(16, 85, 43, .14);
  border-radius: 999px;
  background: rgba(246, 251, 243, .96);
  color: #155c31;
  box-shadow: 0 8px 22px rgba(10, 61, 31, .12);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(.96);
  transition: opacity .18s ease, transform .18s ease;
}
.cart-success-badge.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cart-success-badge-icon {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #dcefd3;
  color: #176533;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}
.cart-fly-clone {
  position: fixed;
  z-index: 10001;
  pointer-events: none;
  display: grid;
  place-items: center;
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 34px -18px rgba(10, 61, 31, .55);
  will-change: transform, opacity;
  transform-origin: center;
}
.cart-fly-clone img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-target-pulse {
  position: relative;
  isolation: isolate;
}
.cart-target-pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(231, 111, 81, .48);
  animation: b2c-cart-target-pulse .68s ease-out;
}
@keyframes b2c-cart-target-pulse {
  to {
    box-shadow: 0 0 0 16px rgba(231, 111, 81, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cart-target-pulse::after {
    animation-duration: .28s;
  }
}

/* Product card */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.product-card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--tm-border);
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .2s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--tm-shadow); }
.product-card-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}
.product-card-link:hover {
  text-decoration: none;
}
.product-img {
  aspect-ratio: 1/1; background: linear-gradient(135deg, #eaf2e3, #d8ead0);
  display: grid; place-items: center; color: var(--tm-green-700); font-weight: 700;
  position: relative; overflow: hidden;
  isolation: isolate;
  padding: 10px;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: multiply;
}
.product-card.is-out-of-stock .product-img img,
.product-card.is-out-of-stock .product-img > span {
  filter: grayscale(1) saturate(0) contrast(.92);
  opacity: .82;
}
.product-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  max-width: calc(100% - 16px);
}
.product-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  max-width: 100%;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(14, 40, 22, .12);
}
.product-badge.badge-promo { background: var(--tm-orange); }
.product-badge.badge-condition { background: #17846f; }
.product-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.product-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--tm-text-muted);
  font-size: 10px;
  line-height: 1;
  font-weight: 800;
}
.product-card-topline > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-stock-chip {
  min-height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #eef4ea;
  color: var(--tm-text-soft);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  text-transform: none;
  white-space: nowrap;
}
.product-stock-chip.is-available { background: #e5f6e8; color: #13733a; }
.product-stock-chip.is-low { background: #fff4dc; color: #9a5a00; }
.product-stock-chip.is-unavailable { background: #fde8e8; color: #a42f2f; }
.product-stock-chip.is-consult { background: #edf3f7; color: #476575; }
.product-name { font-size: 13px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; min-height: 34px; }
.product-meta { font-size: 11px; color: var(--tm-text-muted); margin-bottom: 8px; }
.product-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  min-width: 0;
}
.product-price { font-size: 21px; line-height: 1.08; font-weight: 800; color: var(--tm-green-700); margin: 0; letter-spacing: 0; }
.product-price-old { display: block; font-size: 12px; line-height: 1.2; color: var(--tm-text-muted); text-decoration: line-through; margin-bottom: 3px; }
.product-discount {
  display: inline-flex;
  align-items: center;
  align-self: center;
  min-height: 20px;
  border-radius: 6px;
  padding: 2px 5px;
  background: #e7f7ec;
  color: #15904b;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}
.product-installments {
  margin: 4px 0 0;
  color: #15904b;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 600;
}
.product-price-consult {
  font-size: 13px;
  color: var(--tm-text-muted);
}
.product-price-unavailable,
.product-detail-price-unavailable {
  color: var(--tm-text-muted);
}
.product-card .btn-add {
  margin-top: auto; min-height: 36px; border-radius: 10px;
  font-size: 13px; gap: 6px;
}
.product-actions {
  padding: 0 12px 12px;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}
.product-actions.has-compare-action {
  grid-template-columns: 48px minmax(0, 1fr);
}
.product-actions.has-stock-alert-action {
  grid-template-columns: minmax(0, 1fr);
  justify-items: stretch;
}
.product-actions.has-stock-alert-action .btn {
  width: 100%;
}
.product-stock-alert-btn {
  min-width: 0;
  width: 100%;
  justify-self: stretch;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}
.product-card-qty-control {
  height: 36px;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(20px, 1fr) 28px;
  align-items: center;
  border: 1.4px solid #7bb4d2;
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}
.product-card-qty-control button {
  width: 25px;
  height: 25px;
  margin: 1px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #6aa6c8;
  color: #fff;
  font-size: 21px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}
.product-card-qty-control button:first-child {
  background: #c7dbe7;
  color: #fff;
}
.product-card-qty-control button:disabled {
  opacity: .65;
  cursor: default;
}
.product-card-qty-control input {
  min-width: 0;
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  color: #5a89a6;
  text-align: center;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  appearance: textfield;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.product-card-qty-control input::-webkit-outer-spin-button,
.product-card-qty-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.product-qty-control input::-webkit-outer-spin-button,
.product-qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button,
.b2b-qty-control input::-webkit-outer-spin-button,
.b2b-qty-control input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}
.product-actions .btn-add {
  min-width: 0;
  height: 36px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 999px;
  background: #ffa329;
  border-color: #ffa329;
  color: #111820;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 7px 14px rgba(22,36,48,.14);
}
.product-actions .btn-add:hover {
  background: #f7931e;
  border-color: #f7931e;
  color: #111820;
}
.product-action {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: #fff;
  color: var(--tm-green-700);
  border: 1px solid var(--tm-border);
}
.product-action:hover {
  background: #f1f7ee;
}
@media (max-width: 420px) {
  .product-actions {
    grid-template-columns: minmax(0, .92fr) minmax(0, 1fr);
    gap: 5px;
    padding-left: 7px;
    padding-right: 7px;
  }
  .product-actions.has-compare-action {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .product-actions.has-stock-alert-action {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-action {
    width: 48px;
    height: 48px;
  }
  .product-card-qty-control {
    height: 36px;
    grid-template-columns: 24px minmax(16px, 1fr) 24px;
  }
  .product-card-qty-control button {
    width: 22px;
    height: 22px;
    font-size: 19px;
  }
  .product-card-qty-control input {
    font-size: 15px;
  }
  .product-card .btn-add {
    padding-left: 4px;
    padding-right: 4px;
    min-height: 36px;
    font-size: 11px;
  }
  .product-card .btn-add svg {
    display: block;
  }
}
@media (max-width: 560px) {
  .product-detail-media-main {
    min-height: clamp(190px, 52vw, 240px);
  }
  .product-media-cover img {
    max-height: clamp(190px, 52vw, 240px);
    padding: 8px;
  }
  .product-media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 6px;
    padding: 10px;
  }
  .product-media-count {
    top: 10px;
    left: auto;
    right: 10px;
    min-height: 25px;
    font-size: 11px;
  }
  .product-media-nav {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
  .product-media-nav-prev { left: 10px; }
  .product-media-nav-next { right: 10px; }
  .product-detail-body {
    padding: 16px;
  }
  .product-detail-title {
    font-size: 22px;
  }
  .product-detail-commercial {
    gap: 8px;
    margin-top: 8px;
  }
  .product-detail-price {
    font-size: 26px;
  }
  .product-payment-panel {
    display: flex;
    flex-direction: column;
    padding: 12px;
  }
  .product-payment-head { order: 1; }
  .product-payment-controls { order: 2; }
  .product-buy-actions { order: 3; }
  .product-payment-summary { order: 4; }
  .product-payment-warning { order: 5; }
  .product-payment-summary {
    grid-template-columns: 1fr;
  }
  .product-detail-info-grid {
    margin-top: 14px;
  }
  .product-detail-content-card {
    margin-top: 14px;
  }
}
.product-media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--tm-border);
  background: #fbfcfa;
}
.product-media-item {
  aspect-ratio: 1 / .78;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--tm-border);
  background: #eaf2e3;
  display: block;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.product-media-item.is-active {
  border-color: var(--tm-green-700);
  box-shadow: 0 0 0 2px rgba(29, 122, 55, .18);
}
.product-media-item img,
video.product-media-item {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}
.product-media-item.is-out-of-stock img {
  filter: grayscale(1) saturate(0) contrast(.92);
  opacity: .82;
}
.product-media-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}
.product-media-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 22px;
  background: rgba(10, 23, 15, .22);
  text-shadow: 0 2px 10px rgba(0,0,0,.5);
}
.product-detail-page {
  display: block;
}
.product-detail-card {
  padding: 0;
  overflow: hidden;
}
.product-detail-media-main {
  min-height: clamp(260px, 48vw, 560px);
  background: linear-gradient(135deg, #eef6e9, #dfeeda);
  display: grid;
  place-items: center;
  color: var(--tm-green-700);
  font-weight: 800;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.product-detail-media-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.4);
}
.product-detail-media-main .product-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  max-width: calc(100% - 24px);
}
.product-detail-media-main.has-media-count .product-badges {
  top: 12px;
}
.product-media-cover {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  touch-action: pan-y;
}
.product-media-cover img {
  width: 100%;
  height: 100%;
  max-height: clamp(260px, 48vw, 560px);
  object-fit: contain;
  mix-blend-mode: multiply;
  user-select: none;
  -webkit-user-drag: none;
}
.product-detail-media-main.is-out-of-stock .product-media-cover img,
.product-detail-media-main.is-out-of-stock > span {
  filter: grayscale(1) saturate(0) contrast(.92);
  opacity: .82;
}
.product-media-cover video {
  width: 100%;
  height: 100%;
  max-height: clamp(260px, 48vw, 560px);
  object-fit: contain;
  padding: 8px;
}
.product-media-count {
  position: absolute;
  top: 12px;
  left: auto;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(8, 17, 11, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}
.product-media-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(229, 246, 232, .92);
  color: var(--tm-green-900);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 8px 22px rgba(8, 17, 11, .12);
}
.product-media-nav:hover {
  background: #e5f6e8;
}
.product-media-nav-prev { left: 14px; }
.product-media-nav-next { right: 14px; }
@media (max-width: 560px) {
  .product-detail-media-main .product-badges {
    top: 10px;
    left: 10px;
    max-width: calc(100% - 20px);
  }
  .product-detail-media-main.has-media-count .product-badges {
    top: 10px;
  }
  .product-media-count {
    top: 10px;
    left: auto;
    right: 10px;
    min-width: 38px;
    min-height: 34px;
    font-size: 11px;
  }
  .product-media-nav {
    width: 36px;
    height: 36px;
    font-size: 28px;
  }
  .product-media-nav-prev { left: 10px; }
  .product-media-nav-next { right: 10px; }
}
.product-detail-body {
  padding: 18px;
}
.product-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.product-detail-heading > div {
  min-width: 0;
}
.product-detail-meta {
  margin: 0;
  color: var(--tm-text-muted);
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
}
.product-detail-title {
  margin: 6px 0;
  font-size: 22px;
  line-height: 1.2;
}
.product-detail-favorite {
  margin: 0;
  flex: 0 0 auto;
}
.product-favorite-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--tm-logo-green);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 17, 11, .16);
}
.product-favorite-btn svg {
  width: 18px;
  height: 18px;
}
.product-favorite-btn:hover {
  background: var(--tm-logo-green);
}
.product-favorite-btn:disabled {
  cursor: wait;
  opacity: .72;
}
.product-detail-commercial {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 12px 0 6px;
}
.product-detail-price-block {
  min-width: 0;
}
.product-detail-price {
  margin: 2px 0 0;
  color: var(--tm-green-700);
  font-size: 28px;
  line-height: 1.05;
  font-weight: 900;
}
.product-detail-price-unavailable {
  color: var(--tm-text-muted);
}
.product-detail-price-note {
  display: block;
  margin-top: 5px;
  color: var(--tm-text-muted);
  font-size: 12px;
  font-weight: 700;
}
.product-detail-consult {
  display: grid;
  gap: 2px;
  margin: 0;
  color: var(--tm-text-soft);
}
.product-detail-consult strong {
  color: var(--tm-text);
}
.product-detail-consult span {
  color: var(--tm-text-muted);
  font-size: 13px;
}
.product-stock-pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 11px;
  border-radius: 999px;
  background: #edf3f7;
  color: #476575;
  font-size: 12px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
}
.product-stock-pill.is-available { background: #e5f6e8; color: #13733a; }
.product-stock-pill.is-low { background: #fff4dc; color: #9a5a00; }
.product-stock-pill.is-unavailable { background: #fde8e8; color: #a42f2f; }
.product-stock-pill.is-consult { background: #edf3f7; color: #476575; }
.product-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--tm-text-muted);
  font-size: 13px;
  font-weight: 800;
}
.product-back-link:hover {
  color: var(--tm-green-700);
}
.product-detail-info-grid,
.product-payment-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.product-payment-summary {
  margin-top: 12px;
}
.product-detail-info-grid div,
.product-payment-summary div {
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  padding: 10px;
  background: #fbfcfa;
  min-width: 0;
}
.product-detail-info-grid span,
.product-payment-summary span {
  display: block;
  font-size: 11px;
  color: var(--tm-text-muted);
  margin-bottom: 2px;
}
.product-detail-info-grid strong,
.product-payment-summary strong {
  display: block;
  font-size: 13px;
  color: var(--tm-text);
  overflow-wrap: anywhere;
}
.product-link-list {
  display: grid;
  gap: 8px;
}
.product-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(31, 111, 60, .16);
  border-radius: 8px;
  background: #f8fbf6;
  color: var(--tm-green-800);
  text-decoration: none;
}
.product-link-item span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}
.product-link-item small {
  flex: 0 0 auto;
  color: var(--tm-green-700);
  font-size: 12px;
  font-weight: 700;
}
.product-link-item:hover {
  border-color: rgba(31, 111, 60, .34);
  background: #f1f8ee;
}
.product-payment-panel {
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  padding: 14px;
  background: #f8fbf6;
  margin-top: 14px;
}
.product-payment-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.product-payment-head h3 {
  margin: 0;
  font-size: 16px;
}
.product-payment-head p {
  margin: 2px 0 0;
  color: var(--tm-text-muted);
  font-size: 12px;
}
.product-payment-head > strong {
  color: var(--tm-green-700);
  font-size: 18px;
  white-space: nowrap;
}
.product-payment-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.product-payment-panel.is-out-of-stock .product-payment-controls {
  grid-template-columns: minmax(0, 1fr);
}
.product-qty-control {
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  overflow: hidden;
}
.product-qty-control button {
  height: 46px;
  width: 46px;
  background: #fff;
  border: 0;
  color: var(--tm-green-700);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}
.product-qty-control input {
  width: 100%;
  height: 46px;
  text-align: center;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  border-radius: 0;
  font-size: 14px;
  appearance: textfield;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.product-payment-warning {
  margin-top: 10px;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fef5dc;
  color: #7a5407;
  border: 1px solid #f4dd99;
  font-size: 13px;
}
.product-buy-actions {
  margin-top: 14px;
}
.product-buy-actions .btn {
  min-height: 48px;
  font-size: 15px;
}
.product-contact-btn {
  margin-top: 8px;
}
.product-detail-content-card {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--tm-border);
}
.product-detail-content-card section {
  display: grid;
  gap: 6px;
}
.product-detail-content-card h2 {
  margin: 0;
  color: var(--tm-text);
  font-size: 14px;
  line-height: 1.2;
}
.product-detail-content-card .card-text {
  margin: 0;
}
.product-detail-content-card .rich-text {
  color: var(--tm-text-soft);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.product-detail-content-card .rich-text p,
.product-detail-content-card .rich-text ul,
.product-detail-content-card .rich-text ol {
  margin: 0 0 8px;
}
.product-detail-content-card .rich-text p:last-child,
.product-detail-content-card .rich-text ul:last-child,
.product-detail-content-card .rich-text ol:last-child {
  margin-bottom: 0;
}
.product-detail-content-card .rich-text ul,
.product-detail-content-card .rich-text ol {
  padding-left: 22px;
}
.product-detail-content-card .rich-text li + li {
  margin-top: 4px;
}
.product-related-section {
  margin-top: 24px;
}
.product-media-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: rgba(8, 17, 11, .86);
  color: #fff;
  padding: calc(34px + env(safe-area-inset-top, 0px)) 14px calc(14px + env(safe-area-inset-bottom, 0px));
}
.product-media-modal:focus {
  outline: none;
}
.product-media-modal-head,
.product-media-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.product-media-modal-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-media-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.product-media-modal-btn {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 10px;
  background: rgba(255,255,255,.12);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}
.product-media-modal-btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.88);
  outline-offset: 2px;
}
.product-media-modal-btn:hover {
  background: rgba(255,255,255,.2);
}
.product-media-modal-btn[data-product-media-reset],
.product-media-modal-btn[data-attachment-reset] {
  width: auto;
  min-width: 68px;
  padding: 0 10px;
}
.product-media-modal-stage {
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  touch-action: none;
}
.product-media-modal-stage img,
.product-media-modal-stage video {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center;
}
.product-media-modal-stage img {
  display: block;
  cursor: grab;
}
.product-media-modal-stage img:active {
  cursor: grabbing;
}
.product-media-modal-foot {
  justify-content: center;
  min-height: 42px;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
@media (max-width: 420px) {
  .product-media-modal {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
    grid-template-rows: auto minmax(0, 1fr) auto;
  }
  .product-media-modal-head {
    align-items: flex-start;
  }
  .product-media-modal-title {
    max-width: 96px;
    line-height: 1.2;
  }
  .product-media-modal-actions {
    gap: 6px;
  }
  .product-media-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }
  .product-media-modal-btn[data-product-media-reset],
  .product-media-modal-btn[data-attachment-reset] {
    min-width: 58px;
    padding: 0 8px;
  }
}
.attachment-modal-frame {
  width: min(1100px, 100%);
  height: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: #fff;
}
.attachment-modal-fallback {
  width: min(460px, 100%);
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  color: var(--tm-text);
  text-align: center;
}
.attachment-modal-fallback p {
  margin: 0 0 14px;
}

/* Status pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  background: #eaf2e3; color: var(--tm-green-700);
}
.pill.warn { background: #fef5dc; color: #7a5407; }
.pill.info { background: #e6f0fa; color: #1a4f80; }
.pill.danger { background: #fde8e8; color: #8a2424; }
.pill.muted { background: #f0f2ee; color: var(--tm-text-soft); }
.btn[disabled] {
  opacity: .58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Lists */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: #fff; border: 1px solid var(--tm-border); border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  min-width: 0;
}
.list-item .item-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px; background: #eaf2e3; color: var(--tm-green-700);
  display: grid; place-items: center;
}
.list-item .item-body { flex: 1; min-width: 0; }
.list-item .item-title { font-size: 14px; font-weight: 600; margin: 0; }
.list-item .item-sub { font-size: 12px; color: var(--tm-text-muted); margin-top: 2px; }
.list-item a, .list-item a:hover { color: inherit; text-decoration: none; }

/* Banner */
.banner {
  border-radius: 14px; overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.12), transparent 46%),
    linear-gradient(135deg, var(--tm-green-700), var(--tm-green-500) 58%, var(--tm-lime));
  color: #fff; padding: 22px;
  position: relative; margin-bottom: 16px;
  min-height: 140px;
  text-decoration: none;
}
.banner h2 { margin: 0 0 4px; font-size: 22px; }
.banner p { margin: 0; opacity: .92; font-size: 14px; }
.banner-uploaded {
  display: block;
  padding: 0;
  aspect-ratio: 32 / 5;
  min-height: 0;
  background: #eef4ec;
}
.banner-uploaded img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.banner-uploaded .banner-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  background: linear-gradient(90deg, rgba(9, 50, 26, .72), rgba(9, 50, 26, .28) 48%, rgba(9, 50, 26, 0));
}
.home-banner-carousel {
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #eef4ec;
  touch-action: pan-y;
}
.home-banner-track {
  display: flex;
  width: 100%;
  transition: transform .35s ease;
}
.home-banner-carousel.is-dragging .home-banner-track {
  transition: none;
  will-change: transform;
}
.home-banner-slide {
  flex: 0 0 100%;
  min-width: 0;
}
.home-banner-carousel .banner {
  margin-bottom: 0;
  border-radius: 0;
}
.home-banner-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(9, 50, 26, .46);
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .18s ease, transform .18s ease;
}
.home-banner-arrow:hover {
  background: rgba(9, 50, 26, .72);
}
.home-banner-arrow:active {
  transform: translateY(-50%) scale(.96);
}
.home-banner-prev { left: 12px; }
.home-banner-next { right: 12px; }
.home-banner-dots {
  position: absolute;
  left: 50%;
  bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(9, 50, 26, .24);
  transform: translateX(-50%);
}
.home-banner-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(255,255,255,.56);
  cursor: pointer;
  transition: width .18s ease, background .18s ease;
}
.home-banner-dot.is-active {
  width: 22px;
  background: #fff;
}
.home-showcase-page {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}
.home-showcase-section-head {
  justify-content: center;
  text-align: center;
}
.home-showcase-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 220px));
  justify-content: center;
}
@media (max-width: 719px) {
  .home-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }
}
.home-recent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 260px));
  justify-content: center;
  gap: 14px;
}
.home-recent-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--tm-border);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 30px -28px rgba(10, 61, 31, .48);
}
.home-recent-card:hover {
  text-decoration: none;
  border-color: rgba(29,122,55,.28);
}
.home-recent-img {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 7px;
  background: #f4f8f1;
  color: var(--tm-green-700);
  font-weight: 900;
  isolation: isolate;
}
.home-recent-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  mix-blend-mode: multiply;
}
.home-recent-card.is-out-of-stock .home-recent-img img,
.home-recent-card.is-out-of-stock .home-recent-img span {
  filter: grayscale(1) saturate(0) contrast(.92);
  opacity: .82;
}
.home-recent-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.home-recent-body strong,
.home-recent-body span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-recent-body strong {
  color: var(--tm-text);
  font-size: 13px;
  line-height: 1.2;
}
.home-recent-body span {
  color: var(--tm-text-muted);
  font-size: 11px;
}
.home-recent-body p {
  margin: 2px 0 0;
  color: var(--tm-green-700);
  font-size: 14px;
  font-weight: 900;
}
.home-recent-card.is-out-of-stock .home-recent-body p {
  color: var(--tm-text-muted);
}
@media (prefers-reduced-motion: reduce) {
  .home-banner-track,
  .home-banner-arrow,
  .home-banner-dot {
    transition: none;
  }
}
@media (max-width: 560px) {
  .home-showcase-page .home-banner-carousel {
    width: calc(100% + 24px);
    margin-left: -12px;
    margin-right: -12px;
    margin-bottom: 18px;
    border-radius: 16px;
    box-shadow: 0 20px 34px -28px rgba(10, 61, 31, .75);
  }
  .home-showcase-page .banner-uploaded {
    aspect-ratio: 30 / 5;
  }
  .home-banner-arrow {
    width: 34px;
    height: 34px;
  }
  .home-banner-prev { left: 8px; }
  .home-banner-next { right: 8px; }
  .home-banner-dots {
    bottom: 8px;
    gap: 6px;
  }
  .home-banner-dot {
    width: 7px;
    height: 7px;
  }
  .home-banner-dot.is-active {
    width: 18px;
  }
}

/* Atalhos por setor */
.shortcut-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 18px; }
.shortcut {
  background: #fff; border: 1px solid var(--tm-border);
  border-radius: 12px; padding: 12px 5px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--tm-text);
  transition: transform .12s, box-shadow .15s;
}
.shortcut:hover { transform: translateY(-1px); box-shadow: var(--tm-shadow); text-decoration: none; }
.shortcut-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(145deg, var(--tm-green-700), var(--tm-lime));
  color: #fff; display: grid; place-items: center;
}
.shortcut-label { font-size: 12px; font-weight: 600; text-align: center; }

/* Cart item */
.cart-item {
  background: #fff; border: 1px solid var(--tm-border); border-radius: 14px;
  padding: 12px; display: flex; gap: 12px;
}
.cart-item .ci-img {
  width: 64px; height: 64px; flex-shrink: 0;
  border-radius: 10px; background: #eaf2e3;
  display: grid; place-items: center; color: var(--tm-green-700);
  font-weight: 700; overflow: hidden;
}
.cart-item .ci-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; padding: 4px; }
.cart-item .ci-body { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 14px; font-weight: 600; margin: 0; }
.cart-item .ci-price { font-size: 13px; color: var(--tm-green-700); font-weight: 700; margin: 4px 0 6px; }
.cart-item form { flex-wrap: wrap; }
.cart-item-remove { margin-left: auto; }
.qty-control { display: inline-flex; align-items: center; border: 1px solid var(--tm-border); border-radius: 10px; overflow: hidden; background: #fff; }
.qty-control button { width: 32px; height: 32px; background: #fff; border: 0; font-size: 16px; cursor: pointer; color: var(--tm-green-700); font-weight: 700; }
.qty-control input { width: 44px; height: 32px; text-align: center; border: 0; outline: 0; box-shadow: none; background: transparent; border-radius: 0; font-size: 14px; appearance: textfield; -webkit-appearance: none; -moz-appearance: textfield; }
.order-installment-select {
  max-width: 220px;
  min-width: 168px;
}
.checkout-choice-grid,
.payment-choice-list {
  display: grid;
  gap: 8px;
}
.checkout-choice-grid {
  grid-template-columns: 1fr;
  margin-bottom: 12px;
}
.checkout-choice,
.payment-choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--tm-border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
.checkout-choice input,
.payment-choice input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--tm-green-600);
}
.checkout-choice span,
.payment-choice span {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.payment-choice small {
  color: var(--tm-text-muted);
  font-size: 12px;
  line-height: 1.3;
}
.checkout-choice.is-selected,
.payment-choice.is-selected {
  border-color: var(--tm-green-600);
  background: #f2f9ee;
  box-shadow: 0 0 0 3px var(--tm-tap);
}
.readonly-address {
  display: grid;
  gap: 3px;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px dashed #cbdcc6;
  border-radius: 12px;
  background: #f8fbf6;
}
.readonly-address span {
  color: var(--tm-text-muted);
  font-size: 12px;
  font-weight: 700;
}
.readonly-address strong {
  color: var(--tm-text);
  font-size: 14px;
  line-height: 1.35;
}
.payment-online-panel {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}
.payment-online-panel[hidden] {
  display: none;
}
.card-input-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.discount-gain {
  margin: 10px 0 6px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #e9f7e6;
  color: var(--tm-green-700);
  font-weight: 800;
  font-size: 13px;
}
.installment-breakdown {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.installment-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--tm-border);
  font-size: 13px;
}
.installment-breakdown div:last-child {
  border-bottom: 0;
}
.installment-breakdown span {
  color: var(--tm-text-muted);
}
.installment-breakdown strong {
  color: var(--tm-green-700);
  text-align: right;
}
.payment-result {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  background: #f8fbf6;
}
.payment-section-target {
  scroll-margin-top: 120px;
  outline: none;
}
.payment-section-target:focus-visible {
  box-shadow: 0 0 0 3px rgba(53, 143, 69, .18);
  border-radius: 12px;
}
.payment-result img {
  width: min(220px, 100%);
  border-radius: 10px;
  margin: 0 auto;
}
.payment-copy {
  width: 100%;
  min-height: 84px;
  padding: 10px;
  border: 1px solid var(--tm-border);
  border-radius: 10px;
  background: #fff;
  color: var(--tm-text-soft);
  font-family: inherit;
  resize: vertical;
}

/* Modern checkout and payment methods */
.checkout-panel { overflow: hidden; }
.checkout-panel-head,
.payment-methods-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px;
}
.checkout-panel-head h3,
.payment-methods-head h3 { margin: 2px 0 0; font-size: 19px; line-height: 1.15; }
.checkout-panel-kicker {
  display: inline-flex; color: var(--tm-green-700); font-size: 11px; font-weight: 900;
  letter-spacing: .08em; text-transform: uppercase;
}
.checkout-choice,
.payment-choice,
.saved-card-option {
  position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s, background .15s;
}
.checkout-choice:hover,
.payment-choice:hover,
.saved-card-option:hover { transform: translateY(-1px); border-color: #c9ddc3; }
.checkout-choice input,
.payment-choice input,
.saved-card-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-choice-icon,
.payment-choice-icon,
.saved-card-brand {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center;
  color: var(--tm-green-700); background: linear-gradient(145deg, #eef7ea, #f8fbf6); border: 1px solid #dce9d7;
}
.checkout-choice-icon svg,
.payment-choice-icon svg,
.saved-card-brand svg,
.readonly-address svg,
.input-with-icon svg,
.payment-method-mark svg,
.payment-method-empty-icon svg,
.icon-action svg,
.card-modal-close svg { width: 19px; height: 19px; }
.checkout-choice strong,
.payment-choice strong,
.saved-card-option strong { font-size: 13px; line-height: 1.2; }
.checkout-choice small,
.payment-choice small,
.saved-card-option small { color: var(--tm-text-muted); font-size: 12px; line-height: 1.3; }
.checkout-choice.is-selected .checkout-choice-icon,
.payment-choice.is-selected .payment-choice-icon,
.saved-card-option.is-selected .saved-card-brand {
  color: #fff; background: linear-gradient(145deg, var(--tm-green-700), var(--tm-lime)); border-color: transparent;
}
.checkout-section { margin-top: 14px; }
.checkout-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.checkout-section-title span {
  width: 24px; height: 24px; display: grid; place-items: center; border-radius: 999px;
  background: var(--tm-green-900); color: #fff; font-size: 12px; font-weight: 900;
}
.checkout-section-title strong { font-size: 15px; }
.input-with-icon { position: relative; }
.input-with-icon svg {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--tm-text-muted); pointer-events: none;
}
.input-with-icon .input { padding-left: 40px; }
.readonly-address span { display: inline-flex; align-items: center; gap: 6px; }
.payment-online-panel {
  padding: 10px; border: 1px solid #e3ebe2; border-radius: 14px; background: #f8fbf6;
}
.saved-card-list { display: grid; gap: 9px; }
.saved-card-option {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; border: 1.5px solid var(--tm-border);
  border-radius: 12px; background: #fff; cursor: pointer;
}
.saved-card-option > span:last-child { display: grid; gap: 2px; min-width: 0; }
.payment-methods-list { display: grid; gap: 10px; }
.payment-method-item,
.payment-method-empty {
  display: flex; align-items: center; gap: 12px; padding: 13px; border: 1px solid var(--tm-border);
  border-radius: 14px; background: #fff;
}
.payment-method-mark,
.payment-method-empty-icon {
  width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center;
  border-radius: 13px; color: var(--tm-green-700); background: #eef7ea;
}
.payment-method-body { display: grid; gap: 2px; min-width: 0; flex: 1; }
.payment-method-body strong,
.payment-method-empty strong { font-size: 14px; line-height: 1.25; }
.payment-method-body span,
.payment-method-empty p { color: var(--tm-text-muted); font-size: 12px; margin: 0; }
.payment-method-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.icon-action {
  width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--tm-border);
  border-radius: 11px; background: #fff; color: var(--tm-text-soft); cursor: pointer;
}
.icon-action.danger { color: #9f2f2f; background: #fff7f5; border-color: #f1d4cf; }
.card-modal-overlay {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: end center;
  padding: max(10px, env(safe-area-inset-top)) 14px max(10px, calc(env(safe-area-inset-bottom) + var(--b2c-keyboard-inset, 0px)));
  background: rgba(8, 24, 13, .54); backdrop-filter: blur(10px);
}
.card-modal {
  width: min(430px, 100%);
  max-height: min(720px, calc(var(--b2c-visual-viewport-height, 100dvh) - 20px));
  border-radius: 22px; background: #fff;
  box-shadow: 0 28px 90px -32px rgba(0,0,0,.55); overflow: auto;
  overscroll-behavior: contain;
}
.card-modal-visual {
  height: 118px; padding: 18px; color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 42%),
    linear-gradient(135deg, var(--tm-green-900), var(--tm-green-700) 58%, var(--tm-lime));
}
.card-chip { width: 40px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #ffe8a8, #c89f32); }
.card-lines { display: grid; gap: 8px; max-width: 220px; }
.card-lines span { height: 7px; border-radius: 999px; background: rgba(255,255,255,.72); }
.card-lines span:last-child { width: 60%; }
.card-modal-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; }
.card-modal-head span {
  color: var(--tm-green-700); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
}
.card-modal-head h2 { margin: 2px 0 0; font-size: 20px; line-height: 1.15; }
.card-modal-close {
  width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--tm-border);
  border-radius: 12px; background: #fff; color: var(--tm-text-soft); cursor: pointer;
}
.card-modal-form { display: grid; gap: 10px; padding: 10px 18px 18px; }
.card-modal-grid { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 10px; }
.card-default-row { margin-top: 2px; }
@media (max-width: 380px) {
  .card-modal-grid { grid-template-columns: 1fr; }
  .card-modal-head { padding-inline: 14px; }
  .card-modal-form { padding-inline: 14px; }
}
@media (min-width: 560px) {
  .checkout-choice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .checkout-choice-stack { grid-template-columns: 1fr; }
  .card-input-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-modal-overlay { place-items: center; }
}

/* Section header */
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.section-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.section-head a { font-size: 13px; }

/* Orders hub */
.orders-section {
  margin-bottom: 24px;
}
.orders-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.orders-section-head h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}
.orders-section-head p {
  margin: 3px 0 0;
  color: var(--tm-text-muted);
  font-size: 13px;
}
.current-order-card,
.current-order-empty {
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  box-shadow: var(--tm-shadow);
}
.current-order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}
.current-order-main {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-width: 0;
}
.current-order-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eaf2e3;
  color: var(--tm-green-700);
}
.current-order-card h3,
.current-order-empty h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
}
.current-order-card p,
.current-order-empty p {
  margin: 4px 0 0;
  color: var(--tm-text-muted);
  font-size: 13px;
}
.current-order-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.current-order-products span {
  max-width: min(260px, 100%);
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f5f8f2;
  color: var(--tm-text-soft);
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.current-order-summary {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 260px;
}
.current-order-summary > span {
  color: var(--tm-text-muted);
  font-size: 12px;
  font-weight: 700;
}
.current-order-summary > strong {
  color: var(--tm-green-700);
  font-size: 20px;
  line-height: 1.1;
  white-space: nowrap;
}
.current-order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.current-order-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
.btn-primary-cta {
  height: 44px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 700;
  background: var(--tm-green-700);
  color: #fff;
  border: 1px solid var(--tm-green-700);
  border-radius: 12px;
  box-shadow: 0 6px 14px rgba(20, 83, 45, .18);
}
.btn-primary-cta:hover { filter: brightness(1.05); }
.current-order-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
}
.orders-empty {
  padding-top: 26px;
  padding-bottom: 30px;
  border: 1px dashed var(--tm-border);
  border-radius: 14px;
  background: rgba(255,255,255,.58);
}

/* Search */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--tm-border);
  border-radius: 14px; padding: 0 12px; height: 46px;
  margin-bottom: 12px;
}
.search-bar input { flex: 1; border: 0; outline: 0; font-size: 14px; background: transparent; height: 100%; }
.catalog-filters { margin-bottom: 10px; }
.input.compact,
.select.compact {
  width: auto;
  min-width: 126px;
  height: 38px;
  border-radius: 10px;
  font-size: 13px;
}
.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
}
.checkbox-chip input {
  width: 16px;
  height: 16px;
  accent-color: var(--tm-green-600);
}
.pagination {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.compare-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--tm-border);
  border-radius: 12px;
  background: #fff;
}
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 13px;
}
.compare-table th,
.compare-table td {
  padding: 12px;
  border-bottom: 1px solid var(--tm-border);
  text-align: left;
  vertical-align: top;
}
.compare-table th {
  background: #f7faf5;
  color: var(--tm-text-soft);
}

/* Tabs / chips */
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 8px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--tm-border);
  font-size: 13px; color: var(--tm-text-soft); white-space: nowrap; cursor: pointer;
}
.chip-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip.is-active { background: var(--tm-green-600); color: #fff; border-color: var(--tm-green-600); }

/* Hero pre-login */
.app-shell.auth-access-shell {
  min-height: 100vh;
  min-height: var(--b2c-visual-viewport-height, 100dvh);
  background:
    radial-gradient(circle at 78% 0%, rgba(247,181,56,.22), transparent 30%),
    linear-gradient(145deg, #0a3d1f, #0e4a26 52%, #1d7a37);
}
.app-shell.auth-access-shell .app {
  max-width: none;
  min-height: 100vh;
  min-height: var(--b2c-visual-viewport-height, 100dvh);
  padding-bottom: 0;
}
.auth-access-page {
  min-height: 100vh;
  min-height: var(--b2c-visual-viewport-height, 100dvh);
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom) + var(--b2c-keyboard-inset, 0px));
  scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom) + var(--b2c-keyboard-inset, 0px));
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 0;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.4);
  margin: 0;
}
.auth-card.auth-card-wide {
  max-width: 760px;
}
.auth-brand {
  text-align: center;
  margin-bottom: 24px;
}
.auth-brand .dot {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}
.auth-brand .dot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.18));
}
.auth-brand h1 {
  margin: 0;
  font-size: 22px;
}
.auth-brand p {
  margin: 4px 0 0;
  color: var(--tm-text-muted);
  font-size: 13px;
}
.auth-top-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px 0 11px;
  margin-bottom: 18px;
  border: 1px solid #dce9d7;
  border-radius: 10px;
  background: #f7fbf4;
  color: var(--tm-green-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 8px 20px -18px rgba(10, 61, 31, .55);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.auth-top-link::before {
  content: "\2190";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f4e2;
  color: var(--tm-green-850);
  font-size: 14px;
  line-height: 1;
}
.auth-top-link:hover {
  background: #eef7e8;
  border-color: #c8dfbf;
  color: var(--tm-green-900);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -22px rgba(10, 61, 31, .6);
}
.auth-top-link:focus-visible {
  outline: 3px solid rgba(42, 156, 74, .24);
  outline-offset: 2px;
}
.auth-card .page-title {
  font-size: 22px;
}
.auth-card .steps {
  margin-top: 18px;
}
.auth-card .form-step .card {
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.auth-card .form-step .card-title {
  margin-bottom: 14px;
}
.registration-review {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}
.registration-review-section {
  padding-top: 14px;
  border-top: 1px solid var(--tm-border);
}
.registration-review-section h4 {
  margin: 0 0 10px;
  color: var(--tm-green-850);
  font-size: 13px;
  font-weight: 800;
}
.registration-review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
}
.registration-review-grid > div {
  min-width: 0;
}
.registration-review-grid dt {
  margin: 0 0 3px;
  color: var(--tm-text-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.registration-review-grid dd {
  margin: 0;
  color: var(--tm-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.registration-review-wide {
  grid-column: 1 / -1;
}
.auth-actions {
  text-align: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--tm-text-muted);
  display: grid;
  gap: 10px;
}
@media (max-width: 560px) {
  .auth-access-page {
    align-items: start;
    padding: 16px 16px calc(28px + env(safe-area-inset-bottom) + var(--b2c-keyboard-inset, 0px));
  }
  .auth-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .registration-review-grid {
    grid-template-columns: 1fr;
  }
}

.hero {
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(circle at 80% 0%, rgba(247, 181, 56, .26), transparent 28%),
    linear-gradient(145deg, #0a3d1f 0%, #0e4a26 46%, #145c2a 100%);
  color: #fff; padding: 24px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -86px;
  top: 84px;
  width: 260px;
  height: 420px;
  background: url("../img/icone.png") center / contain no-repeat;
  opacity: .12;
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-brand { display: flex; align-items: center; gap: 13px; min-width: 0; }
.hero-brand-icon {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(0,0,0,.24));
}
.hero-logo-img {
  width: min(224px, calc(100vw - 112px));
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0,0,0,.24));
}
.hero-logo { font-size: 28px; font-weight: 800; letter-spacing: 0; }
.hero-logo .accent { color: var(--tm-lime); }
.hero h1 { font-size: 32px; line-height: 1.15; margin: 30px 0 12px; }
.hero p.lead { font-size: 16px; opacity: .9; margin: 0 0 30px; max-width: 460px; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.hero-cta .btn-block { width: 100%; }
.hero-foot { font-size: 12px; opacity: .7; margin-top: 16px; text-align: center; }

/* Empty */
.empty {
  text-align: center; padding: 40px 20px; color: var(--tm-text-muted);
}
.empty-icon { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 999px; background: #eaf2e3; display: grid; place-items: center; color: var(--tm-green-700); }
.empty h3 { color: var(--tm-text); margin: 0 0 6px; font-size: 18px; }

.loyalty-home-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  border: 1px solid #dce9d7;
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff, #f3faef);
  color: var(--tm-text);
  box-shadow: var(--tm-shadow);
  text-decoration: none;
}
.loyalty-home-card:hover { text-decoration: none; background: #f2faed; }
.loyalty-home-card span { display: grid; gap: 2px; min-width: 0; }
.loyalty-home-card small,
.loyalty-home-card em { color: var(--tm-text-muted); font-size: 12px; font-style: normal; }
.loyalty-home-card strong { font-size: 28px; line-height: 1; color: var(--tm-green-700); }
.loyalty-home-card b {
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--tm-green-700);
  color: #fff;
  font-size: 13px;
}
.loyalty-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.loyalty-summary-card,
.loyalty-order-box {
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.loyalty-summary-card span,
.loyalty-order-box span {
  display: block;
  color: var(--tm-text-muted);
  font-size: 12px;
}
.loyalty-summary-card strong,
.loyalty-order-box strong {
  display: block;
  margin-top: 2px;
  font-size: 30px;
  line-height: 1;
  color: var(--tm-green-700);
}
.loyalty-summary-card small,
.loyalty-order-box small {
  display: block;
  margin-top: 7px;
  color: var(--tm-text-soft);
  font-size: 12px;
}
.loyalty-reward-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.loyalty-reward-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--tm-border);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--tm-shadow);
}
.loyalty-reward-image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  background: #eef5ea;
  color: var(--tm-green-700);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.loyalty-reward-image img { width: 100%; height: 100%; object-fit: cover; }
.loyalty-reward-body { min-width: 0; }
.loyalty-reward-body h3 { margin: 0 0 4px; font-size: 15px; }
.loyalty-reward-body p { margin: 0 0 8px; color: var(--tm-text-soft); font-size: 13px; }
.loyalty-reward-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--tm-text-muted);
}
.loyalty-movement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--tm-border);
}
.loyalty-movement:last-child { border-bottom: 0; }
.loyalty-movement strong { display: block; font-size: 14px; }
.loyalty-movement span { display: block; color: var(--tm-text-muted); font-size: 12px; }
.loyalty-movement b { color: var(--tm-green-700); font-size: 16px; }
.loyalty-movement b.is-negative { color: var(--tm-danger); }

@media (max-width: 520px) {
  .loyalty-summary { grid-template-columns: 1fr; }
  .loyalty-reward-card { grid-template-columns: 88px 1fr; }
}

/* Status timeline */
.timeline { display: flex; flex-direction: column; gap: 10px; padding-left: 4px; }
.tl-item { display: flex; gap: 12px; }
.tl-dot { width: 12px; height: 12px; border-radius: 999px; background: var(--tm-green-500); margin-top: 6px; flex-shrink: 0; box-shadow: 0 0 0 4px #eaf2e3; }
.tl-item.muted .tl-dot { background: var(--tm-border); box-shadow: 0 0 0 4px #f0f2ee; }
.tl-body { flex: 1; }
.tl-title { font-size: 14px; font-weight: 600; margin: 0; }
.tl-sub { font-size: 12px; color: var(--tm-text-muted); }

/* Helpers */
.text-muted { color: var(--tm-text-muted); }
.text-success { color: var(--tm-success); }
.text-danger { color: var(--tm-danger); }
.text-warn { color: var(--tm-warn); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .flex-col { flex-direction: column; } .gap-1 { gap: 8px; } .gap-2 { gap: 16px; }
.justify-between { justify-content: space-between; } .items-center { align-items: center; }
.divider { height: 1px; background: var(--tm-border); margin: 14px 0; }

/* Loader */
.loader {
  width: 24px; height: 24px;
  border: 3px solid #fff; border-top-color: transparent;
  border-radius: 999px; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav back */
.back-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px 0 11px;
  border: 1px solid #dce9d7;
  border-radius: 10px;
  background: #f7fbf4;
  color: var(--tm-green-700);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 20px -18px rgba(10, 61, 31, .55);
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.back-link::before {
  content: "\2190";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #e9f4e2;
  color: var(--tm-green-850);
  font-size: 14px;
  line-height: 1;
}
.back-link:hover {
  background: #eef7e8;
  border-color: #c8dfbf;
  color: var(--tm-green-900);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -22px rgba(10, 61, 31, .6);
}
.back-link:focus-visible {
  outline: 3px solid rgba(42, 156, 74, .24);
  outline-offset: 2px;
}

/* Responsive layout */
@media (min-width: 720px) {
  .page { padding: 22px 24px; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
  .shortcut-grid { gap: 12px; }
  .app-shell.is-guest-shell .app {
    box-shadow: var(--tm-shadow-lg);
  }
}

@media (max-width: 719px) {
  .favorites-link {
    width: 42px;
    min-width: 42px;
    padding: 0;
    justify-content: center;
    position: relative;
  }
  .favorites-link span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .favorites-link strong {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--tm-orange);
    color: #fff;
    font-size: 10px;
  }
}

@media (min-width: 1024px) {
  .app { padding-bottom: 0; }
  .app-shell.has-client-sidebar {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
  }
  .client-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    padding: 22px 16px;
    background: var(--tm-green-900);
    color: #fff;
    scrollbar-color: rgba(255,255,255,.34) transparent;
  }
  .client-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.34);
    background-clip: padding-box;
  }
  .client-sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.52);
    background-clip: padding-box;
  }
  .client-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
  }
  .client-brand:hover { text-decoration: none; }
  .client-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: transparent;
    overflow: hidden;
  }
  .client-brand-mark img { width: 100%; height: 100%; object-fit: contain; }
  .client-brand-name,
  .client-brand-sub,
  .client-user-name,
  .client-user-sub {
    display: block;
  }
  .client-brand-name { font-size: 15px; font-weight: 800; }
  .client-brand-sub { font-size: 12px; opacity: .68; }
  .client-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }
  .client-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 10px 12px;
    border-radius: 12px;
    color: rgba(255,255,255,.78);
    text-decoration: none;
    font-weight: 600;
    position: relative;
  }
  .client-nav a:hover,
  .client-nav a.is-active {
    background: rgba(255,255,255,.1);
    color: #fff;
    text-decoration: none;
  }
  .client-nav a.is-active {
    background: var(--tm-green-700);
  }
  .client-nav a svg {
    flex: 0 0 auto;
    stroke: currentColor;
  }
  .client-nav-badge {
    margin-left: auto;
    background: var(--tm-orange);
    color: #fff;
    border-radius: 999px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 800;
  }
  .client-sidebar-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    border-top: 1px solid rgba(255,255,255,.1);
    color: #fff;
  }
  .client-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,.14);
    font-size: 12px;
    font-weight: 800;
  }
  .client-user-name {
    max-width: 168px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
  }
  .client-user-sub { font-size: 11px; opacity: .65; }
  .bottom-nav { display: none; }
  .app-shell.has-client-sidebar .app-header {
    border-radius: 0;
    padding: 20px 32px;
  }
  .app-shell.has-client-sidebar .app-header-row,
  .app-shell.has-client-sidebar .page {
    max-width: 1240px;
    margin-left: auto;
    margin-right: auto;
  }
  .app-shell.has-client-sidebar .page {
    padding: 28px 32px 56px;
  }
  .app-shell.has-client-sidebar .banner {
    min-height: 176px;
    padding: 30px;
  }
  .app-shell.has-client-sidebar .banner-uploaded {
    padding: 0;
    min-height: 0;
  }
  .app-shell.has-client-sidebar .banner-uploaded .banner-content {
    padding: 30px;
  }
  .app-shell.has-client-sidebar .banner h2 { font-size: 28px; }
  .app-shell.has-client-sidebar .banner p { font-size: 16px; }
  .app-shell.has-client-sidebar .shortcut-grid {
    gap: 14px;
  }
  .app-shell.has-client-sidebar .shortcut {
    min-height: 124px;
    justify-content: center;
  }
  .app-shell.has-client-sidebar .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 18px;
  }
  .product-detail-layout,
  .order-layout,
  .account-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    align-items: start;
    gap: 22px;
  }
  .product-detail-layout .product-grid {
    grid-template-columns: 1fr;
  }
  .product-detail-page .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
  .product-detail-card,
  .order-layout .card,
  .account-layout .card {
    margin-bottom: 0;
  }
  .app-shell.has-client-sidebar .account-layout {
    grid-template-columns: minmax(250px, .72fr) minmax(0, 1.5fr);
  }
  .account-layout .desktop-sticky {
    display: grid;
    gap: 14px;
  }
  .order-layout > .desktop-sticky > .card:first-child {
    margin-top: 0;
  }
  .desktop-sticky {
    position: sticky;
    top: 92px;
  }
  .app-shell.is-guest-shell .app,
  .app-shell.is-guest-shell .page,
  .app-shell.is-guest-shell .app-header-row {
    max-width: 760px;
  }
  .app-shell.is-guest-shell .page,
  .app-shell.is-guest-shell .app-header-row {
    margin-left: auto;
    margin-right: auto;
  }
  .app-shell.is-guest-shell .app {
    min-height: 100vh;
  }
  .hero {
    justify-content: center;
    padding: 48px;
  }
  .hero::after {
    right: 2vw;
    top: 48px;
    width: 360px;
    height: 570px;
    opacity: .14;
  }
  .hero h1 {
    font-size: 46px;
    max-width: 760px;
  }
  .hero p.lead {
    font-size: 18px;
    max-width: 620px;
  }
  .hero-cta {
    max-width: 420px;
    margin-top: 36px;
  }
}

@media (max-width: 560px) {
  .catalog-chip-row .chips,
  .catalog-sector-row .chips {
    flex-wrap: wrap;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .catalog-chip-row .chip {
    flex: 0 0 auto;
  }
  .catalog-filters .filters-sticky {
    margin-left: -2px;
    margin-right: -2px;
  }
  .catalog-filters {
    display: grid;
    gap: 10px;
  }
  .catalog-filter-search,
  .catalog-filter-group {
    display: grid;
    gap: 6px;
  }
  .catalog-filter-search > label,
  .catalog-filter-group > label:first-child {
    color: var(--tm-text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }
  .catalog-filters .filters-sticky {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: normal;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .catalog-filter-price > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .catalog-filter-submit,
  .catalog-filters .select.compact,
  .catalog-filters .input.compact,
  .catalog-filters .checkbox-chip {
    width: 100%;
  }
  .catalog-filters .checkbox-chip {
    justify-content: center;
  }
  .orders-section-head,
  .current-order-empty {
    align-items: flex-start;
  }
  .orders-section-head {
    flex-direction: column;
    gap: 8px;
  }
  .current-order-card {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .current-order-summary {
    width: 100%;
    min-width: 0;
    justify-items: start;
    padding-top: 12px;
    border-top: 1px solid var(--tm-border);
  }
  .current-order-summary > strong {
    white-space: normal;
  }
  .current-order-actions,
  .current-order-actions .btn,
  .current-order-empty .btn {
    width: 100%;
  }
  .current-order-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .current-order-empty {
    flex-direction: column;
  }
  .product-payment-head,
  .product-payment-controls {
    grid-template-columns: 1fr;
  }
  .product-detail-commercial {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-payment-controls {
    gap: 10px;
  }
  .product-payment-head {
    display: grid;
  }
  .product-payment-head > strong {
    white-space: normal;
  }
  .product-media-modal {
    padding: calc(34px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .product-media-modal-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .product-media-modal-title {
    flex: 1 1 100%;
  }
  .product-media-modal-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
  }
  .product-media-modal-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }
  .product-media-modal-btn[data-product-media-reset],
  .product-media-modal-btn[data-attachment-reset] {
    min-width: 62px;
  }
}

@media (min-width: 1280px) {
  .app-shell.has-client-sidebar {
    grid-template-columns: 280px minmax(0, 1fr);
  }
  .app-shell.has-client-sidebar .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  }
}

/* Desktop B2B client shell */
.client-topbar,
.desktop-page-head,
.home-side-panel,
.product-detail-desktop-actions {
  display: none;
}
.shortcut-caption,
.catalog-chip-row > span {
  display: none;
}

@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(circle at 12% -14%, rgba(247, 181, 56, .12), transparent 30%),
      linear-gradient(180deg, #f8faf5 0%, #eef4ec 100%);
  }

  .app-shell.has-client-sidebar {
    display: block;
  }

  .app-shell.has-client-sidebar .client-sidebar {
    display: none;
  }

  .client-topbar {
    position: sticky;
    top: 0;
    z-index: 80;
    display: block;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(29, 122, 55, .14);
    box-shadow: 0 18px 36px -32px rgba(10, 61, 31, .42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .client-topbar-inner {
    width: min(1440px, 100%);
    margin: 0 auto;
    padding: 12px 32px 0;
  }

  .client-topbar-main {
    display: grid;
    grid-template-columns: auto minmax(240px, 613px) minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    gap: 14px;
  }

  .client-topbar-brand,
  .client-topbar-user,
  .client-topbar-cart,
  .client-topbar-action,
  .client-topbar-points {
    color: var(--tm-text);
    text-decoration: none;
  }

  .client-topbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    justify-self: start;
  }

  .client-topbar-brand:hover,
  .client-topbar-user:hover,
  .client-topbar-cart:hover,
  .client-topbar-action:hover,
  .client-topbar-points:hover,
  .client-topbar-nav a:hover {
    text-decoration: none;
  }

  .client-topbar-brand-mark {
    width: 216px;
    display: flex;
    align-items: center;
    overflow: visible;
    flex: 0 0 auto;
  }

  .client-topbar-brand-mark img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: left center;
  }

  .client-topbar-brand-logo {
    border-radius: 0;
  }

  .client-topbar-brand-copy {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .client-topbar-brand-copy strong,
  .client-topbar-user strong,
  .client-topbar-cart strong {
    font-size: 13px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .client-topbar-brand-copy small,
  .client-topbar-user small,
  .client-topbar-cart small {
    color: var(--tm-text-muted);
    font-size: 11px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .client-topbar-search {
    height: 48px;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 5px 0 14px;
    border: 1px solid #dbe7d8;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 12px 26px -24px rgba(10, 61, 31, .5);
  }

  .client-topbar-search svg {
    color: var(--tm-text-muted);
  }

  .client-topbar-search input {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    border: 0;
    border-radius: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    color: var(--tm-text);
    font: inherit;
    font-size: 14px;
    line-height: 48px;
    padding: 0;
  }

  .client-topbar-search input::-webkit-search-decoration,
  .client-topbar-search input::-webkit-search-cancel-button,
  .client-topbar-search input::-webkit-search-results-button,
  .client-topbar-search input::-webkit-search-results-decoration {
    -webkit-appearance: none;
  }

  .client-topbar-search button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 9px;
    background: var(--tm-green-700);
    color: #fff;
    cursor: pointer;
  }

  .client-topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    justify-self: end;
  }

  .client-topbar-action,
  .client-topbar-cart,
  .client-topbar-user,
  .client-topbar-points {
    min-height: 42px;
    border: 1px solid #dfe9db;
    border-radius: 10px;
    background: #fff;
    font: inherit;
    transition: border-color .16s ease, background .16s ease, color .16s ease, transform .12s ease;
  }

  .client-topbar-action {
    position: relative;
    width: 42px;
    display: grid;
    place-items: center;
    color: var(--tm-green-700);
    padding: 0;
    cursor: pointer;
  }

  .client-topbar-notification {
    color: #0f172a;
    overflow: visible;
  }

  .client-topbar-notification .b2c-notification-bell-frame {
    width: 32px;
    height: 32px;
    background: transparent;
    box-shadow: none;
  }

  .client-topbar-notification .b2c-notification-bell-icon {
    width: 22px;
    height: 22px;
  }

  .client-topbar-action-icon {
    position: relative;
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
  }

  .client-topbar-badge {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--tm-orange);
    color: #fff;
    border: 2px solid #fff;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
  }

  .client-topbar-cart-badge {
    top: -9px;
    right: -10px;
  }

  .client-topbar-points {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 11px;
    color: #050505;
    font-weight: 800;
  }

  .client-topbar-points svg {
    color: #050505;
  }

  .client-topbar-points small {
    color: var(--tm-text-muted);
    font-size: 11px;
    font-weight: 700;
  }

  .client-topbar-cart,
  .client-topbar-user {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 0 10px;
  }

  .client-topbar-cart-chevron {
    flex: 0 0 auto;
  }

  .client-topbar-cart.is-active,
  .client-topbar-user.is-active,
  .client-topbar-action:hover,
  .client-topbar-cart:hover,
  .client-topbar-user:hover,
  .client-topbar-points:hover {
    border-color: rgba(29, 122, 55, .32);
    background: #f5faf2;
    color: #050505;
  }

  .client-topbar-avatar {
    width: 32px;
    height: 32px;
    font-size: 11px;
    background: var(--tm-green-700);
  }

  .client-topbar-cart-copy,
  .client-topbar-user-copy {
    display: none;
  }

  .client-topbar-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    padding: 0 0 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .client-topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .client-topbar-nav a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 10px;
    color: var(--tm-text-soft);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
  }

  .client-topbar-nav a.is-active {
    background: var(--tm-green-700);
    color: #fff;
    box-shadow: inset 0 -2px 0 rgba(255,255,255,.16);
  }

  .app-shell.has-client-sidebar .app {
    padding-bottom: 0;
  }

  .app-shell.has-client-sidebar .app-header {
    display: none;
  }

  .app-shell.has-client-sidebar .app-header-row,
  .app-shell.has-client-sidebar .page {
    max-width: 1440px;
  }

  .app-shell.has-client-sidebar .page {
    padding: 32px 32px 64px;
  }

  .app-shell.has-client-sidebar .home-showcase-page {
    width: calc(100% - 64px);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 72px;
    box-sizing: border-box;
  }

  .desktop-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
  }

  .desktop-page-head > div > span {
    display: block;
    margin-bottom: 4px;
    color: var(--tm-green-700);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .desktop-page-head h1 {
    margin: 0;
    color: var(--tm-text);
    font-size: 30px;
    line-height: 1.12;
  }

  .desktop-page-head p {
    margin: 6px 0 0;
    color: var(--tm-text-muted);
    font-size: 14px;
  }

  .home-page-head {
    align-items: center;
    padding: 2px 0 4px;
  }

  .home-page-head h1 {
    max-width: 780px;
  }

  .home-page-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    gap: 8px;
    min-width: 360px;
  }

  .home-page-metrics a {
    min-height: 64px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid #dfe9db;
    border-radius: 10px;
    background: rgba(255,255,255,.84);
    color: inherit;
    text-decoration: none;
  }

  .home-page-metrics a:hover {
    border-color: rgba(29,122,55,.32);
    background: #fff;
  }

  .home-page-metrics strong {
    color: var(--tm-green-700);
    font-size: 24px;
    line-height: 1;
  }

  .home-page-metrics span {
    color: var(--tm-text-muted);
    font-size: 11px;
    font-weight: 800;
  }

  .home-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 318px;
    gap: 18px;
    align-items: start;
    margin-bottom: 8px;
  }

  .home-hero-main {
    min-width: 0;
  }

  .home-side-panel {
    display: grid;
    gap: 12px;
  }

  .home-side-card {
    border: 1px solid #dfe9db;
    border-radius: 8px;
    background: #fff;
    padding: 16px;
    box-shadow: 0 18px 36px -32px rgba(10, 61, 31, .38);
  }

  .home-side-card-primary {
    border-color: rgba(29, 122, 55, .24);
    background:
      linear-gradient(135deg, rgba(255,255,255,.95), rgba(245,250,242,.96)),
      #fff;
  }

  .home-side-card strong {
    display: block;
    color: var(--tm-text);
    font-size: 22px;
    line-height: 1.1;
  }

  .home-side-card p {
    margin: 6px 0 14px;
    color: var(--tm-text-muted);
    font-size: 13px;
  }

  .home-side-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--tm-text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .home-side-card-compact {
    display: grid;
    gap: 8px;
  }

  .home-side-card-compact a {
    font-size: 13px;
    font-weight: 800;
  }

  .home-metric-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .home-metric-row span {
    color: var(--tm-text-muted);
    font-size: 13px;
  }

  .home-cart-preview,
  .home-order-mini-list {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
  }

  .home-cart-preview span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--tm-text-soft);
    font-size: 12px;
    font-weight: 700;
  }

  .home-order-mini-list a {
    display: grid;
    gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid var(--tm-border);
    color: inherit;
    text-decoration: none;
  }

  .home-order-mini-list a:last-child {
    border-bottom: 0;
  }

  .home-order-mini-list span {
    font-size: 13px;
    font-weight: 800;
  }

  .home-order-mini-list small {
    color: var(--tm-text-muted);
    font-size: 12px;
  }

  .app-shell.has-client-sidebar .banner {
    min-height: 218px;
    margin-bottom: 14px;
    border-radius: 8px;
  }

  .app-shell.has-client-sidebar .home-showcase-page .banner {
    min-height: 0;
    margin-bottom: 0;
  }

  .app-shell.has-client-sidebar .banner-uploaded {
    aspect-ratio: 32 / 5;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
  }

  .app-shell.has-client-sidebar .home-showcase-page .banner-uploaded {
    aspect-ratio: 17 / 3;
  }

  .app-shell.has-client-sidebar .home-showcase-page .banner-uploaded img {
    object-fit: cover;
  }

  .app-shell.has-client-sidebar .home-showcase-page .home-banner-carousel {
    margin: 0 0 32px;
    border-radius: 0;
  }

  .app-shell.has-client-sidebar .home-banner-carousel .banner {
    margin-bottom: 0;
    border-radius: 0;
  }

  .app-shell.has-client-sidebar .shortcut-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 22px;
  }

  .app-shell.has-client-sidebar .shortcut {
    min-height: 108px;
    border-radius: 8px;
    padding: 12px;
    justify-content: center;
    gap: 6px;
  }

  .app-shell.has-client-sidebar .shortcut-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .app-shell.has-client-sidebar .shortcut-label {
    font-size: 13px;
    font-weight: 900;
  }

  .app-shell.has-client-sidebar .shortcut-caption {
    display: block;
    color: var(--tm-text-muted);
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
  }

  .home-orders-section {
    display: none;
  }

  .app-shell.has-client-sidebar .section-head {
    margin: 28px 0 12px;
  }

  .app-shell.has-client-sidebar .section-head h3 {
    font-size: 22px;
    line-height: 1.18;
  }

  .app-shell.has-client-sidebar .section-head a {
    font-size: 13px;
    font-weight: 800;
  }

  .app-shell.has-client-sidebar .home-showcase-section-head {
    justify-content: center;
    gap: 10px;
    margin: 32px 0 24px;
    text-align: center;
  }

  .app-shell.has-client-sidebar .home-showcase-section-head h3 {
    color: #888;
    font-size: 30px;
    font-weight: 800;
  }

  .app-shell.has-client-sidebar .home-showcase-section-head a {
    color: var(--tm-green-700);
    font-size: 13px;
  }

  .app-shell.has-client-sidebar .home-showcase-section-head a::before {
    content: "+";
    display: inline-grid;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    place-items: center;
    border-radius: 999px;
    background: var(--tm-green-700);
    color: #fff;
    font-size: 12px;
    line-height: 1;
  }

  .app-shell.has-client-sidebar .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
  }

  .app-shell.has-client-sidebar .product-card {
    border-radius: 8px;
    border-color: #dfe9db;
    box-shadow: 0 16px 34px -34px rgba(10, 61, 31, .5);
  }

  .app-shell.has-client-sidebar .product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 42px -30px rgba(10, 61, 31, .46);
  }

  .app-shell.has-client-sidebar .product-img {
    aspect-ratio: 1 / 1;
    background: #f4f8f1;
    padding: 10px;
  }

  .app-shell.has-client-sidebar .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
  }

  .app-shell.has-client-sidebar .home-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: center;
    gap: 34px;
    margin-bottom: 20px;
  }

  .app-shell.has-client-sidebar .home-recent-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
  }

  .app-shell.has-client-sidebar .product-body {
    padding: 12px 14px 14px;
  }

  .app-shell.has-client-sidebar .product-name {
    min-height: 40px;
    font-size: 14px;
    font-weight: 800;
  }

  .app-shell.has-client-sidebar .product-card-topline {
    margin-bottom: 8px;
  }

  .app-shell.has-client-sidebar .product-meta {
    font-size: 12px;
  }

  .app-shell.has-client-sidebar .product-price {
    font-size: 22px;
  }

  .app-shell.has-client-sidebar .product-actions {
    padding: 0 14px 14px;
  }

  .app-shell.has-client-sidebar .product-action,
  .app-shell.has-client-sidebar .product-card .btn-add {
    border-radius: 8px;
  }

  .catalog-page-head {
    align-items: center;
  }

  .catalog-banner,
  .promo-banner {
    margin-bottom: 18px;
  }

  .app-shell.has-client-sidebar .catalog-filters {
    display: grid;
    grid-template-columns: minmax(260px, .78fr) minmax(0, 1.22fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid #dfe9db;
    border-radius: 10px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 18px 36px -34px rgba(10, 61, 31, .38);
  }

  .catalog-filter-search,
  .catalog-filter-group {
    min-width: 0;
    display: grid;
    gap: 6px;
  }

  .catalog-filter-search > label,
  .catalog-filter-group > label:first-child {
    color: var(--tm-text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .app-shell.has-client-sidebar .catalog-filters .search-bar {
    height: 50px;
    margin: 0;
    border-radius: 10px;
    background: #f9fbf7;
  }

  .app-shell.has-client-sidebar .catalog-filters .filters-sticky {
    position: static;
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(170px, 1fr) minmax(118px, auto) minmax(142px, .8fr) auto;
    align-items: end;
    gap: 10px;
    overflow: visible;
    padding: 0;
    border: 0;
    background: transparent;
    white-space: normal;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .catalog-filter-price > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .catalog-filter-submit {
    min-width: 92px;
    align-self: end;
  }

  .catalog-chip-row {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 8px;
  }

  .catalog-chip-row > span {
    display: block;
    color: var(--tm-text-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .app-shell.has-client-sidebar .chips {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
    margin: 0;
    padding: 6px 0 0;
  }

  .app-shell.has-client-sidebar .chip,
  .app-shell.has-client-sidebar .input.compact,
  .app-shell.has-client-sidebar .select.compact {
    border-radius: 8px;
  }

  .app-shell.has-client-sidebar .chip {
    min-height: 34px;
    background: rgba(255,255,255,.78);
  }

  .app-shell.has-client-sidebar .chip.is-active {
    background: var(--tm-green-700);
    color: #fff;
    border-color: var(--tm-green-700);
  }

  .empty-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
  }

  .promo-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
  }

  .promo-campaign-card {
    margin: 0;
    border-radius: 10px;
  }

  .promo-validity {
    margin: 8px 0 0;
    color: var(--tm-text-muted);
    font-size: 12px;
    font-weight: 800;
  }

  .product-detail-desktop-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 14px;
  }

  .product-detail-desktop-actions form {
    margin: 0;
  }

  .app-shell.has-client-sidebar .product-detail-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(390px, .78fr);
    align-items: stretch;
    border-radius: 10px;
    box-shadow: 0 20px 50px -42px rgba(10, 61, 31, .5);
  }

  .app-shell.has-client-sidebar .product-detail-media-column {
    min-width: 0;
    height: 100%;
    display: grid;
    align-content: start;
    background: #f4f8f1;
  }

  .app-shell.has-client-sidebar .product-detail-media-main {
    min-height: clamp(420px, 38vw, 520px);
    background: #f4f8f1;
  }

  .app-shell.has-client-sidebar .product-media-cover img {
    max-height: clamp(420px, 38vw, 520px);
    object-fit: contain;
    padding: 18px;
  }

  .app-shell.has-client-sidebar .product-media-gallery {
    align-self: start;
    border-top: 1px solid var(--tm-border);
    background: #fff;
  }

  .app-shell.has-client-sidebar .product-detail-body {
    grid-column: 2;
    min-width: 0;
    padding: 30px;
    border-left: 1px solid var(--tm-border);
    background: #fff;
  }

  .app-shell.has-client-sidebar .product-detail-title {
    margin-top: 8px;
    font-size: 30px;
  }

  .app-shell.has-client-sidebar .product-favorite-btn {
    display: grid;
  }

  .app-shell.has-client-sidebar .product-detail-price {
    font-size: 34px;
  }

  .app-shell.has-client-sidebar .product-detail-info-grid {
    margin-top: 16px;
  }

  .app-shell.has-client-sidebar .product-payment-panel {
    margin-top: 18px;
    border-color: rgba(29, 122, 55, .18);
    background:
      linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,251,246,.98)),
      #f8fbf6;
  }

  .app-shell.has-client-sidebar .product-buy-actions .btn {
    min-height: 52px;
    border-radius: 10px;
    font-size: 16px;
  }

  .app-shell.has-client-sidebar .product-contact-btn {
    border-radius: 10px;
  }

  .app-shell.has-client-sidebar .product-detail-content-card {
    margin-top: 20px;
  }

  .app-shell.has-client-sidebar .product-payment-panel,
  .app-shell.has-client-sidebar .product-detail-info-grid div,
  .app-shell.has-client-sidebar .product-payment-summary div {
    border-radius: 8px;
  }

  .app-shell.has-client-sidebar .product-related-section {
    margin-top: 28px;
  }

  .app-shell.has-client-sidebar .order-layout,
  .app-shell.has-client-sidebar .account-layout {
    gap: 24px;
  }

  .app-shell.has-client-sidebar .card,
  .app-shell.has-client-sidebar .list-item,
  .app-shell.has-client-sidebar .current-order-card,
  .app-shell.has-client-sidebar .current-order-empty {
    border-radius: 8px;
  }

  .app-shell.has-client-sidebar .desktop-sticky {
    top: 132px;
  }
}

@media (min-width: 1180px) {
  .client-topbar-main {
    grid-template-columns: auto minmax(320px, 1fr) minmax(0, 1fr);
  }

  .client-topbar-cart-copy,
  .client-topbar-user-copy {
    display: grid;
    gap: 2px;
  }
}

@media (min-width: 1024px) and (max-width: 1179px) {
  .client-topbar-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .client-topbar-main {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    gap: 12px;
  }

  .client-topbar-brand-mark {
    width: 168px;
  }

  .client-topbar-actions {
    gap: 6px;
  }

  .client-topbar-points {
    display: none;
  }

  .client-topbar-points small {
    display: none;
  }

  .client-topbar-cart,
  .client-topbar-user {
    padding-left: 9px;
    padding-right: 9px;
  }

  .home-page-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-page-metrics {
    width: 100%;
    min-width: 0;
  }

  .home-hero-layout {
    grid-template-columns: 1fr;
  }

  .home-side-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-side-panel .home-side-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .app-shell.has-client-sidebar .catalog-filters {
    grid-template-columns: 1fr;
  }

  .app-shell.has-client-sidebar .catalog-filters .filters-sticky {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-filter-submit {
    width: 100%;
  }

  .app-shell.has-client-sidebar .product-payment-controls {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1180px) and (max-width: 1279px) {
  .client-topbar-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .client-topbar-main {
    grid-template-columns: auto minmax(280px, 1fr) auto;
    gap: 12px;
  }

  .client-topbar-brand-mark {
    width: 178px;
  }

  .client-topbar-actions {
    gap: 6px;
  }

  .client-topbar-points small,
  .client-topbar-cart-copy small,
  .client-topbar-user-copy small {
    display: none;
  }

  .client-topbar-cart,
  .client-topbar-user {
    gap: 7px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .app-shell.has-client-sidebar .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .app-shell.has-client-sidebar .catalog-filters {
    grid-template-columns: minmax(300px, 330px) minmax(0, 1fr);
  }

  .app-shell.has-client-sidebar .catalog-filters .filters-sticky {
    grid-template-columns: minmax(140px, 1fr) minmax(160px, 1fr) minmax(112px, auto) minmax(132px, .8fr) auto;
  }
}

@media (min-width: 1440px) {
  .app-shell.has-client-sidebar .page {
    padding-left: 40px;
    padding-right: 40px;
  }

  .app-shell.has-client-sidebar .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(204px, 1fr));
  }
}

@media (min-width: 1536px) {
  .client-topbar-inner,
  .app-shell.has-client-sidebar .app-header-row,
  .app-shell.has-client-sidebar .page {
    max-width: 1520px;
  }

  .app-shell.has-client-sidebar .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .home-hero-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media (min-width: 1024px) {
  .app-shell.has-client-sidebar .product-grid.home-showcase-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 300px));
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .product-detail-media-main {
    min-height: clamp(220px, 44vw, 320px);
  }

  .product-media-cover img {
    max-height: clamp(220px, 44vw, 320px);
    padding: 10px;
  }

  .product-payment-panel {
    display: flex;
    flex-direction: column;
  }

  .product-payment-head { order: 1; }
  .product-payment-controls { order: 2; }
  .product-buy-actions { order: 3; }
  .product-payment-summary { order: 4; }
  .product-payment-warning { order: 5; }
}

@media (max-width: 560px) {
  .product-detail-media-main {
    min-height: clamp(190px, 52vw, 240px);
  }

  .product-media-cover img {
    max-height: clamp(190px, 52vw, 240px);
    padding: 8px;
  }

  .product-media-gallery {
    grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
    gap: 6px;
    padding: 10px;
  }
}

.autosave-status {
  margin-top: 10px;
  min-height: 18px;
  font-size: 12px;
  font-weight: 700;
  color: var(--tm-muted);
}
.autosave-status[data-state="saving"] { color: var(--tm-green-700); }
.autosave-status[data-state="saved"] { color: var(--tm-green-700); }
.autosave-status[data-state="error"],
.autosave-status[data-state="locked"] { color: #8a2424; }


/* Account tabs */
.account-side-nav {
  display: grid;
  gap: 8px;
}
.account-side-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--tm-text-soft);
  font-weight: 800;
  text-decoration: none;
}
.account-side-nav a:hover {
  background: #f1f7ee;
  color: var(--tm-green-700);
}
.account-side-nav a.is-active {
  background: #eaf4e6;
  color: var(--tm-green-800);
  box-shadow: inset 0 0 0 1px rgba(42, 156, 74, .16);
}
.account-tabs {
  position: sticky;
  top: 8px;
  z-index: 20;
  display:flex;
  flex-wrap: nowrap;
  gap:6px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  border:1px solid var(--tm-border);
  border-radius:14px;
  margin-bottom:16px;
  padding:6px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 34px -28px rgba(10,61,31,.5);
  scrollbar-width:none;
}
.account-tabs::-webkit-scrollbar { display:none; }
.account-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: max-content;
  background:none;
  border:0;
  border-radius:10px;
  padding:0 14px;
  font:inherit;
  font-weight:800;
  color:var(--tm-text-muted);
  cursor:pointer;
  white-space:nowrap;
  scroll-snap-align: start;
  transition:background .15s, color .15s, box-shadow .15s;
}
.account-tab:hover { color:var(--tm-text-soft); background:#f6faf3; }
.account-tab.is-active {
  color:var(--tm-green-800);
  background:#eaf4e6;
  box-shadow: inset 0 0 0 1px rgba(42, 156, 74, .16);
}
[data-tab-panel] { scroll-margin-top: 96px; }
.account-footer { margin-top:28px; padding-top:18px; border-top:1px solid var(--tm-border); }
.account-logout { color:#8a2424 !important; }

@media (max-width: 1023px) {
  .account-side-nav { display: none; }
}

@media (min-width: 680px) {
  .account-tabs { flex-wrap: wrap; overflow: visible; scroll-snap-type: none; }
  .account-tab { flex: 0 0 auto; }
}

/* Desktop B2B search result layout */
.b2b-breadcrumb,
.b2b-results-toolbar,
.b2b-results-layout {
  display: none;
}

@media (min-width: 1024px) {
  .client-topbar {
    background: #fff;
    border-bottom: 0;
    box-shadow: 0 12px 28px -26px rgba(0,0,0,.5);
  }

  .client-topbar-inner {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .client-topbar-commerce {
    background: #f39200;
    color: #050505;
  }

  .client-topbar-commerce .client-topbar-main {
    width: min(1532px, calc(100% - 56px));
    min-height: 88px;
    margin: 0 auto;
    padding: 0 0 0 22px;
    grid-template-columns: 174px 672px minmax(0, 1fr);
    justify-content: stretch;
    gap: 35px;
  }

  .client-topbar-brand-mark {
    width: 174px;
  }

  .client-topbar-search {
    height: 50px;
    width: 672px;
    max-width: 100%;
    gap: 8px;
    padding: 0 7px 0 12px;
    border-color: rgba(0,0,0,.22);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,.14);
  }

  .client-topbar-commerce .client-topbar-user {
    padding-left: 4px;
    padding-right: 4px;
  }

  .client-topbar-commerce .client-topbar-user small {
    color: #050505;
    font-size: 13px;
    font-weight: 700;
  }

  .client-topbar-search button {
    width: 38px;
    height: 38px;
    border-radius: 5px;
    background: transparent;
    color: #5f6368;
  }

  .client-topbar-actions {
    gap: 13px;
  }

  .client-topbar-action,
  .client-topbar-cart,
  .client-topbar-user,
  .client-topbar-points {
    border: 0;
    background: transparent;
    color: #050505;
    min-height: 34px;
    border-radius: 5px;
    font: inherit;
  }

  .client-topbar-action {
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    appearance: none;
    cursor: pointer;
  }

  button.client-topbar-action:disabled {
    opacity: .7;
    cursor: wait;
  }

  .client-topbar-action-icon {
    width: 25px;
    height: 25px;
  }

  .client-topbar-action-icon svg {
    width: 24px;
    height: 24px;
  }

  .client-topbar-action-copy {
    display: none;
    color: #050505;
    font-size: 12px;
    line-height: 1;
    font-weight: 800;
  }

  .client-topbar-cart-copy,
  .client-topbar-user-copy {
    color: #050505;
  }

  .client-topbar-commerce .client-topbar-points span,
  .client-topbar-commerce .client-topbar-points svg,
  .client-topbar-commerce .client-topbar-points small,
  .client-topbar-commerce .client-topbar-cart small,
  .client-topbar-commerce .client-topbar-user small,
  .client-topbar-commerce .client-topbar-cart strong,
  .client-topbar-commerce .client-topbar-user strong {
    color: #050505;
  }

  .client-topbar-action:hover,
  .client-topbar-cart:hover,
  .client-topbar-user:hover,
  .client-topbar-points:hover,
  .client-topbar-cart.is-active,
  .client-topbar-user.is-active {
    background: rgba(255,255,255,.22);
    border-color: transparent;
    color: #050505;
  }

  .client-topbar-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-color: #f39200;
    background: #050505;
    color: #fff;
    font-size: 9px;
  }

  .client-topbar-badge.b2c-notification-badge {
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-color: #fff;
    background: #d83a3a;
    color: #fff;
    font-size: 10px;
  }

  .client-topbar-notification {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #050505;
    box-shadow: none;
  }

  .client-topbar-notification:hover,
  .client-topbar-notification:focus-visible {
    background: transparent;
    color: #050505;
    transform: translateY(-1px);
  }

  .client-topbar-notification .client-topbar-action-icon,
  .client-topbar-notification .b2c-notification-bell-frame {
    width: 38px;
    height: 38px;
    background: transparent;
    box-shadow: none;
  }

  .client-topbar-notification .b2c-notification-bell-icon {
    width: 24px;
    height: 24px;
    color: #0f172a;
  }

  .client-topbar-notification .b2c-notification-badge {
    top: -7px;
    right: -8px;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-width: 2px;
    font-size: 10px;
  }

  .client-topbar-points {
    gap: 4px;
    padding: 0 7px;
  }

  .client-topbar-points small {
    font-size: 10px;
  }

  .client-topbar-cart,
  .client-topbar-user {
    gap: 6px;
    padding: 0 7px;
  }

  .client-topbar-cart {
    background: rgba(255,255,255,.18);
    padding-left: 10px;
    padding-right: 10px;
  }

  .client-topbar-avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }

  .client-topbar-nav {
    margin: 0;
    min-height: 32px;
    justify-content: center;
    padding: 0 28px;
    background: #f2f2f2;
    box-shadow: 0 10px 20px -22px rgba(0,0,0,.5);
  }

  .client-topbar-nav a {
    min-height: 26px;
    padding: 0 20px;
    border-radius: 5px;
    color: #8a8a8a;
    font-size: 13px;
  }

  .client-topbar-nav a.is-active {
    background: #5f865f;
    color: #fff;
  }

  .catalog-search-results-page {
    background: #fff;
  }

  .app-shell.has-client-sidebar .catalog-search-results-page {
    max-width: 1520px;
    padding-top: 28px;
  }

  .b2b-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 40px;
    color: #4a86b8;
    font-size: 14px;
    text-transform: uppercase;
  }

  .b2b-breadcrumb a {
    color: #4a86b8;
    text-decoration: none;
  }

  .b2b-results-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 324px) minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
  }

  .b2b-sort-box {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 18px;
    border: 1px solid #e4e8ec;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(22,36,48,.12);
  }

  .b2b-sort-box strong {
    color: #4c88b8;
    font-size: 16px;
    white-space: nowrap;
  }

  .b2b-sort-box select {
    border: 0;
    background: transparent;
    color: #4c88b8;
    font: inherit;
    outline: 0;
  }

  .b2b-toolbar-btn {
    min-height: 50px;
    border-radius: 6px;
    gap: 10px;
    white-space: nowrap;
  }

  .b2b-new-cart {
    background: #ffa32b;
    border-color: #ffa32b;
    color: #18222a;
    box-shadow: 0 6px 14px rgba(0,0,0,.18);
  }

  .b2b-toolbar-check {
    width: 22px;
    height: 22px;
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: linear-gradient(135deg, transparent 44%, currentColor 45% 55%, transparent 56%);
  }

  .b2b-view-toggle {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .b2b-view-toggle a {
    min-width: 114px;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 6px;
    background: #f3f5f5;
    color: #40484f;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(22,36,48,.10);
  }

  .b2b-view-toggle a.is-active {
    background: #b7d0df;
  }

  .b2b-results-layout {
    display: grid;
    grid-template-columns: 324px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
  }

  .b2b-products-panel {
    min-width: 0;
  }

  .b2b-filter-sidebar {
    border-radius: 6px;
    background: #f5f5f5;
    color: #1f2d3a;
    overflow: hidden;
  }

  .b2b-filter-count {
    padding: 22px 24px;
    color: #8b939a;
    border-bottom: 1px solid #e2e2e2;
  }

  .b2b-filter-section {
    padding: 18px 12px 18px;
    border-bottom: 1px solid #e2e2e2;
  }

  .b2b-filter-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px;
  }

  .b2b-filter-section h2,
  .b2b-filter-section h3 {
    margin: 0;
    color: #121921;
    font-size: 24px;
    line-height: 1.1;
  }

  .b2b-filter-section h3 {
    color: #6d7378;
    font-size: 19px;
    font-weight: 500;
  }

  .b2b-filter-option {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    color: #1d3448;
    text-decoration: none;
    font-size: 15px;
  }

  .b2b-filter-option span {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border: 1px solid #9fa7ae;
    border-radius: 6px;
    background: #f7f7f7;
  }

  .b2b-filter-option.is-active span {
    background: #5f865f;
    border-color: #5f865f;
    box-shadow: inset 0 0 0 5px #f7f7f7;
  }

  .b2b-filter-option small {
    margin-left: auto;
    color: #8b939a;
    font-size: 12px;
  }

  .b2b-price-filter {
    display: grid;
    gap: 8px;
  }

  .b2b-price-filter .btn {
    width: 100%;
  }

  .app-shell.has-client-sidebar .b2b-product-results {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 26px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list {
    grid-template-columns: 1fr;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) minmax(280px, 300px);
    align-items: stretch;
    overflow: hidden;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-card-link {
    grid-column: 1 / 3;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    min-width: 0;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-img {
    min-height: 190px;
    height: 100%;
    aspect-ratio: auto;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-body {
    padding: 18px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-name {
    min-height: 0;
    font-size: 18px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-actions {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    display: grid;
    grid-template-columns: minmax(104px, 112px) minmax(136px, 1fr);
    gap: 10px;
    padding: 18px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-card-qty-control {
    height: 48px;
    width: 100%;
    min-width: 104px;
    grid-template-columns: 32px minmax(32px, 1fr) 32px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-card-qty-control button {
    width: 30px;
    height: 30px;
    font-size: 22px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-card-qty-control input {
    font-size: 17px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .product-action {
    width: 48px;
    height: 48px;
  }

  .app-shell.has-client-sidebar .b2b-product-results--list .product-card:not(.b2b-product-card) .btn-add {
    height: 48px;
    min-height: 48px;
  }

  .b2b-product-card {
    position: relative;
    min-height: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: #fff;
  }

  .app-shell.has-client-sidebar .b2b-product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .b2b-product-select {
    position: absolute;
    top: 16px;
    left: 14px;
    z-index: 3;
    cursor: pointer;
  }

  .b2b-product-select input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .b2b-product-select span {
    width: 26px;
    height: 26px;
    display: block;
    border: 1px solid #9fa7ae;
    border-radius: 6px;
    background: rgba(255,255,255,.86);
  }

  .b2b-product-select input:checked + span {
    background: #5f865f;
    border-color: #5f865f;
    box-shadow: inset 0 0 0 5px #fff;
  }

  .b2b-product-image-link {
    display: block;
    color: inherit;
    text-decoration: none;
  }

  .app-shell.has-client-sidebar .b2b-product-card .product-img {
    aspect-ratio: 1 / 1;
    border: 1px solid #b8c0c7;
    border-radius: 6px;
    background: #f4f8f1;
    padding: 30px;
  }

  .app-shell.has-client-sidebar .b2b-product-card .product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    mix-blend-mode: multiply;
  }

  .b2b-product-body {
    padding: 12px 0 0;
    min-width: 0;
  }

  .b2b-product-title {
    display: block;
    min-height: 68px;
    color: #69737b;
    font-size: 20px;
    line-height: 1.34;
    font-weight: 500;
    text-decoration: none;
  }

  .b2b-product-brand {
    margin: 0 0 14px;
    color: #69737b;
    font-size: 18px;
    font-weight: 500;
  }

  .b2b-product-code {
    margin: 0 0 12px;
    color: #9aa0a6;
    font-size: 14px;
  }

  .b2b-product-card-flags {
    min-height: 26px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
  }

  .b2b-product-card .product-badge {
    min-height: 22px;
    border-radius: 999px;
    padding: 4px 10px;
    box-shadow: none;
    font-size: 12px;
  }

  .b2b-product-card .badge-condition {
    background: #f6a329;
  }

  .b2b-product-card .product-price {
    color: #5d656c;
    font-size: 22px;
  }

  .b2b-product-card .product-price-unavailable,
  .catalog-search-results-page .b2b-product-card .product-price-unavailable {
    color: var(--tm-text-muted);
  }

  .b2b-product-unit {
    color: #5d656c;
    font-size: 12px;
    text-transform: uppercase;
  }

  .b2b-product-card .product-installments {
    color: #008bd2;
    font-size: 12px;
    font-weight: 500;
  }

  .b2b-product-buy-row {
    display: grid;
    grid-template-columns: minmax(118px, 138px) minmax(120px, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 10px;
  }

  .b2b-product-buy-row.has-stock-alert-action {
    grid-template-columns: minmax(0, 1fr);
  }

  .b2b-qty-control {
    height: 34px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    align-items: center;
    border: 1.4px solid #7bb4d2;
    border-radius: 999px;
    background: #fff;
    overflow: hidden;
  }

  .b2b-qty-control button {
    width: 30px;
    height: 30px;
    margin: 1px;
    border: 0;
    border-radius: 999px;
    background: #6aa6c8;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .b2b-qty-control input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: transparent;
    border-radius: 0;
    text-align: center;
    color: #5a89a6;
    font-size: 18px;
    font-weight: 800;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
  }

  .b2b-card-add {
    min-height: 36px;
    border-radius: 999px;
    background: #ffa329;
    border-color: #ffa329;
    color: #111820;
    font-size: 20px;
    font-weight: 700;
  }

  .b2b-product-results--list .b2b-product-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: center;
    border-bottom: 1px solid #e4e8ec;
    padding-bottom: 18px;
  }

  .b2b-product-results--list .b2b-product-select {
    top: 14px;
  }

  .b2b-product-results--list .b2b-product-title {
    min-height: 0;
  }

  .b2b-product-results--list .b2b-product-buy-row {
    margin-top: 0;
  }
}

@media (min-width: 1180px) {
  .client-topbar-action-copy {
    display: block;
  }

  .client-topbar-commerce .client-topbar-user {
    min-width: 150px;
  }
}

@media (min-width: 1024px) and (max-width: 1320px) {
  .client-topbar-commerce .client-topbar-main {
    grid-template-columns: auto minmax(260px, 1fr) auto;
    gap: 10px;
  }

  .client-topbar-actions {
    gap: 8px;
  }

  .b2b-results-toolbar {
    grid-template-columns: minmax(220px, 324px) minmax(0, 1fr);
  }

  .b2b-view-toggle {
    justify-self: end;
  }
}

@media (max-width: 1023px) {
  .catalog-search-results-page .b2b-breadcrumb,
  .catalog-search-results-page .b2b-results-toolbar,
  .catalog-search-results-page .b2b-filter-sidebar {
    display: none;
  }

  .catalog-search-results-page .b2b-results-layout {
    display: block;
  }

  .catalog-search-results-page .b2b-product-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .catalog-search-results-page .b2b-product-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--tm-border);
  }

  .catalog-search-results-page .b2b-product-select {
    display: none;
  }

  .catalog-search-results-page .b2b-product-body {
    padding: 10px 12px 0;
  }

  .catalog-search-results-page .b2b-product-title {
    min-height: 42px;
    color: var(--tm-text);
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
  }

  .catalog-search-results-page .b2b-product-brand {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .catalog-search-results-page .b2b-product-code {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .catalog-search-results-page .b2b-product-card-flags {
    margin-bottom: 8px;
  }

  .catalog-search-results-page .b2b-product-card .product-price {
    color: var(--tm-green-700);
    font-size: 19px;
  }

  .catalog-search-results-page .b2b-product-card .product-price-unavailable {
    color: var(--tm-text-muted);
  }

  .catalog-search-results-page .b2b-product-buy-row {
    grid-template-columns: 1fr;
    padding: 0 12px 12px;
  }

  .catalog-search-results-page .b2b-qty-control {
    display: none;
  }

  .catalog-search-results-page .b2b-card-add {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    font-size: 13px;
  }
}

@media (min-width: 1024px) {
  .client-topbar-nav {
    overflow: visible;
  }

  .client-topbar-nav-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
  }

  .client-topbar-nav-dropdown > .client-topbar-nav-link {
    cursor: pointer;
  }

  .client-topbar-nav-dropdown.is-open > .client-topbar-nav-link:not(.is-active),
  .client-topbar-nav-dropdown:hover > .client-topbar-nav-link:not(.is-active),
  .client-topbar-nav-dropdown:focus-within > .client-topbar-nav-link:not(.is-active) {
    background: rgba(255,255,255,.75);
    color: #5f865f;
  }

  .client-topbar-submenu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 120;
    min-width: 232px;
    padding: 8px 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(15,23,42,.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
    visibility: hidden;
  }

  .client-topbar-submenu::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -9px;
    height: 9px;
  }

  .client-topbar-nav-dropdown.is-open .client-topbar-submenu,
  .client-topbar-nav-dropdown:hover .client-topbar-submenu,
  .client-topbar-nav-dropdown:focus-within .client-topbar-submenu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    visibility: visible;
  }

  .client-topbar-submenu a {
    min-height: 0;
    display: block;
    padding: 10px 22px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    color: #8a8a8a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
  }

  .client-topbar-submenu a:hover,
  .client-topbar-submenu a:focus {
    background: #f5f5f5;
    color: #1f2933;
    outline: 0;
    text-decoration: none;
  }

  .client-topbar-submenu a.is-active {
    background: #eef6ed;
    color: #4f7d4f;
    font-weight: 800;
  }
}
