:root {
  --mono-market-primary: #ff3d1f;
  --mono-market-primary-dark: #df2a0c;
  --mono-market-primary-soft: #fff0ec;
  --mono-market-success: #238636;
  --mono-market-success-soft: #eaf7ed;
  --mono-market-dark: #202a31;
  --mono-market-text: #263238;
  --mono-market-muted: #74808a;
  --mono-market-bg: #f5f7f9;
  --mono-market-surface: #ffffff;
  --mono-market-border: #e6eaee;
  --mono-market-warning: #ffc928;
  --mono-market-radius-sm: 10px;
  --mono-market-radius: 16px;
  --mono-market-radius-lg: 22px;
  --mono-market-shadow-sm: 0 4px 16px rgba(25, 35, 45, .06);
  --mono-market-shadow: 0 14px 34px rgba(25, 35, 45, .09);
  --mono-market-container: 1320px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--mono-market-text);
  background: var(--mono-market-bg);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

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

/* Header */
.market-navbar {
  min-height: 76px;
  border-bottom: 1px solid rgba(32, 42, 49, .06);
  box-shadow: 0 4px 18px rgba(32, 42, 49, .05) !important;
}

.market-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  color: var(--mono-market-primary);
}

.market-brand-logo {
  width: auto;
  height: 40px;
  object-fit: contain;
}

.market-brand-name {
  color: var(--mono-market-primary);
  font-weight: 800;
  letter-spacing: -.35px;
}

.market-navbar-search {
  width: min(430px, 100%);
  margin-inline: auto;
}

.market-navbar-search .input-group {
  min-height: 44px;
  background: #f6f7f8;
  border: 1px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  transition: .2s ease;
}

.market-navbar-search .input-group:focus-within {
  background: #fff;
  border-color: rgba(255, 61, 31, .28);
  box-shadow: 0 0 0 4px rgba(255, 61, 31, .08);
}

.market-navbar-search .form-control,
.market-navbar-search .btn {
  background: transparent !important;
}

.market-navbar .nav-link {
  color: #414b52;
  font-size: .92rem;
  transition: color .18s ease;
}

.market-navbar .nav-link:hover,
.market-navbar .nav-link:focus {
  color: var(--mono-market-primary);
}

.market-login-btn,
.market-logout-btn {
  border-radius: 10px;
}

.market-cart-button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--mono-market-dark);
  background: transparent;
  transition: background .18s ease, color .18s ease;
}

.market-cart-button:hover {
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
}

.market-cart-button .fa-shopping-basket {
  font-size: 1.28rem;
}

/* Flash messages */
.alert-floating {
  position: fixed;
  top: 92px;
  right: 20px;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 40px));
  border: 0;
  border-radius: 12px;
  box-shadow: var(--mono-market-shadow);
}

/* Main */
.market-main {
  padding-top: 32px;
  padding-bottom: 24px;
}

.market-home {
  padding-top: 0;
  padding-bottom: 0;
}

/* Hero */
.market-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 250px;
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 82% 12%, rgba(255,255,255,.15), transparent 24%),
    linear-gradient(135deg, var(--mono-market-primary) 0%, #ef3517 52%, var(--mono-market-primary-dark) 100%);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: 0 18px 38px rgba(255, 61, 31, .17);
}

.market-hero::after {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  bottom: -120px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  z-index: -1;
}

.market-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: .65rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  color: #3b4044;
  background: #fff;
  font-size: .72rem;
  font-weight: 800;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}

.market-hero-title {
  max-width: 660px;
  margin-bottom: .6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1.3px;
}

.market-hero-description {
  max-width: 700px;
  margin-bottom: 1.35rem;
  color: rgba(255,255,255,.82);
  font-size: .96rem;
}

.market-hero-search {
  max-width: 690px;
  min-height: 52px;
  overflow: hidden;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 9px 24px rgba(111, 24, 6, .14);
}

.market-hero-search .input-group-text,
.market-hero-search .form-control {
  border: 0;
  background: transparent;
}

.market-hero-search .form-control:focus {
  box-shadow: none;
}

.market-hero-search .btn {
  min-width: 112px;
  border: 0;
  background: #d94443;
  font-weight: 800;
}

.market-hero-search .btn:hover {
  background: #c73b3a;
}

.market-hero-icon {
  font-size: 5.2rem;
  color: rgba(255,255,255,.22);
}

/* Sections */
.market-section {
  margin-bottom: 3rem;
}

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

.section-heading {
  margin: 0;
  color: #2c3439;
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -.45px;
}

.market-see-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mono-market-primary);
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
}

.market-see-all:hover {
  color: var(--mono-market-primary-dark);
}

/* Category bubbles */
.categories-bubble-wrapper {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  padding: .3rem .15rem .8rem;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.categories-bubble-wrapper::-webkit-scrollbar {
  display: none;
}

.bubble-item {
  min-width: 82px;
  max-width: 90px;
  text-align: center;
  text-decoration: none !important;
  scroll-snap-align: start;
}

.bubble-img {
  display: block;
  width: 70px;
  height: 70px;
  margin: 0 auto .5rem;
  object-fit: cover;
  background: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: var(--mono-market-shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

.bubble-item:hover .bubble-img {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 22px rgba(25,35,45,.12);
}

.bubble-title {
  display: block;
  overflow: hidden;
  color: #384149;
  font-size: .76rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Promo banner */
.market-promo {
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #202a31, #303b42);
  border: 0;
  border-radius: var(--mono-market-radius);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-promo-copy {
  padding: 2rem 2.4rem;
}

.market-promo-label {
  display: inline-block;
  padding: .3rem .55rem;
  margin-bottom: .75rem;
  border-radius: 7px;
  color: #2b2b2b;
  background: var(--mono-market-warning);
  font-size: .67rem;
  font-weight: 800;
}

.market-promo-title {
  margin-bottom: .35rem;
  font-size: 1.42rem;
  font-weight: 800;
}

.market-promo-description {
  margin-bottom: 1.1rem;
  color: rgba(255,255,255,.58);
  font-size: .86rem;
}

.market-promo-image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  padding: 1rem;
}

.market-promo-image {
  width: 100%;
  max-width: 390px;
  max-height: 230px;
  object-fit: contain;
}

/* Product cards */
.market-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(224,229,233,.72);
  border-radius: 15px;
  box-shadow: 0 4px 14px rgba(25,35,45,.04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.market-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,61,31,.16);
  box-shadow: 0 14px 28px rgba(25,35,45,.09);
}

.market-card-img-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.market-card-img {
  width: 100%;
  height: 100%;
  padding: .85rem;
  object-fit: contain;
  transition: transform .22s ease;
}

.market-card:hover .market-card-img {
  transform: scale(1.025);
}

.market-card-body {
  min-height: 132px;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: .9rem;
  border-top: 1px solid #f2f4f5;
}

.market-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: .55rem;
  color: #313a40;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.market-card-title:hover {
  color: var(--mono-market-primary);
}

.price-old {
  display: block;
  min-height: 16px;
  color: #9ca5ab;
  font-size: .69rem;
  text-decoration: line-through;
}

.price-current {
  color: var(--mono-market-success);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.25px;
}

.btn-add-quick {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
  border: 0;
  border-radius: 50%;
  text-decoration: none;
  transition: .18s ease;
}

.btn-add-quick:hover {
  color: #fff;
  background: var(--mono-market-success);
  transform: scale(1.05);
}

.badge-off {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  padding: .28rem .5rem;
  color: #fff;
  background: var(--mono-market-primary);
  border-radius: 7px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .2px;
}

/* Secondary category cards */
.market-category-card {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem .65rem;
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid rgba(224,229,233,.72);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(25,35,45,.04);
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.market-category-card:hover {
  transform: translateY(-3px);
  color: var(--mono-market-primary);
  border-color: rgba(255,61,31,.16);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-category-card-image {
  width: 56px;
  height: 56px;
  margin-bottom: .55rem;
  object-fit: cover;
  border-radius: 50%;
}

.market-category-card-title {
  width: 100%;
  overflow: hidden;
  font-size: .78rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-empty-state {
  padding: 2rem 1rem;
  color: var(--mono-market-muted);
  text-align: center;
}

/* Offcanvas cart */
#carrinhoLateral {
  width: 420px;
  max-width: 94vw;
  border: 0;
  border-radius: 20px 0 0 20px;
}

#carrinhoLateral .offcanvas-header {
  padding: 1.1rem 1.25rem;
}

#carrinho_html {
  max-height: calc(100vh - 205px);
  overflow-y: auto;
  padding: 1rem;
}

#carrinho_html .unit,
#carrinho_html .cart-inline-item,
#carrinho_html .carrinho-item,
#carrinho_html table,
#carrinho_html tbody,
#carrinho_html tr {
  display: block;
  width: 100%;
}

#carrinho_html .unit-body,
#carrinho_html div[class*='cart-inline'] {
  margin-bottom: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.035);
}

#carrinho_html img {
  width: 65px !important;
  height: 65px !important;
  object-fit: cover;
  border-radius: 9px;
}

#carrinho_html a,
#carrinho_html .cart-inline-title {
  color: var(--mono-market-dark);
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

#carrinho_html .price,
#carrinho_html span[class*='price'] {
  color: var(--mono-market-primary);
  font-weight: 800;
}

.market-cart-footer {
  padding: 1rem;
  background: #f8f9fa;
  border-top: 1px solid var(--mono-market-border);
}

.market-cart-total-value {
  color: var(--mono-market-primary);
}

.market-cart-checkout {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--mono-market-primary);
  border-color: var(--mono-market-primary);
  border-radius: 11px;
  font-weight: 800;
}

.market-cart-checkout:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
  border-color: var(--mono-market-primary-dark);
}

/* Mobile cart FAB */
.fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 1050;
}

.market-fab-button {
  position: relative;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--mono-market-primary);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 11px 26px rgba(255,61,31,.27);
}

/* Footer */
.market-footer {
  margin-top: 3.5rem;
  padding: 2.75rem 0 1.35rem;
  color: var(--mono-market-text);
  background: #fff;
  border-top: 1px solid var(--mono-market-border);
}

.market-footer-brand {
  height: 30px;
  width: auto;
  margin-bottom: .75rem;
  object-fit: contain;
}

.market-footer-description {
  max-width: 390px;
  color: var(--mono-market-muted);
  font-size: .84rem;
  line-height: 1.6;
}

.footer-title {
  margin-bottom: .9rem;
  color: #30383d;
  font-size: .9rem;
  font-weight: 800;
}

.footer-links,
.footer-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a,
.footer-contact-list a,
.footer-contact-list li {
  color: #737d85;
  font-size: .82rem;
  line-height: 1.55;
  text-decoration: none;
}

.footer-links a {
  display: block;
  margin-bottom: .45rem;
}

.footer-links a:hover,
.footer-contact-list a:hover {
  color: var(--mono-market-primary);
}

.footer-contact-list li {
  margin-bottom: .45rem;
}

.footer-contact-list i {
  width: 19px;
  color: var(--mono-market-primary);
}

.market-module-switch {
  margin-top: .8rem;
  border-radius: 10px;
  font-size: .77rem;
}

.market-payment-icons {
  display: flex;
  gap: .65rem;
  color: #77828a;
  font-size: 1.25rem;
}

.market-footer-bottom {
  padding-top: .4rem;
  color: #8a9399;
  font-size: .77rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 991.98px) {
  .market-navbar {
    min-height: 68px;
  }

  .market-navbar .navbar-collapse {
    padding: .8rem 0 1rem;
  }

  .market-navbar-search {
    width: 100%;
    margin: .5rem 0 .85rem;
  }

  .market-navbar .navbar-nav {
    align-items: stretch !important;
    gap: .15rem;
  }

  .market-cart-nav-item {
    margin-left: 0 !important;
    margin-top: .25rem;
  }

  .market-hero {
    padding: 2rem 1.4rem;
  }
}

@media (max-width: 767.98px) {
  .market-main {
    padding-top: 18px;
  }

  .market-hero {
    min-height: auto;
    margin-bottom: 1.65rem;
    padding: 1.65rem 1.1rem;
    border-radius: 18px;
  }

  .market-hero-title {
    font-size: 1.85rem;
  }

  .market-hero-description {
    font-size: .86rem;
  }

  .market-hero-search {
    min-height: 48px;
  }

  .market-hero-search .btn {
    min-width: 82px;
    padding-inline: .8rem;
    font-size: .8rem;
  }

  .market-section {
    margin-bottom: 2rem;
  }

  .section-heading {
    font-size: 1.05rem;
  }

  .bubble-img {
    width: 62px;
    height: 62px;
  }

  .bubble-item {
    min-width: 72px;
  }

  .market-promo-copy {
    padding: 1.4rem 1.25rem .6rem;
    text-align: center;
  }

  .market-promo-image-wrap {
    min-height: 160px;
  }

  .market-promo-image {
    max-height: 180px;
  }

  .market-card-body {
    min-height: 120px;
    padding: .78rem;
  }

  .market-card-title {
    font-size: .79rem;
  }

  .price-current {
    font-size: .92rem;
  }

  .market-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
  }
}

@media (max-width: 420px) {
  body .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .market-brand-name {
    display: none;
  }

  .market-card-img {
    padding: .6rem;
  }
}

/* =========================================================
   Página de Categorias
   ========================================================= */

.market-page {
  padding-bottom: .5rem;
}

.market-page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin-bottom: 2rem;
  padding: 2.25rem 2rem;
  color: #fff;
  background:
    radial-gradient(circle at 88% 10%, rgba(255,255,255,.08), transparent 24%),
    linear-gradient(135deg, #202a31 0%, #2b363d 100%);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-page-hero::after {
  content: '';
  position: absolute;
  right: -55px;
  bottom: -100px;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background: rgba(255,255,255,.045);
  z-index: -1;
}

.market-page-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .75rem;
  padding: .4rem .78rem;
  border-radius: 999px;
  color: #fff;
  background: var(--mono-market-primary);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.market-page-title {
  margin: 0 0 .55rem;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
}

.market-page-description {
  max-width: 690px;
  margin: 0;
  color: rgba(255,255,255,.75);
  font-size: .96rem;
  line-height: 1.65;
}

.market-page-hero-icon {
  width: 118px;
  height: 118px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 28px;
  color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.04);
  font-size: 3.7rem;
  transform: rotate(-3deg);
}

.market-category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: var(--mono-market-surface);
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius);
  box-shadow: var(--mono-market-shadow-sm);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

.market-category-card:hover {
  color: inherit;
  transform: translateY(-5px);
  border-color: rgba(255, 61, 31, .18);
  box-shadow: var(--mono-market-shadow);
}

.market-category-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.45 / 1;
  overflow: hidden;
  background: #f4f6f7;
}

.market-category-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .32s ease;
}

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

.market-category-body {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: 1rem 1rem 1rem 1.05rem;
}

.market-category-content {
  min-width: 0;
}

.market-category-title {
  margin: 0 0 .22rem;
  overflow: hidden;
  color: var(--mono-market-text);
  font-size: .98rem;
  line-height: 1.3;
  font-weight: 800;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.market-category-subtitle {
  display: block;
  color: var(--mono-market-muted);
  font-size: .76rem;
  font-weight: 500;
}

.market-category-arrow {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
  border-radius: 12px;
  font-size: .82rem;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease;
}

.market-category-card:hover .market-category-arrow {
  color: #fff;
  background: var(--mono-market-primary);
  transform: translateX(2px);
}

.market-empty-state {
  max-width: 680px;
  margin: 1.5rem auto 0;
  padding: 3.25rem 1.5rem;
  text-align: center;
  background: var(--mono-market-surface);
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-empty-state-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 20px;
  font-size: 1.7rem;
}

.market-empty-state h2 {
  margin-bottom: .45rem;
  color: var(--mono-market-text);
  font-size: 1.15rem;
  font-weight: 800;
}

.market-empty-state p {
  max-width: 480px;
  margin: 0 auto 1.15rem;
  color: var(--mono-market-muted);
  font-size: .88rem;
  line-height: 1.6;
}

.market-empty-state-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--mono-market-primary);
  font-size: .85rem;
  font-weight: 800;
  text-decoration: none;
}

.market-empty-state-link:hover {
  color: var(--mono-market-primary-dark);
}

@media (max-width: 767.98px) {
  .market-page-hero {
    padding: 1.65rem 1.35rem;
    margin-bottom: 1.5rem;
    border-radius: 18px;
  }

  .market-page-title {
    font-size: 1.85rem;
  }

  .market-page-description {
    font-size: .88rem;
  }

  .market-category-image-wrap {
    aspect-ratio: 1.18 / 1;
  }

  .market-category-body {
    min-height: 76px;
    padding: .85rem;
  }

  .market-category-title {
    font-size: .88rem;
  }

  .market-category-subtitle {
    font-size: .7rem;
  }

  .market-category-arrow {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
    border-radius: 10px;
  }
}

@media (max-width: 420px) {
  .market-category-body {
    align-items: flex-start;
  }

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

/* =========================================================
   Produtos / listagem
   ========================================================= */

.market-products-page,
.market-product-detail-page {
  padding: 1rem 0 2rem;
}

.market-info-banner {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.6rem;
  padding: .95rem 1rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-left: 4px solid #4299e1;
  border-radius: 15px;
  box-shadow: var(--mono-market-shadow-sm);
}

.market-info-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3182ce;
  background: #ebf8ff;
  border-radius: 12px;
}

.market-info-banner strong,
.market-info-banner span {
  display: block;
}

.market-info-banner strong {
  color: var(--mono-market-text);
  font-size: .88rem;
  font-weight: 800;
}

.market-info-banner span {
  margin-top: .1rem;
  color: var(--mono-market-muted);
  font-size: .78rem;
  line-height: 1.45;
}

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

.market-eyebrow {
  display: block;
  margin-bottom: .35rem;
  color: var(--mono-market-primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.market-products-heading h1 {
  margin: 0 0 .25rem;
  color: var(--mono-market-text);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.7px;
}

.market-products-heading h1 span {
  color: var(--mono-market-primary);
}

.market-products-heading p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .85rem;
}

.market-outline-link,
.market-mini-cart-link,
.market-back-link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
}

.market-outline-link {
  flex: 0 0 auto;
  padding: .68rem .9rem;
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 12px;
}

.market-outline-link:hover {
  color: var(--mono-market-primary);
  border-color: rgba(255,61,31,.3);
}

.market-category-nav {
  margin-bottom: 1.6rem;
}

.market-category-nav-label {
  margin-bottom: .55rem;
  color: var(--mono-market-muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.market-category-pills {
  display: flex;
  gap: .55rem;
  overflow-x: auto;
  padding: .05rem 0 .6rem;
  scrollbar-width: thin;
}

.market-category-pill {
  flex: 0 0 auto;
  padding: .52rem .9rem;
  color: #56616b;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 999px;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 700;
  transition: all .2s ease;
}

.market-category-pill:hover,
.market-category-pill.active {
  color: #fff;
  background: var(--mono-market-primary);
  border-color: var(--mono-market-primary);
}

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

.market-product-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius);
  box-shadow: var(--mono-market-shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.market-product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,61,31,.16);
  box-shadow: var(--mono-market-shadow);
}

.market-product-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / .88;
  padding: 1rem;
  background: #f8fafb;
  overflow: hidden;
}

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

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

.market-product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: .95rem;
}

.market-product-card-copy {
  flex: 1;
}

.market-product-name {
  display: -webkit-box;
  min-height: 2.45em;
  overflow: hidden;
  color: var(--mono-market-text);
  text-decoration: none;
  font-size: .88rem;
  line-height: 1.35;
  font-weight: 750;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.market-product-price-row {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  margin-top: .75rem;
}

.market-product-price-row strong {
  color: var(--mono-market-success);
  font-size: 1.15rem;
  font-weight: 850;
}

.market-product-price-row span {
  color: var(--mono-market-muted);
  font-size: .72rem;
  font-weight: 650;
}

.market-product-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: .9rem;
}

.market-quantity-control {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  padding: .24rem;
  background: #f5f7f8;
  border: 1px solid var(--mono-market-border);
  border-radius: 999px;
}

.market-quantity-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 50%;
  font-size: .72rem;
  transition: all .18s ease;
}

.market-quantity-btn:hover {
  color: var(--mono-market-primary);
  border-color: rgba(255,61,31,.32);
}

.market-quantity-btn-plus {
  color: #fff;
  background: var(--mono-market-primary);
  border-color: var(--mono-market-primary);
}

.market-quantity-btn-plus:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
  border-color: var(--mono-market-primary-dark);
}

.market-quantity-input {
  width: 48px;
  padding: 0;
  color: var(--mono-market-text);
  background: transparent;
  border: 0;
  outline: 0;
  text-align: center;
  font-size: .9rem;
  font-weight: 800;
  opacity: 1;
}

.market-quantity-input:disabled {
  color: var(--mono-market-text);
  -webkit-text-fill-color: var(--mono-market-text);
  opacity: 1;
}

.market-product-loader {
  display: none;
  width: 22px;
  height: 22px;
  margin-left: .55rem;
  border: 3px solid #e9edef;
  border-top-color: var(--mono-market-primary);
  border-radius: 50%;
  animation: marketSpin .55s linear infinite;
}

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

/* =========================================================
   Produto / detalhe
   ========================================================= */

.market-detail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}

.market-back-link {
  color: var(--mono-market-muted);
}

.market-back-link:hover {
  color: var(--mono-market-primary);
}

.market-mini-cart-link {
  padding: .55rem .75rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 10px;
}

.market-mini-cart-link:hover {
  color: var(--mono-market-primary-dark);
}

.market-product-detail-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow);
}

.market-product-detail-image {
  min-height: 500px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.25rem;
  background:
    radial-gradient(circle at center, #fff 0%, #f8fafb 70%);
}

.market-product-detail-image img {
  width: 100%;
  max-width: 470px;
  max-height: 440px;
  object-fit: contain;
}

.market-product-detail-content {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.market-product-detail-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .8rem;
  padding: .4rem .7rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.market-product-detail-content h1 {
  margin: 0 0 .8rem;
  color: var(--mono-market-text);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -.8px;
}

.market-product-detail-price {
  display: flex;
  align-items: baseline;
  gap: .45rem;
  margin-bottom: 1.4rem;
}

.market-product-detail-price strong {
  color: var(--mono-market-success);
  font-size: clamp(1.65rem, 3vw, 2.05rem);
  font-weight: 850;
}

.market-product-detail-price span {
  color: var(--mono-market-muted);
  font-size: .85rem;
  font-weight: 700;
}

.market-product-description-box {
  margin-bottom: 1.35rem;
  padding: 1rem;
  background: #f8fafb;
  border: 1px solid #edf0f2;
  border-radius: 15px;
}

.market-product-description-item {
  display: flex;
  gap: .75rem;
}

.market-product-description-item + .market-product-description-item {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid #e7ebed;
}

.market-product-description-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-muted);
  background: #fff;
  border-radius: 10px;
}

.market-product-description-item strong {
  display: block;
  margin-bottom: .12rem;
  color: var(--mono-market-text);
  font-size: .78rem;
  font-weight: 800;
}

.market-product-description-item p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .79rem;
  line-height: 1.55;
}

.market-product-buy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 15px;
}

.market-product-buy-label {
  display: block;
  margin-bottom: .12rem;
  color: var(--mono-market-text);
  font-size: .8rem;
  font-weight: 800;
}

.market-product-buy-box small {
  display: block;
  max-width: 300px;
  color: var(--mono-market-muted);
  font-size: .7rem;
  line-height: 1.4;
}

.market-quantity-control-lg .market-quantity-btn {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
}

.market-quantity-control-lg .market-quantity-input {
  width: 58px;
  font-size: 1.05rem;
}

.market-product-detail-tip {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: 1rem;
  color: var(--mono-market-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.market-product-detail-tip i {
  margin-top: .15rem;
  color: var(--mono-market-success);
}

/* =========================================================
   Botão de continuidade
   ========================================================= */

.market-checkout-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
}

.market-checkout-fab-link {
  min-width: 230px;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .72rem .85rem;
  color: #fff;
  background: var(--mono-market-primary);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(255,61,31,.28);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
  transition: transform .2s ease, background .2s ease;
}

.market-checkout-fab-link:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
  transform: translateY(-2px);
}

.market-checkout-fab-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: #fff;
  border-radius: 11px;
}

.market-checkout-fab-link span:nth-child(2) {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.market-checkout-fab-link small {
  color: rgba(255,255,255,.76);
  font-size: .62rem;
  font-weight: 600;
}

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

  .market-product-detail-image {
    min-height: 390px;
  }
}

@media (max-width: 767.98px) {
  .market-products-page,
  .market-product-detail-page {
    padding-top: .4rem;
  }

  .market-info-banner {
    align-items: flex-start;
  }

  .market-products-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-outline-link {
    display: none;
  }

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

  .market-product-card-body {
    padding: .8rem;
  }

  .market-product-image-wrap {
    padding: .7rem;
  }

  .market-product-price-row strong {
    font-size: 1rem;
  }

  .market-product-card-actions {
    margin-top: .7rem;
  }

  .market-product-detail-card {
    border-radius: 18px;
  }

  .market-product-detail-image {
    min-height: 315px;
    padding: 1.3rem;
  }

  .market-product-detail-image img {
    max-height: 285px;
  }

  .market-product-detail-content {
    padding: 1.3rem;
  }

  .market-product-buy-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-checkout-fab {
    right: 14px;
    bottom: 14px;
    left: 14px;
  }

  .market-checkout-fab-link {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 420px) {
  .market-product-name {
    font-size: .8rem;
  }

  .market-product-price-row {
    flex-wrap: wrap;
  }

  .market-quantity-btn {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .market-quantity-input {
    width: 38px;
    font-size: .82rem;
  }
}

/* =========================================================
   Carrinho
   ========================================================= */

.market-cart-page {
  padding: 1rem 0 2.5rem;
}

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

.market-cart-heading .market-back-link {
  margin-bottom: .85rem;
}

.market-cart-heading h1 {
  margin: 0 0 .3rem;
  color: var(--mono-market-text);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 850;
  letter-spacing: -.8px;
}

.market-cart-heading p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .85rem;
}

.market-cart-count {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: 0 0 auto;
  padding: .7rem .85rem;
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 14px;
  box-shadow: var(--mono-market-shadow-sm);
}

.market-cart-count > i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 10px;
}

.market-cart-count span {
  display: flex;
  flex-direction: column;
  color: var(--mono-market-muted);
  font-size: .68rem;
  line-height: 1.15;
}

.market-cart-count strong {
  color: var(--mono-market-text);
  font-size: .95rem;
}

.market-cart-list {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.market-cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius);
  box-shadow: var(--mono-market-shadow-sm);
  transition: box-shadow .2s ease, border-color .2s ease;
}

.market-cart-item:hover {
  border-color: rgba(255,61,31,.14);
  box-shadow: var(--mono-market-shadow);
}

.market-cart-item-image {
  width: 106px;
  height: 106px;
  flex: 0 0 106px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: .55rem;
  background: #f8fafb;
  border-radius: 14px;
  text-decoration: none;
}

.market-cart-item-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.market-cart-item-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.market-cart-item-copy {
  min-width: 0;
  flex: 1;
}

.market-cart-unit {
  display: inline-flex;
  margin-bottom: .35rem;
  padding: .2rem .42rem;
  color: var(--mono-market-muted);
  background: #f5f7f8;
  border-radius: 7px;
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
}

.market-cart-item-name {
  display: block;
  max-width: 470px;
  overflow: hidden;
  color: var(--mono-market-text);
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .93rem;
  font-weight: 800;
}

.market-cart-item-name:hover {
  color: var(--mono-market-primary);
}

.market-cart-meta {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  margin-top: .45rem;
}

.market-cart-meta-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: .62rem;
}

.market-cart-meta-icon-pizza {
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
}

.market-cart-meta-icon-add {
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
}

.market-cart-meta strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--mono-market-muted);
  font-size: .62rem;
  font-weight: 800;
}

.market-cart-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem;
}

.market-cart-tags span {
  padding: .18rem .38rem;
  color: #4e5962;
  background: #f7f8f9;
  border: 1px solid #e9edef;
  border-radius: 6px;
  font-size: .6rem;
  font-weight: 650;
}

.market-cart-note {
  display: flex;
  align-items: flex-start;
  gap: .38rem;
  margin-top: .5rem;
  color: var(--mono-market-muted);
  font-size: .67rem;
  font-style: italic;
  line-height: 1.4;
}

.market-cart-note i {
  margin-top: .1rem;
}

.market-cart-item-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.market-cart-item-total {
  min-width: 105px;
  text-align: right;
}

.market-cart-item-total small {
  display: block;
  margin-bottom: .1rem;
  color: var(--mono-market-muted);
  font-size: .58rem;
  font-weight: 650;
}

.market-cart-item-total strong {
  display: block;
  color: var(--mono-market-success);
  font-size: .94rem;
  font-weight: 850;
}

.market-cart-item-total .market-product-loader {
  margin: .3rem 0 0 auto;
}

.market-cart-summary {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow);
}

.market-cart-summary-heading {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f2;
}

.market-cart-summary-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 12px;
}

.market-cart-summary-heading span:not(.market-cart-summary-icon) {
  display: block;
  color: var(--mono-market-muted);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.market-cart-summary-heading h2 {
  margin: .08rem 0 0;
  color: var(--mono-market-text);
  font-size: .98rem;
  font-weight: 850;
}

.market-cart-summary-lines {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}

.market-cart-summary-line {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--mono-market-muted);
  font-size: .75rem;
}

.market-cart-summary-line + .market-cart-summary-line {
  margin-top: .65rem;
}

.market-cart-summary-line strong {
  color: var(--mono-market-text);
  font-size: .77rem;
  font-weight: 800;
}

.market-cart-summary-line .market-cart-summary-pending {
  color: var(--mono-market-success);
}

.market-cart-summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 0 1.1rem;
}

.market-cart-summary-total span {
  display: block;
  color: var(--mono-market-text);
  font-size: .78rem;
  font-weight: 800;
}

.market-cart-summary-total small {
  display: block;
  max-width: 190px;
  margin-top: .15rem;
  color: var(--mono-market-muted);
  font-size: .58rem;
  line-height: 1.35;
}

.market-cart-summary-total > strong {
  flex: 0 0 auto;
  color: var(--mono-market-success);
  font-size: 1.2rem;
  font-weight: 900;
}

.market-cart-checkout-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .8rem .9rem;
  color: #fff;
  background: var(--mono-market-primary);
  border: 0;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(255,61,31,.2);
  text-align: left;
  transition: transform .2s ease, background .2s ease;
}

.market-cart-checkout-btn:hover {
  background: var(--mono-market-primary-dark);
  transform: translateY(-1px);
}

.market-cart-checkout-btn span {
  display: flex;
  flex-direction: column;
  font-size: .8rem;
  font-weight: 850;
}

.market-cart-checkout-btn small {
  color: rgba(255,255,255,.74);
  font-size: .57rem;
  font-weight: 600;
}

.market-cart-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  margin-top: .75rem;
  color: var(--mono-market-muted);
  text-decoration: none;
  font-size: .7rem;
  font-weight: 750;
}

.market-cart-more-link:hover {
  color: var(--mono-market-primary);
}

.market-cart-security {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  margin-top: 1rem;
  padding-top: .9rem;
  color: var(--mono-market-muted);
  border-top: 1px solid #edf0f2;
  font-size: .6rem;
  line-height: 1.4;
}

.market-cart-security i {
  margin-top: .08rem;
  color: var(--mono-market-success);
}

.market-cart-empty {
  max-width: 650px;
  margin: 1.5rem auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-cart-empty-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 22px;
  font-size: 1.9rem;
}

.market-cart-empty h2 {
  margin: .2rem 0 .5rem;
  color: var(--mono-market-text);
  font-size: 1.3rem;
  font-weight: 850;
}

.market-cart-empty p {
  max-width: 460px;
  margin: 0 auto 1.3rem;
  color: var(--mono-market-muted);
  font-size: .8rem;
  line-height: 1.6;
}

.market-cart-empty-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}

.market-cart-empty-primary,
.market-cart-empty-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem .95rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: .76rem;
  font-weight: 800;
}

.market-cart-empty-primary {
  color: #fff;
  background: var(--mono-market-primary);
}

.market-cart-empty-primary:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
}

.market-cart-empty-secondary {
  color: var(--mono-market-text);
  background: #f6f8f9;
  border: 1px solid var(--mono-market-border);
}

.market-cart-empty-secondary:hover {
  color: var(--mono-market-primary);
}

@media (max-width: 991.98px) {
  .market-cart-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .market-cart-page {
    padding-top: .4rem;
  }

  .market-cart-heading {
    align-items: flex-start;
  }

  .market-cart-count {
    display: none;
  }

  .market-cart-item {
    gap: .8rem;
    padding: .8rem;
  }

  .market-cart-item-image {
    width: 86px;
    height: 86px;
    flex-basis: 86px;
  }

  .market-cart-item-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-cart-item-actions {
    width: 100%;
    justify-content: space-between;
  }

  .market-cart-item-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
}

@media (max-width: 479.98px) {
  .market-cart-item {
    align-items: flex-start;
  }

  .market-cart-item-image {
    width: 72px;
    height: 72px;
    flex-basis: 72px;
    border-radius: 12px;
  }

  .market-cart-item-actions {
    gap: .55rem;
  }

  .market-cart-item-total {
    min-width: 82px;
  }

  .market-cart-item-total strong {
    font-size: .84rem;
  }

  .market-cart-summary {
    padding: 1rem;
    border-radius: 18px;
  }
}

/* =========================================================
   Finalização / Checkout
   ========================================================= */

.market-checkout-page {
  padding: .2rem 0 2.5rem;
}

.market-checkout-page .checkout-card {
  margin-bottom: 1rem;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-checkout-page .checkout-section-title {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1.15rem;
  color: var(--mono-market-text);
  font-size: 1rem;
  font-weight: 850;
}

.market-checkout-page .checkout-section-title i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary) !important;
  background: var(--mono-market-primary-soft);
  border-radius: 10px;
  font-size: .8rem;
}

.market-checkout-page .form-control,
.market-checkout-page .form-select {
  min-height: 44px;
  border-color: var(--mono-market-border);
  border-radius: 11px;
  font-size: .82rem;
}

.market-checkout-page .form-control:focus,
.market-checkout-page .form-select:focus {
  border-color: rgba(255,61,31,.45);
  box-shadow: 0 0 0 .2rem rgba(255,61,31,.09);
}

.market-checkout-page .btn-check + .btn-outline-danger {
  color: #5c6670;
  background: #fff;
  border-color: var(--mono-market-border);
}

.market-checkout-page .btn-check:checked + .btn-outline-danger,
.market-checkout-page .btn-check + .btn-outline-danger:hover {
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-color: var(--mono-market-primary);
}

.market-checkout-page .address-option-card {
  padding: .9rem 1rem;
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 13px;
  transition: all .18s ease;
}

.market-checkout-page .address-option-card:hover,
.market-checkout-page .address-option-card.selected-card {
  background: var(--mono-market-primary-soft);
  border-color: var(--mono-market-primary);
}

.market-checkout-page .summary-sticky-card {
  position: sticky;
  top: 92px;
  padding: 1.3rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow);
}

.market-checkout-page #finalizar-venda {
  background: var(--mono-market-primary);
  border-color: var(--mono-market-primary);
  box-shadow: 0 8px 20px rgba(255,61,31,.2) !important;
}

.market-checkout-page #finalizar-venda:hover {
  background: var(--mono-market-primary-dark);
  border-color: var(--mono-market-primary-dark);
}

.market-checkout-page #acrescimo-entrega {
  background: #f8fafb !important;
  border-color: var(--mono-market-border) !important;
}

.market-checkout-page #entrega-distante {
  padding: .7rem .8rem;
  color: #b42318 !important;
  background: #fff3f1;
  border-radius: 10px;
  font-size: .75rem;
}

.market-checkout-page #frete-gratuito {
  color: var(--mono-market-success) !important;
}

.market-checkout-page .loader,
#modal-pagseguro .loader {
  width: 26px;
  height: 26px;
  display: inline-block;
  border: 3px solid #edf0f2;
  border-top-color: var(--mono-market-primary);
  border-radius: 50%;
  animation: marketSpin .6s linear infinite;
}

.market-checkout-processing {
  min-height: 55vh;
  align-items: center;
}

.market-checkout-processing lottie-player {
  max-width: 460px;
  margin: 0 auto;
}

#modal-mapa .modal-content,
#modal-pagseguro .modal-content {
  overflow: hidden;
  border-radius: 20px;
}

#modal-mapa .modal-header,
#modal-pagseguro .modal-header {
  padding: 1rem 1.2rem;
  border-bottom-color: #edf0f2;
}

#modal-mapa .modal-title,
#modal-pagseguro .modal-title {
  color: var(--mono-market-text);
  font-size: 1rem;
  font-weight: 850 !important;
}

#modal-mapa #salvar_endereco,
#modal-pagseguro #finalizar-venda-cartao {
  background: var(--mono-market-primary);
  border-color: var(--mono-market-primary);
}

@media (max-width: 991.98px) {
  .market-checkout-page .summary-sticky-card {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .market-checkout-page .checkout-card {
    padding: 1rem;
    border-radius: 16px;
  }

  .market-checkout-page .summary-sticky-card {
    padding: 1rem;
    border-radius: 18px;
  }

  .market-checkout-page .address-option-card {
    align-items: flex-start !important;
  }
}

/* =========================================================
   Checkout definitivo: endereço + Leaflet
   ========================================================= */

.market-address-modal {
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(20, 31, 38, .22);
}

.market-address-modal .modal-header {
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--mono-market-border);
}

.market-modal-eyebrow {
  display: block;
  margin-bottom: .15rem;
  color: var(--mono-market-primary);
  font-size: .62rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.market-address-modal .modal-title {
  margin: 0;
  color: var(--mono-market-text);
  font-size: 1.02rem;
  font-weight: 850;
}

.market-map-step {
  background: #f8fafb;
}

.market-map-instructions {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.2rem;
  background: #fff;
  border-bottom: 1px solid var(--mono-market-border);
}

.market-map-instructions-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 12px;
}

.market-map-instructions strong {
  display: block;
  margin-bottom: .08rem;
  color: var(--mono-market-text);
  font-size: .82rem;
  font-weight: 850;
}

.market-map-instructions p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .7rem;
  line-height: 1.45;
}

.market-address-map {
  width: 100%;
  height: min(52vh, 440px);
  min-height: 330px;
  background: #e8edef;
  z-index: 1;
}

.market-address-map .leaflet-control-attribution {
  font-size: 9px;
}

.market-map-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  background: #fff;
  border-top: 1px solid var(--mono-market-border);
}

.market-map-status {
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  color: var(--mono-market-muted);
  font-size: .65rem;
  line-height: 1.4;
}

.market-map-status i {
  margin-top: .1rem;
  color: #3b82f6;
}

.market-map-status.is-error,
.market-map-status.is-error i {
  color: #b42318;
}

.market-primary-btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 42px;
  padding: .65rem .9rem;
  color: #fff;
  background: var(--mono-market-primary);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(255,61,31,.18);
  font-size: .75rem;
  font-weight: 850;
  transition: transform .18s ease, background .18s ease, opacity .18s ease;
}

.market-primary-btn:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
  transform: translateY(-1px);
}

.market-primary-btn.disabled,
.market-primary-btn:disabled {
  cursor: not-allowed;
  opacity: .5;
  box-shadow: none;
  transform: none;
}

.market-address-form-step {
  padding: 1.2rem;
  background: #fff;
}

.market-address-form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-bottom: 1rem;
}

.market-address-form-heading h6 {
  margin: 0;
  color: var(--mono-market-text);
  font-size: .9rem;
  font-weight: 850;
}

.market-map-back-btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem .65rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border: 0;
  border-radius: 10px;
  font-size: .68rem;
  font-weight: 800;
}

.market-address-form-step .form-label {
  margin-bottom: .35rem;
  color: #56616b;
  font-size: .7rem;
  font-weight: 750;
}

.market-address-form-step .form-label span {
  color: var(--mono-market-muted);
  font-weight: 600;
}

.market-address-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mono-market-border);
}

.market-address-coords {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--mono-market-muted);
  font-size: .62rem;
}

.market-address-coords i {
  color: var(--mono-market-primary);
}

@media (max-width: 767.98px) {
  .market-address-modal {
    border-radius: 18px;
  }

  .market-address-map {
    height: 42vh;
    min-height: 290px;
  }

  .market-map-footer,
  .market-address-form-footer,
  .market-address-form-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .market-primary-btn,
  .market-map-back-btn {
    width: 100%;
  }

  .market-address-coords {
    justify-content: center;
  }
}

/* =========================================================
   V2 Checkout: modal rolável + PIX + pagamento
   ========================================================= */

#modal-mapa .modal-dialog {
  max-height: calc(100vh - 2rem);
}

#modal-mapa .modal-content {
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
}

#modal-mapa .modal-body {
  min-height: 0;
  overflow: hidden;
}

.market-address-form-step {
  max-height: calc(100vh - 150px);
  overflow-y: auto;
  padding-bottom: 0;
}

.market-address-form-footer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 1.15rem -1.2rem 0;
  padding: .95rem 1.2rem;
  background: rgba(255,255,255,.97);
  border-top: 1px solid var(--mono-market-border);
  box-shadow: 0 -10px 24px rgba(26, 36, 44, .06);
  backdrop-filter: blur(8px);
}

.market-address-form-footer .market-primary-btn {
  min-width: 170px;
}

.payment-method-selector .btn-outline-danger {
  min-height: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .75rem !important;
  white-space: normal;
  border-radius: 14px !important;
}

.payment-option-card .payment-option-caption {
  margin-top: .18rem;
  color: var(--mono-market-muted);
  font-size: .62rem;
  line-height: 1.25;
  font-weight: 600;
}

.payment-method-selector .btn-check:checked + .btn-outline-danger .payment-option-caption,
.payment-method-selector .btn-outline-danger:hover .payment-option-caption {
  color: inherit;
  opacity: .78;
}

.market-payment-info-box {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: 1rem;
  padding: .85rem .95rem;
  border: 1px solid var(--mono-market-border);
  border-radius: 13px;
  background: #f8fafb;
}

.market-payment-info-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 1rem;
}

.market-payment-info-pix {
  border-color: rgba(46, 125, 50, .16);
  background: #f5fbf6;
}

.market-payment-info-pix .market-payment-info-icon {
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
}

.market-payment-info-box strong {
  display: block;
  margin-bottom: .1rem;
  color: var(--mono-market-text);
  font-size: .76rem;
  font-weight: 850;
}

.market-payment-info-box p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .66rem;
  line-height: 1.45;
}

@media (max-width: 767.98px) {
  #modal-mapa .modal-dialog {
    margin: .5rem;
    max-height: calc(100vh - 1rem);
  }

  #modal-mapa .modal-content {
    max-height: calc(100vh - 1rem);
  }

  .market-address-form-step {
    max-height: calc(100vh - 125px);
  }

  .market-address-form-footer {
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    flex-direction: column;
  }

  .market-address-form-footer .market-primary-btn {
    width: 100%;
  }

  .payment-method-selector .btn-outline-danger {
    min-height: 88px;
  }
}

/* =========================================================
   Ajustes finais da home / header / responsividade
   14-08-2026
   ========================================================= */

/* Header desktop em uma única linha, com carrinho realmente no extremo direito. */
@media (min-width: 992px) {
  .market-navbar .market-navbar-inner {
    display: grid;
    grid-template-columns: auto minmax(260px, 430px) 1fr;
    align-items: center;
    column-gap: 1.6rem;
  }

  .market-navbar .navbar-brand {
    margin-right: 0;
  }

  .market-navbar .navbar-collapse {
    display: contents !important;
  }

  .market-navbar-search {
    width: 100%;
    margin: 0;
  }

  .market-navbar-links {
    width: 100%;
    min-width: 0;
    justify-content: flex-end;
    gap: .15rem;
  }

  .market-cart-nav-item {
    margin-left: .65rem !important;
  }

  .market-cart-button {
    margin-left: .15rem;
  }
}

/* Carrinho: badge centralizado e sem deslocar visualmente o ícone. */
.market-cart-button {
  position: relative;
  flex: 0 0 44px;
}

.market-cart-button .fa-cart-shopping,
.market-cart-button .fa-shopping-basket {
  font-size: 1.2rem;
}

.market-cart-button #qtd_carrinho {
  top: 2px !important;
  right: 0 !important;
  left: auto !important;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  transform: translate(35%, -35%) !important;
  font-size: .62rem;
}

/* Busca principal: aparência mais coerente e botão claramente clicável. */
.market-hero-search {
  border: 1px solid rgba(255,255,255,.24);
}

.market-hero-search .btn {
  min-width: 118px;
  color: #fff;
  background: var(--mono-market-dark);
  border-radius: 0 999px 999px 0 !important;
  transition: background .18s ease, transform .18s ease;
}

.market-hero-search .btn:hover,
.market-hero-search .btn:focus {
  color: #fff;
  background: #11191e;
}

.market-hero-search .btn:active {
  transform: scale(.98);
}

.market-hero-search .input-group-text {
  padding-left: 1rem !important;
}

/* Todos os departamentos do Mercado ficam disponíveis em uma faixa horizontal. */
.market-departments-section .categories-bubble-wrapper {
  gap: 1.2rem;
  padding-bottom: .95rem;
}

.market-departments-section .bubble-item {
  flex: 0 0 86px;
}

/* Evita que o CSS da página /categorias altere cartões exclusivos da home. */
.market-home .market-card,
.market-home .bubble-item {
  -webkit-tap-highlight-color: transparent;
}

/* Tablets */
@media (max-width: 991.98px) {
  .market-navbar .market-navbar-inner {
    position: relative;
  }

  .market-navbar .navbar-toggler {
    margin-left: auto;
  }

  .market-navbar .navbar-collapse {
    width: 100%;
  }

  .market-navbar-links {
    width: 100%;
  }

  .market-cart-nav-item {
    display: none;
  }

  .market-hero .row {
    width: 100%;
    margin: 0;
  }

  .market-hero .col-lg-7 {
    padding: 0;
  }
}

/* Smartphones */
@media (max-width: 767.98px) {
  .market-navbar {
    min-height: 62px;
  }

  .market-brand-logo {
    height: 34px;
  }

  .market-navbar-search {
    margin-top: .75rem;
  }

  .market-navbar-search .input-group {
    min-height: 46px;
  }

  .market-hero {
    padding: 1.35rem 1rem 1.45rem;
  }

  .market-hero-badge {
    margin-bottom: .8rem;
    font-size: .64rem;
  }

  .market-hero-title {
    max-width: none;
    margin-bottom: .55rem;
    font-size: clamp(1.65rem, 8vw, 2rem);
    letter-spacing: -.7px;
  }

  .market-hero-description {
    margin-bottom: 1rem;
    line-height: 1.55;
  }

  .market-hero-search {
    width: 100%;
    max-width: none;
    min-height: 50px;
  }

  .market-hero-search .form-control {
    min-width: 0;
    padding-left: .35rem;
    font-size: .85rem !important;
  }

  .market-hero-search .btn {
    min-width: 82px;
    padding-inline: .9rem !important;
    font-size: .78rem;
  }

  .market-section-header {
    align-items: center;
  }

  .market-see-all {
    white-space: nowrap;
  }

  .categories-bubble-wrapper {
    margin-right: -14px;
    padding-right: 14px;
  }

  .market-card {
    border-radius: 13px;
  }

  .market-card-img-wrap {
    aspect-ratio: 1 / .92;
  }

  .market-card-body {
    min-height: 112px;
  }
}

/* Celulares pequenos */
@media (max-width: 420px) {
  .market-navbar .navbar-brand {
    max-width: calc(100% - 58px);
  }

  .market-hero {
    border-radius: 15px;
  }

  .market-hero-search .input-group-text {
    padding-right: .45rem;
  }

  .market-hero-search .form-control::placeholder {
    font-size: .76rem;
  }

  .market-hero-search .btn {
    min-width: 72px;
    padding-inline: .65rem !important;
  }

  .market-departments-section .bubble-item {
    flex-basis: 74px;
    min-width: 74px;
  }

  .market-departments-section .bubble-img {
    width: 58px;
    height: 58px;
  }

  .bubble-title {
    font-size: .68rem;
  }
}


/* =========================================================
   Pedido finalizado
   ========================================================= */

.market-order-success-page {
  padding: .5rem 0 2.5rem;
}

.market-order-success-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  background:
    radial-gradient(circle at 85% 0%, rgba(35, 134, 54, .08), transparent 28%),
    #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
  text-align: center;
}

.market-order-success-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
  border-radius: 50%;
  font-size: 2rem;
  box-shadow: inset 0 0 0 1px rgba(35, 134, 54, .06);
}

.market-order-success-title {
  margin: .15rem 0 .45rem;
  color: var(--mono-market-text);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.8px;
}

.market-order-success-title span {
  color: var(--mono-market-primary);
}

.market-order-success-subtitle {
  max-width: 650px;
  margin: 0 auto 1.2rem;
  color: var(--mono-market-success);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.5;
}

.market-order-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  max-width: 100%;
  padding: .48rem;
  background: #f7f9fa;
  border: 1px solid var(--mono-market-border);
  border-radius: 999px;
}

.market-order-meta-item {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .34rem .55rem;
  color: var(--mono-market-muted);
  font-size: .72rem;
  line-height: 1.2;
}

.market-order-meta-item i {
  color: var(--mono-market-primary);
}

.market-order-meta-item strong {
  color: var(--mono-market-text);
  font-weight: 800;
}

.market-order-panel,
.market-order-summary {
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-order-panel {
  padding: 1.25rem;
}

.market-order-summary {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  box-shadow: var(--mono-market-shadow);
}

.market-order-panel-heading,
.market-order-summary-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f2;
}

.market-order-panel-icon,
.market-order-summary-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 12px;
}

.market-order-panel-heading span,
.market-order-summary-heading span {
  display: block;
  color: var(--mono-market-muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.market-order-panel-heading h2,
.market-order-summary-heading h2 {
  margin: .08rem 0 0;
  color: var(--mono-market-text);
  font-size: 1rem;
  font-weight: 850;
}

.market-order-items {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding-top: 1rem;
}

.market-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  background: #f8fafb;
  border: 1px solid #edf0f2;
  border-radius: 14px;
}

.market-order-item-main {
  min-width: 0;
  flex: 1;
}

.market-order-item h3 {
  margin: 0 0 .2rem;
  overflow-wrap: anywhere;
  color: var(--mono-market-text);
  font-size: .88rem;
  font-weight: 800;
}

.market-order-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem;
  color: var(--mono-market-muted);
  font-size: .69rem;
}

.market-order-item-dot {
  opacity: .55;
}

.market-order-item-note {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  margin-top: .45rem;
  color: var(--mono-market-muted);
  font-size: .66rem;
  font-style: italic;
}

.market-order-item-note i {
  margin-top: .1rem;
  color: var(--mono-market-primary);
}

.market-order-item-total {
  flex: 0 0 auto;
  text-align: right;
}

.market-order-item-total small {
  display: block;
  margin-bottom: .08rem;
  color: var(--mono-market-muted);
  font-size: .56rem;
  font-weight: 650;
}

.market-order-item-total strong {
  display: block;
  color: var(--mono-market-success);
  font-size: .93rem;
  font-weight: 850;
}

.market-order-destination {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}

.market-order-summary-label {
  display: block;
  margin-bottom: .45rem;
  color: var(--mono-market-muted);
  font-size: .64rem;
  font-weight: 750;
}

.market-order-destination-box {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem;
  background: #f8fafb;
  border: 1px solid #edf0f2;
  border-radius: 12px;
}

.market-order-destination-box > i {
  margin-top: .08rem;
  color: var(--mono-market-primary);
}

.market-order-destination-box strong,
.market-order-destination-box span {
  display: block;
}

.market-order-destination-box strong {
  color: var(--mono-market-text);
  font-size: .73rem;
  font-weight: 800;
}

.market-order-destination-box span {
  margin-top: .12rem;
  color: var(--mono-market-muted);
  font-size: .63rem;
}

.market-order-destination-pickup > i {
  color: #3182ce;
}

.market-order-summary-lines {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}

.market-order-summary-line {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--mono-market-muted);
  font-size: .72rem;
}

.market-order-summary-line + .market-order-summary-line {
  margin-top: .65rem;
}

.market-order-summary-line strong {
  flex: 0 0 auto;
  color: var(--mono-market-text);
  font-size: .74rem;
  font-weight: 800;
}

.market-order-summary-discount,
.market-order-summary-discount strong {
  color: var(--mono-market-primary);
}

.market-order-summary-free {
  color: var(--mono-market-success) !important;
}

.market-order-summary-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.market-order-summary-total span {
  display: block;
  color: var(--mono-market-text);
  font-size: .78rem;
  font-weight: 850;
}

.market-order-summary-total small {
  display: block;
  margin-top: .12rem;
  color: var(--mono-market-muted);
  font-size: .58rem;
}

.market-order-summary-total > strong {
  flex: 0 0 auto;
  color: var(--mono-market-success);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.4px;
}

.market-order-payment-note {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: .75rem;
  color: var(--mono-market-text);
  background: var(--mono-market-success-soft);
  border: 1px solid rgba(35, 134, 54, .12);
  border-radius: 12px;
}

.market-order-payment-note-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-success);
  background: #fff;
  border-radius: 10px;
}

.market-order-payment-note strong {
  display: block;
  margin-bottom: .08rem;
  color: var(--mono-market-success);
  font-size: .7rem;
  font-weight: 850;
}

.market-order-payment-note p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .61rem;
  line-height: 1.45;
}

.market-order-actions {
  display: grid;
  gap: .55rem;
}

.market-order-action-primary,
.market-order-action-secondary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .85rem;
  border-radius: 12px;
  text-decoration: none;
  font-size: .73rem;
  font-weight: 800;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.market-order-action-primary {
  color: #fff;
  background: var(--mono-market-primary);
  border: 1px solid var(--mono-market-primary);
}

.market-order-action-primary:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
  border-color: var(--mono-market-primary-dark);
  transform: translateY(-1px);
}

.market-order-action-secondary {
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid var(--mono-market-border);
}

.market-order-action-secondary:hover {
  color: var(--mono-market-primary);
  border-color: rgba(255, 61, 31, .28);
}

@media (max-width: 991.98px) {
  .market-order-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .market-order-success-page {
    padding-top: .15rem;
  }

  .market-order-success-hero {
    margin-bottom: 1rem;
    padding: 1.6rem 1rem;
    border-radius: 18px;
  }

  .market-order-success-icon {
    width: 62px;
    height: 62px;
    margin-bottom: .75rem;
    font-size: 1.55rem;
  }

  .market-order-success-subtitle {
    font-size: .82rem;
  }

  .market-order-meta {
    width: 100%;
    display: grid;
    gap: .15rem;
    border-radius: 14px;
  }

  .market-order-meta-item {
    justify-content: center;
    padding: .4rem .5rem;
  }

  .market-order-panel,
  .market-order-summary {
    padding: 1rem;
    border-radius: 18px;
  }

  .market-order-item {
    align-items: flex-start;
  }
}

@media (max-width: 479.98px) {
  .market-order-success-title {
    font-size: 1.55rem;
  }

  .market-order-item {
    flex-direction: column;
  }

  .market-order-item-total {
    width: 100%;
    padding-top: .65rem;
    border-top: 1px solid #e8edef;
    text-align: left;
  }

  .market-order-summary-total > strong {
    font-size: 1.12rem;
  }
}


/* =========================================================
   Histórico de pedidos
   ========================================================= */

.market-history-page {
  padding: .5rem 0 2.5rem;
}

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

.market-history-heading h1 {
  margin: 0 0 .3rem;
  color: var(--mono-market-text);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -.8px;
}

.market-history-heading p {
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .84rem;
}

.market-history-count {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex: 0 0 auto;
  padding: .68rem .85rem;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 14px;
  box-shadow: var(--mono-market-shadow-sm);
}

.market-history-count > i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 10px;
}

.market-history-count span {
  display: flex;
  flex-direction: column;
  color: var(--mono-market-muted);
  font-size: .63rem;
  line-height: 1.18;
}

.market-history-count strong {
  color: var(--mono-market-text);
  font-size: .92rem;
  font-weight: 850;
}

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

.market-history-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius);
  box-shadow: var(--mono-market-shadow-sm);
  text-decoration: none;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;
}

.market-history-card:hover {
  color: inherit;
  transform: translateY(-4px);
  border-color: rgba(255,61,31,.18);
  box-shadow: var(--mono-market-shadow);
}

.market-history-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  padding: .9rem 1rem;
  border-bottom: 1px solid #edf0f2;
}

.market-history-order-id,
.market-history-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .35rem .55rem;
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
  white-space: nowrap;
}

.market-history-order-id {
  color: var(--mono-market-text);
  background: #f5f7f8;
}

.market-history-order-id i {
  color: var(--mono-market-primary);
}

.market-history-status {
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
}

.market-history-card-body {
  flex: 1;
  padding: 1rem;
}

.market-history-date {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  color: var(--mono-market-muted);
  font-size: .7rem;
}

.market-history-date i {
  color: var(--mono-market-primary);
}

.market-history-value small {
  display: block;
  margin-bottom: .08rem;
  color: var(--mono-market-muted);
  font-size: .61rem;
  font-weight: 650;
}

.market-history-value strong {
  display: block;
  color: var(--mono-market-success);
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.35px;
}

.market-history-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .8rem 1rem;
  background: #fbfcfc;
  border-top: 1px solid #edf0f2;
}

.market-history-card-footer > span:first-child {
  color: var(--mono-market-muted);
  font-size: .64rem;
}

.market-history-details-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .65rem;
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 800;
  transition: all .18s ease;
}

.market-history-card:hover .market-history-details-btn {
  color: #fff;
  background: var(--mono-market-success);
}

.market-history-empty {
  max-width: 650px;
  margin: 2rem auto 0;
  padding: 3.25rem 1.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-history-empty-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 22px;
  font-size: 1.85rem;
}

.market-history-empty h2 {
  margin: .1rem 0 .45rem;
  color: var(--mono-market-text);
  font-size: 1.28rem;
  font-weight: 850;
}

.market-history-empty p {
  max-width: 470px;
  margin: 0 auto 1.2rem;
  color: var(--mono-market-muted);
  font-size: .79rem;
  line-height: 1.6;
}

.market-history-empty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 44px;
  padding: .65rem .95rem;
  color: #fff;
  background: var(--mono-market-primary);
  border-radius: 12px;
  text-decoration: none;
  font-size: .73rem;
  font-weight: 800;
}

.market-history-empty-btn:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
}

@media (max-width: 991.98px) {
  .market-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .market-history-page {
    padding-top: .15rem;
  }

  .market-history-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-history-count {
    width: 100%;
    justify-content: flex-start;
  }

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

  .market-history-card-top {
    align-items: flex-start;
  }

  .market-history-card-footer {
    align-items: center;
  }
}

@media (max-width: 420px) {
  .market-history-card-top {
    flex-direction: column;
    align-items: stretch;
  }

  .market-history-order-id,
  .market-history-status {
    justify-content: center;
  }

  .market-history-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .market-history-card-footer > span:first-child {
    text-align: center;
  }

  .market-history-details-btn {
    justify-content: center;
  }

  .market-history-empty {
    padding: 2.4rem 1rem;
  }
}


/* =========================================================
   Detalhe do pedido
   ========================================================= */

.market-order-detail-page {
  padding: .5rem 0 2.5rem;
}

.market-order-detail-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.market-order-detail-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem;
}

.market-order-detail-heading h1 {
  margin: 0;
  color: var(--mono-market-text);
  font-size: clamp(1.75rem, 3vw, 2.3rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.8px;
}

.market-order-detail-heading p {
  margin: .35rem 0 0;
  color: var(--mono-market-muted);
  font-size: .84rem;
}

.market-order-detail-status {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .38rem .62rem;
  color: var(--mono-market-success);
  background: var(--mono-market-success-soft);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 800;
}

.market-order-repeat-top {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  padding: .62rem .9rem;
  color: var(--mono-market-primary);
  background: #fff;
  border: 1px solid rgba(255,61,31,.28);
  border-radius: 12px;
  text-decoration: none;
  font-size: .74rem;
  font-weight: 800;
  transition: .18s ease;
}

.market-order-repeat-top:hover {
  color: #fff;
  background: var(--mono-market-primary);
  border-color: var(--mono-market-primary);
  transform: translateY(-1px);
}

.market-order-detail-panel,
.market-order-detail-summary {
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: var(--mono-market-radius-lg);
  box-shadow: var(--mono-market-shadow-sm);
}

.market-order-detail-panel {
  padding: 1.25rem;
}

.market-order-detail-summary {
  position: sticky;
  top: 92px;
  padding: 1.25rem;
  box-shadow: var(--mono-market-shadow);
}

.market-order-detail-panel-heading,
.market-order-detail-summary-heading {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #edf0f2;
}

.market-order-detail-panel-icon,
.market-order-detail-summary-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 12px;
}

.market-order-detail-panel-heading span:not(.market-order-detail-panel-icon),
.market-order-detail-summary-heading span:not(.market-order-detail-summary-icon) {
  display: block;
  color: var(--mono-market-muted);
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.market-order-detail-panel-heading h2,
.market-order-detail-summary-heading h2 {
  margin: .08rem 0 0;
  color: var(--mono-market-text);
  font-size: 1rem;
  font-weight: 850;
}

.market-order-detail-items {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 1rem;
}

.market-order-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafb;
  border: 1px solid #edf0f2;
  border-radius: 14px;
}

.market-order-detail-item-main {
  min-width: 0;
  flex: 1;
}

.market-order-detail-item h3 {
  margin: 0 0 .22rem;
  color: var(--mono-market-text);
  font-size: .9rem;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.market-order-detail-item-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .28rem;
  color: var(--mono-market-muted);
  font-size: .69rem;
}

.market-order-detail-item-dot {
  opacity: .5;
}

.market-order-detail-extra {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  margin-top: .65rem;
}

.market-order-detail-extra strong {
  min-width: 68px;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--mono-market-muted);
  font-size: .61rem;
  font-weight: 800;
}

.market-order-detail-extra strong i {
  color: var(--mono-market-primary);
}

.market-order-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
}

.market-order-detail-tags span {
  padding: .22rem .42rem;
  color: #4e5962;
  background: #fff;
  border: 1px solid #e5e9ec;
  border-radius: 7px;
  font-size: .59rem;
  font-weight: 650;
}

.market-order-detail-note {
  display: flex;
  align-items: flex-start;
  gap: .38rem;
  margin-top: .65rem;
  color: var(--mono-market-muted);
  font-size: .65rem;
  font-style: italic;
}

.market-order-detail-note i {
  margin-top: .08rem;
  color: var(--mono-market-primary);
}

.market-order-detail-item-total {
  flex: 0 0 auto;
  text-align: right;
}

.market-order-detail-item-total small {
  display: block;
  margin-bottom: .08rem;
  color: var(--mono-market-muted);
  font-size: .56rem;
  font-weight: 650;
}

.market-order-detail-item-total strong {
  display: block;
  color: var(--mono-market-success);
  font-size: .95rem;
  font-weight: 850;
}

.market-order-detail-info-block {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}

.market-order-detail-label {
  display: block;
  margin-bottom: .45rem;
  color: var(--mono-market-muted);
  font-size: .64rem;
  font-weight: 750;
}

.market-order-detail-payment,
.market-order-detail-destination {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .8rem;
  background: #f8fafb;
  border: 1px solid #edf0f2;
  border-radius: 12px;
}

.market-order-detail-payment-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 10px;
}

.market-order-detail-payment strong,
.market-order-detail-payment span,
.market-order-detail-destination strong,
.market-order-detail-destination span,
.market-order-detail-destination small {
  display: block;
}

.market-order-detail-payment strong,
.market-order-detail-destination strong {
  color: var(--mono-market-text);
  font-size: .72rem;
  font-weight: 800;
}

.market-order-detail-payment span,
.market-order-detail-destination span {
  margin-top: .1rem;
  color: var(--mono-market-muted);
  font-size: .62rem;
}

.market-order-detail-destination > i {
  margin-top: .12rem;
  color: var(--mono-market-primary);
}

.market-order-detail-destination small {
  margin-top: .18rem;
  color: var(--mono-market-muted);
  font-size: .59rem;
  line-height: 1.35;
}

.market-order-detail-pickup > i {
  color: #3182ce;
}

.market-order-detail-summary-lines {
  padding: 1rem 0;
  border-bottom: 1px solid #edf0f2;
}

.market-order-detail-summary-line {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  color: var(--mono-market-muted);
  font-size: .72rem;
}

.market-order-detail-summary-line + .market-order-detail-summary-line {
  margin-top: .65rem;
}

.market-order-detail-summary-line strong {
  flex: 0 0 auto;
  color: var(--mono-market-text);
  font-size: .74rem;
  font-weight: 800;
}

.market-order-detail-discount,
.market-order-detail-discount strong {
  color: var(--mono-market-primary);
}

.market-order-detail-free {
  color: var(--mono-market-success) !important;
}

.market-order-detail-total {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.market-order-detail-total span {
  display: block;
  color: var(--mono-market-text);
  font-size: .8rem;
  font-weight: 850;
}

.market-order-detail-total small {
  display: block;
  margin-top: .1rem;
  color: var(--mono-market-muted);
  font-size: .57rem;
}

.market-order-detail-total > strong {
  flex: 0 0 auto;
  color: var(--mono-market-success);
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -.4px;
}

.market-order-repeat-btn {
  width: 100%;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .7rem .9rem;
  color: #fff;
  background: var(--mono-market-primary);
  border-radius: 12px;
  text-decoration: none;
  font-size: .75rem;
  font-weight: 850;
  box-shadow: 0 8px 20px rgba(255,61,31,.18);
  transition: .18s ease;
}

.market-order-repeat-btn:hover {
  color: #fff;
  background: var(--mono-market-primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 991.98px) {
  .market-order-detail-summary {
    position: static;
  }
}

@media (max-width: 767.98px) {
  .market-order-detail-page {
    padding-top: .15rem;
  }

  .market-order-detail-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .market-order-repeat-top {
    width: 100%;
  }

  .market-order-detail-panel,
  .market-order-detail-summary {
    padding: 1rem;
    border-radius: 18px;
  }

  .market-order-detail-item {
    align-items: flex-start;
  }
}

@media (max-width: 479.98px) {
  .market-order-detail-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .market-order-detail-item {
    flex-direction: column;
  }

  .market-order-detail-item-total {
    width: 100%;
    padding-top: .65rem;
    border-top: 1px solid #e7ebed;
    text-align: left;
  }

  .market-order-detail-extra {
    flex-direction: column;
    gap: .35rem;
  }

  .market-order-detail-total > strong {
    font-size: 1.12rem;
  }
}


/* =========================================================
   Login e cadastro
   ========================================================= */

.market-auth-page {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding: 2rem 0 3rem;
}

.market-auth-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 24px;
  box-shadow: var(--mono-market-shadow);
}

.market-auth-shell-register {
  width: min(100%, 1080px);
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
}

.market-auth-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.market-auth-card-register {
  min-width: 0;
}

.market-auth-header {
  margin-bottom: 1.45rem;
}

.market-auth-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .9rem;
  color: var(--mono-market-primary);
  background: var(--mono-market-primary-soft);
  border-radius: 18px;
  font-size: 1.35rem;
}

.market-auth-header h1 {
  margin: .1rem 0 .35rem;
  color: var(--mono-market-text);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 850;
  letter-spacing: -.7px;
}

.market-auth-header p {
  max-width: 520px;
  margin: 0;
  color: var(--mono-market-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.market-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.market-auth-field {
  min-width: 0;
}

.market-auth-field label,
.market-auth-label-row label {
  display: block;
  margin-bottom: .38rem;
  color: #56616b;
  font-size: .7rem;
  font-weight: 750;
}

.market-auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.market-auth-label-row a {
  margin-bottom: .38rem;
  color: var(--mono-market-primary);
  font-size: .66rem;
  font-weight: 750;
  text-decoration: none;
}

.market-auth-label-row a:hover {
  color: var(--mono-market-primary-dark);
}

.market-auth-input-wrap {
  position: relative;
}

.market-auth-input-wrap > i {
  position: absolute;
  top: 50%;
  left: .9rem;
  z-index: 2;
  color: #9aa4ab;
  font-size: .82rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.market-auth-input-wrap input {
  width: 100%;
  min-height: 46px;
  padding: .65rem .85rem .65rem 2.55rem;
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 12px;
  outline: 0;
  font-size: .8rem;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.market-auth-input-wrap input::placeholder {
  color: #a0a9af;
}

.market-auth-input-wrap input:focus {
  background: #fff;
  border-color: rgba(255,61,31,.42);
  box-shadow: 0 0 0 4px rgba(255,61,31,.08);
}

.market-auth-input-wrap:focus-within > i {
  color: var(--mono-market-primary);
}

.market-auth-input-wrap.is-invalid input {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220,53,69,.06);
}

.market-auth-error {
  display: flex;
  align-items: flex-start;
  gap: .3rem;
  margin-top: .35rem;
  color: #b42318;
  font-size: .64rem;
  line-height: 1.35;
  font-weight: 700;
}

.market-auth-error i {
  margin-top: .08rem;
}

.market-auth-submit {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-top: .2rem;
  padding: .7rem .9rem;
  color: #fff;
  background: var(--mono-market-primary);
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255,61,31,.2);
  font-size: .78rem;
  font-weight: 850;
  transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.market-auth-submit:hover {
  background: var(--mono-market-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(255,61,31,.24);
}

.market-auth-divider {
  position: relative;
  margin: 1.25rem 0 1rem;
  text-align: center;
}

.market-auth-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--mono-market-border);
}

.market-auth-divider span {
  position: relative;
  display: inline-block;
  padding: 0 .65rem;
  color: var(--mono-market-muted);
  background: #fff;
  font-size: .62rem;
  text-transform: uppercase;
}

.market-auth-footer {
  text-align: center;
}

.market-auth-footer p {
  margin: 0 0 .55rem;
  color: var(--mono-market-muted);
  font-size: .68rem;
}

.market-auth-secondary {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem .85rem;
  color: var(--mono-market-text);
  background: #fff;
  border: 1px solid var(--mono-market-border);
  border-radius: 12px;
  text-decoration: none;
  font-size: .73rem;
  font-weight: 800;
  transition: .18s ease;
}

.market-auth-secondary:hover {
  color: var(--mono-market-primary);
  border-color: rgba(255,61,31,.3);
  background: var(--mono-market-primary-soft);
}

.market-auth-privacy {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .8rem;
  padding: 0;
  color: var(--mono-market-muted);
  background: transparent;
  border: 0;
  font-size: .63rem;
  text-decoration: underline;
}

.market-auth-privacy:hover {
  color: var(--mono-market-primary);
}

.market-auth-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem, 4vw, 2.5rem);
  color: #fff;
  background:
    radial-gradient(circle at 85% 12%, rgba(255,255,255,.14), transparent 26%),
    linear-gradient(145deg, var(--mono-market-primary) 0%, #ef3517 52%, var(--mono-market-primary-dark) 100%);
}

.market-auth-side::after {
  content: '';
  position: absolute;
  right: -85px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.market-auth-side-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: 1rem;
  padding: .36rem .65rem;
  color: #fff;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
}

.market-auth-side h2 {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin: 0 0 .7rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.12;
  font-weight: 850;
  letter-spacing: -.7px;
}

.market-auth-side > p {
  position: relative;
  z-index: 1;
  max-width: 390px;
  margin: 0 0 1.3rem;
  color: rgba(255,255,255,.78);
  font-size: .76rem;
  line-height: 1.6;
}

.market-auth-benefits {
  position: relative;
  z-index: 1;
  display: grid;
  gap: .65rem;
}

.market-auth-benefits div {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .7rem;
  font-weight: 750;
}

.market-auth-benefits i {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  color: var(--mono-market-primary);
  background: #fff;
  border-radius: 9px;
}

.market-auth-policy-modal {
  overflow: hidden;
  border: 0;
  border-radius: 20px;
}

.market-auth-policy-modal .modal-header {
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid var(--mono-market-border);
}

.market-auth-policy-modal .modal-title {
  margin: 0;
  color: var(--mono-market-text);
  font-size: 1rem;
  font-weight: 850;
}

.market-auth-policy-body {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1.2rem;
  color: var(--mono-market-muted);
  font-size: .73rem;
  line-height: 1.6;
}

.market-auth-policy-modal .modal-footer {
  padding: .8rem 1.2rem 1rem;
  border-top: 1px solid var(--mono-market-border);
}

.market-auth-policy-close {
  min-height: 40px;
  padding: .55rem .85rem;
  color: #fff;
  background: var(--mono-market-primary);
  border: 0;
  border-radius: 10px;
  font-size: .7rem;
  font-weight: 800;
}

.market-auth-policy-close:hover {
  background: var(--mono-market-primary-dark);
}

@media (max-width: 991.98px) {
  .market-auth-page {
    min-height: auto;
    padding-top: 1rem;
  }

  .market-auth-shell,
  .market-auth-shell-register {
    grid-template-columns: 1fr;
    width: min(100%, 680px);
  }

  .market-auth-side {
    order: -1;
    min-height: 230px;
  }
}

@media (max-width: 767.98px) {
  .market-auth-page {
    padding: .25rem 0 1.5rem;
  }

  .market-auth-shell,
  .market-auth-shell-register {
    border-radius: 18px;
  }

  .market-auth-card {
    padding: 1.25rem;
  }

  .market-auth-side {
    min-height: 200px;
    padding: 1.35rem;
  }

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

@media (max-width: 420px) {
  .market-auth-side {
    min-height: 185px;
  }

  .market-auth-side h2 {
    font-size: 1.4rem;
  }

  .market-auth-benefits {
    gap: .5rem;
  }

  .market-auth-label-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .market-auth-label-row a {
    margin-top: -.2rem;
  }
}


/* =========================================================
   Login inicial e recuperação de senha
   ========================================================= */

.market-auth-welcome {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  margin-bottom: 1.25rem;
  padding: .85rem .95rem;
  color: #1f5130;
  background: #f1faf3;
  border: 1px solid rgba(35,134,54,.14);
  border-left: 4px solid var(--mono-market-success);
  border-radius: 12px;
}

.market-auth-welcome-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--mono-market-success);
  background: #fff;
  border-radius: 10px;
}

.market-auth-welcome strong {
  display: block;
  margin-bottom: .08rem;
  font-size: .72rem;
  font-weight: 850;
}

.market-auth-welcome p {
  margin: 0;
  color: #4e6d58;
  font-size: .66rem;
  line-height: 1.45;
}

.market-auth-message {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  margin-bottom: 1rem;
  padding: .8rem .9rem;
  border-radius: 12px;
  font-size: .68rem;
  line-height: 1.45;
  font-weight: 650;
}

.market-auth-message > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
}

.market-auth-message-success {
  color: #205c31;
  background: #f1faf3;
  border: 1px solid rgba(35,134,54,.14);
}

.market-auth-message-success > span {
  color: var(--mono-market-success);
  background: #fff;
}

.market-auth-message-error {
  color: #8f261a;
  background: #fff5f3;
  border: 1px solid rgba(180,35,24,.12);
}

.market-auth-message-error > span {
  color: #b42318;
  background: #fff;
}

@media (max-width: 767.98px) {
  .market-auth-welcome {
    margin-bottom: 1rem;
  }
}
