.produto-grid-section {
  padding: 0.5rem 1rem 1rem;
}

.produto-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.produto-grid-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.produto-grid-vermais {
  font-size: 0.8rem;
  color: #FFB800;
  text-decoration: none;
  font-weight: 600;
}

.produto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr;
  gap: 10px;
}

.produto-grid-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  position: relative;
  height: 100%;
}

.produto-grid-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.produto-grid-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #FFB800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.produto-grid-card-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.produto-grid-card-desconto {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #e74c3c;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0;
}

.produto-grid-card-fav {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border-radius: 0;
  border: none;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s ease;
}

.produto-grid-card-fav svg {
  width: 16px;
  height: 16px;
  color: #999;
  stroke: #999;
}

.produto-grid-card-fav:active {
  background: #fff;
}

.produto-grid-card-fav.fav-active svg {
  color: #e74c3c;
  stroke: #e74c3c;
  fill: #e74c3c;
}

.produto-grid-card-info {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 8px 8px 10px;
  flex: 1;
  min-height: 50px;
}

.produto-grid-card-texto {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
}

.produto-grid-card-nome {
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.produto-grid-card-preco {
  font-size: 0.82rem;
  font-weight: 700;
  color: #FFB800;
}


.produto-grid-card-add {
  width: 34px;
  height: 34px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.produto-grid-card-add i {
  width: 20px;
  height: 20px;
  color: #333;
}

/* Modal adicionar ao cesto */
.produto-add-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 10002;
  align-items: flex-end;
  justify-content: center;
}

.produto-add-modal.open {
  display: flex;
}

.produto-add-modal-content {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 0;
  position: relative;
}

.produto-add-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.produto-add-modal-close i {
  width: 20px;
  height: 20px;
  color: #999;
}

.produto-add-modal-body {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.produto-add-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.produto-add-modal-header-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
}

.produto-add-modal-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
}

.produto-add-modal-img-wrap {
  width: 72px;
  height: 72px;
  background: #FFB800;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.produto-add-modal-img {
  width: 85%;
  height: 85%;
  object-fit: contain;
}

.produto-add-modal-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.produto-add-modal-nome {
  font-size: 0.9rem;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.produto-add-modal-precos {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.produto-add-modal-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 1rem 1rem;
}

.produto-add-modal-qty {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}

.produto-add-modal-preco {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFB800;
}

.produto-add-modal-old {
  font-size: 0.85rem;
  color: #bbb;
  text-decoration: line-through;
}

.produto-add-modal-disc {
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: #e74c3c;
  padding: 2px 6px;
  border-radius: 0;
}

.produto-add-modal-qty-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #FFB800;
  font-size: 1.1rem;
  font-weight: 700;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.produto-add-modal-qty-btn:active {
  background: #e6a600;
}

.produto-add-modal-qty-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.produto-add-modal-qty-val {
  width: 48px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  border: none;
  outline: none;
}

.produto-add-modal-btn {
  flex: 1;
  height: 40px;
  padding: 0;
  background: #FFB800;
  color: #000;
  border: none;
  border-radius: 0;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.produto-add-modal-btn:active {
  background: #e6a600;
}

.produto-add-modal-btn i {
  width: 16px;
  height: 16px;
}

/* PC */
.produto-grid-pc {
  display: none;
}

.produto-pc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.produto-pc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.produto-pc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.produto-pc-grid .produto-grid-card {
  border-radius: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  height: 100%;
}

.produto-pc-grid .produto-grid-card-nome {
  font-size: 0.85rem;
}

.produto-pc-grid .produto-grid-card-preco {
  font-size: 0.9rem;
}

.produto-pc-header-vermais {
  font-size: 0.8rem;
  color: #FFB800;
  text-decoration: none;
  font-weight: 600;
}

.produto-pc-vermais {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 180px;
  height: 44px;
  margin: 1.25rem 0 0 auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  background: #FFB800;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.produto-pc-vermais:hover {
  background: #e6a600;
}

@media screen and (min-width: 1024px) {
  .produto-grid-section:not(.produto-grid-pc) {
    display: none;
  }

  .produto-grid-pc {
    display: block;
    padding: 1rem 0;
  }

  .produto-add-modal {
    align-items: center;
  }

  .produto-add-modal-content {
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  }
}
