/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #121212;
  color: #eee;
  line-height: 1.5;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1f1f1f;
  box-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

header h1 {
  font-size: 1.8rem;
  color: #0099ffff; /* laranja Cults3D */
  font-weight: 900;
  letter-spacing: 0.05em;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #0099ffff;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #0099ffff;
}

/* Galeria */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 1.5rem;
  padding: 3rem 1rem;
}

.item {
  background: #222;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.3s ease;
}

.item:hover {
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.5);
}

.item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.item:hover img {
  transform: scale(1.05);
}

/* Info que fica oculta no desktop e visível no mobile */
.info {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(0,0,0,0.85);
  padding: 1rem;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  color: #ff7b32;
}

/* Mostra info no hover só em dispositivos que suportam hover */
@media (hover: hover) and (pointer: fine) {
  .item:hover .info {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
}

/* No mobile, info sempre visível */
@media (hover: none) {
  .info {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
  }
}

.preco {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.05em;
}

button {
  margin-top: 0.6rem;
  background-color: #0099ffff;
  border: none;
  color: white;
  padding: 0.5rem 1.6rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.25s ease;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

button:hover {
  background-color: #0099ffff;
  box-shadow: 0 0 8px #0099ffff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.9rem;
  color: #888;
  margin-top: 4rem;
  border-top: 1px solid #333;
}

/* botão flutuante */
.cart-float-button {
  position: fixed;
  bottom: 10px;
  right: 60px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #0099ffff;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.77);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  z-index: 9999;
}


/* contador de itens */
.cart-count {
  position: absolute;
  bottom: 35px;
  right: 0px;
  background: #0099ffff;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* painel lateral do carrinho */
.cart-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 5px rgba(0,0,0,0.3);
  padding: 20px;
  transition: right 0.3s ease-in-out;
  z-index: 999;
}

/* aberto */
.cart-panel.open {
  right: 0;
}

/* botão fechar */
.close-btn {
  background: transparent;
  border: none;
  font-size: 20px;
  float: right;
  cursor: pointer;
}

/* alerta de item adicionado */
.add-alert {
  position: fixed;
  bottom: 80px;
  right: 20px;
  background: #4caf50;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  display: none;
  z-index: 1000;
}

/* botão finalizar */
.checkout-btn {
  margin-top: 20px;
  padding: 10px;
  background: #00c851;
  color: white;
  border: none;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
}

/* produto exemplo */
.produto {
  border: 1px solid #eee;
  padding: 10px;
  margin: 10px;
  text-align: center;
}