/* ── Tokopedia-like marketplace layout overrides ── */

:root {
  --font-display: "Inter", system-ui, sans-serif;
  --primary: #6B7280;
  --primary-hover: #4B5563;
  --accent: #FF5722;
  --green-soft: #9CA3AF;
  --ink: #374151;
  --ink-mid: #4B5563;
  --sidebar: #4B5563;
  --max: 75rem;
  --radius: 0.5rem;
}

body { background: #FFFFFF; }
h1, h2, h3 { font-family: var(--font); font-weight: 700; }

#store-shell { padding-bottom: 4.25rem; }
@media (min-width: 901px) { #store-shell { padding-bottom: 0; } }

.container { max-width: var(--max); }

/* Top bar */
.topbar {
  display: none;
  background: #F3F4F5;
  border-bottom: 1px solid #E5E7E9;
  font-size: 0.75rem;
}
@media (min-width: 901px) { .topbar { display: block; } }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 2rem; gap: 1rem;
}
.topbar a { color: #6D7588; }
.topbar a:hover { color: var(--primary); }
.topbar-left, .topbar-right { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Header like Tokopedia */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid #E5E7E9;
  box-shadow: 0 1px 6px rgba(0,0,0,.04);
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.5rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 901px) {
  .header-main {
    grid-template-columns: auto auto auto 1fr auto;
    min-height: 4.5rem;
    gap: 1rem;
  }
}

.logo { gap: 0.5rem; }
.logo-mark {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  background: var(--primary);
}
.logo-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.logo-sub { display: none; }

.header-links {
  display: none;
  align-items: center;
  gap: 0.85rem;
}
.header-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: #31353B;
  white-space: nowrap;
}
.header-links a:hover { color: var(--primary); }
@media (min-width: 1100px) { .header-links { display: flex; } }

.cat-trigger {
  display: none;
  align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem; font-weight: 600;
  color: #31353B;
}
.cat-trigger:hover, .cat-trigger[aria-expanded="true"] {
  background: rgba(107,114,128,.12); color: var(--primary);
}
@media (min-width: 901px) { .cat-trigger { display: inline-flex; } }

.search-form {
  display: flex; align-items: stretch;
  grid-column: 1 / -1;
  order: 3;
}
@media (min-width: 901px) {
  .search-form { grid-column: auto; order: 0; }
}
.search-input {
  flex: 1; min-width: 0;
  height: 2.5rem;
  padding: 0 0.875rem;
  border: 1px solid #BFC9D9;
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  font-size: 0.875rem;
  outline: none;
  background: #fff;
}
.search-input:focus { border-color: var(--primary); }
.search-input::placeholder { color: #9FA6B0; }
.search-btn {
  width: 3rem; height: 2.5rem;
  background: var(--primary); color: #fff;
  border-radius: 0 0.5rem 0.5rem 0;
  display: flex; align-items: center; justify-content: center;
}
.search-btn:hover { background: var(--primary-hover); }

.header-actions {
  display: flex; align-items: center; gap: 0.5rem;
  justify-self: end;
}
.ha-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
  color: #31353B;
}
.ha-icon:hover { background: #F3F4F5; }
.ha-divider {
  display: none; width: 1px; height: 1.5rem; background: #E5E7E9; margin: 0 0.25rem;
}
.ha-login, .ha-register {
  display: none;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 0;
  background: transparent;
}
.ha-login {
  color: var(--primary);
  border: 1px solid var(--primary);
}
.ha-login:hover { background: rgba(107,114,128,.08); }
.ha-register {
  background: var(--primary); color: #fff;
}
.ha-register:hover { background: var(--primary-hover); }
.ha-auth { display: none; align-items: center; gap: 0.5rem; }
.ha-auth.hidden { display: none !important; }
.ha-auth-user {
  display: none;
  align-items: center;
  gap: 0.5rem;
}
.ha-auth-user.hidden { display: none !important; }
.ha-user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.55rem 0.25rem 0.25rem;
  border-radius: 999px;
  background: #F3F4F5;
  color: #212121;
  font-size: 0.8125rem;
  font-weight: 600;
  max-width: 10rem;
}
.ha-user-av {
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700;
}
.ha-user-name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ha-logout {
  display: none;
  padding: 0.35rem 0.65rem;
  border-radius: 0.5rem;
  border: 1px solid #E5E7E9;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4B5563;
  cursor: pointer;
  font-family: inherit;
}
.ha-logout:hover { border-color: #9CA3AF; color: #111; }
@media (min-width: 901px) {
  .ha-divider, .ha-auth:not(.hidden) { display: inline-flex; }
  .ha-auth-user:not(.hidden) { display: inline-flex; }
  .ha-login, .ha-register { display: inline-flex; align-items: center; }
  .ha-logout { display: inline-flex; }
}

/* Auth modal */
.auth-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(17, 24, 39, 0.55);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(2px);
}
.auth-overlay.hidden { display: none; }
.auth-modal {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.22);
  padding: 1.5rem 1.5rem 1.35rem;
  max-height: min(92vh, 40rem);
  overflow-y: auto;
}
.auth-close {
  position: absolute; top: 0.75rem; right: 0.85rem;
  width: 2rem; height: 2rem;
  border: 0; background: transparent;
  font-size: 1.5rem; line-height: 1;
  color: #9CA3AF; cursor: pointer;
  border-radius: 0.375rem;
}
.auth-close:hover { background: #F3F4F5; color: #111; }
.auth-brand {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1.1rem;
}
.auth-brand .logo-mark {
  width: 2rem; height: 2rem; border-radius: 0.45rem;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.auth-brand strong {
  font-size: 1.05rem; font-weight: 700; color: #111;
}
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.25rem;
  padding: 0.25rem;
  background: #F3F4F5;
  border-radius: 0.65rem;
  margin-bottom: 1.25rem;
}
.auth-tab {
  border: 0;
  background: transparent;
  padding: 0.55rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #6B7280;
  cursor: pointer;
  font-family: inherit;
}
.auth-tab.active {
  background: #fff;
  color: #111;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.auth-form h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.35rem;
}
.auth-sub {
  font-size: 0.8125rem;
  color: #6B7280;
  margin: 0 0 1.15rem;
  line-height: 1.45;
}
.auth-field {
  display: block;
  margin-bottom: 0.85rem;
}
.auth-field > span {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
  width: 100%;
  height: 2.65rem;
  padding: 0 0.85rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.55rem;
  font-size: 0.875rem;
  font-family: inherit;
  background: #fff;
  color: #111;
  outline: none;
}
.auth-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(107,114,128,.18);
}
.auth-pass { position: relative; }
.auth-pass input { padding-right: 3.5rem; }
.auth-eye {
  position: absolute; right: 0.45rem; top: 50%;
  transform: translateY(-50%);
  border: 0; background: transparent;
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  padding: 0.35rem 0.45rem;
}
.auth-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 1rem;
}
.auth-check {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.75rem;
  color: #4B5563;
  cursor: pointer;
}
.auth-check input { margin-top: 0.15rem; accent-color: var(--primary); }
.auth-agree { margin: 0.25rem 0 1rem; }
.auth-link {
  border: 0; background: transparent;
  font-size: 0.75rem; font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.auth-link:hover { text-decoration: underline; }
.auth-submit {
  width: 100%;
  height: 2.75rem;
  font-weight: 700;
}
.auth-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1.1rem 0 0.85rem;
  color: #9CA3AF;
  font-size: 0.6875rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}
.auth-social {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.auth-social-btn {
  height: 2.5rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.55rem;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}
.auth-social-btn:hover { background: #F9FAFB; border-color: #9CA3AF; }
.auth-social-ico {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  display: block;
}
.auth-social-apple {
  color: #111;
}
.auth-social-apple .auth-social-ico {
  width: 1.2rem;
  height: 1.2rem;
}
.auth-foot {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.6875rem;
  color: #9CA3AF;
}
@media (max-width: 900px) {
  .ha-auth { display: none !important; }
}

/* Lifestyle advertising promo popup */
.promo-overlay {
  position: fixed;
  inset: 0;
  z-index: 1900;
  background: rgba(17, 24, 39, 0.58);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(3px);
  animation: promoFade .25s ease;
  overscroll-behavior: contain;
}
.promo-overlay.hidden { display: none; }
@keyframes promoFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.promo-popup {
  position: relative;
  width: 100%;
  max-width: 40rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 28px 70px rgba(0,0,0,.28);
  overflow: hidden;
  animation: promoPop .32s ease;
  max-height: min(94vh, 36rem);
}
.promo-popup.promo-ad {
  max-width: 52rem;
  display: grid;
  grid-template-columns: 1fr;
  max-height: min(92dvh, 40rem);
}
@keyframes promoPop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
  to { opacity: 1; transform: none; }
}
.promo-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  font-size: 1.35rem;
  line-height: 1;
  color: #4B5563;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.promo-close:hover { background: #fff; color: #111; }
.promo-ad-visual {
  position: relative;
  height: auto;
  min-height: 0;
  background: #F3F4F6;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.promo-ad-visual img {
  width: 100%;
  height: auto;
  max-height: 11rem;
  object-fit: contain;
  object-position: center;
  display: block;
}
.promo-ad-copy {
  padding: 1rem 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,87,34,.08), transparent 55%),
    #fff;
}
.promo-badge {
  display: inline-block;
  align-self: flex-start;
  background: #FF5722;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: .05em;
  padding: 0.22rem 0.5rem;
  border-radius: 0.25rem;
  margin-bottom: 0.55rem;
}
.promo-ad-copy h2 {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: #111;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.promo-lead {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #4B5563;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.promo-points {
  list-style: none;
  margin: 0 0 0.9rem;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}
.promo-points li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.75rem;
  color: #374151;
  line-height: 1.35;
}
.promo-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: #FF5722;
}
.promo-points strong { color: #111; font-weight: 700; }
.promo-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: auto;
}
.promo-actions .btn {
  width: 100%;
  min-width: 0;
  justify-content: center;
  font-weight: 700;
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
}
.promo-footnote {
  margin: 0.7rem 0 0;
  font-size: 0.625rem;
  color: #9CA3AF;
  line-height: 1.35;
  text-align: center;
}

/* Mobile: compact bottom sheet — no scroll */
@media (max-width: 767px) {
  .promo-overlay {
    align-items: flex-end;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .promo-popup,
  .promo-popup.promo-ad {
    max-width: none;
    width: 100%;
    border-radius: 1rem 1rem 0 0;
    max-height: none;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: promoSheetUp .32s ease;
  }
  @keyframes promoSheetUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
  }
  .promo-ad-visual {
    height: auto;
    max-height: none;
    background: #F3F4F6;
  }
  .promo-ad-visual img {
    width: 100%;
    height: auto;
    max-height: 9.5rem;
    object-fit: contain;
    object-position: center;
  }
  .promo-ad-copy {
    padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    flex: 0 0 auto;
    overflow: hidden;
    justify-content: flex-start;
  }
  .promo-badge {
    font-size: 0.5625rem;
    margin-bottom: 0.4rem;
    padding: 0.18rem 0.45rem;
  }
  .promo-ad-copy h2 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
  }
  .promo-lead {
    font-size: 0.75rem;
    margin: 0 0 0.55rem;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .promo-points {
    margin: 0 0 0.65rem;
    gap: 0.3rem;
  }
  .promo-points li {
    font-size: 0.6875rem;
    padding-left: 0.9rem;
    line-height: 1.3;
  }
  .promo-points li:nth-child(n+2) { display: none; }
  .promo-actions {
    gap: 0.35rem;
  }
  .promo-actions .btn {
    padding: 0.6rem 0.85rem;
    font-size: 0.8125rem;
  }
  .promo-footnote { display: none; }
}

@media (min-width: 480px) and (max-width: 767px) {
  .promo-ad-visual img { max-height: 11rem; }
  .promo-ad-copy h2 { font-size: 1.25rem; }
  .promo-lead {
    -webkit-line-clamp: 2;
    font-size: 0.8125rem;
  }
  .promo-points li:nth-child(2) { display: list-item; }
}

@media (min-width: 768px) {
  .promo-popup.promo-ad {
    grid-template-columns: 0.95fr 1.05fr;
    max-height: min(88vh, 34rem);
    display: grid;
  }
  .promo-ad-visual {
    height: auto;
    min-height: 100%;
    background: #EEF0F2;
  }
  .promo-ad-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center;
  }
  .promo-ad-copy {
    padding: 1.25rem 1.35rem 1.4rem;
    justify-content: center;
    overflow: visible;
  }
  .promo-badge {
    font-size: 0.6875rem;
    margin-bottom: 0.75rem;
  }
  .promo-ad-copy h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 0.65rem;
  }
  .promo-lead {
    font-size: 0.9rem;
    margin: 0 0 0.95rem;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
  }
  .promo-points {
    margin: 0 0 1.15rem;
    gap: 0.55rem;
  }
  .promo-points li {
    padding-left: 1.15rem;
    font-size: 0.8125rem;
  }
  .promo-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.55rem;
  }
  .promo-actions .btn {
    flex: 1;
    min-width: 8rem;
    width: auto;
  }
  .promo-footnote {
    margin: 0.9rem 0 0;
    font-size: 0.6875rem;
    text-align: left;
  }
}

.cart-badge {
  background: #FF5722;
  top: 2px; right: 2px;
}

.cat-panel {
  border-top: 1px solid #E5E7E9;
  background: #fff;
  padding: 0.75rem 0;
}
.cat-panel.hidden { display: none; }
.cat-panel-inner {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cat-panel-inner a {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #F3F4F5;
  font-size: 0.8125rem; color: #31353B;
}
.cat-panel-inner a:hover { background: rgba(107,114,128,.12); color: var(--primary); }

/* Hide legacy search/mobile menu if residual */
.search-bar, .mobile-menu, .menu-toggle, .nav-links { display: none !important; }

/* ── Home marketplace ── */
.mp-home { background: #F3F4F5; padding-bottom: 2rem; }
.mp-wrap { padding-top: 0.75rem; }
@media (min-width: 901px) { .mp-wrap { padding-top: 1.25rem; } }

.mp-banner-row {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
@media (min-width: 901px) {
  .mp-banner-row {
    grid-template-columns: 1.7fr 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
  }
}

.mp-slider {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #111;
  /* Cancel legacy .hero fixed height so aspect-ratio works on mobile */
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 5;
  max-height: none;
}
@media (min-width: 480px) {
  .mp-slider { aspect-ratio: 16 / 10; }
}
@media (min-width: 901px) {
  .mp-slider {
    aspect-ratio: 21 / 9;
    height: 100% !important;
    min-height: 280px !important;
  }
}
.mp-slider .hero-track { height: 100%; }
.mp-slider .hero-slide { height: 100%; }
.mp-slider .hero-img {
  opacity: .55;
  object-fit: cover;
  object-position: center;
}
.mp-slider .hero-grad {
  background:
    linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.55) 48%, rgba(0,0,0,.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.2) 60%, transparent 100%);
}
@media (min-width: 901px) {
  .mp-slider .hero-grad {
    background: linear-gradient(90deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.25) 55%, transparent 100%);
  }
}
.mp-slider .hero-content {
  align-items: flex-end;
  padding: 0 0.85rem 2.75rem;
  max-width: none;
  margin: 0;
  height: 100%;
}
@media (min-width: 901px) {
  .mp-slider .hero-content {
    padding: 0 1.5rem 2.5rem;
  }
}
.mp-slider .hero-inner {
  max-width: 28rem;
  width: 100%;
}
.mp-slider h1 {
  font-size: 1.25rem !important;
  margin-bottom: 0.4rem !important;
  line-height: 1.2 !important;
}
@media (min-width: 480px) {
  .mp-slider h1 { font-size: 1.45rem !important; }
}
@media (min-width: 901px) {
  .mp-slider h1 { font-size: 2rem !important; }
}
.mp-slider p {
  font-size: 0.75rem !important;
  margin-bottom: 0.65rem !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 100% !important;
  line-height: 1.4;
}
@media (min-width: 901px) {
  .mp-slider p { font-size: 0.8125rem !important; }
}
.mp-slider .hero-stats { display: none; }
.mp-slider .hero-tag {
  margin-bottom: 0.4rem;
  font-size: 0.625rem;
  padding: 0.2rem 0.55rem;
}
@media (min-width: 901px) {
  .mp-slider .hero-tag { margin-bottom: 0.5rem; font-size: 0.6875rem; }
}
.mp-slider .hero-ctas {
  gap: 0.45rem;
}
.mp-slider .btn {
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  border-radius: 0.5rem;
}
@media (min-width: 901px) {
  .mp-slider .btn { padding: 0.5rem 0.9rem; font-size: 0.8125rem; }
}
@media (max-width: 480px) {
  .mp-slider .hero-ctas .btn-ghost { display: none; }
}
.mp-slider .hero-nav {
  padding: 0 0.35rem;
}
.mp-slider .hero-btn {
  width: 2rem;
  height: 2rem;
  background: rgba(0,0,0,.35);
}
@media (max-width: 639px) {
  .mp-slider .hero-nav { display: none; }
}
@media (min-width: 901px) {
  .mp-slider .hero-btn { width: 2.25rem; height: 2.25rem; }
}
.mp-slider .hero-dots {
  bottom: 0.55rem;
  gap: 0.35rem;
}
@media (min-width: 901px) {
  .mp-slider .hero-dots { bottom: 0.75rem; }
}

/* Full-bleed slider on small phones (keep container for cards) */
@media (max-width: 640px) {
  .mp-wrap { padding-top: 0; }
  .mp-banner-row {
    margin-left: -1rem;
    margin-right: -1rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  .mp-slider { border-radius: 0; }
  .mp-side-banners {
    padding: 0 1rem;
    gap: 0.5rem;
  }
}

.mp-side-banners {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr 1fr;
}
.mp-side {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  min-height: 5.5rem;
  color: #fff;
  display: block;
  aspect-ratio: 16 / 9;
}
@media (min-width: 901px) {
  .mp-banner-row { align-items: stretch; }
  .mp-side-banners {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    min-height: 280px;
    padding: 0;
  }
  .mp-side {
    min-height: 0;
    height: 100%;
    aspect-ratio: auto;
  }
}
.mp-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  opacity: .85;
}
.mp-side span {
  position: relative;
  z-index: 1;
  padding: 0.65rem 0.75rem;
  font-weight: 700;
  font-size: 0.75rem;
  line-height: 1.25;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent 70%);
  height: 100%;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 901px) {
  .mp-side span {
    padding: 0.875rem;
    font-size: 0.875rem;
  }
}

/* Category icons — scroll on mobile, equal row on desktop */
.mp-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.875rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (min-width: 901px) { .mp-card { padding: 1rem 1.25rem; margin-bottom: 1rem; } }

.mp-cat-card { padding: 0.75rem 0.65rem 0.85rem; overflow: hidden; }
@media (min-width: 901px) {
  .mp-cat-card { padding: 1rem 1.25rem; }
}

.mp-cat-scroll {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 0.65rem 0.35rem;
  width: 100%;
  padding: 0.1rem 0.15rem 0.15rem;
}
@media (min-width: 901px) {
  .mp-cat-scroll {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 0.15rem 0;
  }
}

.mp-cat-item {
  width: auto;
  min-width: 0;
  text-align: center;
  font-size: 0.6875rem;
  color: #31353B;
  padding: 0.15rem 0.1rem;
  transition: transform .15s ease, color .15s ease;
}
@media (min-width: 901px) {
  .mp-cat-item {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 0.25rem 0.15rem;
  }
}
.mp-cat-item:hover { color: var(--primary); transform: translateY(-2px); }

.mp-cat-label {
  display: block;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.mp-cat-short { display: block; }
.mp-cat-full { display: none; }
@media (min-width: 901px) {
  .mp-cat-short { display: none; }
  .mp-cat-full {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 0.75rem;
  }
}

.mp-cat-ico {
  width: 2.75rem; height: 2.75rem;
  margin: 0 auto 0.35rem;
  border-radius: 0.8rem;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
@media (min-width: 901px) {
  .mp-cat-ico {
    width: 3rem; height: 3rem;
    margin: 0 auto 0.4rem;
    border-radius: 0.875rem;
  }
}
.mp-cat-item:hover .mp-cat-ico { box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.mp-cat-ico .icon,
.mp-cat-ico .icon svg {
  width: 1.2rem; height: 1.2rem;
  display: block;
}
@media (min-width: 901px) {
  .mp-cat-ico .icon,
  .mp-cat-ico .icon svg {
    width: 1.35rem; height: 1.35rem;
  }
}
.mp-cat-ico.cat-amber  { background: #FEF3C7; color: #D97706; }
.mp-cat-ico.cat-red    { background: #FEE2E2; color: #DC2626; }
.mp-cat-ico.cat-sky    { background: #E0F2FE; color: #0284C7; }
.mp-cat-ico.cat-orange { background: #FFEDD5; color: #EA580C; }
.mp-cat-ico.cat-violet { background: #EDE9FE; color: #7C3AED; }
.mp-cat-ico.cat-green  { background: #DCFCE7; color: #16A34A; }
.mp-cat-ico.cat-slate  { background: #E2E8F0; color: #475569; }
.mp-cat-ico.cat-teal   { background: #CCFBF1; color: #0D9488; }
.mp-cat-item strong {
  display: block;
  font-weight: 600;
  line-height: 1.25;
  word-break: break-word;
}
@media (min-width: 901px) {
  .mp-cat-ico { width: 3.5rem; height: 3.5rem; border-radius: 1rem; }
  .mp-cat-ico .icon,
  .mp-cat-ico .icon svg { width: 1.55rem; height: 1.55rem; }
  .mp-cat-item { font-size: 0.75rem; padding: 0.35rem 0.25rem; }
}

/* Section heads */
.mp-sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem; gap: 0.75rem;
}
.mp-sec-head h2 {
  font-size: 1rem; font-weight: 700; color: #212121;
  display: flex; align-items: center; gap: 0.5rem;
}
@media (min-width: 901px) { .mp-sec-head h2 { font-size: 1.125rem; } }
.mp-sec-head .link { font-size: 0.8125rem; color: var(--primary); }

.flash-tag {
  background: linear-gradient(90deg, #FF5722, #FF8A50);
  color: #fff; font-size: 0.6875rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 0.25rem;
}

/* Product grid marketplace density */
.mp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) { .mp-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 901px) { .mp-grid { grid-template-columns: repeat(5, 1fr); gap: 0.75rem; } }
@media (min-width: 1200px) { .mp-grid { grid-template-columns: repeat(6, 1fr); } }

.mp-product {
  background: #fff;
  border: 1px solid #F0F0F0;
  border-radius: 0.5rem;
  overflow: hidden;
  text-align: left;
  transition: box-shadow .15s;
  display: block;
  width: 100%;
  cursor: pointer;
}
.mp-product:hover { box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.mp-product .thumb {
  position: relative;
  aspect-ratio: 1;
  background: #F7F7F7;
  overflow: hidden;
}
.mp-product .thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.mp-product .body { padding: 0.5rem 0.6rem 0.75rem; }
.mp-product .name {
  font-size: 0.75rem; font-weight: 400; color: #31353B;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 0.35rem; min-height: 2rem;
}
.mp-product .price {
  font-size: 0.9375rem; font-weight: 700; color: #212121;
  display: block;
}
.mp-product .was {
  font-size: 0.6875rem; color: #9FA6B0; text-decoration: line-through; margin-left: 0.25rem;
}
.mp-product .meta {
  display: flex; align-items: center; gap: 0.25rem;
  margin-top: 0.35rem; font-size: 0.6875rem; color: #6D7588;
}
.mp-product .shop {
  margin-top: 0.35rem; font-size: 0.6875rem; color: #6D7588;
}
.mp-product .pill {
  top: 0.4rem; left: 0.4rem;
  font-size: 0.625rem; padding: 0.15rem 0.35rem; border-radius: 0.25rem;
}
.mp-product .btn-round { display: none; }

/* Compact other pages */
.page { background: #F3F4F5; min-height: 50vh; }
.page .container > h1,
.page-title-row h1 { font-size: 1.25rem; }
.product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; } }
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .product-grid.cols-4 { grid-template-columns: repeat(5, 1fr); }
}
.product-card .thumb { height: auto; aspect-ratio: 1; }
.product-card .name { font-weight: 400; font-size: 0.8125rem; }
.product-card .price { color: #212121; }
.card { border-radius: 0.5rem; }
.section { background: transparent; padding: 1.5rem 0; }
.eyebrow { color: var(--primary); }

.footer { margin-top: 0; }
@media (max-width: 900px) {
  .footer { padding-bottom: 0.5rem; }
  .footer-grid { gap: 1.5rem; padding: 2rem 0 1rem; }
}

/* Bottom nav mobile */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid #E5E7E9;
  padding: 0.35rem 0 calc(0.35rem + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 10px rgba(0,0,0,.04);
}
@media (min-width: 901px) { .bottom-nav { display: none; } }
.bnav-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem;
  color: #6D7588;
  font-size: 0.625rem; font-weight: 500;
  padding: 0.25rem;
  cursor: pointer;
  background: transparent;
  border: 0;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bnav-item.active { color: var(--primary); }
.bnav-item svg { stroke-width: 2; }

/* Floating Service Center chat */
.float-chat {
  position: fixed;
  right: 1rem;
  bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}
@media (min-width: 901px) {
  .float-chat { bottom: 1.5rem; right: 1.5rem; }
}
#store-shell.erp-hidden .float-chat { display: none; }
.float-chat-btn,
.float-chat-panel { pointer-events: auto; }
.float-chat-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 3.35rem;
  padding: 0 1rem 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.42);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.float-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.48);
  background: #1fbe5a;
}
.float-chat-btn-ico {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
}
.float-chat-btn-ico svg { position: absolute; inset: 0; margin: auto; transition: opacity .15s, transform .15s; }
.float-ico-close { opacity: 0; transform: rotate(-45deg) scale(.8); }
.float-chat.open .float-ico-chat { opacity: 0; transform: rotate(45deg) scale(.8); }
.float-chat.open .float-ico-close { opacity: 1; transform: none; }
.float-chat.open .float-chat-btn {
  background: #374151;
  box-shadow: 0 8px 22px rgba(55, 65, 81, 0.35);
}
.float-chat-label { letter-spacing: 0.01em; }
@media (max-width: 420px) {
  .float-chat-label { display: none; }
  .float-chat-btn { width: 3.35rem; padding: 0; justify-content: center; border-radius: 999px; }
}

.float-chat-panel {
  width: min(20.5rem, calc(100vw - 1.75rem));
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #E5E7EB;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.22);
  overflow: hidden;
  transform-origin: bottom right;
  animation: floatChatIn .22s ease;
}
.float-chat-panel.hidden { display: none; }
@keyframes floatChatIn {
  from { opacity: 0; transform: translateY(10px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.float-chat-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(135deg, #4B5563, #374151);
  color: #fff;
}
.float-chat-avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.15);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.float-chat-head strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.float-chat-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.65rem;
  opacity: .85;
  margin-top: 0.1rem;
}
.float-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #4ADE80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, .25);
}
.float-chat-x {
  margin-left: auto;
  width: 1.85rem;
  height: 1.85rem;
  border: 0;
  border-radius: 0.4rem;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.float-chat-x:hover { background: rgba(255,255,255,.22); }
.float-chat-body { padding: 0.85rem 0.9rem 1rem; }
.float-chat-hello {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: #4B5563;
  line-height: 1.45;
}
.float-chat-action {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0.4rem;
  border-radius: 0.65rem;
  border: 1px solid #E5E7EB;
  background: #F9FAFB;
  color: #111;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.float-chat-action:hover { border-color: #9CA3AF; background: #fff; }
.float-chat-action svg { flex-shrink: 0; color: #4B5563; }
.float-chat-wa {
  background: #ECFDF5;
  border-color: #A7F3D0;
  color: #065F46;
}
.float-chat-wa svg { color: #25D366; }
.float-chat-wa:hover { background: #D1FAE5; border-color: #6EE7B7; }
.float-chat-form {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.55rem;
}
.float-chat-form textarea {
  width: 100%;
  resize: none;
  border: 1px solid #D1D5DB;
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
  font: inherit;
  font-size: 0.8125rem;
  outline: none;
  background: #fff;
}
.float-chat-form textarea:focus { border-color: var(--primary); }
.float-chat-form .btn {
  width: 100%;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
}
.float-chat-note {
  margin: 0.55rem 0 0;
  font-size: 0.625rem;
  color: #9CA3AF;
  text-align: center;
  line-height: 1.35;
}

/* Buttons marketplace green */
.btn-primary { background: var(--primary); box-shadow: none; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-round { background: var(--primary); }
.btn-round:hover { background: var(--primary-hover); }
.link { color: var(--primary); }
.announce {
  background: #fff;
  color: #31353B;
  border-bottom: 1px solid #E5E7E9;
  font-weight: 400;
}
.announce code { background: rgba(107,114,128,.12); color: var(--primary); }

.van-section {
  background: #fff;
  color: var(--fg);
  margin: 0.75rem 0;
  border-radius: 0.75rem;
  padding: 1rem !important;
}
.van-section .section-head h2 { color: #212121 !important; }
.van-section .eyebrow-light { color: var(--primary); }
.van-section .link { color: var(--primary) !important; }
.van-card {
  background: #F8F8F8;
  border: 1px solid #EFEFEF;
  color: #212121;
}
.van-card:hover { background: #fff; }
.van-card .base, .van-card .van-specs span, .van-card .van-price-row .label { color: #6D7588; }
.van-card h3, .van-card .price, .van-specs strong { color: #212121; }
.van-card .view { color: var(--primary); }
.van-card .van-specs div { background: #fff; }

.newsletter {
  background: linear-gradient(135deg, #6B7280, #4B5563);
  border-radius: 0.75rem;
}

.trust-grid { gap: 0.5rem; }
.trust-item { background: #fff; border-radius: 0.75rem; padding: 1rem; }
.trust-icon { background: rgba(107,114,128,.12); color: var(--primary); }

/* Community page */
.community-page { padding-top: 0 !important; }
.community-hero {
  position: relative;
  color: #fff;
  padding: 2.25rem 0 3rem;
  margin-bottom: 1.5rem;
  min-height: 320px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 768px) {
  .community-hero { min-height: 420px; padding: 2.5rem 0 3.5rem; }
}
.community-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-hero-grad {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(17,24,39,.92) 0%, rgba(17,24,39,.62) 48%, rgba(17,24,39,.35) 100%),
    linear-gradient(to top, rgba(17,24,39,.55), transparent 45%);
}
.community-hero-inner { position: relative; z-index: 1; width: 100%; }
.community-hero .breadcrumb { margin-bottom: 1.25rem; }
.community-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #FF8A65;
  margin: 0 0 0.5rem;
}
.community-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  max-width: 20ch;
}
.community-lead {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255,255,255,.85);
  margin: 0 0 1.25rem;
}
.community-hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.community-stats { display: grid; gap: 0.85rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .community-stats { grid-template-columns: repeat(3, 1fr); } }
.community-stat {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 0.75rem; overflow: hidden; padding: 0;
}
.community-stat-img { width: 100%; height: 120px; object-fit: cover; display: block; }
.community-stat-body { padding: 0.95rem 1.05rem 1.1rem; }
.community-stat h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; color: #111; }
.community-stat p { margin: 0; font-size: 0.8125rem; color: #6B7280; line-height: 1.45; }
.community-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.15rem; }
.comm-chip {
  border: 1px solid #E5E7EB; background: #fff; color: #4B5563; border-radius: 999px;
  padding: 0.4rem 0.85rem; font-size: 0.8125rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.comm-chip:hover { border-color: #9CA3AF; color: #111; }
.comm-chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.community-grid { display: grid; gap: 1.1rem; margin-bottom: 2.5rem; }
@media (min-width: 700px) { .community-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .community-grid { grid-template-columns: repeat(3, 1fr); } }
.community-card {
  background: #fff; border: 1px solid #E5E7EB; border-radius: 0.85rem; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.community-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08); }
.community-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #E5E7EB; }
.community-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.community-card:hover .community-card-media img { transform: scale(1.04); }
.community-card-badges {
  position: absolute; left: 0.65rem; right: 0.65rem; top: 0.65rem;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0.4rem;
}
.community-card-body { padding: 1rem 1.05rem 1.1rem; display: flex; flex-direction: column; flex: 1; }
.community-type {
  display: inline-flex; align-items: center; background: rgba(17,24,39,.78); color: #fff;
  backdrop-filter: blur(4px); border-radius: 999px; padding: 0.22rem 0.55rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
}
.community-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: #111; }
.community-date { margin: 0 0 0.35rem; font-size: 0.8125rem; font-weight: 600; color: #3D7A8C; }
.community-loc { margin: 0 0 0.55rem; font-size: 0.8125rem; color: #4B5563; }
.community-desc { margin: 0 0 0.85rem; font-size: 0.8125rem; color: #6B7280; line-height: 1.45; flex: 1; }
.community-meta { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.75rem; color: #6B7280; margin-bottom: 0.85rem; }
.community-gallery-block { margin-bottom: 2.5rem; }
.community-articles-block { margin-bottom: 2.5rem; }
.community-articles-grid {
  display: grid;
  gap: 1.1rem;
}
@media (min-width: 768px) {
  .community-articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .community-articles-grid { grid-template-columns: repeat(3, 1fr); }
}
.community-article-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 0.85rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.community-article-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #E5E7EB;
  overflow: hidden;
}
.community-article-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.community-article-featured {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: #FF5722;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 0.25rem;
}
.community-article-body {
  padding: 1rem 1.05rem 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.4rem;
}
.community-article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.community-article-body h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111;
}
.community-article-body > p {
  margin: 0;
  font-size: 0.8125rem;
  color: #6B7280;
  line-height: 1.45;
  flex: 1;
}
.community-article-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
.community-article-full {
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid #E5E7EB;
}
.community-article-full p {
  margin: 0;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.55;
}
.community-article-full.hidden { display: none; }
.community-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.65rem; }
@media (min-width: 768px) { .community-gallery { grid-template-columns: repeat(3, 1fr); gap: 0.85rem; } }
.community-gal-item {
  margin: 0; position: relative; border-radius: 0.75rem; overflow: hidden; aspect-ratio: 4 / 3; background: #E5E7EB;
}
.community-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.community-gal-item:hover img { transform: scale(1.05); }
.community-gal-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.5rem 0.75rem 0.65rem;
  background: linear-gradient(to top, rgba(17,24,39,.75), transparent); color: #fff;
  font-size: 0.75rem; font-weight: 600;
}
.community-join { padding: 1.5rem !important; margin-bottom: 2rem; border: 1px solid #E5E7EB; overflow: hidden; }
.community-join-grid { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .community-join-grid { grid-template-columns: 1.15fr 0.85fr; align-items: start; } }
.community-join-photo {
  border-radius: 0.65rem; overflow: hidden; margin-bottom: 1rem; aspect-ratio: 16 / 10; background: #E5E7EB;
}
.community-join-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.community-join h2 { margin: 0 0 0.5rem; font-size: 1.35rem; font-weight: 700; }
.community-join > div > p,
.community-join-grid > div > p { color: #6B7280; font-size: 0.9rem; line-height: 1.5; margin: 0 0 1rem; }
.community-join-list { margin: 0; padding-left: 1.1rem; color: #374151; font-size: 0.875rem; line-height: 1.7; }
.community-join-form .field { margin-bottom: 0.75rem; }
.community-form-note { margin: 0.65rem 0 0; font-size: 0.6875rem; color: #9CA3AF; text-align: center; }
