
/* =========================================================
 Background + Homepage Styles (Aligned with Supplier Page)
 ========================================================= */

/* ---- Tokens ---- */

/* =========================================================
   Design tokens (match supplier page)
   ========================================================= */

:root {
  --bg-pattern: #7c8b44;
  --header-bg: #072908;

  --card-bg: #ffffff;
  --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: #2c2c2c;
  --text-secondary: #3a3a3a;
  --text-muted: #6f6f6f;

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


/* ---- Full-page background (mimic supplier page) ---- */
html, body {
  height: 100%;
  min-height: 100vh;
}


body {
  /* Match supplier page background exactly */
  background-color: var(--bg-pattern);
  background-image:
    linear-gradient(
      rgba(240, 244, 241, 0.85),
      rgba(240, 244, 241, 0.85)
    ),
    url("../assets/topography.png");

  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  background-size: cover;

  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-secondary);
}


/* =========================================================
 Brand Header (matches supplier page)
 ========================================================= */
.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);
  flex-wrap: wrap;
  gap: 8px;
}

.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);
  flex-wrap: wrap;
}

.auth-status { font-weight: 600; }

/* Pill button */
.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;
  text-decoration: none;
}
.btn-secondary { background: rgba(255,255,255,0.15); color: #fff; text-decoration: none; }
.btn-secondary:hover { background: rgba(255,255,255,0.25); transform: translateY(-1px); text-decoration: none; }

/* =========================================================
   Header Search Bar (compact + expanded)
   ========================================================= */
.header-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 1 300px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  padding: 0 12px;
  transition: all 0.25s ease;
  margin-left: auto;
  margin-right: 16px;
}
.header-search-icon {
  flex-shrink: 0;
  color: rgba(255,255,255,0.7);
  margin-right: 8px;
}
.header-search-input {
  flex: 1;
  background: none;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  outline: none;
  min-width: 0;
}
.header-search-input::placeholder {
  color: rgba(255,255,255,0.55);
}
.header-search-clear,
.header-search-cancel,
.header-search-submit {
  display: none;
}

/* --- Expanded search state (popup dropdown) --- */
.header-search.expanded {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 2000;
  flex: none;
  width: 720px;
  max-width: calc(100vw - 64px);
  height: 52px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.header-search.expanded .header-search-icon {
  color: #999;
}
.header-search.expanded .header-search-input {
  color: #1a1a1a;
  font-size: 18px;
  font-weight: 500;
}
.header-search.expanded .header-search-input::placeholder {
  color: #999;
}
.header-search.expanded .header-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border: none; background: rgba(0,0,0,0.08);
  border-radius: 50%;
  color: #666; font-size: 18px; font-weight: 600;
  cursor: pointer; flex-shrink: 0;
  line-height: 1; padding: 0;
  margin-right: 8px;
  transition: background 0.15s ease;
}
.header-search.expanded .header-search-clear:hover {
  background: rgba(0,0,0,0.15);
}
.header-search.expanded .header-search-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: none;
  background: #014421;
  border-radius: 8px;
  color: #fff;
  cursor: pointer; flex-shrink: 0;
  margin-right: 12px;
  transition: background 0.15s ease;
}
.header-search.expanded .header-search-submit:hover {
  background: #016b34;
}
.header-search.expanded .header-search-cancel {
  display: flex;
  align-items: center;
  background: none; border: none;
  color: #1a1a1a;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer; flex-shrink: 0;
  padding: 4px 0;
  white-space: nowrap;
}
.header-search.expanded .header-search-cancel:hover {
  color: #014421;
}

/* Elevate header above overlay when search is expanded */
.brand-header.search-active {
  z-index: 2000;
}

/* --- Search overlay --- */
.search-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.45);
  z-index: 1500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-overlay.active {
  opacity: 1; pointer-events: auto;
}

/* --- Autocomplete suggestions --- */
.search-suggestions {
  display: none;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 2001;
  padding: 16px 0;
  max-height: 400px;
  overflow-y: auto;
  border-radius: 0 0 12px 12px;
}
.search-suggestions.visible {
  display: block;
}
.suggestions-heading {
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.8px; color: #1a1a1a;
  padding: 0 24px 12px;
}
.suggestion-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 24px;
  font-size: 15px; color: #1a1a1a;
  cursor: pointer;
  transition: background 0.1s ease;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover {
  background: rgba(0,0,0,0.04);
}
.suggestion-icon {
  flex-shrink: 0;
  color: #999;
}

/* Optional: spacing under header */
.toolbar { margin-top: 12px; }

/* =========================================================
 Category Nav Bar (sticky below header)
 ========================================================= */
.category-nav {
  position: sticky; top: 85px; z-index: 999;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.category-nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 1500px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-nav-inner::-webkit-scrollbar { display: none; }

.category-nav-link {
  display: inline-flex; align-items: center;
  padding: 14px 20px;
  font-size: 13px; font-weight: 600;
  color: #333; text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.category-nav-link:hover {
  color: #014421;
  border-bottom-color: #014421;
}
.category-nav-link.active {
  color: #014421;
  border-bottom-color: #014421;
  font-weight: 700;
}

/* Make the 'Signed in as …' label readable on dark header */
.brand-header .auth-status {
  color: #fff;
  opacity: 0.85;     /* same feel as supplier page */
  margin-right: 12px;
  white-space: nowrap;
  font-weight: 600;  /* matches your existing weight */
}


/* =========================================================
 Toolbar: Filter + Score toggle
 ========================================================= */
.toolbar {
  display: flex; justify-content: center; align-items: center;
  gap: 16px; margin: 16px 0; flex-wrap: wrap;
}

/* Filter toggle — pill button with icon */
.filter-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; font-weight: 700; font-size: 14px;
  background: #ffffff; color: #000000;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  cursor: pointer; transition: background-color 0.2s ease, transform 0.2s ease;
}
.filter-toggle svg { flex-shrink: 0; }
.filter-toggle:hover { background-color: #f4f4f4; transform: translateY(-1px); }
.filter-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: #014421; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
}

/* =========================================================
 Filter Drawer — slide-in from left
 ========================================================= */

/* Overlay that greys out the page */
.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;
}

/* The drawer itself */
.filter-drawer {
  position: fixed; top: 0; left: 0;
  width: 340px; 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 */
.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: #014421; 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 (top of drawer, below header) */
.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: #014421; font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline;
  padding: 0;
}

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

/* Drawer sections */
.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;
}

/* Full-width selects in drawer */
.fp-select--full { width: 100%; }

/* Drawer footer (CLEAR + VIEW buttons) */
.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: #014421; color: #fff;
  font-size: 13px; font-weight: 700; letter-spacing: 0.5px;
  cursor: pointer; transition: all 0.15s ease;
}
.drawer-btn-view:hover { background: #016b34; }

/* Active filter pill (used in both toolbar bar and drawer) */
.active-filter-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 10px; border-radius: 999px;
  background: #f0f7f2; border: 1px solid rgba(1,68,33,0.2);
  font-size: 12px; font-weight: 600; color: #014421;
  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(1,68,33,0.15); border: none;
  color: #014421; 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(1,68,33,0.3); }

/* Active filters bar (inline, below toolbar) */
.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: #014421; font-size: 12px; font-weight: 700;
  cursor: pointer; text-decoration: underline; padding: 2px 4px;
}

/* 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(1, 68, 33, 0.2);
  background: #ffffff;
  font-size: 12px !important;
  font-weight: 700;
  color: #2d3e35 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0 !important;
  user-select: none;
}
.fp-tag:hover {
  border-color: #014421;
  background: #f0f7f2;
}
.fp-tag:has(input:checked) {
  background: #014421;
  color: #fff !important;
  border-color: #014421;
  box-shadow: 0 2px 8px rgba(1, 68, 33, 0.25);
}
.fp-tag input[type="checkbox"] {
  width: 0; height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* --- Shared select style --- */
.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(1, 68, 33, 0.35);
}
.fp-select:focus {
  outline: none;
  border-color: #014421;
  box-shadow: 0 0 0 2px rgba(1, 68, 33, 0.12);
}

/* 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: #014421;
  color: #014421 !important;
  background: #f5faf7;
}
.fp-pill:has(input:checked) {
  background: #014421;
  color: #fff !important;
  border-color: #014421;
  box-shadow: 0 1px 4px rgba(1, 68, 33, 0.3);
}
.fp-pill input[type="checkbox"] {
  width: 0; height: 0;
  opacity: 0;
  position: absolute;
  pointer-events: none;
}

/* =========================================================
 Section Titles
 ========================================================= */
.section-title {
  color: #014421;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 16px;
  text-align: center;
}

/* =========================================================
 Featured Brands Section
 ========================================================= */
.featured-brands-section {
  margin: 16px auto 24px;
  padding: 0;
  max-width: 1500px;
}

.featured-brands-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 12px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
  text-align: left;
}

.featured-brands-header .section-title {
  font-size: 16px;
  color: #014421;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.1px;
  text-align: left;
}

.featured-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.featured-brand-card {
  position: relative;
  background: #ffffff;
  border: 2px solid rgba(1, 68, 33, 0.15);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-height: 150px;
}

.featured-brand-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(1, 68, 33, 0.2);
  border-color: rgba(1, 68, 33, 0.35);
}

.featured-brand-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
  letter-spacing: 0.5px;
  z-index: 10;
}

/* Sponsored badge, source badge, certified badge are in ../styles/product-card.css */

.featured-brand-image {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8faf9;
  border-radius: 10px;
  padding: 20px;
}

.featured-brand-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Bamboo Cool — real brand logo fills the box */
[data-brand="bamboo-cool"] .featured-brand-image {
  padding: 0;
  overflow: hidden;
}
[data-brand="bamboo-cool"] .featured-brand-image img {
  object-fit: cover;
  border-radius: 10px;
}
[data-brand="bamboo-cool"] .featured-brand-name {
  margin-top: auto;
}

.featured-brand-image .featured-logo {
  filter: hue-rotate(180deg) saturate(1.5) brightness(0.8);
}

.featured-brand-name {
  color: #014421;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

/* =========================================================
 Top Products for You Section (Carousel)
 ========================================================= */
.top-products-section {
  margin: 12px auto 8px;
  padding: 0;
  max-width: 1500px;
}

.top-products-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 8px;
  padding: 0 40px 0 112px;
  text-align: left;
}

.top-products-header .section-title {
  font-size: 16px;
  color: #014421;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.1px;
}

.section-subtitle {
  display: none;
}

/* Section title row with View All button */
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  gap: 12px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: #014421;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.08s ease;
  white-space: nowrap;
}

.view-all-btn:hover {
  background: #016b34;
  transform: translateY(-1px);
}

/* Carousel Container */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 40px;
}

.carousel-wrapper {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  padding: 4px 4px 18px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.carousel-track .product-card {
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  border: 1px solid rgba(1, 68, 33, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(1, 68, 33, 0.15);
  border-color: rgba(1, 68, 33, 0.25);
}

/* Carousel Navigation Buttons */
.carousel-btn {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #014421;
  color: #014421;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 10;
}

.carousel-btn:hover:not(:disabled) {
  background: #014421;
  color: #ffffff;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(1, 68, 33, 0.3);
}

.carousel-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-color: #ccc;
  color: #ccc;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
}

/* Carousel Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  padding: 0 40px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.carousel-dot.active {
  background: #014421;
  width: 24px;
  border-radius: 4px;
}

/* =========================================================
 Results Grid
 ========================================================= */
.results-section { margin-top: 24px; padding: 0 40px 14px; }
.results-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; max-width: 1200px; margin: 0 auto;
}

/* Hide pagination */
.ais-Pagination,
[class*="pagination"],
.pagination {
  display: none !important;
}

/* Product Card styles are in ../styles/product-card.css */

/* =========================================================
 Modal (Supplier Preview)
 ========================================================= */
.product-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.product-modal .modal-content {
  background: #fff; border-radius: 12px; padding: 24px;
  max-width: 600px; width: 90%;
  box-shadow: 0 6px 24px rgba(0,0,0,0.3); animation: fadeIn 0.3s ease forwards;
}
.product-modal .modal-content--supplier-preview {
  max-width: 900px; width: 94vw; height: 86vh;
  display: flex; flex-direction: column; padding: 0;
  position: relative; border: 8px solid #fff;
}

.btn-primary {
  background: #014421; color: #fff; border-color: rgba(1,68,33,0.35);
}
.btn-primary:hover {
  background: #0b7a4f; box-shadow: 0 2px 8px rgba(0,0,0,0.18); transform: translateY(-1px);
}
.btn-primary:focus-visible { outline: 2px solid #57b58c; outline-offset: 2px; }

.btn-secondary {
  background: var(--surface-2); color: #111; border-color: rgba(0,0,0,0.14);
}
.btn-secondary:hover { background: #e7eaee; box-shadow: 0 2px 8px rgba(0,0,0,0.12); transform: translateY(-1px); }
.btn-secondary:focus-visible { outline: 2px solid #b6c2d1; outline-offset: 2px; }

.modal-frame { display: block; width: 100%; height: 100%; border: 0; border-radius: 12px; }

@keyframes fadeIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* =========================================================
 Page grid (content area) + Hero
 ========================================================= */
.home {
  max-width: 1500px;
  margin: 0 auto;
  padding: 24px 60px 80px;
  position: relative;
}

/* Hero/tagline */
.hero {
  text-align: center;
  color: #000000;
  margin: 10px auto 16px;
}
.hero h1 {
  font-size: 36px;
  line-height: 1.2;
  margin: 0 0 8px;
  text-shadow: 0 1px 2px rgba(0,0,0,.35);
  color: #000; /* black headline */
}
.hero-sub {
  margin: 0 0 12px;
  font-weight: 600;
  opacity: .9;
  color: #333;
}
.hero-arrows { font-size: 18px; opacity: .8; }

/* =========================================================
 Site Footer
 ========================================================= */
.site-footer {
  background: var(--header-bg);
  color: #fff;
  margin-top: 40px;
  width: 100%;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 40px 32px;
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.footer-brand {
  flex: 0 0 220px;
}

.footer-logo {
  height: 48px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-columns {
  flex: 1;
  display: flex;
  gap: 40px;
  justify-content: space-between;
}

.footer-col-title {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  padding: 20px 40px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}


/* Global text to black (fallback) */
body { color: #000000; }

/* Optional: when results appear, tighten hero spacing */
body.has-results .hero { margin-bottom: 4px; }

/* =========================================================
   Homepage header: make Sign In button solid white
   ========================================================= */

.brand-header .btn-secondary {
  background: #ffffff;          /* solid white pill */
  color: #072908;                /* dark green text */
  border: 1px solid rgba(7,41,8,0.25);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  font-weight: 700;              /* bold text */
  text-decoration: none;         /* no underline */
}

.brand-header .btn-secondary:hover {
  background: #f4f4f4;           /* subtle hover, not required to see it */
  color: #072908;
  transform: translateY(-1px);
  text-decoration: none;         /* no underline on hover */
}

.brand-header .btn-secondary:focus-visible {
  outline: 2px solid #9bd3b5;    /* accessible focus */
  outline-offset: 2px;
}

/* =========================================================
   Lockscreen (Website Only)
   ========================================================= */
.lockscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #014421 0%, #0b7a4f 50%, #7c8b44 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lockscreen-content {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 48px 40px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: slideUp 0.4s ease;
}

.lockscreen-header {
  margin-bottom: 32px;
}

.lockscreen-logo {
  height: 80px;
  max-width: 200px;
  object-fit: contain;
  margin-bottom: 24px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.lockscreen-title {
  color: #014421;
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}

.lockscreen-subtitle {
  color: #6f6f6f;
  font-size: 16px;
  font-weight: 500;
  margin: 0;
}

.lockscreen-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lockscreen-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(1, 68, 33, 0.2);
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  background: #f8faf9;
  color: #2c2c2c;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.lockscreen-input:focus {
  outline: none;
  border-color: #014421;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(1, 68, 33, 0.1);
}

.lockscreen-input::placeholder {
  color: #9ca3af;
}

.lockscreen-button {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #014421 0%, #0b7a4f 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(1, 68, 33, 0.3);
}

.lockscreen-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(1, 68, 33, 0.4);
}

.lockscreen-button:active {
  transform: translateY(0);
}

.lockscreen-error {
  color: #dc2626;
  font-size: 14px;
  font-weight: 600;
  margin: -8px 0 0;
  padding: 10px;
  background: #fee2e2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

/* Shake animation for incorrect password */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-8px); }
  20%, 40%, 60%, 80% { transform: translateX(8px); }
}

.lockscreen-form.shake {
  animation: shake 0.5s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .lockscreen-content {
    padding: 36px 24px;
  }

  .lockscreen-title {
    font-size: 24px;
  }

  .lockscreen-subtitle {
    font-size: 14px;
  }

  .lockscreen-logo {
    height: 60px;
  }
}

/* --- Scoring mode switch --- */
.score-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
  font-size: 14px;
  user-select: none;
}

.score-mode__label {
  color: var(--text, #222);
  opacity: 0.9;
}

/* Basic “iOS-style” checkbox switch */
.score-switch {
  --w: 42px;
  --h: 24px;
  --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: #0b7a4f; /* your green */
}
.score-switch:checked::after {
  transform: translateX(calc(var(--w) - var(--h)));
}

/* =========================================================
   RESPONSIVE — All breakpoints consolidated at end of file
   so they correctly override the default rules above.
   ========================================================= */

/* --- Tablet (max 900px) --- */
@media (max-width: 900px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-track .product-card {
    flex: 0 0 calc(50% - 10px);
    max-width: none;
  }
  .top-products-header {
    padding: 0 20px;
  }
  .top-products-header .section-title {
    font-size: 15px;
  }
  .carousel-container {
    gap: 20px;
  }
  .top-products-section {
    margin: 10px auto 6px;
  }

}

/* --- Small tablet (max 768px) --- */
@media (max-width: 768px) {
  .footer-inner {
    flex-direction: column;
    gap: 32px;
    padding: 36px 24px 24px;
  }
  .footer-brand {
    flex: none;
    width: 100%;
  }
  .footer-columns {
    flex-wrap: wrap;
    gap: 24px;
  }
  .footer-col {
    flex: 0 0 calc(50% - 12px);
  }
}

/* --- Mobile (max 640px) --- */
@media (max-width: 640px) {
  /* Category nav */
  .category-nav { top: auto; position: sticky; }
  .category-nav-inner { justify-content: flex-start; padding: 0 8px; }
  .category-nav-link { padding: 10px 14px; font-size: 12px; }

  /* ---- Header: two-row layout for mobile ---- */
  .brand-header {
    padding: 10px 12px 8px;
    gap: 0;
    flex-wrap: wrap;
  }

  /* Row 1: logo + action icons */
  .brand-logo {
    height: 34px;
    max-width: 90px;
    order: 1;
  }
  .brand-actions {
    order: 2;
    margin-left: auto;
    gap: 6px;
    flex-wrap: nowrap;
  }
  /* Hide the "Signed in as …" text on mobile — buttons have labels */
  .brand-header .auth-status {
    display: none;
  }
  /* Oval pill buttons with smaller icons + visible text on mobile */
  .brand-header .btn-secondary {
    padding: 6px 10px;
    font-size: 10px;
    font-weight: 700;
    gap: 4px;
    border-radius: 999px;
    width: auto;
    height: 30px;
    justify-content: center;
    white-space: nowrap;
  }
  .brand-header .btn-secondary svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
  }
  .cart-btn {
    width: auto !important;
    height: 30px !important;
    padding: 6px 10px !important;
  }

  /* Row 2: search bar stretches full width below */
  .header-search {
    order: 3;
    flex: 1 1 100%;
    height: 36px;
    padding: 0 10px;
    margin: 8px 0 0;
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
  }
  .header-search-input {
    font-size: 14px;
  }
  .header-search.expanded {
    width: calc(100vw - 32px);
    left: 50%;
    transform: translateX(-50%);
    height: 48px;
    padding: 0 12px;
    top: 12px;
  }
  .header-search.expanded .header-search-input {
    font-size: 16px;
  }
  .suggestion-item {
    padding: 10px 16px;
    font-size: 14px;
  }
  .suggestions-heading {
    padding: 0 16px 10px;
  }

  /* Page container */
  .home {
    padding: 12px 12px 60px;
  }

  /* Toolbar */
  .toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 12px 0;
  }
  .toolbar .filter-toggle {
    align-self: center;
  }
  .score-mode {
    margin-left: 0;
  }

  /* Results grid: 1 column on mobile */
  .results-section {
    padding: 0 8px;
  }
  .results-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Product card mobile overrides are in ../styles/product-card.css */

  /* Featured brands: 2 columns */
  .featured-brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
  }
  .featured-brands-header {
    padding: 0;
  }
  .featured-brand-card {
    padding: 14px 10px;
    min-height: 110px;
    gap: 8px;
  }
  .featured-brand-image {
    width: 70px;
    height: 70px;
    padding: 10px;
  }
  .featured-brand-name {
    font-size: 12px;
  }
  .featured-brand-badge {
    font-size: 9px;
    padding: 3px 6px;
    top: 6px;
    right: 6px;
  }

  /* Carousels — compact cards for mobile */
  .carousel-track {
    gap: 10px;
  }
  .carousel-track .product-card {
    flex: 0 0 calc(85% - 5px);
    max-width: none;
    margin: 0 auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
  }
  .carousel-track .product-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 6px;
  }
  .carousel-track .product-image {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.10);
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
    padding: 4px;
  }
  .carousel-track .product-info {
    min-width: 0;
    width: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .carousel-track .product-score .circular-score {
    width: 40px;
    height: 40px;
  }
  .carousel-track .product-price {
    font-size: 14px;
  }
  .carousel-track .product-tags {
    gap: 3px;
  }
  .carousel-track .product-tag {
    font-size: 9px;
    padding: 2px 6px;
  }
  .carousel-track .brand-value-pill {
    font-size: 9px;
    padding: 2px 6px;
  }
  .carousel-track .product-title {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 4px;
    padding-top: 4px;
    text-align: center;
  }
  .carousel-track .product-title a {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    word-break: break-word;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
  .carousel-btn svg {
    width: 18px;
    height: 18px;
  }
  .carousel-container {
    gap: 6px;
    padding: 0;
  }
  .top-products-header {
    padding: 0;
  }
  .top-products-header .section-title {
    font-size: 14px;
  }
  .top-products-section {
    margin: 8px auto 4px;
  }
  .carousel-dots {
    padding: 0;
    margin-top: 12px;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    padding: 28px 16px 20px;
  }
  .footer-brand {
    flex: none;
    width: 100%;
    text-align: center;
  }
  .footer-columns {
    flex-wrap: wrap;
    gap: 20px;
  }
  .footer-col {
    flex: 0 0 calc(50% - 10px);
  }
  .footer-socials {
    justify-content: flex-start;
  }
  .footer-bottom {
    padding: 16px;
  }

  /* Filter drawer mobile */
  .filter-drawer {
    width: 100%; max-width: 100%;
  }
  .fp-tag {
    font-size: 11px !important;
    padding: 5px 10px;
  }
  .fp-pill {
    font-size: 10px !important;
    padding: 3px 8px;
  }

  /* Lockscreen */
  .lockscreen-content {
    padding: 36px 24px;
  }
  .lockscreen-title {
    font-size: 24px;
  }
  .lockscreen-subtitle {
    font-size: 14px;
  }
  .lockscreen-logo {
    height: 60px;
  }

  /* Heart button mobile overrides are in ../styles/product-card.css */

  /* Cart modal */
  .cart-modal {
    width: calc(100vw - 24px);
    max-height: 85vh;
  }

  /* Modal */
  .modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .modal-actions {
    width: 100%;
    flex-wrap: wrap;
  }
}


/* =========================================================
   Shopping Cart Button (Header)
   ========================================================= */
/* Hide "Cart" label on desktop — text is in the button already */
.cart-label { display: none; }
@media (max-width: 640px) {
  .cart-label { display: inline; }
}
.cart-btn {
  position: relative;
  padding: 8px 12px !important;
  transition: transform 0.3s ease, background-color 0.15s ease;
}
.cart-btn svg {
  transition: transform 0.3s ease;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #e74c3c;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Cart pulse animation when item is added */
@keyframes cartPulse {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.cart-btn.cart-pulse {
  animation: cartPulse 0.6s ease;
}
.cart-btn.cart-pulse svg {
  stroke: #f39c12;
}


/* Heart button styles are in ../styles/product-card.css */

/* =========================================================
   Shopping Cart Modal
   ========================================================= */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 9998;
  transition: opacity 0.25s ease;
  opacity: 0;
}
.cart-overlay.open {
  display: block;
  opacity: 1;
}

.cart-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 9999;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: 90%;
  max-width: 560px;
  max-height: 80vh;
  flex-direction: column;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
  overflow: hidden;
}
.cart-modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.cart-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #eee;
  background: #f9faf9;
  border-radius: 16px 16px 0 0;
}
.cart-modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #2c2c2c;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-modal-title svg {
  stroke: #072908;
}
.cart-modal-count {
  background: #072908;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}
.cart-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
}
.cart-modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.cart-modal-body {
  overflow-y: auto;
  padding: 16px 24px 24px;
  flex: 1;
}

/* Empty state */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
  color: #999;
}
.cart-empty p {
  margin: 8px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: #666;
}
.cart-empty span {
  font-size: 13px;
  color: #aaa;
}

/* Cart item rows */
.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cart-item:last-child {
  border-bottom: none;
}

@keyframes cartItemRemove {
  to {
    opacity: 0;
    transform: translateX(30px);
    max-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
  }
}
.cart-item.removing {
  animation: cartItemRemove 0.3s ease forwards;
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 4px;
  flex-shrink: 0;
  background: #fff;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #2c2c2c;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item-title a {
  color: inherit;
  text-decoration: none;
}
.cart-item-title a:hover {
  text-decoration: underline;
  color: #072908;
}
.cart-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #888;
}
.cart-item-price {
  font-weight: 700;
  color: #111;
  font-size: 14px;
}
.cart-item-score {
  background: #072908;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  color: #ccc;
  transition: color 0.15s ease, background 0.15s ease;
  flex-shrink: 0;
}
.cart-item-remove:hover {
  color: #e74c3c;
  background: #fef0f0;
}
.cart-item-remove svg {
  width: 18px;
  height: 18px;
}

/* =========================================================
   Onboarding Banner (injected by homepage.auth.js)
   ========================================================= */
.onboarding-banner {
  background: linear-gradient(135deg, #e5f2ea 0%, #f0f7f2 100%);
  border-bottom: 1px solid rgba(1, 68, 33, 0.15);
  padding: 12px 16px;
  animation: onboardingBannerIn 0.4s ease;
}
@keyframes onboardingBannerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onboarding-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.onboarding-banner-text {
  flex: 1;
  min-width: 200px;
}
.onboarding-banner-text strong {
  display: block;
  color: #014421;
  font-size: 14px;
}
.onboarding-banner-text span {
  font-size: 12px;
  color: #6f6f6f;
}
.onboarding-banner-cta {
  padding: 6px 18px !important;
  font-size: 12px !important;
  white-space: nowrap;
  cursor: pointer;
}
.onboarding-banner-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #6f6f6f;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  border-radius: 50%;
  transition: background 0.15s ease;
}
.onboarding-banner-close:hover {
  background: rgba(0,0,0,0.06);
}
@media (max-width: 640px) {
  .onboarding-banner-inner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 8px;
  }
}
