/* Marketplace UI — Pepperfry + Wooden Street inspired */
:root {
  --mp-orange: #e85d04;
  --mp-orange-dark: #dc2f02;
  --mp-orange-light: #fff4ed;
  --mp-green: #2d6a4f;
  --mp-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --mp-radius: 12px;
}

body.page-marketplace {
  --color-primary: var(--mp-orange);
  --color-accent: var(--mp-orange);
  --color-accent-light: var(--mp-orange);
  background: #f7f8fa;
}
body.page-marketplace .section {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}
body.page-marketplace .section-tight {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
body.page-marketplace .btn-primary {
  background: var(--mp-orange);
  border-color: var(--mp-orange);
}
body.page-marketplace .btn-primary:hover {
  background: var(--mp-orange-dark);
  border-color: var(--mp-orange-dark);
}

/* Top offer strip */
.mp-offer-strip {
  background: linear-gradient(90deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  text-align: center;
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}
.mp-offer-strip a {
  color: #ffb703;
  font-weight: 600;
  margin-left: 0.35rem;
}
.mp-offer-strip strong {
  color: #ffb703;
}

/* Utility bar */
.mp-utility {
  background: #fff;
  border-bottom: 1px solid #eee;
  font-size: 0.75rem;
  color: #666;
}
.mp-utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mp-utility a {
  color: #444;
}
.mp-utility a:hover {
  color: var(--mp-orange);
}
.mp-utility-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Main header */
.mp-header {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 200;
}
.mp-header.scrolled {
  box-shadow: var(--mp-shadow);
}
.mp-header-main {
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.55rem 0;
}
@media (max-width: 900px) {
  .mp-header-main {
    display: grid;
    grid-template-columns: 1fr auto auto;
    grid-template-rows: auto auto;
    gap: 0.65rem 0.5rem;
    padding: 0.65rem 0;
    align-items: center;
  }
  .mp-logo {
    grid-column: 1;
    grid-row: 1;
    padding: 0.4rem 0.75rem;
  }
  .mp-logo-img {
    height: 28px;
    min-width: 110px;
    max-width: 150px;
  }
  .mp-header-actions {
    grid-column: 2;
    grid-row: 1;
  }
  .mp-nav-toggle {
    grid-column: 3;
    grid-row: 1;
  }
  .mp-search-wrap {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
    width: 100%;
  }
  .mp-icon-btn span:not(.mp-cart-badge) {
    display: none;
  }
  .mp-icon-btn {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
  }
}
.mp-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: #111;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  line-height: 0;
  max-width: 180px;
  overflow: hidden;
}
.mp-logo-img {
  display: block;
  height: 32px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 32px !important;
  min-width: 0 !important;
  object-fit: contain;
  object-position: left center;
}
.mp-logo-fallback {
  display: none;
  font-family: var(--font-display), Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #888;
}
.mp-logo-img[data-error="1"] {
  display: none;
}
.mp-logo-img[data-error="1"] + .mp-logo-fallback {
  display: block;
}
.site-logo-img {
  display: block;
  height: 40px !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 40px !important;
  object-fit: contain;
  background: #111;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}
.site-logo-img--footer {
  max-width: 220px !important;
  max-height: 44px !important;
}
.logo-img-link {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.mp-search-wrap {
  position: relative;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}
.mp-search {
  width: 100%;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 0.9375rem;
  transition: border-color 0.2s;
}
.mp-search:focus {
  outline: none;
  border-color: var(--mp-orange);
}
.mp-search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.mp-header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.mp-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  color: #333;
  font-size: 0.625rem;
  text-decoration: none;
  position: relative;
  transition: background 0.2s;
}
.mp-icon-btn:hover {
  background: var(--mp-orange-light);
  color: var(--mp-orange);
}
.mp-icon-btn svg {
  width: 22px;
  height: 22px;
}
.mp-cart-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  background: var(--mp-orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Category nav row */
.mp-cat-nav {
  border-top: 1px solid #f0f0f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.mp-cat-nav::-webkit-scrollbar {
  display: none;
}
.mp-cat-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: max-content;
}
.mp-cat-nav a {
  display: block;
  padding: 0.65rem 1.1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}
.mp-cat-nav a:hover,
.mp-cat-nav a.active {
  color: var(--mp-orange);
  border-bottom-color: var(--mp-orange);
}

/* Hero carousel */
.mp-hero {
  position: relative;
  background: #111;
}
.mp-hero-slider {
  display: flex;
  overflow: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}
.mp-hero-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  position: relative;
  min-height: clamp(280px, 42vw, 480px);
}
.mp-hero-slide img {
  width: 100%;
  height: clamp(280px, 42vw, 480px);
  object-fit: cover;
  display: block;
}
/* Promo banners already include sale artwork — minimal overlay */
.mp-hero-slide--promo .overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 40%);
  align-items: flex-end;
  padding: 1.5rem 4%;
}
.mp-hero-slide--promo .overlay-inner {
  max-width: 280px;
}
.mp-hero-slide--promo .overlay h2,
.mp-hero-slide--promo .overlay p {
  display: none;
}
.mp-hero-slide .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, transparent 55%);
  display: flex;
  align-items: center;
  padding: 2rem 4%;
}
.mp-hero-slide .overlay-inner {
  max-width: 420px;
  color: #fff;
}
.mp-hero-slide h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.mp-hero-slide p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  font-size: 1rem;
}
.mp-hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 5;
}
.mp-hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  padding: 0;
}
.mp-hero-dots button.active {
  background: #fff;
  width: 28px;
  border-radius: 5px;
}
.mp-hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #222;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 5;
  box-shadow: var(--mp-shadow);
}
.mp-hero-arrow.prev {
  left: 1rem;
}
.mp-hero-arrow.next {
  right: 1rem;
}

/* USP strip */
.mp-usp {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
}
.mp-usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .mp-usp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
.mp-usp-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem;
}
.mp-usp-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.mp-usp-item strong {
  display: block;
  font-size: 0.875rem;
  color: #1a1a1a;
}
.mp-usp-item span {
  font-size: 0.75rem;
  color: #777;
}

/* Promo banner strip */
.mp-deal-strip {
  margin: 1.25rem 0;
  border-radius: var(--mp-radius);
  overflow: hidden;
  display: block;
}
.mp-deal-strip img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section titles — WS style */
.mp-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.mp-section-head h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}
.mp-section-head p {
  margin: 0.25rem 0 0;
  color: #666;
  font-size: 0.9375rem;
}
.mp-section-head .view-all {
  color: var(--mp-orange);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.mp-section-head .view-all:hover {
  text-decoration: underline;
}

/* Category circles — Pepperfry style */
.mp-cat-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}
@media (max-width: 1100px) {
  .mp-cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 500px) {
  .mp-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
}
.mp-cat-tile {
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.mp-cat-tile .img-ring {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 2px solid #f0f0f0;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.mp-cat-tile:hover .img-ring {
  border-color: var(--mp-orange);
  transform: translateY(-3px);
}
.mp-cat-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mp-cat-tile span {
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  display: block;
  line-height: 1.3;
}

/* Room tabs */
.mp-room-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.mp-room-tabs button {
  padding: 0.5rem 1.25rem;
  border: 1px solid #ddd;
  border-radius: 100px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  color: #444;
}
.mp-room-tabs button.active {
  background: var(--mp-orange);
  border-color: var(--mp-orange);
  color: #fff;
}

/* Product grid */
.mp-product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
@media (max-width: 1100px) {
  .mp-product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .mp-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

/* Enhanced product card */
.product-card-v2 {
  background: #fff;
  border-radius: var(--mp-radius);
  overflow: hidden;
  border: 1px solid #eee;
  transition: box-shadow 0.25s, transform 0.25s;
}
.product-card-v2:hover {
  box-shadow: var(--mp-shadow);
  transform: translateY(-4px);
  border-color: #ddd;
}
.product-card-v2 .img-wrap {
  display: block;
  position: relative;
  aspect-ratio: 1;
  background: #fafafa;
  overflow: hidden;
}
.product-card-v2 .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.product-card-v2:hover .img-wrap img {
  transform: scale(1.05);
}
.product-card-v2 .tags {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  right: 0.5rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.product-card-v2 .tag-sale {
  background: var(--mp-orange);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.product-card-v2 .tag-new {
  background: #2d6a4f;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.product-card-v2 .body {
  padding: 0.85rem 1rem 1rem;
}
.product-card-v2 .cat {
  font-size: 0.6875rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.product-card-v2 h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.35;
  min-height: 2.4em;
}
.product-card-v2 h3 a {
  color: #222;
  text-decoration: none;
}
.product-card-v2 h3 a:hover {
  color: var(--mp-orange);
}
.product-card-v2 .rating-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.5rem;
}
.product-card-v2 .rating-row .stars {
  color: #e27a34;
  letter-spacing: -1px;
}
.product-card-v2 .price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.product-card-v2 .price-now {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
}
.product-card-v2 .price-was {
  font-size: 0.8125rem;
  color: #999;
  text-decoration: line-through;
}
.product-card-v2 .price-off {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mp-green);
}
.product-card-v2 .btn-add {
  width: 100%;
  padding: 0.55rem;
  border: 2px solid var(--mp-orange);
  background: #fff;
  color: var(--mp-orange);
  font-weight: 700;
  font-size: 0.8125rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}
.product-card-v2 .btn-add:hover {
  background: var(--mp-orange);
  color: #fff;
}

/* Dual promo cards */
.mp-promo-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
@media (max-width: 700px) {
  .mp-promo-duo {
    grid-template-columns: 1fr;
  }
}
.mp-promo-card {
  border-radius: var(--mp-radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: block;
}
.mp-promo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}
.mp-promo-card .label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
}
.mp-promo-card .label h3 {
  margin: 0;
  font-size: 1.25rem;
}

/* Visit store CTA */
.mp-store-cta {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  border-radius: var(--mp-radius);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  color: #fff;
  margin: 2rem 0;
}
@media (max-width: 700px) {
  .mp-store-cta {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.mp-store-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}
.mp-store-cta p {
  margin: 0;
  opacity: 0.85;
}

/* Footer marketplace */
.mp-footer-pay {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  padding: 1rem 0;
  border-top: 1px solid #333;
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #999;
}
.mp-footer-cities {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.8;
}

/* Hide old announcement when marketplace active */
body.page-marketplace .announcement-bar {
  display: none;
}
body.page-marketplace .site-header:not(.mp-header-wrap) {
  display: none;
}

/* Mobile nav */
.mp-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  z-index: 210;
}
.mp-nav-toggle span {
  width: 22px;
  height: 2px;
  background: #333;
  transition: transform 0.2s, opacity 0.2s;
}
.mp-nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mp-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mp-nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.mp-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 198;
}
.mp-nav-backdrop.open {
  display: block;
}
body.nav-open {
  overflow: hidden;
}

/* ========== Mobile optimization ========== */
body.page-marketplace {
  -webkit-text-size-adjust: 100%;
}
body.page-marketplace .container {
  width: min(1320px, 100%);
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
/* Do not apply fluid img rules to logo / icons (was blowing up header logo) */
body.page-marketplace img:not(.mp-logo-img):not(.site-logo-img) {
  max-width: 100%;
  height: auto;
}
.mp-deal-strip img,
.mp-usp-item img,
.mp-cat-tile img,
.mp-promo-card img {
  max-width: 100%;
  height: auto;
}
.mp-deal-strip img {
  max-height: 120px;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 640px) {
  .mp-utility {
    display: none;
  }
  .mp-offer-strip {
    font-size: 0.7rem;
    padding: 0.45rem 0.75rem;
    line-height: 1.4;
  }
  .mp-offer-strip a {
    display: inline-block;
    margin-left: 0;
    margin-top: 0.15rem;
  }
}

@media (max-width: 900px) {
  .mp-nav-toggle {
    display: flex;
  }
  .mp-cat-nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 88vw);
    height: 100vh;
    height: 100dvh;
    background: #fff;
    border-top: none;
    border-left: 1px solid #eee;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
    z-index: 199;
    overflow-y: auto;
    padding: 4.5rem 0 2rem;
    -webkit-overflow-scrolling: touch;
  }
  .mp-cat-nav.open {
    display: block;
  }
  .mp-cat-nav ul {
    flex-direction: column;
    min-width: 0;
  }
  .mp-cat-nav a {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f0f0f0;
    border-left: 3px solid transparent;
    font-size: 0.9375rem;
  }
  .mp-cat-nav a.active {
    border-left-color: var(--mp-orange);
    border-bottom-color: #f0f0f0;
    background: var(--mp-orange-light);
  }
  .mp-hero-slide,
  .mp-hero-slide img {
    min-height: 220px;
    height: 52vw;
    max-height: 320px;
  }
  .mp-hero-slide .overlay {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.25) 55%, transparent 100%);
    align-items: flex-end;
    padding: 1.25rem 1rem 2.5rem;
  }
  .mp-hero-slide h2 {
    font-size: 1.35rem;
  }
  .mp-hero-slide p {
    font-size: 0.875rem;
    margin-bottom: 0.85rem;
  }
  .mp-hero-arrow {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
  .mp-hero-arrow.prev {
    left: 0.5rem;
  }
  .mp-hero-arrow.next {
    right: 0.5rem;
  }
  .mp-section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .mp-section-head h2 {
    font-size: 1.25rem;
  }
  .mp-store-cta {
    padding: 1.5rem;
    text-align: center;
  }
  .mp-store-cta h2 {
    font-size: 1.35rem;
  }
  .mp-footer-pay,
  .mp-footer-cities {
    font-size: 0.7rem;
  }
  body.page-marketplace .footer-bottom {
    flex-direction: column;
    text-align: center;
    font-size: 0.8rem;
  }
  body.page-marketplace .footer-grid {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .mp-product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .product-card-v2 .body {
    padding: 0.65rem 0.75rem 0.85rem;
  }
  .product-card-v2 h3 {
    font-size: 0.8125rem;
    min-height: auto;
  }
  .product-card-v2 .btn-add {
    padding: 0.5rem;
    font-size: 0.75rem;
  }
  .mp-cat-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
  .mp-cat-tile span {
    font-size: 0.65rem;
  }
  .mp-room-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.25rem;
    margin-right: -1rem;
    padding-right: 1rem;
  }
  .mp-room-tabs button {
    flex-shrink: 0;
  }
  body.page-marketplace .strip-promo {
    grid-template-columns: 1fr;
  }
  body.page-marketplace .strip-promo img {
    max-height: 220px;
    object-fit: cover;
  }
  body.page-marketplace .shop-layout {
    display: block;
  }
  body.page-marketplace .shop-sidebar {
    margin-bottom: 1.5rem;
  }
  body.page-marketplace .shop-sidebar .btn {
    min-height: 44px;
  }
  body.page-marketplace .product-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  body.page-marketplace .product-gallery-main img {
    max-height: 70vw;
    object-fit: contain;
  }
  body.page-marketplace .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }
  body.page-marketplace .product-actions .btn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }
  body.page-marketplace .contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  body.page-marketplace .cart-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body.page-marketplace .qty-selector button {
    min-width: 44px;
    min-height: 44px;
  }
}

@media (max-width: 380px) {
  .mp-header-actions .mp-icon-btn:nth-child(1),
  .mp-header-actions .mp-icon-btn:nth-child(2) {
    display: none;
  }
  .mp-logo-img {
    height: 24px;
    min-width: 90px;
    max-width: 120px;
  }
  .mp-product-grid {
    gap: 0.5rem;
  }
}

body.page-marketplace .whatsapp-float {
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
}
