/* src/css/style.css */
:root {
  --color-bg: #F9F9F7; /* Crudo/Arena */
  --color-text: #2A2A2A; /* Carbón/Marrón oscuro */
  --font-logo: 'Georgia', serif; /* Placeholder for Astron */
  --font-main: 'Helvetica Neue', Helvetica, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 1.5rem 2rem;
  background-color: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}

.nav-left {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-start;
  align-items: center;
}

.nav-right {
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
  align-items: center;
}

.nav-item {
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-item a.active {
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 2px;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5rem;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 180px;
  background-color: var(--color-bg);
}

.nav-item.has-dropdown:hover .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  font-size: 0.8rem;
  color: #555;
  transition: color 0.2s;
}

.dropdown-menu a:hover {
  color: var(--color-text);
}

.logo {
  font-family: var(--font-logo);
  font-size: 1.2rem;
  letter-spacing: 6px;
  text-align: center;
}

.hero-section {
  width: 100%;
  height: 60vh;
  padding: 0 1rem;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .hero-section {
    height: 80vh;
    padding: 0 4rem;
  }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-main {
  padding: 1rem;
}

@media (min-width: 768px) {
  .catalog-main {
    padding: 4rem;
  }
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem;
  }
}

.product-card {
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
}

.product-image-container {
  width: 100%;
  aspect-ratio: 3/4;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover .product-image-container img {
  transform: scale(1.05);
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
}

.product-name {
  letter-spacing: 0.5px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.product-price {
  color: #777;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0 1rem 2rem 1rem;
  gap: 2rem;
}

@media (min-width: 768px) {
  .product-layout {
    grid-template-columns: 60% 40%;
    padding: 0 4rem 4rem 4rem;
    gap: 4rem;
  }
}

.product-images img {
  width: 100%;
  object-fit: cover;
}

.product-details {
  padding-top: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .product-details {
    padding-top: 4rem;
    position: sticky;
    top: 0;
    height: fit-content;
  }
}

.product-details h1 {
  font-weight: 300;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.price {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.desc {
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #555;
}

.add-to-cart {
  width: 100%;
  padding: 1.2rem;
  background-color: var(--color-text);
  color: var(--color-bg);
  border: none;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.add-to-cart:hover {
  opacity: 0.8;
}

/* Gallery Section */
.gallery-section {
  padding: 4rem 1rem;
  background-color: var(--color-bg);
}

@media (min-width: 768px) {
  .gallery-section {
    padding: 6rem 4rem;
  }
}

.gallery-header {
  text-align: center;
  margin-bottom: 4rem;
}

.gallery-header h2 {
  font-family: var(--font-logo);
  font-weight: 300;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  letter-spacing: 1px;
}

.gallery-header p {
  color: #666;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s ease forwards;
}

.gallery-item:nth-child(even) {
  animation-delay: 0.2s;
}

.gallery-item:nth-child(3n) {
  animation-delay: 0.4s;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
  will-change: transform;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(0.9);
}

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