/* MarketPort styles. Mobile first: base rules are for phones, @media (min-width) adds desktop layout. */
:root {
  --green: #B4441B;
  --green-dark: #4A1E0F;
  --green-soft: #FBE3D6;
  --green-tint: #FFF3EC;
  --amber: #F2A007;
  --amber-dark: #B76E00;
  --amber-soft: #FCE7C3;
  --amber-tint: #FFF4E3;
  --blue: #1D4A80;
  --blue-soft: #DCE8F7;
  --red: #9A2B2B;
  --red-soft: #F6DADA;
  --ink: #2A1D16;
  --muted: #6B5A4E;
  --faint: #85736A;
  --line: #EADFD3;
  --line-strong: #D9C7B6;
  --bg: #FBF6EF;
  --card: #FFFFFF;
  --radius: 14px;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
h1, h2 { font-family: var(--display); letter-spacing: -0.3px; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.section { margin-top: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.section-head h2 { font-size: 22px; }
.section-head a { font-weight: 700; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 10px; border: 2px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; text-align: center; line-height: 1.2; }
.btn:hover { text-decoration: none; filter: brightness(0.96); }
.btn-primary { background: var(--amber); color: #1B1306; }
.btn-green { background: var(--green); color: #fff; }
.btn-outline { background: #fff; color: var(--green); border-color: var(--green); }
.btn-danger { background: #fff; color: var(--red); border-color: var(--red); }
.btn-small { min-height: 38px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--green); font-weight: 700; cursor: pointer; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 600; }
.input, .field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 10px 12px; min-height: 46px; background: #fff; font-size: 15px; }
.field textarea { min-height: 96px; resize: vertical; }
.field .hint { font-size: 12px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.form-grid > *, .stack > *, .dash-body > * { min-width: 0; }
.field select, .field input, .field textarea { max-width: 100%; min-width: 0; }
.choice { display: flex; gap: 12px; align-items: center; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border: 2px solid var(--green); background: var(--green-tint); padding: 11px 13px; }
.choice input { accent-color: var(--green); width: 18px; height: 18px; }
.choice .grow { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; min-height: 32px; }
.check input { accent-color: var(--green); width: 18px; height: 18px; }

/* Cards and chips */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card h2 { font-size: 20px; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.chip-green { background: var(--green-soft); color: var(--green); }
.chip-amber { background: var(--amber-soft); color: #7A4B07; }
.chip-blue { background: var(--blue-soft); color: var(--blue); }
.chip-red { background: var(--red-soft); color: #8A2121; }
.chip-grey { background: #F6EDE4; color: #5A4639; }
.notice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #F3CDB8; background: var(--green-tint); border-radius: 12px; padding: 14px; font-size: 14px; }
.notice .icon { color: var(--green); margin-top: 1px; }
.notice-amber { border-color: #F1D8B0; background: var(--amber-tint); }

/* Flash messages */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.flash { border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.flash-success { background: var(--green-soft); color: var(--green); }
.flash-error { background: var(--red-soft); color: #7A1D1D; }
.flash-info { background: var(--blue-soft); color: var(--blue); }

/* Header */
.topbar { background: var(--green-dark); color: #F8E9DE; font-size: 13px; }
.topbar .container { display: flex; gap: 8px 20px; align-items: center; justify-content: space-between; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #F8E9DE; }
.topbar-links { display: none; gap: 18px; }
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-main { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none !important; }
.logo { gap: 8px; }
.logo img { flex: none; }
.logo-word { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.6px; color: #2B1A12; }
.logo-word span { color: #B4441B; }
.search { flex: 1 1 100%; order: 3; display: flex; border: 2px solid var(--green); border-radius: 11px; overflow: hidden; background: #fff; min-width: 0; }
.search select { display: none; border: 0; border-right: 1px solid var(--line); background: var(--bg); padding: 0 10px; font-size: 14px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 12px; font-size: 15px; min-height: 44px; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--amber); color: #1B1306; font-weight: 700; padding: 0 16px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.search button span { display: none; }
.header-actions { margin-left: auto; display: flex; gap: 4px; }
.header-actions a, .header-actions button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 8px; font-size: 11px; color: var(--ink); background: none; border: 0; cursor: pointer; position: relative; }
.badge-count { position: absolute; top: 0; right: 4px; background: var(--amber); color: #1B1306; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.navrow { display: flex; gap: 6px 20px; font-size: 14px; font-weight: 600; padding-bottom: 10px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.navrow::-webkit-scrollbar { display: none; }

/* Bottom nav on phones */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: space-around; padding: 6px 0 calc(8px + env(safe-area-inset-bottom)); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); min-width: 60px; position: relative; text-decoration: none; }
.bottomnav a.active { color: var(--green); font-weight: 700; }
body.has-bottomnav { padding-bottom: 72px; }

/* Carousel (home banner) */
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.6s ease; will-change: transform; touch-action: pan-y; }
.slide { flex: 0 0 100%; min-height: 200px; display: flex; align-items: center; gap: 10px; padding: 20px 0 34px 18px; }
.slide-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.slide-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; border-radius: 999px; padding: 4px 10px; background: rgba(255, 255, 255, 0.16); }
.slide h2 { font-size: 22px; }
.slide p { display: none; }
.slide .btn { align-self: flex-start; min-height: 38px; padding: 0 14px; font-size: 13px; }
.slide-art { flex: 0 0 42%; max-width: 300px; align-self: stretch; display: flex; align-items: center; }
.slide-art img { width: 100%; border-radius: 12px; }
.slide-green { background: var(--green); color: #fff; }
.slide-amber { background: var(--amber-soft); color: #3A2A10; }
.slide-amber .slide-tag { background: rgba(58, 42, 16, 0.1); }
.slide-blue { background: #7A2615; color: #fff; }
.carousel-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, 0.94); cursor: pointer; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); }
.carousel-arrow.prev { left: 12px; }
.carousel-arrow.next { right: 12px; }
.carousel-dots { position: absolute; left: 18px; bottom: 12px; display: flex; gap: 6px; }
.carousel-dots button { border: 0; padding: 0; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); cursor: pointer; transition: width 0.3s; }
.carousel.on-light .carousel-dots button { background: rgba(42, 29, 22, 0.25); }
.carousel-dots button[aria-current="true"] { width: 22px; background: #fff; }
.carousel.on-light .carousel-dots button[aria-current="true"] { background: var(--green); }

/* Horizontal scroll rows */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.hscroll > * { scroll-snap-align: start; flex: none; }
.cat-chip { width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; text-align: center; color: var(--ink); line-height: 1.2; }
.cat-chip img { width: 66px; height: 66px; object-fit: cover; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.cat-chip:hover { text-decoration: none; }

/* Product grid and cards */
.grid-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.pcard:hover { text-decoration: none; box-shadow: 0 4px 16px rgba(180, 68, 27, 0.14); }
.pcard-img { aspect-ratio: 1 / 1; background: var(--photo-bg, #fff); position: relative; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-moq { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, 0.95); border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 700; color: var(--green); }
.pcard-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pcard-name { font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-price { font-weight: 700; font-size: 16px; }
.pcard-meta { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.pcard-meta strong { color: var(--green); }

/* Trust strip */
.trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.trust-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; gap: 10px; align-items: flex-start; }
.trust-item .ic { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { font-size: 12px; color: var(--muted); }

/* Request for quotation */
.rfq-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.rfq-card h2 { font-size: 20px; }

/* Product page */
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: var(--photo-bg, #fff); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery-main .carousel-track { height: 100%; }
.gallery-main .slide-img { flex: 0 0 100%; height: 100%; }
.gallery-main .slide-img img { width: 100%; height: 100%; object-fit: contain; background: var(--photo-bg, #fff); }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(42, 29, 22, 0.75); color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.gallery .carousel-arrow { display: flex; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; }
.thumbs button { flex: none; width: 70px; height: 70px; padding: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--photo-bg, #fff); cursor: pointer; }
.thumbs button[aria-current="true"] { border: 2px solid var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.tier { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.tier span { font-size: 12px; color: var(--muted); }
.tier strong { font-size: 17px; }
.tier.active { border: 2px solid var(--green); background: var(--green-soft); padding: 9px 11px; }
.tier.active strong, .tier.active span { color: var(--green); }
.qty { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: #fff; }
.qty button { width: 46px; min-height: 46px; border: 0; background: var(--bg); font-size: 20px; cursor: pointer; }
.qty input { width: 76px; border: 0; text-align: center; font-weight: 700; font-size: 16px; }
.summary-box { background: #FCF7F1; border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.summary-box .line { display: flex; justify-content: space-between; gap: 10px; }
.summary-box .total { font-size: 17px; font-weight: 700; border-top: 1px solid var(--line); padding-top: 8px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th { text-align: left; color: var(--muted); font-weight: 500; padding: 9px 0; width: 42%; border-bottom: 1px solid #F6EDE4; vertical-align: top; }
.specs td { padding: 9px 0; font-weight: 600; border-bottom: 1px solid #F6EDE4; }
.prose { font-size: 15px; line-height: 1.6; white-space: pre-line; }
.supplier-mini { display: flex; gap: 12px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 20px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.buy-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Supplier shop page */
.shop-banner { background: var(--green); height: 110px; }
.shop-head { margin-top: -50px; position: relative; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.shop-head .avatar { width: 88px; height: 88px; border: 4px solid #fff; font-size: 32px; }

/* Cart and checkout */
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.cart-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-group-head { padding: 12px 16px; background: #FCF7F1; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 14px; }
.cart-line { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #F6EDE4; align-items: center; flex-wrap: wrap; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; border: 1px solid var(--line); }
.cart-line .grow { flex: 1 1 160px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.steps li { display: flex; align-items: center; gap: 6px; }
.steps .n { width: 24px; height: 24px; border-radius: 999px; border: 2px solid #C2AFA0; display: flex; align-items: center; justify-content: center; font-size: 12px; }
.steps .done { color: var(--green); }
.steps .done .n { background: var(--green); border-color: var(--green); color: #fff; }

/* Payment waiting page */
.pay-box { max-width: 520px; margin: 30px auto; text-align: center; }
.spinner { width: 54px; height: 54px; border: 5px solid var(--green-soft); border-top-color: var(--green); border-radius: 50%; margin: 10px auto; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } .carousel-track { transition: none; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 16px 24px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.code-box { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: 6px; color: var(--green); background: var(--green-soft); border-radius: 12px; padding: 10px 16px; text-align: center; }

/* Tables */
.table-wrap { overflow-x: auto; position: relative; max-width: 100%; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
table.data th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 11px 8px; border-bottom: 1px solid #F6EDE4; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }

/* Dashboards */
.dash { display: flex; flex-direction: column; min-height: 100vh; }
.dash-side { background: var(--green-dark); color: #F8E9DE; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.dash-side.admin { background: #2A1D16; }
.dash-side .logo-word { color: #fff; font-size: 20px; }
.dash-side .logo-word span { color: var(--amber); }
.dash-side { position: sticky; top: 0; z-index: 40; }
.dash-side nav { display: none; flex-direction: column; gap: 2px; max-height: calc(100vh - 64px); overflow-y: auto; padding-bottom: 6px; }
.dash-side.open nav { display: flex; }
.dash-role { display: none; }
.dash-menu-btn { display: inline-flex; align-items: center; gap: 8px; position: relative; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; font: inherit; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 10px; cursor: pointer; }
.dash-menu-icon { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.dash-menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
.dash-side.open .dash-menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.dash-side.open .dash-menu-icon i:nth-child(2) { opacity: 0; }
.dash-side.open .dash-menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.dash-menu-dot { position: absolute; top: -4px; right: -4px; width: 11px; height: 11px; border-radius: 50%; background: var(--amber); border: 2px solid var(--green-dark); }
.dash-side nav a { display: flex; justify-content: space-between; gap: 8px; padding: 12px; border-radius: 9px; font-size: 15px; font-weight: 600; color: #EBCDBB; white-space: nowrap; text-decoration: none; }
.dash-side nav a.active { background: rgba(255, 255, 255, 0.12); color: #fff; }
.dash-side nav a .count { color: var(--amber); font-size: 12px; }
.dash-main { flex: 1; min-width: 0; }
.dash-top { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.dash-top h1 { font-size: 22px; }
.dash-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; max-width: 1200px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 13px; color: var(--muted); }
.stat strong { font-family: var(--display); font-size: 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters a { font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; color: var(--ink); text-decoration: none; }
.filters a.active { background: var(--green); border-color: var(--green); color: #fff; }
.image-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.image-tile { width: 96px; display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.image-tile .small { font-size: 11px; line-height: 1.2; }
.image-tile img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.dropzone { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: #fff; }
.tier-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* Footer */
.footer { background: var(--green-dark); color: #EBCDBB; margin-top: 40px; font-size: 14px; }
.footer a { color: #EBCDBB; }
.footer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; padding-top: 30px; padding-bottom: 24px; }
.footer-grid div { display: flex; flex-direction: column; gap: 7px; }
.footer-grid strong { color: #fff; }
.footer-bottom { border-top: 1px solid #6B2E18; padding-top: 12px; padding-bottom: 12px; font-size: 13px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--green); border-color: var(--green); color: #fff; }

.auth-box { max-width: 460px; margin: 30px auto; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }

/* Tablet and up */
@media (min-width: 640px) {
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
  .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .full { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .slide { min-height: 300px; padding: 30px 0 46px 34px; }
  .slide h2 { font-size: 34px; }
  .slide p { display: block; font-size: 16px; opacity: 0.9; max-width: 520px; }
  .slide .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
  .slide-art { flex-basis: 38%; padding-right: 30px; }
  .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Desktop */
@media (min-width: 900px) {
  body.has-bottomnav { padding-bottom: 0; }
  .bottomnav { display: none; }
  .topbar-links { display: flex; }
  .header-main { flex-wrap: nowrap; }
  .search { order: 0; flex: 1 1 auto; }
  .search select { display: block; }
  .search button span { display: inline; }
  .header-actions { margin-left: 0; }
  .header-actions a, .header-actions button { font-size: 12px; min-width: 58px; }
  .home-top { display: grid; grid-template-columns: 220px minmax(0, 1fr) 300px; gap: 16px; align-items: stretch; }
  .carousel-arrow { display: flex; }
  .home-top .carousel-track { height: 100%; }
  .home-top .slide { padding-left: 72px; padding-right: 0; }
  .home-top .slide-art { padding-right: 72px; }
  .home-top .carousel-dots { left: 72px; }
  .slide h2 { font-size: 40px; }
  .product-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; }
  .layout-2 { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .dash { flex-direction: row; }
  .dash-side { width: 236px; flex: none; padding: 20px 14px; min-height: 100vh; }
  .dash-side { position: static; }
  .dash-side nav { display: flex; flex-direction: column; overflow: visible; max-height: none; }
  .dash-side nav a { font-size: 14px; padding: 9px 12px; }
  .dash-menu-btn { display: none; }
  .dash-role { display: inline; }
  .dash-body { padding: 24px; }
}
.home-cats { display: none; }
@media (min-width: 900px) {
  .home-cats { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 0; }
  .home-cats a { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; color: var(--ink); font-size: 14px; }
  .home-cats strong { display: block; padding: 4px 16px 8px; }
}

/* Text pages (About, Terms, Privacy, Careers) */
.page-text { font-size: 16px; line-height: 1.7; }
.page-text h2 { font-size: 21px; margin: 22px 0 6px; }
.page-text p { margin: 0 0 12px; }
.page-text ul { margin: 0 0 12px; padding-left: 22px; }
.page-text li { margin-bottom: 4px; }

/* Verification and admin review */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.doc-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.doc-card img { width: 100%; height: 170px; object-fit: contain; background: var(--bg); border-radius: 8px; }
.doc-card .ph { height: 170px; border-radius: 8px; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare img { width: 100%; height: 300px; object-fit: contain; background: #F6EDE4; border-radius: 10px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; }
.checks .ok { background: #EAF5EC; color: #1E5B2C; }
.checks .warn { background: var(--amber-tint); color: #6B4300; }
.checks .bad { background: var(--red-soft); color: #7A1D1D; font-weight: 600; }
.checks .mark { font-weight: 800; width: 16px; flex: none; }
.slide-admin { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.slide-thumb { width: 120px; height: 80px; border-radius: 8px; object-fit: cover; background: var(--bg); }
@media (min-width: 900px) { .slide-admin { grid-template-columns: 160px 1fr; } }

/* ----- Messages ----- */
.chat-page { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.chat-page.in-shop { margin: 18px auto 0; }
.chat-head h1 a:hover { text-decoration: underline; }
.chat-thread { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; min-height: 220px; overflow-y: auto; background: #FFFCF8; padding: 14px; }
.chat-empty { margin: auto; text-align: center; }
.msg { align-self: flex-start; max-width: 82%; background: #fff; border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 9px 12px; display: flex; flex-direction: column; gap: 4px; }
.msg-mine { align-self: flex-end; background: var(--green-tint); border-color: #F3CDB8; border-radius: 14px 14px 4px 14px; }
.msg-body { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.msg-time { font-size: 11px; color: var(--muted); }
.msg-about { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 700; color: var(--green); }
.msg-original { font-size: 13px; color: #8A2121; background: var(--red-soft); border-radius: 8px; padding: 6px 8px; overflow-wrap: anywhere; }
.chat-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.chat-input { display: flex; gap: 8px; align-items: flex-end; }
.chat-input textarea { flex: 1; min-height: 48px; max-height: 160px; resize: vertical; font: inherit; font-size: 15px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.chat-input .btn { flex: none; }
.conv { display: flex; gap: 12px; align-items: center; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.conv:hover { border-color: var(--line-strong); }
.conv .avatar { width: 44px; height: 44px; font-size: 18px; }
.conv-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.conv-preview { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.unread { border-color: #F3CDB8; background: var(--green-tint); }
.conv.unread .conv-preview { color: var(--ink); font-weight: 600; }
.count-dot { background: var(--green); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; min-width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; padding: 0 6px; flex: none; }
@media (max-width: 520px) { .header-actions .hide-narrow { display: none; } .chat-thread { max-height: 55vh; } }

/* ----- Delivery tracking ----- */
.tracker { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.tracker li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; }
.tracker li::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.tracker li:first-child::before { display: none; }
.tracker li.done::before, .tracker li.now::before { background: var(--green); }
.tracker .dot { width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-size: 14px; position: relative; z-index: 1; }
.tracker li.done { color: var(--ink); }
.tracker li.done .dot { background: var(--green); border-color: var(--green); color: #fff; }
.tracker li.now { color: var(--green); }
.tracker li.now .dot { border-color: var(--green); color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.track { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.track li { display: flex; flex-direction: column; gap: 3px; padding: 0 0 16px 22px; position: relative; font-size: 14px; }
.track li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.track li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.track li:last-child::after { display: none; }
.track li:first-child::before { background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.track li.track-delivered::before { background: #2E7D32; }
.track li.track-problem::before, .track li.track-delayed::before { background: var(--red); }
.track-photo img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); margin-top: 4px; }
.receipt-all_ok { font-weight: 700; }
@media (max-width: 520px) { .tracker li { font-size: 11px; } .tracker .dot { width: 28px; height: 28px; } .tracker li::before { top: 13px; } }
.point-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.point-card .icon { vertical-align: -2px; color: var(--green); }

/* ----- Category hover menus (desktop). Built from the categories list, so new categories get one automatically. ----- */
.navrow { align-items: center; }
.navitem { position: static; }
.navlink { display: inline-flex; align-items: center; gap: 5px; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.navlink:hover, .navitem:focus-within > .navlink { color: var(--green); border-bottom-color: var(--amber); text-decoration: none; }
.navitem-all > .navlink { color: var(--ink); }
.megamenu { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .megamenu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-top: 1px solid var(--line); border-bottom: 3px solid var(--amber);
    box-shadow: 0 18px 30px rgba(74, 30, 15, .14); padding: 18px 0 20px; white-space: normal;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
    transition-delay: .08s; z-index: 30;
  }
  .navitem:hover > .megamenu, .navitem:focus-within > .megamenu {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .16s ease .12s, transform .16s ease .12s, visibility 0s linear .12s;
  }
}
@media (prefers-reduced-motion: reduce) { .megamenu { transition: none !important; transform: none !important; } }
.mega-inner { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; }
.mega-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding-right: 20px; border-right: 1px solid var(--line); }
.mega-side img { width: 72px; height: 72px; border-radius: 14px; background: var(--green-tint); object-fit: cover; }
.mega-side strong { font-family: var(--display); font-size: 20px; }
.mega-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mega-product { display: flex; flex-direction: column; gap: 4px; color: var(--ink); text-decoration: none; border-radius: 12px; padding: 8px; transition: background .15s; }
.mega-product:hover { background: var(--green-tint); text-decoration: none; }
.mega-product img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #FBF6EF; }
.mega-name { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mega-price { color: var(--green); font-size: 15px; }
.mega-empty { align-self: center; font-size: 15px; }
.mega-all { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.mega-cat { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.mega-cat:hover { background: var(--green-tint); text-decoration: none; }
.mega-cat img { width: 44px; height: 44px; border-radius: 10px; background: var(--green-tint); flex: none; }
.mega-cat span { display: flex; flex-direction: column; }
/* Home page category list: hover panel over the banner */
.hc-fly { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .home-top { position: relative; }
  .hc-item { position: static; }
  .home-cats .hc-item > a { transition: background .12s, color .12s; }
  .home-cats .hc-item:hover > a, .home-cats .hc-item:focus-within > a { background: var(--green-tint); color: var(--green); }
  .hc-fly {
    display: flex; flex-direction: column; gap: 14px; position: absolute; top: 0; bottom: 0; left: 236px; right: 0; z-index: 15;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 34px rgba(74, 30, 15, .16);
    padding: 20px 22px; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .14s ease, visibility 0s linear .14s;
  }
  .hc-item:hover > .hc-fly, .hc-item:focus-within > .hc-fly { opacity: 1; visibility: visible; transition: opacity .14s ease .06s, visibility 0s linear .06s; }
  .hc-fly .mega-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-cats .hc-fly .mega-product { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: 8px; font-size: inherit; text-align: left; }
}
/* Subcategories in hover menus: hovering a subcategory shows its products */
.mega-inner.has-subs { grid-template-columns: 210px 190px 1fr; }
.mega-subs { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 14px; max-height: 300px; overflow-y: auto; }
.mega-subs a, .hc-subs a { color: var(--ink); text-decoration: none; font-size: 14px; border-radius: 8px; }
.mega-subs a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; }
.mega-subs a span, .hc-subs a span { font-size: 12px; }
.mega-subs a:hover, .mega-subs a:focus, .mega-subs a.active { background: var(--green-tint); color: var(--green); }
.mega-subs a.active { font-weight: 700; }
.mega-panel[hidden] { display: none !important; }
.home-cats .hc-subs { display: flex; flex-wrap: wrap; gap: 6px; }
.home-cats .hc-subs a { display: inline-flex; gap: 5px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; background: #fff; }
.home-cats .hc-subs a:hover, .home-cats .hc-subs a:focus, .home-cats .hc-subs a.active { background: var(--green-tint); color: var(--green); border-color: var(--green); }
.home-cats .hc-fly .mega-empty a { display: inline; padding: 0; }
.home-cats .hc-fly .mega-price { display: block; padding: 0; }
.mega-cat-box { display: flex; flex-direction: column; }
.mega-cat-subs { display: flex; flex-wrap: wrap; gap: 2px 10px; padding: 0 8px 8px 62px; font-size: 13px; }
.mega-cat-subs a { color: var(--muted); }
.mega-cat-subs a:hover { color: var(--green); }
.sub-chips { margin: -6px 0 14px; }
.cat-indent { padding-left: 22px; color: var(--muted); }
.verify-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.code-input { font-size: 28px !important; letter-spacing: 10px; text-align: center; font-weight: 700; }
.link-btn.muted { color: var(--muted); }
/* Search alert bar and notifications */
.alert-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; background: var(--amber-tint); border: 1px solid #F1D8B0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.alert-bar .grow { flex: 1 1 240px; }
.alert-bar-icon { color: #9A5B00; display: flex; }
.notif .avatar { width: 40px; height: 40px; }
.notif.unread { border-color: #F3CDB8; background: var(--green-tint); }
.conv:hover, .conv:hover * { text-decoration: none; }
/* Parcel label (printable) */
.parcel-label { border: 2px dashed var(--ink); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; background: #fff; max-width: 460px; }
.parcel-label span { font-size: 12px; font-weight: 700; letter-spacing: .5px; color: var(--muted); }
.pl-row { display: flex; flex-direction: column; gap: 2px; }
.pl-row strong { font-size: 18px; }
.pl-row .pl-phone { font-size: 26px; letter-spacing: 1px; }
.pl-row span + strong { margin-top: 2px; }
.pl-split { flex-direction: row; gap: 24px; border-top: 1px solid var(--line); padding-top: 10px; }
.pl-split > div { display: flex; flex-direction: column; }
.pl-foot { font-size: 12px; border-top: 1px solid var(--line); padding-top: 8px; }
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .parcel-label, .parcel-label * { visibility: visible; }
  .parcel-label { position: absolute; left: 0; top: 0; max-width: none; width: 100%; border-color: #000; }
}

/* ----- Hover zoom: product cards grow a little; product photos zoom where the pointer is ----- */
.pcard { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.pcard-img img { transition: transform .35s ease; }
@media (hover: hover) {
  .pcard:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 12px 28px rgba(180, 68, 27, 0.18); border-color: #F3CDB8; position: relative; z-index: 2; }
  .pcard:hover .pcard-img img { transform: scale(1.12); }
  .mega-product img { transition: transform .3s ease; }
  .mega-product:hover img { transform: scale(1.06); }
  .gallery-main.zooming .slide-img img { transform: scale(2); cursor: zoom-in; transition: transform .1s ease-out; }
  .gallery-main .slide-img img { transition: transform .25s ease; }
}
@media (prefers-reduced-motion: reduce) {
  .pcard, .pcard:hover, .pcard-img img, .pcard:hover .pcard-img img { transform: none !important; transition: none !important; }
}
/* China imports */
.ship-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: .2px; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.ship-cn_air { background: #C8102E; color: #fff; }
.ship-cn_sea { background: #1D4E89; color: #fff; }
.pcard-ship { position: absolute; left: 8px; bottom: 8px; }
.import-box { border: 1px solid #F1D8B0; background: var(--amber-tint); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.import-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.import-steps li { background: #fff; border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.import-steps li span { color: var(--muted); font-size: 12px; }
@media (max-width: 520px) { .import-steps { grid-template-columns: minmax(0, 1fr); } }
.import-progress { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--muted); }
.import-progress li.done { color: var(--ink); font-weight: 600; }
/* Pop-up ad card: small, in a corner, never covers the page */
.ad-card { position: fixed; left: 16px; bottom: 16px; z-index: 40; width: 320px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(74, 30, 15, .22); overflow: hidden; display: flex; flex-direction: column; opacity: 0; transform: translateY(16px); transition: opacity .25s ease, transform .25s ease; }
.ad-card.show { opacity: 1; transform: none; }
.ad-img img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; }
.ad-text { padding: 10px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.ad-label { font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.ad-text strong { font-size: 16px; line-height: 1.25; }
.ad-body { font-size: 13px; color: var(--muted); }
.ad-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; }
.ad-stop { color: var(--muted) !important; font-weight: 600; }
.ad-close { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
@media (max-width: 899px) {
  .ad-card { left: 12px; right: 12px; bottom: 76px; width: auto; flex-direction: row; }
  .ad-img { flex: 0 0 96px; }
  .ad-img img { height: 100%; aspect-ratio: auto; }
  .ad-text strong { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ad-card { transition: none; } }
@media print { .ad-card { display: none !important; } }
/* Account type badges (admin) */
.role-badge { display: inline-block; font-size: 12px; font-weight: 800; border-radius: 6px; padding: 4px 9px; white-space: nowrap; }
.role-buyer { background: #E3EEFB; color: #1D4E89; }
.role-supplier { background: #FCE3D6; color: #8E3412; }
.role-agent { background: #E7F4E4; color: #2E6B26; }
.role-admin { background: #3A2418; color: #fff; }
tr.urow-trader td:first-child { box-shadow: inset 4px 0 0 #1D4E89; }
tr.urow-supplier td:first-child { box-shadow: inset 4px 0 0 #B4441B; }
tr.urow-agent td:first-child { box-shadow: inset 4px 0 0 #2E6B26; }
tr.urow-admin td:first-child { box-shadow: inset 4px 0 0 #3A2418; }
.filters a.active .muted { color: inherit; opacity: .85; }
/* Chat presence and typing */
.presence { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.presence i { width: 9px; height: 9px; border-radius: 50%; background: #B9A99B; display: inline-block; }
.presence.online { color: #2E7D32; font-weight: 600; }
.presence.online i { background: #2E9D3A; box-shadow: 0 0 0 3px rgba(46, 157, 58, .18); }
.typing { display: flex; align-items: center; gap: 8px; color: var(--muted); font-style: italic; padding: 0 4px; }
.typing .dots { display: inline-flex; gap: 3px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; }
.typing .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing-dot 1.2s infinite ease-in-out; }
.typing .dots i:nth-child(2) { animation-delay: .15s; }
.typing .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .typing .dots i { animation: none; opacity: .7; } }
.conv-online { width: 9px; height: 9px; border-radius: 50%; background: #2E9D3A; display: inline-block; margin-left: 6px; vertical-align: middle; }
.typing[hidden] { display: none !important; }
/* Problem reports */
.msg-who { font-size: 12px; font-weight: 700; color: var(--muted); }
.msg-admin { border-color: var(--amber); background: #FFF6E2; }
.msg-photos { display: flex; flex-wrap: wrap; gap: 6px; }
.msg-photos img { width: 110px; height: 90px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.chip-ok { background: #E3F2E8; color: #1F6B3F; }
