/* Sugestão de Preço — identidade visual da marca */
:root {
  --ink: #1c223c;
  --navy: #171d35;
  --blue: #00b6e5;
  --blue-dark: #006b8a;
  --blue-soft: #e9f8fd;
  --muted: #637087;
  --bg: #f4f7fa;
  --line: #e0e7ef;
  --yellow: #ffe600;
  --orange: #ee4d2d;
  --white: #fff;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: var(--ink); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button,input,select { font: inherit; }
button,a,select { cursor: pointer; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.shell { max-width: 1320px; margin: 0 auto; padding: 0 24px; }

/* Header — clean, recognizable and focused on search. */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 3px 18px #171d3508; }
.top-row { min-height: 90px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 25px; font-weight: 850; letter-spacing: -1.5px; white-space: nowrap; color: var(--navy); }
.cyan { color: #009bc6; }
#search { display: flex; flex: 1; min-width: 150px; border: 1px solid #d5e0ec; border-radius: 11px; background: #f7f9fc; overflow: hidden; }
#search:focus-within { border-color: var(--blue-dark); box-shadow: 0 0 0 3px #00b6e51c; }
#search input { border: 0; padding: 14px 17px; min-width: 0; flex: 1; background: transparent; outline-offset: -3px; }
#search button { border: 0; background: var(--navy); color: white; font-weight: 750; padding: 0 25px; }
#search button:hover { background: var(--blue-dark); }
.header-link { color: var(--blue-dark); font-weight: 650; font-size: 14px; white-space: nowrap; }
.category-bar { background: var(--navy); border-top: 3px solid var(--blue); }
.categories { display: flex; align-items: center; gap: 6px; overflow: auto; white-space: nowrap; padding-top: 10px; padding-bottom: 10px; scrollbar-width: thin; color-scheme: dark; }
.categories button,.chips button { border: 1px solid transparent; border-radius: 7px; background: transparent; padding: 8px 13px; font-size: 14px; color: var(--ink); white-space: nowrap; }
.categories button { color: #e1e9f5; }
.categories button:hover { background: #ffffff12; }
.categories button[aria-pressed=true] { background: var(--blue); color: #102339; font-weight: 800; }
.chips button[aria-pressed=true] { background: var(--blue-soft); border-color: #9cd9eb; color: var(--blue-dark); font-weight: 800; }

/* Featured products: brand palette, with neutral photography space. */
.hero { margin: 24px 0 20px; display: grid; grid-template-columns: 1fr 1.08fr; gap: 36px; align-items: center; border-radius: 18px; background: radial-gradient(ellipse at 100% 0%,#005f80 0%,transparent 54%),linear-gradient(130deg,#171d35 35%,#233654 100%); color: white; overflow: hidden; padding: 34px 40px; }
.eyebrow { font-size: 13px; letter-spacing: .1em; font-weight: 800; color: #65dfff; }
.eyebrow.blue { color: var(--blue-dark); }
.hero h1 { font-size: clamp(34px,4.15vw,60px); line-height: 1.06; letter-spacing: -1.6px; margin: 12px 0; font-weight: 830; }
.hero p { max-width: 480px; color: #d7e5f3; margin: 15px 0 20px; }
.hero-cta { display: inline-block; background: var(--blue); color: var(--navy); border-radius: 9px; padding: 13px 20px; font-weight: 800; }
.hero-cta:hover { background: #54d8fa; }
.carousel { min-width: 0; }
.featured-card { display: grid; grid-template-columns: minmax(110px,42%) 1fr; align-items: center; gap: 20px; min-height: 230px; padding: 19px; background: white; border-radius: 14px; color: var(--ink); box-shadow: 0 10px 28px #101b2b24; }
.featured-photo { height: 190px; min-width: 0; overflow: hidden; display: grid; place-items: center; }
.featured-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.featured-card h2 { font-size: 20px; line-height: 1.3; margin: 8px 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-card p { color: var(--muted); font-size: 14px; margin: 4px 0; }
.featured-price { font-size: 29px; font-weight: 850; margin: 7px 0; color: var(--navy); letter-spacing: -.8px; }
.feature-link { display: inline-block; background: var(--navy); color: white; padding: 10px 14px; font-weight: 750; border-radius: 8px; }
.feature-link:hover { background: var(--blue-dark); }
.carousel-controls { display: flex; justify-content: center; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 13px; color: #d7e5f3; }
.carousel-controls button { color: inherit; border: 1px solid #ffffff42; background: #ffffff10; border-radius: 7px; padding: 7px 11px; }
.carousel-controls button:hover { background: #ffffff25; }

/* Shop marks remain distinct; the surrounding interface belongs to Sugestão de Preço. */
.market-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: white; border: 1px solid var(--line); border-radius: 10px; padding: 13px 16px; }
.brand-pill { font-size: 13px; padding: 5px 11px; border-radius: 6px; font-weight: 800; }
.brand-pill.ml { background: #fff7c8; color: #514707; border: 1px solid #eadb79; }
.brand-pill.shopee { background: #fff0eb; color: #a32b16; border: 1px solid #ffcaba; }
.market-caption { font-size: 14px; color: var(--muted); }
.catalog-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 30px 0 18px; }
.catalog-head h2 { font-size: 30px; line-height: 1.2; margin: 5px 0; letter-spacing: -.6px; }
.catalog-head p { color: var(--muted); font-size: 14px; margin: 4px 0; }
.sort-label { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 14px; white-space: nowrap; }
select { appearance: none; background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%231c223c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid #d1dce8; border-radius: 8px; color: var(--ink); padding: 10px 33px 10px 12px; }
.filter-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { background: white; border-color: var(--line); }
.chips button:hover { border-color: #a3cfe0; }
.compare-filter { font-size: 14px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.compare-filter input { accent-color: var(--blue-dark); }

/* Product cards: clear separation of image, title and offer. */
.grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; align-items: stretch; }
.card { display: flex; flex-direction: column; min-width: 0; background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 14px #1c223c06; transition: border-color .18s,box-shadow .18s; }
.card:hover { border-color: #86cddd; box-shadow: 0 7px 24px #1c223c12; }
.product-picture { position: relative; aspect-ratio: 1/1; min-width: 0; overflow: hidden; background: white; padding: 16px; border-bottom: 1px solid var(--line); display: grid; place-items: center; }
.product-picture img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; min-height: 0; object-fit: contain; display: block; }
.product-picture .badge { position: absolute; top: 10px; left: 10px; font-size: 12px; font-weight: 800; padding: 5px 8px; background: var(--blue-soft); color: var(--blue-dark); border: 1px solid #c5e9f3; border-radius: 5px; }
.card-main { padding: 16px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.tag { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 800; color: var(--blue-dark); }
.product-title { font-size: 16px; line-height: 1.4; font-weight: 700; margin: 6px 0 9px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-height: 44px; }
.proof { font-size: 13px; color: var(--muted); margin: 0 0 11px; }
.price-label { font-size: 13px; color: var(--muted); margin: 0; }
.price-main { font-size: 28px; font-weight: 850; letter-spacing: -.9px; color: var(--navy); margin: 0 0 11px; }
.offers { display: grid; gap: 8px; margin-top: auto; }
.offer { border: 1px solid var(--line); border-radius: 9px; padding: 10px; display: flex; flex-direction: column; gap: 6px; background: #fff; }
.offer.best { border-color: #a1d8e8; background: #f3fbfd; }
.offer-line { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 14px; font-weight: 740; }
.offer-line strong { white-space: nowrap; font-size: 15px; }
.offer-note { font-size: 12px; color: var(--muted); }
.buy { font-size: 14px; text-align: center; border-radius: 7px; font-weight: 750; padding: 10px 5px; display: block; transition: opacity .15s; }
.buy:hover { opacity: .85; }
.buy.ml { background: var(--yellow); color: #272727; }
.buy.shopee { background: var(--orange); color: white; }
.buy.other { background: var(--navy); color: white; }
.catalog-bottom { display: flex; align-items: center; flex-direction: column; gap: 9px; margin: 32px 0; color: var(--muted); font-size: 14px; }
.more-btn { background: var(--navy); border: 1px solid var(--navy); color: white; font-weight: 800; padding: 14px 28px; border-radius: 9px; }
.more-btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.more-btn:disabled { display: none; }
.empty { grid-column: 1/-1; text-align: center; background: white; border-radius: 10px; padding: 40px 20px; }
.marketplace-search { border: 1px solid var(--line); padding: 25px 20px; }
.marketplace-search h3 { margin: 0 0 8px; }
.marketplace-search p { color: var(--muted); margin: 0 0 16px; }
.marketplace-search-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.marketplace-search-links .buy { width: auto; min-width: 180px; }

/* Editorial section and footer */
.guides { margin: 42px 0; }
.guides h2 { font-size: 26px; letter-spacing: -.5px; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.guide-grid a { display: flex; flex-direction: column; gap: 8px; padding: 20px; background: white; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 10px; }
.guide-grid a:hover { border-color: #8dd9eb; }
.guide-grid a span { color: var(--muted); font-size: 14px; }
footer { background: var(--navy); border-top: 4px solid var(--blue); color: #d4deec; padding: 32px 0; margin-top: 35px; }
.footer { display: flex; gap: 35px; justify-content: space-between; align-items: flex-start; }
.footer p { max-width: 600px; font-size: 14px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.footer nav a:hover { color: #65dfff; }
.footer nav button { background: none; border: 0; color: inherit; padding: 0; text-decoration: underline; }
.document { max-width: 900px; margin: 32px auto; background: white; border: 1px solid var(--line); padding: 32px; border-radius: var(--radius); }
.document h1 { font-size: 32px; line-height: 1.2; }
.document h2 { font-size: 23px; margin-top: 28px; }
.document p,.document li { line-height: 1.7; }
.cost-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:18px; margin:24px 0; }
.cost-grid fieldset { border:1px solid var(--line); padding:18px; border-radius:10px; min-width:0; }
.cost-grid legend { font-weight:800; padding:0 8px; }
.cost-grid label { display:flex; flex-direction:column; gap:6px; margin:12px 0; font-weight:600; }
.cost-grid input { width:100%; padding:12px; border:1px solid var(--line); border-radius:6px; font:inherit; }
.cost-reset { border:1px solid var(--line); background:white; border-radius:8px; color:inherit; padding:12px 18px; font:inherit; margin:8px 0; cursor:pointer; }
.cost-result { padding:18px; background:#e6f8fc; border-radius:10px; border:1px solid #aadce8; margin:22px 0; font-weight:700; line-height:1.6; }

@media(max-width: 1000px) {
  .grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .top-row { gap: 14px; }
  .header-link { display: none; }
  .filter-row { align-items: flex-start; flex-direction: column; }
  .hero { padding: 24px; gap: 20px; }
}
@media(max-width: 650px) {
  .shell { padding: 0 13px; }
  .top-row { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; gap: 10px; min-height: auto; }
  .brand { font-size: 21px; }
  .brand svg { height: 32px; width: 32px; }
  #search { flex-basis: 100%; }
  #search input { font-size: 15px; padding: 12px; }
  #search button { padding: 0 18px; }
  .categories { padding-top: 8px; padding-bottom: 8px; }
  .hero { grid-template-columns: 1fr; gap: 18px; padding: 20px; margin-top: 14px; }
  .hero h1 { font-size: 36px; }
  .featured-card { grid-template-columns: 38% 1fr; min-height: 160px; padding: 12px; gap: 10px; }
  .featured-photo { height: 135px; }
  .featured-card h2 { font-size: 16px; }
  .featured-price { font-size: 22px; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-picture { padding: 8px; }
  .card-main { padding: 10px; }
  .product-title { font-size: 15px; min-height: 40px; -webkit-line-clamp: 4; }
  .price-main { font-size: 23px; }
  .offer { padding: 7px; }
  .offer-line { font-size: 13px; flex-wrap: wrap; }
  .offer-line strong { font-size: 14px; }
  .buy { font-size: 13px; }
  .catalog-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .catalog-head h2 { font-size: 24px; }
  .guide-grid { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 15px; }
  .document { padding: 20px; margin: 20px auto; }
  .chips { flex-wrap: nowrap; overflow: auto; width: 100%; }
  .compare-filter { white-space: normal; }
  .market-caption { font-size: 14px; }
  .carousel-controls button { font-size: 13px; padding: 7px; }
  .product-picture img { position: relative; z-index: 0; }
  .product-picture .badge { z-index: 1; font-size: 11px; }
}
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card,.buy { transition: none; } }

