:root {
  --color-primary: #2f9e44;
  --color-primary-dark: #1e7a34;
  --color-primary-light: #ebfbee;
  --color-accent: #f59f00;
  --color-accent-dark: #d9840a;
  --color-bg: #fffdf7;
  --color-surface: #ffffff;
  --color-text: #1f2a24;
  --color-text-muted: #5b6b62;
  --color-border: #e3e8e2;
  --color-danger-bg: #fff1f0;
  --color-danger-border: #e03131;
  --color-danger-text: #a51111;
  --color-warning-bg: #fff9db;
  --color-warning-border: #f08c00;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 8px rgba(31, 42, 36, 0.08);
  --shadow-lg: 0 8px 24px rgba(31, 42, 36, 0.12);
  --cta-height: 68px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--color-primary-light);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.has-mobile-cta {
  padding-bottom: calc(var(--cta-height) + env(safe-area-inset-bottom, 0px));
}

a {
  color: var(--color-primary-dark);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

/* Header */
.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 30;
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.site-header__brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.02em;
}
.site-header__brand span {
  color: var(--color-accent);
}
.site-header__nav {
  display: none;
  gap: 20px;
}
.site-header__nav a {
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-header__toggle {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 12px;
  font-size: 1rem;
}
@media (min-width: 900px) {
  .site-header__nav {
    display: flex;
  }
  .site-header__toggle {
    display: none;
  }
}
.site-header__nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 16px 12px;
  border-top: 1px solid var(--color-border);
}
.site-header__nav-mobile a {
  padding: 10px 0;
  color: var(--color-text);
  font-weight: 600;
  border-bottom: 1px solid var(--color-border);
}
.site-header__nav-mobile[hidden] {
  display: none;
}

/* Footer */
.site-footer {
  background: #14231a;
  color: #d7e5dc;
  margin-top: 48px;
  padding: 32px 0 24px;
}
.site-footer a {
  color: #d7e5dc;
}
.site-footer__brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
}
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.site-footer__meta {
  font-size: 0.85rem;
  color: #9db3a5;
  margin-top: 16px;
}
.site-footer__legal-placeholder {
  font-size: 0.8125rem;
  color: #7d9488;
  border: 1px dashed #3a5245;
  border-radius: var(--radius);
  padding: 10px 12px;
  margin-top: 16px;
}

/* Medical disclaimer */
.disclaimer {
  background: #f1f4f0;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  padding: 16px 0;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #d9f3e0, var(--color-primary-light));
  padding: 32px 0 24px;
}
.hero h1 {
  font-size: 1.7rem;
  color: var(--color-primary-dark);
}
.hero p {
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* USP strip */
.usp-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 20px 0;
}
@media (min-width: 700px) {
  .usp-strip {
    grid-template-columns: repeat(3, 1fr);
  }
}
.usp-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.usp-item__icon {
  font-size: 1.4rem;
  line-height: 1;
}
.usp-item__title {
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 2px;
}
.usp-item__text {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

/* Search box */
.search-box {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.search-box input[type="search"] {
  flex: 1;
  padding: 14px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: var(--color-surface);
}
.search-box button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}
.search-box button:hover {
  background: var(--color-primary-dark);
}

/* Filter chips (inline, no popups) */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.filter-chip {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--color-text);
}
.filter-chip:hover {
  border-color: var(--color-primary);
}
.filter-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* Category / fruit cards */
.section {
  padding: 24px 0;
}
.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.fruit-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.fruit-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
}
.fruit-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef7ee, #e4f3e6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  position: relative;
}
/* Thẻ trang chủ/tìm kiếm (showSeller — media nằm trong .fruit-card__link):
   tỷ lệ ảnh / (tên+giá+nút) = 58% / 42% theo yêu cầu. Ảnh vuông cho phần media
   chiếm ~58% chiều cao thẻ trên desktop (đo thực tế). KHÔNG áp cho thẻ "Trái
   cây đề xuất" ở trang chi tiết (media là con TRỰC TIẾP của .fruit-card, không
   qua .fruit-card__link) — giữ nguyên 4/3 ở đó. */
.fruit-card__link .fruit-card__media {
  aspect-ratio: 1 / 1;
}
.fruit-card__media::after {
  content: 'Ảnh minh họa';
  position: absolute;
  bottom: 6px;
  right: 8px;
  font-size: 0.8125rem;
  color: #7ea988;
  background: rgba(255,255,255,0.7);
  padding: 1px 6px;
  border-radius: 999px;
}
.fruit-card__body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fruit-card__name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
}
.fruit-card__en {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}
.fruit-card__price {
  margin-top: auto;
  font-weight: 700;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
}
.fruit-card__price--none {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.82rem;
}
/* Tên người bán + nút "Mua ngay" dưới giá — chỉ hiện ở thẻ trang chủ/tìm kiếm,
   KHÔNG hiện ở mục "Trái cây đề xuất" trang chi tiết sản phẩm (xem fruit-card.njk). */
.fruit-card__seller-row {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fruit-card__seller {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}
/* Tên người bán giờ là link tới gian hàng /cua-hang/{slug}/ */
a.fruit-card__seller {
  color: var(--color-primary-dark);
  font-weight: 600;
  text-decoration: none;
}
a.fruit-card__seller:hover { text-decoration: underline; }
.fruit-card__buy-btn {
  width: 100%;
}
.badge {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0 4px 4px 0;
}
.badge--warning {
  background: var(--color-warning-bg);
  color: #855400;
}
.cert-badges {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid #b2e4bb;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}
/* Thẻ "Giao nhanh 2 giờ" — do người bán tự bật (giao_nhanh). Màu cam-accent để
   nổi bật cam kết giao nhanh, tách biệt với badge chứng nhận (xanh) bên trên. */
.giao-nhanh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #fff3e0;
  color: #b45309;
  border: 1px solid #f5c98a;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
/* "Free ship 4 giờ" — loại trừ với giao_nhanh; màu xanh lá để phân biệt rõ. */
.free-ship-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 700;
  background: #e7f6ec;
  color: #15803d;
  border: 1px solid #a7d8b8;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

/* ============================================================
   Thẻ sản phẩm ở Bảng điều khiển người bán — "Sửa nhanh" trực tiếp.
   ============================================================ */
.dash-card__row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.dash-quickedit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--color-border);
}
.dash-quickedit__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-muted);
}
.dash-quickedit__field {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}
.dash-quickedit__field input {
  width: 120px;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}
.dash-quickedit__cb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
  cursor: pointer;
}
.dash-quickedit__save {
  padding: 6px 18px;
}
.dash-quickedit__msg {
  font-size: 0.85rem;
  font-weight: 600;
}

/* Gallery 3 ảnh theo nhóm trên trang chi tiết sản phẩm (fruit-gallery.njk).
   Lưới 3 cột, ảnh vuông; xuống 3 cột nhỏ trên mobile vẫn vừa (grid auto). */
.fruit-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.fruit-gallery__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-primary-light);
  aspect-ratio: 1 / 1;
}
.fruit-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fruit-gallery__note {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Sort / toolbar */
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.toolbar select {
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

/* Fruit detail page */
.fruit-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 20px 0;
}
@media (min-width: 800px) {
  .fruit-hero {
    grid-template-columns: 320px 1fr;
  }
}
.fruit-hero__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef7ee, #e4f3e6);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  position: relative;
  overflow: hidden;
}

/* Hình ảnh thực */
.fruit-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}
.fruit-hero__media:hover .fruit-hero__image {
  transform: scale(1.08);
}

/* Placeholder khi chưa có ảnh */
.fruit-hero__media--placeholder {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef7ee, #e4f3e6);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  position: relative;
}
.fruit-hero__media--placeholder::after {
  content: 'Ảnh minh họa — sẽ cập nhật ảnh thật';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.8125rem;
  background: rgba(255,255,255,0.8);
  padding: 2px 8px;
  border-radius: 999px;
}

.fruit-hero__media-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fruit-hero__media-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  text-align: center;
}
.fruit-hero h1 {
  font-size: 1.6rem;
  margin-bottom: 2px;
}
.fruit-hero__en {
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.fruit-hero__sellers {
  margin-top: 16px;
}
.fruit-hero__sellers h2 {
  font-size: 1.15rem;
  margin: 0 0 10px;
}

/* 3 thông số dinh dưỡng nổi bật (trên bảng đầy đủ) — chip theo badge + % cao nhất */
.nutri-highlights {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nutri-highlight {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: #fff;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius);
}
.nutri-highlight__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}
.nutri-highlight__value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}
.nutri-highlight__pct {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}
@media (max-width: 520px) {
  .nutri-highlights { grid-template-columns: 1fr; }
  .nutri-highlight { flex-direction: row; align-items: baseline; flex-wrap: wrap; gap: 6px; }
}

.nutrition-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.nutrition-table caption {
  text-align: left;
  font-weight: 700;
  padding: 10px 12px;
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.nutrition-table th, .nutrition-table td {
  padding: 8px 12px;
  text-align: left;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.nutrition-table th {
  font-weight: 600;
  color: var(--color-text-muted);
}
.nutrition-table tbody th {
  width: 42%;
  font-weight: 500;
  color: var(--color-text);
}
.nutrition-table thead th:not(:first-child) {
  text-align: right;
}
.nutrition-table td {
  text-align: right;
  white-space: nowrap;
}
.nutrition-table td.no-data {
  color: var(--color-text-muted);
  font-style: italic;
  white-space: normal;
}

.nutrition-row-highlight {
  animation: nutrient-pulse 1.5s ease-in-out 0.5s;
}

@keyframes nutrient-pulse {
  0%, 100% {
    background: transparent;
  }
  50% {
    background: rgba(47, 158, 68, 0.1);
  }
}

.callout {
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 16px 0;
}
.callout--info {
  background: var(--color-primary-light);
  border: 1px solid #b2e4bb;
}
.callout--warning {
  background: var(--color-warning-bg);
  border: 1.5px solid var(--color-warning-border);
}
.dinhduong-grid .callout--warning,
.nutri-modal .callout--warning {
  border-color: var(--color-primary);
}
.callout--danger {
  background: var(--color-danger-bg);
  border: 1.5px solid var(--color-danger-border);
  color: var(--color-danger-text);
}
.effect-list {
  margin: 0;
  padding-left: 20px;
}
.effect-list li {
  margin: 4px 0;
}
.callout__title {
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}
.price-table th, .price-table td {
  padding: 10px 8px;
  border-top: 1px solid var(--color-border);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: middle;
}
.price-table th {
  color: var(--color-text-muted);
  font-weight: 600;
}
.price-table td.price-cell {
  font-weight: 700;
  color: var(--color-primary-dark);
  white-space: nowrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--radius);
  padding: 8px 14px;
  font-weight: 700;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    #228a3f 100%
  );
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.1),
    0 8px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 6px 8px rgba(0, 0, 0, 0.12),
    0 12px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: linear-gradient(
    180deg,
    #35b049 0%,
    #1f6f2f 100%
  );
}
.btn:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.1),
    inset 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn--call {
  background: linear-gradient(
    180deg,
    var(--color-accent) 0%,
    #d97d05 100%
  );
  box-shadow:
    0 4px 6px rgba(245, 159, 0, 0.25),
    0 8px 12px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.85rem;
}
.btn--call:hover {
  background: linear-gradient(
    180deg,
    #faa500 0%,
    #c96d00 100%
  );
  box-shadow:
    0 6px 8px rgba(245, 159, 0, 0.3),
    0 12px 16px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--call:active {
  box-shadow:
    0 2px 4px rgba(245, 159, 0, 0.2),
    inset 0 2px 4px rgba(0, 0, 0, 0.15);
}
.btn--zalo {
  background: #0068ff;
  color: #fff;
}
.btn--zalo:hover {
  background: #0052cc;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-row .btn {
  flex: 1 1 0;
  min-width: 0;
}
/* Bảng giá trang chi tiết — cột "Liên hệ": 3 nút (Gọi/Zalo/Giỏ) nới rộng ~20%
   và KHÔNG co nhỏ hơn nội dung (bỏ min-width:0) để chữ không bị tràn ra ngoài
   nút. Chỉ áp trong .price-table, không đụng CTA mobile/đăng ký bán hàng. */
.price-table .btn-row .btn {
  min-width: auto;
  padding-left: 17px;
  padding-right: 17px;
}
/* Trang đăng ký bán hàng: 2 nút Email/Zalo chỉ có text (không icon), nên để
   rộng vừa đúng nội dung thay vì giãn đều chiếm hết hàng như CTA gọi/Zalo. */
.btn-row--auto .btn {
  flex: 0 0 auto;
}
/* Dòng khuyến mãi hôm nay — text chạy shuttle (bật qua lại 2 đầu, không lặp
   1 chiều như marquee thường), xem partials/promo-ticker.njk. */
.promo-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  margin: 20px 0;
  padding: 0 16px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-accent), var(--color-accent-dark));
  background-size: 200% 100%;
  animation: promoTickerGlow 4s linear infinite;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.promo-ticker__icon {
  flex: 0 0 auto;
  font-size: 18px;
  animation: promoTickerPulse 1.1s ease-in-out infinite;
}
.promo-ticker__track {
  position: relative;
  flex: 1 1 auto;
  height: 20px;
  overflow: hidden;
}
/* Tốc độ shuttle dùng CHUNG cho dòng khuyến mãi (ngang) và ticker 2 bên (dọc),
   để "tốc độ bằng nhau" theo yêu cầu. 14.3s = 10s / 0.7 (giảm tốc còn 70%). */
:root { --ticker-shuttle-speed: 14.3s; }
.promo-ticker__text {
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  /* "linear" = tốc độ CHẠY ĐỀU (yêu cầu). ease-in-out cũ làm chữ chậm ở 2 đầu,
     nhanh ở giữa nên nhìn giật cục — đổi sang linear cho lướt đều suốt hành trình. */
  animation: promoTickerShuttle var(--ticker-shuttle-speed) linear infinite alternate;
}
@keyframes promoTickerShuttle {
  from { left: 0; transform: translateX(0); }
  to   { left: 100%; transform: translateX(-100%); }
}
@keyframes promoTickerGlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes promoTickerPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .promo-ticker,
  .promo-ticker__icon,
  .promo-ticker__text {
    animation: none;
  }
}

.hot-today {
  background: linear-gradient(135deg, rgba(47, 158, 68, 0.05) 0%, rgba(245, 159, 0, 0.05) 100%);
  padding: 32px 0;
  margin: 24px 0;
  border-radius: var(--radius-lg);
}

.hot-today__title {
  margin: 0 0 8px 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hot-today__subtitle {
  margin: 0 0 20px 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.hot-today__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* Card là grid item nên bị kéo giãn cho bằng thẻ cao nhất cùng hàng. Phải để
   flex-column ở đây, nếu không phần chiều cao dôi ra sẽ dồn hết vào thẻ <a>
   bên trong (xem .hot-today__link), đẩy hàng người bán + nút "Mua ngay" xuống
   dưới đáy card và bị overflow:hidden cắt mất — giống lỗi đã gặp 31/07/2026. */
.hot-today__card {
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.hot-today__card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(47, 158, 68, 0.15);
  transform: translateY(-2px);
}

/* flex:1 (KHÔNG dùng height:100%) — chỉ ăn phần chiều cao còn thừa sau khi
   hàng người bán đã lấy đủ chỗ của nó. */
.hot-today__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.hot-today__image {
  width: 100%;
  height: 160px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hot-today__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hot-today__header {
  margin-bottom: 8px;
  margin-top: 0;
}

.hot-today__header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
}

.hot-today__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px 16px 16px;
  flex-grow: 1;
}

.hot-today__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(47, 158, 68, 0.1) 100%);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  white-space: nowrap;
}

.hot-today__highlight {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
}

.hot-today__price {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 700;
}
.hot-today__seller-row {
  padding: 0 16px 16px;
}

.empty-state {
  background: #f1f4f0;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--color-text-muted);
  text-align: center;
}

/* Mobile bottom CTA bar */
.mobile-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 8px;
}
.mobile-cta__price {
  font-weight: 800;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  line-height: 1.2;
}
.mobile-cta .btn-row {
  gap: 6px;
}
.mobile-cta .btn {
  padding: 7px 10px;
  font-size: 0.8125rem;
}
.mobile-cta__price small {
  display: block;
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}
@media (min-width: 900px) {
  .mobile-cta {
    display: none;
  }
}

/* Seller profile */
.seller-info {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 20px;
}
.seller-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 12px 0 0;
}
.seller-info dt {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.seller-info dd {
  margin: 0;
  font-size: 0.9rem;
}

/* Generic content pages */
.prose h2 {
  margin-top: 1.4em;
  font-size: 1.25rem;
}
.prose ul {
  padding-left: 1.2em;
}
.legal-placeholder {
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--color-text-muted);
  background: #f7f9f6;
}

/* 404 */
.page-404 {
  text-align: center;
  padding: 48px 0;
}
.page-404 h1 {
  font-size: 2.2rem;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 520px;
}
.contact-form label {
  font-weight: 600;
  font-size: 0.9rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-surface);
  width: 100%;
}
.contact-form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.contact-form .checkbox-label input {
  width: auto;
}
/* "Còn hàng" + "Giao nhanh 2 giờ": làm nổi bật + ô tích to 150% (yêu cầu người
   bán). Viền + nền xanh nhạt để đập vào mắt khi đăng/sửa sản phẩm. */
.contact-form .checkbox-label--noibat {
  font-size: 1.05rem;
  font-weight: 700;
  gap: 12px;
  padding: 12px 14px;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius);
  background: rgba(47, 158, 68, 0.07);
  margin: 8px 0;
}
.contact-form .checkbox-label--noibat input[type="checkbox"] {
  width: auto;
  transform: scale(1.5);
  transform-origin: left center;
  margin-right: 8px;
  accent-color: var(--color-primary);
  cursor: pointer;
}
/* Nút "Làm mới tất cả sản phẩm" + chú thích. */
.lam-moi-box {
  margin: 4px 0 18px;
}
.lam-moi-note {
  margin: 8px 0 0;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary-dark);
}
.lam-moi-lienhe {
  display: inline-block;
  margin-top: 10px;
}
/* Link "Quên mật khẩu?" ở trang đăng nhập. */
.quen-mk-link {
  font-weight: 700;
}
.form-hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0;
}
.link-button {
  align-self: flex-start;
  background: none;
  border: none;
  padding: 0;
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}
.product-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
  min-width: 0;
}
.product-row select {
  flex: 2;
  min-width: 0;
}
.product-row input {
  flex: 1;
  min-width: 0;
}
.product-row__remove {
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  cursor: pointer;
  color: var(--color-text-muted);
}

/* ============================================================
   HALONA-STYLE ADDITIONS — thêm vào hcmfruit
   ============================================================ */

/* --- Google Font --- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --- Topbar (phong cách Halona) --- */
.topbar {
  background: var(--color-primary-dark);
  color: #fff;
  font-size: 0.82rem;
  padding: 6px 0;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}
.topbar a { color: #b9f6c9; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar__contact { white-space: nowrap; }

/* --- Logo HCM FRUIT --- */
.site-header__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
}
.logo-icon { flex-shrink: 0; }
.brand-text {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-primary-dark);
  line-height: 1;
}
.brand-text em {
  font-style: normal;
  color: var(--color-accent);
}
.site-header__nav a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 2px;
}

/* --- Hero Banner với ảnh thật --- */
.hero-banner {
  position: relative;
  min-height: 380px;
  background: #1b4332;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.75;
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
}
.hero-banner__content {
  position: relative;
  z-index: 2;
  padding: 48px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero-banner__title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero-banner__desc {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  max-width: 50ch;
  margin-bottom: 20px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-banner__search {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin-bottom: 16px;
}
.hero-banner__search input {
  flex: 1;
  padding: 13px 16px;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  background: rgba(255,255,255,0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.hero-banner__search button {
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 0 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.hero-banner__search button:hover { background: var(--color-primary-dark); }
.hero-banner__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-banner__filters .filter-chip {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
  backdrop-filter: blur(4px);
}
.hero-banner__filters .filter-chip:hover {
  background: rgba(255,255,255,0.32);
  border-color: #fff;
}

/* --- Khu vực danh mục nổi bật (3 banner kiểu Halona) --- */
.cat-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px 0;
}
@media (min-width: 700px) {
  .cat-feature { grid-template-columns: repeat(3, 1fr); }
}
.cat-feature__card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/2;
  border: 2px solid var(--border-gold, #E0D8C3);
  cursor: pointer;
  display: block;
  text-decoration: none !important;
}
.cat-feature__card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cat-feature__card:hover img { transform: scale(1.07); }
.cat-feature__label {
  position: absolute;
  bottom: 16px; left: 50%;
  transform: translateX(-50%);
  /* Độ trong suốt +300% so với bản gốc (rgba alpha 0.92 -> 0.68): trong suốt gốc
     8% (=100%-92%) x 4 = 32% trong suốt, tức độ đục còn lại 68% (=1-0.32). */
  background: rgba(56, 142, 60, 0.68);
  color: #fff;
  border-radius: 8px;
  padding: 8px 20px;
  text-align: center;
  min-width: 140px;
  backdrop-filter: blur(2px);
}
.cat-feature__label strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}
.cat-feature__label span {
  font-size: 0.8rem;
  opacity: 0.9;
  font-style: italic;
}

/* --- Tiêu đề chuyên mục kiểu Halona (đường kẻ 2 bên) --- */
.section-title-halona {
  text-align: center;
  margin-bottom: 8px;
}
.section-title-halona h2 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.section-title-halona h2::before,
.section-title-halona h2::after {
  content: '';
  display: inline-block;
  width: 40px;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}
.section-title-halona p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 4px 0 0;
}

/* --- Thẻ sản phẩm Halona: viền vàng, zoom ảnh 200%, badge dinh dưỡng --- */
.fruit-card {
  border: 1.5px solid var(--border-gold, #E0D8C3);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.fruit-card:hover {
  box-shadow: 0 8px 28px rgba(56,142,60,0.18);
  transform: translateY(-3px);
  text-decoration: none;
}
.fruit-card__media {
  overflow: hidden;
  background: #f8faf8;
}
.fruit-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.fruit-card__media img,
.fruit-card__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(.25,.8,.25,1);
  display: block;
}
/* Zoom nhẹ khi rê chuột — ảnh chụp thật, không phóng to quá đà làm vỡ nét. */
.fruit-card:hover .fruit-card__media img,
.fruit-card:hover .fruit-card__media svg {
  transform: scale(1.08);
}

/* Nhãn dinh dưỡng badge trên thẻ */
.fruit-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 4px;
}
.badge--nutrition {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}

/* Giá gạch ngang và giá thực tế */
.fruit-card__price-original {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.fruit-card__price-sale {
  font-size: 1.05rem;
  font-weight: 800;
  color: #e53935;
}

/* Nút Xem chi tiết / Gọi điện */
.btn-primary {
  display: inline-block;
  background: var(--color-primary);
  color: #fff !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s;
  text-decoration: none !important;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  text-decoration: none;
}
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-primary-dark) !important;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  text-align: center;
  border: 2px solid var(--color-primary);
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none !important;
}
.btn-outline:hover {
  background: var(--color-primary-light);
  text-decoration: none;
}
.fruit-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.fruit-card__actions a, .fruit-card__actions button {
  flex: 1;
  min-width: 80px;
  text-align: center;
}

/* --- Biểu đồ giá Aeon Mall --- */
.price-chart-section {
  background: #fff;
  border: 1.5px solid var(--border-gold, #E0D8C3);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 24px 0;
}
.price-chart-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.price-chart-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
}
.price-chart-section__meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.price-chart-section__meta a {
  color: var(--color-primary-dark);
  font-weight: 600;
}
.price-chart-section canvas {
  width: 100% !important;
  max-height: 300px;
}
.price-chart-section__products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.price-chip {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
  border: 1px solid #b2e4bb;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.price-chip strong { color: #e53935; }

/* --- Footer 3 cột --- */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 32px 0 16px;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1.4fr 1fr; }
}
.footer-col__title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}
.footer-slogan {
  color: #b9f6c9;
  font-style: italic;
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.footer-address {
  font-style: normal;
  color: #9db3a5;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 10px;
}
.footer-address a { color: #b9f6c9; }
.footer-desc {
  color: #7d9488;
  font-size: 0.82rem;
  line-height: 1.6;
}
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-list li {
  font-size: 0.82rem;
  color: #9db3a5;
  line-height: 1.5;
}
.footer-list strong { color: #c8e6c9; }
.footer-sources {
  font-size: 0.8rem;
  color: #7d9488;
  margin-top: 12px;
  line-height: 1.6;
}

/* --- Section "Xem thêm" nút kiểu Halona --- */
.load-more-wrap {
  text-align: center;
  padding: 16px 0 8px;
}
.btn-load-more {
  display: inline-block;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  padding: 10px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  text-decoration: none;
}
.btn-load-more:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

/* ============================================================
   CSS Variables bổ sung (Halona palette)
   ============================================================ */
:root {
  --border-gold: #E0D8C3;
}

/* ============================================================
   Animations: 3D flip + fade-in
   ============================================================ */
@keyframes flip3d {
  0% {
    opacity: 0;
    transform: perspective(1000px) rotateY(-90deg);
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: perspective(1000px) rotateY(0deg);
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-40px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 3D Flip effect cho "Hot hôm nay" */
.hot-today__title {
  animation: flip3d 0.8s ease-out;
  transform-style: preserve-3d;
}

/* Fade-in cho "Tác dụng đến sức khỏe" và "Lưu ý" */
.section--fade-in {
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Stagger animation cho Hot hôm nay cards */
.hot-today__card {
  animation: slideInLeft 0.5s ease-out forwards;
}

.hot-today__card:nth-child(1) { animation-delay: 0s; }
.hot-today__card:nth-child(2) { animation-delay: 0.1s; }
.hot-today__card:nth-child(3) { animation-delay: 0.2s; }
.hot-today__card:nth-child(4) { animation-delay: 0.3s; }
.hot-today__card:nth-child(5) { animation-delay: 0.4s; }
.hot-today__card:nth-child(6) { animation-delay: 0.5s; }
.hot-today__card:nth-child(7) { animation-delay: 0.6s; }
.hot-today__card:nth-child(8) { animation-delay: 0.7s; }
.hot-today__card:nth-child(9) { animation-delay: 0.8s; }
.hot-today__card:nth-child(10) { animation-delay: 0.9s; }

/* ============================================================
   Animations bổ sung: pulse CTA, mobile bar, scroll-reveal, badges
   ============================================================ */
@keyframes ctaPulse {
  0%, 100% {
    box-shadow:
      0 4px 6px rgba(245, 159, 0, 0.25),
      0 8px 12px rgba(0, 0, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow:
      0 4px 6px rgba(245, 159, 0, 0.25),
      0 0 0 8px rgba(245, 159, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@keyframes slideUpCta {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  30% { transform: translateY(-8px); }
  55% { transform: translateY(0); }
  75% { transform: translateY(-4px); }
}

/* #8 Pulse nhẹ cho nút Gọi trên thanh CTA di động — chỉ 1 nút/trang nên
   không gây rối mắt như khi áp cho mọi hàng trong bảng giá. */
.mobile-cta .btn--call {
  animation: ctaPulse 2.4s ease-in-out infinite;
}

/* #9-10 CTA bar mobile: trượt lên khi vào trang + nảy nhẹ 1 lần để nhắc chú ý */
.mobile-cta {
  animation: slideUpCta 0.4s ease-out;
}
.mobile-cta.mobile-cta--bounce {
  animation: ctaBounce 0.6s ease-in-out;
}

/* #11 Fade-in khi cuộn tới cho card sản phẩm — class .scroll-fade do JS gắn
   (progressive enhancement: không có JS thì card hiện bình thường). */
.scroll-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.scroll-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* #6 Hover highlight cho bảng giá người bán — dùng trắng vì nền trang đã là
   var(--color-primary-light), tô lại đúng màu đó sẽ vô hình (đã gặp lỗi này
   khi kiểm tra thực tế: rowBg hover trùng bodyBg). */
.price-table tbody tr {
  transition: background-color 0.2s ease;
}
.price-table tbody tr:hover {
  background-color: #fff;
}

/* Mobile: bảng giá 3 cột không co được (nút Gọi chứa nguyên số điện thoại có
   white-space:nowrap nên ép cột rộng, kéo cả bảng tràn lề >375px). Dưới 600px
   xếp mỗi hàng thành 1 khối dọc, nút full-width — số điện thoại luôn vừa trong
   nút, hết tràn lề. Đã kiểm tra thực tế trên khung 375px. */
@media (max-width: 599px) {
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }
  .price-table thead {
    display: none;
  }
  .price-table tbody tr {
    border-top: 1px solid var(--color-border);
    padding: 12px 0;
  }
  .price-table td {
    border-top: none;
    padding: 4px 0;
  }
  .price-table td.price-cell {
    font-size: 1.05rem;
  }
  .btn-row {
    flex-direction: column;
  }
  .btn-row .btn {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* #7 Fade-in stagger cho badge dinh dưỡng trên trang chi tiết sản phẩm */
.fruit-hero__badges .badge {
  opacity: 0;
  animation: fadeInUp 0.4s ease-out forwards;
}
.fruit-hero__badges .badge:nth-child(1) { animation-delay: 0.1s; }
.fruit-hero__badges .badge:nth-child(2) { animation-delay: 0.2s; }
.fruit-hero__badges .badge:nth-child(3) { animation-delay: 0.3s; }
.fruit-hero__badges .badge:nth-child(4) { animation-delay: 0.4s; }
.fruit-hero__badges .badge:nth-child(5) { animation-delay: 0.5s; }

/* #13 Smooth scroll cho anchor link toàn site */
html {
  scroll-behavior: smooth;
}

/* #15 Tôn trọng người dùng nhạy cảm chuyển động — tắt gần hết animation/transition */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Form "Sửa thông số" (admin) — 1 hàng full-width chèn dưới hàng sản phẩm trong
   bảng "Sản phẩm đã duyệt". Cho admin đổi nhóm/tên/giao nhanh/ghi chú/chứng nhận
   của sản phẩm bất kỳ người bán nào. */
.pa-edit-row td { background: rgba(0, 0, 0, 0.035); }
.pa-edit {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 12px 10px;
}
.pa-edit label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.pa-edit input[type="text"],
.pa-edit select {
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  min-width: 150px;
}
.pa-edit .pa-edit__cb {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: inherit;
}
.pa-edit__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.pa-edit__msg { font-size: 0.85rem; }

/* ===== Trang chi tiết: bố cục 2 cột — Dinh dưỡng (trái) | Sức khỏe (phải) ===== */
.dinhduong-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
  margin-top: 12px;
}
@media (min-width: 800px) {
  /* Hai cột cao bằng nhau (stretch). Cột trái = h2 + bảng (bảng giãn lấp đầy);
     cột phải = Tác dụng + Lưu ý (callout "Lưu ý" giãn lấp đầy). Nhờ vậy:
     - MÉP TRÊN bảng ngang mép trên callout "Tác dụng" (cùng đỉnh, cùng khoảng
       cách dưới h2);
     - MÉP DƯỚI bảng ngang mép dưới callout "Lưu ý" (cùng đáy cột).
     Áp dụng cho mọi loại trái cây bất kể số dòng/số gạch đầu dòng. */
  .dinhduong-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }

  /* Ẩn caption (giữ cho screen-reader) để mép trên bảng = hàng tiêu đề. */
  .dinhduong-grid__nutri .nutrition-table caption {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  /* Cột trái: bảng giãn xuống hết chiều cao cột. */
  .dinhduong-grid__nutri { display: flex; flex-direction: column; }
  .dinhduong-grid__tablewrap { flex: 1 1 auto; }
  .dinhduong-grid__tablewrap .nutrition-table { height: 100%; margin: 0; }

  /* Cột phải: callout "Tác dụng" đầu tiên bắt đầu ngay dưới h2 (bỏ margin-top
     mặc định) để ngang mép trên bảng; section "Lưu ý" cuối giãn lấp đầy đáy cột. */
  .dinhduong-grid__suckhoe > .section:first-child .callout { margin-top: 0; }
  .dinhduong-grid__suckhoe > .section:last-child { flex: 1 1 auto; display: flex; flex-direction: column; }
  /* margin-bottom:0 để mép dưới callout = đáy vùng nội dung cột (bảng không có
     margin) → mép dưới bảng và mép dưới "Lưu ý" trùng nhau. */
  .dinhduong-grid__suckhoe > .section:last-child .callout { flex: 1 1 auto; margin-bottom: 0; }
}
/* Bỏ margin-top mặc định của .section trong lưới để 2 cột thẳng đầu; cột phải
   (Tác dụng trên + Lưu ý dưới) xếp dọc, cách đều. */
.dinhduong-grid .section { margin-top: 0; }
.dinhduong-grid__suckhoe { display: flex; flex-direction: column; gap: 20px; }
.dinhduong-grid__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dinhduong-xemthem { margin-top: 12px; }
.medical-disclaimer {
  margin-top: 10px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--color-text-muted);
}

/* ===== Modal dinh dưỡng đầy đủ (mở từ "Xem thêm") ===== */
.nutri-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.nutri-modal[hidden] { display: none; }
.nutri-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.nutri-modal__panel {
  position: relative;
  background: var(--color-surface, #fff);
  border-radius: var(--radius-lg, 12px);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.nutri-modal__panel h2 { margin-top: 0; padding-right: 36px; }
.nutri-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 6px;
}
.nutri-modal__close:hover { color: var(--color-primary-dark); }

/* ============================================================
   Ticker dọc 2 bên — trang trí, chỉ hiện màn hình rất rộng.
   Ngưỡng 1500px (không phải 1200px của .container) vì khối nội dung chính
   canh giữa max-width 1200px — dưới 1500px, phần lề 2 bên không đủ chỗ
   150px cho ticker mà không đè lên nội dung chính.
   ============================================================ */
.side-ticker {
  display: none;
}
/* ẨN side sticker theo yêu cầu: giữ display:none ở MỌI khổ màn hình.
   (Trước đây từ 1500px trở lên sẽ display:block — nay tắt hẳn.) Muốn bật lại
   sau này chỉ cần đổi dòng "display: none" ngay dưới về "display: block". */
@media (min-width: 1500px) {
  .side-ticker {
    display: none;
    /* Neo theo TÀI LIỆU (không phải viewport) để dải ticker giới hạn đúng vùng
       từ dưới ảnh hero đến hết biểu đồ giá EMART — top + height do JS đo và đặt
       (common.js), vì chiều cao biểu đồ đổi sau khi tải async. Giá trị dưới chỉ
       là dự phòng trước khi JS chạy. */
    position: absolute;
    top: 520px;
    height: 900px;
    width: 150px;
    overflow: hidden;
    z-index: 5;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  }
  .side-ticker--left { left: 10px; }
  .side-ticker--right { right: 10px; }
}
.side-ticker__track {
  /* Shuttle DỌC lên-xuống: khối nội dung đi từ đỉnh (dưới header) xuống đáy
     (trên footer) rồi bật lại, cùng nhịp với dòng khuyến mãi (alternate). */
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: sideTickerShuttle var(--ticker-shuttle-speed) ease-in-out infinite alternate;
}
.side-ticker__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
  box-shadow: var(--shadow);
}
.side-ticker__item strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 14px;
  margin-bottom: 2px;
}
.side-ticker--right .side-ticker__item strong {
  color: var(--color-danger-text);
}
@keyframes sideTickerShuttle {
  from { top: 0;    transform: translateY(0); }
  to   { top: 100%; transform: translateY(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .side-ticker__track {
    animation: none;
  }
}

/* ============================================================
   Giỏ hàng khách (cart.js) — nút nổi + ngăn kéo trượt phải.
   Không thanh toán online; chỉ gom đơn rồi bàn giao qua Zalo.
   ============================================================ */
.btn--cart {
  background: var(--color-surface);
  color: var(--color-primary-dark, var(--color-primary));
  border: 1px solid var(--color-primary);
}
.btn--cart:hover { background: rgba(47, 158, 68, 0.08); }
.btn--copy {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.fruit-card__actions { display: flex; gap: 6px; align-items: stretch; }
.fruit-card__cart-btn { flex: 0 0 auto; padding-left: 10px; padding-right: 10px; }

/* Nút nổi mở giỏ */
.cart-fab {
  position: fixed;
  right: 16px;
  bottom: 88px; /* chừa chỗ cho thanh CTA đáy ở trang sản phẩm */
  z-index: 1200;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-primary);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.cart-fab__count {
  position: absolute; top: -4px; right: -4px;
  min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px;
  background: var(--color-accent, #f59f00); color: #fff;
  font-size: 12px; font-weight: 700; line-height: 22px;
  box-shadow: 0 0 0 2px #fff;
}

.cart-scrim {
  position: fixed; inset: 0; z-index: 1250;
  background: rgba(0,0,0,0.45);
}
body.cart-open { overflow: hidden; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1300;
  width: min(440px, 94vw);
  background: var(--color-bg, #fff);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.2);
}
/* [hidden] chỉ đặt display:none ở UA stylesheet; các rule .cart-* set display
   phía trên sẽ thắng và làm phần tử KHÔNG bao giờ ẩn được (nút Đóng vô tác dụng,
   scrim/ngăn giỏ đè chặn click "Thêm vào giỏ"). Rule đặc hiệu hơn này khôi phục
   đúng hành vi ẩn. */
.cart-fab[hidden], .cart-scrim[hidden], .cart-drawer[hidden] { display: none !important; }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--color-border);
}
.cart-drawer__head h2 { margin: 0; font-size: 1.1rem; }
.cart-drawer__close {
  border: none; background: none; font-size: 20px; cursor: pointer;
  color: var(--color-text-muted); line-height: 1;
}
.cart-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; }
.cart-drawer__foot { border-top: 1px solid var(--color-border); padding: 12px 16px; }
.cart-clear {
  background: none; border: 1px solid var(--color-border); border-radius: var(--radius);
  color: var(--color-danger-text, #c92a2a); padding: 6px 12px; cursor: pointer; font-size: 0.85rem;
}
.cart-note { margin: 8px 0 0; font-size: 0.78rem; color: var(--color-text-muted); }
.cart-empty { color: var(--color-text-muted); text-align: center; padding: 24px 0; }

.cart-group {
  border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 12px; margin-bottom: 14px;
}
.cart-group__seller { font-weight: 700; margin-bottom: 8px; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 0; border-bottom: 1px dashed var(--color-border);
}
.cart-line:last-child { border-bottom: none; }
.cart-line__info { flex: 1 1 120px; display: flex; flex-direction: column; }
.cart-line__name { font-weight: 600; font-size: 0.92rem; }
.cart-line__price { font-size: 0.78rem; color: var(--color-text-muted); }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button {
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--color-border); background: var(--color-surface);
  font-size: 16px; cursor: pointer; line-height: 1;
}
.cart-qty__n { min-width: 22px; text-align: center; font-weight: 600; }
.cart-line__sub { min-width: 76px; text-align: right; font-weight: 600; font-size: 0.9rem; }
.cart-line__del { border: none; background: none; cursor: pointer; font-size: 16px; }
.cart-group__total { text-align: right; margin: 10px 0; }
.cart-group__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cart-group__actions .btn { flex: 1 1 auto; text-align: center; }
.cart-group__hint { margin: 8px 0 0; font-size: 0.76rem; color: var(--color-text-muted); }

.cart-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  z-index: 1400;
  background: rgba(20,20,20,0.92); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-size: 0.85rem;
  max-width: 90vw; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.cart-toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   Accordion mục quản trị (admin/duyet) — nút mở/thu từng phần.
   ============================================================ */
.admin-acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 12px 16px;
  background: var(--color-surface, #fff);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.admin-acc__head:hover { background: var(--color-bg-muted, #f5f5f5); }
.admin-acc__title { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.admin-acc__chev {
  flex: 0 0 auto;
  font-size: 1rem;
  color: var(--color-text-muted);
  transition: transform 0.18s ease;
}
.admin-acc__head[aria-expanded="true"] .admin-acc__chev { transform: rotate(180deg); }
.admin-acc__body { padding: 8px 2px 4px; }

/* ============================================================
   Bảng quản trị sản phẩm (admin/duyet) — lọc + sửa nhanh.
   ============================================================ */
.admin-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0;
}
.admin-filter input[type="search"] {
  flex: 1 1 240px;
  min-width: 180px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
}
.admin-filter select {
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--color-surface);
}
.admin-filter__hot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.admin-filter__count {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-left: auto;
}

/* Cuộn ngang khi hẹp (mobile) thay vì vỡ layout — nguyên tắc responsive. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th,
.admin-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  font-weight: 700;
}
.admin-table__hot { text-align: center; }
.admin-table tr.is-hot { background: rgba(245, 159, 0, 0.08); }
.admin-thumb {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.admin-thumb--empty { background: var(--color-border); }

.cell-input {
  width: 96px;
  padding: 5px 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font: inherit;
}
.cell-hot {
  width: 64px;
  text-align: center;
  font-weight: 700;
}

/* Nút nhỏ trong bảng (tồn kho / xóa) */
.btn-chip {
  padding: 5px 9px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  cursor: pointer;
  font-size: 0.82rem;
  white-space: nowrap;
}
.btn-chip:hover { border-color: var(--color-text-muted); }
.btn-chip--ok { color: var(--color-success-text, green); border-color: rgba(47, 158, 68, 0.4); }
.btn-chip--off { color: var(--color-danger-text); border-color: var(--color-danger-border); }
.btn-chip--danger { color: var(--color-danger-text); border-color: var(--color-danger-border); }
.inline-confirm { display: inline-flex; gap: 4px; }


/* ============================================================
   Gian hàng người bán — /cua-hang/{slug}/
   ============================================================ */
.cua-hang__meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 16px;
  margin: 14px 0 0;
}
.cua-hang__meta dt { font-weight: 700; color: var(--color-text-muted); }
.cua-hang__meta dd { margin: 0; }
.cua-hang__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.shop-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface, #fff);
  overflow: hidden;
}
.shop-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
}
.shop-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.shop-card__noimg {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; font-size: 2.4rem;
}
.shop-card__soldout-tag {
  position: absolute; left: 8px; top: 8px;
  background: rgba(0,0,0,0.68); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 3px 8px; border-radius: 999px;
}
.shop-card__body {
  display: flex; flex-direction: column; gap: 6px;
  padding: 10px 12px 12px;
}
.shop-card__name {
  font-weight: 700; color: var(--color-text); text-decoration: none;
  line-height: 1.3;
}
.shop-card__name:hover { text-decoration: underline; }
.shop-card__price {
  color: var(--color-primary-dark); font-weight: 700;
}
.shop-card__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.shop-card__note {
  margin: 0; font-size: 0.82rem; color: var(--color-text-muted);
}
.shop-card__actions { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.shop-card__actions .btn { width: 100%; }
/* Hết hàng: làm mờ nhưng vẫn hiển thị (theo yêu cầu) */
.shop-card--soldout { opacity: 0.55; }

/* ============================================================
   So sánh dinh dưỡng (compare.js + so-sanh.js) — nút "⚖️" trên
   thẻ/trang chi tiết, pill nổi, trang /so-sanh/.
   ============================================================ */
.btn--compare {
  background: var(--color-surface);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn--compare:hover { border-color: var(--color-primary); color: var(--color-primary-dark, var(--color-primary)); }
.btn--compare.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary-dark, var(--color-primary));
  border-color: var(--color-primary);
}
.fruit-card__compare-btn { flex: 0 0 auto; padding-left: 10px; padding-right: 10px; }

/* Pill nổi góc trái dưới (giỏ hàng ở góc phải, không trùng chỗ) */
.compare-pill {
  position: fixed;
  left: 16px;
  bottom: 88px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.compare-pill[hidden] { display: none !important; }

.compare-intro-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.compare-page .compare-intro { color: var(--color-text-muted); max-width: 64ch; margin-bottom: 0; }
.compare-reset { flex: 0 0 auto; white-space: nowrap; }

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 8px 12px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}
.compare-table thead th {
  text-align: center;
  vertical-align: top;
  padding-top: 12px;
  background: var(--color-primary-light);
}
.compare-table tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--color-text);
  white-space: normal;
}
.compare-table td.no-data {
  color: var(--color-text-muted);
  font-style: italic;
  white-space: normal;
}
.compare-table td.compare-table__max {
  font-weight: 700;
  color: var(--color-primary-dark, var(--color-primary));
}
.compare-table__col { min-width: 148px; }
.compare-table__col img { display: block; margin: 0 auto 6px; border-radius: 6px; object-fit: cover; width: 72px; height: 54px; }
.compare-table__select {
  display: block;
  width: 100%;
  max-width: 160px;
  margin: 0 auto;
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: 700;
  text-align: center;
  text-align-last: center;
}
.compare-table__price { font-weight: 400; color: var(--color-text-muted); font-size: 0.8rem; margin-top: 4px; }
.compare-table__name {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-primary-dark, var(--color-primary));
  text-decoration: none;
}
.compare-table__name:hover { text-decoration: underline; }

.compare-suckhoe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.compare-suckhoe-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--color-surface);
}
.compare-suckhoe-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.compare-suckhoe-card h4 { margin: 12px 0 6px; font-size: 0.88rem; color: var(--color-text-muted); }
.compare-suckhoe-card h4:first-of-type { margin-top: 0; }
.compare-suckhoe-card .callout { margin: 0; }

.shop-card--soldout .shop-card__media img { filter: grayscale(1); }
