/* Tokens visuais alinhados ao layout de referência */
:root {
  --blue-900: #1F3A5F;
  --blue-800: #2F5D8A;
  --blue-700: #0e557f;
  --green-500: #11b56a;
  --green-600: #0fa460;
  --text-dark: #1f2430;
  --text-muted: #7a7f87;
  --gray-100: #f4f5f7;
  --gray-200: #e6e8ec;
  --white: #ffffff;
  --shadow-soft: 0 6px 18px rgba(14, 22, 33, 0.12);
  --shadow-strong: 0 12px 24px rgba(14, 22, 33, 0.2);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "SF Pro Display", "SF Pro Text", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: #f2f2f2;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

.main {
  animation: fadeIn 0.25s ease-out;
}

.page {
  min-height: 100vh;
}

/* Barra superior fixa */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--blue-900);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.topbar .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 600;
  font-size: 20px;
  justify-content: center;
}

.brand img {
  height: 60px;
  width: auto;
  display: block;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #41d392, #0f7a4e);
  position: relative;
}

.brand-icon::before,
.brand-icon::after {
  content: "";
  position: absolute;
  inset: 6px 9px 6px 9px;
  border-radius: 8px 8px 4px 4px;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  background-color: rgba(145, 158, 171, 0.08);
  color: var(--white);
  border-radius: 8px;
  min-width: 340px;
  justify-content: space-between;
}

.location-pill .left {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.location-pill svg {
  width: 16px;
  height: 16px;
  fill: var(--white);
}

.topbar-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.help-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.cta-button,
.secondary-button,
.outline-button {
  border-radius: 10px;
  padding: 8px 18px;
  height: 60px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cta-button {
  background: var(--green-500);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(17, 181, 106, 0.3);
}

.cta-button:hover {
  background: var(--green-600);
  transform: translateY(-1px);
}

.cta-button:disabled,
.secondary-button:disabled,
.outline-button:disabled {
  background: #edf0f3;
  color: #c2c7ce;
  cursor: not-allowed;
  border-color: #edf0f3;
  box-shadow: none;
}

.secondary-button {
  background: var(--blue-900);
  color: var(--white);
}

.secondary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(10, 75, 121, 0.25);
}

.secondary-button.is-loading {
  opacity: 0.8;
  pointer-events: none;
}

.secondary-button.is-loading::after {
  content: " ...";
}

.floating-field input.is-readonly {
  background: #f6f8fb;
  color: #6c7480;
}

.outline-button {
  background: transparent;
  color: var(--blue-800);
  border: 1px solid #aac0d6;
}

.outline-button:hover {
  background: #f2f6fb;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #3e6fd3;
  color: var(--white);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}

.main {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0 10px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 12px;
  font-weight: 700;
}

.hero p {
  margin: 0 0 18px;
  color: var(--text-muted);
  max-width: 460px;
}

.hero .cta-button {
  padding: 10px 22px;
}

.hero-visual {
  position: relative;
  min-height: 300px;
  display: grid;
  place-items: center;
}

.hero-visual .phone {
  width: 300px;
  height: 190px;
  border-radius: 28px;
  background: #f2f2f2;
  box-shadow: var(--shadow-strong);
  transform: rotate(-10deg);
  position: relative;
}

.hero-visual .phone::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 18px;
  border: 2px solid #c9ccd1;
  background: #ffffff;
}

.hero-visual .cylinder {
  position: absolute;
  width: 130px;
  height: 150px;
  border-radius: 26px;
  background: linear-gradient(140deg, #1a8cc6, #0f5a85);
  box-shadow: var(--shadow-strong);
  right: 40px;
  bottom: 0;
}

.hero-visual .cylinder.small {
  width: 70px;
  height: 90px;
  background: linear-gradient(140deg, #7bc88b, #2c8a52);
  right: 210px;
  bottom: 70px;
}

.hero-visual .cylinder::after,
.hero-visual .cylinder.small::after {
  content: "";
  position: absolute;
  top: -10px;
  left: 22px;
  width: 50%;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.4);
}

.brand-strip {
  margin-top: 26px;
  text-align: center;
  color: #61656b;
  font-size: 14px;
}

.brand-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.brand-pill {
  background: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: center;
  font-weight: 600;
  color: #5b5f66;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.center-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  margin-top: 18px;
  flex-wrap: nowrap;
  width: 100%;
}

.category-products {
  width: 100%;
}

.category-products.is-hidden {
  display: none;
}

.category-card {
  background: var(--white);
  border-radius: 12px;
  padding: 14px 10px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  height: 134px;
  flex: 0 0 120px;
  max-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .category-row {
    gap: 10px;
    justify-content: space-between;
  }

  .category-card {
    flex: 0 0 calc(33.33% - 8px);
    max-width: none;
    height: 124px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 52px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item-actions {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    align-items: center;
    justify-content: space-between;
    justify-items: start;
  }

  .cart-item-prices {
    justify-items: start;
  }

  .cart-summary {
    margin-top: 0px!important;
  }
}

.category-card.active {
  background: var(--blue-900);
  color: var(--white);
}

.category-card:hover {
  transform: translateY(-2px);
}

.category-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 8px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #3f5a75;
}

.category-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.category-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.category-card.active .category-icon {
  color: var(--white);
}

.section-title {
  margin: 16px 0 22px;
  font-size: 18px;
  color: #333;
  align-self: flex-start;
  font-weight: 900;
}

.product-list {
  width: 100%;
  display: grid;
  gap: 14px;
}

.product-block {
  display: grid;
  gap: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card {
  background: var(--white);
  border-radius: 8px;
  padding: 0 0 0 20px;
  border: 1px solid rgb(224, 224, 224);
  display: grid;
  grid-template-columns: 1fr 56px;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 110px;
  text-transform: capitalize;
}

.product-card--with-note {
  border-radius: 8px 8px 0 0;
}

.product-note--attached {
  border: 1px solid rgb(224, 224, 224);
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: var(--white);
  padding: 8px 20px;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.product-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
  border-radius: 8px;
}

.product-block:hover .product-card {
  transform: none;
  box-shadow: none;
}

.product-info {
  display: flex;
  gap: 14px;
  align-items: center;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #6b7a8a;
  font-size: 12px;
  font-weight: 600;
}

.product-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.product-icon img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.product-info h4 {
  margin: 0 0 11px;
  font-size: 16px;
  font-weight: 600;
}

.product-info p {
  margin: 0;
  color: #9aa0a8;
  font-size: 13px;
}

.summary-card {
  margin-top: 12px;
  border-top: 1px dashed #e7e7e7;
  padding-top: 12px;
}

.product-summary {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  padding: 12px 18px;
  margin-bottom: 22px;
  justify-content: space-evenly;
}

.product-note {
  font-size: 11px;
  font-weight: 600;
  line-height: 14px;
  color: var(--text-muted);
}

.product-scarcity {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #c2572c;
}

.reseller-card .scarcity {
  display: inline-flex;
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #c2572c;
}

.toast-stack {
  position: fixed;
  right: 20px;
  bottom: 24px;
  display: grid;
  gap: 10px;
  z-index: 50;
}

.toast {
  background: #ffffff;
  border: 1px solid #e4e6eb;
  border-left: 4px solid #11b56a;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: #3a434c;
  box-shadow: var(--shadow-soft);
  min-width: 260px;
  max-width: 320px;
  line-height: 1.4;
  animation: toast-in 0.35s ease-out, toast-out 0.35s ease-in 2.8s forwards;
}

.toast strong {
  color: #1f2430;
}

.toast .product {
  color: #0a4b79;
  font-weight: 700;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toast-out {
  to { opacity: 0; transform: translateX(16px); }
}


.product-block.is-water .cart-action {
  border-radius: 0 8px 0 0;
}

.product-summary .summary-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #6f7680;
  font-weight: 600;
  font-size: 22px;
}

.qty-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #d8dce2;
  display: grid;
  place-items: center;
  color: #a1a7af;
  justify-items: center;
  font-size: 28px;
}

.qty-circle.add {
  background: var(--green-500);
  color: var(--white);
  border: none;
}

.cart-action {
  width: 44px;
  height: 100%;
  border-radius: 0 8px 8px 0;
  background: var(--green-500);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 18px;
  justify-self: end;
  transition: background 0.15s ease;
  position: relative;
}

.cart-action svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
}

.product-card:hover .cart-action {
  background: var(--green-600);
}

.reseller-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.reseller-header h3 {
  margin: 0;
  font-size: 16px;
}

.reseller-header .info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reseller-header .info span,
.legend-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d6d6d6;
  color: #666;
  font-size: 16px;
  font-weight: 700;
}

.legend-button {
  border: none;
  cursor: pointer;
}

.legend-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
}

.legend-modal.is-open {
  display: flex;
}

.legend-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.legend-card {
  position: relative;
  width: min(520px, 92vw);
  background: var(--white);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow-strong);
  z-index: 2;
}

.legend-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.legend-header p {
  margin: 0;
  font-weight: 600;
  font-size: 17px;
}

.legend-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legend-close svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.legend-subtitle {
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 14px;
}

.legend-list {
  display: grid;
  gap: 12px;
}

.legend-item {
  display: grid;
  gap: 6px;
}

.legend-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #1f2937;
}

.legend-title svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.legend-item p {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

.legend-diamante {
  color: #2d7df6;
}

.legend-ouro {
  color: #c27b00;
}

.order-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cbd7e3;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--white);
  color: #5e6a78;
  font-weight: 600;
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.order-wrap {
  position: relative;
}

.order-menu {
  position: absolute;
  right: 0;
  top: 42px;
  background: var(--white);
  border: 1px solid #e0e4ea;
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
  padding: 6px;
  display: none;
  min-width: 140px;
  z-index: 3;
}

.order-menu.open {
  display: grid;
  gap: 4px;
}

.order-menu button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  color: #5e6a78;
  font-weight: 600;
}

.order-menu button:hover {
  background: #f1f4f8;
}

.order-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.reseller-list {
  width: 100%;
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.reseller-card {
  background: var(--white);
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: 6px 1fr;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.reseller-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.reseller-card .accent {
  background: #f2f2f2;
  border-radius: 10px 0 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.brand-logo {
  max-width: 90px;
  max-height: 90px;
  object-fit: contain;
}

.brand-logo.is-rotated {
  transform: rotate(-90deg);
}

.reseller-card .content {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 10px;
  padding: 16px 18px 0 52px;
  color: #9aa0a8;
  font-size: 12px;
  height: 110px;
}

.reseller-card .content strong {
  display: block;
  color: #656b73;
  font-size: 18px;
}

.reseller-card .content div:first-child {
  margin-bottom: 8px;
}

.reseller-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 900;
}

.reseller-card .tag svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.rank-diamante {
  color: #2d7df6;
}

.rank-ouro {
  color: #c27b00;
}

.rank-gold {
  color: #c27b00;
}

.rank-silver {
  color: #687a8c;
}

.rank-bronze {
  color: #b0473d;
}

.cart-panel {
  background: var(--white);
  border-radius: 8px;
  padding: 18px 22px;
  box-shadow: var(--shadow-soft);
  margin-top: 22px;
}

.checkout-page .cart-panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

@media (max-width: 1024px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-direction: column;
}

.cart-header h3 {
  margin: 0;
  font-size: 18px;
}

.cart-header p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.cart-header .outline-button {
  align-self: center;
}

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  flex-direction: column;
}

.cart-item img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.cart-item.is-updated {
  border-color: rgba(17, 181, 106, 0.45);
  box-shadow: 0 0 0 4px rgba(17, 181, 106, 0.08);
}

.cart-item-header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-around;
}

.cart-item-title {
  font-weight: 700;
  margin: 0 0 4px;
}

.cart-item-meta {
  color: var(--text-muted);
  font-size: 12px;
}

.cart-item-variant {
  color: #5c6774;
  font-size: 12px;
  margin: 2px 0 0;
}

.cart-item-note {
  font-size: 11px;
  color: #8c96a3;
  margin-top: 2px;
}

.cart-price span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-price strong {
  font-size: 16px;
  color: var(--text-dark);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-item-prices {
  display: grid;
  gap: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.cart-item-prices strong {
  color: var(--text-dark);
  font-size: 14px;
}

.cart-qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.cart-qty-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #d8dce2;
  background: #fff;
  color: #6b7280;
  font-weight: 700;
  cursor: pointer;
}

.cart-remove {
  border: none;
  background: transparent;
  color: #d14343;
  cursor: pointer;
  font-weight: 600;
}

.cart-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
}

.cart-summary {
  background: var(--white);
  border-radius: 8px;
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
  height: fit-content;
  display: grid;
  margin-top: 22px;
  gap: 12px;
  position: sticky;
  top: 96px;
}

.cart-summary h4 {
  margin: 0;
  margin-bottom: 16px!important;
  font-size: 16px;
}

.finish-payment {
  width: 100%;
}

.offer-timer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff6e9;
  color: #9a5a1c;
  font-weight: 700;
}

.offer-timer.is-urgent {
  background: #fff0eb;
  color: #b43a2f;
}

.offer-note {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #5b6068;
  font-size: 14px;
  margin-bottom: 12px;
}

.summary-row.total {
  font-size: 16px;
  color: var(--text-dark);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e4e6eb;
}

.summary-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6b7380;
}

.checkout-address-fields.is-hidden {
  display: none;
}

.address-row {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 120px;
}

.address-row + .address-row {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .address-row {
    grid-template-columns: 1fr 90px;
  }
}

.cart-loading,
.cart-empty {
  border-radius: 12px;
  border: 1px dashed var(--gray-200);
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  display: none;
}

.cart-empty strong {
  display: block;
  color: var(--text-dark);
  font-size: 14px;
  margin-bottom: 6px;
}

.cart-section {
  margin-top: 18px;
}

.addon-grid {
  display: grid;
  gap: 10px;
}

.addon-option {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.addon-info {
  display: grid;
  gap: 2px;
}

.addon-info small {
  color: var(--text-muted);
  font-size: 11px;
}

.addon-option input {
  accent-color: var(--green-500);
}

.addon-option:hover {
  border-color: rgba(10, 75, 121, 0.2);
  box-shadow: var(--shadow-soft);
}

.order-notes {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 12px;
  font-family: inherit;
  font-size: 13px;
  resize: vertical;
  min-height: 90px;
}

.secure-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  justify-content: center;
}

.secure-note svg {
  width: 16px;
  height: 16px;
  fill: #16a34a;
}

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

  .cart-price {
    text-align: left;
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .cart-item-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .cart-item-prices {
    justify-items: start;
  }

  .cart-qty-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .main {
    padding: 0 14px 60px;
  }

  .cart-panel,
  .cart-summary {
    padding: 16px;
  }

  .cart-item {
    padding: 14px;
  }

  .cart-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-item-actions {
    gap: 10px;
  }

  .cart-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-actions .outline-button {
    width: 100%;
  }
}

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

.qty-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e9eef4;
  border: none;
  color: #7a8795;
  display: grid;
  place-items: center;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.qty-btn:hover {
  background: #dde4ee;
}

.cart-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.modal-overlay {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.modal {
  position: relative;
  background: var(--white);
  border-radius: 16px;
  padding: 18px 22px 20px;
  width: min(520px, 92vw);
  box-shadow: var(--shadow-strong);
  z-index: 2;
}

.modal.ghost {
  opacity: 0.65;
  transform: translateY(12px) scale(0.98);
  z-index: 1;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
}

.modal-close {
  font-size: 22px;
  color: #7f8790;
}

.progress-line {
  height: 4px;
  background: #e2e5ea;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 14px;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 55%;
  background: var(--green-500);
}

.form-field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.floating-field {
  position: relative;
  margin-bottom: 12px;
}

.floating-field input {
  width: 100%;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  padding: 16px 12px 8px;
  font-size: 14px;
  color: #444;
  outline: none;
  background: var(--white);
}

.floating-field input.is-autofilled {
  background: #eef1f5;
}

.floating-field input.is-loading {
  background: #f1f3f6;
}

.floating-field input.is-loading + label::after {
  content: " • carregando";
  color: #7a8795;
  font-weight: 500;
}

.is-hidden {
  display: none;
}

.checkout-form {
  display: grid;
  gap: 16px;
}

.checkout-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid #e4e6eb;
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.checkout-card.has-step {
  display: none;
}

.checkout-card.has-step.is-active {
  display: block;
}

.checkout-steps {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.checkout-steps .step {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #e4e6eb;
  background: #f7f8fb;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #6b7380;
  font-weight: 600;
}

.checkout-steps .step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dfe4ea;
  display: grid;
  place-items: center;
  color: #4f5660;
  font-weight: 700;
}

.checkout-steps .step.is-active {
  border-color: #1f7a4f;
  background: #eef6f0;
  color: #1f2430;
}

.checkout-steps .step.is-active span {
  background: #16a34a;
  color: #fff;
}

.checkout-step {
  display: none;
}

.checkout-step.is-active {
  display: block;
}

.step-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.payment-note {
  margin: 0 0 22px;
  font-size: 13px;
  color: #6b7380;
}

.delivery-addons {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.addon-option {
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  font-weight: 600;
  color: #2b3138;
}

.addon-option strong {
  margin-left: auto;
  color: #1f7a4f;
  font-size: 13px;
}

.order-confirmation {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e9f8f0;
  color: #1f7a4f;
  font-size: 13px;
  font-weight: 600;
}

.summary-row.is-hidden {
  display: none;
}

.payment-options {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.payment-option {
  flex: 1 1 140px;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--white);
  font-weight: 600;
  color: #4c535d;
}

.payment-option.is-active {
  border-color: #11b56a;
  color: #1f2430;
  box-shadow: 0 6px 14px rgba(17, 181, 106, 0.18);
}

.payment-hints {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.hint-chip {
  background: #eef6f0;
  color: #1f7a4f;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
}

.payment-option input {
  accent-color: var(--green-500);
}

.payment-panels {
  display: grid;
  gap: 14px;
  margin-bottom: 12px;
}

.payment-panels.is-hidden,
.payment-panel.is-hidden,
.payment-result.is-hidden,
.payment-transaction.is-hidden,
.secondary-button.is-hidden {
  display: none;
}

.payment-panel {
  border: 1px solid #e4e6eb;
  border-radius: 12px;
  padding: 16px;
  background: var(--white);
  display: grid;
  gap: 12px;
}

.payment-panel[data-payment-panel="pix"] {
  justify-items: center;
  text-align: center;
}

.payment-result {
  display: grid;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.payment-transaction {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f6f8fb;
  color: #5b6470;
  font-size: 13px;
  width: 100%;
  max-width: 320px;
}

.payment-transaction strong {
  color: #1f2430;
}

.payment-code {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-direction: column;
}

.payment-panel.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

.payment-panel.is-loading .payment-qr::after {
  content: "Gerando...";
  font-size: 12px;
  color: #7a8795;
}

.payment-timer {
  font-size: 14px;
  font-weight: 700;
  color: #1f2430;
  background: #f6f8fb;
  border-radius: 999px;
  padding: 6px 14px;
}

.payment-check {
  background: #e9f8f0;
  color: #1f7a4f;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  max-width: 360px;
}

.payment-status {
  display: grid;
  gap: 4px;
  color: #5b6470;
}

.payment-status strong {
  font-size: 15px;
  color: #2b3138;
}

.payment-qr {
  width: 180px;
  height: 180px;
  border-radius: 12px;
  background: #f1f3f6;
  place-items: center;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  flex-direction: row;
}

.payment-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: flex;
  justify-content: center;
  align-items: center;
}

.payment-code input {
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  color: #44505c;
  background: #f8fafc;
}

.payment-code .outline-button {
  width: 100%;
}

.payment-code .outline-button.is-success {
  background: #16a34a;
  border-color: #16a34a;
  color: #fff;
}

.pix-empty {
  border: 1px dashed #d7dbe2;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  display: grid;
  gap: 12px;
}

.payment-receipt {
  display: flex;
  justify-content: center;
}

.reviews-section {
  margin-top: 32px;
  display: grid;
  gap: 20px;
}

.reviews-header h2 {
  margin: 0;
  font-size: 22px;
  color: var(--text-dark);
}

.reviews-kicker {
  margin: 0 0 6px;
  font-size: 13px;
  color: #6b7380;
  font-weight: 600;
}

.reviews-grid {
  display: grid;
  gap: 16px;
}

.review-card {
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.review-avatar {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 84px;
}

.review-meta {
  display: grid;
  gap: 2px;
  font-size: 13px;
  color: #7a818b;
}

.review-meta strong {
  font-size: 14px;
  color: #1f2430;
}

.review-card p {
  margin: 0;
  font-size: 13px;
  color: #4f5660;
  line-height: 1.5;
}

.review-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.review-body p {
  flex: 1;
}

@media (min-width: 900px) {
  .reviews-section {
    margin-top: 40px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.payment-instructions {
  width: 100%;
  max-width: 440px;
}

.instructions {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.instruction {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  align-items: start;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px;
  color: #5b6470;
}

.instruction h2 {
  margin: 0 0 6px;
  font-size: 14px;
  color: #1f2430;
}

.instruction p {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
}

.icon-block {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #e9f4fb;
  display: grid;
  place-items: center;
  color: #0a4b79;
}

.icon-block .icon {
  width: 18px;
  height: 18px;
}

.payment-timer {
  font-size: 14px;
  font-weight: 700;
  color: #1f2430;
  background: #f6f8fb;
  border-radius: 999px;
  padding: 6px 14px;
}

.payment-check {
  background: #e9f8f0;
  color: #1f7a4f;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  width: 100%;
  max-width: 360px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}


.floating-field label {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa0a8;
  font-size: 13px;
  transition: all 0.15s ease;
  pointer-events: none;
  background: transparent;
}

.floating-field.is-filled label,
.floating-field input:focus + label {
  top: 0;
  font-size: 12px;
  color: #7a8795;
  background: #fff;
  padding: 0 6px;
}

.floating-field.is-valid::after {
  content: "✓";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #16a34a;
  font-size: 14px;
  font-weight: 700;
}

.trust-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1f2430;
  background: #f5f7fb;
  padding: 6px 10px;
  border-radius: 999px;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  fill: #16a34a;
}

.trust-cards {
  display: grid;
  gap: 12px;
}

.trust-card {
  border: 1px solid #e4e6eb;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow-soft);
}

.trust-card strong {
  display: block;
  font-size: 13px;
  color: #1f2430;
  margin-bottom: 4px;
}

.trust-card p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #eef6f0;
  display: grid;
  place-items: center;
}

.trust-icon svg {
  width: 18px;
  height: 18px;
  fill: #16a34a;
}

@media (min-width: 900px) {
  .trust-cards {
    grid-template-columns: repeat(1, 1fr);
  }
}

.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  padding: 10px 12px;
  color: #7a8795;
}

.input-wrap .outline-button {
  margin-left: auto;
  white-space: nowrap;
}

.input-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: #444;
}

.modal-note {
  font-size: 12px;
  color: #9aa0a8;
  margin-top: 4px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.modal-actions .outline-button,
.modal-actions .secondary-button {
  padding: 10px 16px;
  border-radius: 8px;
}

.channel-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.channel-option {
  border-radius: 10px;
  border: 1px solid #e4e6eb;
  padding: 12px 10px;
  text-align: center;
  font-weight: 600;
  background: var(--white);
  color: #69707a;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.channel-option.active {
  background: var(--green-500);
  color: var(--white);
  border-color: transparent;
}

.channel-option:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.otp-inputs {
  display: grid;
  grid-template-columns: repeat(4, 44px);
  gap: 10px;
  margin: 12px 0 8px;
}

.otp-inputs input {
  width: 44px;
  height: 44px;
  text-align: center;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  font-size: 18px;
}

.timer-pill {
  font-size: 12px;
  color: #b0b5bc;
  background: #f2f3f5;
  border-radius: 8px;
  padding: 6px 10px;
  display: inline-block;
}

.chat-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #1aa7d2;
  box-shadow: 0 10px 16px rgba(14, 22, 33, 0.2);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

[data-nav] {
  cursor: pointer;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .topbar-actions {
    justify-content: center;
  }

  .location-pill {
    width: 100%;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero p {
    margin: 0 auto 18px;
  }

  .hero-visual {
    order: -1;
  }

  .category-row {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }

  .modal-actions {
    grid-template-columns: 1fr;
  }
}

.alerta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 18px;
  margin: 22px 8px;
  background: linear-gradient(90deg, #FFF7ED, #FFEDD5);
  color: #9A3412;
  font-weight: 500;
  font-size: 14px;
  border-left: 4px solid #FB923C;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
  flex-direction: column;
}
