/* Kasatiti Marketplace — HOTFIX V1.4.3 */
.market-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: #fff;
  box-shadow: 0 8px 26px rgba(20, 36, 18, 0.08);
}

.market-main-nav {
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid color-mix(in srgb, var(--primary) 10%, #e9ecef);
  backdrop-filter: blur(14px);
}

.market-nav-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(320px, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2rem);
}

.market-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--primary-dark);
}

.market-brand:hover {
  color: var(--primary);
}

.market-brand .site-logo {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 16%, transparent);
}

.market-brand span {
  min-width: 0;
  line-height: 1.05;
}

.market-brand strong {
  display: block;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
  font-weight: 850;
}

.market-brand small {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.22em;
}

.market-searchbar {
  height: 46px;
  display: grid;
  grid-template-columns: minmax(120px, 155px) 1fr auto;
  overflow: hidden;
  background: #fff;
  border: 2px solid var(--primary);
  border-radius: 10px;
}

.market-searchbar select,
.market-searchbar input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.market-searchbar select {
  padding: 0 0.85rem;
  border-right: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
}

.market-searchbar input {
  width: 100%;
  padding: 0 1rem;
  font-size: 0.9rem;
}

.market-searchbar button {
  min-width: 88px;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  transition: 0.2s ease;
}

.market-searchbar button:hover {
  background: var(--primary-dark);
}

.market-searchbar button i {
  margin-right: 0.35rem;
}

.market-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.market-account-link {
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
}

.market-account-link > i {
  font-size: 1.55rem;
  color: var(--primary);
}

.market-account-link span,
.market-account-link small,
.market-account-link strong {
  display: block;
}

.market-account-link small {
  max-width: 120px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.67rem;
}

.market-account-link strong {
  font-size: 0.78rem;
}

.market-cart-link,
.market-partner-link,
.market-menu-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
}

.market-menu-toggle {
  padding: 0;
  font-size: 1.4rem;
}

.market-cart-link:hover,
.market-partner-link:hover,
.market-menu-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.market-cart-link span {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.65rem;
  font-weight: 900;
}

.market-mobile-menu {
  border-top: 1px solid var(--border);
}

.market-mobile-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  padding: 0.8rem 0 1rem;
}

.market-mobile-links a {
  padding: 0.68rem 0.8rem;
  border-radius: 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.market-mobile-links a i {
  margin-right: 0.35rem;
  color: var(--primary);
}

.market-category-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.market-category-scroll {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.market-category-scroll::-webkit-scrollbar {
  display: none;
}

.market-category-scroll a {
  flex: 0 0 auto;
  padding: 0.72rem 0.82rem;
  color: #585967;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
  transition: 0.18s ease;
}

.market-category-scroll a:hover,
.market-category-scroll a.active {
  color: var(--primary);
}

.market-category-scroll a.active {
  box-shadow: inset 0 -2px var(--primary);
}

.market-category-scroll .market-all-categories {
  padding-left: 0;
  color: var(--primary-dark);
  font-weight: 850;
}

.marketplace-page {
  min-height: 60vh;
  padding: 1.15rem 0 4.5rem;
  background: #f6f7f9;
}

.market-hero-grid {
  display: grid;
  grid-template-columns: minmax(205px, 0.25fr) minmax(0, 1fr) minmax(190px, 0.23fr);
  gap: 0.9rem;
}

.market-category-panel,
.market-promo-banner,
.market-side-promo,
.market-panel {
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(31, 40, 29, 0.035);
}

.market-category-panel {
  overflow: hidden;
  padding: 0.55rem;
}

.market-panel-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.6rem 0.7rem;
  border-bottom: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

.market-category-list {
  display: grid;
  padding-top: 0.35rem;
}

.market-category-list a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.54rem 0.6rem;
  border-radius: 8px;
  color: #50535d;
  font-size: 0.78rem;
}

.market-category-list a:hover {
  background: var(--surface);
  color: var(--primary);
}

.market-category-list a > i:first-child {
  width: 22px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.market-category-list a span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-category-list a small {
  margin-left: auto;
  color: #9699a2;
}

.market-promo-banner {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(190px, 0.9fr);
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--accent) 42%, white) 0 5%, transparent 31%),
    linear-gradient(120deg, color-mix(in srgb, var(--surface) 82%, white), color-mix(in srgb, var(--accent) 18%, white));
}

.market-promo-copy {
  position: relative;
  z-index: 2;
  padding: clamp(1.6rem, 4vw, 3rem);
}

.market-promo-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.36rem 0.62rem;
  border-radius: 50px;
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(38, 67, 31, 0.08);
  font-size: 0.69rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.market-promo-banner h1 {
  max-width: 560px;
  margin: 0.9rem 0 0.65rem;
  color: var(--primary-dark);
  font-size: clamp(1.75rem, 3.5vw, 3.1rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.market-promo-banner p {
  max-width: 520px;
  margin-bottom: 1rem;
  color: #5e665c;
  font-size: 0.92rem;
}

.market-promo-image {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.market-promo-image img {
  width: min(100%, 300px);
  height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 24px 25px rgba(33, 63, 26, 0.17));
  transition: transform 0.25s ease;
}

.market-promo-banner:hover .market-promo-image img {
  transform: scale(1.025) rotate(-1deg);
}

.market-side-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.9rem;
}

.market-side-promo {
  position: relative;
  overflow: hidden;
  padding: 1.2rem;
}

.market-side-promo i.market-side-icon {
  position: absolute;
  right: -0.2rem;
  bottom: -0.7rem;
  color: color-mix(in srgb, var(--primary) 13%, transparent);
  font-size: 5.5rem;
  transform: rotate(-8deg);
}

.market-side-promo.whatsapp {
  background: linear-gradient(145deg, #effcf4, #fff);
}

.market-side-promo.delivery {
  background: linear-gradient(145deg, #fff8e8, #fff);
}

.market-side-promo small,
.market-side-promo strong,
.market-side-promo span {
  position: relative;
  z-index: 1;
  display: block;
}

.market-side-promo small {
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
}

.market-side-promo strong {
  max-width: 150px;
  margin: 0.35rem 0 0.6rem;
  color: var(--primary-dark);
  line-height: 1.15;
}

.market-side-promo span {
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.market-category-rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  overflow-x: auto;
  margin-top: 0.9rem;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #fff;
  scrollbar-width: none;
}

.market-category-rail::-webkit-scrollbar {
  display: none;
}

.market-category-chip {
  min-width: 110px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem;
  border-right: 1px solid var(--border);
  color: var(--ink);
}

.market-category-chip:last-child {
  border-right: 0;
}

.market-category-chip .icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  font-size: 1.15rem;
}

.market-category-chip strong,
.market-category-chip small {
  display: block;
}

.market-category-chip strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.77rem;
}

.market-category-chip small {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.65rem;
}

.market-category-chip:hover .icon {
  background: var(--primary);
  color: #fff;
}

.market-product-section {
  margin-top: 1.1rem;
  padding: 1.1rem;
  border: 1px solid #e6e8eb;
  border-radius: 12px;
  background: #fff;
}

.market-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.market-section-head .eyebrow {
  margin-bottom: 0.2rem;
  color: var(--primary);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-section-head h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.market-section-head p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.market-sort-form .form-select {
  min-width: 165px;
  padding: 0.55rem 2.3rem 0.55rem 0.75rem;
  border-radius: 8px;
  font-size: 0.78rem;
}

.market-product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.market-product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e8e9ec;
  border-radius: 10px;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.market-product-card:hover {
  z-index: 2;
  border-color: color-mix(in srgb, var(--primary) 35%, #e8e9ec);
  box-shadow: 0 14px 30px rgba(32, 54, 27, 0.12);
  transform: translateY(-3px);
}

.market-product-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 0.92;
  background: #f2f4f4;
}

.market-product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.market-product-card:hover .market-product-image img {
  transform: scale(1.045);
}

.market-product-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.3rem 0.47rem;
  border-radius: 5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 850;
}

.market-product-type {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.market-product-info {
  padding: 0.72rem;
}

.market-product-category {
  display: block;
  overflow: hidden;
  color: var(--primary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.market-product-name {
  display: -webkit-box;
  min-height: 2.4em;
  overflow: hidden;
  margin: 0.28rem 0 0.45rem;
  color: #292c32;
  font-size: 0.79rem;
  font-weight: 750;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-product-name:hover {
  color: var(--primary);
}

.market-product-rating {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-height: 17px;
  color: #ff9f0a;
  font-size: 0.68rem;
}

.market-product-rating small {
  color: var(--muted);
}

.market-product-price {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.55rem;
}

.market-product-price strong {
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 900;
}

.market-product-price small {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6rem;
}

.market-product-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.55rem;
  padding-top: 0.52rem;
  border-top: 1px solid #f0f1f2;
  color: var(--muted);
  font-size: 0.61rem;
}

.market-product-meta .in-stock {
  color: #16834d;
}

.market-empty-state {
  grid-column: 1 / -1;
  padding: 4rem 1rem;
  text-align: center;
}

.market-empty-state i {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 2.4rem;
}

.market-empty-state h3 {
  font-size: 1.25rem;
  font-weight: 850;
}

.market-filter-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 9px;
  background: var(--surface);
  color: #535a50;
  font-size: 0.78rem;
}

.market-filter-notice a {
  flex: 0 0 auto;
  color: var(--primary);
  font-weight: 800;
}

.template-elegant .market-product-card,
.template-elegant .market-product-section,
.template-elegant .market-category-panel,
.template-elegant .market-promo-banner,
.template-classic .market-product-card,
.template-classic .market-product-section,
.template-classic .market-category-panel,
.template-classic .market-promo-banner {
  border-radius: 6px;
}

@media (max-width: 1199px) {
  .market-nav-row {
    grid-template-columns: minmax(190px, 230px) minmax(280px, 1fr) auto;
  }

  .market-hero-grid {
    grid-template-columns: minmax(190px, 0.28fr) minmax(0, 1fr);
  }

  .market-side-stack {
    display: none;
  }

  .market-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .market-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 991px) {
  .market-header {
    position: relative;
  }

  .market-nav-row {
    grid-template-columns: 1fr auto;
    gap: 0.7rem;
    padding: 0.65rem 0;
  }

  .market-searchbar {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .market-category-panel {
    display: none;
  }

  .market-hero-grid {
    display: block;
  }

  .market-promo-banner {
    min-height: 300px;
  }

  .market-category-rail {
    grid-template-columns: repeat(6, minmax(150px, 1fr));
  }

  .market-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .market-header .top-strip {
    display: none;
  }

  .market-nav-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .market-brand .site-logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .market-brand strong {
    max-width: 42vw;
    font-size: 0.88rem;
  }

  .market-searchbar {
    height: 43px;
    grid-template-columns: 1fr auto;
  }

  .market-searchbar select {
    display: none;
  }

  .market-searchbar button {
    min-width: 48px;
  }

  .market-searchbar button span {
    display: none;
  }

  .market-searchbar button i {
    margin: 0;
  }

  .market-category-scroll a {
    padding: 0.65rem 0.72rem;
    font-size: 0.73rem;
  }

  .marketplace-page {
    padding-top: 0.7rem;
  }

  .market-promo-banner {
    min-height: 270px;
    grid-template-columns: minmax(0, 1.15fr) minmax(115px, 0.85fr);
  }

  .market-promo-copy {
    padding: 1.3rem;
  }

  .market-promo-banner h1 {
    font-size: clamp(1.55rem, 7vw, 2.15rem);
  }

  .market-promo-banner p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.78rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .market-promo-image {
    padding: 0.6rem;
  }

  .market-promo-image img {
    height: 210px;
  }

  .market-product-section {
    margin-right: -0.1rem;
    margin-left: -0.1rem;
    padding: 0.85rem;
  }

  .market-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }
}

@media (max-width: 575px) {
  .market-nav-row {
    padding: 0.55rem 0;
  }

  .market-brand {
    gap: 0.5rem;
  }

  .market-brand .site-logo {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
    border-width: 1px;
  }

  .market-brand strong {
    max-width: 39vw;
    font-size: 0.78rem;
  }

  .market-brand small {
    font-size: 0.48rem;
  }

  .market-cart-link,
  .market-partner-link,
  .market-menu-toggle {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
    border-radius: 9px;
  }

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

  .market-promo-banner {
    min-height: 238px;
    grid-template-columns: minmax(0, 1.2fr) minmax(92px, 0.8fr);
  }

  .market-promo-copy {
    padding: 1.05rem;
  }

  .market-promo-kicker {
    font-size: 0.56rem;
  }

  .market-promo-banner h1 {
    margin-top: 0.65rem;
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .market-promo-image img {
    height: 170px;
  }

  .market-category-rail {
    grid-template-columns: repeat(6, minmax(138px, 1fr));
  }

  .market-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .market-sort-form .form-select {
    width: 100%;
  }

  .market-product-info {
    padding: 0.62rem;
  }

  .market-product-price {
    display: block;
  }

  .market-product-price small {
    display: block;
    margin-top: 0.2rem;
  }

  .market-filter-notice {
    align-items: flex-start;
  }
}

/* =========================================================
   HOTFIX V2.7.3 — Mobile UX / menu / app-aware navigation
   ========================================================= */
[data-kasatiti-app-client="1"] [data-app-download-link],
.kasatiti-app-client [data-app-download-link] {
  display: none !important;
}

.market-mobile-panel {
  margin: .7rem 0 1rem;
  padding: .85rem;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, #e5e8e6);
  border-radius: 18px;
  background: color-mix(in srgb, #fff 96%, var(--surface));
  box-shadow: 0 18px 42px rgba(24, 46, 27, .10);
}

.market-mobile-user {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: .72rem;
  padding: .75rem;
  margin-bottom: .75rem;
  border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 9%, #fff), color-mix(in srgb, var(--accent) 12%, #fff));
}

.market-mobile-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff;
  font-size: .96rem;
  font-weight: 900;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 24%, transparent);
}

.market-mobile-user-copy { min-width: 0; }
.market-mobile-user-copy strong,
.market-mobile-user-copy small { display: block; }
.market-mobile-user-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 850;
}
.market-mobile-user-copy small {
  margin-top: .16rem;
  color: var(--muted);
  font-size: .7rem;
}

.market-mobile-status {
  display: inline-flex;
  align-items: center;
  gap: .32rem;
  padding: .32rem .52rem;
  border-radius: 999px;
  background: #e8f8ee;
  color: #17834b;
  white-space: nowrap;
  font-size: .66rem;
  font-weight: 800;
}
.market-mobile-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22b765;
  box-shadow: 0 0 0 4px rgba(34, 183, 101, .12);
}

.market-mobile-section + .market-mobile-section { margin-top: .8rem; }
.market-mobile-section-label {
  display: block;
  margin: 0 0 .42rem .12rem;
  color: #8a958d;
  font-size: .61rem;
  font-weight: 900;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.market-mobile-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  padding: 0;
}

.market-mobile-links a,
.market-mobile-logout {
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: .55rem;
  width: 100%;
  padding: .6rem .68rem;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f6f8f6;
  color: var(--ink);
  text-align: left;
  font-family: inherit;
  font-size: .84rem;
  font-weight: 780;
  line-height: 1.2;
  transition: .18s ease;
}

.market-mobile-links a > i,
.market-mobile-logout > i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--primary) 10%, #fff);
  color: var(--primary);
  font-size: 1rem;
}

.market-mobile-links a > span,
.market-mobile-logout > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-mobile-links a > small,
.market-mobile-logout > small {
  color: var(--muted);
  font-size: .64rem;
  font-weight: 650;
}

.market-mobile-links a > em,
.market-mobile-unread {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 0 .35rem;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .65rem;
  font-style: normal;
  font-weight: 850;
}

.market-mobile-links a:hover,
.market-mobile-links a:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 22%, transparent);
  background: color-mix(in srgb, var(--primary) 6%, #fff);
  color: var(--primary-dark);
}

.market-mobile-chat {
  background: linear-gradient(135deg, rgba(10, 124, 255, .08), rgba(109, 61, 245, .07)) !important;
}
.market-mobile-chat > i {
  background: linear-gradient(135deg, #0a7cff, #6656e8) !important;
  color: #fff !important;
}

.market-mobile-account-actions {
  margin-top: .8rem;
  padding-top: .75rem;
  border-top: 1px solid #e8ece9;
}
.market-mobile-account-actions form { margin: 0; }
.market-mobile-logout {
  border-color: rgba(198, 61, 61, .10);
  background: #fff5f5;
  color: #b83535;
}
.market-mobile-logout > i {
  background: #fee7e7;
  color: #c73d3d;
}
.market-mobile-logout:hover { background: #ffecec; }

.mobile-app-installed-state {
  max-width: 720px;
  margin-inline: auto;
  border: 1px solid color-mix(in srgb, var(--primary) 16%, transparent);
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--accent) 9%, #fff));
}
.mobile-app-installed-state > i { color: #1da45c; }

@media (max-width: 991px) {
  .market-main-nav .container { max-width: 100%; }
  .market-mobile-menu { padding-inline: .1rem; }
}

@media (max-width: 767px) {
  html { font-size: 15px; }
  body { line-height: 1.45; }

  .market-header { box-shadow: 0 4px 18px rgba(20, 36, 18, .07); }
  .market-nav-row { gap: .48rem; }
  .market-nav-actions { gap: .42rem; }

  /* Chat boot/floating hasai; chat agora iha menu. */
  .market-chat-link { display: none !important; }

  .market-searchbar input {
    min-height: 43px;
    padding-inline: .85rem;
    font-size: 16px;
  }

  .market-category-scroll a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    font-size: .76rem;
  }

  .market-product-card,
  .market-category-card,
  .market-product-section,
  .market-promo-banner {
    border-radius: 14px;
  }

  .market-product-title,
  .market-product-card h3 {
    font-size: .86rem;
    line-height: 1.3;
  }

  .market-product-price { font-size: .94rem; }
  .market-product-meta { font-size: .68rem; }
  .market-section-head h2 { font-size: 1.05rem; }

  .shop-footer { font-size: .88rem; }
  .shop-footer h6 { font-size: .82rem; }
  .footer-bottom { font-size: .72rem; }

  .whatsapp-float {
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 575px) {
  .market-brand strong {
    max-width: 43vw;
    font-size: .84rem;
  }
  .market-brand small { font-size: .5rem; }

  .market-cart-link,
  .market-partner-link,
  .market-menu-toggle {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .market-mobile-panel {
    margin-top: .55rem;
    padding: .72rem;
    border-radius: 15px;
  }
  .market-mobile-links { grid-template-columns: 1fr; }
  .market-mobile-links a,
  .market-mobile-logout {
    min-height: 49px;
    font-size: .88rem;
  }

  .market-mobile-user {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: .65rem;
  }
  .market-mobile-status { display: none; }
  .market-mobile-avatar { width: 42px; height: 42px; }

  .market-product-section { padding: .7rem; }
  .market-product-grid { gap: .5rem; }
  .market-product-info { padding: .58rem; }
  .market-product-title,
  .market-product-card h3 { font-size: .82rem; }

  .market-promo-banner h1 { font-size: clamp(1.25rem, 6.4vw, 1.7rem); }
  .market-promo-banner p { font-size: .75rem; }

  .shop-footer .row > [class*="col-"] { width: 100%; }
  .shop-footer .footer-brand { font-size: .98rem; }
}
