/* ============================================================
   VERDANT MARKET — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,300;1,9..144,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --forest:       #1c3a1c;
  --forest-mid:   #2d5a27;
  --sage:         #4a7c59;
  --sage-light:   #7aab8a;
  --mint:         #c8e6d4;
  --cream:        #faf5ec;
  --ivory:        #f0e8d8;
  --terra:        #c94f1e;
  --terra-light:  #e86030;
  --terra-pale:   #fde8e0;
  --earth:        #5c3a1e;
  --text:         #1e2818;
  --text-mid:     #3d4f3d;
  --muted:        #7a8c7a;
  --border:       #dce8dc;
  --border-dark:  #b8ccb8;
  --white:        #ffffff;
  --shadow-sm:    0 2px 8px rgba(28, 58, 28, 0.08);
  --shadow-md:    0 8px 32px rgba(28, 58, 28, 0.12);
  --shadow-lg:    0 20px 60px rgba(28, 58, 28, 0.16);
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;
  --radius-xl:    32px;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ─── Typography ────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }
h5 { font-size: 1rem; }

.display { font-family: 'Fraunces', serif; font-weight: 300; font-style: italic; }
.serif { font-family: 'Fraunces', serif; }

/* ─── Layout ────────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}
.container--narrow { max-width: 960px; }
.container--wide   { max-width: 1600px; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent {
  background: var(--terra);
  color: var(--white);
}
.btn-accent:hover { background: var(--terra-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-outline-light {
  background: transparent;
  border: 1.5px solid var(--cream);
  color: var(--cream);
}
.btn-outline-light:hover { background: var(--cream); color: var(--forest); }
.btn-ghost {
  background: var(--ivory);
  color: var(--text);
}
.btn-ghost:hover { background: var(--border); }
.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-icon { padding: 0.6rem; border-radius: 50%; width: 40px; height: 40px; justify-content: center; }
.btn-full { width: 100%; justify-content: center; }

/* ─── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-green  { background: var(--mint); color: var(--forest); }
.badge-orange { background: var(--terra-pale); color: var(--terra); }
.badge-earth  { background: #efe0d4; color: var(--earth); }
.badge-muted  { background: var(--ivory); color: var(--muted); }

/* ─── Forms ─────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-mid);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-input, .form-select, .form-textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.12);
}
.form-input::placeholder { color: var(--muted); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a8c7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-check { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.form-check input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--sage); cursor: pointer; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-error { font-size: 0.8rem; color: var(--terra); margin-top: 0.25rem; }
.input-group { position: relative; }
.input-group .form-input { padding-left: 2.75rem; }
.input-group .input-icon { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }

/* ─── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.5rem; }

/* ─── Product Card ──────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card__image {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--ivory);
}
.product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.product-card__placeholder {
  background: #e8f5e9;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .product-card__image img { transform: scale(1.05); }
.product-card__actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  opacity: 0;
  transform: translateX(6px);
  transition: var(--transition);
}
.product-card:hover .product-card__actions { opacity: 1; transform: translateX(0); }
.product-card__wishlist {
  width: 36px; height: 36px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
  color: var(--muted);
  transition: var(--transition);
}
.product-card__wishlist:hover { color: var(--terra); transform: scale(1.1); }
.product-card__wishlist.active { color: var(--terra); }
.product-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}
.product-card__body { padding: 1.1rem 1.25rem 1.25rem; }
.product-card__category { font-size: 0.72rem; color: var(--sage); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.3rem; }
.product-card__name { font-family: 'Fraunces', serif; font-size: 1.05rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; line-height: 1.3; }
.product-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.product-card__price { font-size: 1.1rem; font-weight: 600; color: var(--forest); }
.product-card__price .original { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; font-weight: 400; margin-left: 0.3rem; }
.product-card__unit { font-size: 0.78rem; color: var(--muted); }
.product-card__add {
  width: 34px; height: 34px;
  background: var(--forest);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  flex-shrink: 0;
}
.product-card__add:hover { background: var(--terra); transform: scale(1.05); }

/* ─── Stars ─────────────────────────────────────────────── */
.stars { display: flex; align-items: center; gap: 0.15rem; color: #e8a44a; font-size: 0.85rem; }
.stars-text { font-size: 0.78rem; color: var(--muted); margin-left: 0.3rem; }

/* ─── Section Styles ────────────────────────────────────── */
.section { padding: 5rem 0; }
.section--sm { padding: 3rem 0; }
.section--lg { padding: 7rem 0; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.75rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--sage);
  border-radius: 2px;
}
.section-title { margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.7; }
.section-header { margin-bottom: 3rem; }
.section-header--between {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ─── Grid Layouts ──────────────────────────────────────── */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ─── Divider ───────────────────────────────────────────── */
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }

/* ─── Toast / Alert ─────────────────────────────────────── */
.alert {
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.alert-success { background: var(--mint); color: var(--forest); border: 1px solid rgba(74,124,89,0.3); }
.alert-warning { background: var(--terra-pale); color: var(--terra); border: 1px solid rgba(201,79,30,0.3); }
.alert-info    { background: #e8f0fe; color: #3b5bdb; border: 1px solid rgba(59,91,219,0.3); }

/* ─── Breadcrumb ────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: var(--muted); padding: 1rem 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb__sep { color: var(--border-dark); }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ─── Quantity Stepper ──────────────────────────────────── */
.qty-stepper { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border-dark); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.qty-stepper button { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--ivory); color: var(--text); font-size: 1.1rem; border: none; cursor: pointer; transition: background var(--transition); }
.qty-stepper button:hover { background: var(--border); }
.qty-stepper__value { min-width: 40px; height: 36px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.95rem; background: var(--white); color: var(--text); border-left: 1.5px solid var(--border-dark); border-right: 1.5px solid var(--border-dark); }

/* ─── Page Header ───────────────────────────────────────── */
.page-hero {
  background: var(--forest);
  padding: 3.5rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(74,124,89,0.4) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--cream); font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 0.5rem; }
.page-hero .breadcrumb { padding: 0; margin-top: 0.5rem; }
.page-hero .breadcrumb a { color: rgba(250,245,236,0.6); }
.page-hero .breadcrumb a:hover { color: var(--cream); }
.page-hero .breadcrumb__sep { color: rgba(250,245,236,0.3); }
.page-hero .breadcrumb__current { color: var(--cream); }

/* ─── Navigation ────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.navbar__logo-icon {
  width: 40px; height: 40px;
  background: var(--forest);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-size: 1.3rem;
}
.navbar__logo-text {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--forest);
  letter-spacing: -0.02em;
}
.navbar__logo-text span { color: var(--terra); }
.navbar__nav { display: flex; align-items: center; gap: 0.25rem; flex: 1; }
.navbar__nav a {
  padding: 0.45rem 0.875rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  white-space: nowrap;
}
.navbar__nav a:hover, .navbar__nav a.active { color: var(--forest); background: var(--ivory); }
.navbar__actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; flex-shrink: 0; }
.navbar__icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid);
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition);
  text-decoration: none;
}
.navbar__icon-btn:hover { background: var(--ivory); color: var(--forest); }
.navbar__badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 18px; height: 18px;
  background: var(--terra);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}
.navbar__mobile-toggle { display: none; }
.navbar__search {
  position: relative;
  max-width: 280px;
  flex: 1;
}
.navbar__search input {
  width: 100%;
  padding: 0.5rem 0.875rem 0.5rem 2.5rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: var(--ivory);
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
}
.navbar__search input:focus { outline: none; border-color: var(--sage); background: var(--white); }
.navbar__search-icon { position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.navbar__user-menu {
  position: relative;
}
.navbar__user-btn {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.75rem 0.35rem 0.35rem;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
}
.navbar__user-btn:hover { border-color: var(--sage); background: var(--ivory); }
.navbar__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--forest);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 200;
}
.navbar__user-menu:hover .dropdown-menu,
.dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu a, .dropdown-menu button {
  display: flex; align-items: center; gap: 0.6rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
  transition: var(--transition);
  text-align: left;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--ivory); color: var(--forest); }
.dropdown-menu .divider { margin: 0.25rem 0; }

/* ─── Top Bar ────────────────────────────────────────────── */
.topbar {
  background: var(--forest);
  padding: 0.45rem 0;
  font-size: 0.78rem;
  color: rgba(250,245,236,0.85);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a { color: rgba(250,245,236,0.85); }
.topbar a:hover { color: var(--cream); }

/* ─── Footer ────────────────────────────────────────────── */
footer {
  background: var(--forest);
  color: var(--cream);
  padding: 5rem 0 2rem;
  margin-top: auto;
}
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand .navbar__logo-text { color: var(--cream); }
.footer__brand p { font-size: 0.9rem; line-height: 1.7; color: rgba(250,245,236,0.7); margin: 1rem 0 1.5rem; max-width: 280px; }
.footer__social { display: flex; gap: 0.6rem; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(250,245,236,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(250,245,236,0.7);
  transition: var(--transition);
  font-size: 0.85rem;
}
.footer__social a:hover { background: rgba(250,245,236,0.1); color: var(--cream); border-color: rgba(250,245,236,0.4); }
.footer__col h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,245,236,0.5);
  margin-bottom: 1rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul a {
  font-size: 0.9rem;
  color: rgba(250,245,236,0.75);
  transition: var(--transition);
}
.footer__col ul a:hover { color: var(--cream); }
.footer__newsletter h5 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250,245,236,0.5);
  margin-bottom: 1rem;
}
.footer__newsletter p { font-size: 0.875rem; color: rgba(250,245,236,0.7); margin-bottom: 1rem; line-height: 1.6; }
.footer__newsletter-form { display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid rgba(250,245,236,0.2); }
.footer__newsletter-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  background: rgba(250,245,236,0.1);
  border: none;
  color: var(--cream);
  font-size: 0.875rem;
  min-width: 0;
}
.footer__newsletter-form input::placeholder { color: rgba(250,245,236,0.4); }
.footer__newsletter-form input:focus { outline: none; background: rgba(250,245,236,0.15); }
.footer__newsletter-form button {
  padding: 0.65rem 1.25rem;
  background: var(--terra);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: var(--transition);
}
.footer__newsletter-form button:hover { background: var(--terra-light); }
.footer__bottom {
  border-top: 1px solid rgba(250,245,236,0.12);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(250,245,236,0.5);
}
.footer__bottom a { color: rgba(250,245,236,0.5); }
.footer__bottom a:hover { color: var(--cream); }
.footer__payment { display: flex; gap: 0.5rem; align-items: center; }
.payment-icon {
  background: rgba(250,245,236,0.1);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  font-size: 0.72rem;
  color: rgba(250,245,236,0.6);
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.sidebar-layout { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; align-items: start; }
.sidebar { background: var(--white); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.sidebar__section { margin-bottom: 1.75rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--border); }
.sidebar__section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.sidebar__title { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); margin-bottom: 1rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.6rem; }
.filter-item { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; cursor: pointer; }
.filter-item label { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; font-size: 0.88rem; color: var(--text-mid); flex: 1; }
.filter-item input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--sage); flex-shrink: 0; }
.filter-count { font-size: 0.72rem; color: var(--muted); background: var(--ivory); padding: 0.1rem 0.45rem; border-radius: 100px; }
.price-range { display: flex; flex-direction: column; gap: 0.75rem; }
.price-range input[type=range] { width: 100%; accent-color: var(--sage); }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--muted); }

/* ─── Pagination ────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: 0.35rem; padding: 2rem 0; }
.page-btn {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--sage); color: var(--forest); }
.page-btn.active { background: var(--forest); color: var(--cream); border-color: var(--forest); }
.page-btn.disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* ─── Status Chips ──────────────────────────────────────── */
.status {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.status-delivered  { background: #e8f5e9; color: #2e7d32; }
.status-delivered::before  { background: #2e7d32; }
.status-processing { background: #fff8e1; color: #f57f17; }
.status-processing::before { background: #f57f17; }
.status-shipped    { background: #e3f2fd; color: #1565c0; }
.status-shipped::before    { background: #1565c0; }
.status-cancelled  { background: #fbe9e7; color: #bf360c; }
.status-cancelled::before  { background: #bf360c; }

/* ─── Tables ────────────────────────────────────────────── */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead tr { background: var(--ivory); }
thead th { padding: 0.875rem 1.25rem; text-align: left; font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--border); transition: background var(--transition); }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: var(--ivory); }
tbody td { padding: 1rem 1.25rem; font-size: 0.9rem; color: var(--text); vertical-align: middle; }

/* ─── Tabs ──────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 2rem; }
.tab-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--forest); }
.tab-btn.active { color: var(--forest); border-bottom-color: var(--forest); font-weight: 600; }

/* ─── Rating ────────────────────────────────────────────── */
.rating-bar { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.4rem; }
.rating-bar__label { font-size: 0.8rem; color: var(--muted); width: 20px; text-align: right; }
.rating-bar__track { flex: 1; height: 6px; background: var(--border); border-radius: 100px; overflow: hidden; }
.rating-bar__fill { height: 100%; background: #e8a44a; border-radius: 100px; }
.rating-bar__count { font-size: 0.78rem; color: var(--muted); width: 24px; }

/* ─── Mobile Nav ────────────────────────────────────────── */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 999;
  visibility: hidden;
}
.mobile-nav.open { visibility: visible; }
.mobile-nav__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28,58,28,0.6);
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}
.mobile-nav.open .mobile-nav__overlay { opacity: 1; }
.mobile-nav__panel {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--white);
  padding: 1.5rem;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mobile-nav.open .mobile-nav__panel { transform: translateX(0); }
.mobile-nav__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.mobile-nav__links { display: flex; flex-direction: column; }
.mobile-nav__links a { padding: 0.75rem 0.5rem; font-size: 1rem; font-weight: 500; color: var(--text); border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }

/* ─── Utilities ─────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--muted); }
.text-forest { color: var(--forest); }
.text-terra  { color: var(--terra); }
.text-sm     { font-size: 0.875rem; }
.text-xs     { font-size: 0.78rem; }
.font-bold   { font-weight: 600; }
.d-flex      { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .sidebar-layout { grid-template-columns: 240px 1fr; }
}
@media (max-width: 768px) {
  .navbar__nav, .navbar__search { display: none; }
  .navbar__mobile-toggle { display: flex; }
  .sidebar-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .section-header--between { flex-direction: column; align-items: flex-start; }
  .tabs { overflow-x: auto; }
}
@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 0.875rem; }
}

/* ─── SVG Fruit Placeholder Colors ──────────────────────── */
.fruit-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-up { animation: fadeInUp 0.5s ease both; }
.animate-fade    { animation: fadeIn  0.4s ease both; }

/* ─── Sticky Cart Bar ───────────────────────────────────── */
.sticky-cart {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest);
  color: var(--cream);
  padding: 0.875rem 1.75rem;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  z-index: 90;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.sticky-cart:hover { background: var(--forest-mid); transform: translateX(-50%) translateY(-2px); }
.sticky-cart__count {
  background: var(--terra);
  color: var(--white);
  width: 24px; height: 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}

/* ─── Dashboard Sidebar ──────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; min-height: 60vh; }
.dash-sidebar { background: var(--white); border-radius: var(--radius-md); padding: 1.25rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.dash-nav { display: flex; flex-direction: column; gap: 0.25rem; }
.dash-nav a {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: var(--transition);
  text-decoration: none;
}
.dash-nav a:hover { background: var(--ivory); color: var(--forest); }
.dash-nav a.active { background: var(--mint); color: var(--forest); font-weight: 600; }
.dash-nav a svg { flex-shrink: 0; opacity: 0.7; }
.dash-nav a.active svg { opacity: 1; }
.dash-nav .divider { margin: 0.5rem 0; }
@media (max-width: 768px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position: static; }
  .dash-nav { flex-direction: row; overflow-x: auto; }
  .dash-nav a { white-space: nowrap; }
}
