:root {
  --primary: #FFE600;
  --text: #111;
  --muted: #666;
  --bg: #f5f5f5;
  --card: #fff;
  --border: #e6e6e6;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial;
  color: var(--text);
  background: var(--bg);
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

.topbar {
  background: var(--primary);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 50px;
  font-weight: 800;
}

.logo img {
  height: 50px;
  width: auto;
}

.search {
  flex: 1;
  display: flex;
  gap: 8px;
}

.search input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: 10px;
  outline: none;
}

.search button {
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}

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

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.cart-icon {
  width: 26px;
  height: 26px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #ff0000;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 50%;
  line-height: 1;
}

.nav {
  background: #FFE600;
  text-align: center;
}

.nav .container {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 10px;
}

.chip {
  padding: 8px 10px;
  border-radius: 999px;
  background: #FFE600;
  color: #222;
}

.chip:hover {
  border-color: #cfcfcf;
  text-decoration-color: #cfcfcf;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .02);
}

.card-body {
  padding: 12px;
}

.prod-img {
  width: 100%;
  height: 300px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  padding: 18px 0;
}

.banner-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.banner-slider {
  position: relative;
}

.slides {
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
}

.slide.is-active {
  display: block;
  animation: fadeIn .45s ease;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* botões */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;     /* tira o branco */
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 34px;
  font-weight: 900;
  color: #111;                 /* cor da seta */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;                /* discreta */
  transition: opacity .2s ease, transform .2s ease;
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

.banner-slider:hover .slider-btn {
  opacity: 1;                  /* aparece no hover */
}

.slider-btn:hover {
  transform: translateY(-50%) scale(1.1);
}


.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }



/* bolinhas */
.dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.25);
  cursor: pointer;
}

.dot.is-active {
  background: rgba(0,0,0,.65);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(1.01); }
  to   { opacity: 1; transform: scale(1); }
}

.prod-img img {
  width: 300px;
  height: 300px;
  object-fit: contain;
}

.prod-title {
  font-size: 14px;
  line-height: 1.25;
  min-height: 36px;
  margin: 0 0 8px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price .from {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 12px;
}

.price .to {
  font-size: 20px;
  font-weight: 900;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, .12);
  cursor: pointer;
  font-weight: 800;
  background: #fff;
}

.btn.primary {
  background: var(--primary);
  border-color: rgba(0, 0, 0, .14);
}

.btn.block {
  width: 100%;
}

.section {
  padding: 18px 0;
}

.h1 {
  font-size: 22px;
  font-weight: 500;
}

.h2 {
  font-size: 18px;
  font-weight: 900;
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

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

.qty input {
  width: 70px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.footer {
  margin-top: 18px;
  background: #fff;
  border-top: 1px solid var(--border);
}

.footer .container {
  padding: 18px 16px;
  color: #333;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.pager {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pager a {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

.pager a.active {
  background: var(--primary);
  font-weight: 900;
}

@media (max-width: 980px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .row {
    grid-template-columns: 1fr;
  }
}

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

  .header {
    flex-wrap: wrap;
  }

  .search {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 22px;
    line-height: 36px;
  }
}
