/**
 * Fresh Marketplace Marketplace Stylesheet
 * Brand Accent: Emerald Green (#0F9D72)
 */

:root {
  --st-primary: #0F9D72;
  --st-primary-dark: #0B7A5A;
  --st-primary-glow: rgba(15, 157, 114, 0.28);
  --st-surface: #EAF8F3;
  --st-surface-hover: #def4ec;
  --st-ink: #0f172a;
  --st-muted: #64748b;
  --st-border: #e2e8f0;
  --st-sale: #ef4444;
}

.kizmio-fresh-page {
  max-width: 1500px;
  clear: both;
}

/* Hero, discovery strips, and marketplace inherit one page boundary. */
.fresh-layout-container > .kizmio-fresh-page {
  width: 100%;
  max-width: none;
}

.kizmio-fresh-page .fresh-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  margin: 0;
}

.kizmio-fresh-page .sg-offcanvas-sidebar,
.kizmio-fresh-page .fresh-main-content {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
  float: none;
}

.kizmio-fresh-page .fresh-main-content {
  display: block;
}

.font-xs { font-size: .8125rem; }
.font-sm { font-size: .875rem; }

/* ==========================================================================
   1. STORES MODERN HERO SECTION
   ========================================================================== */

.fresh-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 82% 18%, rgba(15, 157, 114, 0.32) 0%, transparent 52%),
              radial-gradient(circle at 18% 85%, rgba(11, 122, 90, 0.22) 0%, transparent 56%),
              linear-gradient(135deg, #041510 0%, #08291f 48%, #061d16 100%);
  color: #ffffff;
  border-radius: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 42px rgba(4, 21, 16, 0.42);
}

.fresh-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.fresh-hero__glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.fresh-hero__glow--1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: 10%;
  background: radial-gradient(circle, rgba(15, 157, 114, 0.28) 0%, rgba(15, 157, 114, 0.04) 55%, transparent 70%);
  filter: blur(65px);
}

.fresh-hero__glow--2 {
  width: 460px;
  height: 460px;
  bottom: -90px;
  left: -40px;
  background: radial-gradient(circle, rgba(11, 122, 90, 0.22) 0%, rgba(11, 122, 90, 0.03) 55%, transparent 70%);
  filter: blur(75px);
}

.fresh-hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: radial-gradient(#ffffff 1px, transparent 1px);
  background-size: 24px 24px;
}

.fresh-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 30px;
  align-items: center;
  padding: 32px 36px;
}

/* Left Column: Copy & Search */
.st-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.st-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 5px 12px;
  background: rgba(15, 157, 114, 0.2);
  border: 1px solid rgba(15, 157, 114, 0.38);
  border-radius: 999px;
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-hero-title {
  font-size: 36px;
  font-weight: 850;
  line-height: 1.18;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.025em;
}

.st-hero-title span {
  background: linear-gradient(135deg, #34d399 0%, #a7f3d0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.st-hero-desc {
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 0;
  max-width: 540px;
}

.st-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.st-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e2e8f0;
  font-size: 0.7rem;
  font-weight: 650;
}

.st-hero-pill i {
  color: #34d399;
  font-size: 0.72rem;
}

.st-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.st-hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0F9D72 0%, #0B7A5A 100%);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 750;
  border-radius: 12px;
  text-decoration: none !important;
  box-shadow: 0 8px 22px rgba(15, 157, 114, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.st-hero-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 157, 114, 0.48);
  color: #ffffff !important;
}

.st-hero-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 17px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff !important;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none !important;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.st-hero-btn-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
}

/* Integrated Hero Search Form */
.st-hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.st-hero-search-field {
  position: relative;
  display: flex;
  align-items: center;
}

.st-hero-search-field i {
  position: absolute;
  left: 14px;
  color: #94a3b8;
  font-size: 0.85rem;
  pointer-events: none;
}

.st-hero-search-field input,
.st-hero-search-field select {
  width: 100%;
  height: 38px;
  padding: 0 14px 0 38px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #1e293b;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.st-hero-search-field input:focus,
.st-hero-search-field select:focus {
  border-color: #0F9D72;
  box-shadow: 0 0 0 3px rgba(15, 157, 114, 0.2);
}

.st-hero-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 17px;
  background: linear-gradient(135deg, #0F9D72 0%, #0B7A5A 100%);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 750;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 157, 114, 0.4);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.st-hero-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 157, 114, 0.55);
}

/* Right Column: Visual Product Showcase Cluster */
.fresh-hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 275px;
}

.st-hero-float-pill {
  position: absolute;
  top: 6px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(4, 21, 16, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 750;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

/* Main Featured Product Card */
.st-hero-main-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 280px;
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.22s ease;
}

.st-hero-main-card:hover {
  transform: translateY(-4px);
}

.st-hero-card-media {
  position: relative;
  width: 100%;
  height: 130px;
  background: #f1f5f9;
  overflow: hidden;
}

.st-hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.st-hero-card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0b3b2d, #061d16);
  color: #34d399;
  font-size: 3rem;
}

.st-hero-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 750;
  border-radius: 999px;
}

.st-hero-card-sale {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 8px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  border-radius: 8px;
}

.st-hero-card-body {
  padding: 12px;
  color: #0f172a;
}

.st-hero-card-store {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 4px;
}

.st-hero-card-title {
  font-size: 1rem;
  font-weight: 850;
  color: #0f172a;
  margin: 0 0 10px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-hero-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
}

.st-hero-card-price {
  font-size: 1.15rem;
  font-weight: 850;
  color: #0F9D72;
}

.st-hero-card-stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #059669;
  background: #EAF8F3;
  padding: 3px 8px;
  border-radius: 6px;
}

/* Secondary Overlapping Product Card */
.st-hero-sub-card {
  position: absolute;
  bottom: -6px;
  left: -20px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  max-width: 240px;
}

.st-hero-sub-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  flex: 0 0 42px;
  background: #0F9D72;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.st-hero-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.st-hero-sub-info strong {
  font-size: 0.76rem;
  font-weight: 800;
  color: #ffffff;
  display: block;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.st-hero-sub-info small {
  font-size: 0.68rem;
  color: #34d399;
  font-weight: 750;
}

/* ==========================================================================
   2. HORIZONTAL PRODUCT CATEGORIES SLIDER
   ========================================================================== */

.fresh-category-section {
  background: #ffffff;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(31, 41, 55, 0.05);
  padding: 16px;
  margin-bottom: 20px;
}

.fresh-category-slider {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 3px 2px 9px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-color: #0F9D72 transparent;
  scrollbar-width: thin;
}

.fresh-category-card {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  color: #334155;
  display: flex;
  flex: 0 0 135px;
  flex-direction: column;
  gap: 8px;
  padding: 12px 8px;
  scroll-snap-align: start;
  text-align: center;
  text-decoration: none !important;
  transition: 0.18s ease;
}

.fresh-category-card:hover,
.fresh-category-card.is-active {
  background: #EAF8F3;
  border-color: #0F9D72;
  color: #0F9D72;
  transform: translateY(-2px);
}

.fresh-category-card span {
  align-items: center;
  background: #ffffff;
  border-radius: 50%;
  color: #0F9D72;
  display: flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
  font-size: 1.25rem;
  box-shadow: 0 3px 8px rgba(15, 157, 114, 0.14);
}

.fresh-category-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.fresh-category-card strong {
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 750;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   3. POPULAR STOREFRONTS SHOWCASE STRIP
   ========================================================================== */

.fresh-shops-strip {
  background: #ffffff;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  box-shadow: 0 7px 22px rgba(31, 41, 55, 0.05);
  padding: 16px;
  margin-bottom: 20px;
}

.fresh-shops-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 3px 2px 9px;
  scroll-behavior: smooth;
  scrollbar-color: #0F9D72 transparent;
  scrollbar-width: thin;
}

.fresh-shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 240px;
  padding: 10px 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  text-decoration: none !important;
  color: #1e293b;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.fresh-shop-card:hover {
  transform: translateY(-2px);
  border-color: #0F9D72;
  background: #EAF8F3;
  color: #0F9D72;
}

.fresh-shop-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 44px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0F9D72;
  font-size: 1.2rem;
}

.fresh-shop-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fresh-shop-info {
  min-width: 0;
  flex: 1;
}

.fresh-shop-info strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fresh-shop-info small {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 1px;
}

/* ==========================================================================
   4. MARKETPLACE TOOLBAR & PRODUCT GRID PROTECTION
   ========================================================================== */

.fresh-products-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border: 1px solid #edf0f4;
  border-radius: 14px;
  padding: 12px 18px;
  margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

.fresh-products-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.fresh-products-toolbar h5 {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
  color: #0f172a;
}

.fresh-products-toolbar span {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.fresh-sort-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fresh-sort-form label {
  margin: 0;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.fresh-sort-form select {
  width: 170px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid #cbd5e1;
  font-size: 0.82rem;
  font-weight: 650;
}

.fresh-mobile-filter-btn {
  display: none;
}

/* 4-column desktop marketplace product grid */
.kizmio-fresh-page .fresh-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  clear: both;
  margin-bottom: 24px;
}

.kizmio-fresh-page .fresh-product-card {
  display: flex;
  flex-direction: column;
  height: 100% !important;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  background: #ffffff;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.kizmio-fresh-page .fresh-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: #a7f3d0 !important;
}

.fresh-product-card__image {
  position: relative;
  display: flex;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 240px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f1f5f9;
  color: #64748b;
  text-decoration: none;
}

.fresh-product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.28s ease;
}

.kizmio-fresh-page .fresh-product-card:hover .fresh-product-card__image img {
  transform: scale(1.04);
}

.fresh-product-card__image > span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.fresh-product-card__image .badge {
  position: absolute;
  top: 10px;
  right: 10px;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.7rem;
  font-weight: 850;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.fresh-product-card .card-body {
  display: flex;
  padding: 14px;
  flex: 1 1 auto;
  flex-direction: column;
}

.fresh-product-card__title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.5em;
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  margin-bottom: 6px;
}

.fresh-product-card__title:hover {
  color: #0F9D72;
}

.fresh-product-card__price {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 8px;
  padding: 0;
  border: 0;
  flex-wrap: wrap;
}

.fresh-product-card__price del {
  color: #94a3b8;
  font-size: 0.75rem;
}

.fresh-product-card__price strong {
  overflow-wrap: anywhere;
  color: #0F9D72;
  font-size: 1.05rem;
  font-weight: 850;
  line-height: 1.2;
}

.fresh-product-card__price small {
  width: 100%;
  color: #64748b;
  font-size: 0.7rem;
}

.fresh-product-card__store,
.fresh-product-card__location {
  overflow: hidden;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.fresh-product-card__store {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}

.fresh-product-card__store span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 650;
}

.fresh-product-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.72rem;
}

.fresh-empty-state {
  grid-column: 1 / -1;
  padding: 60px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  text-align: center;
}

.fresh-empty-state > i {
  margin-bottom: 14px;
  color: #cbd5e1;
  font-size: 3rem;
}

.fresh-empty-state h5 {
  margin-bottom: 7px;
  font-weight: 800;
}

.fresh-empty-state p {
  margin-bottom: 18px;
  color: #64748b;
  font-size: 0.88rem;
}

/* ==========================================================================
   5. SIDEBAR DESIGN IN EMERALD GREEN TOKENS
   ========================================================================== */

.fresh-detail-sidebar,
.places-detail-sidebar {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 7px 24px rgba(15, 157, 114, 0.06);
  margin-bottom: 20px;
}

.places-detail-sidebar__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 17px 16px;
  border-bottom: 1px solid #f1f5f9;
  background: linear-gradient(135deg, #f8fafc, #fff);
}

.places-detail-sidebar__identity > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border-radius: 12px;
  background: #EAF8F3;
  color: #0F9D72;
  font-size: 16px;
}

.places-detail-sidebar__identity small {
  display: block;
  color: #64748b;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.places-detail-sidebar__identity h2 {
  overflow: hidden;
  margin: 2px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.places-detail-sidebar__categories {
  padding: 16px 13px;
}

.places-category-strip__head--sidebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 2px 12px;
}

.places-category-strip__head--sidebar span {
  display: block;
  color: #0F9D72;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.places-category-strip__head--sidebar h3 {
  margin: 3px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: none;
}

.places-category-sidebar-grid {
  display: grid;
  gap: 8px;
}

.places-category-pill--sidebar {
  display: flex;
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
  color: #1e293b;
  text-decoration: none !important;
  transition: transform .2s, border-color .2s, background-color .2s, box-shadow .2s;
}

.places-category-pill--sidebar:hover,
.places-category-pill--sidebar.is-active {
  border-color: rgba(15, 157, 114, 0.4);
  background: #EAF8F3;
  color: #0F9D72;
  transform: translateY(-2px);
}

.places-category-pill--sidebar.is-active {
  box-shadow: inset 0 0 0 1px rgba(15, 157, 114, 0.2);
}

.places-category-pill--sidebar .places-category-pill__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 11px;
  background: #EAF8F3;
  color: #0F9D72;
  font-size: 15px;
  transition: background-color .2s, color .2s;
}

.places-category-pill--sidebar:hover .places-category-pill__icon,
.places-category-pill--sidebar.is-active .places-category-pill__icon {
  background: #0F9D72;
  color: #fff;
}

.places-category-pill__copy {
  min-width: 0;
  flex: 1;
}

.places-category-pill--sidebar strong,
.places-category-pill--sidebar small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.places-category-pill--sidebar strong {
  max-width: none;
  color: #1e293b;
  font-size: 11px;
  font-weight: 800;
}

.places-category-pill--sidebar:hover strong,
.places-category-pill--sidebar.is-active strong {
  color: #0F9D72;
}

.places-category-pill--sidebar small {
  margin-top: 2px;
  color: #64748b;
  font-size: 9px;
  font-weight: 600;
}

.places-sidebar-v2 {
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(15, 157, 114, 0.06);
}

.places-sidebar-v2__heading {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px;
  border-bottom: 1px solid #f1f5f9;
}

.places-sidebar-v2__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, #0F9D72, #0B7A5A);
  color: #fff;
  box-shadow: 0 7px 16px rgba(15, 157, 114, 0.25);
}

.places-sidebar-v2__heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 850;
}

.places-sidebar-v2__heading p {
  margin: 2px 0 0;
  color: #64748b;
  font-size: 10px;
}

.places-sidebar-v2__section {
  padding: 17px 18px;
  border-bottom: 1px solid #f1f5f9;
}

.places-sidebar-v2__section h3 {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.places-sidebar-v2__section h3 i {
  color: #0F9D72;
}

.places-discovery-form label:not(.places-sort-radio) {
  margin: 9px 0 5px;
  color: #475569;
  font-size: 10px;
  font-weight: 750;
}

.places-discovery-form .form-select,
.places-discovery-form .form-control {
  border-color: #cbd5e1;
  border-radius: 9px;
  color: #0f172a;
  font-size: 12px;
}

.places-discovery-form .form-select:focus,
.places-discovery-form .form-control:focus {
  border-color: #0F9D72;
  box-shadow: 0 0 0 3px rgba(15, 157, 114, 0.14);
}

.places-sidebar-v2__actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  padding: 17px 18px;
}

.places-filter-apply {
  border-radius: 10px;
  background: #0F9D72;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  border: 0;
  padding: 8px 14px;
  transition: background 0.18s ease;
}

.places-filter-apply:hover {
  background: #0B7A5A;
  color: #fff;
}

.places-filter-reset {
  display: flex;
  align-items: center;
  padding: 0 8px;
  color: #64748b;
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.places-filter-reset:hover {
  color: #0F9D72;
}

.places-community-entry {
  display: block;
  margin-bottom: 20px;
  padding: 16px;
  border: 1px solid rgba(15, 157, 114, 0.25);
  border-radius: 16px;
  background: linear-gradient(145deg, #f8fafc, #EAF8F3);
  color: #0f172a;
  text-decoration: none !important;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}

.places-community-entry:hover {
  border-color: rgba(15, 157, 114, 0.5);
  color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 157, 114, 0.14);
}

.places-community-entry__eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0F9D72;
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.places-community-entry > strong {
  display: block;
  margin: 5px 0 6px;
  font-size: 14px;
  font-weight: 850;
}

.places-community-entry > small {
  display: block;
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.places-community-entry__action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  color: #0F9D72;
  font-size: 10px;
  font-weight: 850;
}

/* ==========================================================================
   6. RESPONSIVE BREAKPOINTS & MOBILE OFFCANVAS DRAWER
   ========================================================================== */

.places-sidebar-backdrop,
.fresh-sidebar-backdrop {
  display: none;
}

@media (max-width: 1199.98px) {
  .kizmio-fresh-page .fresh-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .fresh-hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(230px, 0.75fr);
    padding: 28px 24px;
    gap: 20px;
  }
  .fresh-hero__visual {
    min-height: 255px;
  }
  .st-hero-main-card {
    max-width: 245px;
  }
  .st-hero-title {
    font-size: 30px;
  }
  .st-hero-search {
    grid-template-columns: minmax(0, 1fr) 130px auto;
  }
  .kizmio-fresh-page .fresh-page-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
  }
  .kizmio-fresh-page .fresh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .fresh-hero {
    border-radius: 18px !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
  }
  .fresh-hero__inner {
    grid-template-columns: 1fr !important;
    padding: 22px 16px !important;
    gap: 14px !important;
    min-width: 0 !important;
  }
  .st-hero-copy {
    gap: 12px !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .st-hero-badge {
    font-size: 0.72rem !important;
    padding: 5px 12px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
    max-width: 100% !important;
    width: fit-content !important;
  }
  .st-hero-title {
    font-size: 1.55rem !important;
    line-height: 1.25 !important;
    word-break: normal !important;
  }
  .st-hero-desc {
    font-size: 0.84rem !important;
    line-height: 1.5 !important;
    color: #cbd5e1 !important;
    margin: 0 !important;
    max-width: 100% !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
  }
  .st-hero-pills {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    max-width: 100% !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  .st-hero-pill {
    flex: 0 0 auto !important;
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    white-space: normal !important;
  }
  .st-hero-actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 2px !important;
  }
  .st-hero-btn-primary,
  .st-hero-btn-secondary {
    width: 100% !important;
    flex: 1 1 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 0.84rem !important;
    text-align: center !important;
    white-space: normal !important;
    box-sizing: border-box !important;
  }
  .st-hero-search {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 6px !important;
    border-radius: 14px !important;
    margin-top: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .st-hero-search-field input,
  .st-hero-search-field select {
    height: 40px !important;
    font-size: 0.82rem !important;
    border-radius: 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .st-hero-search-btn {
    height: 40px !important;
    width: 100% !important;
    border-radius: 10px !important;
    font-size: 0.84rem !important;
    box-sizing: border-box !important;
  }
  .fresh-hero__visual {
    display: none !important;
  }

  .fresh-category-section,
  .fresh-shops-strip {
    padding: 12px !important;
    border-radius: 14px !important;
    margin-bottom: 16px !important;
  }
  .fresh-category-card {
    flex: 0 0 108px !important;
    padding: 10px 6px !important;
  }
  .fresh-category-card span {
    height: 42px !important;
    width: 42px !important;
    font-size: 1.05rem !important;
  }
  .fresh-category-card strong {
    font-size: 0.72rem !important;
  }

  .fresh-shop-card {
    flex: 0 0 200px !important;
    padding: 8px 10px !important;
  }

  .fresh-products-toolbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .fresh-products-toolbar > div {
    display: block;
  }
  .fresh-sort-form {
    display: none;
  }
  .fresh-mobile-filter-btn {
    display: inline-flex !important;
  }

  .kizmio-fresh-page .fresh-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  .fresh-product-card .card-body {
    padding: 10px !important;
  }
  .fresh-product-card__title {
    font-size: 0.82rem !important;
  }
  .fresh-product-card__price strong {
    font-size: 0.9rem !important;
  }

  /* Mobile Offcanvas Drawer */
  .kizmio-places-page.sg-offcanvas,
  .kizmio-fresh-page.sg-offcanvas,
  .kpl-marketplace.sg-offcanvas {
    overflow: visible !important;
  }

  .kizmio-places-page.sg-offcanvas.active,
  .kizmio-fresh-page.sg-offcanvas.active,
  .kpl-marketplace.sg-offcanvas.active {
    position: relative !important;
    z-index: 1000000 !important;
    isolation: isolate;
    overflow: visible !important;
    min-height: max-content !important;
  }

  .kizmio-places-page.sg-offcanvas .sg-offcanvas-sidebar,
  .kizmio-fresh-page.sg-offcanvas .sg-offcanvas-sidebar,
  .kpl-marketplace.sg-offcanvas .sg-offcanvas-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    top: 0 !important;
    left: 0 !important;
    bottom: 0 !important;
    right: auto !important;
    display: block !important;
    width: min(88vw, 340px) !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: 14px 12px 80px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: var(--kzm-surface, #ffffff) !important;
    box-shadow: 0 0 40px rgba(15, 23, 42, 0.3) !important;
    z-index: 2 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    scrollbar-width: thin;
    scrollbar-color: #0F9D72 transparent;
    transform: translateX(-105%) !important;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .kizmio-places-page.sg-offcanvas.active .sg-offcanvas-sidebar,
  .kizmio-fresh-page.sg-offcanvas.active .sg-offcanvas-sidebar,
  .kpl-marketplace.sg-offcanvas.active .sg-offcanvas-sidebar {
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(0) !important;
  }

  .kizmio-places-page.sg-offcanvas.active .sg-offcanvas-sidebar *,
  .kizmio-fresh-page.sg-offcanvas.active .sg-offcanvas-sidebar *,
  .kpl-marketplace.sg-offcanvas.active .sg-offcanvas-sidebar * {
    pointer-events: auto !important;
  }

  .kizmio-places-page .sg-offcanvas-sidebar::-webkit-scrollbar,
  .kizmio-fresh-page .sg-offcanvas-sidebar::-webkit-scrollbar {
    width: 5px;
  }

  .kizmio-places-page .sg-offcanvas-sidebar::-webkit-scrollbar-track,
  .kizmio-fresh-page .sg-offcanvas-sidebar::-webkit-scrollbar-track {
    background: transparent;
  }

  .kizmio-places-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb,
  .kizmio-fresh-page .sg-offcanvas-sidebar::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #0F9D72;
  }

  .kizmio-places-page.sg-offcanvas .sg-offcanvas-mainbar,
  .kizmio-places-page.sg-offcanvas.active .sg-offcanvas-mainbar,
  .kizmio-fresh-page.sg-offcanvas .sg-offcanvas-mainbar,
  .kizmio-fresh-page.sg-offcanvas.active .sg-offcanvas-mainbar {
    position: static !important;
    left: 0 !important;
    width: 100% !important;
  }

  .kizmio-places-page.sg-offcanvas .places-sidebar-backdrop,
  .kizmio-places-page.sg-offcanvas .fresh-sidebar-backdrop,
  .kizmio-fresh-page.sg-offcanvas .places-sidebar-backdrop,
  .kizmio-fresh-page.sg-offcanvas .fresh-sidebar-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 1;
    background: rgba(15, 23, 42, 0.55);
    pointer-events: auto;
  }

  .kizmio-places-page.sg-offcanvas.active .places-sidebar-backdrop,
  .kizmio-places-page.sg-offcanvas.active .fresh-sidebar-backdrop,
  .kizmio-fresh-page.sg-offcanvas.active .places-sidebar-backdrop,
  .kizmio-fresh-page.sg-offcanvas.active .fresh-sidebar-backdrop {
    display: block;
  }

  .kizmio-places-page .places-sidebar-v2,
  .kizmio-places-page .places-detail-sidebar,
  .kizmio-places-page .fresh-detail-sidebar,
  .kizmio-fresh-page .places-sidebar-v2,
  .kizmio-fresh-page .places-detail-sidebar,
  .kizmio-fresh-page .fresh-detail-sidebar {
    position: static !important;
    max-height: none !important;
    margin: 0 0 16px 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    overflow: visible !important;
  }
}
