/* =========================================================
   fermierul.online — MARKET PAGE
   Same design system as landing, applied to a marketplace layout
   ========================================================= */

:root {
  --cream:       #FBF6EA;
  --cream-2:     #F4ECDB;
  --cream-3:     #ECDDC2;
  --paper:       #FFFDF8;
  --ink:         #1F1A14;
  --ink-2:       #3A2F23;
  --ink-3:       #6B5C49;
  --ink-4:       #9A8A75;
  --line:        #E7DCC2;
  --line-soft:   #F0E5C9;
  --green:       #2D4A2B;
  --green-2:     #1F3520;
  --green-3:     #46663F;
  --green-soft:  #B4C9A6;
  --clay:        #C45D3D;
  --clay-2:      #A24729;
  --clay-soft:   #F1D3C5;
  --brown:       #6B4F35;
  --brown-2:     #4E3922;
  --gold:        #C9A961;
  --voronet:     #3A6E94;

  --ff-serif:    "Fraunces", "Lora", Georgia, "Times New Roman", serif;
  --ff-sans:     "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container:   1280px;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;

  --shadow-sm:   0 1px 2px rgba(31,26,20,.05);
  --shadow:      0 6px 24px -8px rgba(31,26,20,.12), 0 2px 6px rgba(31,26,20,.05);
  --shadow-lg:   0 24px 60px -20px rgba(31,26,20,.18), 0 8px 20px -8px rgba(31,26,20,.08);
  --shadow-xl:   0 40px 100px -32px rgba(31,26,20,.30);

  --ease:        cubic-bezier(.2,.7,.2,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --t-fast:      160ms;
  --t:           260ms;
  --t-slow:      520ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--ff-serif); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
p { margin: 0; }

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

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-sans);
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: .85;
}
.eyebrow-clay { color: var(--clay); }
.eyebrow-green { color: var(--green); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: all var(--t) var(--ease);
  white-space: nowrap;
  border: 1.5px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-sm { padding: 9px 16px; font-size: .875rem; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-primary {
  background: var(--green);
  color: var(--cream);
  box-shadow: 0 8px 20px -10px rgba(45,74,43,.5);
}
.btn-primary:hover {
  background: var(--green-2);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(45,74,43,.6);
}
.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--ink-4);
  background: var(--cream-2);
}
.btn .ic { width: 1.1em; height: 1.1em; }

/* =========================================================
   HEADER
   ========================================================= */
.market-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,246,234,.92);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.market-header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--green-2);
  flex-shrink: 0;
}
.brand-mark { color: var(--green); }
.brand-text { display: inline-flex; align-items: baseline; }
.brand-name { font-weight: 600; }
.brand-dot { color: var(--clay); font-weight: 600; }
.brand-tld { color: var(--ink-3); font-weight: 500; }

.market-search {
  flex: 1;
  max-width: 600px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--paper);
  border: 1.5px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: all var(--t) var(--ease);
}
.market-search:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45,74,43,.08);
}
.market-search-icon { color: var(--ink-3); display: inline-flex; margin-right: 8px; }
.market-search-icon svg { width: 18px; height: 18px; }
.market-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--ff-sans);
  font-size: .95rem;
  color: var(--ink);
  padding: 8px 0;
  outline: none;
  min-width: 0;
}
.market-search input::placeholder { color: var(--ink-4); }
.market-search-btn {
  padding: 10px 20px;
  background: var(--green);
  color: var(--cream);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: .875rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.market-search-btn:hover { background: var(--green-2); }

.market-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.market-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--ff-sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all var(--t) var(--ease);
  position: relative;
}
.market-action:hover {
  background: var(--cream-2);
  color: var(--green-2);
}
.market-action svg { width: 18px; height: 18px; }
.market-action-cart .market-cart-count {
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  background: var(--clay);
  color: var(--cream);
  border-radius: 50%;
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  line-height: 1;
}

/* =========================================================
   BREADCRUMB
   ========================================================= */
.breadcrumb {
  background: var(--cream);
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
}
.breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-size: .85rem;
  color: var(--ink-3);
}
.breadcrumb a {
  color: var(--ink-3);
  transition: color var(--t) var(--ease);
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { opacity: .5; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* =========================================================
   MARKET HERO
   ========================================================= */
.market-hero {
  position: relative;
  padding: 64px 0 48px;
  background: var(--cream);
  overflow: hidden;
}
.market-hero-pattern {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%232D4A2B' stroke-width='1'><path d='M36 18 L52 36 L36 54 L20 36 Z'/><path d='M36 30 L42 36 L36 42 L30 36 Z'/><circle cx='36' cy='36' r='1.2' fill='%232D4A2B'/></g></svg>");
  background-size: 72px 72px;
}
.market-hero .eyebrow { color: var(--clay); margin-bottom: 18px; }
.market-hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--ink);
  max-width: 22ch;
  margin: 0 0 16px;
  font-variation-settings: "opsz" 144;
}
.market-hero-sub {
  font-size: 1.05rem;
  color: var(--ink-3);
  max-width: 60ch;
  line-height: 1.6;
}
.market-hero-sub strong {
  color: var(--green);
  font-weight: 600;
}

.market-quick-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px dashed var(--line);
}
.market-quick-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: all var(--t) var(--ease);
}
.market-quick-cat:hover {
  border-color: var(--green);
  color: var(--green-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.market-quick-cat-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* =========================================================
   MARKET LAYOUT
   ========================================================= */
.market { padding: 0 0 80px; background: var(--cream); }
.market-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* =========================================================
   SIDEBAR
   ========================================================= */
.market-sidebar {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Active filters bar */
.filter-active {
  background: var(--green);
  color: var(--cream);
  padding: 14px 16px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-active-label {
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 600;
}
.filter-active-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}
.filter-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(251,246,234,.18);
  border: 1px solid rgba(251,246,234,.3);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: .78rem;
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.filter-active-chip:hover { background: rgba(251,246,234,.32); }
.filter-active-chip::after { content: '×'; font-weight: 600; opacity: .7; }
.filter-clear-all {
  font-family: var(--ff-sans);
  font-size: .78rem;
  font-weight: 600;
  color: var(--cream);
  text-decoration: underline;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.filter-clear-all:hover { opacity: .8; }

/* Filter group */
.filter-group {
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 24px;
}
.filter-group:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}
.filter-group-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--ff-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
  cursor: pointer;
  background: transparent;
}
.filter-chev {
  width: 16px; height: 16px;
  color: var(--ink-3);
  transition: transform var(--t) var(--ease);
}
.filter-group-head[aria-expanded="false"] .filter-chev { transform: rotate(-90deg); }
.filter-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Filter list (checkboxes) */
.filter-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
}
.filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--t) var(--ease);
}
.filter-list label:hover { background: var(--cream-2); }
.filter-list input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink-4);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: all var(--t) var(--ease);
}
.filter-list input[type="checkbox"]:checked {
  background: var(--green);
  border-color: var(--green);
}
.filter-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.filter-list input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.filter-label {
  font-family: var(--ff-sans);
  font-size: .9rem;
  color: var(--ink-2);
  flex: 1;
}
.filter-count {
  font-family: var(--ff-sans);
  font-size: .78rem;
  color: var(--ink-4);
  background: var(--cream-2);
  padding: 1px 8px;
  border-radius: 999px;
}

/* Price range */
.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price-inputs input[type="number"] {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--ff-sans);
  font-size: .88rem;
  color: var(--ink);
  background: var(--paper);
}
.price-inputs input:focus {
  outline: none;
  border-color: var(--green);
}
.price-inputs span {
  color: var(--ink-4);
  font-size: .9rem;
}
.price-slider {
  width: 100%;
  margin: 8px 0 0;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  outline: none;
}
.price-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px; height: 20px;
  background: var(--green);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(45,74,43,.4);
}
.price-slider::-moz-range-thumb {
  width: 20px; height: 20px;
  background: var(--green);
  border: 3px solid var(--paper);
  border-radius: 50%;
  cursor: pointer;
}
.price-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--ff-sans);
  font-size: .78rem;
  color: var(--ink-3);
}

/* Select */
.filter-select {
  width: 100%;
  padding: 10px 36px 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--ff-sans);
  font-size: .9rem;
  color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'><path d='M6 9 L12 15 L18 9' stroke='%236B5C49' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  cursor: pointer;
}
.filter-select:focus {
  outline: none;
  border-color: var(--green);
}

.market-reset {
  width: 100%;
  margin-top: 8px;
}

/* =========================================================
   MAIN PRODUCTS
   ========================================================= */
.market-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.market-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
}
.market-results-count {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--ff-sans);
  font-size: .95rem;
  color: var(--ink-3);
}
.market-results-count strong {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.market-sort {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-sans);
  font-size: .88rem;
  color: var(--ink-3);
}
.market-sort-select-wrap {
  position: relative;
}
.market-sort-select-wrap select {
  appearance: none;
  padding: 8px 32px 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-family: var(--ff-sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  padding-right: 36px;
}
.market-sort-chev {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  pointer-events: none;
  color: var(--ink-3);
}

.market-mobile-chips {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
}

/* Products grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Product card */
.product-card {
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.product-img {
  position: relative;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
}
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.product-badge.badge-season {
  background: var(--clay);
  color: var(--cream);
}
.product-badge.badge-bio {
  background: var(--green-soft);
  color: var(--green-2);
}
.product-badge.badge-traditional {
  background: var(--brown);
  color: var(--cream);
}
.product-badge.badge-premium {
  background: var(--gold);
  color: var(--brown-2);
}

.product-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.product-name {
  font-family: var(--ff-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.product-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--ff-sans);
  font-size: .78rem;
  color: var(--ink-3);
}
.product-meta svg { width: 12px; height: 12px; color: var(--clay); }
.product-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.product-rating .star { color: var(--gold); }
.product-rating em {
  font-style: normal;
  color: var(--ink-4);
  font-weight: 500;
  font-size: .76rem;
  margin-left: 4px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  gap: 8px;
}
.product-price {
  font-family: var(--ff-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1;
}
.product-price small {
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-4);
  margin-left: 3px;
  letter-spacing: 0.02em;
}
.product-add {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.product-add:hover { background: var(--green-2); transform: scale(1.06); }
.product-add svg { width: 18px; height: 18px; }
.product-add.is-added {
  background: var(--clay);
  animation: pop 320ms var(--ease-out);
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* Empty state */
.products-empty {
  text-align: center;
  padding: 64px 24px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink-3);
}
.products-empty svg {
  width: 80px; height: 80px;
  margin: 0 auto 20px;
  color: var(--ink-4);
}
.products-empty h3 {
  font-family: var(--ff-serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.products-empty p {
  font-size: .95rem;
  margin: 0 0 20px;
}

/* Pagination */
.market-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.page-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-sans);
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: all var(--t) var(--ease);
}
.page-btn:hover:not(:disabled) {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}
.page-btn:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.page-btn svg { width: 16px; height: 16px; }
.page-info {
  font-family: var(--ff-sans);
  font-size: .9rem;
  color: var(--ink-3);
}
.page-info strong {
  color: var(--ink);
  font-weight: 600;
}

/* =========================================================
   CTA STRIP
   ========================================================= */
.market-cta-strip {
  background: var(--green-2);
  color: var(--cream);
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.market-cta-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'><g fill='none' stroke='%23FBF6EA' stroke-width='1'><path d='M36 18 L52 36 L36 54 L20 36 Z'/></g></svg>");
  background-size: 72px 72px;
  opacity: .05;
}
.market-cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
}
.market-cta-strip h2 {
  font-family: var(--ff-serif);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--cream);
  line-height: 1.1;
  margin: 8px 0 0;
  max-width: 24ch;
}
.market-cta-strip .eyebrow { color: var(--green-soft); margin-bottom: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.market-footer {
  background: #14110D;
  color: rgba(251,246,234,.7);
  padding: 64px 0 28px;
}
.market-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(251,246,234,.1);
}
.market-footer .brand { color: var(--cream); margin-bottom: 16px; }
.market-footer .brand .brand-tld { color: var(--cream); opacity: .6; }
.market-footer-tag {
  font-family: var(--ff-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--cream);
  max-width: 28ch;
}
.market-footer h5 {
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 16px;
}
.market-footer ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.market-footer a {
  font-size: .92rem;
  color: rgba(251,246,234,.7);
  transition: color var(--t) var(--ease);
}
.market-footer a:hover { color: var(--cream); }
.market-footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: .82rem;
  color: rgba(251,246,234,.5);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .market-layout { grid-template-columns: 240px 1fr; gap: 28px; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .market-search { max-width: 420px; }
}

@media (max-width: 880px) {
  .market-header-inner { flex-wrap: wrap; gap: 12px; }
  .market-search { order: 3; flex-basis: 100%; max-width: 100%; }
  .market-layout { grid-template-columns: 1fr; }
  .market-sidebar {
    position: static;
    order: 1;
  }
  .market-main { order: 2; }
  .market-mobile-chips {
    display: flex;
  }
  .filter-group {
    padding-bottom: 16px;
  }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (max-width: 560px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: 14px; }
  .product-img { aspect-ratio: 1/1; }
  .product-body { padding: 10px 10px 12px; gap: 5px; }
  .product-name { font-size: .9rem; line-height: 1.2; }
  .product-meta { font-size: .7rem; }
  .product-meta svg { width: 10px; height: 10px; }
  .product-rating { font-size: .72rem; }
  .product-rating em { font-size: .65rem; }
  .product-foot { padding-top: 8px; }
  .product-price { font-size: .95rem; }
  .product-price small { font-size: .6rem; }
  .product-add { width: 28px; height: 28px; }
  .product-add svg { width: 14px; height: 14px; }
  .product-badge { font-size: .6rem; padding: 3px 7px; top: 8px; left: 8px; }
  .market-actions .market-action span { display: none; }
  .market-hero { padding: 40px 0 32px; }
  .market-cta-strip-inner { flex-direction: column; align-items: flex-start; }
  .market-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}