/*
Theme Name: Dimensional Rocket
Theme URI: https://www.dimensionalrocket.com/
Author: João Vitor
Author URI: https://www.resonnant.com/
Description: Tema dedicado ao Dimensional Rocket. Baseado em simplicidade, facilidade de uso e manutenção.
Version: 0.1
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0a0a0a;
  font-family: 'Lato', sans-serif;
  padding: 2rem;
}

.apothecary {
  width: min(80rem, 100%);
  margin-inline: auto;
  color: #c4c4c4;
}

.header_logo {
  display: grid;
  grid-template-columns: 0fr 1fr;
  justify-content: center;
  align-content: center;
  gap: 1rem;
}

.header_logo > div {
  margin-top: .25rem;
}

.logo_svg {
  fill: #c4c4c4;
  width: 5rem;
  height: 5rem;
  stroke: #c4c4c4;
  rotate: 30deg;
}

h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(2rem, 1.8125rem + 0.75vw, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: lowercase;
}
h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 1rem, 2.6rem);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.3;
  margin-bottom: 4rem;
  text-transform: lowercase;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2rem;
}

.product-card {
  position: relative;
}

.card-visual {
  position: relative;
  width: 100%;
  height: 18.75rem;
  background: #1a1a1a;
  border-radius: .25rem;
  overflow: hidden;
}

.image-frame {
  width: 100%;
  height: 100%;
  position: relative;
}

.product-image {
  position: absolute;
  inset: 0;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-details {
  padding: 1.25rem 0.625rem;
}

.card-details h2 {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.5rem, 1.3909rem + 0.4364vw, 1.8rem);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.25rem;
  color: #c4c4c4;
}

.price {
  font-size: 1.25rem;
  color: #8a8a8a;
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.card-details p {
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #8a8a8a;
  margin-bottom: 1rem;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 1.25rem;
}

.tags li {
  background: var(--tag-color);
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.75rem;
  border-radius: 0.25rem;
}

.tags .botanical {
  --tag-color: #8b6b9b;
}

.tags .tincture {
  --tag-color: #5a7a5f;
}

.tags .elixir {
  --tag-color: #6b4f4f;
}

.tags .divination {
  --tag-color: #5a6a7f;
}

.tags .banishing {
  --tag-color: #5a6a7f;
}

.tags .cleansing {
  --tag-color: #7a5a4f;
}

.tags .lunar {
  --tag-color: #7a7a8f;
}

.add-to-cart {
  width: 100%;
  padding: 0.75rem;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #c4c4c4;
  font-family: 'Lato', sans-serif;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  border-radius: 0.25rem;
}

.add-to-cart:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.product-card:nth-child(1) .add-to-cart:hover {
  border-color: #8b6b9b;
}

.product-card:nth-child(2) .add-to-cart:hover {
  border-color: #5a7a5f;
}

.product-card:nth-child(3) .add-to-cart:hover {
  border-color: #6b4f4f;
}