/* ==========================================================================
   Cartão Saúde do Bem — Loja / Carrinho / Checkout
   Identidade visual herdada de index.html
   ========================================================================== */

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

/* o atributo hidden precisa vencer os display: flex/grid dos componentes */
[hidden] { display: none !important; }

:root {
  --green: #00a82c;
  --green-dark: #008a22;
  --green-darker: #00701b;
  --green-light: #f2fbf4;
  --green-mid: #e3f5e7;
  --yellow: #ffd200;
  --yellow-dark: #e6bc00;
  --dark: #1a1a1a;
  --gray: #5c6b60;
  --gray-light: #8a978e;
  --border: #e2e8e4;
  --border-strong: #cdd8d1;
  --red: #e53935;
  --red-light: #fdecea;
  --bg: #f7faf8;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(16,40,24,.06), 0 1px 2px rgba(16,40,24,.04);
  --shadow: 0 4px 20px rgba(16,40,24,.07);
  --shadow-lg: 0 12px 40px rgba(16,40,24,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; line-height: 1.25; }
a { color: var(--green-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

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

/* ───── TOPBAR ───── */
.topbar {
  background: var(--green-dark);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .3px;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 40px; flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: underline; }
.topbar-secure { display: inline-flex; align-items: center; gap: 7px; opacity: .9; font-weight: 400; }
.topbar svg { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }

/* ───── HEADER ───── */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav .btn { display: none; }   /* atalho exclusivo do menu mobile */
.main-nav a {
  color: var(--green-dark);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .4px;
  text-transform: uppercase;
  text-decoration: none;
  transition: color .18s;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--yellow-dark); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.cart-link {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-dark);
  text-decoration: none;
  transition: background .18s, transform .15s;
}
.cart-link:hover { background: var(--green-mid); transform: translateY(-1px); }
.cart-link svg { width: 22px; height: 22px; fill: currentColor; }
.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 11px;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
}
.cart-count[hidden] { display: none; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; fill: var(--green-dark); }

/* ───── BOTÕES ───── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .3px;
  padding: 15px 30px;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background .18s, transform .15s, box-shadow .18s, color .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[aria-disabled="true"] {
  opacity: .5; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.btn-yellow { background: var(--yellow); color: var(--dark); box-shadow: 0 4px 14px rgba(255,210,0,.35); }
.btn-yellow:hover { background: var(--yellow-dark); box-shadow: 0 6px 20px rgba(255,210,0,.45); }

.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 14px rgba(0,168,44,.28); }
.btn-green:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(0,168,44,.35); }

.btn-outline { background: #fff; color: var(--green-dark); border-color: var(--green); }
.btn-outline:hover { background: var(--green-light); }

.btn-ghost { background: transparent; color: var(--gray); padding: 15px 20px; }
.btn-ghost:hover { color: var(--green-dark); background: var(--green-light); }

.btn-block { width: 100%; }
.btn-lg { padding: 18px 34px; font-size: 16.5px; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

/* ───── PAGE HEAD ───── */
.page-head { padding: 34px 0 8px; }
.breadcrumb {
  font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--gray-light); font-weight: 700;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--green-dark); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current { color: var(--dark); }

.page-title {
  font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 900;
  margin: 14px 0 6px;
}
.page-sub { color: var(--gray); font-size: 16.5px; max-width: 640px; }

main { flex: 1; padding-bottom: 70px; }

/* ───── NOTICE / TOAST ───── */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-left: 4px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 15px;
  color: #17421f;
}
.notice svg { width: 20px; height: 20px; fill: var(--green); flex-shrink: 0; margin-top: 2px; }
.notice.warn { background: #fffaf0; border-color: #ffe8b3; border-left-color: var(--yellow-dark); color: #6b5200; }
.notice.warn svg { fill: var(--yellow-dark); }
.notice strong { font-weight: 900; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 130%);
  z-index: 300;
  display: flex; align-items: center; gap: 11px;
  background: var(--dark); color: #fff;
  padding: 14px 24px; border-radius: 50px;
  font-size: 15px; font-weight: 700;
  box-shadow: var(--shadow-lg);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 19px; height: 19px; fill: var(--yellow); flex-shrink: 0; }

/* ───── GRID DE PRODUTOS ───── */
.shop-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin: 26px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.shop-count { color: var(--gray); font-size: 15px; }
.shop-count strong { color: var(--dark); font-weight: 900; }

.select-plain {
  appearance: none;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235c6b60'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 11px 42px 11px 15px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .18s;
}
.select-plain:hover, .select-plain:focus { border-color: var(--green); outline: none; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 26px;
}

.product-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .22s, transform .22s, border-color .22s;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--green-mid);
}
.product-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--yellow);
  color: var(--dark);
  font-size: 12.5px; font-weight: 900;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.product-badge.badge-green { background: var(--green); color: #fff; }

.product-media {
  background: linear-gradient(160deg, var(--green-light) 0%, #fff 100%);
  padding: 34px 24px;
  display: flex; align-items: center; justify-content: center;
  min-height: 240px;
}
.product-media img {
  max-height: 190px; width: auto;
  filter: drop-shadow(0 12px 24px rgba(0,110,30,.22));
  transition: transform .3s;
}
.product-card:hover .product-media img { transform: scale(1.05) rotate(-2deg); }

.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: 11.5px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 8px;
}
.product-name { font-size: 21px; font-weight: 900; margin-bottom: 10px; }
.product-desc { font-size: 14.5px; color: var(--gray); margin-bottom: 18px; }

.product-features { list-style: none; margin-bottom: 20px; display: grid; gap: 8px; }
.product-features li {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 14.5px; color: var(--gray);
}
.product-features svg { width: 17px; height: 17px; fill: var(--green); flex-shrink: 0; margin-top: 3px; }

.price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.price-old { font-size: 16px; color: var(--gray-light); text-decoration: line-through; }
.price-now { font-size: 30px; font-weight: 900; color: var(--dark); font-family: 'Nunito', sans-serif; }
.price-note { font-size: 13.5px; color: var(--gray); margin-bottom: 20px; }
.price-note strong { color: var(--green-dark); font-weight: 900; }

.product-actions { margin-top: auto; display: grid; gap: 10px; }

/* ───── PLANO EM DESTAQUE (card único da loja) ───── */
.plan-hero {
  position: relative;
  background: #fff;
  border: 2px solid var(--green-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
}
.plan-hero-media {
  background: linear-gradient(160deg, var(--green-light) 0%, var(--green-mid) 100%);
  padding: 34px 26px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center;
}
.plan-hero-media img {
  max-height: 210px; width: auto;
  filter: drop-shadow(0 14px 28px rgba(0,110,30,.25));
}
.plan-hero-seal {
  background: #fff;
  border: 1px solid var(--green-mid);
  border-radius: 50px;
  padding: 7px 16px;
  font-size: 12.5px; font-weight: 900; color: var(--green-darker);
  display: inline-flex; align-items: center; gap: 7px;
}
.plan-hero-seal svg { width: 15px; height: 15px; fill: var(--green); }

.plan-hero-body { padding: 30px 32px 32px; }
.plan-hero-cat {
  font-size: 11.5px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--green); margin-bottom: 7px;
}
.plan-hero-name { font-size: clamp(23px, 2.6vw, 29px); font-weight: 900; margin-bottom: 9px; }
.plan-hero-desc { font-size: 15.5px; color: var(--gray); margin-bottom: 20px; }

/* ───── ESCOLHA DA FORMA DE PAGAMENTO ───── */
.pay-title {
  font-size: 14.5px; font-weight: 900;
  display: flex; align-items: center; gap: 9px;
  margin-bottom: 4px;
}
.pay-title svg { width: 18px; height: 18px; fill: var(--green); }
.pay-hint { font-size: 13.5px; color: var(--gray); margin-bottom: 14px; }

.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }

.pay-option {
  position: relative;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
  cursor: pointer;
  background: #fff;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
  display: block;
}
.pay-option:hover { border-color: var(--green); transform: translateY(-2px); }
.pay-option input { position: absolute; opacity: 0; pointer-events: none; }
.pay-option-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pay-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0; position: relative; transition: border-color .18s;
}
.pay-dot::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--green);
  transform: scale(0); transition: transform .18s;
}
.pay-label { font-size: 14px; font-weight: 900; }
.pay-value {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-size: 26px; font-weight: 900; line-height: 1.15;
  margin-bottom: 5px;
}
.pay-value small { font-size: 15px; font-weight: 700; color: var(--gray); }
.pay-sub { display: block; font-size: 13px; color: var(--gray); line-height: 1.45; }
.pay-tag {
  position: absolute; top: -11px; left: 14px;
  background: var(--yellow); color: var(--dark);
  font-size: 11px; font-weight: 900; letter-spacing: .5px; text-transform: uppercase;
  padding: 4px 11px; border-radius: 50px;
  box-shadow: 0 2px 7px rgba(0,0,0,.12);
}
.pay-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(0,168,44,.12);
}
.pay-option:has(input:checked) .pay-dot { border-color: var(--green); }
.pay-option:has(input:checked) .pay-dot::after { transform: scale(1); }
.pay-option:has(input:checked) .pay-value { color: var(--green-darker); }

.plan-hero-features { list-style: none; display: grid; gap: 9px; margin-bottom: 22px; }
.plan-hero-features li { display: flex; align-items: flex-start; gap: 9px; font-size: 14.5px; color: var(--gray); }
.plan-hero-features svg { width: 17px; height: 17px; fill: var(--green); flex-shrink: 0; margin-top: 3px; }

.plan-hero-actions { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.plan-hero-actions .btn { width: 100%; }

/* card secundário: plano empresarial */
.plan-side {
  margin-top: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 30px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.plan-side-icon {
  width: 54px; height: 54px; flex-shrink: 0;
  border-radius: 14px;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
}
.plan-side-icon svg { width: 26px; height: 26px; fill: var(--green); }
.plan-side-info { flex: 1; min-width: 220px; }
.plan-side-info h3 { font-size: 18px; font-weight: 900; margin-bottom: 5px; }
.plan-side-info p { font-size: 14.5px; color: var(--gray); }

/* ───── LOJA: LAYOUT COM SIDEBAR DE PARCEIROS ───── */
.shop-shell {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-top: 26px;
}

.shop-sidebar { position: sticky; top: 104px; display: grid; gap: 20px; }

.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.side-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--green-light), #fff);
}
.side-card-head h2 {
  font-size: 15px; font-weight: 900;
  display: flex; align-items: center; gap: 9px;
}
.side-card-head h2 svg { width: 18px; height: 18px; fill: var(--green); flex-shrink: 0; }
.side-card-head p { font-size: 12.8px; color: var(--gray); margin-top: 4px; }
.side-card-body { padding: 16px; display: grid; gap: 12px; }

.partner {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.partner:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}
.partner-thumb {
  width: 72px; height: 48px; flex-shrink: 0;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 4px;
  overflow: hidden;
}
.partner-thumb img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }
.partner-info { min-width: 0; }
.partner-name { font-size: 14px; font-weight: 900; line-height: 1.25; }
.partner-off {
  display: inline-block;
  margin-top: 4px;
  background: var(--green-light);
  color: var(--green-darker);
  border: 1px solid var(--green-mid);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11.5px; font-weight: 900; letter-spacing: .3px;
}
.partner-off.yellow { background: #fff8dd; border-color: #ffe9a8; color: #7a6000; }

.side-note {
  font-size: 12.5px; color: var(--gray-light);
  padding: 0 16px 16px; line-height: 1.5;
}

.side-help {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: var(--shadow);
}
.side-help h2 { font-size: 16.5px; font-weight: 900; margin-bottom: 7px; }
.side-help p { font-size: 13.8px; color: rgba(255,255,255,.9); margin-bottom: 16px; }
.side-help .btn { width: 100%; }

/* ───── LAYOUT COM SIDEBAR (carrinho / checkout) ───── */
.shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 30px;
  align-items: start;
  margin-top: 28px;
}

.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 22px; }
.panel-head {
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.panel-head h2 { font-size: 18px; font-weight: 900; }
.panel-body { padding: 26px; }

/* ───── ITEM DO CARRINHO ───── */
.cart-item { display: flex; gap: 20px; align-items: center; padding: 24px 26px; }
.cart-item + .cart-item { border-top: 1px solid var(--border); }
.cart-item-media {
  width: 104px; flex-shrink: 0;
  background: linear-gradient(160deg, var(--green-light), #fff);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-media img { max-height: 78px; width: auto; filter: drop-shadow(0 4px 10px rgba(0,110,30,.18)); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-cat {
  font-size: 11px; font-weight: 900; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--green); margin-bottom: 5px;
}
.cart-item-name { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.cart-item-meta { font-size: 14px; color: var(--gray); }

.qty-fixed {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-light);
  border: 1px solid var(--green-mid);
  border-radius: 50px;
  padding: 6px 15px;
  font-size: 13.5px; font-weight: 700; color: var(--green-darker);
  margin-top: 10px;
}
.qty-fixed svg { width: 15px; height: 15px; fill: var(--green); }

.cart-item-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cart-item-price { font-size: 22px; font-weight: 900; font-family: 'Nunito', sans-serif; }
.cart-item-price small { display: block; font-size: 13px; font-weight: 400; color: var(--gray-light); text-decoration: line-through; }

.link-remove {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  color: var(--gray-light); font-size: 13.5px; font-weight: 700;
  padding: 4px; border-radius: 6px;
  transition: color .18s;
}
.link-remove:hover { color: var(--red); }
.link-remove svg { width: 15px; height: 15px; fill: currentColor; }

.cart-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 20px 26px;
  border-top: 1px solid var(--border);
  background: #fbfdfc;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* ───── ESTADO VAZIO ───── */
.empty-state { text-align: center; padding: 68px 26px; }
.empty-icon {
  width: 92px; height: 92px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green-light);
  display: flex; align-items: center; justify-content: center;
}
.empty-icon svg { width: 42px; height: 42px; fill: var(--green); }
.empty-state h2 { font-size: 24px; font-weight: 900; margin-bottom: 10px; }
.empty-state p { color: var(--gray); max-width: 420px; margin: 0 auto 26px; }

/* ───── RESUMO DO PEDIDO ───── */
.summary { position: sticky; top: 104px; }
.summary-card {
  background: #fff;
  border: 2px solid var(--green-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.summary-head {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.summary-head h2 { font-size: 17px; font-weight: 900; letter-spacing: .4px; }
.summary-head svg { width: 20px; height: 20px; fill: #fff; }
.summary-body { padding: 22px 24px; }

.summary-item { display: flex; gap: 14px; align-items: center; padding-bottom: 18px; border-bottom: 1px dashed var(--border); }
.summary-item-media {
  width: 58px; height: 58px; flex-shrink: 0;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 7px;
}
.summary-item-media img { max-height: 100%; width: auto; }
.summary-item-name { font-size: 15px; font-weight: 900; line-height: 1.3; }
.summary-item-qty { font-size: 13px; color: var(--gray); }
.summary-item-price { margin-left: auto; font-weight: 900; font-size: 15.5px; white-space: nowrap; }

.summary-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 0;
  font-size: 15px; color: var(--gray);
}
.summary-line span:last-child { font-weight: 700; color: var(--dark); }
.summary-line.discount span:last-child { color: var(--green); }
.summary-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 16px 0 4px;
  border-top: 2px solid var(--border);
  margin-top: 6px;
}
.summary-total .label { font-size: 16px; font-weight: 900; font-family: 'Nunito', sans-serif; }
.summary-total .value { font-size: 30px; font-weight: 900; font-family: 'Nunito', sans-serif; color: var(--green-dark); }
.summary-installment { font-size: 13.5px; color: var(--gray); text-align: right; margin-bottom: 20px; }

.summary-cta { margin-top: 4px; }
.summary-foot { padding: 0 24px 22px; }

/* cupom */
.coupon { border-top: 1px solid var(--border); padding: 18px 24px; }
.coupon-toggle {
  display: flex; align-items: center; gap: 9px;
  background: none; border: none; cursor: pointer; padding: 0;
  font-size: 14.5px; font-weight: 900; color: var(--green-dark);
}
.coupon-toggle svg { width: 17px; height: 17px; fill: currentColor; }
.coupon-form { display: none; gap: 9px; margin-top: 14px; }
.coupon-form.open { display: flex; }
.coupon-form input { flex: 1; min-width: 0; }
.coupon-msg { font-size: 13.5px; margin-top: 9px; font-weight: 700; }
.coupon-msg.ok { color: var(--green-dark); }
.coupon-msg.err { color: var(--red); }

/* selos de confiança */
.trust-list { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.trust-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 13.8px; color: var(--gray); line-height: 1.45; }
.trust-list svg { width: 19px; height: 19px; fill: var(--green); flex-shrink: 0; margin-top: 1px; }
.trust-list strong { color: var(--dark); font-weight: 900; display: block; }

.payment-flags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.flag {
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 11px;
  font-size: 11.5px; font-weight: 900; letter-spacing: .5px;
  color: var(--gray-light);
  background: #fbfdfc;
}

/* bandeiras oficiais (Visa, MasterCard, Elo, Pix, boleto) */
.flag-brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  padding: 4px 7px;
  color: var(--gray-light);
  transition: color .18s, border-color .18s;
}
.flag-brand svg { width: 100%; height: 100%; fill: currentColor; }
.flag-brand:hover { color: var(--gray); border-color: var(--border-strong); }

/* ───── STEPPER ───── */
.stepper { display: flex; align-items: flex-start; gap: 0; margin: 30px 0 26px; }
.step {
  flex: 1; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
  background: none; border: none; padding: 0;
  cursor: default;
}
.step::before, .step::after {
  content: ''; position: absolute; top: 21px; height: 3px;
  background: var(--border); z-index: 0;
}
.step::before { left: 0; width: 50%; }
.step::after { right: 0; width: 50%; }
.step:first-child::before, .step:last-child::after { display: none; }
.step.done::before, .step.done::after, .step.active::before { background: var(--green); }

.step-num {
  position: relative; z-index: 1;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff;
  border: 3px solid var(--border);
  color: var(--gray-light);
  font-weight: 900; font-size: 16px; font-family: 'Nunito', sans-serif;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.step-num svg { width: 20px; height: 20px; fill: #fff; }
.step-label {
  font-size: 13.5px; font-weight: 900; color: var(--gray-light);
  letter-spacing: .3px; transition: color .25s; padding: 0 4px;
}
.step.active .step-num {
  background: var(--green); border-color: var(--green); color: #fff;
  box-shadow: 0 0 0 6px rgba(0,168,44,.14);
}
.step.active .step-label { color: var(--green-dark); }
.step.done .step-num { background: var(--green); border-color: var(--green); color: #fff; }
.step.done .step-label { color: var(--dark); }
.step.done { cursor: pointer; }
.step.done:hover .step-num { background: var(--green-dark); border-color: var(--green-dark); }

/* ───── FORMULÁRIO ───── */
.fieldset + .fieldset { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--border); }
.fieldset-title { font-size: 16px; font-weight: 900; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.fieldset-title svg { width: 19px; height: 19px; fill: var(--green); }
.fieldset-hint { font-size: 14px; color: var(--gray); margin-bottom: 20px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.grid-2 .field, .grid-3 .field { margin-bottom: 0; }
.field.span-2 { grid-column: span 2; }

.field label { font-size: 14px; font-weight: 900; color: var(--dark); }
.field label .opt { font-weight: 400; color: var(--gray-light); font-size: 13px; }
.field .hint { font-size: 12.8px; color: var(--gray-light); }

.field input, .field select, .field textarea {
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 15.5px;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select {
  appearance: none; cursor: pointer;
  background: #fff url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235c6b60'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 13px center / 21px;
  padding-right: 44px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0,168,44,.13);
}
.field input::placeholder, .field textarea::placeholder { color: #b3bfb7; }
.field input:disabled, .field select:disabled { background: #f4f7f5; color: var(--gray); cursor: not-allowed; }

.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); background: #fffbfb; }
.field.invalid input:focus, .field.invalid select:focus { box-shadow: 0 0 0 4px rgba(229,57,53,.12); }
.field.valid input:not(:placeholder-shown), .field.valid select { border-color: var(--green); }

.field-error {
  display: none;
  align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--red);
}
.field.invalid .field-error { display: flex; }
.field-error svg { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

.cep-row { display: grid; grid-template-columns: 190px auto; gap: 14px; align-items: end; }
.cep-status { font-size: 13.5px; font-weight: 700; color: var(--gray); padding-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.cep-status.ok { color: var(--green-dark); }
.cep-status.err { color: var(--red); }
.cep-status svg { width: 16px; height: 16px; fill: currentColor; }
.spinner {
  width: 15px; height: 15px; flex-shrink: 0;
  border: 2px solid var(--border-strong); border-top-color: var(--green);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* escolha tipo de pessoa */
.choice-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.choice {
  position: relative;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 15px 17px;
  cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  transition: border-color .18s, background .18s, box-shadow .18s;
}
.choice:hover { border-color: var(--green); background: var(--green-light); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-dot {
  width: 21px; height: 21px; border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0; position: relative; transition: border-color .18s;
}
.choice-dot::after {
  content: ''; position: absolute; inset: 3px;
  border-radius: 50%; background: var(--green);
  transform: scale(0); transition: transform .18s;
}
.choice-text { font-size: 15px; font-weight: 900; }
.choice-text small { display: block; font-size: 12.8px; font-weight: 400; color: var(--gray); }
.choice input:checked ~ .choice-dot { border-color: var(--green); }
.choice input:checked ~ .choice-dot::after { transform: scale(1); }
.choice:has(input:checked) {
  border-color: var(--green); background: var(--green-light);
  box-shadow: 0 0 0 3px rgba(0,168,44,.1);
}

/* checkbox */
.check {
  display: flex; align-items: flex-start; gap: 12px;
  cursor: pointer; font-size: 14.5px; color: var(--gray);
  padding: 4px 0;
}
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box {
  width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px;
  border: 2px solid var(--border-strong);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  transition: background .18s, border-color .18s;
}
.check-box svg { width: 14px; height: 14px; fill: #fff; opacity: 0; transform: scale(.5); transition: all .18s; }
.check input:checked ~ .check-box { background: var(--green); border-color: var(--green); }
.check input:checked ~ .check-box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible ~ .check-box { box-shadow: 0 0 0 4px rgba(0,168,44,.18); }
.check a { font-weight: 700; }
.check.invalid .check-box { border-color: var(--red); }

/* navegação entre passos */
.step-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 28px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.step-nav .btn-ghost { order: -1; }

/* revisão */
.review-block { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 22px; }
.review-block + .review-block { margin-top: 16px; }
.review-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px;
}
.review-head h3 { font-size: 15.5px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
.review-head h3 svg { width: 17px; height: 17px; fill: var(--green); }
.btn-edit {
  background: none; border: none; cursor: pointer;
  color: var(--green-dark); font-size: 13.5px; font-weight: 900;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 7px;
  transition: background .18s;
}
.btn-edit:hover { background: var(--green-light); }
.btn-edit svg { width: 14px; height: 14px; fill: currentColor; }

.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; }
.review-item .k { font-size: 12px; font-weight: 900; letter-spacing: .7px; text-transform: uppercase; color: var(--gray-light); margin-bottom: 2px; }
.review-item .v { font-size: 15px; color: var(--dark); word-break: break-word; }

/* handoff pagamento */
.handoff {
  background: linear-gradient(135deg, var(--green-light) 0%, #fff 100%);
  border: 2px solid var(--green-mid);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-top: 26px;
  display: flex; gap: 18px; align-items: flex-start;
}
.handoff-icon {
  width: 50px; height: 50px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.handoff-icon svg { width: 25px; height: 25px; fill: #fff; }
.handoff h3 { font-size: 16.5px; font-weight: 900; margin-bottom: 7px; }
.handoff p { font-size: 14.5px; color: var(--gray); }

/* overlay de saída para o gateway */
.overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,25,14,.72);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.overlay.show { display: flex; }
.overlay-card {
  background: #fff;
  border-radius: 20px;
  padding: 42px 38px;
  max-width: 440px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  animation: pop .3s cubic-bezier(.2,.8,.3,1);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.97); } }
.overlay-ring {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%;
  border: 5px solid var(--green-mid); border-top-color: var(--green);
  animation: spin .9s linear infinite;
}
.overlay-check {
  width: 72px; height: 72px; margin: 0 auto 22px;
  border-radius: 50%; background: var(--green);
  display: flex; align-items: center; justify-content: center;
}
.overlay-check svg { width: 36px; height: 36px; fill: #fff; }
.overlay-card h2 { font-size: 23px; font-weight: 900; margin-bottom: 10px; }
.overlay-card p { color: var(--gray); font-size: 15px; margin-bottom: 8px; }
.order-code {
  display: inline-block;
  background: var(--green-light);
  border: 1px dashed var(--green);
  border-radius: 9px;
  padding: 9px 18px;
  font-family: 'Nunito', monospace;
  font-weight: 900; font-size: 17px; letter-spacing: 1.4px;
  color: var(--green-darker);
  margin: 12px 0 20px;
}
.overlay-actions { display: grid; gap: 10px; }

/* ───── FOOTER ───── */
.site-footer {
  background: var(--green);
  color: rgba(255,255,255,.94);
  padding: 40px 0 34px;
  text-align: center;
  margin-top: auto;
}
.footer-flags { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.footer-flags .flag {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.28);
  color: #fff;
  padding: 8px 15px;
  font-size: 12px;
}
.footer-flags .flag-brand {
  background: rgba(255,255,255,.16);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  width: 58px; height: 36px;
}
.footer-flags .flag-brand:hover { background: rgba(255,255,255,.26); border-color: rgba(255,255,255,.45); color: #fff; }
.site-footer p { font-size: 14.5px; }
.site-footer strong { font-weight: 900; color: #fff; }
.footer-links { margin-top: 14px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.9); font-size: 14px; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; color: #fff; }

/* ───── WHATSAPP FLOAT ───── */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,.45);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.09); }
.whatsapp-float svg { width: 31px; height: 31px; fill: #fff; }

/* ───── RESPONSIVO ───── */
@media (max-width: 1024px) {
  .shell { grid-template-columns: 1fr; }
  .summary { position: static; }
  .summary-card { max-width: 100%; }

  /* na loja, os parceiros vão para baixo dos produtos */
  .shop-shell { grid-template-columns: 1fr; }
  .shop-sidebar {
    position: static;
    order: 2;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .shop-main { order: 1; }
}

@media (max-width: 860px) {
  .site-header .wrap { min-height: 72px; }
  .brand img { height: 42px; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 20px 18px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .header-actions .btn { display: none; }
  .main-nav .btn { display: inline-flex; margin-top: 14px; }
}

@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .topbar { font-size: 12.5px; }
  .topbar-secure { display: none; }
  .page-head { padding: 24px 0 4px; }
  main { padding-bottom: 46px; }

  .grid-2, .grid-3, .choice-row { grid-template-columns: 1fr; gap: 16px; }
  .grid-2 .field, .grid-3 .field { margin-bottom: 0; }
  .field.span-2 { grid-column: span 1; }
  .cep-row { grid-template-columns: 1fr; }
  .cep-status { padding-bottom: 0; }

  .panel-body { padding: 20px 18px; }
  .panel-head { padding: 17px 18px; }
  .cart-item { flex-wrap: wrap; padding: 20px 18px; gap: 16px; }
  .cart-item-media { width: 76px; }
  .cart-item-media img { max-height: 56px; }
  .cart-item-right { width: 100%; flex-direction: row; align-items: center; justify-content: space-between; }
  .cart-foot { padding: 18px; }
  .cart-foot .btn { width: 100%; }

  .stepper { margin: 22px 0 20px; }
  .step-num { width: 38px; height: 38px; font-size: 14px; }
  .step::before, .step::after { top: 18px; }
  .step-label { font-size: 11.5px; }

  .step-nav { flex-direction: column-reverse; gap: 10px; }
  .step-nav .btn { width: 100%; }

  .product-media { min-height: 200px; padding: 26px 20px; }
  .product-media img { max-height: 158px; }

  .plan-hero { grid-template-columns: 1fr; }
  .plan-hero-media { padding: 26px 20px; }
  .plan-hero-media img { max-height: 168px; }
  .plan-hero-body { padding: 24px 20px 26px; }
  .pay-options { grid-template-columns: 1fr; gap: 16px; }
  .pay-tag { top: -10px; left: 12px; }
  .plan-hero-actions { grid-template-columns: 1fr; }
  .plan-side { padding: 22px 20px; gap: 16px; }
  .plan-side .btn { width: 100%; }
  .handoff { flex-direction: column; gap: 14px; padding: 20px; }
  .overlay-card { padding: 34px 24px; }
  .whatsapp-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .whatsapp-float svg { width: 27px; height: 27px; }
}

@media print {
  .topbar, .site-header, .site-footer, .whatsapp-float, .step-nav, .overlay { display: none !important; }
}
