/* ============================================================
   Yehulu Gebeya (የሁሉ ገበያ) — Main Stylesheet
   Arba Minch, Ethiopia | v2.0
   Theme: Warm Ethiopian Terracotta & Teal
   ============================================================ */

/* ─── CSS Custom Properties ─────────────────────────────── */
:root {
  /* ── Brand Colours ──────────────────────────────────────
     Primary:   #00827F  (Teal Green — trust, action, brand)
     Secondary: #FFFFFF  (White — clean, spacious)
     Accent:    #D4A017  (Golden — highlights, badges, CTAs)
  ────────────────────────────────────────────────────── */

  /* Primary — Teal Green */
  --color-primary:       #00827F;
  --color-primary-light: #00A89E;
  --color-primary-dark:  #005C5A;

  /* Secondary — Deep Teal (for sidebars, dark surfaces) */
  --color-secondary:       #004D4B;
  --color-secondary-light: #006F6D;
  --color-secondary-dark:  #003130;

  /* Accent — Gold */
  --color-accent:       #D4A017;
  --color-accent-light: #E8BE4A;
  --color-accent-dark:  #A87C00;

  /* Background & Text */
  --color-bg:          #F8FFFE;
  --color-surface:     #FFFFFF;
  --color-surface-alt: #EEF9F9;
  --color-border:      #C8E8E7;
  --color-text:        #1A1A1A;
  --color-text-muted:  #5A7170;
  --color-text-light:  #FFFFFF;

  /* Status */
  --color-success:  #00827F;
  --color-warning:  #B45309;
  --color-error:    #B91C1C;
  --color-info:     #0369A1;

  /* Order status */
  --status-pending:    #B45309;
  --status-processing: #0369A1;
  --status-completed:  #00827F;
  --status-cancelled:  #B91C1C;

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-sans:     'Segoe UI', 'Noto Sans Ethiopic', system-ui, sans-serif;
  --font-ethiopic: 'Noto Sans Ethiopic', 'Ethiopic Halehame Ti Er', serif;
  --font-size-xs:  0.75rem;
  --font-size-sm:  0.875rem;
  --font-size-md:  1rem;
  --font-size-lg:  1.125rem;
  --font-size-xl:  1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 16px rgba(0,0,0,.12);
  --shadow-lg:   0 10px 36px rgba(0,0,0,.14);
  --shadow-card: 0 2px 10px rgba(0,130,127,.10);   /* teal tint */

  /* Transitions */
  --transition:      0.2s ease;
  --transition-slow: 0.38s ease;

  /* Nav */
  --nav-height: 64px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-md);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.lang-am, [lang="am"] {
  font-family: var(--font-ethiopic), var(--font-sans);
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

h1, h2, h3, h4, h5 {
  line-height: 1.3;
  color: var(--color-text);
  font-weight: 700;
}

/* ─── Layout Utilities ──────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.text-center { text-align: center; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.w-full { width: 100%; }
.hidden  { display: none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Grid helpers — collapse on mobile via media queries below */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }

/* ─── Navbar ────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-primary-dark);
  height: var(--nav-height);
  box-shadow: var(--shadow-md);
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  flex-shrink: 0;
}

.navbar-brand .logo-icon {
  width: 38px;
  height: 38px;
  background: var(--color-accent);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.navbar-brand .brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.navbar-brand .brand-en {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: #fff;
  letter-spacing: .3px;
}

.navbar-brand .brand-am {
  font-size: var(--font-size-xs);
  color: var(--color-accent-light);
  font-family: var(--font-ethiopic);
}

/* Desktop nav links */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.navbar-nav a,
.navbar-nav button {
  color: rgba(255,255,255,.88);
  font-size: var(--font-size-sm);
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: none;
  background: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.navbar-nav a:hover,
.navbar-nav button:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  text-decoration: none;
}

.navbar-nav .btn-accent {
  background: var(--color-accent);
  color: #222;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.navbar-nav .btn-accent:hover {
  background: var(--color-accent-dark);
  color: #fff;
}

/* Cart badge */
.cart-link { position: relative; }

.cart-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--color-accent);
  color: #222;
  font-size: 0.65rem;
  font-weight: 800;
  width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-full);
  overflow: hidden;
  flex-shrink: 0;
}

.lang-toggle a {
  padding: 4px 10px;
  font-size: .75rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  border-radius: var(--radius-full);
  transition: background var(--transition), color var(--transition);
}

.lang-toggle a.active {
  background: var(--color-accent);
  color: #222;
}

/* Hamburger button */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
  margin: 0 auto;
}

/* ─── Flash Messages ────────────────────────────────────── */
.flash {
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  font-weight: 500;
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.flash-success { background: #E6F4EA; border-color: var(--color-success); color: var(--color-success); }
.flash-error   { background: #FDECEA; border-color: var(--color-error);   color: var(--color-error);   }
.flash-info    { background: #E3F0F6; border-color: var(--color-info);    color: var(--color-info);    }
.flash-warning { background: #FEF3CD; border-color: var(--color-warning); color: var(--color-warning); }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.55rem var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.btn-secondary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  color: #fff;
  text-decoration: none;
}

.btn-accent {
  background: var(--color-accent);
  color: #222;
  border-color: var(--color-accent);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
  text-decoration: none;
}

.btn-danger {
  background: var(--color-error);
  color: #fff;
  border-color: var(--color-error);
}
.btn-danger:hover {
  background: #a93226;
  color: #fff;
  text-decoration: none;
}

.btn-sm   { padding: 0.28rem var(--space-md); font-size: var(--font-size-sm); }
.btn-lg   { padding: 0.75rem var(--space-xl); font-size: var(--font-size-lg); }
.btn-full { width: 100%; justify-content: center; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.card-body   { padding: var(--space-lg); }
.card-footer {
  padding: var(--space-md) var(--space-lg);
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
}

/* ─── Product Card ──────────────────────────────────────── */
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--color-surface-alt);
}

.product-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-card__img-wrap img { transform: scale(1.06); }

.product-card__badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--color-accent);
  color: #222;
  font-size: .68rem;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.product-card__body {
  padding: var(--space-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__category {
  font-size: .72rem;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.product-card__title {
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__shop {
  font-size: .8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  flex: 1;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}

.product-card__price {
  font-size: var(--font-size-lg);
  font-weight: 800;
  color: var(--color-primary);
}

.product-card__add {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.product-card__add:hover {
  background: var(--color-primary-dark);
  transform: scale(1.1);
}

/* ─── Shop Card ─────────────────────────────────────────── */
.shop-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
}

.shop-card__banner {
  height: 100px;
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-secondary));
  position: relative;
  overflow: hidden;
}

.shop-card__banner img { width: 100%; height: 100%; object-fit: cover; }

.shop-card__logo {
  position: absolute;
  bottom: -22px;
  left: var(--space-md);
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-surface);
  overflow: hidden;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 800;
}

.shop-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.shop-card__body {
  padding: calc(var(--space-lg) + var(--space-sm)) var(--space-md) var(--space-md);
}

.shop-card__name {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.shop-card__location {
  font-size: .8rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero .container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.hero__content h1 {
  font-size: var(--font-size-4xl);
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.15;
}

.hero__content h1 span { color: var(--color-accent-light); }

.hero__content p {
  font-size: var(--font-size-lg);
  color: rgba(255,255,255,.88);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 380px;
  width: 100%;
}

.hero__image-grid img {
  border-radius: var(--radius-md);
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.hero__image-grid img:first-child {
  grid-row: span 2;
  aspect-ratio: 1/2;
}

/* ─── Sections ──────────────────────────────────────────── */
.section     { padding: var(--space-3xl) 0; }
.section-alt { background: var(--color-surface-alt); }

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.section-header p {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  max-width: 560px;
  margin-inline: auto;
}

.section-divider {
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  margin: var(--space-md) auto 0;
}

/* ─── Product Grid & Filters ────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  padding: var(--space-md);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  align-items: center;
  border: 1px solid var(--color-border);
}

.filter-bar .search-box {
  flex: 1;
  min-width: 180px;
  position: relative;
}

.filter-bar .search-box input {
  width: 100%;
  padding: 0.6rem var(--space-md) 0.6rem 2.4rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  transition: border-color var(--transition);
  background: var(--color-bg);
  font-family: inherit;
}

.filter-bar .search-box input:focus {
  outline: none;
  border-color: var(--color-primary);
}

.filter-bar .search-box .search-icon {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.chip {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.chip:hover, .chip.active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

/* ─── Forms ─────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.form-control {
  width: 100%;
  padding: 0.62rem var(--space-md);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-md);
  background: #fff;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,130,127,.18);
}

.form-control.is-invalid { border-color: var(--color-error); }

.form-text  { font-size: var(--font-size-sm); color: var(--color-text-muted); margin-top: var(--space-xs); }
.form-error { font-size: var(--font-size-sm); color: var(--color-error); margin-top: var(--space-xs); }

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236B6059' d='M7 7l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 2.5rem;
}

textarea.form-control { resize: vertical; min-height: 90px; }

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

/* Auth card — see .auth-page-wrap section below */

/* ─── Cart Panel ────────────────────────────────────────── */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: var(--color-surface);
  box-shadow: -4px 0 28px rgba(0,0,0,.18);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-slow);
  overflow: hidden;
}

.cart-panel.open { right: 0; }

.cart-panel__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.48);
  z-index: 1999;
  display: none;
  backdrop-filter: blur(2px);
}

.cart-panel__overlay.open { display: block; }

.cart-panel__header {
  padding: var(--space-lg);
  background: var(--color-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-panel__header h2 { color: #fff; font-size: var(--font-size-xl); }

.cart-panel__close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-md);
  transition: background var(--transition);
  line-height: 1;
}

.cart-panel__close:hover { background: rgba(255,255,255,.15); }

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.cart-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--color-text-muted);
  gap: var(--space-md);
  text-align: center;
}

.cart-panel__empty svg { width: 72px; height: 72px; color: var(--color-border); }

.cart-item {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.cart-item__img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--color-surface-alt);
  flex-shrink: 0;
}

.cart-item__info { flex: 1; min-width: 0; }

.cart-item__name {
  font-weight: 600;
  font-size: var(--font-size-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: var(--font-size-sm);
  margin-top: 2px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  font-size: .95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: background var(--transition), border-color var(--transition);
  line-height: 1;
}

.qty-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.qty-value {
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  font-size: var(--font-size-sm);
}

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-error);
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  transition: background var(--transition);
  flex-shrink: 0;
}

.cart-item__remove:hover { background: #fdecea; }

.cart-panel__footer {
  padding: var(--space-lg);
  border-top: 2px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

/* ─── Tables ────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); -webkit-overflow-scrolling: touch; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
  background: var(--color-surface);
  min-width: 500px;
}

th, td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

th {
  background: var(--color-surface-alt);
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  font-size: .72rem;
  letter-spacing: .5px;
  white-space: nowrap;
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--color-surface-alt); }

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  white-space: nowrap;
}

.badge-pending    { background: #FEF3CD; color: var(--status-pending); }
.badge-processing { background: #E3F0F6; color: var(--status-processing); }
.badge-completed  { background: #E6F4EA; color: var(--status-completed); }
.badge-cancelled  { background: #FDECEA; color: var(--status-cancelled); }
.badge-active     { background: #E6F4EA; color: var(--color-success); }
.badge-inactive   { background: #EEEEEE; color: #757575; }

/* ─── Dashboard Layout ──────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
}

.sidebar {
  background: var(--color-secondary-dark);
  color: #fff;
  padding: var(--space-xl) 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 0.75rem var(--space-xl);
  color: rgba(255,255,255,.75);
  font-size: var(--font-size-sm);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
  border-left: 3px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: var(--color-accent);
  text-decoration: none;
}

.sidebar-nav a i { width: 18px; text-align: center; flex-shrink: 0; }

.dashboard-main {
  padding: var(--space-2xl);
  background: var(--color-bg);
  min-width: 0;
}

.dashboard-header {
  margin-bottom: var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.dashboard-header h1 { font-size: var(--font-size-2xl); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  border-left: 4px solid var(--color-primary);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
}

.stat-card--accent  { border-left-color: var(--color-accent-dark); }
.stat-card--info    { border-left-color: var(--color-secondary); }
.stat-card--success { border-left-color: var(--color-success); }

.stat-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.stat-card__value {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-text);
  line-height: 1;
}

.stat-card__label {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 3px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .4px;
}

/* ─── Why Grid ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.why-item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.why-item__icon {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  color: #fff;
  font-size: 1.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.why-item h3 { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }
.why-item p  { color: var(--color-text-muted); line-height: 1.7; }

/* ─── Pagination ────────────────────────────────────────── */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.pagination li a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-sm);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 600;
  transition: all var(--transition);
  text-decoration: none;
}

.pagination li a:hover,
.pagination li.active a {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ─── Footer ────────────────────────────────────────────── */
.footer {
  background: var(--color-secondary-dark);
  color: rgba(255,255,255,.8);
  padding: var(--space-3xl) 0 var(--space-lg);
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-xl);
}

.footer-brand .brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.footer-brand .brand-name {
  font-size: var(--font-size-xl);
  font-weight: 800;
  color: #fff;
}

.footer-brand p {
  line-height: 1.7;
  color: rgba(255,255,255,.7);
  max-width: 300px;
  font-size: var(--font-size-sm);
}

.footer h4 {
  color: #fff;
  font-size: var(--font-size-md);
  margin-bottom: var(--space-md);
  font-weight: 700;
}

.footer ul li { margin-bottom: var(--space-sm); }

.footer ul li a {
  color: rgba(255,255,255,.68);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition);
}

.footer ul li a:hover { color: var(--color-accent-light); text-decoration: none; }

.footer-bottom {
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.45);
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs);
  padding: var(--space-md) 0;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.breadcrumb a { color: var(--color-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span.sep { color: var(--color-border); }

/* ─── Toast Notifications ───────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}

.toast {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md) var(--space-lg);
  min-width: 260px;
  max-width: 340px;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  pointer-events: all;
  animation: slideInToast 0.3s ease forwards;
  border-left: 4px solid var(--color-primary);
  font-size: var(--font-size-sm);
}

.toast.toast-success { border-left-color: var(--color-success); }
.toast.toast-error   { border-left-color: var(--color-error); }
.toast.toast-info    { border-left-color: var(--color-info); }

@keyframes slideInToast {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes fadeOutToast {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(120%); }
}

.toast.removing { animation: fadeOutToast 0.3s ease forwards; }

/* ─── Payment method cards ──────────────────────────────── */
.payment-method-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: var(--space-md) var(--space-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--color-surface);
  text-align: center;
  user-select: none;
}

.payment-method-option:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-alt);
}

.payment-method-option.selected {
  border-color: var(--color-primary);
  background: rgba(0,130,127,.07);
  box-shadow: 0 0 0 3px rgba(0,130,127,.15);
}

.pm-icon { font-size: 1.6rem; line-height: 1; }
.pm-label { font-size: .78rem; font-weight: 600; color: var(--color-text); }

/* ─── Hamburger animation (open state) ─────────────────── */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Skeleton loading cards ────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton-line,
.skeleton-img,
.skeleton-circle {
  background: linear-gradient(90deg,
    var(--color-border) 25%,
    var(--color-surface-alt) 50%,
    var(--color-border) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

.skeleton-img {
  aspect-ratio: 1 / 1;
  width: 100%;
  border-radius: 0;
}

.skeleton-circle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.skeleton-card {
  pointer-events: none;
  user-select: none;
}

/* ─── Shop category checkbox grid ───────────────────────── */
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
}

.shop-cat-option {
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  font-size: .88rem;
  background: var(--color-surface);
}

.shop-cat-option:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.shop-cat-option.checked {
  border-color: var(--color-primary);
  background: rgba(0,130,127,.08);
  color: var(--color-primary);
  font-weight: 600;
}

.shop-cat-option input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.shop-cat-option i {
  color: var(--color-primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

/* ─── Spinner ───────────────────────────────────────────── */
.spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Tablet  (≤1024px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual    { display: none; }

  .why-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }

  .dashboard-layout { grid-template-columns: 200px 1fr; }
  .dashboard-main   { padding: var(--space-xl); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Mobile  (≤768px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --font-size-4xl: 1.9rem;
    --font-size-3xl: 1.55rem;
    --font-size-2xl: 1.3rem;
    --space-3xl: 2.5rem;
    --space-2xl: 2rem;
    --nav-height: 60px;
  }

  /* ── Navbar mobile ── */
  .nav-toggle { display: flex; }

  .navbar-brand .brand-am { display: none; }

  .navbar-nav {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-slow), opacity var(--transition-slow);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    max-height: calc(100dvh - var(--nav-height));
    overflow-y: auto;
  }

  .navbar-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .navbar-nav a,
  .navbar-nav button {
    padding: 12px var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-md);
    justify-content: flex-start;
    width: 100%;
  }

  .lang-toggle {
    margin-top: var(--space-xs);
    align-self: flex-start;
  }

  /* ── Grids ── */
  .why-grid    { grid-template-columns: 1fr; }
  .grid-4      { grid-template-columns: 1fr 1fr; }
  .grid-3      { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  /* ── Dashboard ── */
  .dashboard-layout { grid-template-columns: 1fr; }

  .sidebar {
    position: static;
    height: auto;
    flex-direction: row;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .sidebar-nav {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
  }

  .sidebar-nav a {
    padding: 8px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
    border-radius: var(--radius-md);
    font-size: var(--font-size-xs);
    flex-shrink: 0;
  }

  .sidebar-nav a:hover,
  .sidebar-nav a.active {
    border-left-color: transparent;
    border-bottom-color: var(--color-accent);
    background: rgba(255,255,255,.12);
  }

  .sidebar-nav hr { display: none; }

  .dashboard-main { padding: var(--space-md); }

  /* ── Auth ── */
  .auth-card { margin: var(--space-md); border-radius: var(--radius-lg); }
  .auth-card__body   { padding: var(--space-lg); }
  .auth-card__header { padding: var(--space-lg); }

  /* ── Cart ── */
  .cart-panel { width: 100vw; }

  /* ── Product grid ── */
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-md); }

  /* ── Hero ── */
  .hero { padding: var(--space-2xl) 0; }
  .hero__content h1 { font-size: var(--font-size-3xl); }
  .hero__actions    { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* ── Section ── */
  .section { padding: var(--space-2xl) 0; }

  /* ── Why grid ── */
  .why-item { padding: var(--space-lg); }

  /* ── Tables scroll ── */
  .table-wrap { border-radius: 0; }

  /* ── Toast on mobile ── */
  .toast-container { left: var(--space-md); right: var(--space-md); bottom: var(--space-md); }
  .toast           { min-width: 0; width: 100%; max-width: 100%; }

  /* ── Container padding ── */
  .container { padding-inline: var(--space-md); }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — Small mobile  (≤480px)
═══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.65rem;
    --font-size-3xl: 1.35rem;
  }

  .grid-2  { grid-template-columns: 1fr; }
  .grid-4  { grid-template-columns: 1fr; }
  .grid-3  { grid-template-columns: 1fr; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .product-grid { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-sm); }

  .btn-lg { padding: 0.65rem var(--space-lg); font-size: var(--font-size-md); }

  .auth-card { margin: var(--space-sm); }
  .auth-card__body   { padding: var(--space-md); }
  .auth-card__header { padding: var(--space-md); }

  .section-header h2 { font-size: var(--font-size-2xl); }

  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE — All mobile (≤768px) — consolidated
═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Checkout ── */
  .checkout-grid { display: flex !important; flex-direction: column; gap: var(--space-lg); }
  .checkout-summary-sticky { position: static !important; }
  .payment-method-grid { grid-template-columns: 1fr 1fr !important; }
  .payment-method-option { padding: var(--space-sm) var(--space-xs); }
  .pm-icon  { font-size: 1.2rem; }
  .pm-label { font-size: .7rem; }

  /* ── Orders / shared grid-2 ── */
  .grid-2 { grid-template-columns: 1fr; }

  /* ── Shop info card ── */
  .shop-info-card { flex-direction: column !important; }

  /* ── Product detail ── */
  .product-detail { grid-template-columns: 1fr; gap: var(--space-md); }
  .product-detail__img-wrap {
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    max-height: 280px;
  }
}

/* ─── Notification Bell ─────────────────────────────────── */
.notif-wrap {
  position: relative;
  display: inline-flex;
}

.notif-bell {
  position: relative;
  background: none;
  border: none;
  color: rgba(255,255,255,.88);
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  transition: background var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.notif-bell:hover { background: rgba(255,255,255,.14); }

.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--color-secondary);
  color: #fff;
  font-size: .6rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  animation: notifPop .3s ease;
}

@keyframes notifPop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-width: calc(100vw - 1rem);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  z-index: 1100;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: top right;
}

.notif-dropdown.open {
  display: flex;
  animation: dropdownOpen .18s ease;
}

@keyframes dropdownOpen {
  from { opacity: 0; transform: scale(.95) translateY(-6px); }
  to   { opacity: 1; transform: scale(1)  translateY(0); }
}

.notif-dropdown__header {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary-dark);
  color: #fff;
  font-weight: 700;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.notif-dropdown__body {
  max-height: 340px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notif-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  transition: background var(--transition);
}

.notif-item:hover { background: var(--color-surface-alt); text-decoration: none; color: var(--color-text); }

.notif-item.unread { background: rgba(0,130,127,.05); }

.notif-item__title {
  font-weight: 700;
  font-size: .82rem;
  color: var(--color-text);
  margin-bottom: 2px;
}

.notif-item__msg {
  font-size: .78rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-item__time {
  font-size: .7rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.notif-empty {
  padding: var(--space-xl);
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.notif-empty i { font-size: 1.8rem; display: block; margin-bottom: .5rem; color: var(--color-border); }

.notif-dropdown__footer {
  padding: var(--space-sm) var(--space-md);
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.notif-dropdown__footer a {
  font-size: .82rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.notif-dropdown__footer a:hover { text-decoration: underline; }

/* Mobile — full-width dropdown */
@media (max-width: 480px) {
  .notif-dropdown {
    right: -4rem;
    width: calc(100vw - 1rem);
  }
}

/* ─── Shop page — search bar ────────────────────────────── */
.shop-search-bar {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  align-items: center;
}

.shop-search-bar__input-wrap {
  flex: 1;
  position: relative;
}

.shop-search-bar__input-wrap i.fa-magnifying-glass {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  font-size: 1rem;
}

.shop-search-bar__input-wrap input {
  width: 100%;
  padding: .85rem 2.8rem .85rem 2.8rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  box-shadow: var(--shadow-sm);
}

.shop-search-bar__input-wrap input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,130,127,.12);
}

.shop-search-bar__input-wrap input::-webkit-search-cancel-button { display: none; }

/* ─── Filters toggle (mobile only) ──────────────────────── */
.shop-filter-toggle {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .82rem var(--space-lg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
  font-family: inherit;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}

.shop-filter-toggle:hover { border-color: var(--color-primary); color: var(--color-primary); }
.shop-filter-toggle[aria-expanded="true"],
.shop-filter-toggle.has-filter {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.shop-filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--color-secondary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .68rem;
  font-weight: 800;
  padding: 0 5px;
}

.shop-filter-toggle.has-filter .shop-filter-badge {
  background: rgba(255,255,255,.3);
  color: #fff;
}

/* ─── Filter panel ───────────────────────────────────────── */
.shop-filter-panel {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-xl);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,130,127,.10);
  border: 1.5px solid rgba(0,130,127,.12);
}

/* Desktop: panel is always open as a horizontal bar */
@media (min-width: 769px) {
  .shop-filter-toggle { display: none; }
  .shop-filter-panel  { display: block !important; }
  .shop-search-bar    { margin-bottom: var(--space-md); }
}

/* Mobile: panel hides and slides in */
@media (max-width: 768px) {
  .shop-filter-panel {
    display: none;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
  }
  .shop-filter-panel.open {
    display: block;
    animation: filterSlideIn .22s cubic-bezier(.16,1,.3,1);
  }
}

@keyframes filterSlideIn {
  from { opacity:0; transform:translateY(-10px) scale(.98); }
  to   { opacity:1; transform:translateY(0)     scale(1); }
}

/* ─── Filter panel header ────────────────────────────────── */
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
}

.filter-panel-header h3 {
  color: #fff;
  font-size: var(--font-size-md);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .5rem;
}

/* ─── Filter sections grid — SIMPLE layout ───────────────── */
.filter-sections-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 769px) {
  .filter-sections-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 0.8fr 0.8fr;
  }
}

.filter-section {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

@media (min-width: 769px) {
  .filter-section {
    border-bottom: none;
    border-right: 1px solid var(--color-border);
  }
  .filter-section:last-child { border-right: none; }
}

/* Label */
.shop-filter-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* ─── Filter pills ───────────────────────────────────────── */
.shop-cat-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.shop-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .32rem .85rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  font-family: inherit;
  line-height: 1.4;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.shop-cat-pill i { font-size: .75rem; }

.shop-cat-pill:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0,130,127,.06);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,130,127,.15);
}

.shop-cat-pill:active { transform: scale(.96); }

.shop-cat-pill.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 10px rgba(0,130,127,.35);
}

/* Special colours for item-filter pills */
.shop-cat-pill[data-toggle="in_stock"].active {
  background: var(--color-success);
  border-color: var(--color-success);
  box-shadow: 0 3px 10px rgba(46,125,79,.35);
}

.shop-cat-pill[data-toggle="featured"].active {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 3px 10px rgba(212,137,10,.35);
}

/* Sort pill special style */
.shop-cat-pill[data-sort].active {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  box-shadow: 0 3px 10px rgba(212,160,23,.3);
}

/* Mobile: bigger tap targets */
@media (max-width: 768px) {
  .shop-cat-pill {
    padding: .45rem 1rem;
    font-size: .82rem;
  }
}

/* ─── Price range inputs ─────────────────────────────────── */
.price-inputs {
  display: flex;
  align-items: flex-end;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.price-input-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 70px;
}

.price-input-group label {
  font-size: .65rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.price-input-group input {
  width: 100%;
  padding: .45rem .65rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -moz-appearance: textfield;
}

.price-input-group input::-webkit-outer-spin-button,
.price-input-group input::-webkit-inner-spin-button { -webkit-appearance: none; }

.price-input-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,130,127,.12);
}

.price-sep {
  color: var(--color-border);
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: .3rem;
  flex-shrink: 0;
}

/* ─── Filter footer (clear button row) ──────────────────── */
.filter-panel-footer {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.filter-active-summary {
  font-size: .78rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
}

.filter-active-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: 2px 8px;
  background: rgba(0,130,127,.1);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 600;
}

/* ─── Product detail layout ─────────────────────────────── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  margin-bottom: var(--space-2xl);
}

.product-detail__img-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--color-surface-alt);
  aspect-ratio: 1;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.product-detail__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail__info {
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .product-detail__img-wrap {
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    max-height: 280px;
  }
}

/* ─── General mobile fixes — (handled above) ────────────── */

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — mobile-first components
═══════════════════════════════════════════════════════════ */

/* ─── Hero extras ───────────────────────────────────────── */
.hero__outline-btn {
  border-color: rgba(255,255,255,.6);
  color: #fff;
  background: transparent;
}
.hero__outline-btn:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

.hero__area-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: var(--space-lg);
}

.hero__area-pill {
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.92);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: .78rem;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.2);
}

.hero__emoji-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
}

.hero__emoji-cell {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.14);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  aspect-ratio: 1;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
}

.hero__emoji-cell--tall {
  grid-row: span 2;
  aspect-ratio: auto;
  font-size: 3.2rem;
}

/* ─── Home search bar ───────────────────────────────────── */
.home-search-section {
  background: var(--color-surface);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.home-search-form {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  flex-wrap: wrap;
  max-width: 780px;
  margin: 0 auto;
}

.home-search-input-wrap {
  flex: 2;
  min-width: 180px;
  position: relative;
}

.home-search-input-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.home-search-input-wrap input {
  width: 100%;
  padding: .82rem 1rem .82rem 2.8rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-md);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.home-search-input-wrap input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,130,127,.12);
}

.home-search-input-wrap input::-webkit-search-cancel-button { display: none; }

.home-search-cat-wrap {
  flex: 1;
  min-width: 140px;
  position: relative;
}

.home-search-cat-wrap i {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 1;
  font-size: .9rem;
}

.home-search-cat-select {
  width: 100%;
  padding: .82rem 2.2rem .82rem 2.5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%236B6059' d='M7 7l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  transition: border-color var(--transition);
}

.home-search-cat-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.home-search-btn {
  border-radius: var(--radius-full) !important;
  white-space: nowrap;
  flex-shrink: 0;
  padding-left: var(--space-xl);
  padding-right: var(--space-xl);
}

/* ─── Category quick-scroll ─────────────────────────────── */
.home-cats-section {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
}

.home-cats-scroll {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.home-cats-scroll::-webkit-scrollbar { display: none; }

.home-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: .82rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all .15s ease;
  flex-shrink: 0;
}

.home-cat-chip:hover,
.home-cat-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ─── Shops horizontal scroll grid (mobile) ─────────────── */
.shops-scroll-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .shops-scroll-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .shops-scroll-grid::-webkit-scrollbar { display: none; }
  .shops-scroll-grid .shop-card {
    min-width: 200px;
    flex-shrink: 0;
  }
}

/* ─── Vendor CTA section ─────────────────────────────────── */
.vendor-cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--space-2xl) 0;
}

.vendor-cta-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
  text-align: left;
}

.vendor-cta__icon {
  font-size: 3rem;
  flex-shrink: 0;
}

.vendor-cta__text { flex: 1; min-width: 200px; }

.vendor-cta__text h2 {
  color: #fff;
  font-size: var(--font-size-2xl);
  margin-bottom: .4rem;
}

.vendor-cta__text p {
  color: rgba(255,255,255,.85);
  font-size: var(--font-size-sm);
  margin: 0;
}

.vendor-cta__btn {
  background: var(--color-accent);
  color: #222;
  border-color: var(--color-accent);
  font-weight: 800;
  flex-shrink: 0;
}

.vendor-cta__btn:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .vendor-cta-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }
  .vendor-cta__btn { width: 100%; justify-content: center; }
}

/* ─── Home search bar — mobile stack ───────────────────── */
@media (max-width: 600px) {
  .home-search-form {
    flex-direction: column;
    gap: var(--space-sm);
  }
  .home-search-input-wrap,
  .home-search-cat-wrap { width: 100%; min-width: 0; flex: none; }
  .home-search-btn { width: 100%; }
}

/* ─── Auth page polish ───────────────────────────────────── */
.auth-page-wrap {
  min-height: calc(100dvh - var(--nav-height));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: var(--color-bg);
}

/* Center vertically only on screens tall enough */
@media (min-height: 600px) {
  .auth-page-wrap { align-items: center; }
}

.auth-card {
  max-width: 460px;
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.auth-card__header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  color: #fff;
}

.auth-card__header h1 { color: #fff; font-size: var(--font-size-2xl); }
.auth-card__header p  { color: rgba(255,255,255,.82); margin-top: var(--space-xs); }
.auth-card__body      { padding: var(--space-xl) var(--space-2xl); }

@media (max-width: 480px) {
  .auth-page-wrap { padding: var(--space-md) var(--space-sm); align-items: flex-start; }
  .auth-card { border-radius: var(--radius-lg); }
  .auth-card__body   { padding: var(--space-lg) var(--space-md); }
  .auth-card__header { padding: var(--space-lg) var(--space-md); }
}

/* ═══════════════════════════════════════════════════════════
   FINAL RESPONSIVE FIXES
═══════════════════════════════════════════════════════════ */

/* ── Dashboard grid-2 should NOT collapse inside dashboard ── */
/* Override the global .grid-2 collapse for dashboard pages */
.dashboard-main .grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 640px) {
  .dashboard-main .grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .stat-card  { padding: var(--space-md); }
  .stat-card__value { font-size: var(--font-size-xl); }
  .dashboard-header { flex-direction: column; align-items: flex-start; }
  .dashboard-main { padding: var(--space-sm); }
}

/* ── Checkout on small screens ── */
@media (max-width: 640px) {
  .checkout-grid { display: flex !important; flex-direction: column; }
  .checkout-summary-sticky { position: static !important; }
  .payment-method-grid { grid-template-columns: 1fr 1fr !important; gap: var(--space-xs) !important; }
  .pm-icon  { font-size: 1.1rem; }
  .pm-label { font-size: .68rem; }
}

/* ── Filter panel — compact on mobile ── */
@media (max-width: 768px) {
  .filter-panel-header { padding: var(--space-sm) var(--space-md); }
  .filter-panel-header h3 { font-size: var(--font-size-sm); }
  .filter-section { padding: var(--space-sm) var(--space-md); }
  .filter-panel-footer { padding: var(--space-xs) var(--space-md); }
  .shop-cat-pill { padding: .35rem .8rem; font-size: .78rem; }
  .price-inputs { flex-wrap: nowrap; }
  .price-input-group { min-width: 60px; }
}

/* ── Shop search bar — full width on tiny screens ── */
@media (max-width: 480px) {
  .shop-search-bar { flex-wrap: wrap; }
  .shop-search-bar__input-wrap { flex: 1 1 100%; }
  .shop-filter-toggle { flex: 1; justify-content: center; }
}

/* ── Product grid — always 2 cols minimum on phones ── */
@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: var(--space-sm);
  }
  .product-card__title { font-size: .82rem; }
  .product-card__price { font-size: var(--font-size-md); }
  .product-card__add   { width: 32px; height: 32px; font-size: 1rem; }
}

/* ── Hero actions — stack on tiny screens ── */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .hero__area-pills { gap: .3rem; }
  .hero__area-pill  { font-size: .72rem; padding: 3px 10px; }
}

/* ── Auth page — no gap on tiny screens ── */
@media (max-width: 400px) {
  .auth-page-wrap { padding: 0; }
  .auth-card { border-radius: 0; box-shadow: none; }
}

/* ── Notification dropdown — keep on screen ── */
@media (max-width: 480px) {
  .notif-dropdown {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: calc(100dvh - var(--nav-height) - 2rem);
    overflow-y: auto;
  }
}

/* ── Table — force scroll on all screens ── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

/* ── Vendor products form grid ── */
@media (max-width: 640px) {
  .vendor-form-grid { grid-template-columns: 1fr !important; }
}

/* ── Shop cat pills — scrollable row on mobile ── */
@media (max-width: 480px) {
  .shop-cat-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 3px;
  }
  .shop-cat-pills::-webkit-scrollbar { display: none; }
  .shop-cat-pill { flex-shrink: 0; }
}

/* ── Price inputs on tiny phones ── */
@media (max-width: 360px) {
  .price-inputs { flex-direction: column; }
  .price-sep    { display: none; }
  .price-input-group { min-width: 0; width: 100%; }
}

/* ─── Price inputs on tiny phones — end of file ── */

/* ─── Setup-shop page wrap ───────────────────────────────── */
.setup-shop-wrap {
  max-width: 700px;
  margin: var(--space-xl) auto;
  padding: 0 var(--space-md);
}

.setup-shop-header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  padding: var(--space-xl) var(--space-2xl);
  text-align: center;
  color: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.setup-shop-header h1 { color: #fff; font-size: var(--font-size-2xl); }
.setup-shop-header p  { color: rgba(255,255,255,.82); margin-top: var(--space-xs); }

.setup-shop-body {
  background: var(--color-surface);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xl) var(--space-2xl);
}

/* ─── Shop category checkbox grid ───────────────────────── */
.shop-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
}

.shop-cat-option {
  display: flex;
  align-items: center;
  gap: .45rem;
  cursor: pointer;
  padding: .45rem .6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  font-size: .88rem;
  background: var(--color-surface);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.shop-cat-option:hover {
  border-color: var(--color-primary);
  background: #fff;
}

.shop-cat-option.checked {
  border-color: var(--color-primary);
  background: rgba(0,130,127,.08);
  color: var(--color-primary);
  font-weight: 600;
}

.shop-cat-option input[type="checkbox"] {
  accent-color: var(--color-primary);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.shop-cat-option i {
  color: var(--color-primary);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  font-size: .82rem;
}

/* ─── Auth & setup-shop mobile ───────────────────────────── */
@media (max-width: 480px) {
  .auth-page-wrap  { padding: var(--space-sm); align-items: flex-start; }
  .auth-card       { border-radius: var(--radius-lg); }
  .auth-card__header { padding: var(--space-lg) var(--space-md); }
  .auth-card__body   { padding: var(--space-lg) var(--space-md); }

  .setup-shop-wrap   { margin: 0; padding: 0; }
  .setup-shop-header { border-radius: 0; padding: var(--space-lg) var(--space-md); }
  .setup-shop-body   { border-radius: 0; padding: var(--space-lg) var(--space-md); }

  .shop-cat-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ═══════════════════════════════════════════════════════════
   MISSING / EXTENDED STYLES — appended
═══════════════════════════════════════════════════════════ */

/* ─── Auth pages (.auth-page-wrap / .auth-card) ─────────── */
.auth-page-wrap {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-md);
  background: linear-gradient(135deg, var(--color-surface-alt) 0%, var(--color-bg) 100%);
}

.auth-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.auth-card__header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.auth-card__header h1 {
  color: #fff;
  font-size: var(--font-size-2xl);
  margin-bottom: .35rem;
}

.auth-card__header p {
  color: rgba(255,255,255,.8);
  font-size: var(--font-size-sm);
  margin: 0;
}

.auth-card__body {
  padding: var(--space-xl);
}

/* ─── Vendor / staff form 2-col grid ────────────────────── */
.vendor-form-grid {
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .vendor-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ─── Home search section continuation ──────────────────── */
.home-search-input-wrap input {
  width: 100%;
  padding: .85rem var(--space-md) .85rem 2.8rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}

.home-search-input-wrap input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,130,127,.12);
}

.home-search-cat-wrap {
  flex: 1;
  min-width: 160px;
  position: relative;
}

.home-search-cat-wrap i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.home-search-cat-select {
  width: 100%;
  padding: .85rem var(--space-md) .85rem 2.6rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-family: inherit;
  background: var(--color-surface);
  color: var(--color-text);
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.home-search-cat-select:focus {
  outline: none;
  border-color: var(--color-primary);
}

.home-search-btn {
  border-radius: var(--radius-full);
  padding: .85rem var(--space-xl);
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .home-search-form     { flex-direction: column; }
  .home-search-cat-wrap { width: 100%; }
  .home-search-btn      { width: 100%; justify-content: center; }
}

/* ─── Home categories scroll strip ──────────────────────── */
.home-cats-section {
  background: var(--color-surface);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.home-cats-scroll {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.home-cats-scroll::-webkit-scrollbar { display: none; }

.home-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition);
  flex-shrink: 0;
}

.home-cat-chip:hover,
.home-cat-chip.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}

/* ─── Featured shops horizontal scroll ──────────────────── */
.shops-scroll-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .shops-scroll-grid {
    display: flex;
    gap: var(--space-md);
    overflow-x: auto;
    padding-bottom: var(--space-sm);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .shops-scroll-grid::-webkit-scrollbar { display: none; }
  .shops-scroll-grid .shop-card {
    min-width: 200px;
    flex-shrink: 0;
  }
}

/* ─── Vendor CTA section ────────────────────────────────── */
.vendor-cta-section {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-3xl) 0;
}

.vendor-cta-inner {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.vendor-cta__icon {
  font-size: 3.5rem;
  flex-shrink: 0;
}

.vendor-cta__text {
  flex: 1;
  min-width: 200px;
}

.vendor-cta__text h2 {
  color: #fff;
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
}

.vendor-cta__text p {
  color: rgba(255,255,255,.8);
  font-size: var(--font-size-md);
  margin: 0;
}

.vendor-cta__btn {
  background: var(--color-accent);
  color: #222;
  border-color: var(--color-accent);
  font-weight: 700;
  flex-shrink: 0;
}

.vendor-cta__btn:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: #fff;
  text-decoration: none;
}

@media (max-width: 600px) {
  .vendor-cta-inner     { flex-direction: column; text-align: center; }
  .vendor-cta__btn      { width: 100%; justify-content: center; }
}


/* ═══════════════════════════════════════════════════════════
   VENDOR MOBILE-FIRST UI  (v-* prefix)
   All vendor pages use .v-layout / .v-main / .v-sidebar
═══════════════════════════════════════════════════════════ */

/* ── Layout shell ─────────────────────────────────────── */
.v-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
  background: #F0F9F9;
}

.v-main {
  flex: 1;
  min-width: 0;
  padding: var(--space-lg) var(--space-md);
  padding-bottom: 90px; /* room for bottom tab bar */
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 769px) {
  .v-main { padding-bottom: var(--space-2xl); }
}

/* ── Desktop sidebar ──────────────────────────────────── */
.v-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #004D4B 0%, #003130 100%);
  min-height: calc(100vh - var(--nav-height));
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) 0;
}

.v-sidebar__brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0 var(--space-md) var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: var(--space-md);
}

.v-sidebar__logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.2);
}

.v-sidebar__logo--placeholder {
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
}

.v-sidebar__brand-text { min-width: 0; }
.v-sidebar__shop-name  { display: block; font-weight: 700; color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-sidebar__role       { display: block; font-size: .72rem; color: rgba(255,255,255,.5); }

.v-sidebar__nav { flex: 1; padding: 0 var(--space-sm); }
.v-sidebar__footer { padding: var(--space-md) var(--space-sm) 0; border-top: 1px solid rgba(255,255,255,.1); }

.v-sidebar__link {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: .65rem var(--space-md);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 2px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.v-sidebar__link:hover  { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.v-sidebar__link.active { background: rgba(255,255,255,.18); color: #fff; font-weight: 700; }
.v-sidebar__link--danger { color: rgba(255,100,100,.8); }
.v-sidebar__link--danger:hover { background: rgba(255,80,80,.12); color: #ff9999; }

.v-sidebar__badge {
  margin-left: auto;
  background: #D4A017;
  color: #1A1A1A;
  font-size: .65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* hide sidebar on mobile */
@media (max-width: 768px) { .v-sidebar { display: none; } }

/* ── Mobile bottom tab bar ────────────────────────────── */
.v-bottomnav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  z-index: 800;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  .v-bottomnav { display: flex; }
}

.v-bottomnav__item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: #9CA3AF;
  text-decoration: none;
  background: none; border: none; cursor: pointer; font-family: inherit;
  font-size: .65rem; font-weight: 500;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}

.v-bottomnav__item.active { color: var(--color-primary); }
.v-bottomnav__item:hover  { color: var(--color-primary); text-decoration: none; }

.v-bottomnav__icon-wrap {
  position: relative;
  font-size: 1.2rem;
  line-height: 1;
}

.v-bottomnav__badge {
  position: absolute;
  top: -5px; right: -7px;
  background: #EF4444;
  color: #fff;
  font-size: .55rem;
  font-weight: 800;
  min-width: 15px; height: 15px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid #fff;
}

.v-bottomnav__label { font-size: .62rem; }

/* ── More drawer ──────────────────────────────────────── */
.v-more-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 900;
}
.v-more-overlay.open { display: block; }

.v-more-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 20px 20px 0 0;
  z-index: 901;
  padding: var(--space-md) var(--space-md) max(var(--space-xl), env(safe-area-inset-bottom));
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.16,1,.3,1);
}
.v-more-drawer.open { transform: translateY(0); }

.v-more-drawer__handle {
  width: 36px; height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin: 0 auto var(--space-md);
}

.v-more-drawer__item {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 4px;
  transition: background .15s;
  font-size: .95rem;
}
.v-more-drawer__item:hover { background: var(--color-surface-alt); text-decoration: none; }
.v-more-drawer__item i { width: 20px; color: var(--color-primary); }
.v-more-drawer__item--danger { color: #EF4444; }
.v-more-drawer__item--danger i { color: #EF4444; }

/* ── Page header ──────────────────────────────────────── */
.v-page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.v-page-title { font-size: var(--font-size-2xl); font-weight: 800; line-height: 1.2; }
.v-page-sub   { font-size: .85rem; color: var(--color-text-muted); margin-top: 2px; }
.v-back-link  { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--color-text-muted); margin-bottom: .25rem; text-decoration: none; }
.v-back-link:hover { color: var(--color-primary); text-decoration: none; }
.v-section-title { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--color-text-muted); margin-bottom: var(--space-sm); margin-top: var(--space-lg); }
.v-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-sm); margin-top: var(--space-xl); }
.v-section-link { font-size: .82rem; color: var(--color-primary); font-weight: 600; }

/* ── Alerts ───────────────────────────────────────────── */
.v-alert {
  display: flex; align-items: flex-start; gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.4;
}
.v-alert div { display: flex; flex-direction: column; gap: 2px; }
.v-alert div strong { font-weight: 700; }
.v-alert div span   { font-size: .82rem; opacity: .8; }
.v-alert--warning { background: #FEF3C7; color: #92400E; border: 1px solid #FDE68A; }
.v-alert--error   { background: #FEE2E2; color: #991B1B; border: 1px solid #FECACA; }
.v-alert--info    { background: #DBEAFE; color: #1E40AF; border: 1px solid #BFDBFE; }
.v-alert--success { background: #DCFCE7; color: #166534; border: 1px solid #BBF7D0; }

/* ── Stat strip (horizontal scroll on mobile) ─────────── */
.v-stats-strip {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: var(--space-xl);
}
.v-stats-strip::-webkit-scrollbar { display: none; }

.v-stat-card {
  flex-shrink: 0;
  min-width: 130px;
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  display: flex; flex-direction: column; gap: 4px;
  box-shadow: var(--shadow-card);
  color: #fff;
}
.v-stat-card__icon { font-size: 1.3rem; opacity: .8; margin-bottom: 2px; }
.v-stat-card__val  { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.v-stat-card__lbl  { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; opacity: .85; }

.v-stat-card--teal   { background: linear-gradient(135deg,#005C5A,#00827F); }
.v-stat-card--gold   { background: linear-gradient(135deg,#A87C00,#D4A017); }
.v-stat-card--orange { background: linear-gradient(135deg,#9A3412,#EA580C); }
.v-stat-card--blue   { background: linear-gradient(135deg,#1E40AF,#3B82F6); }
.v-stat-card--purple { background: linear-gradient(135deg,#6D28D9,#A855F7); }
.v-stat-card--slate  { background: linear-gradient(135deg,#374151,#6B7280); }

/* ── Quick action cards ───────────────────────────────── */
.v-quick-actions {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
@media (max-width: 480px) { .v-quick-actions { grid-template-columns: repeat(4,1fr); } }

.v-qa-card {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  padding: var(--space-md) var(--space-xs);
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  text-decoration: none; color: var(--color-text);
  font-size: .72rem; font-weight: 600; text-align: center;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.v-qa-card:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; color: var(--color-text); }
.v-qa-card:active { transform: scale(.96); }

.v-qa-card__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

/* ── Order cards ──────────────────────────────────────── */
.v-order-list { display: flex; flex-direction: column; gap: var(--space-sm); }

.v-order-card {
  display: flex; align-items: stretch;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none; color: var(--color-text);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.v-order-card:hover  { transform: translateY(-1px); box-shadow: var(--shadow-md); text-decoration: none; color: var(--color-text); }
.v-order-card:active { transform: scale(.99); }

.v-order-card__status-bar { width: 5px; flex-shrink: 0; }
.v-order-card__body { flex: 1; padding: var(--space-md); display: flex; flex-direction: column; gap: .4rem; }
.v-order-card__top  { display: flex; justify-content: space-between; align-items: center; }
.v-order-card__id   { font-size: .88rem; font-weight: 800; color: var(--color-text); }

.v-order-card__badge {
  font-size: .7rem; font-weight: 700;
  padding: 2px 8px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 3px;
}
.v-order-card__customer { font-size: .85rem; color: var(--color-text-muted); }
.v-order-card__footer   { display: flex; justify-content: space-between; align-items: center; }
.v-order-card__amount   { font-size: .95rem; font-weight: 700; color: var(--color-primary); }
.v-order-card__date     { font-size: .75rem; color: var(--color-text-muted); }

/* ── Order detail cards ───────────────────────────────── */
.v-detail-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-md);
  overflow: hidden;
}
.v-detail-card__header {
  padding: var(--space-sm) var(--space-lg);
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
  font-weight: 700; font-size: .85rem;
  color: var(--color-primary);
  display: flex; align-items: center; gap: .5rem;
}
.v-detail-card__body { padding: var(--space-md) var(--space-lg); }

.v-detail-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--space-md); padding: .5rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
}
.v-detail-row:last-child { border-bottom: none; }
.v-detail-row span { color: var(--color-text-muted); white-space: nowrap; flex-shrink: 0; }
.v-detail-row strong { text-align: right; }

.v-order-item-row {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}
.v-order-item-row:last-child { border-bottom: none; }
.v-order-item-row--total { background: var(--color-surface-alt); padding: var(--space-md) var(--space-lg); }
.v-order-total-amount { font-size: 1.1rem; font-weight: 800; color: var(--color-primary); }

/* ── Status button group ──────────────────────────────── */
.v-status-btn-group { display: flex; gap: var(--space-xs); flex-wrap: wrap; }
.v-status-btn {
  flex: 1; min-width: 80px;
  padding: .55rem var(--space-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  font-size: .8rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  color: var(--color-text-muted);
  transition: all .15s;
}
.v-status-btn:hover   { border-color: var(--color-primary); color: var(--color-primary); }
.v-status-btn--active { font-weight: 800; }

/* ── Product grid ─────────────────────────────────────── */
.v-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
@media (max-width: 400px) {
  .v-product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
}

.v-pcard {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
.v-pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.v-pcard__img-wrap {
  position: relative; aspect-ratio: 1;
  background: var(--color-surface-alt);
  overflow: hidden;
}
.v-pcard__img-wrap img { width:100%; height:100%; object-fit: cover; display: block; }

.v-pcard__featured {
  position: absolute; top: 8px; left: 8px;
  background: #D4A017; color: #fff;
  font-size: .7rem; width: 24px; height: 24px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.v-pcard__stock {
  position: absolute; bottom: 6px; right: 6px;
  font-size: .65rem; font-weight: 700; padding: 2px 7px;
  border-radius: 99px;
}
.v-pcard__stock--ok  { background: rgba(0,130,127,.9); color: #fff; }
.v-pcard__stock--low { background: rgba(234,88,12,.9);  color: #fff; }
.v-pcard__stock--out { background: rgba(185,28,28,.9);  color: #fff; }

.v-pcard__body   { padding: var(--space-sm); flex: 1; }
.v-pcard__name   { font-size: .85rem; font-weight: 700; line-height: 1.3; margin-bottom: 2px; }
.v-pcard__name-am{ font-size: .75rem; color: var(--color-text-muted); margin-bottom: 4px; }
.v-pcard__price  { font-size: .88rem; font-weight: 800; color: var(--color-primary); }

.v-pcard__actions {
  display: flex; align-items: center;
  border-top: 1px solid var(--color-border);
}
.v-pcard__btn {
  flex: 1; padding: .5rem var(--space-sm);
  font-size: .78rem; font-weight: 600;
  border: none; background: none; cursor: pointer;
  font-family: inherit; display: flex; align-items: center;
  justify-content: center; gap: .3rem;
  border-right: 1px solid var(--color-border);
  transition: background .15s;
  text-decoration: none; color: var(--color-text);
}
.v-pcard__btn:last-child { border-right: none; }
.v-pcard__btn--edit:hover { background: #EEF9F9; color: var(--color-primary); }
.v-pcard__btn--view:hover { background: #EEF9F9; color: var(--color-primary); }
.v-pcard__btn--del  { color: #EF4444; }
.v-pcard__btn--del:hover { background: #FEE2E2; }

/* ── Product mini row (low stock) ────────────────────── */
.v-product-cards { display: flex; flex-direction: column; gap: var(--space-xs); margin-bottom: var(--space-lg); }
.v-product-mini {
  display: flex; align-items: center; gap: var(--space-md);
  background: #fff; border-radius: var(--radius-lg);
  padding: var(--space-sm) var(--space-md);
  box-shadow: var(--shadow-card); text-decoration: none; color: var(--color-text);
  transition: background .15s;
}
.v-product-mini:hover { background: #EEF9F9; text-decoration: none; }
.v-product-mini img   { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.v-product-mini__info { flex: 1; min-width: 0; }
.v-product-mini__name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v-product-mini__stock { font-size: .75rem; font-weight: 600; }
.v-product-mini__stock--low { color: #EA580C; }
.v-product-mini__stock--out { color: #EF4444; }

/* ── Filter chips ─────────────────────────────────────── */
.v-filter-scroll {
  display: flex; gap: var(--space-xs);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px; margin-bottom: var(--space-sm);
  flex-wrap: nowrap;
}
.v-filter-scroll::-webkit-scrollbar { display: none; }

.v-chip {
  display: inline-flex; align-items: center;
  padding: .35rem .9rem; border-radius: 99px;
  border: 1.5px solid var(--color-border);
  background: #fff; color: var(--color-text-muted);
  font-size: .8rem; font-weight: 500; white-space: nowrap;
  text-decoration: none; flex-shrink: 0;
  transition: all .15s; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.v-chip:hover   { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.v-chip--active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────── */
.v-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; padding: .6rem 1.2rem;
  border-radius: var(--radius-lg); border: 2px solid transparent;
  font-family: inherit; font-size: .88rem; font-weight: 700;
  cursor: pointer; text-decoration: none;
  transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.v-btn:hover { text-decoration: none; }
.v-btn--primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.v-btn--primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }
.v-btn--ghost   { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.v-btn--ghost:hover { border-color: var(--color-primary); color: var(--color-primary); background: #EEF9F9; }
.v-btn--danger  { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.v-btn--danger:hover { background: #EF4444; color: #fff; border-color: #EF4444; }
.v-btn--success { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.v-btn--success:hover { background: #00827F; color: #fff; border-color: #00827F; }
.v-btn--sm      { padding: .4rem .85rem; font-size: .8rem; border-radius: var(--radius-md); }
.v-btn--full    { width: 100%; }

/* ── Icon buttons ─────────────────────────────────────── */
.v-icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-size: .9rem;
  transition: all .15s; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.v-icon-btn--ghost  { background: var(--color-surface-alt); color: var(--color-text-muted); }
.v-icon-btn--ghost:hover { background: var(--color-primary); color: #fff; }
.v-icon-btn--danger { background: #FEE2E2; color: #EF4444; }
.v-icon-btn--danger:hover { background: #EF4444; color: #fff; }

/* ── Generic badges ───────────────────────────────────── */
.vbadge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .2rem .65rem; border-radius: 99px;
  font-size: .75rem; font-weight: 700;
}
.vbadge--teal   { background: #DCFCE7; color: #00827F; }
.vbadge--gold   { background: #FEF9C3; color: #A87C00; }
.vbadge--red    { background: #FEE2E2; color: #B91C1C; }
.vbadge--blue   { background: #DBEAFE; color: #1E40AF; }
.vbadge--purple { background: #F3E8FF; color: #7C3AED; }
.vbadge--orange { background: #FFEDD5; color: #9A3412; }

/* ── Forms ────────────────────────────────────────────── */
.v-form { display: flex; flex-direction: column; gap: 0; }

.v-form-section {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.v-form-section__title {
  font-size: .82rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .5px; color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: .5rem;
}

.v-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 480px) { .v-form-row { grid-template-columns: 1fr; } }

.v-form-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: var(--space-md); }
.v-form-field:last-child { margin-bottom: 0; }
.v-form-field label { font-size: .8rem; font-weight: 700; color: var(--color-text-muted); }

.v-form-field input,
.v-form-field textarea,
.v-form-field select {
  padding: .75rem var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: inherit; font-size: .9rem;
  background: var(--color-surface-alt);
  color: var(--color-text);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
  -webkit-appearance: none;
}
.v-form-field input:focus,
.v-form-field textarea:focus,
.v-form-field select:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0,130,127,.1);
}
.v-form-field textarea { resize: vertical; }

.v-form-actions { padding: var(--space-sm) 0 var(--space-xl); display: flex; flex-direction: column; gap: var(--space-sm); }

/* ── Toggle field ─────────────────────────────────────── */
.v-toggle-field {
  display: flex; align-items: center; gap: var(--space-md);
  cursor: pointer; padding: var(--space-sm) 0;
}
.v-toggle-field input { display: none; }
.v-toggle-field__track {
  width: 44px; height: 24px; border-radius: 12px;
  background: var(--color-border); flex-shrink: 0;
  position: relative; transition: background .2s;
}
.v-toggle-field__track::after {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.v-toggle-field input:checked ~ .v-toggle-field__track { background: var(--color-primary); }
.v-toggle-field input:checked ~ .v-toggle-field__track::after { transform: translateX(20px); }

/* ── Category chip grid ───────────────────────────────── */
.v-cat-grid { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.v-cat-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .85rem; border-radius: 99px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-alt);
  font-size: .8rem; cursor: pointer;
  transition: all .15s; color: var(--color-text-muted);
  -webkit-tap-highlight-color: transparent;
}
.v-cat-chip:hover      { border-color: var(--color-primary); color: var(--color-primary); }
.v-cat-chip--active    { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }

/* ── Image upload hero ────────────────────────────────── */
.v-img-upload-hero {
  position: relative; width: 100%; aspect-ratio: 4/3;
  max-height: 260px; border-radius: var(--radius-xl);
  overflow: hidden; margin-bottom: var(--space-md);
  background: var(--color-surface-alt);
  border: 2px dashed var(--color-border);
  cursor: pointer;
}
.v-img-upload-hero__placeholder {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: var(--space-sm);
  height: 100%; color: var(--color-text-muted);
}
.v-img-upload-hero__placeholder i { font-size: 2.5rem; opacity: .4; }
.v-img-upload-hero__overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff; padding: var(--space-md) var(--space-lg);
  font-size: .88rem; font-weight: 700;
  display: flex; align-items: center; gap: .5rem;
  cursor: pointer;
}

/* ── Shop hero ────────────────────────────────────────── */
.v-shop-hero {
  border-radius: var(--radius-xl); overflow: hidden;
  background: var(--color-surface-alt);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-card);
}
.v-shop-hero__banner {
  position: relative; height: 130px;
  background: linear-gradient(135deg,#004D4B,#00827F);
  overflow: hidden;
}
.v-shop-hero__banner img { width:100%; height:100%; object-fit:cover; display:block; }
.v-shop-hero__banner-ph {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  height:100%; gap:.5rem; color:rgba(255,255,255,.5); font-size:.85rem;
}
.v-shop-hero__banner-ph i { font-size:2rem; }
.v-shop-hero__banner-btn {
  position:absolute; top:8px; right:8px;
  width:32px; height:32px; border-radius:50%;
  background:rgba(0,0,0,.5); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:.85rem; cursor:pointer;
}
.v-shop-hero__logo-wrap {
  display:flex; align-items:center; gap:var(--space-md);
  padding:var(--space-sm) var(--space-md) var(--space-md);
  background:#fff;
}
.v-shop-hero__logo {
  width:64px; height:64px; border-radius:50%;
  border:3px solid #fff; box-shadow:0 2px 8px rgba(0,0,0,.15);
  background:var(--color-primary); margin-top:-32px;
  overflow:hidden; flex-shrink:0; position:relative;
}
.v-shop-hero__logo img { width:100%; height:100%; object-fit:cover; }
.v-shop-hero__logo-ph  {
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.5rem;
}
.v-shop-hero__logo-btn {
  position:absolute; bottom:0; right:0;
  width:22px; height:22px; border-radius:50%;
  background:rgba(0,0,0,.5); color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:.6rem; cursor:pointer;
}

/* ── Staff cards ──────────────────────────────────────── */
.v-staff-list { display:flex; flex-direction:column; gap:var(--space-sm); margin-bottom:var(--space-xl); }
.v-staff-card {
  display:flex; align-items:center; gap:var(--space-md);
  background:#fff; border-radius:var(--radius-xl);
  padding:var(--space-md); box-shadow:var(--shadow-card);
}
.v-staff-card__avatar {
  width:48px; height:48px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1.2rem; font-weight:800;
}
.v-staff-card__info  { flex:1; min-width:0; }
.v-staff-card__name  { font-weight:700; font-size:.9rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v-staff-card__email { font-size:.78rem; color:var(--color-text-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v-staff-card__actions { display:flex; gap:.4rem; flex-shrink:0; }

/* ── Role picker ──────────────────────────────────────── */
.v-role-picker { display:flex; flex-direction:column; gap:var(--space-sm); }
@media (min-width:480px) { .v-role-picker { flex-direction:row; } }

.v-role-option {
  flex:1; display:flex; align-items:center; gap:var(--space-md);
  padding:var(--space-md); border-radius:var(--radius-lg);
  border:2px solid var(--color-border); background:var(--color-surface-alt);
  cursor:pointer; transition:all .15s;
}
.v-role-option input { display:none; }
.v-role-option:hover { border-color:var(--color-primary); }
.v-role-option--active { border-color:var(--color-primary); background:rgba(0,130,127,.06); }
.v-role-option__icon {
  width:40px; height:40px; border-radius:var(--radius-md);
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-size:1rem; flex-shrink:0;
}
.v-role-option div { display:flex; flex-direction:column; gap:1px; }
.v-role-option strong { font-size:.88rem; }
.v-role-option span   { font-size:.75rem; color:var(--color-text-muted); }

/* ── Reports: bar chart ───────────────────────────────── */
.v-bar-track { height:8px; background:var(--color-border); border-radius:4px; overflow:hidden; }
.v-bar-track--sm { height:5px; }
.v-bar-fill { height:100%; border-radius:4px; transition:width .6s cubic-bezier(.16,1,.3,1); min-width:2px; }

.v-bar-chart {
  display:flex; align-items:flex-end; gap:4px;
  height:120px; padding:0 4px;
  overflow-x:auto; -webkit-overflow-scrolling:touch;
  scrollbar-width:none;
}
.v-bar-chart::-webkit-scrollbar { display:none; }
.v-bar-chart__col {
  flex:1; min-width:28px; display:flex;
  flex-direction:column; align-items:center; gap:3px; position:relative;
}
.v-bar-chart__col:hover .v-bar-chart__tooltip { opacity:1; }
.v-bar-chart__tooltip {
  position:absolute; bottom:100%; left:50%; transform:translateX(-50%);
  background:#1A1A1A; color:#fff; font-size:.65rem; white-space:nowrap;
  padding:3px 6px; border-radius:4px; pointer-events:none; opacity:0;
  transition:opacity .15s; z-index:10;
}
.v-bar-chart__bar {
  width:100%; border-radius:4px 4px 0 0;
  background:linear-gradient(180deg,var(--color-primary-light),var(--color-primary));
  min-height:4px; transition:height .4s ease;
}
.v-bar-chart__label { font-size:.6rem; color:var(--color-text-muted); text-align:center; white-space:nowrap; }

.v-top-product-row {
  display:flex; align-items:center; gap:var(--space-sm);
  padding:var(--space-sm) 0;
  border-bottom:1px solid var(--color-border);
}
.v-top-product-row:last-child { border-bottom:none; }
.v-top-product-row__rank { font-size:1.1rem; width:24px; text-align:center; flex-shrink:0; }
.v-top-product-row__img  { width:36px; height:36px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.v-top-product-row__info { flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.v-top-product-row__name { font-size:.85rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.v-top-product-row__stats{ display:flex; flex-direction:column; align-items:flex-end; gap:1px; flex-shrink:0; }
.v-top-product-row__stats strong { font-size:.88rem; color:var(--color-text); }
.v-top-product-row__stats span   { font-size:.75rem; color:var(--color-primary); }

/* ── Empty state ──────────────────────────────────────── */
.v-empty-state {
  text-align:center; padding:var(--space-3xl) var(--space-md);
  color:var(--color-text-muted);
  display:flex; flex-direction:column; align-items:center; gap:var(--space-md);
}
.v-empty-state i { font-size:3rem; opacity:.25; display:block; }
.v-empty-state p { font-size:1rem; font-weight:600; margin:0; }

/* ── Table inside vendor pages ────────────────────────── */
.v-table-wrap { overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:var(--radius-md); }
.v-table-wrap table { width:100%; border-collapse:collapse; font-size:.85rem; }
.v-table-wrap th { padding:.6rem var(--space-md); text-align:left; font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.4px; color:var(--color-text-muted); border-bottom:2px solid var(--color-border); white-space:nowrap; background:var(--color-surface-alt); }
.v-table-wrap td { padding:.65rem var(--space-md); border-bottom:1px solid var(--color-border); vertical-align:middle; }
.v-table-wrap tr:last-child td { border-bottom:none; }
.v-table-wrap tfoot td { font-weight:700; background:var(--color-surface-alt); }

/* ── Hide site footer on vendor dashboard pages ──────── */
.v-layout ~ footer,
.v-layout + footer,
.v-layout ~ * footer {
  display: none !important;
}

/* Target the footer that follows the v-layout wrapper */
body:has(.v-layout) .footer {
  display: none !important;
}

/* Fallback for browsers without :has() support —
   add a body class via the v-layout presence */
body.v-page .footer { display: none !important; }

/* ── Bottom nav: icons only, no labels ───────────────── */
.v-bottomnav__label { display: none !important; }

/* Slightly larger icons now that labels are gone */
.v-bottomnav__icon-wrap { font-size: 1.45rem; }

/* Tighter vertical padding since there's no label row */
.v-bottomnav__item { padding: 8px 2px; gap: 0; }

/* Danger tint for the ellipsis/logout button */
.v-bottomnav__item--danger { color: #EF4444; }
.v-bottomnav__item--danger:hover,
.v-bottomnav__item--danger:focus { color: #DC2626; }

/* ── Bottom nav: restore labels, reset overrides ─────── */
.v-bottomnav__label { display: block !important; }
.v-bottomnav__icon-wrap { font-size: 1.25rem; }
.v-bottomnav__item { padding: 5px 2px; gap: 3px; }
.v-bottomnav__item--danger { color: #EF4444; }

/* ═══════════════════════════════════════════════════════════
   STATS GRID — 2 cols × 3 rows (replaces horizontal strip)
═══════════════════════════════════════════════════════════ */
.v-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

/* On desktop show all 6 in a single row like before */
@media (min-width: 769px) {
  .v-stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* Cards inside the grid stretch to fill */
.v-stats-grid .v-stat-card {
  min-width: 0;
  flex-shrink: unset;
}

/* ═══════════════════════════════════════════════════════════
   GOOGLE MAPS LOCATION PICKER
═══════════════════════════════════════════════════════════ */
.v-map-search-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
  margin-bottom: var(--space-sm);
}
.v-map-search-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,130,127,.1);
  background: #fff;
}
.v-map-search-wrap > i {
  padding: 0 .75rem;
  color: var(--color-text-muted);
  font-size: .9rem;
  flex-shrink: 0;
}
.v-map-search-wrap input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: .75rem 0 !important;
  box-shadow: none !important;
  outline: none;
  font-size: .9rem;
  color: var(--color-text);
  min-width: 0;
}
.v-map-search-wrap button {
  padding: .75rem var(--space-md);
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  transition: background .15s;
  flex-shrink: 0;
}
.v-map-search-wrap button:hover { background: var(--color-primary-dark); }

.v-map-preview {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--color-border);
  background: var(--color-surface-alt);
  position: relative;
  margin-bottom: var(--space-sm);
}
@media (min-width: 600px) { .v-map-preview { height: 260px; } }

.v-map-preview__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-lg);
  pointer-events: none;
}
.v-map-preview__placeholder i {
  font-size: 2.5rem;
  color: var(--color-primary);
  opacity: .35;
}
.v-map-preview__placeholder span {
  font-size: .82rem;
  line-height: 1.5;
  max-width: 240px;
}

.v-location-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(0,130,127,.07);
  border: 1.5px solid rgba(0,130,127,.25);
  border-radius: var(--radius-lg);
  font-size: .88rem;
  font-weight: 500;
  color: var(--color-text);
}

/* ═══════════════════════════════════════════════════════════
   PHONE — country code selector
═══════════════════════════════════════════════════════════ */
.v-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: visible;
  background: var(--color-surface-alt);
  transition: border-color .15s, box-shadow .15s;
  position: relative;
}
.v-phone-wrap:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,130,127,.1);
  background: #fff;
}

.v-phone-flag-btn {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .75rem var(--space-sm) .75rem var(--space-md);
  background: none;
  border: none;
  border-right: 2px solid var(--color-border);
  cursor: pointer;
  font-size: .9rem;
  font-family: inherit;
  color: var(--color-text);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s;
}
.v-phone-flag-btn:hover { background: rgba(0,130,127,.06); }

#vPhoneFlag    { font-size: 1.2rem; }
#vPhoneDialCode{ font-weight: 700; font-size: .85rem; }

.v-phone-wrap input[type="tel"] {
  flex: 1;
  border: none !important;
  background: transparent !important;
  padding: .75rem var(--space-md) !important;
  box-shadow: none !important;
  outline: none;
  font-size: .9rem;
  min-width: 0;
}

/* Country dropdown */
.v-country-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: 500;
  overflow: hidden;
  max-height: 280px;
  display: flex;
  flex-direction: column;
}

.v-country-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  flex-shrink: 0;
}
.v-country-search i { color: var(--color-text-muted); font-size: .85rem; }
.v-country-search input {
  border: none !important;
  background: transparent !important;
  outline: none;
  font-size: .88rem;
  width: 100%;
  padding: 0 !important;
  box-shadow: none !important;
}

.v-country-list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.v-country-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .6rem var(--space-md);
  cursor: pointer;
  font-size: .88rem;
  transition: background .12s;
  border-bottom: 1px solid var(--color-border);
}
.v-country-item:last-child { border-bottom: none; }
.v-country-item:hover { background: var(--color-surface-alt); }
.v-country-item span:first-child { font-size: 1.2rem; flex-shrink: 0; }
.v-country-item span:nth-child(2) { flex: 1; }
.v-country-dial { font-weight: 700; color: var(--color-primary); font-size: .8rem; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   ADMIN ORDERS — dropdown filter bar
═══════════════════════════════════════════════════════════ */
.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--space-md);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-card);
}

.admin-filter-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  flex: 1;
  min-width: 180px;
}

.admin-filter-label {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.admin-filter-select-wrap {
  position: relative;
}

.admin-filter-select {
  width: 100%;
  padding: .65rem 2.4rem .65rem var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  font-family: inherit;
  font-size: .9rem;
  color: var(--color-text);
  appearance: none;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.admin-filter-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,130,127,.1);
  background: #fff;
}

.admin-filter-arrow {
  position: absolute;
  right: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: .8rem;
  pointer-events: none;
}

.admin-filter-clear {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .6rem var(--space-md);
  border-radius: var(--radius-lg);
  background: #FEE2E2;
  color: #B91C1C;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  align-self: flex-end;
  transition: background .15s;
}
.admin-filter-clear:hover { background: #FECACA; color: #991B1B; text-decoration: none; }

.admin-filter-count {
  align-self: flex-end;
  font-size: .82rem;
  color: var(--color-text-muted);
  font-weight: 600;
  white-space: nowrap;
  padding-bottom: .65rem;
}

@media (max-width: 600px) {
  .admin-filter-group { min-width: 100%; }
  .admin-filter-clear,
  .admin-filter-count { align-self: flex-start; }
}

/* ═══════════════════════════════════════════════════════════
   REPORTS — period tile selector
═══════════════════════════════════════════════════════════ */
.v-period-tile {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.v-period-tile:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0,130,127,.04);
  text-decoration: none;
}
.v-period-tile--active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
}
.v-period-tile--active:hover { color: #fff; }
.v-period-tile i { font-size: 1rem; }

/* ═══════════════════════════════════════════════════════════
   SHOP — category checkbox grid
═══════════════════════════════════════════════════════════ */
.v-cat-count {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  background: rgba(0,130,127,.12);
  color: var(--color-primary);
  padding: 2px 10px;
  border-radius: 99px;
  text-transform: none;
  letter-spacing: 0;
}

.v-cat-search-wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: .55rem var(--space-md);
  background: var(--color-surface-alt);
  margin-bottom: var(--space-md);
  transition: border-color .15s;
}
.v-cat-search-wrap:focus-within {
  border-color: var(--color-primary);
  background: #fff;
}
.v-cat-search-wrap i { color: var(--color-text-muted); font-size: .9rem; flex-shrink: 0; }
.v-cat-search-wrap input {
  border: none !important;
  background: transparent !important;
  outline: none;
  font-size: .88rem;
  width: 100%;
  padding: 0 !important;
  box-shadow: none !important;
}

.v-cat-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-xs);
  max-height: 320px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

@media (max-width: 480px) {
  .v-cat-checkbox-grid { grid-template-columns: 1fr 1fr; }
}

.v-cat-checkbox-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem .8rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  cursor: pointer;
  transition: all .15s;
  position: relative;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.v-cat-checkbox-item:hover {
  border-color: var(--color-primary);
  background: rgba(0,130,127,.04);
}
.v-cat-checkbox-item--checked {
  border-color: var(--color-primary);
  background: rgba(0,130,127,.08);
}

.v-cat-checkbox-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.v-cat-checkbox-item__icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.v-cat-checkbox-item--checked .v-cat-checkbox-item__icon {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.v-cat-checkbox-item__label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--color-text);
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.v-cat-checkbox-item--checked .v-cat-checkbox-item__label {
  color: var(--color-primary);
  font-weight: 700;
}

.v-cat-checkbox-item__check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: .6rem;
  color: transparent;
  transition: all .15s;
}
.v-cat-checkbox-item--checked .v-cat-checkbox-item__check {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR LOGO — real image replaces emoji
═══════════════════════════════════════════════════════════ */
.navbar-logo {
  height: 52px;
  width:  52px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  transition: transform .2s ease;
}

.navbar-brand:hover .navbar-logo { transform: scale(1.06); }

/* Brand text — always visible next to logo */
.navbar-brand .brand-text {
  display: flex !important;
  flex-direction: column;
  line-height: 1.15;
  gap: 0;
}

.navbar-brand .brand-en {
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.navbar-brand .brand-am {
  font-size: .7rem;
  font-weight: 600;
  color: rgba(255,255,255,.72);
  letter-spacing: .2px;
  font-family: var(--font-ethiopic), var(--font-sans);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

/* ── Mobile overrides ── */
@media (max-width: 768px) {
  /* Bigger logo on mobile */
  .navbar-logo {
    height: 62px;
    width:  62px;
  }

  /* Hide "Gebeya" — show "Yehulu" only */
  .navbar-brand .brand-en {
    font-size: 1.1rem;
  }
  /* Replace text content on mobile via a data attribute trick:
     We hide the full English name and show a clipped version */
  .navbar-brand .brand-en::after {
    content: none;
  }
  .navbar-brand .brand-en .brand-word-yehulu  { display: inline; }
  .navbar-brand .brand-en .brand-word-gebeya  { display: none; }
}

@media (min-width: 769px) {
  .navbar-brand .brand-en .brand-word-yehulu { display: inline; }
  .navbar-brand .brand-en .brand-word-gebeya { display: inline; }
}

/* ─── Sidebar platform logo ──────────────────────────── */
.v-sidebar__platform-logo {
  display: block;
  width: 100%;
  max-width: 120px;
  height: auto;
  object-fit: contain;
  margin: 0 auto var(--space-sm);
  border-radius: 8px;
}

/* On narrow sidebars (desktop), show smaller version */
@media (min-width: 769px) {
  .v-sidebar__platform-logo {
    max-width: 90px;
    margin-bottom: var(--space-xs);
  }
}

/* ── v-icon-btn--success (missing variant) ────────────── */
.v-icon-btn--success { background:#DCFCE7; color:#00827F; }
.v-icon-btn--success:hover { background:#00827F; color:#fff; }

/* ── Hide site footer on admin pages too ─────────────── */
body:has(.v-layout) .footer { display: none !important; }
body.v-page .footer          { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   CORE COMPONENTS — flash, badge, btn, card, table, forms
   (added as a complete block — none of these existed before)
═══════════════════════════════════════════════════════════ */

/* ─── Flash / Alert Messages ─────────────────────────── */
.flash {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  font-size: .9rem;
  line-height: 1.5;
  font-weight: 500;
  border: 1px solid transparent;
}
.flash-success { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.flash-error   { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.flash-warning { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }
.flash-info    { background: #DBEAFE; color: #1E40AF; border-color: #BFDBFE; }

/* ─── Badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem .75rem;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  text-transform: capitalize;
  white-space: nowrap;
  line-height: 1.4;
}

/* Order status badges */
.badge-pending    { background: #FEF3C7; color: #92400E; }
.badge-processing { background: #DBEAFE; color: #1E40AF; }
.badge-completed  { background: #DCFCE7; color: #166534; }
.badge-cancelled  { background: #FEE2E2; color: #991B1B; }

/* Generic state badges */
.badge-active   { background: #DCFCE7; color: #166534; }
.badge-inactive { background: #F3F4F6; color: #6B7280; }
.badge-featured { background: #FEF9C3; color: #A87C00; }

/* ─── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem var(--space-lg);
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  font-family: inherit;
  font-size: var(--font-size-sm);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; }

.btn-secondary { background: var(--color-secondary); color: #fff; border-color: var(--color-secondary); }
.btn-secondary:hover { background: var(--color-secondary-dark); color: #fff; }

.btn-accent { background: var(--color-accent); color: #1A1A1A; border-color: var(--color-accent); }
.btn-accent:hover { background: var(--color-accent-dark); color: #fff; }

.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-surface-alt); }

.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-danger { background: #FEE2E2; color: #991B1B; border-color: #FECACA; }
.btn-danger:hover { background: #EF4444; color: #fff; border-color: #EF4444; }

.btn-sm  { padding: .35rem .85rem; font-size: .78rem; border-radius: var(--radius-md); }
.btn-lg  { padding: .8rem var(--space-xl); font-size: var(--font-size-md); }
.btn-full { width: 100%; }

/* ─── Cards ───────────────────────────────────────────── */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.card-body { padding: var(--space-lg); }

/* ─── Forms ───────────────────────────────────────────── */
.form-group  { display: flex; flex-direction: column; gap: .35rem; margin-bottom: var(--space-md); }
.form-label  { font-size: .82rem; font-weight: 700; color: var(--color-text-muted); }

.form-control {
  width: 100%;
  padding: .7rem var(--space-md);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: var(--color-surface);
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(0,130,127,.1);
}
.form-control::placeholder { color: var(--color-text-muted); opacity: .7; }

select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

.form-check {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}
.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 17px;
  height: 17px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
  cursor: pointer;
}

/* ─── Table ───────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
}
.table-wrap table,
table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}
table th {
  padding: .65rem var(--space-md);
  text-align: left;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: var(--color-text-muted);
  border-bottom: 2px solid var(--color-border);
  white-space: nowrap;
  background: var(--color-surface-alt);
}
table td {
  padding: .7rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}
table tr:last-child td { border-bottom: none; }
table tfoot td { font-weight: 700; background: var(--color-surface-alt); }
table tr:hover td { background: var(--color-surface-alt); }

/* ─── Dashboard layout ────────────────────────────────── */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - var(--nav-height));
}
.dashboard-main {
  padding: var(--space-xl);
  max-width: 1100px;
  width: 100%;
}
.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}
.dashboard-header h1 { font-size: var(--font-size-2xl); }

/* Old sidebar (non-v- layout — kept for backward compat) */
.sidebar {
  background: linear-gradient(180deg, var(--color-secondary-dark), var(--color-secondary));
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: var(--space-md) var(--space-sm);
  gap: 2px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .65rem var(--space-md);
  border-radius: var(--radius-md);
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  font-weight: 500;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
.sidebar-nav a.active { background: rgba(255,255,255,.16); color: #fff; font-weight: 700; border-left-color: var(--color-accent); }

/* ─── Stats grid (old layout) ─────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}
.stat-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.stat-card__icon {
  font-size: 1.6rem;
  color: var(--color-primary);
  flex-shrink: 0;
}
.stat-card__value { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.stat-card__label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--color-text-muted); margin-top: 2px; }

/* Chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .85rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: .8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all .15s;
  white-space: nowrap;
}
.chip:hover   { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.chip.active  { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }

/* ─── Product Card ────────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-lg);
}
.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card__img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-alt);
  display: block;
  text-decoration: none;
}
.product-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s ease;
}
.product-card:hover .product-card__img-wrap img { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--color-accent);
  color: #1A1A1A;
  font-size: .65rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.product-card__body { padding: var(--space-sm) var(--space-md); flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: .68rem; color: var(--color-secondary); text-transform: uppercase; letter-spacing: .4px; font-weight: 700; margin-bottom: .2rem; }
.product-card__title { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; line-height: 1.35; flex: 1; }
.product-card__shop { font-size: .72rem; color: var(--color-text-muted); margin-bottom: var(--space-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-top: var(--space-xs); border-top: 1px solid var(--color-border); margin-top: auto; }
.product-card__price { font-weight: 800; color: var(--color-primary); font-size: .95rem; }
.product-card__add {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--color-primary); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .9rem; flex-shrink: 0;
  transition: background .15s, transform .1s;
  -webkit-tap-highlight-color: transparent;
}
.product-card__add:hover  { background: var(--color-primary-dark); }
.product-card__add:active { transform: scale(.9); }

/* ─── Shop Card ───────────────────────────────────────── */
.shop-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform .15s, box-shadow .15s;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }
.shop-card__banner {
  height: 100px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  position: relative;
  overflow: hidden;
}
.shop-card__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-card__logo {
  position: absolute;
  bottom: -20px; left: var(--space-md);
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  border: 3px solid var(--color-surface);
  background: var(--color-primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shop-card__logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-card__body { padding: var(--space-lg) var(--space-md) var(--space-md); padding-top: calc(var(--space-md) + 24px); }
.shop-card__name { font-weight: 700; font-size: var(--font-size-md); margin-bottom: .2rem; }
.shop-card__location { font-size: .78rem; color: var(--color-text-muted); display: flex; align-items: center; gap: .3rem; }

/* ─── Section ─────────────────────────────────────────── */
.section { padding: var(--space-3xl) 0; }
.section-alt { padding: var(--space-3xl) 0; background: var(--color-surface-alt); }
.section-header { text-align: center; margin-bottom: var(--space-2xl); }
.section-header h2 { font-size: var(--font-size-3xl); margin-bottom: var(--space-sm); }
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin: var(--space-sm) auto 0;
}

/* ─── Cart Panel ──────────────────────────────────────── */
.cart-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 100vw;
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  -webkit-overflow-scrolling: touch;
}
.cart-panel.open { transform: translateX(0); }

.cart-panel__header {
  padding: var(--space-lg);
  background: var(--color-primary-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.cart-panel__header h2 { color: #fff; font-size: var(--font-size-xl); margin: 0; }
.cart-panel__close {
  background: rgba(255,255,255,.15); border: none; color: #fff;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.cart-panel__close:hover { background: rgba(255,255,255,.28); }

.cart-panel__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-md);
  -webkit-overflow-scrolling: touch;
}
.cart-panel__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: var(--space-lg);
  color: var(--color-text-muted);
  text-align: center;
  padding: var(--space-3xl);
}
.cart-panel__empty svg { width: 64px; height: 64px; color: var(--color-border); }

.cart-panel__footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 2px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}
.cart-panel__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}
.cart-panel__total span:last-child { color: var(--color-primary); font-size: var(--font-size-xl); }

.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  display: none;
  backdrop-filter: blur(2px);
}
.cart-overlay.open { display: block; }

/* Cart item */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item__img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: var(--radius-md);
  flex-shrink: 0;
  background: var(--color-surface-alt);
}
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name {
  font-weight: 700; font-size: .88rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .2rem;
}
.cart-item__price { font-size: .82rem; color: var(--color-primary); font-weight: 700; margin-bottom: var(--space-sm); }
.cart-item__qty {
  display: flex; align-items: center; gap: var(--space-sm);
}
.qty-btn {
  width: 28px; height: 28px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: var(--color-surface-alt);
  color: var(--color-text); font-size: 1rem; font-weight: 700;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; line-height: 1;
}
.qty-btn:hover { border-color: var(--color-primary); color: var(--color-primary); background: #fff; }
.qty-value { font-weight: 700; font-size: .9rem; min-width: 22px; text-align: center; }
.cart-item__remove {
  background: none; border: none; cursor: pointer;
  color: var(--color-text-muted); font-size: .85rem;
  padding: .25rem; border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
  align-self: center;
}
.cart-item__remove:hover { color: var(--color-error); background: #FEE2E2; }

.cart-link {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.88); font-family: inherit;
  font-size: var(--font-size-sm); font-weight: 500;
  padding: 6px 10px; border-radius: var(--radius-md);
  transition: background .15s; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.cart-link:hover { background: rgba(255,255,255,.14); color: #fff; }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--color-accent); color: #1A1A1A;
  font-size: .6rem; font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; border: 2px solid var(--color-primary-dark);
}

/* ─── Hero ────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--color-secondary-dark) 0%, var(--color-primary) 100%);
  color: #fff;
  padding: var(--space-3xl) 0;
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
}
.hero__content h1 {
  font-size: var(--font-size-4xl);
  color: #fff;
  margin-bottom: var(--space-md);
  line-height: 1.15;
}
.hero__content h1 span { color: var(--color-accent-light); }
.hero__content p { font-size: var(--font-size-lg); color: rgba(255,255,255,.82); margin-bottom: var(--space-xl); }
.hero__actions { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero__visual { display: flex; align-items: center; justify-content: center; }

/* ─── Toast container ─────────────────────────────────── */
#toastContainer {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
  max-width: 340px;
}

/* ─── Notification bell styles (already elsewhere but ensure base) */
.lang-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .85rem; border-radius: var(--radius-full);
  background: rgba(255,255,255,.14); border: none;
  color: rgba(255,255,255,.88); font-size: .8rem; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.lang-toggle:hover { background: rgba(255,255,255,.24); }

/* ─── Fix: body.v-page hides footer for vendor + admin ─ */
body.v-page .footer { display: none !important; }
body:has(.v-layout) .footer { display: none !important; }

/* ─── Mobile: dashboard layout collapses ──────────────── */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-main { padding: var(--space-md); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-md); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   BUYER MOBILE UI  (byr-* prefix)
   Covers: orders.php, notifications.php, product.php, shops.php
═══════════════════════════════════════════════════════════ */

/* ── Page wrapper — constrained, padded ──────────────── */
.byr-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-lg) var(--space-md);
}

.byr-page-header { margin-bottom: var(--space-lg); }
.byr-title       { font-size: var(--font-size-2xl); font-weight: 800; line-height: 1.2; }
.byr-sub         { font-size: .85rem; color: var(--color-text-muted); margin-top: .25rem; }

/* ── Product detail — mobile full-bleed image ────────── */
.byr-product-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 360px;
  overflow: hidden;
  background: var(--color-surface-alt);
  margin-bottom: 0;
}
.byr-product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}

/* Floating back button on image */
.byr-product-back {
  position: absolute;
  top: var(--space-md); left: var(--space-md);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
  z-index: 10;
}
.byr-product-back:hover { background: rgba(0,0,0,.65); color: #fff; text-decoration: none; }

/* Featured badge on product image */
.byr-product-badge {
  position: absolute;
  top: var(--space-md); right: var(--space-md);
  background: var(--color-accent);
  color: #1A1A1A;
  font-size: .72rem; font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

/* Product info sheet — slides up below image */
.byr-product-sheet {
  background: #fff;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: -var(--radius-xl);
  padding: var(--space-xl) var(--space-md);
  min-height: 50vh;
  position: relative;
  z-index: 5;
}

.byr-product-name {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--space-sm);
}

.byr-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.byr-product-price {
  font-size: var(--font-size-3xl);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}
.byr-product-currency {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-left: .2rem;
}

.byr-product-desc {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.75;
  margin-bottom: var(--space-lg);
}

/* Shop row link */
.byr-shop-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-border);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-lg);
  transition: border-color .15s;
}
.byr-shop-row:hover { border-color: var(--color-primary); text-decoration: none; color: inherit; }

.byr-shop-row__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}

/* Add to cart button — full width at bottom of sheet */
.byr-add-btn {
  width: 100%;
  padding: .9rem;
  font-size: 1rem;
  border-radius: var(--radius-xl);
  justify-content: center;
  margin-top: var(--space-sm);
}

/* ── Shop banner (full bleed) ────────────────────────── */
.byr-shop-banner {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  overflow: hidden;
}
@media (max-width: 480px) { .byr-shop-banner { height: 160px; } }

/* ── Shop identity card (overlaps banner) ────────────── */
.byr-shop-identity {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  margin-bottom: var(--space-lg);
}
.byr-shop-identity__logo {
  width: 68px; height: 68px;
  border-radius: var(--radius-lg);
  border: 3px solid #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  background: var(--color-primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 800; color: #fff;
  flex-shrink: 0;
  margin-top: -20px;
}
.byr-shop-identity__logo img { width:100%; height:100%; object-fit:cover; }

/* ── Shop cards grid ─────────────────────────────────── */
.byr-shops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
}
@media (max-width: 360px) { .byr-shops-grid { grid-template-columns: 1fr; } }
@media (min-width: 600px) { .byr-shops-grid { grid-template-columns: repeat(3,1fr); } }

.byr-shop-card {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.byr-shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }

.byr-shop-card__banner {
  height: 80px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  position: relative; overflow: hidden;
}
.byr-shop-card__banner img { width:100%; height:100%; object-fit:cover; display:block; }

.byr-shop-card__logo {
  position: absolute; bottom: -14px; left: var(--space-sm);
  width: 40px; height: 40px; border-radius: var(--radius-md);
  border: 2.5px solid #fff; background: var(--color-primary);
  color: #fff; font-size: 1rem; font-weight: 800;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.byr-shop-card__logo img { width:100%; height:100%; object-fit:cover; }

.byr-shop-card__body {
  padding: var(--space-md);
  padding-top: calc(var(--space-sm) + 16px);
}
.byr-shop-card__name     { font-weight: 700; font-size: .88rem; margin-bottom: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.byr-shop-card__location { font-size: .72rem; color: var(--color-text-muted); display: flex; align-items: center; gap: .25rem; }

/* ── Cart total row (in cart panel footer) ───────────── */
.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}
.cart-total-row span:last-child { color: var(--color-primary); font-size: var(--font-size-xl); }

/* ── Mobile: hero compact on small screens ───────────── */
@media (max-width: 480px) {
  .hero__visual { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__content h1 { font-size: var(--font-size-2xl); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ── Sticky add-to-cart on product page (mobile) ─────── */
@media (max-width: 768px) {
  .byr-product-sheet { padding-bottom: 100px; }
  .byr-add-btn {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    border-radius: 0;
    padding: 1rem;
    font-size: 1rem;
    box-shadow: 0 -4px 20px rgba(0,130,127,.2);
    border-top: 1px solid var(--color-border);
  }
  .byr-add-btn:disabled {
    position: static;
    border-radius: var(--radius-xl);
  }
}

/* Prevent fixed add-btn on desktop */
@media (min-width: 769px) {
  .byr-add-btn { position: static !important; border-radius: var(--radius-xl) !important; }
  .byr-product-sheet { padding-bottom: var(--space-xl); }
}

/* ═══════════════════════════════════════════════════════════
   HOMEPAGE — mobile-first index.php  (idx-* prefix)
═══════════════════════════════════════════════════════════ */

/* ── Shared container ─────────────────────────────────── */
.idx-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ── Hero ─────────────────────────────────────────────── */
.idx-hero {
  background: linear-gradient(160deg, var(--color-secondary-dark) 0%, var(--color-primary) 100%);
  padding: var(--space-xl) var(--space-md) var(--space-2xl);
}

.idx-hero__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.idx-hero__brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.idx-hero__logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.3));
}

.idx-hero__title {
  font-size: var(--font-size-2xl);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: .2rem;
}

.idx-hero__sub {
  font-size: var(--font-size-sm);
  color: rgba(255,255,255,.78);
  margin: 0;
  line-height: 1.5;
}

/* Search bar */
.idx-search {
  display: flex;
  gap: 0;
  background: #fff;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.18);
}

.idx-search__input-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.idx-search__input-wrap i {
  position: absolute;
  left: var(--space-md);
  color: var(--color-text-muted);
  font-size: .95rem;
  pointer-events: none;
}

.idx-search__input-wrap input {
  width: 100%;
  padding: .85rem var(--space-md) .85rem 2.8rem;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  background: transparent;
}

.idx-search__btn {
  width: 52px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s;
}
.idx-search__btn:hover { background: var(--color-primary-dark); }

/* Area pills */
.idx-hero__areas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.idx-area-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .8rem;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  border-radius: var(--radius-full);
  font-size: .75rem;
  border: 1px solid rgba(255,255,255,.25);
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background .15s;
}
.idx-area-pill:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

/* ── Category strip ────────────────────────────────────── */
.idx-cats {
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: var(--space-md) var(--space-md);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: var(--nav-height);
  z-index: 50;
}
.idx-cats::-webkit-scrollbar { display: none; }

.idx-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .38rem .9rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: all .15s;
  -webkit-tap-highlight-color: transparent;
}
.idx-cat-chip:hover         { border-color: var(--color-primary); color: var(--color-primary); text-decoration: none; }
.idx-cat-chip--active       { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 700; }
.idx-cat-chip--active:hover { color: #fff; }

/* ── Quick action grid ─────────────────────────────────── */
.idx-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  padding: var(--space-lg) 0 var(--space-sm);
}

.idx-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
  min-height: 90px;
}
.idx-quick-card:hover  { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: #fff; }
.idx-quick-card:active { transform: scale(.97); }
.idx-quick-card i      { font-size: 1.6rem; }

.idx-quick-card--teal   { background: linear-gradient(135deg, #005C5A, #00827F); }
.idx-quick-card--gold   { background: linear-gradient(135deg, #A87C00, #D4A017); color: #1A1A1A; }
.idx-quick-card--gold:hover { color: #1A1A1A; }
.idx-quick-card--blue   { background: linear-gradient(135deg, #1E40AF, #3B82F6); }
.idx-quick-card--purple { background: linear-gradient(135deg, #6D28D9, #A855F7); }

/* ── Section header ────────────────────────────────────── */
.idx-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) 0 var(--space-md);
}

.idx-section-title {
  font-size: var(--font-size-xl);
  font-weight: 800;
}

.idx-section-link {
  font-size: .82rem;
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-shrink: 0;
}
.idx-section-link:hover { text-decoration: underline; }

/* ── Shops section ─────────────────────────────────────── */
.idx-shops-section {
  background: var(--color-surface-alt);
  padding: 0 0 var(--space-xl);
  margin: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

/* Horizontal scroll bleeds to edges on mobile */
.idx-shops-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--space-md) var(--space-sm);
}
.idx-shops-scroll::-webkit-scrollbar { display: none; }

.idx-shop-card {
  flex-shrink: 0;
  width: 160px;
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.idx-shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; color: inherit; }

.idx-shop-card__banner {
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  position: relative;
  overflow: hidden;
}
.idx-shop-card__banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.idx-shop-card__logo {
  position: absolute;
  bottom: -14px; left: var(--space-sm);
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 2px solid #fff;
  background: var(--color-primary);
  color: #fff; font-size: .95rem; font-weight: 800;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.idx-shop-card__logo img { width: 100%; height: 100%; object-fit: cover; }

.idx-shop-card__body {
  padding: calc(var(--space-sm) + 14px) var(--space-sm) var(--space-sm);
}
.idx-shop-card__name     { font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .2rem; }
.idx-shop-card__location { font-size: .7rem; color: var(--color-text-muted); display: flex; align-items: center; gap: .2rem; margin-bottom: .2rem; }
.idx-shop-card__count    { font-size: .7rem; color: var(--color-text-muted); }

/* ── Why cards ─────────────────────────────────────────── */
.idx-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

@media (min-width: 540px) {
  .idx-why-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.idx-why-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

@media (min-width: 540px) {
  .idx-why-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

.idx-why-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.idx-why-card h3 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.idx-why-card p  { font-size: .8rem; color: var(--color-text-muted); line-height: 1.55; margin: 0; }

/* ── Vendor CTA banner ─────────────────────────────────── */
.idx-vendor-cta {
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-primary));
  padding: var(--space-xl) var(--space-md);
  margin-top: var(--space-xl);
}

.idx-vendor-cta__inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.idx-vendor-cta__logo {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: contain;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
}

.idx-vendor-cta__text { flex: 1; min-width: 180px; }
.idx-vendor-cta__text h2 { color: #fff; font-size: var(--font-size-lg); margin-bottom: .2rem; }
.idx-vendor-cta__text p  { color: rgba(255,255,255,.75); font-size: .82rem; margin: 0; }

/* ── Homepage mobile adjustments ──────────────────────── */
@media (max-width: 480px) {
  .idx-hero__logo  { width: 52px; height: 52px; }
  .idx-hero__title { font-size: var(--font-size-xl); }
  .idx-quick-card  { min-height: 80px; font-size: .78rem; }
  .idx-quick-card i { font-size: 1.4rem; }
  .idx-vendor-cta__inner { flex-direction: column; text-align: center; }
  .idx-vendor-cta__inner .v-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   BUYER BOTTOM NAV
═══════════════════════════════════════════════════════════ */
.byr-bottomnav {
  display: none; /* hidden on desktop */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 20px rgba(0,0,0,.1);
  z-index: 800;
  padding: 6px 0 max(6px, env(safe-area-inset-bottom));
}

@media (max-width: 768px) {
  /* Show bottom nav on mobile for buyer pages only */
  body:not(.v-page) .byr-bottomnav { display: flex; }

  /* Push page content up so it doesn't hide behind bottom nav */
  body:not(.v-page) main#main-content { padding-bottom: 70px; }
  body:not(.v-page) .idx-vendor-cta  { margin-bottom: 70px; }
  body:not(.v-page) .byr-add-btn     { bottom: 70px; }

  /* Hide the green footer on mobile for buyer pages */
  body:not(.v-page) .footer { display: none !important; }
}

.byr-bottomnav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 4px 2px;
  color: #9CA3AF;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .62rem;
  font-weight: 500;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.byr-bottomnav__item.active { color: var(--color-primary); }
.byr-bottomnav__item:hover  { color: var(--color-primary); text-decoration: none; }

.byr-bottomnav__icon {
  font-size: 1.3rem;
  line-height: 1;
  position: relative;
}
.byr-bottomnav__label { font-size: .62rem; }

/* Cart dot indicator */
.byr-cart-dot {
  position: absolute;
  top: -3px; right: -5px;
  width: 8px; height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  border: 2px solid #fff;
}

/* ── Contacts section inside hamburger menu ──────────── */
.nav-contacts {
  display: none; /* desktop: hidden */
  padding: var(--space-md) var(--space-md) var(--space-sm);
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: var(--space-xs);
}

@media (max-width: 768px) {
  .nav-contacts { display: block; }
}

.nav-contacts__title {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: rgba(255,255,255,.4);
  margin-bottom: var(--space-sm);
}

.nav-contacts__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: .55rem var(--space-md);
  color: rgba(255,255,255,.72);
  font-size: .88rem;
  text-decoration: none;
  border-radius: var(--radius-md);
  transition: background .15s;
  margin-bottom: 2px;
}
.nav-contacts__item:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  text-decoration: none;
}
.nav-contacts__item i { width: 18px; text-align: center; }

/* Sync cart dot with cartBadge count */

/* ── Hero text redesign (no logo) ────────────────────── */
.idx-hero__text {
  text-align: center;
  margin-bottom: var(--space-md);
}

.idx-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .78rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255,255,255,.25);
  margin-bottom: var(--space-md);
  letter-spacing: .3px;
  backdrop-filter: blur(4px);
}

.idx-hero__title {
  font-size: clamp(1.7rem, 7vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-sm);
  /* subtle text shadow for legibility */
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  letter-spacing: -.3px;
}

.idx-hero__sub {
  font-size: clamp(.85rem, 3.5vw, 1.05rem);
  color: rgba(255,255,255,.8);
  line-height: 1.6;
  margin: 0;
  max-width: 380px;
  margin-inline: auto;
}

/* Make hero taller to give text room to breathe */
.idx-hero {
  padding: var(--space-2xl) var(--space-md) var(--space-2xl);
}

@media (max-width: 400px) {
  .idx-hero { padding: var(--space-xl) var(--space-md); }
}

/* ── Nav accordion (About / Contact in hamburger) ────── */
.nav-accordion-btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: 12px var(--space-md);
  background: none;
  border: none;
  color: rgba(255,255,255,.72);
  font-family: inherit;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-md);
  transition: background .15s, color .15s;
  text-align: left;
  margin-bottom: 2px;
}
.nav-accordion-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-accordion-btn.open  { background: rgba(255,255,255,.14); color: #fff; font-weight: 700; }

.nav-accordion-chevron {
  margin-left: auto;
  font-size: .75rem;
  transition: transform .25s ease;
  opacity: .6;
}
.nav-accordion-btn.open .nav-accordion-chevron { transform: rotate(180deg); }

.nav-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(.16,1,.3,1);
}
.nav-accordion-body.open { max-height: 500px; }

.nav-accordion-content {
  padding: var(--space-sm) var(--space-md) var(--space-md) calc(var(--space-md) + 26px);
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  line-height: 1.6;
}
.nav-accordion-content p { margin: 0 0 .35rem; }

/* Contact rows inside accordion */
.nav-contact-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
  transition: color .15s;
}
.nav-contact-row:last-child { border-bottom: none; }
.nav-contact-row:hover { color: #fff; text-decoration: none; }

.nav-contact-row i {
  width: 32px; height: 32px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  color: var(--color-accent);
  flex-shrink: 0;
}

.nav-contact-row div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-contact-row div span  { font-size: .7rem; color: rgba(255,255,255,.45); }
.nav-contact-row div strong { font-size: .83rem; color: rgba(255,255,255,.88); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════
   PLATFORM CLEANUP & POLISH  (appended block)
═══════════════════════════════════════════════════════════ */

/* ── 1. nav-notif-link — mobile ONLY ─────────────────── */
.nav-notif-link { display: none; }
@media (max-width: 768px) {
  .nav-notif-link { display: flex; }
}

/* ── 2. nav-notif-label (unread count badge) ──────────── */
.nav-notif-label {
  margin-left: auto;
  background: var(--color-error);
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ── 3. nav-accordions-group — mobile ONLY ────────────── */
.nav-accordions-group { display: none; }
@media (max-width: 768px) {
  .nav-accordions-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: var(--space-xs);
  }
}

/* ── 4. nav-link-danger (logout in nav) ───────────────── */
.nav-link-danger { color: rgba(255,160,160,.85) !important; }
.nav-link-danger:hover { background: rgba(255,80,80,.12) !important; color: #ffaaaa !important; }

/* ── 5. Checkout responsive layout ───────────────────── */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.checkout-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.checkout-right {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}
.checkout-right .card-body { padding: var(--space-lg); }

@media (max-width: 768px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  /* Move summary above the form on mobile */
  .checkout-right { order: -1; position: static; }
}

/* ── 6. Checkout card headings cleaner ────────────────── */
.checkout-left .card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
.checkout-left .card-body h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--font-size-lg);
  font-weight: 800;
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-lg) !important;
}

/* ── 7. Checkout success screen ───────────────────────── */
.checkout-success {
  max-width: 480px;
  margin: var(--space-3xl) auto;
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
}
.checkout-success__icon {
  font-size: 4rem;
  margin-bottom: var(--space-lg);
  animation: popIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes popIn {
  from { transform: scale(0); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
.checkout-success h1 {
  color: var(--color-success);
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

/* ── 8. Consistent page headings (byr-page-header) ───── */
.byr-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  flex-wrap: wrap;
}

/* ── 9. Cart panel — correct overlay class ────────────── */
/* Ensure both names work in case old class lingers */
.cart-panel__overlay, .cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1050;
  display: none;
  backdrop-filter: blur(2px);
}
.cart-panel__overlay.open, .cart-overlay.open { display: block; }

/* ── 10. Global polish ────────────────────────────────── */

/* Better focus rings */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* Smooth transitions on interactive elements */
a, button { transition: color .15s, background .15s, border-color .15s, opacity .15s; }

/* Navbar active link indicator */
.navbar-nav a.active-page,
.navbar-nav a[aria-current="page"] {
  color: var(--color-accent-light) !important;
  font-weight: 700;
}

/* Flash auto-dismiss animation */
.flash { animation: flashSlideIn .25s ease; }
@keyframes flashSlideIn {
  from { transform: translateY(-8px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* Bottom nav safe-area padding (iPhone notch) */
.byr-bottomnav, .v-bottomnav {
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

/* Product card hover — lift effect */
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.product-card { transition: transform .2s ease, box-shadow .2s ease; }

/* Section headers — consistent look */
.idx-section-title { font-size: var(--font-size-xl); font-weight: 800; color: var(--color-text); }
.idx-section-link  { font-weight: 700; transition: color .15s; }
.idx-section-link:hover { color: var(--color-primary-dark); }

/* v-stat-card text overflow on narrow screens */
.v-stat-card__val { font-size: clamp(1.1rem, 5vw, 1.5rem); }

/* Checkout container — consistent padding */
.container.checkout-container {
  padding-top: var(--space-xl);
  padding-bottom: calc(var(--space-3xl) + 70px); /* room for bottom nav */
}
@media (min-width: 769px) {
  .container.checkout-container { padding-bottom: var(--space-3xl); }
}

/* Table responsive: allow horizontal scroll on narrow screens */
@media (max-width: 600px) {
  .v-table-wrap table, .table-wrap table { min-width: 420px; }
}

/* Auth pages — no bottom nav padding needed since logged-out */
.auth-page-wrap { padding-bottom: var(--space-xl); }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGES — full responsive redesign
═══════════════════════════════════════════════════════════ */

/* Wrapper — vertically centred, no overflow on small phones */
.auth-page-wrap {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-xl) var(--space-md) calc(var(--space-xl) + 70px);
  background: linear-gradient(160deg, var(--color-surface-alt) 0%, #fff 100%);
}

@media (min-width: 480px) {
  .auth-page-wrap { align-items: center; padding-bottom: var(--space-xl); }
}

/* Card — full width on tiny phones, capped on larger */
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

/* Register card is slightly wider */
.auth-card--wide { max-width: 500px; }

/* Header */
.auth-card__header {
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  text-align: center;
}
.auth-card__logo {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto var(--space-md);
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.2));
}
.auth-card__header h1 {
  color: #fff;
  font-size: var(--font-size-2xl);
  font-weight: 900;
  margin-bottom: .3rem;
}
.auth-card__header p {
  color: rgba(255,255,255,.78);
  font-size: .85rem;
  margin: 0;
}

/* Body */
.auth-card__body {
  padding: var(--space-xl);
}
@media (max-width: 360px) {
  .auth-card__body { padding: var(--space-lg) var(--space-md); }
  .auth-card__header { padding: var(--space-lg) var(--space-md); }
}

/* Method tabs (Email / Phone, Buyer / Vendor) */
.auth-method-tabs {
  display: flex;
  background: var(--color-surface-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--space-lg);
}
.auth-method-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .52rem var(--space-sm);
  border-radius: var(--radius-full);
  font-size: .82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: background .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.auth-method-tab:hover { color: var(--color-primary); text-decoration: none; }
.auth-method-tab--active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,130,127,.3);
}
.auth-method-tab--active:hover { color: #fff; }

/* Password field wrapper */
.auth-pwd-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}
.auth-pwd-wrap .form-control { padding-right: 2.8rem; }
.auth-pwd-toggle {
  position: absolute;
  right: .75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  font-size: .95rem;
  padding: 0;
  line-height: 1;
  transition: color .15s;
}
.auth-pwd-toggle:hover { color: var(--color-primary); }

/* Password strength bar */
.auth-pwd-strength {
  height: 4px;
  background: var(--color-border);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
  position: relative;
}
.auth-pwd-strength::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--pwd-w, 0%);
  background: var(--pwd-c, var(--color-border));
  border-radius: 2px;
  transition: width .3s ease, background .3s ease;
}
.auth-pwd-strength::after {
  content: attr(data-label);
  position: absolute;
  right: 0;
  top: 6px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--pwd-c, var(--color-text-muted));
}

/* Optional label */
.auth-optional {
  font-size: .72rem;
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: .35rem;
}

/* Hint text below field */
.auth-hint {
  font-size: .74rem;
  color: var(--color-text-muted);
  display: block;
  margin-top: .3rem;
}

/* Divider between form and secondary action */
.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: .82rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

/* Alt actions row (register buttons at bottom of login) */
.auth-alt-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}
.auth-alt-actions .btn { flex: 1; justify-content: center; min-width: 120px; }

/* ── notif-wrap — desktop only ───────────────────────── */
.notif-wrap--desktop { display: none; }
@media (min-width: 769px) {
  .notif-wrap--desktop { display: inline-flex; }
}

/* ═══════════════════════════════════════════════════════════
   FINAL CLEANUP & POLISH
═══════════════════════════════════════════════════════════ */

/* ── 1. notif-wrap — desktop only, hide in hamburger ─── */
.notif-wrap--desktop { display: none; }
@media (min-width: 769px) {
  .notif-wrap--desktop { display: inline-flex; }
}
/* The old .notif-wrap without --desktop modifier stays as-is
   but is only rendered when logged-in. No duplicate bell on mobile
   because we now use .nav-notif-link (mobile-only link with label) */

/* ── 2. Checkout responsive (already added, ensure no duplication) ──
   Styles live in the previous block; this block adds final polish */

/* ── 3. Auth page — remove bottom-nav gap on small screens ─ */
.auth-page-wrap {
  padding-bottom: max(var(--space-xl), calc(70px + var(--space-md)));
}
@media (min-width: 769px) {
  .auth-page-wrap { padding-bottom: var(--space-xl); }
}

/* ── 4. Register card wider ──────────────────────────── */
.auth-card--wide { max-width: 500px; }

/* ── 5. Bottom nav — ensure only 4/5 items show clean ── */
@media (max-width: 360px) {
  .byr-bottomnav__label { font-size: .55rem; }
  .byr-bottomnav__icon  { font-size: 1.15rem; }
}

/* ── 6. Shop filter panel responsive fix ─────────────── */
@media (max-width: 480px) {
  .filter-sections-grid { grid-template-columns: 1fr !important; }
}

/* ── 7. Product card — fix overflow on very narrow screens */
@media (max-width: 360px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: var(--space-xs); }
  .product-card__title { font-size: .78rem; }
  .product-card__price { font-size: .82rem; }
}

/* ── 8. Checkout summary sticky only on desktop ──────── */
@media (max-width: 768px) {
  .checkout-right { position: static !important; }
}

/* ── 9. Form control consistent height on iOS ─────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
select,
textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* ── 10. Prevent iOS double-tap zoom on buttons ──────── */
button, a {
  touch-action: manipulation;
}

/* ── 11. v-phone-wrap inside forms — ensure full width ── */
.v-form-field .v-phone-wrap { width: 100%; }
.v-form-field .v-country-dropdown { z-index: 200; }

/* ── 12. Password strength label positioning fix ─────── */
.auth-pwd-strength {
  margin-top: 6px;
  margin-bottom: 2px;
}
.auth-pwd-strength::after {
  top: 8px; /* move label below bar */
  font-size: .7rem;
  opacity: .8;
}

/* ── 13. Global link style in nav — remove underline ─── */
.navbar-nav a:hover { text-decoration: none; }

/* ── 14. Card box shadows consistent ─────────────────── */
.v-detail-card,
.v-form-section { box-shadow: var(--shadow-card); }

/* ── 15. Empty state icon color ──────────────────────── */
.v-empty-state > i { color: var(--color-border); }

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE  (about.php)
═══════════════════════════════════════════════════════════ */
.about-hero {
  text-align: center;
  padding: var(--space-2xl) 0 var(--space-xl);
}
.about-hero__logo {
  height: 84px; width: 84px;
  object-fit: contain; border-radius: 50%;
  display: block; margin: 0 auto var(--space-md);
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.about-hero__title {
  font-size: var(--font-size-3xl);
  font-weight: 900; margin-bottom: .4rem;
}
.about-hero__sub {
  color: var(--color-text-muted); font-size: .95rem;
}

.about-card {
  display: flex; align-items: flex-start;
  gap: var(--space-lg);
  background: #fff;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
}
.about-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; flex-shrink: 0;
}
.about-card h2 { font-size: var(--font-size-lg); font-weight: 800; margin-bottom: .4rem; }
.about-card p  { font-size: .9rem; color: var(--color-text-muted); line-height: 1.7; margin: 0; }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}
.about-value {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-md) var(--space-lg);
  display: flex; flex-direction: column; gap: .3rem;
}
.about-value__icon { font-size: 1.6rem; }
.about-value strong { font-size: .9rem; font-weight: 800; }
.about-value p { font-size: .8rem; color: var(--color-text-muted); margin: 0; }

.about-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  text-align: center;
}
@media (max-width: 480px) { .about-stats { grid-template-columns: 1fr 1fr; } }
.about-stat {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  padding: var(--space-md) var(--space-sm);
}
.about-stat__val {
  font-size: var(--font-size-2xl); font-weight: 900;
  color: var(--color-primary); line-height: 1;
  margin-bottom: .2rem;
}
.about-stat__lbl { font-size: .72rem; color: var(--color-text-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }

.about-cta {
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-primary));
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--space-lg); flex-wrap: wrap;
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-md);
}
.about-cta h2 { color: #fff; font-size: var(--font-size-xl); margin-bottom: .3rem; }
.about-cta p  { color: rgba(255,255,255,.8); font-size: .88rem; margin: 0; }
@media (max-width: 480px) {
  .about-cta { flex-direction: column; }
  .about-cta > div:last-child { width: 100%; }
  .about-cta .v-btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE  (contact.php)
═══════════════════════════════════════════════════════════ */
.contact-channels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
@media (max-width: 480px) { .contact-channels { grid-template-columns: 1fr; } }

.contact-channel {
  display: flex; align-items: center; gap: var(--space-md);
  background: #fff; border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-md) var(--space-lg);
  text-decoration: none; color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.contact-channel:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none; color: inherit;
}
.contact-channel__icon {
  width: 48px; height: 48px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: #fff; flex-shrink: 0;
}
.contact-channel > div {
  display: flex; flex-direction: column; gap: 2px;
}
.contact-channel strong { font-size: .9rem; font-weight: 800; color: var(--color-text); }
.contact-channel span   { font-size: .82rem; color: var(--color-primary); font-weight: 600; }
.contact-channel small  { font-size: .72rem; color: var(--color-text-muted); }

/* ── Nav accordion "Read more" / "Send message" links ─── */
.nav-accordion-page-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: var(--space-sm);
  color: var(--color-accent-light);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: opacity .15s;
}
.nav-accordion-page-link:hover { opacity: .8; text-decoration: none; color: var(--color-accent-light); }

/* ── On desktop: hide accordion buttons in nav,
      show plain links instead ─────────────────────── */
@media (min-width: 769px) {
  /* The accordions group itself is hidden on desktop */
  .nav-accordions-group { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   ABOUT PAGE — redesign
═══════════════════════════════════════════════════════════ */

/* Full-width hero banner */
.about-page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--color-secondary-dark) 0%, var(--color-primary) 60%, var(--color-accent-dark) 100%);
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  text-align: center;
  overflow: hidden;
}
.about-page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.about-page-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.08); }
.about-page-hero__content {
  position: relative; z-index: 1;
  max-width: 600px; margin: 0 auto;
}
.about-page-hero__logo {
  height: 88px; width: 88px;
  object-fit: contain;
  display: block; margin: 0 auto var(--space-lg);
  filter: drop-shadow(0 6px 20px rgba(0,0,0,.3));
}
.about-page-hero h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900; color: #fff;
  margin-bottom: var(--space-sm);
  text-shadow: 0 2px 12px rgba(0,0,0,.2);
}
.about-page-hero p {
  color: rgba(255,255,255,.8);
  font-size: clamp(.88rem, 3vw, 1.1rem);
  margin-bottom: var(--space-lg);
}
.about-page-hero__tags {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm);
}
.about-page-hero__tags span {
  display: inline-flex; align-items: center; gap: .35rem;
  background: rgba(255,255,255,.18);
  color: rgba(255,255,255,.92);
  padding: .3rem .9rem; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(4px);
}

/* Stats strip */
.about-stats-strip {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.about-stats-strip__inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-lg) var(--space-md);
  flex-wrap: wrap; gap: 0;
}
.about-stats-strip__divider {
  width: 1px; height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}
@media (max-width: 480px) { .about-stats-strip__divider { display: none; } }
.about-stat-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: var(--space-sm) var(--space-xl); flex: 1;
}
.about-stat-pill__val {
  font-size: var(--font-size-2xl); font-weight: 900;
  color: var(--color-primary); line-height: 1;
}
.about-stat-pill__lbl {
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .5px; color: var(--color-text-muted); margin-top: 2px;
}

/* Page body wrapper */
.about-page-body { max-width: 720px; padding-top: var(--space-xl); }

/* Two-col cards */
.about-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-md); margin-bottom: var(--space-xl);
}
@media (max-width: 560px) { .about-two-col { grid-template-columns: 1fr; } }

.about-feature-card {
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative; overflow: hidden;
}
.about-feature-card--teal {
  background: linear-gradient(135deg, #E6F4F4, #F0FFFE);
  border: 1.5px solid rgba(0,130,127,.2);
}
.about-feature-card--gold {
  background: linear-gradient(135deg, #FEF9E7, #FFFDF0);
  border: 1.5px solid rgba(212,160,23,.25);
}
.about-feature-card__icon {
  width: 52px; height: 52px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff; margin-bottom: var(--space-md);
}
.about-feature-card--teal .about-feature-card__icon { background: linear-gradient(135deg,#005C5A,#00827F); }
.about-feature-card--gold .about-feature-card__icon { background: linear-gradient(135deg,#A87C00,#D4A017); }
.about-feature-card h2 { font-size: var(--font-size-lg); font-weight: 800; margin-bottom: var(--space-sm); }
.about-feature-card p  { font-size: .88rem; color: var(--color-text-muted); line-height: 1.7; margin: 0; }

/* Section header */
.about-section-header { text-align: center; margin: var(--space-2xl) 0 var(--space-lg); }
.about-section-header h2 { font-size: var(--font-size-2xl); font-weight: 900; margin-bottom: .3rem; }
.about-section-header p  { color: var(--color-text-muted); font-size: .9rem; }

/* Values grid */
.about-values-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-md); margin-bottom: var(--space-2xl);
}
@media (max-width: 480px) { .about-values-grid { grid-template-columns: 1fr; } }
.about-value-card {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
  border-top: 4px solid var(--value-color, var(--color-primary));
  transition: transform .15s, box-shadow .15s;
}
.about-value-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.about-value-card__emoji { font-size: 2rem; margin-bottom: var(--space-sm); display: block; }
.about-value-card h3 { font-size: var(--font-size-md); font-weight: 800; margin-bottom: .3rem; }
.about-value-card p  { font-size: .84rem; color: var(--color-text-muted); line-height: 1.65; margin: 0; }

/* Delivery areas */
.about-areas-section { margin-bottom: var(--space-2xl); }
.about-areas-grid {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
}
.about-area-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full); padding: .38rem .9rem;
  font-size: .85rem; font-weight: 500;
}
.about-area-chip__fee  { font-size: .72rem; color: var(--color-accent-dark); font-weight: 700; }
.about-area-chip__free { font-size: .72rem; color: var(--color-success); font-weight: 700; }

/* Payments */
.about-payments {
  display: flex; flex-wrap: wrap; gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
}
.about-payment-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full); padding: .45rem 1rem;
  font-size: .85rem; font-weight: 600;
  box-shadow: var(--shadow-card);
}

/* CTA banner */
.about-cta-banner {
  background: linear-gradient(135deg, var(--color-secondary-dark), var(--color-primary));
  padding: var(--space-2xl) var(--space-md);
}
.about-cta-banner__inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--space-xl); flex-wrap: wrap;
}
.about-cta-banner__text h2 { color: #fff; font-size: var(--font-size-xl); font-weight: 900; margin-bottom: .3rem; }
.about-cta-banner__text p  { color: rgba(255,255,255,.75); font-size: .88rem; margin: 0; }
.about-cta-banner__actions { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.about-cta-banner__btn-primary {
  background: var(--color-accent); color: #1A1A1A; border-color: var(--color-accent); font-weight: 800;
}
.about-cta-banner__btn-primary:hover { background: var(--color-accent-dark); color: #fff; }
.about-cta-banner__btn-ghost {
  background: rgba(255,255,255,.15); color: #fff;
  border-color: rgba(255,255,255,.35); font-weight: 700;
  backdrop-filter: blur(4px);
}
.about-cta-banner__btn-ghost:hover { background: rgba(255,255,255,.28); color: #fff; }
@media (max-width: 560px) {
  .about-cta-banner__inner  { flex-direction: column; text-align: center; }
  .about-cta-banner__actions { width: 100%; }
  .about-cta-banner__actions .v-btn { flex: 1; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE — redesign
═══════════════════════════════════════════════════════════ */

/* Hero */
.contact-hero {
  position: relative;
  background: linear-gradient(160deg, #004D4B 0%, var(--color-primary) 100%);
  padding: var(--space-2xl) var(--space-md);
  text-align: center;
}
.contact-hero__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.06); }
.contact-hero__content { position: relative; z-index: 1; }
.contact-hero__icon-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: #fff;
  margin: 0 auto var(--space-md);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.contact-hero h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 900; color: #fff; margin-bottom: .35rem; }
.contact-hero p  { color: rgba(255,255,255,.78); font-size: .95rem; margin: 0; }

/* Channels strip */
.contact-channels-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 640px) { .contact-channels-strip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 360px) { .contact-channels-strip { grid-template-columns: 1fr; } }

.contact-ch {
  display: flex; align-items: center; gap: var(--space-md);
  padding: var(--space-lg) var(--space-md);
  text-decoration: none; color: inherit;
  border-right: 1px solid var(--color-border);
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.contact-ch:last-child { border-right: none; }
.contact-ch:hover { background: var(--color-surface-alt); text-decoration: none; color: inherit; }
.contact-ch__icon {
  width: 44px; height: 44px; border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.15);
}
.contact-ch__info { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.contact-ch__info strong { font-size: .88rem; font-weight: 800; }
.contact-ch__info span   { font-size: .78rem; color: var(--color-primary); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact-ch__info small  { font-size: .7rem; color: var(--color-text-muted); }

/* Page body */
.contact-page-body { max-width: 720px; padding-top: var(--space-xl); }

/* Two-column layout: form + info */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--space-xl);
  align-items: start;
  margin-bottom: var(--space-3xl);
}
@media (max-width: 640px) { .contact-layout { grid-template-columns: 1fr; } }

/* Form card */
.contact-form-card {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  padding: var(--space-xl);
}
.contact-form-card__title {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--font-size-xl); font-weight: 800;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--color-border);
}

/* Info panel */
.contact-info-panel { display: flex; flex-direction: column; gap: var(--space-md); }
.contact-info-block {
  background: #fff; border-radius: var(--radius-xl);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}
.contact-info-block h3 {
  font-size: var(--font-size-md); font-weight: 800;
  margin-bottom: var(--space-md);
  display: flex; align-items: center; gap: .5rem;
}
.contact-hours { display: flex; flex-direction: column; gap: .4rem; }
.contact-hours li {
  display: flex; justify-content: space-between;
  font-size: .85rem; padding: .35rem 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-hours li:last-child { border-bottom: none; }
.contact-hours li span { color: var(--color-text-muted); }
.contact-hours li strong { font-weight: 700; }

.contact-quick-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .75rem;
  background: var(--color-surface-alt);
  border-radius: var(--radius-md);
  font-size: .85rem; font-weight: 600;
  color: var(--color-text); text-decoration: none;
  transition: background .15s, color .15s;
}
.contact-quick-link:hover {
  background: rgba(0,130,127,.1);
  color: var(--color-primary); text-decoration: none;
}
.contact-quick-link i { color: var(--color-primary); width: 16px; text-align: center; }

/* Success state */
.contact-success {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}
.contact-success__icon { font-size: 4rem; margin-bottom: var(--space-lg); }
.contact-success h2 { font-size: var(--font-size-2xl); font-weight: 900; color: var(--color-success); margin-bottom: var(--space-md); }
.contact-success p  { color: var(--color-text-muted); font-size: .95rem; }

/* ── Shop page bottom padding (accounts for bottom nav on mobile) */
.shop-page-container {
  padding-bottom: var(--space-3xl);
}
@media (max-width: 768px) {
  .shop-page-container {
    padding-bottom: calc(var(--space-3xl) + 70px);
  }
}

/* ── Seller terminology: admin user role badge label ── */
.role-badge-vendor::before { content: 'Seller'; }

/* ─── Checkout payment method selector ──────────────── */
.checkout-pm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkout-pm-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: var(--space-md) var(--space-sm);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background .15s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.checkout-pm-option:hover {
  border-color: var(--color-primary);
  background: var(--color-surface-alt);
}
.checkout-pm-option--selected {
  border-color: var(--color-primary);
  background: rgba(0,130,127,.06);
  box-shadow: 0 0 0 3px rgba(0,130,127,.15);
}
.checkout-pm-option__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
}
.checkout-pm-option__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-text);
}
.checkout-pm-option__check {
  position: absolute;
  top: 6px; right: 6px;
  font-size: .8rem;
  color: var(--color-primary);
  display: none;
}
.checkout-pm-option--selected .checkout-pm-option__check { display: block; }

.checkout-pm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: .88rem;
  gap: var(--space-sm);
}
.checkout-pm-row:last-child { border-bottom: none; }
.checkout-pm-row span   { color: var(--color-text-muted); flex-shrink: 0; }
.checkout-pm-row strong { text-align: right; word-break: break-all; }

/* ─── about-payment-pill richer version ─────────────── */
.about-payment-pill {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-card);
  flex: 1;
  min-width: 200px;
}

/* ─── Payment method setup blocks (vendor shop setup/edit) ── */
.pm-setup-block {
  background: var(--color-surface-alt);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-md) var(--space-lg);
  margin-bottom: var(--space-md);
}
.pm-setup-block__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  font-size: .9rem;
}
.pm-setup-block .v-form-row { margin-top: 0; }
.pm-setup-block .v-form-field { margin-bottom: 0; }

/* ─── Delivery fees per-area grid ────────────────────── */
.delivery-fees-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.delivery-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: background .12s;
}
.delivery-fee-row:last-child { border-bottom: none; }
.delivery-fee-row:nth-child(even) { background: var(--color-surface-alt); }

.delivery-fee-row__label {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .88rem;
  font-weight: 600;
  flex: 1;
  min-width: 0;
}
.delivery-fee-row__label span {
  font-weight: 400;
  margin-left: .2rem;
}

.delivery-fee-row__input {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-shrink: 0;
}
.delivery-fee-row__input .form-control {
  width: 90px;
  text-align: right;
  padding-right: .5rem;
  font-weight: 700;
}
.delivery-fee-row__etb {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* ─── Checkout: single-column layout ─────────────────── */
.checkout-layout {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 680px;
  margin: 0 auto;
}
/* Hide the empty right spacer always */
.checkout-right[style*="display:none"] { display: none !important; }

/* ── Cart button — desktop navbar only, hidden on mobile ── */
.nav-cart-desktop { display: inline-flex; }
@media (max-width: 768px) {
  .nav-cart-desktop { display: none !important; }
}

/* ── Hamburger: hide Home/Shop/Shops/Login/Register on mobile
      since they're in the bottom nav ─────────────────────── */
@media (max-width: 768px) {
  /* These links are only useful on desktop (wider nav bar).
     On mobile the bottom nav handles them.
     We target the first three plain nav links specifically. */
  .navbar-nav > a[href*="index.php"],
  .navbar-nav > a[href$="/"],
  .navbar-nav > a[href*="shop.php"],
  .navbar-nav > a[href*="shops.php"],
  .navbar-nav > a[href*="login.php"],
  .navbar-nav > a[href*="register.php"] {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════════
   PROFILE PAGE — avatar photo upload
═══════════════════════════════════════════════════════════ */
.profile-avatar-wrap {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-avatar__img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 3px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.profile-avatar__initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: .5px;
  box-shadow: var(--shadow-md);
  user-select: none;
}

.profile-avatar__overlay {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity .2s;
}
.profile-avatar-wrap:hover .profile-avatar__overlay,
.profile-avatar-wrap:focus .profile-avatar__overlay {
  opacity: 1;
}
/* Always show the camera icon on touch (no hover) */
@media (hover: none) {
  .profile-avatar__overlay { opacity: .7; }
}

/* ─── Delivered status badge ──────────────────────── */
.badge-delivered { background:#F3E8FF; color:#7C3AED; }

/* ─── Orange badge for admin override labels ──────── */
.vbadge--orange { background:#FFEDD5; color:#9A3412; }

/* ─── Appeal pending pulse indicator ─────────────── */
.appeal-pending-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-warning);
  animation: appealPulse 1.4s infinite;
  margin-left: .35rem;
  flex-shrink: 0;
}
@keyframes appealPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.75); }
}
