/* ==========================================================================
   MeVende Storefront — store.css
   Brand: blue #0057B8 · green #7AC143 · dark #003D82
   ========================================================================== */

:root {
  --mv-blue: #0057B8;
  --mv-blue-dark: #003D82;
  --mv-green: #7AC143;
  --mv-green-dark: #5FA32E;
  --mv-white: #FFFFFF;
  --mv-bg: #F5F8FC;
  --mv-text: #1A2332;
  --mv-text-muted: #5A6577;
  --mv-border: #E2E8F0;
  --mv-card-shadow: 0 4px 16px rgba(0, 61, 130, 0.08);
  --mv-card-shadow-hover: 0 12px 32px rgba(0, 61, 130, 0.16);
  --mv-wa: #25D366;
  --mv-wa-dark: #1DA851;
  --mv-radius: 14px;
  --mv-radius-sm: 10px;
  --mv-max: 1120px;
  --mv-header-h: 68px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--mv-text);
  background: var(--mv-bg);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mv-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--mv-white);
  border-bottom: 1px solid var(--mv-border);
  box-shadow: 0 1px 0 rgba(0, 87, 184, 0.04);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--mv-header-h);
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.site-header__brand:hover {
  text-decoration: none;
}

.site-header__logo {
  height: 42px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.site-header__tagline {
  display: none;
  font-size: 0.8125rem;
  color: var(--mv-text-muted);
  max-width: 220px;
  line-height: 1.3;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 640px) {
  .site-header__tagline {
    display: block;
  }

  .site-header__logo {
    height: 44px;
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn--primary {
  background: var(--mv-blue);
  color: var(--mv-white);
  border-color: var(--mv-blue);
  box-shadow: 0 4px 14px rgba(0, 87, 184, 0.28);
}

.btn--primary:hover {
  background: var(--mv-blue-dark);
  border-color: var(--mv-blue-dark);
  color: var(--mv-white);
}

.btn--green {
  background: var(--mv-green);
  color: var(--mv-white);
  border-color: var(--mv-green);
}

.btn--green:hover {
  background: var(--mv-green-dark);
  border-color: var(--mv-green-dark);
  color: var(--mv-white);
}

.btn--outline {
  background: transparent;
  color: var(--mv-blue);
  border-color: var(--mv-blue);
}

.btn--outline:hover {
  background: rgba(0, 87, 184, 0.06);
  color: var(--mv-blue-dark);
  border-color: var(--mv-blue-dark);
}

.btn--wa {
  background: var(--mv-wa);
  color: var(--mv-white);
  border-color: var(--mv-wa);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.28);
}

.btn--wa:hover {
  background: var(--mv-wa-dark);
  border-color: var(--mv-wa-dark);
  color: var(--mv-white);
}

.btn--lg {
  padding: 14px 22px;
  font-size: 1rem;
}

.btn .lucide-icon,
.btn svg.lucide {
  flex-shrink: 0;
}

/* Lucide icons */
.lucide-icon,
svg.lucide {
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn--block {
  width: 100%;
}

.btn__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background: linear-gradient(135deg, var(--mv-blue-dark) 0%, var(--mv-blue) 55%, #0A6BCF 100%);
  color: var(--mv-white);
  overflow: hidden;
  padding: 40px 0 48px;
}

.hero::before {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 193, 67, 0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: 10%;
  bottom: -60px;
  width: 280px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(122, 193, 67, 0.2);
  border: 1px solid rgba(122, 193, 67, 0.45);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  width: fit-content;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__title span {
  color: var(--mv-green);
}

.hero__subtitle {
  margin: 0 0 20px;
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 540px;
  line-height: 1.55;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}

.hero__stat {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mv-radius-sm);
  padding: 12px 10px;
  text-align: center;
  backdrop-filter: blur(6px);
}

.hero__stat strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.hero__stat span {
  font-size: 0.72rem;
  opacity: 0.85;
}

@media (min-width: 768px) {
  .hero {
    padding: 56px 0 64px;
  }

  .hero__inner {
    grid-template-columns: 1.4fr 1fr;
    align-items: center;
  }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  padding: 36px 0 48px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.section__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mv-text);
  letter-spacing: -0.02em;
}

.section__desc {
  margin: 4px 0 0;
  color: var(--mv-text-muted);
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   Product grid & cards
   -------------------------------------------------------------------------- */

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 520px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

.product-card {
  background: var(--mv-white);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  overflow: hidden;
  box-shadow: var(--mv-card-shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mv-card-shadow-hover);
  border-color: rgba(0, 87, 184, 0.22);
}

.product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #EEF3F9;
  overflow: hidden;
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card__media img {
  transform: scale(1.04);
}

.product-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--mv-text-muted);
  font-size: 0.875rem;
  background: linear-gradient(145deg, #E8F0FA, #F5F8FC);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--mv-green);
  color: var(--mv-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(95, 163, 46, 0.35);
  letter-spacing: 0.02em;
}

.product-card__body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.product-card__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mv-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.6em;
}

.product-card__price-label {
  font-size: 0.75rem;
  color: var(--mv-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.product-card__price {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mv-blue);
  letter-spacing: -0.02em;
}

.product-card__parcel {
  margin: 0;
  font-size: 0.875rem;
  color: var(--mv-text-muted);
}

.product-card__parcel strong {
  color: var(--mv-text);
  font-weight: 700;
}

.product-card__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}

/* --------------------------------------------------------------------------
   Empty / loading / error states
   -------------------------------------------------------------------------- */

.state-box {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  background: var(--mv-white);
  border: 1px dashed var(--mv-border);
  border-radius: var(--mv-radius);
  color: var(--mv-text-muted);
}

.state-box__title {
  margin: 0 0 8px;
  color: var(--mv-text);
  font-size: 1.1rem;
  font-weight: 700;
}

.state-box__text {
  margin: 0;
  font-size: 0.9375rem;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--mv-border);
  border-top-color: var(--mv-blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 14px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Sophisticated full-screen loader (logo.png)
   -------------------------------------------------------------------------- */

.mv-loader {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  min-height: 280px;
  overflow: hidden;
}

.mv-loader--full {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 87, 184, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 80% 100%, rgba(122, 193, 67, 0.14), transparent 50%),
    linear-gradient(165deg, #f0f5fb 0%, #f7fafc 40%, #eef6ff 100%);
}

.mv-loader__glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 87, 184, 0.16) 0%, transparent 70%);
  filter: blur(8px);
  animation: mv-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}

.mv-loader__card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 360px;
  width: 100%;
  padding: 36px 28px 32px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  box-shadow:
    0 4px 6px rgba(0, 61, 130, 0.04),
    0 20px 48px rgba(0, 61, 130, 0.1);
}

.mv-loader__logo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.mv-loader__logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 18px;
  animation: mv-logo-float 2.2s ease-in-out infinite;
  filter: drop-shadow(0 6px 14px rgba(0, 61, 130, 0.18));
  background: #fff;
  padding: 8px;
  box-sizing: border-box;
}

.mv-loader__title {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--mv-text);
  letter-spacing: -0.02em;
}

.mv-loader__sub {
  margin: 0 0 20px;
  font-size: 0.875rem;
  color: var(--mv-text-muted);
  line-height: 1.45;
}

.mv-loader__bar {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: #e2eaf3;
  overflow: hidden;
  margin-bottom: 16px;
}

.mv-loader__bar-fill {
  display: block;
  height: 100%;
  width: 40%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mv-blue), var(--mv-green));
  animation: mv-bar 1.4s ease-in-out infinite;
}

.mv-loader__dots {
  display: flex;
  gap: 6px;
}

.mv-loader__dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mv-blue);
  opacity: 0.35;
  animation: mv-dot 1.2s ease-in-out infinite;
}

.mv-loader__dots span:nth-child(2) {
  animation-delay: 0.15s;
  background: #3d8fd4;
}

.mv-loader__dots span:nth-child(3) {
  animation-delay: 0.3s;
  background: var(--mv-green);
}

@keyframes mv-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes mv-logo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes mv-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes mv-dot {
  0%, 80%, 100% { transform: scale(0.75); opacity: 0.3; }
  40% { transform: scale(1.15); opacity: 1; }
}

/* Footer logo PNG */
.site-footer__logo {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  filter: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  padding: 6px 10px;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 22, 40, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--mv-white);
  width: 100%;
  max-width: 720px;
  max-height: min(92vh, 900px);
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.25s ease;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

@media (min-width: 640px) {
  .modal-overlay {
    align-items: center;
    padding: 24px;
  }

  .modal {
    border-radius: 18px;
    max-height: 90vh;
  }
}

.modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--mv-border);
  flex-shrink: 0;
}

.modal__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  padding-right: 8px;
}

.modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--mv-bg);
  color: var(--mv-text);
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}

.modal__close:hover {
  background: var(--mv-border);
}

.modal__body {
  overflow-y: auto;
  padding: 0 0 20px;
  -webkit-overflow-scrolling: touch;
}

.modal__media {
  width: 100%;
  background: #EEF3F9;
  overflow: hidden;
}

.modal__media > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
}

.modal__thumbs {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: #fff;
  border-top: 1px solid var(--mv-border);
}

.modal__thumb {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #EEF3F9;
  cursor: pointer;
}

.modal__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal__thumb.is-active {
  border-color: var(--mv-blue);
}

.modal__thumb:hover {
  border-color: var(--mv-green);
}

.modal__content {
  padding: 16px 18px 0;
}

.modal__price-block {
  background: linear-gradient(135deg, #F0F6FC, #F8FBF5);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-sm);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.modal__price-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mv-text-muted);
  margin: 0 0 4px;
}

.modal__price {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--mv-blue);
  letter-spacing: -0.02em;
}

.modal__desc {
  margin: 0 0 18px;
  color: var(--mv-text-muted);
  font-size: 0.9375rem;
  white-space: pre-wrap;
}

.modal__section-title {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mv-text);
}

/* Installment table */
.installments {
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius-sm);
  overflow: hidden;
  margin-bottom: 16px;
}

.installments__row {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 11px 12px;
  border: none;
  border-bottom: 1px solid var(--mv-border);
  background: var(--mv-white);
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
  color: var(--mv-text);
  transition: background 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.installments__row:last-child {
  border-bottom: none;
}

.installments__row:hover {
  background: #F7FAFD;
}

.installments__row.is-selected {
  background: rgba(0, 87, 184, 0.08);
  box-shadow: inset 3px 0 0 var(--mv-blue);
}

.installments__row.is-selected .installments__n {
  background: var(--mv-blue);
  color: var(--mv-white);
}

.installments__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--mv-bg);
  font-weight: 800;
  font-size: 0.8125rem;
  color: var(--mv-blue);
}

.installments__parcel {
  font-weight: 700;
}

.installments__total {
  text-align: right;
  color: var(--mv-text-muted);
  font-size: 0.8125rem;
}

.installments__head {
  display: grid;
  grid-template-columns: 64px 1fr 1fr;
  gap: 8px;
  padding: 8px 12px;
  background: var(--mv-bg);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mv-text-muted);
  border-bottom: 1px solid var(--mv-border);
}

.installments__head span:last-child {
  text-align: right;
}

.modal__notes {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.note {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--mv-radius-sm);
  font-size: 0.8125rem;
  line-height: 1.45;
  background: #F0F6FC;
  color: var(--mv-text-muted);
  border-left: 3px solid var(--mv-blue);
}

.note--green {
  background: #F3FAEC;
  border-left-color: var(--mv-green);
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 18px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--mv-blue-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 36px 0 24px;
  margin-top: auto;
}

.site-footer a {
  color: var(--mv-white);
}

.site-footer__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }
}

.site-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
  /* invert wordmark for dark footer via filter if needed — logo has colors */
  filter: brightness(1.15);
}

.site-footer__brand-text {
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.9;
  max-width: 360px;
  margin: 0 0 12px;
}

.site-footer__heading {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--mv-white);
}

.site-footer__wa {
  margin-top: 4px;
}

.site-footer__bottom {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
}

.site-footer__meempresta {
  font-size: 0.85rem;
  opacity: 0.9;
}

.site-footer__meempresta strong {
  color: var(--mv-green);
}

/* --------------------------------------------------------------------------
   Floating WhatsApp
   -------------------------------------------------------------------------- */

.fab-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mv-wa);
  color: var(--mv-white);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  border: none;
  transition: transform 0.18s ease, background 0.18s ease;
  text-decoration: none;
}

.fab-wa:hover {
  transform: scale(1.06);
  background: var(--mv-wa-dark);
  text-decoration: none;
}

.fab-wa svg,
.fab-wa .lucide-icon {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.modal-open {
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#main {
  flex: 1;
}

/* --------------------------------------------------------------------------
   Product page (dedicated)
   -------------------------------------------------------------------------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 20px 0 18px;
  font-size: 0.875rem;
  color: var(--mv-text-muted);
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mv-blue);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

.breadcrumb__sep {
  display: inline-flex;
  opacity: 0.5;
}

.breadcrumb__current {
  color: var(--mv-text);
  font-weight: 600;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-page {
  padding-bottom: 48px;
}

.product-page__grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .product-page__grid {
    grid-template-columns: 1.05fr 1fr;
    gap: 40px;
    align-items: start;
  }
}

.product-page__gallery {
  background: var(--mv-white);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  overflow: hidden;
  box-shadow: var(--mv-card-shadow);
}

.product-page__main-img {
  aspect-ratio: 4 / 3;
  background: #EEF3F9;
}

.product-page__main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__placeholder {
  height: 100%;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mv-text-muted);
}

.product-page__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  border-top: 1px solid var(--mv-border);
}

.product-page__thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #EEF3F9;
  cursor: pointer;
}

.product-page__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-page__thumb.is-active {
  border-color: var(--mv-blue);
}

.product-page__thumb:hover {
  border-color: var(--mv-green);
}

.product-page__info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mv-blue);
  text-decoration: none;
  width: fit-content;
}

.back-link:hover {
  text-decoration: underline;
}

.product-page__title {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  line-height: 1.25;
  color: var(--mv-text);
}

.product-page__price-block {
  background: linear-gradient(135deg, #F0F6FC, #F8FBF5);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  padding: 16px 18px;
}

.product-page__price-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mv-text-muted);
}

.product-page__price {
  margin: 6px 0 0;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--mv-blue);
  line-height: 1.15;
}

.product-page__price-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: var(--mv-green-dark);
}

.product-page__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mv-text);
}

.product-page__desc p {
  margin: 0;
  color: var(--mv-text-muted);
  line-height: 1.6;
}

.installments--page {
  margin-bottom: 10px;
}

.note--muted {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 0.85rem;
  color: var(--mv-text-muted);
}

.product-page__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
  position: sticky;
  bottom: 12px;
  z-index: 5;
}

@media (min-width: 900px) {
  .product-page__actions {
    position: static;
  }
}

/* Product card link layout */
.product-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card__link:hover {
  text-decoration: none;
}

.product-card__photos {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(26, 35, 50, 0.72);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  z-index: 2;
}

.condition-badge__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge "Até Nx" um pouco menor para equilibrar o layout */
.product-card__badge {
  font-size: 0.68rem;
  padding: 4px 8px;
  gap: 3px;
}

.product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-card__price-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.product-card__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--mv-text-muted);
  font-size: 0.85rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.hero__stat-icon {
  color: var(--mv-green);
  margin-bottom: 4px;
}

.section__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer__heading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-footer__meempresta,
.site-footer__bottom span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.state-box .lucide-icon,
.state-box svg.lucide {
  color: var(--mv-blue);
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Catalog (produtos.php)
   -------------------------------------------------------------------------- */

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 20px;
}

.btn--ghost {
  background: transparent;
  border-color: transparent;
  color: var(--mv-text-muted);
  box-shadow: none;
}
.btn--ghost:hover {
  background: rgba(0, 87, 184, 0.06);
  color: var(--mv-blue);
}

.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.pill--blue {
  background: #e8f1fb;
  color: var(--mv-blue-dark);
}
.pill--green {
  background: #eef8e6;
  color: #3d6b1c;
}

/* Badge de condição: Novo / Usado / Seminovo (compacto) */
.condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}

.condition-badge .lucide-icon,
.condition-badge svg.lucide {
  width: 10px !important;
  height: 10px !important;
  flex-shrink: 0;
}

/* Card: canto inferior direito da foto (Até Nx fica no topo) */
.condition-badge--media {
  position: absolute;
  bottom: 10px;
  right: 10px;
  top: auto;
  left: auto;
  z-index: 2;
  max-width: calc(100% - 20px);
}

/* Página do produto: canto inferior esquerdo da foto principal */
.condition-badge--page {
  position: absolute;
  bottom: 12px;
  left: 12px;
  top: auto;
  right: auto;
  z-index: 2;
  font-size: 0.68rem;
  padding: 4px 9px;
  max-width: 55%;
}

.condition-badge--inline {
  box-shadow: none;
  font-size: 0.65rem;
  padding: 3px 8px;
  max-width: none;
}

/* Novo — verde MeVende */
.condition-badge--new {
  background: linear-gradient(135deg, #7ac143, #5fa32e);
  color: #fff;
}

/* Usado — cinza/azul escuro */
.condition-badge--used {
  background: linear-gradient(135deg, #4a5568, #2d3748);
  color: #fff;
}

/* Seminovo — azul da marca */
.condition-badge--seminew {
  background: linear-gradient(135deg, #0057b8, #003d82);
  color: #fff;
}

/* Recondicionado — âmbar */
.condition-badge--refurb {
  background: linear-gradient(135deg, #e6a817, #c48a0a);
  color: #1a2332;
}

/* Outro tipo cadastrado */
.condition-badge--other {
  background: #e8f1fb;
  color: var(--mv-blue-dark);
  box-shadow: none;
}

.product-page__main-img {
  position: relative;
}

.product-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.catalog-hero {
  background: linear-gradient(135deg, #003D82 0%, #0057B8 55%, #0a6fd4 100%);
  color: #fff;
  padding: 8px 0 28px;
  margin-bottom: 0;
}

.catalog-hero .breadcrumb__link {
  color: rgba(255, 255, 255, 0.9);
}
.catalog-hero .breadcrumb__current {
  color: #fff;
}
.catalog-hero .breadcrumb__sep {
  opacity: 0.7;
  color: #fff;
}

.catalog-hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.catalog-hero__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
}

.catalog-hero__sub {
  margin: 0;
  opacity: 0.9;
  max-width: 520px;
  line-height: 1.5;
}

.catalog__filters-toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.catalog__filters-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
}

@media (min-width: 960px) {
  .catalog__filters-toggle {
    display: none;
  }
}

.catalog__layout {
  display: grid;
  gap: 24px;
  padding: 24px 16px 48px;
  align-items: start;
}

@media (min-width: 960px) {
  .catalog__layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 28px;
    padding-top: 28px;
  }
}

.catalog__sidebar {
  background: var(--mv-white);
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  box-shadow: var(--mv-card-shadow);
  padding: 16px;
  position: sticky;
  top: calc(var(--mv-header-h) + 12px);
}

.catalog__sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mv-border);
}

.catalog__sidebar-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 1rem;
}

.filter-block {
  padding: 14px 0;
  border-bottom: 1px solid var(--mv-border);
}
.filter-block:last-of-type {
  border-bottom: 0;
}

.filter-block__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mv-text-muted);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}
.filter-option:hover {
  background: var(--mv-bg);
}
.filter-option input {
  accent-color: var(--mv-blue);
}
.filter-option__label {
  flex: 1;
}
.filter-option__count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--mv-text-muted);
  background: var(--mv-bg);
  padding: 2px 7px;
  border-radius: 999px;
}

.filter-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mv-border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--mv-text);
}
.filter-input:focus {
  outline: none;
  border-color: var(--mv-blue);
  box-shadow: 0 0 0 3px rgba(0, 87, 184, 0.12);
}
.filter-input--sm {
  padding: 8px 10px;
  min-width: 150px;
}

.filter-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.filter-mini-label {
  display: block;
  font-size: 0.75rem;
  color: var(--mv-text-muted);
  margin-bottom: 4px;
}
.filter-hint {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: var(--mv-text-muted);
}
.filter-empty {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mv-text-muted);
}

.catalog__apply-mobile {
  margin-top: 12px;
}
@media (min-width: 960px) {
  .catalog__apply-mobile {
    display: none;
  }
}

.catalog__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.catalog__count {
  margin: 0;
  color: var(--mv-text-muted);
  font-size: 0.95rem;
}
.catalog__count strong {
  color: var(--mv-text);
  font-size: 1.1rem;
}
.catalog__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--mv-text-muted);
}
.catalog__sort span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.catalog__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  min-height: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--mv-border);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mv-text);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--mv-blue);
  color: var(--mv-blue);
}

.product-grid--catalog {
  min-height: 200px;
}

.state-box--wide {
  grid-column: 1 / -1;
}

/* Mobile filters drawer */
@media (max-width: 959px) {
  .catalog__sidebar {
    position: fixed;
    z-index: 120;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(340px, 92vw);
    border-radius: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.18);
  }
  .catalog--filters-open .catalog__sidebar {
    transform: translateX(0);
  }
  .catalog__backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    background: rgba(15, 23, 42, 0.45);
    border: 0;
    padding: 0;
    cursor: pointer;
  }
  .catalog__backdrop[hidden] {
    display: none !important;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mv-border);
  border-radius: var(--mv-radius);
  overflow: hidden;
  box-shadow: var(--mv-card-shadow);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.product-card:hover {
  box-shadow: var(--mv-card-shadow-hover);
  transform: translateY(-2px);
}
.product-card__body {
  flex: 1;
  padding: 14px 16px 8px;
}
.product-card__actions {
  padding: 8px 16px 16px;
}


