* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  background: rgb(157, 175, 199);
  color: #000000;
  font-family: "Inter", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.hero h2 {
  font-size: 36px;
  font-weight: 600;
}

.product-card {
  border-radius: 16px;
  transition: all 0.25s ease;
}

/* CONTAINER */

.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* HEADER */

header {
  background: #364d81;
  padding: 15px 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  color: rgb(255, 255, 255);
  font-size: 22px;
}

header input {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  width: 220px;
}

/* BOTÃO CARRINHO */

.cart-btn {
  background: #3fa866;
  padding: 8px 16px;
  border-radius: 8px;
  color: lch(0% 0 0);
  text-decoration: none;
  font-weight: 600;
}

/* HERO */

.hero {
  text-align: center;
  padding: 50px 0;
}

.hero h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.hero p {
  color: #ffffff;
}

/* FILTROS */

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.filters select {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #0e0e0e;
}

/* GRID */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

/* CARD */

.product-card {
  background: rgb(196, 201, 201);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: 0.25s;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
}

.product-card h3 {
  margin: 10px 0;
  color: #000000;
}

.product-card p {
  font-weight: 600;
}

.product-card button {
  margin-top: 12px;
  padding: 10px 14px;
  background: black;
  color: rgb(208, 208, 211);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* FOOTER */

footer {
  margin-top: 50px;
  background: #111;
  color: rgb(198, 203, 204);
  text-align: center;
  padding: 20px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: rgb(176, 179, 190);
  padding: 30px;
  border-radius: 12px;
  width: 350px;
  text-align: center;
  animation: fadeIn 0.3s;
}

.modal-content img {
  width: 200px;
}

.close {
  position: absolute;
  right: 20px;
  top: 10px;
  cursor: pointer;
  font-size: 24px;
}

.product-card {
  transition: all 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.side-cart {
  position: fixed;
  right: -350px;
  top: 0;
  width: 350px;
  height: 100%;
  background: rgb(213, 213, 214);
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  transition: 0.3s;
  z-index: 1000;
}

.side-cart.open {
  right: 0;
}

#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #46b66f;
  color: rgb(0, 0, 0);
  padding: 12px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: 0.3s;
}

#toast.show {
  opacity: 1;
}

.dark {
  background: #0f172a;
  color: white;
}

.dark header {
  background: #020617;
}

.dark .product-card {
  background: #1e293b;
  color: white;
}

.dark footer {
  background: #020617;
}

.skeleton {
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s infinite;
  height: 220px;
  border-radius: 10px;
}

@keyframes skeleton {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}
