﻿/* ============================================
   Supply Guide Pro — Lightweight Mobile-First CSS
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a365d;
  --color-primary-light: #2c5282;
  --color-accent: #e85d26;
  --color-accent-hover: #c94d1c;
  --color-bg: #f7f8fa;
  --color-white: #ffffff;
  --color-text: #2d3748;
  --color-text-light: #718096;
  --color-border: #e2e8f0;
  --color-card-bg: #ffffff;
  --color-badge-destockage: #e85d26;
  --color-badge-occasion: #38a169;
  --color-badge-grossiste: #3182ce;
  --color-badge-chr: #805ad5;
  --color-star: #f6ad55;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --radius: 8px;
  --max-width: 900px;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-accent);
}

/* ============= Layout ============= */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ============= Header ============= */

.site-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 1.5rem;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 1;
  flex-shrink: 0;
}

.site-logo img {
  display: block;
  height: 29px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;
  flex: 1;
  justify-content: flex-end;
}

.site-nav a {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

/* ── Nav Dropdown ── */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: color 0.2s, border-color 0.2s;
  font-family: inherit;
}

.nav-dropdown-toggle:hover,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

.nav-chevron {
  font-size: 0.6rem;
  transition: transform 0.2s;
  display: inline-block;
}

.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.85rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  min-width: 260px;
  padding: 0.5rem 0;
  z-index: 300;
  column-count: 2;
  column-gap: 0;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.4rem 1.1rem;
  font-size: 0.82rem;
  color: var(--color-text) !important;
  border-bottom: none !important;
  white-space: nowrap;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--color-bg);
  color: var(--color-primary) !important;
}

.nav-dropdown-menu a.active {
  color: var(--color-primary) !important;
  font-weight: 600;
}

/* ============= Hero ============= */

.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============= Breadcrumb ============= */

.breadcrumb {
  padding: 0.75rem 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.breadcrumb a {
  color: var(--color-text-light);
}

.breadcrumb span {
  margin: 0 0.35rem;
  color: var(--color-border);
}

/* ============= Sections ============= */

.section {
  padding: 2rem 0;
}

.section + .section {
  border-top: 1px solid var(--color-border);
}

.section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.section p {
  margin-bottom: 0.8rem;
}

.section ul, .section ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.section li {
  margin-bottom: 0.4rem;
}

/* ============= Supplier Cards ============= */

.supplier-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.supplier-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: box-shadow 0.2s;
}

.supplier-card:hover {
  box-shadow: var(--shadow-md);
}

.supplier-card.featured {
  border-left: 4px solid var(--color-accent);
  background: linear-gradient(90deg, #fff7ed 0%, var(--color-white) 30%);
}

.supplier-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.supplier-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
}

.supplier-featured-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-accent);
  background: #fff3e8;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.supplier-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-destockage { background: #fff0eb; color: var(--color-badge-destockage); }
.badge-occasion { background: #e6f7ef; color: var(--color-badge-occasion); }
.badge-grossiste { background: #e8f2fc; color: var(--color-badge-grossiste); }
.badge-chr { background: #f0ebff; color: var(--color-badge-chr); }
.badge-cheap { background: #fef3c7; color: #92400e; }
.badge-bulk { background: #e0f2fe; color: #075985; }
.badge-premium { background: #fdf2f8; color: #9d174d; }
.badge-niche { background: #ecfdf5; color: #065f46; }

.supplier-desc {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.supplier-ideal {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
}

.supplier-ideal strong {
  color: var(--color-text);
  font-style: normal;
}

/* ============= Comparison Table ============= */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.comparison-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 0.75rem;
}

.comparison-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.comparison-table tr:nth-child(even) td {
  background: #f8fafc;
}

/* ============= Tips Box ============= */

.tip-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.tip-box strong {
  color: #92400e;
}

/* ============= Internal Links Grid ============= */

.city-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.city-link {
  display: block;
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.city-link:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
  color: var(--color-accent);
}

.city-link small {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.2rem;
}

/* ============= Footer ============= */

.site-footer {
  background: var(--color-primary);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 1.5rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.65);
  margin-top: 0.6rem;
  max-width: 260px;
}

.footer-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-white) !important;
  letter-spacing: -0.02em;
  display: block;
  border-bottom: none;
  margin-bottom: 0.1rem;
}

.footer-logo span {
  color: var(--color-accent);
}

/* CTA Buttons in footer brand */
.footer-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.footer-cta {
  display: block;
  text-align: center;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: opacity 0.2s, transform 0.15s;
  line-height: 1.4;
}

.footer-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  padding-left: 1rem;
}

.footer-cta--primary {
  background: var(--color-accent);
  color: var(--color-white) !important;
}

.footer-cta--secondary {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.85) !important;
  border: 1px solid rgba(255,255,255,0.18);
}

/* Accordion columns */
.footer-col {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 0;
  cursor: pointer;
  color: inherit;
  text-align: left;
  gap: 0.5rem;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin: 0;
  padding: 0;
  flex: 1;
}

.footer-chevron {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.footer-accordion-body {
  padding-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  display: flex;
  align-items: center;
}

.footer-col a {
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  line-height: 2;
  display: block;
  transition: color 0.15s, padding-left 0.15s;
}

.footer-col a:hover {
  color: var(--color-white);
  padding-left: 3px;
}

.footer-col a.active {
  color: var(--color-accent);
}

/* "Voir toutes les villes" */
.footer-see-all {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.78rem !important;
  color: var(--color-accent) !important;
  font-weight: 600;
  transition: opacity 0.15s !important;
  line-height: 1.6 !important;
}

.footer-see-all:hover {
  opacity: 0.8;
  padding-left: 0 !important;
}

/* Mobile accordion: hidden when collapsed */
@media (max-width: 639px) {
  .footer-accordion-toggle[aria-expanded="false"] .footer-chevron {
    transform: rotate(-90deg);
  }

  .footer-accordion-toggle[aria-expanded="false"] + .footer-accordion-body {
    display: none;
  }

  .footer-accordion-toggle {
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: -1px;
  }
}

/* Desktop: no accordion behaviour */
@media (min-width: 640px) {
  .footer-brand {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
  }

  .footer-logo {
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.14) !important;
    width: 100%;
  }

  .footer-col {
    border-bottom: none;
    padding-top: 0;
  }

  .footer-col h4 {
    padding-bottom: 0.5rem;
    margin-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255,255,255,0.14);
  }

  .footer-accordion-toggle {
    pointer-events: none;
    padding: 0;
  }

  .footer-chevron {
    display: none;
  }

  .footer-accordion-body {
    padding-bottom: 0;
  }
}

/* Trust bar */
.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.1rem 1rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.footer-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-trust-check {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.footer-bottom {
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
  transition: color 0.15s;
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.85);
}

/* ============= Homepage specifics ============= */

.home-intro {
  text-align: center;
  padding: 2.5rem 0;
}

.home-intro p {
  max-width: 650px;
  margin: 0 auto 1rem;
  font-size: 1rem;
}

.city-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.city-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.15s;
}

.city-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.city-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.city-card h3 a {
  color: var(--color-primary);
}

.city-card p {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

/* ============= Trust Signals ============= */

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  padding: 1.5rem 0;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ============= Hero CTAs ============= */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.75rem;
}

.btn-hero-primary {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.btn-hero-primary:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.28);
  transition: background 0.2s, color 0.2s;
}

.btn-hero-secondary:hover {
  background: rgba(255,255,255,0.2);
  color: var(--color-white);
}

/* ============= Stats Bar ============= */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}

.stat-item {
  text-align: center;
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item:nth-child(2n) {
  border-right: none;
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin-top: 0.3rem;
  line-height: 1.4;
}

/* ============= Fournisseur Banner CTA ============= */

.banner-cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2.5rem 0;
  text-align: center;
}

.banner-cta h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 0.6rem;
}

.banner-cta p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.25rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.btn-banner {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  transition: background 0.2s, transform 0.15s;
}

.btn-banner:hover {
  background: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ============= FAQ Homepage ============= */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.1rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  transition: background 0.15s;
}

.faq-question:hover {
  background: var(--color-bg);
}

.faq-chevron {
  font-size: 0.7rem;
  color: var(--color-text-light);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  background: var(--color-bg);
}

.faq-item.open .faq-answer {
  display: block;
}

@media (min-width: 640px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    border-bottom: none;
  }

  .stat-item:nth-child(2n) {
    border-right: 1px solid var(--color-border);
  }

  .stat-item:last-child {
    border-right: none;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .banner-cta h2 {
    font-size: 1.6rem;
  }
}

/* ============= Responsive ============= */

@media (min-width: 640px) {
  .hero h1 {
    font-size: 2.1rem;
  }

  .city-links {
    grid-template-columns: 1fr 1fr;
  }

  .city-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1.15fr 1.15fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .comparison-table {
    font-size: 0.95rem;
  }
}

@media (min-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero {
    padding: 4rem 0 3rem;
  }

  .container {
    padding: 0 2rem;
  }

  .city-links {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* ============= Print ============= */

@media print {
  .site-header, .site-footer, .site-nav {
    display: none;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* ============= Accessibility ============= */

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

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

/* ============= Supplier Meta Info ============= */

.supplier-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin: 0.85rem 0 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.meta-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  line-height: 1.5;
}

.meta-icon {
  flex-shrink: 0;
  width: 1.3rem;
  font-size: 0.85rem;
  text-align: center;
}

.meta-value {
  color: var(--color-text);
  font-style: normal;
}

.meta-value a {
  color: var(--color-primary-light);
}

.meta-value a:hover {
  color: var(--color-accent);
}

/* ============= Open / Closed Status Badge ============= */

.store-status {
  display: inline-flex;
  margin-left: 0.6rem;
  vertical-align: middle;
}

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.12rem 0.55rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-open {
  background: #d1fae5;
  color: #065f46;
}

.status-closed {
  background: #fee2e2;
  color: #991b1b;
}

/* ============= Live Open / Closed Badge (next to opening hours) ============= */

.live-status {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.1rem 0.5rem;
  border-radius: 99px;
  vertical-align: middle;
  margin-left: 0.4rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.live-open {
  background: #d1fae5;
  color: #065f46;
}

.live-closed {
  background: #fee2e2;
  color: #991b1b;
}

/* ============= Service Tags ============= */

.supplier-services {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.6rem 0;
}

.service-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 99px;
}

/* ============= Nav CTA Button ============= */

.nav-cta {
  background: var(--color-accent) !important;
  color: #fff !important;
  padding: 0.3rem 0.9rem !important;
  border-radius: var(--radius) !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  border-bottom: none !important;
  transition: background 0.2s, transform 0.12s !important;
  white-space: nowrap;
  line-height: 1.6;
  display: inline-flex;
  align-items: center;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  color: #fff !important;
  border-bottom: none !important;
  transform: translateY(-1px);
}

/* ============= Hamburger Toggle ============= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.4rem;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background 0.15s;
}

.nav-toggle:hover { background: rgba(255,255,255,0.1); }

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .site-header .container {
    flex-wrap: nowrap;
    position: relative;
    align-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    left: -1rem;
    right: -1rem;
    background: var(--color-primary);
    flex-direction: column;
    padding: 0.5rem 0 1rem;
    gap: 0;
    z-index: 200;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > a {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem;
    border-bottom: none !important;
    width: 100%;
    display: block;
  }

  .nav-dropdown { width: 100%; }

  .nav-dropdown-toggle {
    padding: 0.65rem 1.25rem !important;
    font-size: 0.9rem !important;
    width: 100%;
    border-bottom: none !important;
  }

  .nav-cta {
    margin: 0.5rem 1.25rem !important;
    text-align: center !important;
    padding: 0.6rem 1rem !important;
    border-radius: var(--radius) !important;
    display: block !important;
    width: calc(100% - 2.5rem) !important;
    font-size: 0.9rem !important;
    justify-content: center;
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    border-radius: 0;
    min-width: 0;
    width: 100%;
    column-count: 2;
    padding: 0.25rem 0;
  }

  .nav-dropdown-menu a {
    color: rgba(255,255,255,0.8) !important;
    padding: 0.4rem 1.5rem !important;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff !important;
  }
}

/* ============= Page Intro Banner ============= */

.page-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  padding: 3rem 0 2.5rem;
  text-align: center;
}

.page-banner h1 {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.page-banner p {
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .page-banner h1 { font-size: 2.1rem; }
}

/* ============= Feature Grid ============= */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.feature-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}

.feature-card:hover { box-shadow: var(--shadow-md); }

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.6rem;
  display: block;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.4rem;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============= Steps List ============= */

.steps-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.step-body p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin: 0;
}

/* ============= CTA Block ============= */

.cta-block {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  color: var(--color-white);
  margin: 2rem 0;
}

.cta-block h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: var(--color-white);
}

.cta-block p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.btn-cta-white {
  background: #fff;
  color: var(--color-primary);
  padding: 0.75rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: var(--color-accent);
}

/* ============= Contact Form / Submission Form ============= */

.public-form-wrapper {
  max-width: 620px;
  margin: 0 auto;
}

.public-form-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-success-box {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  display: none;
}

.form-success-box.show { display: block; }

.form-success-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.form-success-box h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #276749;
  margin-bottom: 0.5rem;
}

.form-success-box p {
  font-size: 0.9rem;
  color: #276749;
}

/* ============= Chip checkboxes ============= */
.chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip-label input[type="checkbox"] {
  display: none;
}
.chip-label:has(input:checked) {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ============= FAQ (details) ============= */
.faq-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.faq-item {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.18s, border-color 0.18s;
}

.faq-item[open] {
  box-shadow: var(--shadow-sm);
  border-color: var(--color-accent);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

.faq-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  font-weight: 700;
}
.faq-icon::before { content: '+'; }
.faq-item[open] .faq-icon { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.faq-item[open] .faq-icon::before { content: '\2212'; }

.faq-body {
  padding: 0 1rem 1rem 1rem;
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.96rem;
}


/* ============= Map Link Button ============= */

.store-map-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary-light);
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  margin-top: 0.25rem;
  text-decoration: none;
}

.store-map-btn:hover {
  background: #fff7ed;
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* ============= City Overview Map Section ============= */

.city-map-section {
  padding: 1.5rem 0;
}

.city-map-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

#city-map {
  width: 100%;
  height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  margin: 1rem 0 0.75rem;
  z-index: 1;
  position: relative;
}

.map-legend {
  display: flex;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.legend-featured { background: #e85d26; }
.legend-regular  { background: #2c5282; }

/* ============= Stores Navigation List (inside map section) ============= */

.stores-nav {
  margin-top: 0.75rem;
}

.stores-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}

.stores-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.82rem;
}

.stores-nav-grid li {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1.55;
}

.stores-nav-grid a {
  color: var(--color-primary-light);
  font-weight: 600;
}

.stores-nav-grid a:hover {
  color: var(--color-accent);
}

.stores-nav-grid .nav-loc {
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 0.78rem;
}

.stores-nav-grid .nav-num {
  color: var(--color-text-light);
  font-weight: 400;
  font-size: 0.75rem;
}

/* Leaflet custom marker override */
.map-marker-label {
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  cursor: pointer;
}

.map-marker-label.featured {
  background: var(--color-accent);
}

@media (min-width: 640px) {
  .stores-nav-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .supplier-meta {
    grid-template-columns: 1fr 1fr;
  }
}

 
@media (min-width: 900px) {
  #city-map {
    height: 500px;
  }
}

/* Default mobile height for city map to avoid zero-height on small screens */
#city-map {
  height: 320px;
}

/* ============================================================
   AUTH & DASHBOARD — Supply Guide Pro
   ============================================================ */

/* ── Shared Form Elements ─────────────────────────────────── */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
}

.form-label .required {
  color: var(--color-accent);
  margin-left: 0.2rem;
}

.form-input {
  width: 100%;
  padding: 0.6rem 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.form-input.is-error {
  border-color: #e53e3e;
}

textarea.form-input {
  resize: vertical;
  min-height: 90px;
}

.form-error {
  font-size: 0.78rem;
  color: #e53e3e;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--color-text-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover:not(:disabled) {
  background: var(--color-accent-hover);
  color: #fff;
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--color-text);
}
.btn-secondary:hover:not(:disabled) {
  background: #cbd5e0;
  color: var(--color-text);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--color-primary-light);
  color: var(--color-primary-light);
}

.btn-success {
  background: #38a169;
  color: #fff;
}
.btn-success:hover:not(:disabled) { background: #2f855a; color: #fff; }

.btn-danger {
  background: #e53e3e;
  color: #fff;
}
.btn-danger:hover:not(:disabled) { background: #c53030; color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--color-primary-light);
  padding: 0.3rem 0.6rem;
}
.btn-ghost:hover:not(:disabled) { background: #ebf4ff; }

.btn-sm {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
}

.btn-lg {
  font-size: 1rem;
  padding: 0.8rem 1.6rem;
}

.btn-block {
  width: 100%;
}

/* ── Status Badges (listing/request states) ──────────────── */

.status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.status-pending   { background: #fef3c7; color: #92400e; }
.status-approved  { background: #d1fae5; color: #065f46; }
.status-rejected  { background: #fee2e2; color: #991b1b; }
.status-cancelled { background: #fff4e6; color: #b45309; }

/* ── Auth Page ───────────────────────────────────────────── */

.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.auth-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}

.auth-card h1 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.auth-card .auth-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  font-family: var(--font-sans);
}

.auth-tab.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-divider {
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin: 1rem 0;
  position: relative;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--color-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

.auth-alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-alert.show { display: block; }
.auth-alert-error   { background: #fff5f5; border: 1px solid #fed7d7; color: #c53030; }
.auth-alert-success { background: #f0fff4; border: 1px solid #c6f6d5; color: #276749; }
.auth-alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── Dashboard Layout ────────────────────────────────────── */

.dash-layout {
  display: flex;
  min-height: calc(100vh - 60px);
  align-items: flex-start;
}

.dash-sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-primary);
  min-height: calc(100vh - 60px);
  padding: 1.5rem 0;
  position: sticky;
  top: 60px;
}

.dash-sidebar-logo {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  margin-bottom: 0.75rem;
}

.dash-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  transition: background 0.15s, color 0.15s;
  border-left: 3px solid transparent;
}

.dash-nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dash-nav-item.active {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-left-color: var(--color-accent);
}

.dash-nav-icon { font-size: 1rem; }

.dash-content {
  flex: 1;
  padding: 1.5rem;
  min-width: 0;
}

.dash-section { display: none; }
.dash-section.active { display: block; }

.dash-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

/* ── Stats Cards ─────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  text-align: center;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.78rem;
  color: var(--color-text-light);
  font-weight: 500;
}

.stat-card.stat-accent .stat-value { color: var(--color-accent); }
.stat-card.stat-green  .stat-value { color: #38a169; }
.stat-card.stat-red    .stat-value { color: #e53e3e; }

/* ── Data Table ──────────────────────────────────────────── */

.data-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  min-width: 560px;
}

.data-table th {
  background: #f8fafc;
  font-weight: 700;
  text-align: left;
  padding: 0.65rem 0.875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.data-table td {
  padding: 0.65rem 0.875rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  color: var(--color-text);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

.data-table .td-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* ── Card Panel ──────────────────────────────────────────── */

.panel-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.panel-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.875rem;
}

/* ── Filter Bar ──────────────────────────────────────────── */

.filter-bar {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 1rem;
}

.filter-bar .form-input {
  width: auto;
  flex: 1;
  min-width: 160px;
}

/* ── Approval Card (pending requests) ───────────────────── */

.approval-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 0.875rem;
}

.approval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.approval-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-primary);
}

.approval-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.approval-card-body {
  font-size: 0.85rem;
  margin-bottom: 0.875rem;
}

.approval-card-body dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 0.3rem 0.75rem;
  margin: 0;
}

.approval-card-body dt {
  font-weight: 600;
  color: var(--color-text-light);
}

.approval-card-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── Modal ───────────────────────────────────────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100001;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex !important; opacity: 1 !important; visibility: visible !important; pointer-events: auto !important; }

.modal-box {
  z-index: 100002;
  background: var(--color-white);
  border-radius: var(--radius);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.5rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--color-text-light);
  line-height: 1;
  padding: 0.2rem;
}
.modal-close:hover { color: var(--color-text); }

.modal-footer {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* ── File Upload Zone ────────────────────────────────────── */

.upload-zone {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--color-accent);
  background: #fff7ed;
}

.upload-zone input[type="file"] {
  display: none;
}

.upload-zone-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-zone-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
}

.upload-zone-text strong {
  color: var(--color-accent);
}

/* ── Changes Diff View ───────────────────────────────────── */

.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
  margin: 0.75rem 0;
}

.diff-table th {
  text-align: left;
  padding: 0.4rem 0.6rem;
  font-weight: 700;
  color: var(--color-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-border);
}

.diff-table td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.diff-old { color: #c53030; text-decoration: line-through; }
.diff-new { color: #276749; font-weight: 600; }

/* ── Toast Notifications ─────────────────────────────────── */

.sf-toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  max-width: 320px;
}

.sf-toast.sf-toast-show {
  opacity: 1;
  transform: translateY(0);
}

.sf-toast-success { background: #276749; color: #fff; }
.sf-toast-error   { background: #c53030; color: #fff; }
.sf-toast-info    { background: var(--color-primary); color: #fff; }

/* ── Empty State ─────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--color-text-light);
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.empty-state-text {
  font-size: 0.9rem;
}

/* ── Loading Spinner ─────────────────────────────────────── */

.spinner {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Dynamic Stores Section (city pages) ─────────────────── */

.dynamic-stores-section {
  padding: 1.5rem 0;
}

.dynamic-stores-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.dynamic-stores-loading {
  padding: 1rem;
  color: var(--color-text-light);
  font-size: 0.875rem;
}

/* Auth nav link in header */
.auth-nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem !important;
  border: 1.5px solid rgba(255,255,255,0.35) !important;
  border-radius: var(--radius);
  transition: background 0.2s, border-color 0.2s, color 0.2s !important;
}

.auth-nav-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7) !important;
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,0.7) !important;
}

/* ── Responsive Dashboard ────────────────────────────────── */

@media (max-width: 640px) {
  .dash-sidebar {
    display: none;
  }

  .dash-mobile-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--color-primary);
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .dash-mobile-nav-btn {
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: var(--radius);
    color: rgba(255,255,255,0.8);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-sans);
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
  }

  .dash-mobile-nav-btn.active {
    background: var(--color-accent);
    color: #fff;
  }

  .dash-content {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 641px) {
  .dash-mobile-nav { display: none; }

  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── Hours Widget ────────────────────────────────────────── */

.hours-widget {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.hw-row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}
.hw-row:last-child { border-bottom: none; }
.hw-row:hover { background: #f9fafb; }

.hw-day {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 4.5rem;
  flex-shrink: 0;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}
.hw-day input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.hw-times {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  flex: 1;
  transition: opacity 0.15s;
}
.hw-times.hw-hidden { display: none; }

.hw-sep {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.hw-ferme {
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
}
.hw-ferme.hw-hidden { display: none; }

.hw-from, .hw-to, .hw-from2, .hw-to2, .form-input-sm {
  height: 2rem;
  padding: 0 0.5rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-sans);
  cursor: pointer;
  min-width: 0;
}
.hw-from:focus, .hw-to:focus, .hw-from2:focus, .hw-to2:focus, .form-input-sm:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.12);
}
.hw-from, .hw-to, .hw-from2, .hw-to2 { width: 5rem; }

/* Period 1 & 2 rows */
.hw-period1, .hw-period2 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.hw-period2.hw-hidden { display: none; }

.hw-et {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  min-width: 1.5rem;
}

.hw-add-period {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-primary-light);
  background: none;
  border: 1px dashed var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.15rem 0.5rem;
  cursor: pointer;
  line-height: 1.5;
  transition: border-color 0.15s, color 0.15s;
}
.hw-add-period:hover { border-color: var(--color-primary); color: var(--color-primary); }
.hw-add-period.hw-hidden { display: none; }

.hw-rm-period {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}
.hw-rm-period:hover { color: #dc2626; }

/* ── Chip Picker ─────────────────────────────────────────── */

.chip-picker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
  padding: 0.625rem;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  background: #f7f8fa;
  color: var(--color-text);
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  user-select: none;
}
.chip:hover {
  background: #edf2f7;
  border-color: var(--color-primary);
}
.chip.chip-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}
.chip.chip-active:hover {
  background: #2d4a7a;
  border-color: #2d4a7a;
}

.chip-add-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.375rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--color-border);
}

.chip-custom-input {
  flex: 1;
  min-width: 0;
  height: 2rem;
  padding: 0 0.625rem;
  font-size: 0.8125rem;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius) - 2px);
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-sans);
}
.chip-custom-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.12);
}
