:root {
  --purple: #5d0ae2;
  --purple-dark: #3b067f;
  --purple-light: #f4ecff;
  --yellow: #ffd054;
  --gray-bg: #f6f6f8;
  --text: #1b1b2b;
  --muted: #6b6b82;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Roboto', system-ui, sans-serif;
  background: var(--gray-bg);
  color: var(--text);
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 92vw); margin: 0 auto; }

.cookie-bar {
  background: var(--purple);
  color: #fff;
  padding: 10px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  font-size: .9rem;
}
.cookie-bar a { color: var(--yellow); font-weight: 600; }
.cookie-actions { display: flex; gap: 8px; }
.cookie-actions button {
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}
.cookie-actions .primary { background: #fff; color: var(--purple); border-color: #fff; }

.top-links { background: #fff; border-bottom: 1px solid #e6e6f1; }
.top-links .wrap { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: .9rem; }
.top-links a { margin-right: 16px; color: var(--muted); }
.top-links .links-right { display: flex; gap: 18px; color: var(--muted); }

.shipping-bar { background: #e9f2ff; padding: 6px 0; border-bottom: 1px solid #dbe6ff; }
.shipping-bar img { margin: 0 auto; height: 38px; }

.main-header { background: #fff; border-bottom: 1px solid #e6e6f1; }
.main-header .wrap { display: grid; grid-template-columns: 180px 1fr 220px; align-items: center; gap: 14px; padding: 16px 0; }
.logo img { height: 46px; }
.search { position: relative; }
.search input {
  width: 100%; padding: 14px 52px 14px 18px; border-radius: 999px; border: 1px solid #dcdcf0; font-size: 1rem;
}
.search button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: none; border-radius: 50%; background: var(--purple); cursor: pointer; }
.search button::before { content:''; position:absolute; inset:0; background:url('imagens/icon-search.svg') center/16px 16px no-repeat; filter: invert(1); }
.actions { display:flex; justify-content:flex-end; gap:14px; }
.action { display:flex; align-items:center; gap:6px; color: var(--muted); font-weight:600; }
.icon { width:20px; height:20px; display:inline-block; background-size:contain; background-repeat:no-repeat; }
.icon.user { background-image:url('imagens/icon-user.svg'); }
.icon.cart { background-image:url('imagens/icon-cart-plus.svg'); }
.cart-count { background:#f3f3f9; color: var(--purple); padding:2px 8px; border-radius:999px; font-size:.85rem; }

.nav { background: var(--purple); color:#fff; }
.nav .wrap { display:flex; justify-content:space-between; align-items:center; padding:10px 0; flex-wrap:wrap; gap:12px; }
.nav-links { display:flex; gap:16px; flex-wrap:wrap; }
.nav-links a { color:#fff; font-weight:600; padding-bottom:4px; position:relative; }
.nav-links a.active::after { content:''; position:absolute; left:0; bottom:-3px; width:100%; height:3px; background: var(--yellow); border-radius:999px; }
.cep { display:flex; align-items:center; gap:8px; background: var(--purple-dark); padding:8px 14px; border-radius:999px; font-size:.9rem; }
.icon.pin { background-image:url('imagens/icon-zipcode-marker.svg'); filter: invert(1); }

.hero { padding: 26px 0 120px; position: relative; }
.hero .wrap { position: relative; }
.hero-carousel { position: relative; border-radius:20px; overflow:hidden; box-shadow: var(--shadow); height: 330px; }
.hero-slides { height:100%; }
.hero-slide { position:absolute; inset:0; background-size:cover; background-position:center; opacity:0; transition: opacity .8s ease; }
.hero-slide.active { opacity:1; }
.hero-btn { position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border:none; border-radius:50%; background:rgba(255,255,255,.85); cursor:pointer; box-shadow:0 10px 30px rgba(0,0,0,.2); }
.hero-btn.prev { left:16px; }
.hero-btn.next { right:16px; }
.hero-btn::before { content:''; position:absolute; inset:0; margin:auto; width:12px; height:12px; border-top:2px solid #555; border-right:2px solid #555; transform: rotate(135deg); }
.hero-btn.next::before { transform: rotate(-45deg); }
.hero-dots { position:absolute; bottom:16px; left:50%; transform:translateX(-50%); display:flex; gap:8px; }
.hero-dots span { width:11px; height:11px; border-radius:50%; background:rgba(255,255,255,.6); cursor:pointer; }
.hero-dots span.active { background:#fff; }

.search-widget {
  position:absolute; left:50%; bottom:-130px; transform:translateX(-50%);
  width:min(1100px, 96vw);
  background:#fff; border-radius:20px; padding:20px; box-shadow: var(--shadow);
}
.widget-tabs { display:flex; gap:10px; }
.widget-tabs .tab { flex:1; border:none; padding:12px 0; border-radius:999px; background: var(--purple-light); color: var(--purple); font-weight:700; cursor:pointer; }
.widget-tabs .tab.active { background: var(--purple); color:#fff; }
.widget-panel { display:none; margin-top:14px; }
.widget-panel.active { display:block; }
.chips { display:flex; flex-wrap:wrap; gap:10px; }
.chip { border:1px solid #e0daf7; background:#fff; padding:10px 14px; border-radius:999px; cursor:pointer; font-weight:600; }
.chip.active { background: var(--purple); color:#fff; border-color: var(--purple); }
.fields { display:grid; grid-template-columns: repeat(auto-fit, minmax(170px,1fr)); gap:12px; align-items:end; margin-top:12px; }
.fields label { display:flex; flex-direction:column; font-size:.8rem; color: var(--muted); font-weight:600; gap:6px; text-transform:uppercase; }
.fields select { padding:12px 10px; border-radius:12px; border:1px solid #dfe3ef; font-size:1rem; }
.fields .btn { padding:14px 0; border-radius:12px; border:none; font-weight:700; cursor:pointer; }
.btn.primary { background: var(--purple); color:#fff; }
.help { display:flex; align-items:center; gap:8px; grid-column:1/-1; color: var(--muted); font-weight:600; }
.help img { width:32px; }
.fields.disabled select, .fields.disabled button { opacity:.4; }

.section { padding: 120px 0 70px; }
.section .wrap { }
.section-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; }
.section-head h2 { margin:0; font-size:1.8rem; color: var(--purple-dark); }
.section-head .see-all { color: var(--purple); font-weight:700; }

.product-row { display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:18px; }
.card { background:#fff; border-radius:20px; padding:16px; box-shadow: var(--shadow); display:flex; flex-direction:column; gap:10px; min-height:420px; position:relative; overflow:hidden; }
.card-link { color: inherit; text-decoration: none; display: block; }
.card .energy { position:absolute; left:10px; top:10px; display:flex; flex-direction:column; gap:4px; }
.energy .flag { background:#f5a524; color:#fff; padding:4px 8px; border-radius:10px; font-size:.8rem; font-weight:700; }
.energy .bars { display:flex; gap:4px; }
.energy .bars span { width:20px; height:24px; border-radius:6px; background:#ffce54; color:#fff; font-size:.7rem; display:grid; place-items:center; }
.card img { height:200px; object-fit:contain; margin:0 auto; }
.card h3 { font-size:1rem; margin:6px 0; color: var(--text); }
.price { display:flex; gap:8px; align-items:baseline; }
.price strong { font-size:1.4rem; color: var(--purple-dark); }
.price s { color: var(--muted); font-size:.9rem; }
.pix { color: var(--muted); font-size:.9rem; }
.card button { margin-top:auto; border:none; background: var(--purple); color:#fff; padding:12px 0; border-radius:12px; font-weight:700; cursor:pointer; }

.services-intro { background:#fff; border-radius:22px; padding:26px; box-shadow: var(--shadow); display:grid; grid-template-columns: 1.1fr 1.3fr; gap:20px; align-items:center; }
.services-intro ul { list-style:none; padding:0; margin:12px 0; font-size:1.1rem; font-weight:700; }
.service-cards { display:grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap:16px; }
.service-cards article { background: var(--gray-bg); border-radius:16px; padding:16px; text-align:center; display:flex; flex-direction:column; gap:10px; box-shadow: inset 0 0 0 1px #ededf7; }
.service-cards img { height:120px; object-fit:contain; margin:0 auto; }

.brands-grid { margin-top:18px; display:grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap:14px; background:#fff; padding:18px; border-radius:18px; box-shadow: var(--shadow); }
.brands-grid img { height:70px; object-fit:contain; margin:0 auto; }

.reviews-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap:14px; }
.reviews-grid article { background:#fff; padding:16px; border-radius:14px; box-shadow: var(--shadow); font-weight:600; }
.reviews-grid .meta { display:block; margin-top:10px; color: var(--muted); font-size:.85rem; font-weight:500; }

.newsletter { background: var(--purple); color:#fff; padding:40px 0; }
.newsletter .wrap { display:flex; flex-direction:column; gap:12px; }
.newsletter-form { display:flex; flex-wrap:wrap; gap:10px; }
.newsletter-form input { padding:12px 14px; border-radius:10px; border:none; min-width:220px; }
.newsletter-form button { border:none; border-radius:10px; padding:12px 24px; background: var(--yellow); color: var(--purple); font-weight:700; cursor:pointer; }

.footer { background: var(--purple-dark); color:#fff; padding:50px 0 30px; }
.footer-top { display:grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap:18px; }
.footer a { color:#fff; display:block; margin-bottom:6px; font-size:.95rem; }
.footer h4 { margin:0 0 10px; }
.footer-logo p { color:#d5d1e6; font-size:.9rem; }
.partners img { height:40px; object-fit:contain; }
.footer-badges { display:flex; flex-wrap:wrap; gap:12px; padding:18px 0; }
.footer-badges img { height:50px; object-fit:contain; filter: brightness(1.05); }
.footer-social { display:grid; grid-template-columns: 1fr 1fr; gap:18px; align-items:start; }
.social { display:flex; gap:12px; }
.social img { height:34px; width:34px; }
.projects-logos { display:flex; gap:12px; flex-wrap:wrap; }
.projects-logos img { height:72px; }

/* ================================
   PneuStore footer (checkout/pagamento)
   ================================ */
.ps-footer {
  background: #4b0ca7;
  color: #fff;
  padding: 36px 0 0;
}
.ps-footer a { color: #fff; }
.ps-footer .footer-logo {
  padding: 4px 0 12px;
}
.ps-footer .footer-logo img {
  height: 34px;
  object-fit: contain;
}
.ps-footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 8px 0 24px;
}
.ps-footer .footer-columns h4 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}
.ps-footer .footer-columns a,
.ps-footer .footer-columns p {
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 6px;
  color: rgba(255,255,255,0.9);
}
.ps-footer .footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.ps-footer .footer-partners img {
  height: 48px;
  max-width: 180px;
  object-fit: contain;
  background: #fff;
  padding: 4px 6px;
  border-radius: 6px;
}
.ps-footer .footer-extra {
  padding: 18px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.18);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  align-items: start;
}
.ps-footer .footer-group h4 {
  margin: 0 0 8px;
  font-size: 13px;
}
.ps-footer .footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ps-footer .footer-badge img {
  height: 44px;
  object-fit: contain;
  background: #fff;
  padding: 4px 6px;
  border-radius: 6px;
}
.ps-footer .footer-social {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.ps-footer .social-links {
  display: flex;
  gap: 12px;
}
.ps-footer .social-links img {
  width: 30px;
  height: 30px;
}
.ps-footer .footer-projects {
  padding: 16px 0 18px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.ps-footer .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  align-items: center;
}
.ps-footer .projects-grid img {
  height: 70px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 8px;
}
.ps-footer .footer-payments {
  background: #fff;
  color: #2b2b3b;
  padding: 18px 0 12px;
  margin-top: 18px;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
.ps-footer .footer-payments h4 {
  margin: 0 0 10px;
  font-size: 13px;
}
.ps-footer .payments-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.ps-footer .payments-grid img {
  height: 28px;
  object-fit: contain;
}
.ps-footer .payment-mobile { display: none; }
.ps-footer .footer-payments p {
  margin: 10px 0 0;
  font-size: 12px;
  color: #6b6b82;
}
.ps-footer .footer-bottom {
  background: #fff;
  color: #6b6b82;
  font-size: 11px;
  padding: 10px 0 18px;
  box-shadow: 0 0 0 100vmax #fff;
  clip-path: inset(0 -100vmax);
}
@media (max-width: 840px) {
  .ps-footer .footer-social {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px) {
  .ps-footer .payments-grid img { height: 24px; }
  .ps-footer .payment-desktop { display: none; }
  .ps-footer .payment-mobile { display: block; }
}

.whatsapp { position:fixed; right:20px; bottom:20px; width:54px; height:54px; border-radius:50%; background:#25d366 url('imagens/icon-whatsapp.svg') center/26px 26px no-repeat; box-shadow:0 14px 30px rgba(0,0,0,.25); z-index:50; }

@media (max-width: 980px) {
  .main-header .wrap { grid-template-columns: 1fr; gap:10px; text-align:center; }
  .actions { justify-content:center; }
  .search-widget { bottom:-180px; }
  .services-intro { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero { padding-bottom: 200px; }
  .section { padding-top: 100px; }
  .footer-social { grid-template-columns:1fr; }
  .newsletter { padding:28px 0; }
}

/* ================================
   PneuStore header/nav structure
   (used by product pages)
   ================================ */
.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

.topbar-links {
  background: #fff;
  border-bottom: 1px solid #ececf3;
  font-size: 12px;
  color: var(--muted);
}
.container-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  gap: 16px;
}
.class-left,
.class-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-links a,
.topbar-links span {
  color: var(--muted);
  font-weight: 500;
}

.top-banner {
  background: #e9f2ff;
}
.top-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.cookie-bar {
  padding: 10px 0;
}
.cookie-bar .cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.cookie-bar p {
  margin: 0;
  line-height: 1.4;
  font-size: 0.9rem;
}
.cookie-actions {
  flex-wrap: wrap;
}
.btn-cookie {
  border-radius: 999px;
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.3);
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.btn-cookie.outline {
  background: transparent;
}
.btn-cookie:not(.outline) {
  background: #fff;
  color: var(--purple);
  border-color: #fff;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}
.cookie-modal.is-open {
  display: block;
}
.cookie-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
}
.cookie-modal-content {
  position: relative;
  width: min(900px, 92vw);
  margin: 6vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  color: #333;
}

.main-header {
  background: #fff;
  border-bottom: 1px solid #ececf3;
}
.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}
.button-mobile {
  display: none;
  border: none;
  background: transparent;
  color: var(--purple);
  font-size: 1.2rem;
}
.site-logo img {
  height: 46px;
}
.area-search-box {
  position: relative;
}
.search-box {
  position: relative;
}
.search-box input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  border-radius: 999px;
  border: 1px solid #e1e1ef;
  font-size: 0.95rem;
  background: #f6f6f9;
}
.search-box button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}
.search-suggestions {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ececf3;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 16px 30px rgba(0,0,0,.08);
  z-index: 10;
}
.area-search-box:focus-within .search-suggestions {
  display: block;
}
.search-hint {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.search-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}
.search-terms a {
  color: var(--purple);
  font-weight: 600;
}

.area-user .user-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.info-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--purple);
  font-weight: 600;
}
.icon-login {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f0ecff;
  display: grid;
  place-items: center;
  color: var(--purple);
}
.mini-cart {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--purple);
  font-weight: 600;
}
.mini-cart .cart-count {
  background: #ece6ff;
  color: var(--purple);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
}

.search-bar {
  position: relative;
}
.search-bar input {
  width: 100%;
  padding: 12px 44px 12px 18px;
  border-radius: 999px;
  border: 1px solid #e1e1ef;
  font-size: 0.95rem;
  background: #f6f6f9;
}
.btn-search {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  cursor: pointer;
}
.popular-searches {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.popular-searches a {
  color: var(--purple);
  font-weight: 600;
}

.cep-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--purple-dark);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: #fff;
}

.main-navbar {
  background: var(--purple);
  color: #fff;
  position: relative;
}
.flex-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 0;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.nav-links li {
  position: static;
}
.nav-links a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  width: 100%;
  min-width: 520px;
  background: #fff;
  color: #333;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
  z-index: 50;
}
.mega-menu.mega-wide {
  min-width: 720px;
}
.mega-menu.mega-brands {
  min-width: 720px;
}
.nav-links li:hover .mega-menu {
  display: grid;
}
.mega-menu {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
}
.mega-column h4 {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 0.9rem;
}
.mega-column a {
  display: block;
  color: #555;
  font-size: 0.85rem;
  margin: 6px 0;
}
.brands-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.brands-list a {
  color: #555;
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .header-main {
    grid-template-columns: 1fr auto;
  }
  .button-mobile {
    display: inline-flex;
  }
  .area-search-box {
    grid-column: 1 / -1;
    order: 3;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 720px) {
  .container-topbar {
    justify-content: center;
  }
  .class-right {
    display: none;
  }
  .cookie-bar .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
