/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio.
   Put this @layer first; product CSS outside the layer always wins. */
@layer od-layout {
  :where(.od-stack, .od-row, .od-row-top, .od-cluster, .od-grid, .od-field, .od-stat, .od-cell, .od-tile)> :where(*) {
    min-width: 0;
  }

  .od-stack {
    display: flex;
    flex-direction: column;
    gap: var(--od-gap, 8px);
  }

  .od-row {
    display: flex;
    align-items: center;
    gap: var(--od-gap, 8px);
  }

  .od-row-top {
    display: flex;
    align-items: flex-start;
    gap: var(--od-gap, 8px);
  }

  .od-cluster {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--od-gap, 8px);
  }

  .od-grid {
    display: grid;
    gap: var(--od-gap, 12px);
    grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr));
  }

  .od-fill {
    flex: 1 1 0;
    min-width: 0;
  }

  .od-fixed {
    flex: none;
  }

  .od-stat,
  .od-field,
  .od-cell {
    display: grid;
    gap: var(--od-gap, 2px);
  }

  :where(.od-stat, .od-field, .od-cell)> :where(*) {
    display: block;
  }

  .od-tile {
    display: grid;
    grid-template-rows: auto 1fr;
  }

  :where(.od-tile)> :where(*) {
    display: block;
  }

  .od-media {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: var(--od-ratio, auto);
  }

  .od-media-cover {
    object-fit: cover;
  }

  .od-truncate {
    display: block;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .od-clamp-2,
  .od-clamp-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
  }

  .od-clamp-2 {
    -webkit-line-clamp: 2;
  }

  .od-clamp-3 {
    -webkit-line-clamp: 3;
  }

  .od-lines-2 {
    min-height: calc(2 * 1.4em);
  }

  .od-nowrap {
    white-space: nowrap;
  }

  .od-keep {
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

  .od-screen {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
  }

  .od-scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    min-height: 0;
  }

  .od-rail {
    display: flex;
    gap: var(--od-gap, 8px);
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-inline: var(--od-rail-pad, 16px);
    scroll-padding-inline: var(--od-rail-pad, 16px);
  }

  .od-rail::-webkit-scrollbar {
    display: none;
  }

  :where(.od-rail)> :where(*) {
    flex: none;
    scroll-snap-align: start;
  }

  :where(.od-rail)> :where(:last-child) {
    margin-inline-end: var(--od-rail-pad, 16px);
  }

  .od-spacer {
    flex: none;
    visibility: hidden;
    pointer-events: none;
  }

  .od-touch {
    min-width: 44px;
    min-height: 44px;
  }
}

:root {
  color-scheme: light;
  --ink: #18312f;
  --ink-soft: #536663;
  --muted: #73827f;
  --line: #e2eae7;
  --canvas: #f5f8f7;
  --paper: #fff;
  --teal: #087f70;
  --teal-dark: #08675d;
  --teal-soft: #e5f4f0;
  --mint: #c8e8dd;
  --coral: #b94738;
  --coral-soft: #fff0ed;
  --gold: #98650b;
  --gold-soft: #fff4dc;
  --blue: #355c9b;
  --blue-soft: #edf3ff;
  --shadow: 0 14px 38px rgba(25, 54, 49, .08);
  --radius: 20px;
  --radius-sm: 13px;
  --space: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  line-height: 1.55;
  background: var(--canvas);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #59bcae;
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 231, 227, .9);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
}

.brand-mark svg {
  width: 23px;
  height: 23px;
}

.brand-copy {
  display: grid;
  line-height: 1.2;
}

.brand-copy strong {
  font-size: 15px;
  letter-spacing: -.02em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-pill,
.profile-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
}

.profile-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #075e54;
  background: #ccebe1;
  font-size: 11px;
  font-weight: 800;
}

.app-layout {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 56px) 64px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.side-caption {
  padding: 0 12px;
  color: #82918e;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  color: #566762;
  font-size: 14px;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.nav-link svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.nav-link:hover {
  background: #eaf2ef;
  color: var(--ink);
}

.nav-link[aria-current="page"] {
  background: var(--teal-soft);
  color: #08675d;
  font-weight: 750;
}

.side-help {
  padding: 16px;
  border-radius: 16px;
  background: #e9f3ef;
  color: #385a52;
  font-size: 12px;
}

.side-help strong {
  display: block;
  margin-bottom: 4px;
  color: #24463e;
}

.main {
  min-width: 0;
  max-width: 1050px;
  width: 100%;
  margin: 0 auto;
}

.view {
  animation: enter .24s var(--ease) backwards;
}

@keyframes enter {
  from {
    opacity: .55;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #6eb9a9;
  border-radius: 2px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.13;
  letter-spacing: -.045em;
}

h2 {
  margin-bottom: 6px;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.2;
}

h3 {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.3;
}

.lede {
  max-width: 62ch;
  margin: 0;
  color: var(--ink-soft);
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin: 4px 0 25px;
}

.page-head-copy {
  display: grid;
  gap: 8px;
}

.page-head-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 14px;
  font-weight: 750;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}

.btn:active {
  transform: scale(.98);
}

.btn-primary {
  color: #fff;
  background: var(--teal);
  box-shadow: 0 5px 13px rgba(8, 127, 112, .15);
}

.btn-primary:hover {
  background: var(--teal-dark);
}

.btn-secondary {
  color: #28554d;
  background: #fff;
  border-color: #d8e7e1;
}

.btn-secondary:hover {
  background: #f0f7f4;
  border-color: #b8d4ca;
}

.btn-quiet {
  color: var(--ink-soft);
  background: transparent;
  border-color: var(--line);
}

.btn-danger {
  color: #a23f33;
  background: #fff;
  border-color: #f0c9c3;
}

.btn-small {
  min-height: 38px;
  padding: 7px 12px;
  font-size: 13px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.icon-btn svg,
.btn svg {
  width: 18px;
  height: 18px;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(28, 57, 50, .025);
}

.muted {
  color: var(--muted);
}

.tiny {
  font-size: 12px;
  color: var(--muted);
}

.section-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 14px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 750;
  background: none;
  border: 0;
  padding: 8px 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
}

.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.badge-green {
  color: #08705e;
  background: #e4f5ef;
}

.badge-gold {
  color: #855a0b;
  background: #fff2d3;
}

.badge-red {
  color: #a33d34;
  background: #ffebe7;
}

.badge-blue {
  color: #355c9b;
  background: #edf3ff;
}

.badge-gray {
  color: #63716e;
  background: #edf1ef;
}

.field {
  display: grid;
  gap: 7px;
}

.field label,
.field-label {
  color: #334d48;
  font-size: 13px;
  font-weight: 750;
}

.field input,
.field select,
.field textarea,
.search-input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid #dbe5e1;
  border-radius: 12px;
  background: #fff;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa8a5;
}

.field-hint {
  color: var(--muted);
  font-size: 12px;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #d6ebe2;
  border-radius: 13px;
  background: #f2faf6;
  color: #3c5e54;
  font-size: 13px;
}

.notice svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: #15856f;
  margin-top: 1px;
}

.notice.warning {
  border-color: #f0dfb4;
  background: #fffaf0;
  color: #6e581f;
}

.notice.error {
  border-color: #f2cbc5;
  background: #fff5f3;
  color: #87423a;
}

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 28px;
  max-width: min(90vw, 480px);
  padding: 12px 17px;
  color: white;
  background: #173b35;
  border-radius: 13px;
  box-shadow: var(--shadow);
  transform: translate(-50%, 18px);
  opacity: 0;
  pointer-events: none;
  transition: .22s var(--ease);
  font-size: 14px;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid #dce7e2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(33, 75, 64, .045);
}

.search-bar>svg {
  width: 21px;
  height: 21px;
  flex: none;
  margin-left: 10px;
  color: #6d827c;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
}

.search-bar input:focus-visible {
  outline: 2px solid #59bcae;
  outline-offset: -2px;
  border-radius: 6px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 15px 0 4px;
  scrollbar-width: none;
}

.filter-chip {
  min-height: 38px;
  padding: 7px 13px;
  white-space: nowrap;
  border: 1px solid #dce6e2;
  border-radius: 8px;
  background: #fff;
  color: #52645f;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-chip[aria-pressed="true"] {
  border-color: #83c4b2;
  background: #e9f5f0;
  color: #08675d;
  font-weight: 750;
}

.hero-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, .75fr);
  overflow: hidden;
  min-height: 190px;
  margin: 21px 0 26px;
  border-radius: 24px;
  background: #dff0e9;
}

.hero-copy {
  padding: 26px clamp(20px, 3vw, 34px);
  align-self: center;
}

.hero-copy h2 {
  max-width: 16ch;
  margin: 12px 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.hero-copy p {
  margin: 0 0 16px;
  max-width: 48ch;
  color: #49655c;
  font-size: 14px;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 180px;
  background: linear-gradient(135deg, #d9eee5, #c8e5d8);
}

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .42);
}

.hero-art::before {
  width: 210px;
  height: 210px;
  right: 4%;
  top: -90px;
}

.hero-art::after {
  width: 130px;
  height: 130px;
  left: 4%;
  bottom: -65px;
}

.hero-art svg {
  position: relative;
  z-index: 1;
  width: min(76%, 300px);
  max-height: 178px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.product-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 18px;
  background: var(--art-bg, #eaf3ef);
}

.product-art>svg {
  width: min(100%, 170px);
  height: 132px;
}

.product-art .badge {
  position: absolute;
  top: 12px;
  left: 12px;
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.product-info h3 {
  margin: 0;
  font-size: 15px;
}

.product-price {
  color: #155d50;
  font-size: 18px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  color: #778580;
  font-size: 11px;
}

.product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 5px;
}

.seller-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #657570;
  font-size: 11px;
}

.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 50%;
  color: #195d51;
  background: #d9eee7;
  font-size: 10px;
  font-weight: 850;
}

.avatar.blue {
  color: #36568b;
  background: #e2eaff;
}

.avatar.coral {
  color: #935044;
  background: #f7e2dc;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 42px 18px;
  text-align: center;
  border: 1px dashed #cfdbd6;
  border-radius: 18px;
  background: #fbfdfc;
}

.empty-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #44786b;
  background: #e7f3ee;
}

.empty-icon svg {
  width: 25px;
  height: 25px;
}

.empty-state h3 {
  margin: 5px 0 0;
}

.empty-state p {
  max-width: 40ch;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.login-wrap {
  min-height: calc(100vh - 67px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 480px);
  align-items: center;
  gap: clamp(32px, 8vw, 112px);
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 44px 0 70px;
}

.login-story {
  max-width: 530px;
}

.login-story h1 {
  margin: 17px 0 18px;
  font-size: clamp(38px, 5.4vw, 64px);
}

.login-story .lede {
  font-size: 17px;
}

.login-illustration {
  margin-top: 34px;
  padding: 23px;
  border-radius: 24px;
  background: #dfefe9;
}

.login-illustration svg {
  width: 100%;
  max-height: 190px;
}

.login-card {
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}

.login-card h2 {
  font-size: 24px;
}

.login-card .field {
  margin: 18px 0;
}

.login-card .btn {
  width: 100%;
}

.demo-accounts {
  margin-top: 19px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.demo-accounts>p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.account-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 10px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 12px;
}

.account-btn:hover,
.account-btn.selected {
  border-color: #8dc9b7;
  background: #f3faf7;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 17px;
  color: #70807b;
  font-size: 13px;
}

.crumb button {
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--teal-dark);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 25px;
  align-items: start;
}

.detail-image {
  display: grid;
  place-items: center;
  min-height: 380px;
  padding: 36px;
  border-radius: 22px;
  background: var(--art-bg, #e7f0ec);
}

.detail-image>svg {
  width: min(78%, 380px);
  height: 270px;
}

.detail-image img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  border-radius: 14px;
}

.detail-copy {
  padding: 23px;
}

.detail-copy h1 {
  margin: 13px 0 7px;
  font-size: clamp(27px, 3vw, 36px);
}

.detail-copy .product-price {
  margin: 14px 0 18px;
  font-size: 27px;
}

.seller-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid #d4ebe1;
  border-radius: 14px;
  background: #f7fbf9;
  transition: all .18s var(--ease);
}

.seller-card-clickable {
  cursor: pointer;
}

.seller-card-clickable:hover {
  background: #edf7f2;
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(8, 127, 112, 0.08);
  transform: translateY(-1px);
}

.seller-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.seller-card .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 10px;
  flex-shrink: 0;
}

.seller-card-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.seller-name-line {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.seller-name-line strong {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
}

.seller-vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11.5px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1.5px 7px;
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.seller-vote-badge .star-icon {
  color: #f59e0b;
  font-size: 11.5px;
}

.seller-card small {
  color: var(--ink-soft);
  font-size: 11.5px;
  margin: 0;
  white-space: nowrap;
}

.seller-view-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(8, 127, 112, 0.08);
  transition: all .15s ease;
}

.seller-card-clickable:hover .seller-view-link {
  background: var(--teal);
  color: #ffffff;
}

/* COMPACT 1-LINE SELLER STRIP */
.seller-compact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin: 10px 0 16px;
  border: 1px solid #d4ebe1;
  border-radius: 10px;
  background: #f7fbf9;
  cursor: pointer;
  transition: all .18s var(--ease);
  min-height: 38px;
}

.seller-compact-line:hover {
  background: #edf7f2;
  border-color: var(--teal);
  box-shadow: 0 2px 10px rgba(8, 127, 112, 0.08);
  transform: translateY(-1px);
}

.seller-compact-line .avatar {
  width: 22px;
  height: 22px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 6px;
  flex-shrink: 0;
}

.seller-compact-name {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
}

.seller-compact-tag {
  font-size: 11px;
  color: var(--teal-dark);
  font-weight: 700;
  white-space: nowrap;
}

.seller-compact-sep {
  color: #9cb1a8;
  font-size: 11px;
  user-select: none;
}

.seller-compact-line .seller-vote-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fde68a;
  padding: 1px 6px;
  border-radius: 5px;
  font-weight: 700;
  white-space: nowrap;
}

.seller-compact-line .seller-vote-badge .star-icon {
  color: #f59e0b;
  font-size: 11px;
}

.seller-compact-building {
  color: var(--ink-soft);
  font-size: 11.5px;
  margin: 0;
  white-space: nowrap;
}

.seller-compact-line .seller-view-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal-dark);
  white-space: nowrap;
  margin-left: auto;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: rgba(8, 127, 112, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all .15s ease;
}

.seller-compact-line:hover .seller-view-link {
  background: var(--teal);
  color: #ffffff;
}

.detail-description {
  color: #536560;
  font-size: 14px;
  line-height: 1.7;
}

.detail-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}

.detail-chat-main-btn {
  flex: 1;
  min-width: 0;
  justify-content: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 750;
}

.detail-icon-btn {
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  transition: all 0.15s ease;
  cursor: pointer;
  color: #4b635b;
  background: #ffffff;
  border: 1px solid var(--line, #e2ece7);
}

.detail-icon-btn:hover {
  background: #f2f7f4;
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.detail-icon-btn.is-favorited,
.detail-icon-btn.active {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.detail-icon-btn.is-favorited svg,
.detail-icon-btn.active svg {
  fill: #dc2626;
}

/* SYSTEM MESSAGES IN CHAT */
.bubble.system-bubble {
  align-self: center;
  max-width: 88%;
  background: #f0f8f4;
  border: 1px solid #cbe6da;
  color: #1f4e41;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 2px 8px rgba(8, 127, 112, 0.05);
}

.system-bubble .time {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #638579;
}

/* TOPBAR NOTIFICATION BUTTON & DROPDOWN */
.topbar-notif-wrapper {
  position: relative;
}

.topbar-notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}

.topbar-notif-btn:hover,
.topbar-notif-btn.active {
  background: #edf7f2;
  border-color: var(--teal);
  color: var(--teal-dark);
}

.topbar-notif-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e53e3e;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  border: 2px solid #ffffff;
  animation: pulse-badge 2s infinite ease;
}

.notif-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 350px;
  max-width: calc(100vw - 24px);
  background: #ffffff;
  border: 1px solid #d4ebe1;
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(18, 54, 43, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow: visible;
  animation: notifDropFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes notifDropFade {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.notif-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #f7faf8;
  border-top: 1px solid #d4ebe1;
  border-left: 1px solid #d4ebe1;
  z-index: 2;
}

.notif-dropdown-header {
  padding: 12px 14px;
  background: #f7faf8;
  border-bottom: 1px solid #e6f0eb;
  border-radius: 15px 15px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}

.notif-dropdown-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
}

.notif-dropdown-title svg {
  color: var(--teal-dark);
}

.notif-mark-read-btn {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--teal-dark);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  transition: all .15s ease;
}

.notif-mark-read-btn:hover {
  background: rgba(8, 127, 112, 0.08);
  text-decoration: underline;
}

.notif-dropdown-body {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 0 0 15px 15px;
  background: #ffffff;
}

.notif-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #ffffff;
  transition: all .15s ease;
  cursor: pointer;
  text-align: left;
}

.notif-dropdown-item:hover {
  background: #f2f8f5;
  border-color: #dbeae3;
}

.notif-dropdown-item.unread {
  background: #f0fbf6;
  border-color: #cce9dc;
}

.notif-dropdown-item.unread:hover {
  background: #e6f6ee;
}

.notif-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #eef7f3;
  color: var(--teal-dark);
  margin-top: 1px;
}

.notif-icon-box.deal_ready {
  background: #e0f2fe;
  color: #0369a1;
}

.notif-icon-box.review_request {
  background: #fef3c7;
  color: #b45309;
}

.notif-icon-box.deal_agreed {
  background: #dcfce7;
  color: #15803d;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-header-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 3px;
}

.notif-title {
  font-size: 13px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
}

.notif-time {
  font-size: 11px;
  color: #8c9e97;
  white-space: nowrap;
  flex-shrink: 0;
}

.notif-text {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}

.notif-action-row {
  margin-top: 8px;
}

.notif-action-btn {
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(8, 127, 112, 0.15);
}

.notif-dropdown-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--ink-soft);
}

.notif-empty-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eef7f3;
  color: #8ba59b;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.notif-dropdown-empty strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
}

.notif-dropdown-empty p {
  margin: 0;
  font-size: 11.5px;
  color: #8c9e97;
  line-height: 1.4;
}

/* STAR RATING PICKER */
.star-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.star-picker .star-item {
  font-size: 30px;
  color: #d1d5db;
  transition: transform .12s ease, color .12s ease;
  line-height: 1;
  user-select: none;
}

.star-picker .star-item.active {
  color: #f59e0b;
}

.star-picker .star-item:hover {
  transform: scale(1.18);
}

.review-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #3b534b;
  background: #ffffff;
  border: 1px solid #cce3d8;
  cursor: pointer;
  transition: all .15s ease;
}

.review-tag-chip:hover {
  background: #eef7f3;
  border-color: var(--teal);
}

.review-tag-chip.active {
  background: #e6f7ef;
  border-color: var(--teal);
  color: var(--teal-dark);
  font-weight: 750;
}

.report-button {
  justify-self: center;
  color: #71817c;
  border: 0;
  background: none;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.seller-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(275px, .85fr);
  gap: 20px;
  align-items: start;
}

.form-card {
  padding: 22px;
}

.form-card .field+.field {
  margin-top: 17px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 21px;
}

.upload-box {
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 18px;
  border: 1px dashed #aac8bc;
  border-radius: 15px;
  background: #f7fbf9;
  text-align: center;
  cursor: pointer;
}

.upload-box:hover {
  background: #eff8f4;
}

.upload-box svg {
  width: 26px;
  height: 26px;
  color: #438875;
  margin-bottom: 8px;
}

.upload-box strong {
  font-size: 13px;
}

.upload-box span {
  color: var(--muted);
  font-size: 12px;
}

.upload-preview {
  display: none;
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-top: 10px;
  border-radius: 12px;
  background: #edf3f0;
}

.ai-panel {
  padding: 20px;
}

.ai-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.ai-spark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  color: #087261;
  background: #e1f3ec;
  border-radius: 13px;
}

.ai-spark svg {
  width: 20px;
  height: 20px;
}

.ai-panel-head strong {
  display: block;
  font-size: 14px;
}

.ai-panel-head small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.ai-draft {
  padding: 15px;
  border-radius: 14px;
  background: #f4f8f6;
  color: #45615a;
  font-size: 13px;
}

.ai-draft p {
  margin: 0 0 9px;
}

.ai-draft p:last-child {
  margin-bottom: 0;
}

.ai-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.segmented button {
  min-height: 36px;
  padding: 6px 11px;
  border: 0;
  border-radius: 9px;
  color: #667570;
  background: transparent;
  font-size: 12px;
}

.segmented button[aria-pressed="true"] {
  color: #0b6559;
  background: #e6f4ef;
  font-weight: 800;
}

.status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.listing-list {
  display: grid;
  gap: 11px;
}

.listing-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px;
}

.listing-thumb {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: var(--art-bg, #e7f0ec);
}

.listing-thumb svg {
  width: 55px;
  height: 48px;
}

.listing-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-main {
  min-width: 0;
}

.listing-main h3 {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.listing-main p {
  margin: 3px 0 6px;
  color: var(--muted);
  font-size: 12px;
}

.queue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.queue-list {
  display: grid;
  gap: 10px;
}

.queue-item {
  padding: 16px;
  transition: border-color .15s ease;
}

.queue-item.selected {
  border-color: #8ac6b6;
  box-shadow: 0 0 0 3px rgba(55, 151, 127, .08);
}

.queue-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.queue-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.queue-reason {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 11px;
  background: #fff8e9;
  color: #765a18;
  font-size: 12px;
}

.review-panel {
  position: sticky;
  top: 88px;
  padding: 19px;
}

.review-panel .field {
  margin-top: 13px;
}

.review-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.assistant-chat {
  display: flex;
  flex-direction: column;
  min-height: 570px;
  overflow: hidden;
}

.assistant-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid var(--line);
}

.assistant-head .ai-spark {
  width: 42px;
  height: 42px;
}

.assistant-head strong,
.assistant-head small {
  display: block;
}

.assistant-head small {
  color: var(--muted);
  font-size: 12px;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #fbfdfc;
}

.bubble {
  max-width: min(88%, 540px);
  padding: 12px 15px;
  border: 1px solid #e4ece8;
  border-radius: 16px 16px 16px 5px;
  background: #fff;
  color: #38534c;
  font-size: 14px;
}

.bubble.user {
  align-self: flex-end;
  border-color: #cde8dd;
  border-radius: 16px 16px 5px 16px;
  background: #e7f5ef;
}

.assistant-compose {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.assistant-compose input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.assistant-side {
  padding: 18px;
}

.suggestion {
  display: block;
  width: 100%;
  margin-top: 9px;
  padding: 10px 11px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: #4e625b;
  font-size: 12px;
}

.suggestion:hover {
  border-color: #9bc9bb;
  background: #f5fbf8;
}

.assistant-product {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 12px;
  width: min(100%, 440px);
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}

.assistant-product-art {
  display: grid;
  place-items: center;
  min-height: 78px;
  border-radius: 10px;
  background: var(--art-bg, #e8f2ee);
}

.assistant-product-art svg {
  width: 65px;
  height: 58px;
}

.assistant-product strong,
.assistant-product small {
  display: block;
}

.assistant-product strong {
  margin: 5px 0;
  font-size: 12px;
}

.assistant-product small {
  color: var(--muted);
  font-size: 11px;
}

.agent-launcher {
  position: fixed;
  z-index: 38;
  left: 50%;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(560px, calc(100% - 48px));
  min-height: 64px;
  padding: 8px 10px 8px 15px;
  transform: translateX(-50%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(9, 138, 122, 0.72) 0%, rgba(6, 103, 91, 0.78) 100%);
  box-shadow: 0 14px 38px rgba(8, 127, 112, 0.32), 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 1.5px rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  text-align: left;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  cursor: pointer;
}

.agent-launcher:hover {
  transform: translateX(-50%) translateY(-2px);
  background: linear-gradient(135deg, rgba(9, 138, 122, 0.82) 0%, rgba(6, 103, 91, 0.86) 100%);
  box-shadow: 0 18px 44px rgba(8, 127, 112, 0.42), 0 6px 18px rgba(0, 0, 0, 0.14), inset 0 1px 1.5px rgba(255, 255, 255, 0.55);
}

.agent-launcher .ai-spark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: #ffffff;
  color: #087f70;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.agent-launcher-copy {
  display: block;
  flex: 1;
  min-width: 0;
}

.agent-launcher-copy strong,
.agent-launcher-copy small {
  display: block;
}

.agent-launcher-copy strong {
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.agent-launcher-copy small {
  overflow: hidden;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.agent-launcher-action {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  color: #087f70;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.agent-launcher:hover .agent-launcher-action {
  transform: scale(1.06);
}

.assistant-backdrop {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 38, 33, .42);
  backdrop-filter: blur(6px);
  animation: fade .18s ease both;
}

.assistant-sheet {
  display: flex;
  flex-direction: column;
  width: min(97vw, 1380px);
  height: min(93vh, 880px);
  max-height: 93vh;
  overflow: hidden;
  border: 1px solid rgba(195, 222, 212, .9);
  border-radius: 24px;
  background: #fbfdfc;
  box-shadow: 0 36px 90px rgba(13, 44, 37, .32);
  animation: sheet-up .26s var(--ease) both;
  transition: width .28s cubic-bezier(0.16, 1, 0.3, 1), height .28s cubic-bezier(0.16, 1, 0.3, 1), max-width .28s cubic-bezier(0.16, 1, 0.3, 1);
}

.assistant-sheet.mode-chat-only {
  width: min(94vw, 540px);
  height: min(88vh, 720px);
  max-width: 540px;
}

.assistant-sheet.mode-split {
  width: min(97vw, 1380px);
  height: min(93vh, 880px);
  max-width: 1380px;
}

@keyframes sheet-up {
  from {
    opacity: .65;
    transform: translateY(24px) scale(.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.assistant-modal-top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid rgba(216, 230, 224, .85);
  background: rgba(244, 250, 247, .95);
  backdrop-filter: blur(20px);
  gap: 16px;
}

.assistant-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.assistant-modal-brand h2 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
  line-height: 1.25;
}

.assistant-modal-brand p {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.assistant-modal-top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-mobile-tabs {
  display: none;
}

.assistant-split-body {
  flex: 1;
  min-height: 0;
  height: calc(100% - 65px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
  overflow: hidden;
  background: #ffffff;
  transition: grid-template-columns .28s cubic-bezier(0.16, 1, 0.3, 1);
}

.assistant-split-body.mode-chat-only {
  grid-template-columns: 1fr !important;
}

.assistant-split-body.mode-chat-only .assistant-products-pane {
  display: none !important;
}

.assistant-split-body.mode-chat-only .assistant-chat-pane {
  display: flex !important;
  width: 100% !important;
  border-left: none !important;
}

.assistant-split-body.mode-split {
  grid-template-columns: minmax(0, 1.55fr) minmax(380px, 1fr);
}

.assistant-products-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border-right: 1px solid rgba(216, 230, 224, .85);
  background: #f6faf8;
  overflow: hidden;
}

.assistant-pane-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(222, 234, 229, .85);
  backdrop-filter: blur(8px);
}

.assistant-pane-title {
  display: flex;
  align-items: center;
  gap: 9px;
}

.assistant-pane-title h3 {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.assistant-view-market-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border: 1px solid #c4ded4;
  background: #ffffff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  transition: background-color .15s ease, border-color .15s ease;
}

.assistant-view-market-btn:hover {
  background: #eef7f3;
  border-color: #9acbb9;
}

.assistant-products-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  overscroll-behavior: contain;
}

.assistant-catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  align-content: start;
}

.assistant-catalog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #d7e6e0;
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  cursor: pointer;
}

.assistant-catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 48, 41, .1);
  border-color: #82bea8;
}

.catalog-card-media {
  height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--art-bg, #e8f2ee);
}

.catalog-card-media svg {
  width: 82px;
  height: 76px;
}

.catalog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-media .badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
}

.catalog-card-content {
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.catalog-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  line-height: 1.35;
}

.catalog-card-price {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--teal-dark);
}

.catalog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
}

.catalog-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.catalog-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #edf4f1;
}

.catalog-card-actions .btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 12px;
  min-height: 32px;
  justify-content: center;
}

.assistant-inner-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding: 18px 20px 24px;
  overscroll-behavior: contain;
}

.inner-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 10px;
  flex-wrap: wrap;
}

.inner-detail-gallery {
  margin-bottom: 15px;
}

.inner-detail-media {
  position: relative;
  width: 100%;
  height: 285px;
  background: #15201d;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dceae2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: zoom-in;
  user-select: none;
}

.inner-detail-ambient-bg {
  position: absolute;
  inset: -15px;
  background-size: cover;
  background-position: center;
  filter: blur(28px) brightness(0.5);
  opacity: 0.65;
  transform: scale(1.1);
  z-index: 0;
  transition: background-image 0.25s ease;
}

.inner-detail-media img.inner-detail-main-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Xem trọn ảnh, không bị cắt cụt! */
  transition: transform 0.25s ease, opacity 0.2s ease;
  display: block;
}

.inner-detail-media:hover img.inner-detail-main-img {
  transform: scale(1.03);
}

.inner-detail-media>svg {
  position: relative;
  z-index: 1;
  width: 150px;
  height: 145px;
}

.inner-detail-media .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.inner-detail-zoom-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: zoom-in;
  transition: background 0.15s ease, transform 0.15s ease;
}

.inner-detail-zoom-pill:hover {
  background: rgba(8, 127, 112, 0.95);
  transform: scale(1.04);
}

.inner-detail-zoom-pill svg {
  width: 13px !important;
  height: 13px !important;
  flex: none;
}

/* INLINE INTERACTIVE ZOOM & DRAG (KÉO RA KÉO VÀO) */
.interactive-viewport {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.interactive-viewport.is-dragging {
  cursor: grabbing;
}

.inline-zoom-toolbar {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 26, 23, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  max-width: calc(100% - 20px);
  user-select: none;
}

.iz-btn {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  flex: none;
  padding: 0;
}

.inline-zoom-toolbar svg,
.iz-btn svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 14px !important;
  max-height: 14px !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.iz-btn:hover {
  background: rgba(8, 127, 112, 0.95);
  border-color: #087f70;
  transform: scale(1.08);
}

.iz-slider {
  width: 72px;
  height: 4px;
  accent-color: #10b981;
  cursor: pointer;
}

.iz-level {
  font-size: 11px;
  font-weight: 700;
  color: #c0edd0;
  min-width: 34px;
  text-align: center;
}

.iz-expand-btn {
  width: auto;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  gap: 4px;
  display: inline-flex;
  background: rgba(8, 127, 112, 0.85);
  border-color: rgba(255, 255, 255, 0.28);
}

.iz-expand-btn:hover {
  background: #087f70;
  transform: scale(1.04);
}

/* PHOTO LIGHTBOX MODAL */
.photo-lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 18, 16, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.18s ease;
  user-select: none;
}

.lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 22px;
  background: rgba(17, 28, 25, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex: none;
  z-index: 10;
}

.lightbox-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.lightbox-title-area strong {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45vw;
  color: #ffffff;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #bceadc;
  white-space: nowrap;
}

.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lightbox-slider {
  width: 100px;
  height: 4px;
  accent-color: #10b981;
  cursor: pointer;
}

.lightbox-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-btn.close-btn:hover {
  background: #e04434;
  border-color: #e04434;
}

.lightbox-zoom-level {
  font-size: 12.5px;
  font-weight: 700;
  color: #e2f2ec;
  min-width: 44px;
  text-align: center;
}

.lightbox-viewport {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 0;
}

.lightbox-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: grab;
}

.lightbox-canvas.is-dragging {
  cursor: grabbing;
}

#lb-img {
  max-width: 88vw;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  transform-origin: center center;
  transition: transform 0.1s ease-out;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
}

.lightbox-nav-btn:hover {
  background: rgba(8, 127, 112, 0.9);
  border-color: #087f70;
  transform: translateY(-50%) scale(1.08);
}

.lightbox-nav-btn.prev {
  left: 20px;
}

.lightbox-nav-btn.next {
  right: 20px;
}

.lightbox-bottom-bar {
  flex: none;
  padding: 10px 20px 14px;
  background: rgba(17, 28, 25, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding: 2px;
}

.lightbox-thumb {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  padding: 0;
  background: #111;
  flex-shrink: 0;
  transition: all 0.15s ease;
  opacity: 0.6;
}

.lightbox-thumb:hover {
  opacity: 0.9;
  border-color: rgba(255, 255, 255, 0.6);
}

.lightbox-thumb.active {
  opacity: 1;
  border-color: #087f70;
  box-shadow: 0 0 0 2px rgba(8, 127, 112, 0.4);
  transform: scale(1.06);
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-hint {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
}

.inner-detail-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding: 2px 1px;
}

.inner-detail-thumb {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid #e1ede6;
  cursor: pointer;
  background: #f1f6f3;
  flex-shrink: 0;
  padding: 0;
  transition: all 0.18s ease;
}

.inner-detail-thumb:hover {
  border-color: #087f70;
  transform: translateY(-1px);
}

.inner-detail-thumb.active {
  border-color: #087f70;
  box-shadow: 0 0 0 2px rgba(8, 127, 112, 0.25);
}

.inner-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.inner-detail-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.inner-detail-building {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.inner-detail-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 7px;
  color: var(--ink);
}

.inner-detail-price {
  font-size: 20px;
  font-weight: 800;
  color: #087f70;
  margin-bottom: 12px;
}

.inner-detail-seller {
  background: #f7faf8;
  border: 1px solid #e2ede7;
  border-radius: 12px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inner-detail-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inner-detail-section h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--ink);
}

.inner-detail-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

.inner-detail-ai-prompts {
  margin-top: 16px;
  padding: 13px;
  background: linear-gradient(135deg, #eef9f4 0%, #f7fbf9 100%);
  border: 1px dashed #b7e0ce;
  border-radius: 14px;
}

.inner-detail-prompts-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #17634f;
  margin-bottom: 8px;
}

.inner-detail-prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.inner-detail-prompt-buttons .suggestion {
  text-align: left;
  background: #ffffff;
  border: 1px solid #c9e4d7;
  padding: 7px 11px;
  border-radius: 8px;
  font-size: 12px;
  color: #1a4f40;
  cursor: pointer;
  transition: all 0.15s ease;
}

.inner-detail-prompt-buttons .suggestion:hover {
  background: #087f70;
  color: #ffffff;
  border-color: #087f70;
}

.assistant-tip-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  background: #eef7f3;
  border: 1px solid #cde7dc;
  color: #1e5948;
  font-size: 12.5px;
  line-height: 1.45;
  margin-bottom: 14px;
}

.assistant-state-box {
  padding: 50px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ink-soft);
}

.assistant-state-box h4 {
  font-size: 15.5px;
  color: var(--ink);
  margin: 0;
}

.assistant-state-box p {
  font-size: 13px;
  max-width: 360px;
  margin: 0 auto;
  line-height: 1.45;
}

.assistant-thinking-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #2f5f51;
}

.assistant-chat-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.assistant-chat-pane .chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  overscroll-behavior: contain;
  background: #fafcfb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.assistant-reply {
  display: grid;
  gap: 8px;
  width: 100%;
}

.assistant-reply .bubble {
  max-width: 100%;
  line-height: 1.48;
}

.assistant-mobile-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #b7dcce;
  background: #f0f8f4;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  justify-self: start;
}

.assistant-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 4px;
}

.assistant-quick-prompts .suggestion {
  width: auto;
  margin: 0;
  border-radius: 999px;
  font-size: 12px;
  padding: 6px 12px;
}

.assistant-thinking {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #425e55;
}

.thinking-dots {
  display: inline-flex;
  gap: 3px;
}

.thinking-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #438875;
  animation: dot 1s infinite ease-in-out;
}

.thinking-dots i:nth-child(2) {
  animation-delay: .12s;
}

.thinking-dots i:nth-child(3) {
  animation-delay: .24s;
}

@keyframes dot {

  0%,
  70%,
  100% {
    opacity: .4;
    transform: translateY(0);
  }

  35% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

.assistant-sheet .assistant-compose {
  flex: none;
  padding: 13px 18px max(13px, env(safe-area-inset-bottom));
  display: flex;
  gap: 9px;
  background: #ffffff;
  border-top: 1px solid rgba(216, 230, 224, .85);
  position: relative;
  z-index: 5;
}

.assistant-sheet .assistant-compose input {
  flex: 1;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid #cadcd5;
  border-radius: 12px;
  font-size: 14px;
  background: #f8fbfa;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.assistant-sheet .assistant-compose input:focus {
  outline: none;
  border-color: var(--teal);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(8, 127, 112, .12);
}

.assistant-sheet .assistant-compose button {
  min-width: 48px;
  min-height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.assistant-open-products-callout {
  margin-top: 10px;
  padding: 12px 14px;
  background: #eef7f3;
  border: 1px solid #c8e7dc;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  box-shadow: 0 4px 14px rgba(12, 58, 45, 0.05);
  animation: sheet-up .22s var(--ease) both;
}

.assistant-open-products-callout .open-callout-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.assistant-open-products-callout .open-callout-header strong {
  display: block;
  font-size: 13.5px;
  color: var(--teal-dark);
  font-weight: 700;
  line-height: 1.3;
}

.assistant-open-products-callout .open-callout-header p {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin: 2px 0 0;
}

.assistant-open-products-callout .open-callout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  background: var(--teal);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(24, 115, 88, 0.22);
  transition: all .18s var(--ease);
}

.assistant-open-products-callout .open-callout-btn:hover {
  background: var(--teal-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(24, 115, 88, 0.32);
}

/* FIXED SCREEN HEIGHT FOR CHAT - NO WINDOW SCROLLING */
body.is-chat-screen,
body:has(.chat-layout) {
  height: 100vh;
  overflow: hidden;
}

body.is-chat-screen .shell,
body:has(.chat-layout) .shell {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.is-chat-screen .topbar,
body:has(.chat-layout) .topbar {
  flex: none;
}

body.is-chat-screen .app-layout,
body:has(.chat-layout) .app-layout {
  flex: 1 1 0%;
  min-height: 0;
  height: calc(100vh - 65px);
  max-height: calc(100vh - 65px);
  padding-top: 14px;
  padding-bottom: 14px;
  box-sizing: border-box;
  overflow: hidden;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 28px;
}

body.is-chat-screen .sidebar,
body:has(.chat-layout) .sidebar {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-bottom: 10px;
}

body.is-chat-screen .main,
body.is-chat-screen .view,
body.is-chat-screen .chat-view,
body:has(.chat-layout) .main,
body:has(.chat-layout) .view {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 260px;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  flex: 1 1 0%;
  transition: grid-template-columns .24s var(--ease);
}
.chat-layout.context-closed { grid-template-columns: 220px minmax(0, 1fr) 0; }

.conversation-list {
  border-right: 1px solid var(--line);
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.conversation-list h3 {
  padding: 16px 17px 12px;
  margin: 0;
  flex: none;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 2;
  border-bottom: 1px solid #edf1ef;
}

.conversation {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 16px;
  text-align: left;
  border: 0;
  border-top: 1px solid #edf1ef;
  background: #fff;
}

.conversation.active,
.conversation:hover {
  background: #f0f8f4;
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy strong,
.conversation-copy small {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.conversation-copy strong {
  font-size: 13px;
}

.conversation-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.direct-chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.direct-chat-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  flex: none;
  background: #ffffff;
}

.direct-chat-seller-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 4px;
  margin: -4px 0 -4px -4px;
  border-radius: 12px;
  transition: background 0.15s ease;
  flex: 1;
  min-width: 0;
  text-align: left;
}

.direct-chat-seller-trigger:hover {
  background: #f0f8f4;
}

.direct-chat-seller-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.direct-chat-seller-meta strong {
  font-size: 14px;
  font-weight: 750;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-store-link-hint {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--teal-dark, #087f70);
  opacity: 0.85;
}

.direct-chat-seller-trigger:hover .seller-store-link-hint {
  opacity: 1;
  text-decoration: underline;
}

.direct-chat-seller-meta small {
  font-size: 11.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.direct-chat-head .safe-label {
  margin-left: auto;
  color: #23705e;
  font-size: 11px;
}

.direct-messages {
  flex: 1 1 0%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 16px 19px;
  background: #fafdfc;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.direct-messages.drop-ready { outline: 2px dashed #83bba8; outline-offset: -6px; }
.direct-messages.drop-over { background: #e8f6f0; outline-color: var(--teal); }
.direct-messages.drop-over::after {
  content: 'Thả sản phẩm để gửi câu hỏi';
  position: sticky;
  bottom: 8px;
  align-self: center;
  padding: 8px 12px;
  border: 1px solid var(--teal);
  border-radius: 8px;
  background: #fff;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  pointer-events: none;
}

.direct-messages .bubble {
  max-width: 75%;
}

.direct-messages .time {
  display: block;
  padding-top: 4px;
  color: #8a9792;
  font-size: 10px;
}

.direct-compose {
  padding: 10px 13px 13px;
  border-top: 0;
  flex: none;
  background: #ffffff;
}

.direct-compose-row {
  display: flex;
  gap: 8px;
}

.direct-compose input {
  flex: 1;
  min-width: 0;
  min-height: 45px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.secure-foot {
  margin: 8px 2px 0;
  color: #788782;
  font-size: 11px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(14, 37, 33, .38);
}

.modal-backdrop.open {
  display: grid;
  animation: fade .16s ease both;
}

@keyframes fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  width: min(100%, 450px);
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(12, 38, 32, .22);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.modal-head h2 {
  font-size: 21px;
}

.modal .field {
  margin: 14px 0;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 16px;
}

/* REPORT MODAL STYLING */
.report-modal {
  width: min(100%, 540px);
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 70px rgba(12, 38, 32, .24);
}

.report-product-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin: 12px 0 16px;
  background: #f7faf9;
  border: 1px solid #d4ebe1;
  border-radius: 12px;
}

.report-product-thumb {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0;
  background: #edf5f1;
  display: grid;
  place-items: center;
  border: 1px solid #c8e5d9;
}

.report-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-product-info {
  flex: 1;
  min-width: 0;
}

.report-product-title {
  font-size: 13.5px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.report-product-sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.report-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 14px;
}

.report-chip {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f1f7f4;
  border: 1px solid #d2e7dd;
  color: #24584b;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.report-chip:hover,
.report-chip.active {
  background: #e6f7ef;
  border-color: #087f70;
  color: #047857;
  font-weight: 700;
}

.report-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d0e5dc;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
  resize: vertical;
  min-height: 80px;
  transition: border-color 0.15s ease;
  box-sizing: border-box;
  background: #ffffff;
}

.report-textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 112, 0.12);
}

.report-notice-box {
  background: #fefce8;
  border: 1px solid #fef08a;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 11.5px;
  color: #854d0e;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 14px;
  line-height: 1.45;
}

.mobile-nav {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 768px) {

  .assistant-split-body.mode-split .assistant-products-pane,
  .assistant-split-body.mode-split .assistant-chat-pane {
    display: flex !important;
  }
}

@media (max-width:1100px) {
  .app-layout {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 24px;
  }

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

  .queue-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
}

@media (max-width:767px) {
  .topbar {
    padding: 10px 15px;
  }

  .brand {
    min-width: 0;
    flex-shrink: 1;
  }

  .brand-copy {
    min-width: 0;
  }

  .brand-copy strong {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .brand-copy small,
  .location-pill {
    display: none;
  }

  .top-actions {
    flex-shrink: 0;
  }

  /* Ẩn tên · vai trò trong nút hồ sơ, chỉ giữ avatar tròn cho gọn — tránh
     chữ "Minh Anh · Đang mua" bọc dòng đè lên header (bug: rule cũ ở
     375px lại ẩn nhầm span cuối cùng là mũi tên, không phải tên). */
  .profile-pill .profile-dot + span,
  .profile-pill .user-menu-caret {
    display: none;
  }

  .profile-pill {
    gap: 0;
    padding: 5px;
  }

  .app-layout {
    display: block;
    padding: 22px 16px 96px;
  }

  .sidebar {
    display: none;
  }

  .main {
    max-width: none;
  }

  .mobile-nav {
    position: fixed;
    z-index: 30;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
  }

  .mobile-nav .nav-link {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-height: 56px;
    padding: 5px 2px;
    border-radius: 11px;
    font-size: 10px;
  }

  .mobile-nav .nav-link svg {
    width: 19px;
    height: 19px;
  }

  .agent-launcher {
    bottom: calc(80px + env(safe-area-inset-bottom));
    width: calc(100% - 28px);
    min-height: 60px;
  }

  .agent-launcher-copy small {
    max-width: 45vw;
  }

  .assistant-backdrop {
    padding: 0;
  }

  .assistant-sheet {
    width: 100%;
    height: min(92dvh, 840px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .assistant-modal-top {
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .assistant-modal-top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .assistant-mobile-tabs {
    display: flex;
    background: #e6f0eb;
    padding: 3px;
    border-radius: 10px;
    gap: 3px;
    flex: 1;
  }

  .assistant-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink-soft);
    cursor: pointer;
  }

  .assistant-tab-btn.active {
    background: #ffffff;
    color: var(--teal-dark);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
  }

  .assistant-split-body {
    grid-template-columns: 1fr;
  }

  /* Bug: selector .assistant-split-body.mode-split/.mode-chat-only (2 lớp) có độ
     đặc thù cao hơn rule 1 cột ở trên (độ đặc thù không phụ thuộc vị trí trong
     media query) nên vẫn ép cột thứ 2 tối thiểu 380px dù đang ẩn — khiến cột còn
     lại (đang hiển thị) bị bóp còn ~40px. Ghi đè lại bằng !important. */
  .assistant-split-body.mode-split,
  .assistant-split-body.mode-chat-only {
    grid-template-columns: 1fr !important;
  }

  .assistant-split-body.show-chat .assistant-products-pane {
    display: none;
  }

  .assistant-split-body.show-products .assistant-chat-pane {
    display: none;
  }

  .assistant-catalog-grid {
    grid-template-columns: 1fr;
  }

  /* Nút "Thu lại (chỉ Chatbot)": chỉ giữ icon để đỡ chật hàng nút trên cùng */
  .assistant-modal-top-actions > .btn[data-toggle-products="close"] {
    font-size: 0;
    padding: 0;
    width: 38px;
    height: 38px;
    min-height: 38px;
    justify-content: center;
    border-radius: 50%;
    flex: none;
  }

  .assistant-modal-top-actions > .btn[data-toggle-products="close"] svg {
    width: 15px;
    height: 15px;
  }

  .assistant-sheet .assistant-compose {
    padding: 11px 12px max(12px, env(safe-area-inset-bottom));
  }

  /* Toolbar phóng ảnh trong chi tiết sản phẩm: thu gọn để không bị cắt chữ
     "Toàn màn hình" trên màn hẹp */
  .inline-zoom-toolbar {
    gap: 4px;
    padding: 4px 8px;
  }

  .iz-slider {
    width: 42px;
  }

  .iz-level {
    display: none;
  }

  .iz-expand-btn {
    font-size: 0;
    padding: 0 8px;
    width: 27px;
  }

  /* Bug: hàng "Số lượng món đồ" (nút -/+ cố định ~126px + select đơn vị) bị bóp
     xuống còn vài px khi cột hẹp trên mobile, chỉ thấy mũi tên select. Cho xuống
     dòng thay vì bóp. */
  .quantity-row {
    flex-wrap: wrap;
  }

  .quantity-unit-select {
    flex-basis: 100%;
  }

  .page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
    margin-bottom: 19px;
  }

  .page-head-actions {
    width: 100%;
  }

  .page-head-actions .btn {
    flex: 1;
  }

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

  .hero-copy {
    padding: 22px;
  }

  .hero-art {
    min-height: 125px;
  }

  .hero-art svg {
    width: 195px;
    max-height: 120px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .product-art {
    min-height: 132px;
    padding: 12px;
  }

  .product-art>svg {
    height: 100px;
  }

  .product-info {
    padding: 11px;
    gap: 6px;
  }

  .product-info h3 {
    font-size: 13px;
  }

  .product-price {
    font-size: 16px;
  }

  .product-meta {
    font-size: 10px;
  }

  .product-bottom .btn {
    min-height: 34px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .seller-line .avatar {
    width: 24px;
    height: 24px;
  }

  .login-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 30px 0 46px;
  }

  .login-illustration {
    display: none;
  }

  .login-story h1 {
    font-size: clamp(37px, 11vw, 55px);
  }

  .login-card {
    padding: 21px;
  }

  .detail-layout,
  .seller-layout,
  .queue-layout,
  .assistant-layout {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 250px;
    padding: 22px;
  }

  .detail-image>svg {
    height: 190px;
  }

  .detail-copy {
    padding: 19px;
  }

  .review-panel {
    position: static;
  }

  .assistant-chat {
    min-height: 500px;
  }

  .assistant-side {
    order: -1;
  }

  .chat-layout {
    grid-template-columns: 1fr;
    height: 100%;
    max-height: 100%;
    min-height: 0;
  }

  .conversation-list {
    display: none;
  }

  .direct-messages .bubble {
    max-width: 90%;
  }

  .listing-row {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
  }

  .listing-thumb {
    width: 54px;
    height: 54px;
  }

  .listing-row>.listing-action {
    grid-column: 2;
    justify-self: start;
  }

  .queue-item-top {
    flex-direction: column;
  }
}

/* Dropdown thông báo: neo cố định theo màn hình thay vì canh giữa nút chuông,
   vì left:50% (canh theo tâm nút, không phải tâm màn hình) làm nó tràn nhẹ ra
   ngoài màn hình hẹp — nút chuông không nằm giữa header trên mobile. */
@media (max-width:767px) {
  .notif-dropdown-menu {
    position: fixed;
    top: 60px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: none;
    /* Bỏ animation gốc vì keyframe của nó tự đặt lại transform:translateX(-50%),
       đè lên transform:none ở trên và làm lệch vị trí đã neo cố định. */
    animation: fade .15s ease both;
  }

  .notif-dropdown-menu::before {
    display: none;
  }
}

@media (max-width:375px) {
  .brand-copy strong {
    font-size: 13px;
  }

  .profile-pill {
    padding: 5px;
    border: 0;
  }

  .product-grid {
    gap: 8px;
  }

  .product-info {
    padding: 9px;
  }

  .account-pick {
    grid-template-columns: 1fr;
  }

  .filter-chip {
    padding-inline: 11px;
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* FAVORITE / CART BUTTON */
.product-fav-btn {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 8 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  color: #718096 !important;
  cursor: pointer !important;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1) !important;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease) !important;
}

.product-fav-btn:hover {
  transform: scale(1.12) !important;
  background: #ffffff !important;
  color: #e53e3e !important;
  box-shadow: 0 6px 16px rgba(229, 62, 62, 0.22) !important;
}

.product-fav-btn.active {
  background: #fff5f5 !important;
  color: #e53e3e !important;
  border-color: #feb2b2 !important;
}

.product-fav-btn svg {
  width: 17px !important;
  height: 17px !important;
  min-width: 17px !important;
  max-width: 17px !important;
  min-height: 17px !important;
  max-height: 17px !important;
  display: block !important;
  pointer-events: none !important;
}

.product-fav-btn.active svg {
  fill: #e53e3e !important;
}

.seller-line-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  border: none;
  background: none;
  border-radius: 6px;
  padding: 2px 5px;
  transition: color .15s ease, background .15s ease;
  text-align: left;
}

.seller-line-btn:hover {
  color: var(--teal-dark);
  background: rgba(8, 127, 112, 0.08);
}

/* TOPBAR CART BUTTON & BADGES */
.topbar-cart-wrapper {
  position: relative;
}

.topbar-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef7f3;
  border: 1px solid #c8e7dc;
  color: var(--teal-dark);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s var(--ease);
  user-select: none;
}

.topbar-cart-btn:hover,
.topbar-cart-btn.active {
  background: #e0f2ec;
  border-color: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(8, 127, 112, 0.18);
}

.topbar-cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cart-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(19, 42, 37, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 14px;
  animation: dropdownFade .18s cubic-bezier(0.16, 1, 0.3, 1) both;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf4f1;
}

.cart-dropdown-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink);
}

.cart-dropdown-title strong {
  font-size: 14px;
  font-weight: 800;
}

.cart-dropdown-clear-btn {
  font-size: 12px;
  color: var(--ink-soft);
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color .15s ease;
}

.cart-dropdown-clear-btn:hover {
  color: #e53e3e;
  text-decoration: underline;
}

.cart-dropdown-body {
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.cart-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fbfdfc;
  border: 1px solid #edf4f1;
  transition: all .15s ease;
}

.cart-dropdown-item:hover {
  background: #f4faf7;
  border-color: #d2ebe0;
}

.cart-drop-thumb {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  background: var(--art-bg, #edf5f0) !important;
}

.cart-drop-thumb img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.cart-drop-thumb svg {
  width: 28px !important;
  height: 28px !important;
}

.cart-drop-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-drop-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
  line-height: 1.3;
}

.cart-drop-title:hover {
  color: var(--teal);
}

.cart-drop-price {
  font-size: 13px;
  font-weight: 800;
  color: var(--teal-dark);
}

.cart-drop-meta {
  font-size: 11px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cart-drop-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cart-drop-chat-btn {
  padding: 5px 8px !important;
  min-height: 28px !important;
}

.cart-drop-remove-btn {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: none;
  background: none;
  color: #a0aec0;
  cursor: pointer;
  transition: all .15s ease;
  padding: 0;
}

.cart-drop-remove-btn:hover {
  background: #fff5f5;
  color: #e53e3e;
}

.cart-dropdown-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.cart-dropdown-empty p {
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.cart-dropdown-empty small {
  display: block;
  line-height: 1.45;
  font-size: 11.5px;
}

.cart-dropdown-footer {
  padding-top: 8px;
  border-top: 1px solid #edf4f1;
}

.nav-badge-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.3;
}

.want-badge-pill {
  background: #ea580c;
  color: #ffffff;
  animation: pulse-soft 2s infinite;
}

.cart-badge-pill {
  background: var(--teal);
  color: #ffffff;
}

@keyframes pulse-soft {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .88;
    transform: scale(1.04);
  }
}

/* SELLER PROFILE HERO */
.seller-profile-hero {
  padding: 24px 26px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbf9 0%, #edf6f2 100%);
  border: 1px solid #d4ebe1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 8px 24px rgba(12, 58, 45, 0.04);
  margin-bottom: 24px;
}

.seller-hero-top,
.seller-hero-main {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.seller-avatar-large,
.seller-avatar-wrap .avatar-lg {
  width: 68px;
  height: 68px;
  font-size: 24px;
  font-weight: 800;
  border-radius: 18px;
  background: linear-gradient(135deg, #187358, #0e4b38);
  color: #fff;
  box-shadow: 0 6px 16px rgba(24, 115, 88, 0.22);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.verified-badge-icon {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #087f70;
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.seller-main-info,
.seller-hero-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seller-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seller-name-row h1,
.seller-name-row h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.seller-joined-text {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-unit-meta {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 4px 0 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seller-bio-text {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.55;
  margin: 4px 0 0;
  max-width: 680px;
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(216, 235, 226, 0.8);
}

.seller-hero-cta,
.seller-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.seller-stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  padding: 4px 0 0;
}

.seller-stat-box,
.seller-stat-pill {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #ddecde;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(12, 58, 45, 0.03);
}

.stat-value,
.seller-stat-pill strong {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-label,
.seller-stat-pill span {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.35;
}

/* SELLER REVIEWS SECTION */
.seller-reviews-section {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line, #e2ece7);
}

.seller-reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.seller-reviews-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.seller-reviews-head p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

.seller-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
}

.seller-rating-pill .rating-num {
  color: #15803d;
  font-weight: 800;
}

.seller-rating-pill .rating-sub {
  color: var(--ink-soft);
  font-size: 12px;
}

.seller-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.seller-review-card {
  background: #ffffff;
  border: 1px solid var(--line, #e2ece7);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.seller-review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 58, 45, 0.06);
  border-color: #cde2d8;
}

.review-author-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-author-row .avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.review-author-info,
.review-author-row>div:not(.review-stars) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-author-info strong,
.review-author-row>div:not(.review-stars) strong {
  font-size: 14.5px;
  font-weight: 750;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-author-info small,
.review-author-row>div:not(.review-stars) small {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-stars {
  color: #f59e0b;
  font-size: 13px;
  letter-spacing: 2px;
  margin-left: auto;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  background: #fffbeb;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid #fef3c7;
}

.review-content {
  font-size: 13.5px;
  line-height: 1.6;
  color: #243530;
  margin: 0;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px dashed #edf3f0;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: auto;
}

.review-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--teal-dark, #087f70);
  font-weight: 600;
  font-size: 11.5px;
}

/* CART VIEW */
.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 22px;
  align-items: start;
}

.cart-items-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-items-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px;
  font-size: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cart-building-group {
  padding: 18px 20px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--line, #e2ece7);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.cart-building-title,
.cart-building-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf4f1;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 8px;
}

.cart-bldg-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--ink);
}

.cart-bldg-badge strong {
  color: var(--teal-dark);
  font-weight: 800;
}

.cart-bldg-subtotal {
  font-size: 13px;
  color: var(--ink-soft);
}

.cart-bldg-subtotal strong {
  color: var(--teal-dark);
  font-size: 14.5px;
  font-weight: 800;
}

.cart-items-list,
.cart-group-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  background: #fbfdfc;
  border: 1px solid #e8f0ec;
  border-radius: 14px;
  transition: all .16s ease;
}

.cart-item-row:hover {
  border-color: #cde6dc;
  box-shadow: 0 4px 12px rgba(12, 58, 45, 0.05);
}

.cart-item-thumb,
.cart-thumb {
  width: 80px !important;
  height: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  background: var(--art-bg, #edf5f0) !important;
  position: relative !important;
}

.cart-item-thumb img,
.cart-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.cart-item-thumb svg,
.cart-thumb svg {
  width: 48px !important;
  height: 48px !important;
}

.cart-item-info,
.cart-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.cart-item-title,
.cart-item-title-row h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
  line-height: 1.35;
}

.cart-item-title:hover,
.cart-item-title-row h4:hover {
  color: var(--teal);
}

.cart-remove-btn {
  background: none;
  border: none;
  color: #a0aec0;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color .15s ease;
}

.cart-remove-btn:hover {
  color: #e53e3e;
  background: #fff5f5;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--teal-dark);
  white-space: nowrap;
}

.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.cart-summary-sidebar {
  position: sticky;
  top: 90px;
}

.cart-summary-card {
  padding: 22px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line, #e2ece7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.cart-summary-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 4px;
}

.summary-line,
.cart-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  color: var(--ink-soft);
}

.summary-divider,
.cart-summary-divider {
  height: 1px;
  background: #edf4f1;
  margin: 6px 0;
}

.summary-total-line,
.cart-summary-row.total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--ink);
  font-weight: 700;
  padding-top: 4px;
}

.total-amount,
.cart-summary-row .total-price {
  font-size: 20px;
  font-weight: 900;
  color: var(--teal-dark);
}

.summary-actions,
.cart-summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-summary-sidebar {
    position: static;
  }
}

/* WANT-LIST VIEW (RADAR TÌM ĐỒ AI) */
.want-hero-banner {
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, #eef7f3 0%, #e0f2eb 100%);
  border: 1px solid #cbe6db;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(12, 58, 45, 0.05);
}

.want-banner-content,
.want-hero-left {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.want-banner-badge,
.want-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--teal-dark);
  background: #ffffff;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid #cce8dd;
  width: fit-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.pulse-indicator {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #087f70;
  box-shadow: 0 0 0 0 rgba(8, 127, 112, 0.7);
  animation: pulse-ring 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(8, 127, 112, 0.7);
  }

  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(8, 127, 112, 0);
  }

  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(8, 127, 112, 0);
  }
}

.want-banner-content h2 {
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

.want-banner-content p,
.want-hero-left p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  max-width: 620px;
  line-height: 1.55;
}

.want-banner-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.want-banner-stat {
  font-size: 13px;
  color: var(--teal-dark);
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #c2e2d5;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.want-banner-art {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  position: relative;
}

.want-radar-circle {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #187358, #0e4b38);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(24, 115, 88, 0.28);
}

.want-radar-circle .radar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: #ffffff;
}

.want-radar-circle .radar-icon svg {
  width: 36px !important;
  height: 36px !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2.2 !important;
  display: block !important;
}

.radar-ping {
  position: absolute;
  top: -12px;
  left: -12px;
  right: -12px;
  bottom: -12px;
  border-radius: 50%;
  border: 2px solid rgba(8, 127, 112, 0.35);
  animation: radar-wave 2.2s infinite ease-out;
  pointer-events: none;
}

@keyframes radar-wave {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }

  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.want-cards-list,
.want-items-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.want-card {
  padding: 22px 24px;
  border-radius: 18px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--line, #e2ece7);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all .2s ease;
}

.want-card.has-matches {
  border-color: #a3d9c7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
  box-shadow: 0 6px 22px rgba(12, 58, 45, 0.06);
}

.want-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.want-card-info {
  flex: 1;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.want-tag-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.want-created-time {
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-left: 4px;
}

.want-title,
.want-card-title-group h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.want-criteria,
.want-criteria-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.want-criteria strong {
  color: var(--teal-dark);
  font-weight: 800;
}

.want-criteria em {
  font-style: normal;
  color: var(--ink);
}

.want-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.want-matches-box {
  margin-top: 4px;
  padding: 16px 18px;
  background: #f7fbf9;
  border: 1px solid #cbe6db;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.want-matches-head,
.matches-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--teal-dark);
}

.want-matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.want-match-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #d4ebe1;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(12, 58, 45, 0.04);
  transition: all .16s ease;
}

.want-match-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(12, 58, 45, 0.09);
  border-color: var(--teal);
}

.match-thumb {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px !important;
  max-width: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  display: grid !important;
  place-items: center !important;
  background: var(--art-bg, #edf5f0) !important;
  position: relative !important;
}

.match-thumb img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.match-thumb svg {
  width: 44px !important;
  height: 44px !important;
}

.match-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.match-info h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  cursor: pointer;
  line-height: 1.35;
}

.match-info h4:hover {
  color: var(--teal);
}

.match-price {
  font-size: 14px;
  font-weight: 800;
  color: var(--teal-dark);
}

.match-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.match-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.match-actions .btn {
  padding: 4px 10px;
  font-size: 11.5px;
  min-height: 28px;
}

.match-actions .btn.active {
  color: #e53e3e !important;
  background: #fff5f5 !important;
  border-color: #feb2b2 !important;
}

.match-actions .btn.active svg {
  fill: #e53e3e !important;
}

.want-no-match {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: #fcfdfc;
  border-radius: 12px;
  border: 1px dashed #cce3d8;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .want-hero-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .want-banner-art {
    display: none;
  }
}

/* USER PROFILE MENU & SETTINGS */
.user-menu-wrapper {
  position: relative;
}

.profile-pill {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.profile-pill:hover,
.profile-pill.active {
  border-color: var(--teal);
  background: #f4faf7;
  box-shadow: 0 4px 12px rgba(8, 127, 112, 0.12);
}

.user-menu-caret {
  display: inline-flex;
  align-items: center;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  color: var(--ink-soft);
  margin-left: 2px;
}

.profile-pill.active .user-menu-caret {
  transform: rotate(-90deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: 320px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(19, 42, 37, 0.16), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 12px;
  animation: dropdownFade .18s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 12px;
}

.dropdown-avatar-box {
  position: relative;
  flex: none;
}

.dropdown-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, #098a7a 0%, #06675b 100%);
  box-shadow: 0 4px 12px rgba(9, 138, 122, 0.28);
}

.online-indicator {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
}

.dropdown-user-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dropdown-user-info strong {
  font-size: 15px;
  color: var(--ink);
}

.dropdown-user-unit {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.user-dropdown-divider {
  height: 1px;
  background: var(--line);
  margin: 6px -4px;
}

.user-dropdown-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 4px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.user-dropdown-item:hover {
  background: #f4faf7;
}

.dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef7f3;
  color: var(--teal-dark);
  display: grid;
  place-items: center;
  flex: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-dropdown-item:hover .dropdown-item-icon {
  background: #087f70;
  color: #ffffff;
}

.dropdown-item-text {
  flex: 1;
  min-width: 0;
}

.dropdown-item-text strong {
  display: block;
  font-size: 13px;
  color: var(--ink);
}

.dropdown-item-text small {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-footer {
  padding: 4px 4px 2px;
}

.user-dropdown-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 9px;
  border: 1px solid #fee2e2;
  background: #fff5f5;
  color: #dc2626;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-dropdown-logout-btn:hover {
  background: #fee2e2;
}

/* Modal setting switches */
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #fcfdfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  gap: 16px;
  margin-bottom: 10px;
}

.setting-info {
  flex: 1;
  min-width: 0;
}

.setting-info strong {
  display: block;
  font-size: 13.5px;
  color: var(--ink);
}

.setting-info small {
  display: block;
  font-size: 11.5px;
  color: var(--ink-soft);
  margin-top: 2px;
  line-height: 1.4;
}

.switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex: none;
  cursor: pointer;
}

.switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: .2s ease;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: .2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-label input:checked+.switch-slider {
  background-color: #087f70;
}

.switch-label input:checked+.switch-slider:before {
  transform: translateX(20px);
}

/* SELL FORM ENHANCEMENTS */
.input-with-addon {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-addon:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 112, 0.12);
}

.input-with-addon input {
  flex: 1;
  min-width: 0;
  border: none !important;
  outline: none !important;
  padding: 10px 12px !important;
  box-shadow: none !important;
  font-size: 13.5px;
}

.input-addon-select {
  border: none !important;
  border-left: 1px solid var(--line) !important;
  background: #f8faf9 !important;
  padding: 10px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink-soft) !important;
  border-radius: 0 !important;
  cursor: pointer;
  outline: none !important;
}

.quantity-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  height: 42px;
}

.stepper-btn {
  width: 38px;
  height: 100%;
  display: grid;
  place-items: center;
  border: none;
  background: #f4faf7;
  color: var(--teal-dark);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  user-select: none;
}

.stepper-btn:hover {
  background: #e2f2eb;
}

.quantity-stepper input {
  width: 50px;
  text-align: center;
  border: none !important;
  outline: none !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.quantity-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-unit-select {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  outline: none;
  height: 42px;
}

.product-spec-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: #f1f6f4;
  color: #24584b;
  border: 1px solid #dbeae3;
}

/* Buyer / seller workspaces and collapsible navigation */
.app-layout {
  transition: grid-template-columns .2s var(--ease), gap .2s var(--ease);
}

.sidebar-heading {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-toggle {
  min-width: 44px;
  min-height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-soft);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  transition: border-color .18s var(--ease), background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}

.sidebar-toggle-label { white-space: nowrap; }
.sidebar-toggle:active { transform: scale(.97); }
.sidebar-collapsed .sidebar-toggle { width: 44px; padding: 8px; }
.sidebar-collapsed .sidebar-toggle-label,
.sidebar-collapsed .sidebar-toggle svg:last-child { display: none; }

.sidebar-toggle:hover {
  color: var(--teal-dark);
  border-color: #9dcfbe;
  background: var(--teal-soft);
}

.app-layout.sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
}

.sidebar-collapsed .sidebar-heading {
  justify-content: center;
}

.sidebar-collapsed .side-caption,
.sidebar-collapsed .nav-link-label,
.sidebar-collapsed .side-help,
.sidebar-collapsed .nav-badge-pill {
  display: none;
}

.sidebar-collapsed .nav-link {
  justify-content: center;
  padding: 10px;
}

body.is-chat-screen .app-layout.sidebar-collapsed,
body:has(.chat-layout) .app-layout.sidebar-collapsed {
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 24px;
}

.workspace-switcher {
  padding: 8px 12px 12px;
}

.workspace-switcher-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.workspace-switcher-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.workspace-role-btn {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink-soft);
  font-weight: 700;
  cursor: pointer;
}

.workspace-role-btn.active {
  border-color: #72bca5;
  background: var(--teal-soft);
  color: var(--teal-dark);
  box-shadow: inset 0 0 0 1px rgba(8, 127, 112, .08);
}

.workspace-switcher small {
  display: block;
  margin-top: 8px;
  color: #7a8a85;
  line-height: 1.35;
}

/* Search modes and demonstrable advanced filters */
.market-search-shell {
  position: relative;
  z-index: 12;
  margin-bottom: 16px;
}

.search-mode-anchor,
.filter-anchor { position: relative; flex: none; }

.search-mode-current,
.search-filter-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #f0f6f3;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.search-mode-current:hover,
.search-filter-btn:hover,
.search-filter-btn.active {
  border-color: #a4d3c3;
  background: #e5f4ee;
}

.search-mode-current svg:last-child { margin-left: 2px; }
.search-filter-btn b {
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--teal-dark);
  color: #fff;
  font-size: 10px;
}

.search-mode-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 8px);
  left: 0;
  width: 190px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.search-mode-menu button {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-size: 12px;
}
.search-mode-menu button:hover,
.search-mode-menu button[aria-selected="true"] { background: var(--teal-soft); color: var(--teal-dark); }

.search-bar > .btn { min-height: 44px; border-radius: 8px; white-space: nowrap; }
.search-filter-btn { background: #fff; color: var(--ink-soft); border-color: var(--line); }
.search-bar input { padding-inline: 4px; }

.filter-popover-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.filter-popover-head strong { display: block; font-size: 15px; }
.filter-popover-head small { display: block; color: var(--ink-soft); font-size: 11px; }
.filter-close,
.chat-context-close {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-soft);
}
.filter-close:hover,
.chat-context-close:hover { background: var(--teal-soft); color: var(--teal-dark); }

.filter-group-categories { margin-top: 12px; }
.filter-group-categories .filter-row { flex-wrap: wrap; overflow: visible; padding: 0; }
.filter-group-categories .filter-chip { min-height: 34px; padding: 5px 8px; }
.filter-group-categories .filter-chip svg { flex: none; }

.search-mode-help {
  margin: 6px 0 0;
  color: #526861;
  font-size: 12px;
}

.advanced-filter-panel {
  position: absolute;
  z-index: 34;
  top: calc(100% + 8px);
  right: 0;
  width: min(440px, calc(100vw - 32px));
  max-height: min(70vh, 620px);
  overflow-y: auto;
  padding: 16px;
  border: 1px solid #dce9e4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(18, 60, 49, .16);
}

.filter-group > span,
.filter-select-grid label {
  color: #526861;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.filter-group-categories .filter-row {
  margin-top: 8px;
}

.filter-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.filter-select-grid label {
  display: grid;
  gap: 6px;
}

.filter-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.filter-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e1ebe7;
  color: var(--ink-soft);
  font-size: 12px;
}

/* Shared interested items and order requests */
.chat-context-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--teal-dark);
  font-size: 11px;
  font-weight: 750;
}
.chat-context-toggle:hover { background: var(--teal-soft); border-color: #a4d3c3; }
.chat-context-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background: #f8fbfa;
  opacity: 1;
  transition: opacity .18s var(--ease), transform .24s var(--ease);
}
.context-closed .chat-context-panel { opacity: 0; pointer-events: none; }
.chat-context-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; padding: 12px; border-bottom: 1px solid var(--line); background: #fff; }
.chat-context-head strong { display: block; font-size: 14px; }
.chat-context-head small { display: block; color: var(--ink-soft); font-size: 11px; }
.chat-context-note { margin: 0; padding: 10px 12px; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.chat-context-items { flex: 1; min-height: 0; overflow-y: auto; padding: 0 10px 12px; }
.chat-context-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) 44px 44px; align-items: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.chat-context-item + .chat-context-item { margin-top: 8px; }
.chat-context-item[draggable="true"] { cursor: grab; }
.chat-context-item.is-dragging { opacity: .55; cursor: grabbing; }
.chat-context-item.selected { border-color: var(--teal); background: var(--teal-soft); box-shadow: inset 0 0 0 1px var(--teal); }
.chat-context-thumb { display: block; width: 42px; height: 42px; overflow: hidden; border-radius: 6px; background: var(--art-bg); }
.chat-context-thumb img,
.chat-context-thumb svg { width: 100%; height: 100%; object-fit: contain; }
.chat-context-copy { display: grid; gap: 2px; min-width: 0; }
.chat-context-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
.chat-context-copy small { color: var(--teal-dark); font-size: 11px; font-weight: 700; }
.chat-context-item > button { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid #b6d9cb; border-radius: 8px; background: #fff; color: var(--teal-dark); }
.chat-context-item .chat-context-mention { font-size: 11px; font-weight: 750; }
.chat-context-item.selected > .chat-context-select { background: var(--teal); color: #fff; }
.chat-context-empty { padding: 20px 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.5; }
.chat-context-empty .text-link { display: block; margin-top: 8px; }
.chat-context-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; font-size: 11px; }
.chat-context-footer .btn { min-height: 40px; font-size: 11px; }
.chat-compose-references { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-bottom: 8px; font-size: 11px; color: var(--ink-soft); }
.chat-compose-references > span { display: inline-flex; align-items: center; gap: 4px; }
.chat-compose-references button { display: inline-flex; align-items: center; gap: 4px; max-width: 190px; min-height: 32px; padding: 4px 6px; overflow: hidden; border: 1px solid #9bcbb9; border-radius: 6px; background: var(--teal-soft); color: var(--teal-dark); text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.chat-context-item:not(:has(button)) { grid-template-columns: 42px minmax(0, 1fr); }
.direct-messages .system-bubble:has(.order-request-card) { width: min(100%, 570px); max-width: 100%; }
.order-request-card { width: 100%; margin-top: 9px; padding: 12px; border: 1px solid #b8d9cd; border-radius: 8px; background: #fff; color: var(--ink); }
.order-request-head,
.order-request-total,
.order-request-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.order-request-head { flex-wrap: wrap; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-weight: 800; }
.order-request-head > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.order-request-items { display: grid; gap: 7px; padding: 10px 0; }
.order-request-item { font-size: 12px; }
.order-request-item span { min-width: 0; overflow-wrap: anywhere; }
.order-request-item strong { flex: none; white-space: nowrap; }
.order-request-total { padding-top: 9px; border-top: 1px solid var(--line); font-size: 12px; }
.order-request-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.order-request-actions:empty { display: none; }
.order-request-card > small { display: block; margin-top: 9px; color: var(--ink-soft); line-height: 1.45; }
.order-status { display: inline-flex; align-items: center; min-height: 26px; padding: 3px 7px; border-radius: 5px; background: #fff3d6; color: #6f4a08; font-size: 11px; font-weight: 750; white-space: nowrap; }
.order-status-confirmed { background: #e5f4f0; color: #075d53; }
.order-status-completed { background: #e8f4e9; color: #276039; }
.order-status-canceled,
.order-status-rejected { background: #f7eeed; color: #883d34; }
.product-trust-line { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.product-trust-line .badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 5px; padding: 3px 6px; font-size: 10px; }
.trust-disclaimer { margin: 9px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.45; }
.orders-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.orders-summary span { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-soft); font-size: 12px; }
.orders-summary strong { color: var(--teal-dark); }
.orders-list { display: grid; gap: 12px; }
.order-row { padding: 16px; }
.order-row-top,
.order-row-foot { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.order-row-top small { color: var(--ink-soft); }
.order-row-top h2 { margin: 3px 0 0; font-size: 16px; }
.order-row-items { display: grid; gap: 7px; margin: 13px 0; padding: 11px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.order-row-items > div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.order-row-items strong { flex: none; white-space: nowrap; }
.order-row-foot { align-items: center; }
.order-row-foot > div { display: flex; flex-wrap: wrap; gap: 7px; }
.orders-empty { padding: 36px; text-align: center; }
.orders-empty svg { color: var(--teal-dark); }
.orders-empty h2 { margin: 8px 0 4px; font-size: 18px; }
.orders-empty p { margin: 0 auto 16px; max-width: 50ch; color: var(--ink-soft); }

.chat-shared-product {
  width: min(340px, 100%);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(8, 95, 81, .2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .94);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.chat-shared-product-thumb {
  width: 54px;
  height: 50px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--art-bg);
}

.chat-shared-product-thumb img,
.chat-shared-product-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-shared-product > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.chat-shared-product strong {
  font-size: 11.5px;
}

.chat-shared-product small,
.chat-shared-product em {
  color: #587169;
  font-size: 10px;
  font-style: normal;
}

.chat-shared-product em {
  color: var(--teal-dark);
  font-weight: 750;
}

.product-bottom {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .chat-layout.context-open { grid-template-columns: minmax(0, 1fr) 250px; }
  .chat-layout.context-closed { grid-template-columns: minmax(0, 1fr) 0; }
  .chat-layout .conversation-list { display: none; }
  .chat-layout .direct-chat { grid-column: 1; }
  .chat-context-panel { grid-column: 2; }

  .chat-cart-tray {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  body.is-chat-screen .app-layout,
  body:has(.chat-layout) .app-layout {
    display: block;
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 10px 10px 76px;
  }

  body.is-chat-screen .main,
  body:has(.chat-layout) .main {
    width: 100%;
    max-width: none;
  }

  .chat-layout { position: relative; }
  .chat-layout.context-open,
  .chat-layout.context-closed { grid-template-columns: minmax(0, 1fr); }
  .chat-context-panel { position: absolute; z-index: 8; inset-block: 0; right: 0; width: min(320px, 88vw); box-shadow: -12px 0 32px rgba(18, 60, 49, .13); }
  .context-closed .chat-context-panel { transform: translateX(100%); }
  .direct-chat-head .safe-label { display: none; }
  .chat-context-toggle { margin-left: auto; }
}

@media (max-width: 640px) {
  .search-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .search-mode-anchor { grid-column: 1; grid-row: 1; justify-self: start; }
  .filter-anchor { grid-column: 2; grid-row: 1; }
  .search-bar > .btn { grid-column: 3; grid-row: 1; }
  .search-bar input { grid-column: 1 / -1; grid-row: 2; width: 100%; border-top: 1px solid var(--line); }
  .search-filter-btn span { display: none; }
  .search-mode-current { padding-inline: 8px; }
  .search-mode-current span { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
  .advanced-filter-panel { right: -56px; width: min(296px, calc(100vw - 24px)); }
  .filter-select-grid {
    grid-template-columns: 1fr;
  }

}

/* ---------- Hiệu ứng đóng & keyframe còn thiếu (bổ sung khi tách file) ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes sheet-down {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(18px) scale(.985); }
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, .35); }
  50% { box-shadow: 0 0 0 5px rgba(220, 38, 38, 0); }
}

.assistant-backdrop.is-closing {
  animation: fade-out .18s ease both;
  pointer-events: none;
}

.assistant-backdrop.is-closing .assistant-sheet {
  animation: sheet-down .18s ease both;
}

#modal-root.is-closing > * {
  animation: fade-out .17s ease both !important;
  pointer-events: none;
}

/* ---------- Chuyển động mượt khi vá DOM ----------
   fill-mode backwards: không giữ transform sau khi chạy xong (giữ transform làm
   hỏng :hover và phần tử position:fixed bên trong). */
@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@keyframes progress-slide {
  from { transform: translateX(-100%); }
  to { transform: translateX(260%); }
}

.product-card,
.assistant-catalog-card {
  animation: card-in .3s var(--ease) backwards;
  animation-delay: calc(min(var(--i, 0), 10) * 28ms);
}

.chat-messages > .bubble,
.chat-messages > .assistant-reply,
#direct-messages > * {
  animation: msg-in .24s var(--ease) backwards;
}

.assistant-catalog-grid {
  transition: opacity .2s ease, filter .2s ease;
}

.assistant-catalog-grid.is-busy {
  opacity: .45;
  filter: saturate(.6);
  pointer-events: none;
}

.assistant-progress {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 3px;
  margin-bottom: 10px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--teal-soft, #e6f0eb);
}

.assistant-progress i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  animation: progress-slide 1s ease-in-out infinite;
}

/* ---------- Sửa layout desktop ---------- */
/* Ô cân nặng bị select đơn vị chiếm hết chiều ngang */
.input-with-addon .input-addon-select {
  flex: 0 0 auto;
  width: auto !important;
  min-width: 72px;
}

/* Dòng người bán ở trang chi tiết: xuống dòng thay vì tràn khỏi thẻ */
.seller-compact-line {
  flex-wrap: wrap;
  row-gap: 6px;
}

/* Khung gợi ý mở trợ lý: nút xuống dòng khi cột hẹp, chữ không bị bóp */
.detail-ai-callout {
  flex-wrap: wrap !important;
}

.detail-ai-callout > div {
  flex: 1 1 220px;
}
