/* =========================================================
   Values Page Styles
   ========================================================= */

/* ---- Design tokens ---- */
:root {
  --bg-page: #f4f5f7;
  --header-bg: #072908;
  --accent: #072908;
  --accent-light: #0b4f2d;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --surface-1: rgba(0,0,0,0.03);
  --surface-2: rgba(0,0,0,0.06);
  --surface-3: rgba(0,0,0,0.12);

  --text-primary: #111827;
  --text-secondary: #374151;
  --text-muted: #6b7280;

  --radius-lg: 10px;
  --shadow-outer: 0 6px 16px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

html, body {
  height: 100%;
  min-height: 100vh;
}

body {
  background-color: var(--bg-page);
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-secondary);
}

/* =========================================================
   Brand Header (matches category/homepage)
   ========================================================= */
.brand-header {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,.08);
  backdrop-filter: blur(6px);
  color: var(--text-primary);
}

.brand-logo {
  height: 65px; max-width: 250px; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.15));
  cursor: pointer; transition: transform .25s ease;
}
.brand-logo:hover { transform: scale(1.02); }

.brand-actions {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text-primary);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 8px 14px; border-radius: 999px;
  font-weight: 600; border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer; line-height: 1;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .08s ease;
}
.btn-label-short { display: none; }

.btn-secondary {
  background: transparent;
  color: #fff;
  border: none;
  box-shadow: none;
  font-size: 14px;
  text-decoration: none;
}
.btn-secondary:hover {
  background: transparent;
  color: rgba(255,255,255,0.75);
}

.btn-feedback { background: #e8a020; color: #fff; border: none; font-size: 14px; text-decoration: none; }
.btn-feedback:hover { background: #d18f18; color: #fff; transform: none; text-decoration: none; }

/* =========================================================
   Values Page Layout
   ========================================================= */
.values-page {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 4px 100px;
}

/* ---- Values nav (horizontal scrollable tabs) ---- */
.values-nav {
  position: sticky; top: 58px; z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}
.values-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.values-nav-inner::-webkit-scrollbar { display: none; }
.values-nav-link {
  display: inline-flex; align-items: center;
  padding: 14px 20px;
  font-size: 13px; font-weight: 600;
  color: #555;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.values-nav-link:hover {
  color: #072908;
  border-bottom-color: #072908;
}
.values-nav-link.active {
  color: #072908;
  border-bottom-color: #072908;
  font-weight: 700;
}

/* =========================================================
   Hero Grid (bento-style layout)
   ========================================================= */
.hero-grid {
  display: grid;
  /* 4 columns: first 2 for the feature card, last 2 for the right side */
  grid-template-columns: 55fr 55fr 45fr 45fr;
  /* Row 1 taller (why card), row 2 shorter (small boxes) */
  grid-template-rows: 3fr 2fr;
  gap: 12px;
  padding: 20px 0 24px;
  height: 500px;
}

/* Shared card base */
.hero-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

/* Box 1: Feature card (left side, spans both rows, first 2 columns) */
.hero-card--feature {
  grid-row: 1 / 3;
  grid-column: 1 / 3;
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.hero-feature-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 41, 8, 0.8) 0%, rgba(7, 41, 8, 0.4) 35%, transparent 60%);
}

.hero-feature-content {
  position: relative;
  z-index: 1;
  padding: 32px 28px;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  color: #ffffff;
}

.hero-icon svg {
  width: 100%;
  height: 100%;
}

.hero-title {
  font-size: 32px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #fff;
}

.hero-subtitle {
  font-size: 15px;
  font-weight: 400;
  margin: 8px 0 0;
  opacity: 0.85;
  line-height: 1.4;
  color: #fff;
}

/* Box 2: Why card (top right, spans columns 3-4) */
.hero-card--why {
  grid-row: 1 / 2;
  grid-column: 3 / 5;
  background: #e8e6e2;
  border: 1px solid #ccc8c0;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  overflow-y: auto;
}

.hero-card-heading {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  margin: 0;
  letter-spacing: -0.5px;
  padding-left: 16px;
  border-left: 4px solid var(--accent);
  line-height: 1.2;
}

.hero-card-heading--sm {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  padding-left: 0;
  border-left: none;
}

.hero-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.hero-card-body-highlight {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.hero-card-body-detail {
  font-size: 15px;
  line-height: 1.7;
  color: #2d6a4f;
  margin: 0;
}

/* Box 3: Stats card (bottom right, column 3) */
.hero-card--stats {
  grid-row: 2 / 3;
  grid-column: 3 / 4;
  background: #f0f7f1;
  border: 1px solid #d4e6d6;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-icon {
  color: var(--accent);
  opacity: 0.5;
  width: 16px;
  height: 16px;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: #b8d4ba;
}

/* Box 4: Related values card (bottom right, column 4) */
.hero-card--related {
  grid-row: 2 / 3;
  grid-column: 4 / 5;
  background: #faf8f5;
  border: 1px solid #e8e2d9;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.related-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  font-weight: 400;
}

.related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid rgba(7, 41, 8, 0.12);
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.related-chip-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  color: var(--accent);
}

.related-chip-icon svg {
  width: 100%;
  height: 100%;
}

.related-chip:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.related-chip:hover .related-chip-icon {
  color: #fff;
}

.related-chip-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.related-chip-icon svg {
  width: 100%;
  height: 100%;
}

/* ---- Products Section Header ---- */
.products-section-header {
  padding: 0 0 4px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 0;
}

.products-section-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-primary);
  margin: 0;
}

/* Metadata-tagging disclaimer under the products header */
.values-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-secondary);
}
.values-disclaimer svg {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--accent-light);
}

/* =========================================================
   Toolbar
   ========================================================= */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  margin: 0 0 8px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  flex-wrap: wrap;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.toolbar-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.toolbar-select {
  padding: 8px 28px 8px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(0,0,0,0.12);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition: all 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.toolbar-select:hover { border-color: rgba(0,0,0,0.35); }
.toolbar-select:focus { outline: none; border-color: var(--accent); }

.filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; font-weight: 700; font-size: 13px;
  background: #ffffff; color: #000000;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: 999px;
  cursor: pointer; transition: all 0.2s ease;
}
.filter-toggle svg { flex-shrink: 0; }
.filter-toggle:hover { border-color: var(--accent); }
.filter-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
}

/* Score Mode Toggle */
.score-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  user-select: none;
}

.score-mode__label {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}

.score-switch {
  --w: 38px;
  --h: 22px;
  --p: 3px;
  appearance: none;
  width: var(--w);
  height: var(--h);
  background: #c9c9c9;
  border-radius: var(--h);
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background 120ms ease;
}
.score-switch::after {
  content: '';
  position: absolute;
  top: var(--p);
  left: var(--p);
  width: calc(var(--h) - 2*var(--p));
  height: calc(var(--h) - 2*var(--p));
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
  transition: transform 120ms ease;
}
.score-switch:checked { background: #0b4f2d; }
.score-switch:checked::after { transform: translateX(calc(var(--w) - var(--h))); }

/* =========================================================
   Filter Overlay + Drawer
   ========================================================= */
.filter-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.filter-overlay.active { opacity: 1; pointer-events: auto; }

.filter-drawer {
  position: fixed; top: 0; left: 0;
  width: 360px; max-width: 85vw; height: 100vh;
  background: #ffffff;
  z-index: 1200;
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.filter-drawer.open { transform: translateX(0); }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.drawer-header-left { display: flex; align-items: center; gap: 8px; }
.drawer-title {
  font-size: 14px; font-weight: 800;
  letter-spacing: 1px; color: #1a1a1a;
}
.drawer-filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700;
}
.drawer-filter-count:empty { display: none; }
.drawer-close {
  width: 32px; height: 32px; border: none; background: none;
  font-size: 24px; color: #666; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px; transition: background 0.15s ease;
}
.drawer-close:hover { background: rgba(0,0,0,0.06); color: #333; }

.drawer-active-pills {
  padding: 10px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.drawer-active-pills-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.drawer-pills-clear {
  background: none; border: none;
  color: var(--accent); font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 0;
}

.drawer-body { flex: 1; overflow-y: auto; padding: 4px 0; }

.drawer-section { padding: 14px 20px; }
.drawer-section-title {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.8px; color: #1a1a1a;
  margin-bottom: 10px;
}
.drawer-divider { height: 1px; background: rgba(0, 0, 0, 0.06); margin: 0 20px; }

.drawer-footer {
  display: flex; gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
  background: #fff; flex-shrink: 0;
}
.drawer-btn-clear {
  flex: 0 0 auto; padding: 12px 24px;
  border: 2px solid rgba(0,0,0,0.15); border-radius: 999px;
  background: #fff; color: #1a1a1a;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.15s ease;
}
.drawer-btn-clear:hover { border-color: rgba(0,0,0,0.3); }
.drawer-btn-view {
  flex: 1; padding: 12px 24px;
  border: none; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.15s ease;
}
.drawer-btn-view:hover { background: var(--accent-light); }

/* Active filter pills */
.active-filter-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  background: #f3f4f6; border: 1px solid rgba(0,0,0,0.2);
  font-size: 12px; font-weight: 600; color: var(--accent);
  white-space: nowrap;
}
.active-filter-pill .pill-remove {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(0,0,0,0.15); border: none;
  color: var(--accent); font-size: 12px; font-weight: 700; line-height: 1;
  cursor: pointer; padding: 0; margin-left: 2px;
  transition: background 0.15s ease;
}
.active-filter-pill .pill-remove:hover { background: rgba(0,0,0,0.3); }

.active-filters-bar {
  display: flex; align-items: center; gap: 8px;
  justify-content: center; flex-wrap: wrap;
  max-width: 1000px; margin: 0 auto;
  padding: 8px 0 4px;
}
.active-filters-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.active-filters-clear {
  background: none; border: none;
  color: var(--accent); font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 2px 4px;
}

/* =========================================================
   Drawer form controls
   ========================================================= */
.fp-select {
  padding: 9px 32px 9px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 13px; font-weight: 600;
  background: #ffffff; color: #1a1a1a;
  cursor: pointer; transition: all 0.15s ease;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.fp-select:hover { border-color: rgba(0, 0, 0, 0.35); }
.fp-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12); }
.fp-select--full { width: 100%; }

/* Drawer divider */
.drawer-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 0 20px;
}

/* Brand value tags inside drawer */
.fp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Tag toggles (supplier attributes) */
.fp-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid rgba(0, 0, 0, 0.2);
  background: #ffffff;
  font-size: 12px !important;
  font-weight: 700;
  color: #374151 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0 !important;
  user-select: none;
}
.fp-tag:hover {
  border-color: #072908;
  background: #f3f4f6;
}
.fp-tag:has(input:checked) {
  background: #072908;
  color: #fff !important;
  border-color: #072908;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.fp-tag input[type="checkbox"] {
  width: 0; height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* Facet availability: hide brand-value / ESG tags (and empty sections + their
   preceding divider) that no product in the current filtered set would match. */
.fp-tag--unavailable { display: none !important; }
.drawer-section--empty { display: none !important; }
.drawer-divider:has(+ .drawer-section--empty) { display: none !important; }

/* Pills in drawer */
.fp-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* Pill toggle (materials + features) */
.fp-pill {
  display: inline-flex !important;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font-size: 11px !important;
  font-weight: 600;
  color: #555 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0 !important;
  user-select: none;
  line-height: 1.4;
}
.fp-pill:hover {
  border-color: #072908;
  color: #072908 !important;
  background: #f9fafb;
}
.fp-pill:has(input:checked) {
  background: #072908;
  color: #fff !important;
  border-color: #072908;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.fp-pill input[type="checkbox"] {
  width: 0; height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* =========================================================
   Products Grid
   ========================================================= */
.products-container {
  margin-top: 8px;
  padding-bottom: 16px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.products-grid > .product-card {
  min-width: 0;
}

.load-more-btn {
  display: block;
  margin: 32px auto 16px;
  padding: 12px 36px;
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.load-more-btn:hover {
  background: #1b4332;
}

/* Card entrance animation */
@keyframes cardFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.products-grid > .product-card {
  animation: cardFadeIn 0.35s ease forwards;
}
.products-grid > .product-card:nth-child(1)  { animation-delay: 0.00s; }
.products-grid > .product-card:nth-child(2)  { animation-delay: 0.04s; }
.products-grid > .product-card:nth-child(3)  { animation-delay: 0.08s; }
.products-grid > .product-card:nth-child(4)  { animation-delay: 0.10s; }
.products-grid > .product-card:nth-child(5)  { animation-delay: 0.14s; }
.products-grid > .product-card:nth-child(6)  { animation-delay: 0.18s; }
.products-grid > .product-card:nth-child(7)  { animation-delay: 0.20s; }
.products-grid > .product-card:nth-child(8)  { animation-delay: 0.24s; }
.products-grid > .product-card:nth-child(9)  { animation-delay: 0.28s; }

.products-grid > .product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  border-color: #d1d5db;
}

/* =========================================================
   Loading / Empty States
   ========================================================= */
.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 18px;
}

.empty-state {
  background: rgba(255,255,255,0.5);
  border-radius: 16px;
  padding: 80px 20px;
}

/* =========================================================
   Skeleton loading cards
   ========================================================= */
.skeleton-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
}
.skeleton-top {
  display: flex; gap: 10px; margin-bottom: 10px;
}
.skeleton-image {
  width: 100px; height: 100px; border-radius: 8px; flex-shrink: 0;
}
.skeleton-info {
  flex: 1; display: flex; flex-direction: column; gap: 6px;
}
.skeleton-score { width: 40px; height: 40px; border-radius: 50%; }
.skeleton-price { width: 60px; height: 14px; border-radius: 4px; }
.skeleton-stars { width: 80px; height: 12px; border-radius: 4px; }
.skeleton-tags { display: flex; gap: 4px; }
.skeleton-tag { width: 50px; height: 18px; border-radius: 999px; }
.skeleton-title { width: 90%; height: 14px; border-radius: 4px; }
.skeleton-title-short { width: 60%; height: 14px; border-radius: 4px; }
.skeleton-pulse {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* =========================================================
   Back-to-top button
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* =========================================================
   Responsive
   ========================================================= */
.cart-label { display: none; }

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    height: auto;
  }
  .hero-card--feature { grid-row: 1 / 2; grid-column: 1 / 3; min-height: 200px; }
  .hero-card--why { grid-row: 2 / 3; grid-column: 1 / 3; }
  .hero-card--stats { grid-row: 3 / 4; grid-column: 1 / 2; }
  .hero-card--related { grid-row: 3 / 4; grid-column: 2 / 3; }
  .related-chips { flex-direction: column; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .values-page { padding: 0 24px 60px; }
  .toolbar-select { display: none; }
}

@media (max-width: 640px) {
  .btn-label-full { display: none; }
  .btn-label-short { display: none; }
  #userProfileBtn { padding: 6px !important; }
  #userProfileBtn svg { width: 14px; height: 14px; }

  .brand-header {
    padding: 10px 12px 8px;
    gap: 0;
    flex-wrap: wrap;
  }
  .brand-logo {
    height: 44px;
    max-width: 120px;
    order: 1;
  }
  .brand-actions {
    order: 2;
    margin-left: auto;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .brand-header .btn-secondary {
    padding: 4px 6px;
    font-size: 10px;
    gap: 4px;
    white-space: nowrap;
  }
  .brand-header .btn-secondary svg { width: 12px; height: 12px; flex-shrink: 0; }
  .brand-header .score-mode { font-size: 10px; gap: 4px; margin-left: 0; }
  .brand-header .score-mode__label { white-space: nowrap; font-size: 10px; line-height: 1.1; }
  .brand-header .score-switch { --w: 30px; --h: 18px; }
  .cart-label { display: none !important; }
  .cart-btn { padding: 6px !important; }
  .cart-btn svg { width: 14px !important; height: 14px !important; }
  .brand-header .brand-logo { height: 34px; max-width: 80px; }
  .btn-feedback {
    font-size: 0 !important;
    padding: 6px !important;
    gap: 0 !important;
    border: none;
  }
  .btn-feedback svg { width: 16px; height: 16px; flex-shrink: 0; }

  .hero-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 8px;
    padding: 10px 0 12px;
    height: auto;
  }
  .hero-card--feature { grid-row: auto; grid-column: auto; min-height: 180px; }
  .hero-card--why { grid-row: auto; grid-column: auto; }
  .hero-card--stats { grid-row: auto; grid-column: auto; }
  .hero-card--related { grid-row: auto; grid-column: auto; }
  .hero-title { font-size: 24px; }
  .hero-icon { width: 28px; height: 28px; }
  .hero-feature-content { padding: 16px; }
  .hero-card--why { padding: 12px 14px; }
  .hero-card--stats { padding: 12px 14px; }
  .hero-card--related { padding: 12px 14px; }
  .stat-number { font-size: 22px; }

  .values-nav-inner { padding: 0 8px; gap: 0; }
  .values-nav-link { padding: 10px 12px; font-size: 11px; }

  .toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
  }
  .toolbar-count { display: none; }

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

  .values-page { padding: 0 16px 60px; }

  .filter-drawer { width: 100%; max-width: 100%; }

  .related-chip { font-size: 12px; padding: 6px 12px; }

  .active-filters-bar { padding: 4px 8px 2px; }
  .active-filter-pill { padding: 4px 8px; font-size: 11px; }

  .score-mode { min-height: 40px; }
  .empty-state { padding: 60px 16px; }
  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }
}

@media (max-width: 500px) {
  .filter-drawer { width: 100%; max-width: 100%; }
  .drawer-section { padding: 10px 16px; }
}
