/* AI search on the beta homepage. Scoped so it does not restyle the header, banners or footer. */
.md-busca { background:#fff; color:#1A1A1A; font-family:"Outfit","Helvetica Neue",Arial,sans-serif; padding: 0 0 20px; }
.md-busca * { box-sizing: border-box; }
.md-busca-hero { max-width: 1080px; margin: 0 auto; padding: 48px 24px 8px; text-align: center; }
.md-busca-kicker { display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:500; color:#5E5E5E; background:#F4F4F4; border:1px solid #E8E6E3; padding:6px 14px; border-radius:999px; }
.md-busca-kicker svg { width:14px; height:14px; color:#108F34; }
.md-busca h1 { font-size:54px; line-height:1.08; letter-spacing:-.03em; font-weight:600; margin:22px 0 14px; color:#1A1A1A; }
.md-busca-lead { font-size:19px; color:#5E5E5E; margin:0 auto 10px; max-width:620px; }
.md-busca h1 span { display:block; }
.md-busca-hint { margin:10px 0 0; padding:0 8px; text-align:center; font-size:14px; color:#5E5E5E; line-height:1.4; }
.md-busca-own { font-size:15px; color:#5E5E5E; margin:0 auto 18px; max-width:720px; line-height:1.45; }
.md-busca-own a { color:#108F34; text-decoration:underline; text-underline-offset:2px; font-weight:500; white-space:nowrap; }
.md-busca-own a:hover { color:#0c7a2c; }

/* Elevated device-like window */
.md-box {
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 22px 16px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px -24px rgba(15,23,42,.28), 0 0 0 1px rgba(15,23,42,.06);
  position: relative;
}
.md-box-chrome { display:flex; align-items:center; justify-content:space-between; margin-bottom: 14px; padding: 0 6px; }
.md-box-dots-win { display:flex; gap:7px; }
.md-box-dots-win i { width:10px; height:10px; border-radius:50%; display:block; }
.md-box-dots-win i:nth-child(1){ background:#A7001F; }
.md-box-dots-win i:nth-child(2){ background:#108F34; }
.md-box-dots-win i:nth-child(3){ background:#E8E6E3; }
.md-box-beta { font-size:10px; font-weight:700; letter-spacing:.08em; color:#108F34; background:#e8f6ef; border-radius:999px; padding:4px 9px; }

.md-box-search { display:flex; align-items:center; gap:8px; border:1.5px solid #E8E6E3; border-radius:999px; padding:8px 10px 8px 18px; background:#fff; }
.md-box-search:focus-within { border-color:#c9ced8; box-shadow: 0 0 0 4px rgba(16,143,52,.08); }
.md-box-search .mag { width:20px; height:20px; color:#98a1b2; flex:none; }
.md-box-search input { flex:1; min-width:0; border:0; outline:0; font:inherit; font-size:18px; color:#1A1A1A; background:transparent; padding:10px 4px; }
.md-box-search input::placeholder { color:#98a1b2; }
.md-box-caret { display:inline-block; width:1.5px; height:1.15em; background:#6d28d9; margin-left:1px; vertical-align:-2px; animation: md-blink 1s steps(1) infinite; }
.md-box.is-live .md-box-caret { display:none; }
@keyframes md-blink { 50% { opacity:0; } }
.md-box-photo { width:32px; height:32px; border-radius:8px; object-fit:cover; display:none; border:1px solid #E8E6E3; flex:none; }
.md-box-photo.is-on { display:block; }
.md-box-iconbtn { width:40px; height:40px; border:0; background:transparent; color:#5E5E5E; border-radius:50%; cursor:pointer; display:grid; place-items:center; flex:none; }
.md-box-iconbtn:hover { background:#F4F4F4; color:#1A1A1A; }
.md-box-iconbtn.is-on { background:#e8f6ef; color:#108F34; }
.md-box-iconbtn svg { width:20px; height:20px; }

/* Live preview row (4 compact cards) */
.md-previews { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin: 18px 0 16px; min-height: 0; }
.md-previews.is-empty { display:none; }
.md-preview { border:1px solid #E8E6E3; border-radius:16px; padding:10px 10px 12px; background:#fff; cursor:pointer; text-align:left; display:flex; flex-direction:column; opacity:0; transform:translateY(8px); animation: md-in .45s ease forwards; }
.md-preview:nth-child(2){ animation-delay:.08s; }
.md-preview:nth-child(3){ animation-delay:.16s; }
.md-preview:nth-child(4){ animation-delay:.24s; }
@keyframes md-in { to { opacity:1; transform:none; } }
.md-preview .tag { font-size:10px; font-weight:700; letter-spacing:.06em; color:#5E5E5E; margin-bottom:6px; text-transform:uppercase; }
.md-preview.is-best { border-color:#108F34; box-shadow: 0 8px 24px -16px rgba(16,143,52,.7); }
.md-preview.is-best .tag { color:#108F34; }
.md-preview .pic { aspect-ratio:1; display:grid; place-items:center; margin-bottom:8px; }
.md-preview .pic img { width:88%; height:88%; object-fit:contain; max-width:none; }
.md-preview h4 { font-size:13.5px; font-weight:600; margin:0 0 2px; line-height:1.3; color:#1A1A1A; }
.md-preview .pr { font-size:13px; color:#5E5E5E; }
.md-preview .pr b { color:#1A1A1A; font-weight:600; }

.md-assistant { display:flex; gap:12px; align-items:flex-start; border-radius:16px; padding:12px 16px; background: linear-gradient(90deg, #eef8f1 0%, #f7f3ee 100%); text-align:left; min-height: 64px; }
.md-assistant .av { width:32px; height:32px; min-width:32px; border-radius:50%; background:#108F34; color:#fff; display:grid; place-items:center; }
.md-assistant .av svg { width:16px; height:16px; }
.md-assistant small { display:block; font-size:10.5px; font-weight:700; letter-spacing:.08em; color:#108F34; margin-bottom:2px; }
.md-assistant p { margin:0; font-size:15px; color:#2b3445; line-height:1.45; }

.md-pager { display:flex; justify-content:center; gap:6px; padding: 12px 0 4px; }
.md-pager button { width:18px; height:4px; border:0; padding:0; border-radius:4px; background:#E8E6E3; cursor:pointer; }
.md-pager button.on { width:22px; background:#1A1A1A; }

/* 3 final option cards */
.md-final { max-width:1200px; margin: 28px auto 0; padding: 0 28px; }
/* 3 option boxes stay visible at all times */
.md-final.is-idle { display:block; }
.md-statebar { display:flex; align-items:center; justify-content:center; gap:10px; margin: 0 auto 18px; font-size:13px; color:#5E5E5E; }
.md-seg { display:inline-flex; border:1px solid #E8E6E3; border-radius:999px; padding:2px; background:#fff; }
.md-seg button { font:inherit; font-size:12px; border:0; background:transparent; color:#98a1b2; padding:4px 10px; border-radius:999px; cursor:pointer; }
.md-seg button.on { background:#2F4A43; color:#fff; font-weight:600; }
.md-state-pick { display:none; }
.md-state-pick.is-on { display:inline-flex; align-items:center; }
.md-state-pick select { font:inherit; font-size:12px; border:1px solid #E8E6E3; border-radius:999px; padding:4px 10px; background:#fff; color:#1A1A1A; }
@media (max-width: 700px) {
  .md-statebar { flex-wrap: wrap; }
}

.md-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.md-card { position:relative; background:#fff; border:1px solid #E8E6E3; border-radius:22px; padding:22px; display:flex; flex-direction:column; box-shadow:0 18px 40px -26px rgba(15,23,42,.35); text-align:left; opacity:0; transform:translateY(12px); animation: md-in .5s ease forwards; }
.md-card:nth-child(2){ animation-delay:.1s; }
.md-card:nth-child(3){ animation-delay:.2s; }
.md-card.best { border:2px solid #108F34; box-shadow:0 22px 50px -26px rgba(16,143,52,.55); }
.md-badge { align-self:flex-start; font-size:13px; font-weight:600; padding:5px 12px; border-radius:999px; background:#F4F4F4; color:#5E5E5E; margin-bottom:14px; }
.md-card.best .md-badge { background:#e8f6ef; color:#108F34; }
.md-photo { background:#fff; border-radius:16px; aspect-ratio:1/1; display:grid; place-items:center; margin-bottom:16px; border:1px solid #f0f2f5; }
.md-photo img { width:88%; height:88%; object-fit:contain; max-width:none; }
.md-store { font-size:13px; color:#5E5E5E; }
.md-store i { font-style:normal; color:#108F34; font-weight:500; }
.md-card h3 { font-size:19px; line-height:1.28; font-weight:600; margin:6px 0 6px; letter-spacing:-.01em; color:#1A1A1A; }
.md-rate { font-size:14px; color:#5E5E5E; }
.md-rate b { color:#d98a00; font-weight:600; }
.md-why { display:flex; gap:10px; margin:14px 0 18px; font-size:15px; color:#2b3445; background:#fafbfc; border-radius:14px; padding:12px 14px; }
.md-why svg { flex:none; width:17px; height:17px; margin-top:3px; color:#108F34; }
.md-rows { margin-top:auto; border-top:1px solid #E8E6E3; padding-top:12px; }
.md-row { display:flex; justify-content:space-between; gap:12px; padding:6px 0; font-size:15px; color:#2b3445; }
.md-row span:last-child { font-weight:500; white-space:nowrap; }
.md-row.md { color:#1A1A1A; font-weight:500; }
.md-row .free { color:#108F34; font-weight:500; }
.md-final details { margin:2px 0 0; }
.md-final summary { font-size:13px; color:#5E5E5E; cursor:pointer; list-style:none; padding:2px 0 6px; }
.md-final summary::-webkit-details-marker { display:none; }
.md-final summary:after { content:' ▾'; }
.md-final details[open] summary:after { content:' ▴'; }
.md-det { background:#F4F4F4; border-radius:12px; padding:8px 12px; margin-bottom:6px; }
.md-det .md-row { font-size:13px; color:#5E5E5E; padding:3px 0; }
.md-total { display:flex; justify-content:space-between; align-items:flex-end; border-top:1px solid #E8E6E3; margin-top:8px; padding-top:14px; }
.md-total .lbl { font-size:15px; color:#5E5E5E; }
.md-total .big { font-size:34px; font-weight:700; letter-spacing:-.03em; line-height:1; color:#1A1A1A; }
.md-total .usd { font-size:13px; color:#5E5E5E; text-align:right; margin-top:4px; }

.md-add { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; margin-top:16px; border:0; background:#2F4A43; color:#fff; font:inherit; font-weight:500; font-size:16px; padding:15px; border-radius:14px; cursor:pointer; }
.md-add svg { width:20px; height:20px; }
.md-card.best .md-add { background:#108F34; }
.md-add:hover { filter:brightness(1.08); }
.md-add.is-added { background:#108F34; }
.md-eta { font-size:13px; color:#5E5E5E; text-align:center; margin-top:10px; }

.md-after { display:none; max-width:720px; margin: 22px auto 0; text-align:center; }
.md-after.is-on { display:block; }
.md-toast { display:inline-flex; align-items:center; gap:8px; background:#e8f6ef; color:#108F34; font-weight:600; font-size:15px; padding:10px 16px; border-radius:999px; }
.md-toast a { color:#108F34; text-decoration:underline; text-underline-offset:2px; font-weight:600; }
.md-more { margin:12px 0 0; font-size:16px; color:#2b3445; }
.md-more b { font-weight:600; }

.md-cartbar { display:none; max-width:1080px; margin: 22px auto 0; padding: 12px 18px; border:1px solid #E8E6E3; border-radius:16px; background:#fff; box-shadow: 0 10px 30px -18px rgba(15,23,42,.3); align-items:center; justify-content:space-between; gap:16px; }
.md-cartbar.is-on { display:flex; }
.md-cartbar p { margin:0; font-size:15px; color:#2b3445; }
.md-cartbar b { font-weight:600; }
.md-cartbar button, .md-cartbar a.btn { font:inherit; font-size:14px; font-weight:500; border:0; background:#2F4A43; color:#fff; padding:10px 16px; border-radius:999px; cursor:pointer; text-decoration:none; }
.md-foot { max-width:900px; margin:28px auto 0; text-align:center; font-size:13px; color:#5E5E5E; padding: 0 20px; }

/* Header cart badge */
.md-cart-badge { display:none; min-width:18px; height:18px; padding:0 5px; margin-left:4px; border-radius:999px; background:#2F4A43; color:#fff; font-size:11px; font-weight:700; line-height:18px; text-align:center; }
.md-cart-badge.is-on { display:inline-block; }

/* Cart drawer (beta stub) */
.md-drawer-bg { display:none; position:fixed; inset:0; background:rgba(15,23,42,.35); z-index:80; }
.md-drawer-bg.is-on { display:block; }
.md-drawer { position:fixed; top:0; right:0; height:100%; width:min(400px, 92vw); background:#fff; z-index:81; box-shadow:-16px 0 40px rgba(15,23,42,.18); transform:translateX(100%); transition:transform .25s ease; display:flex; flex-direction:column; }
.md-drawer.is-on { transform:none; }
.md-drawer header { display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid #E8E6E3; }
.md-drawer h2 { margin:0; font-size:18px; }
.md-drawer .x { border:0; background:transparent; font-size:22px; cursor:pointer; }
.md-drawer-list { flex:1; overflow:auto; padding:12px 20px; }
.md-drawer-item { display:grid; grid-template-columns:56px 1fr auto; gap:12px; align-items:center; padding:12px 0; border-bottom:1px solid #F4F4F4; }
.md-drawer-item img { width:56px; height:56px; object-fit:contain; background:#fff; border:1px solid #f0f2f5; border-radius:8px; }
.md-drawer-item h3 { margin:0 0 4px; font-size:14px; font-weight:600; }
.md-drawer-item p { margin:0; font-size:13px; color:#5E5E5E; }
.md-drawer-item button { border:0; background:transparent; color:#2F4A43; cursor:pointer; font-size:12px; }
.md-drawer footer { padding:16px 20px 24px; border-top:1px solid #E8E6E3; }
.md-drawer footer .sum { display:flex; justify-content:space-between; font-size:16px; font-weight:600; margin-bottom:8px; }
.md-drawer .note { font-size:12px; color:#5E5E5E; margin:0 0 12px; }
.md-drawer .go { display:block; text-align:center; background:#2F4A43; color:#fff; text-decoration:none; padding:13px; border-radius:12px; font-weight:500; }
.md-drawer .keep { display:block; text-align:center; margin-top:10px; background:transparent; border:0; color:#5E5E5E; cursor:pointer; font:inherit; font-size:14px; text-decoration:underline; }

@media (max-width: 980px) {
  .md-previews { grid-template-columns:repeat(2,1fr); }
  .md-grid { grid-template-columns:1fr; max-width:520px; margin:0 auto; }
  .md-busca h1 { font-size:36px; }
}
@media (max-width: 640px) {
  .md-busca-hero { padding:28px 18px 0; }
  .md-busca h1 { font-size:32px; }
  .md-busca-lead { font-size:16px; }
  .md-busca-hint { font-size:13px; }
  .md-busca-own { font-size:13px; margin:0 auto 14px; }
  .md-box { margin: 0 12px; padding: 14px 12px 12px; border-radius:22px; }
  .md-box-search input { font-size:16px; }
  .md-final { padding: 0 16px; }
  .md-total .big { font-size:30px; }
  .md-cartbar { margin: 18px 16px 0; flex-direction:column; text-align:center; }
}

.md-row.md-duty span:last-child { text-align: right; max-width: 62%; }
.md-row.md-duty-pending { justify-content: flex-start; }
.md-row.md-duty-pending .md-duty-load { max-width: 100%; text-align: left; }
.md-duty-load {
  font-style: italic;
  color: #5E5E5E;
  white-space: normal;
  line-height: 1.35;
  animation: md-duty-pulse 1.1s ease-in-out infinite;
}
@keyframes md-duty-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.md-duty-note {
  margin: -2px 0 6px;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #6B7280;
  font-weight: 400;
}


.md-source {
  margin-top: 10px;
  text-align: left;
}
.md-source-link,
.md-source-name {
  display: inline-block;
  font-size: 13px;
  line-height: 1.4;
  color: #3F3F3F;
}
.md-source-link {
  font-weight: 500;
  color: #1A1A1A;
  text-decoration: none;
  border-bottom: 1px solid #C8C5C0;
  padding-bottom: 1px;
}
.md-source-link:hover,
.md-source-link:focus {
  color: #108F34;
  border-bottom-color: #108F34;
}
.md-source-name {
  font-weight: 400;
  color: #5E5E5E;
}
@media (max-width: 700px) {
  .md-source-link, .md-source-name { font-size: 12.5px; }
}


.md-tax-note {
  margin: -2px 0 6px;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.35;
  color: #6B7280;
  font-weight: 400;
}

/* Compact AI search cards (Bruno, 30 Nov 2026): shorter text block, square contain photo box, no why/price/Fonte. */
.md-grid { gap:16px; }
.md-card { border-radius:18px; padding:14px 14px 12px; }
.md-badge { font-size:11px; padding:3px 10px; margin-bottom:8px; }
.md-photo { aspect-ratio:1/1; height:auto; border-radius:12px; margin-bottom:8px; overflow:hidden; background:#fff; }
.md-photo img { width:90%; height:90%; max-height:none; max-width:none; object-fit:contain; object-position:center; }
.md-preview .pic { aspect-ratio:1; overflow:hidden; background:#fff; }
.md-preview .pic img { width:90%; height:90%; object-fit:contain; object-position:center; }
.md-store { font-size:12px; }
.md-card h3 { font-size:15px; line-height:1.25; margin:4px 0 2px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.md-rate { font-size:12px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.md-why { display:none !important; }
.md-rows { padding-top:8px; }
.md-total { border-top:0; margin-top:0; padding-top:4px; }
.md-total .lbl { font-size:13px; }
.md-total .big { font-size:30px; }
.md-total .usd { font-size:12px; margin-top:2px; }
.md-include { display:none; }
.md-add { gap:8px; margin-top:10px; font-size:14px; padding:10px 12px; border-radius:12px; }
.md-add svg { width:18px; height:18px; }
.md-eta { font-size:12px; margin-top:6px; }
.md-card .md-source { display:none; }
@media (max-width: 640px) {
  .md-card { padding:14px 14px 12px; }
  .md-card h3 { font-size:16px; }
  .md-total .big { font-size:28px; }
}

.md-coupon { font-size:12px; line-height:1.3; color:#108F34; margin:4px 0 0; text-align:right; }
@media (max-width: 640px) {
  .md-coupon { font-size:12px; }
}

/* md-progress panel + live card updates (beta, 2026-12-02) */
.md-busca-row { max-width: 1320px; margin: 0 auto; padding: 0 24px; display: flex; gap: 22px; align-items: flex-start; }
.md-busca-row > .md-box { flex: 1 1 0; min-width: 0; max-width: none; margin: 0; }
.md-progress {
  flex: 0 0 312px; width: 312px; box-sizing: border-box; background: #fff; color: #1A1A1A;
  border-radius: 24px; padding: 18px 18px 14px; position: sticky; top: 92px;
  box-shadow: 0 30px 80px -34px rgba(15,23,42,.28), 0 0 0 1px rgba(15,23,42,.06);
  font-family: "Outfit","Helvetica Neue",Arial,sans-serif;
}
.md-pg-head { display: flex; align-items: center; gap: 10px; }
.md-pg-head b { font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; flex: 1; }
.md-pg-spark { width: 28px; height: 28px; border-radius: 50%; background: #108F34; color: #fff; display: grid; place-items: center; flex: none; }
.md-pg-spark svg { width: 14px; height: 14px; }
.md-pg-toggle { display: none; border: 0; background: transparent; color: #5E5E5E; font: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; padding: 2px 4px; }
.md-progress[data-mode="done"] .md-pg-toggle, .md-progress[data-mode="error"] .md-pg-toggle { display: inline-block; }
.md-pg-lead { margin: 10px 0 0; font-size: 14.5px; line-height: 1.45; color: #2b3445; }
.md-progress[data-mode="done"] .md-pg-lead { color: #0b6b27; font-weight: 600; }
.md-progress[data-mode="done"] .md-pg-lead::before { content: "\2713\00a0"; }
.md-progress[data-mode="error"] .md-pg-lead { color: #A7001F; }
.md-progress[data-mode="idle"] .md-pg-lead { font-size: 13.5px; color: #5E5E5E; }
.md-pg-bar { height: 4px; border-radius: 4px; background: #e8f6ef; margin: 12px 0 4px; overflow: hidden; position: relative; opacity: 0; transition: opacity .25s; }
.md-progress.is-busy .md-pg-bar { opacity: 1; }
.md-pg-bar i { position: absolute; top: 0; bottom: 0; width: 38%; border-radius: 4px; background: linear-gradient(90deg, #108F34, #5cc47b); animation: md-pg-slide 1.4s ease-in-out infinite; }
.md-progress:not(.is-busy) .md-pg-bar { height: 0; margin: 8px 0 0; }
@keyframes md-pg-slide { 0% { left: -40%; } 100% { left: 102%; } }
.md-pg-body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s ease; }
.md-progress.is-collapsed .md-pg-body { grid-template-rows: 0fr; }
.md-progress.is-collapsed .md-pg-lead { margin-bottom: 4px; }
.md-pg-steps { list-style: none; margin: 8px 0 0; padding: 0; overflow: hidden; min-height: 0; }
.md-pg-step { display: flex; gap: 11px; align-items: flex-start; padding: 9px 0; border-top: 1px solid #F0EEEB; font-size: 13.5px; line-height: 1.38; color: #1A1A1A; }
.md-pg-step:first-child { border-top: 0; }
.md-pg-step .ico { flex: none; width: 20px; height: 20px; border-radius: 50%; box-sizing: border-box; margin-top: 1px; position: relative; border: 2px solid #D9DCE3; background: #fff; }
.md-pg-step .txt { flex: 1; min-width: 0; }
.md-pg-step .vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.md-pg-step .note { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: #5E5E5E; }
.md-pg-step .note.is-better { display: inline-block; margin-top: 5px; padding: 2px 9px; border-radius: 999px; background: #e8f6ef; color: #0b6b27; font-weight: 600; animation: md-pg-pop .5s ease; }
.md-pg-step.is-wait, .md-pg-step.is-idle { color: #8a93a3; }
.md-pg-step.is-idle .ico { width: 10px; height: 10px; margin: 6px 5px 0; border: 0; background: #D9DCE3; }
.md-pg-step.is-run .ico { border-color: #d6eadb; border-top-color: #108F34; animation: md-pg-spin .9s linear infinite; }
.md-pg-step.is-done .ico { background: #108F34; border-color: #108F34; animation: md-pg-pop .45s ease; }
.md-pg-step.is-done .ico::after { content: ""; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.md-pg-step.is-timeout .ico { background: #f6ecd2; border-color: #d7a935; }
.md-pg-step.is-timeout .ico::after { content: "!"; position: absolute; inset: 0; text-align: center; font-size: 12px; font-weight: 700; line-height: 16px; color: #8a6200; }
.md-pg-step.is-timeout { color: #6b5320; }
@keyframes md-pg-spin { to { transform: rotate(360deg); } }
@keyframes md-pg-pop { 0% { transform: scale(.7); opacity: .3; } 100% { transform: scale(1); opacity: 1; } }
.md-final.is-stale { opacity: .45; transition: opacity .25s ease; }
.md-final { transition: opacity .25s ease; }
.md-card.is-updated { animation: md-card-upd 2.2s ease; }
@keyframes md-card-upd { 0% { box-shadow: 0 0 0 3px rgba(16,143,52,.55); } 100% { box-shadow: 0 0 0 3px rgba(16,143,52,0); } }
@media (max-width: 1100px) {
  .md-busca-row { display: block; padding: 0; }
  .md-busca-row > .md-box { margin: 0 auto; max-width: 1080px; }
  .md-box > .md-progress { width: auto; flex: none; position: static; margin: 12px 0 0; padding: 14px 16px 10px; border-radius: 18px; box-shadow: none; border: 1px solid #E8E6E3; background: #fbfaf8; }
}
@media (max-width: 640px) {
  .md-busca-row > .md-box { margin: 0 12px; }
  .md-box > .md-progress .md-pg-step { padding: 7px 0; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .md-pg-bar i { animation: none; left: 0; width: 45%; }
  .md-pg-step.is-run .ico { animation: none; border-top-color: #108F34; }
  .md-pg-step.is-done .ico, .md-pg-step .note.is-better, .md-card.is-updated { animation: none; }
  .md-pg-body { transition: none; }
}

.md-add:hover:not(:disabled), .md-cartbar button:hover, .md-cartbar a.btn:hover, .md-drawer .go:hover { background:; }

/* MDSuplementos cards (beta, 2026-12-03): same square white photo box, 2-line titles, same height for every card */
.md-card-mds { padding:14px 14px 12px; }
.md-badge-mds { background:#2F4A43; color:#fff; letter-spacing:.06em; font-weight:700; }
.md-card-mds .md-photo { background:#fff; aspect-ratio:1/1; overflow:hidden; border:1px solid #f0f2f5; }
.md-card-mds .md-photo img { width:88%; height:88%; object-fit:contain; object-position:center; background:#fff; }
.md-card-mds h3 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:2.5em; font-size:15px; line-height:1.25; }
.md-card-mds .md-total { margin-top:auto; }
.md-card-mds a.md-add { text-decoration:none; box-sizing:border-box; }
.md-card-mds a.md-add:hover { background:#243832; filter:none; color:#fff; }
.md-card-mds .md-eta { color:#5E5E5E; }

/* photo boxes: image always fits inside the square box (tall photos are no longer cut off) */
.md-preview .pic, .md-card .md-photo { position:relative; }
.md-preview .pic img, .md-card .md-photo img { position:absolute; left:5%; top:5%; width:90%; height:90%; max-width:none; object-fit:contain; object-position:center; background:#fff; }
/* 3 preview cards fill the row (no empty 4th slot) */
.md-previews:has(.md-preview:nth-child(3):last-child) { grid-template-columns:repeat(3,1fr); }
@media (max-width:700px){ .md-previews:has(.md-preview:nth-child(3):last-child) { grid-template-columns:repeat(2,1fr); } }
