/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: #fff;
  background-color: #000;
  letter-spacing: 0.4px;
}

/* HEADER */
.main-header {
  width: 100%;
  padding: 2rem 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.brand {
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -2px;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.brand:hover {
  transform: rotate(0deg) scale(1.05);
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  text-transform: lowercase;
  position: relative;
  transition: all 0.3s ease;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  opacity: 0.8;
}

/* PRODUCT/GALLERY LAYOUT FOR LO PAGES */
.gallery-block {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 4rem;
}

.gallery-block + .gallery-block {
  margin-top: 4rem;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: 4rem;
}

.media {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.viewer {
  width: 100%;
  aspect-ratio: 3 / 2;
  border: 3px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.viewer:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.viewer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.1) brightness(0.95);
  transition: filter 0.3s ease;
}

.viewer:hover img {
  filter: contrast(1.2) brightness(1);
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.thumb {
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  transform: rotate(0deg);
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb:hover {
  transform: translateY(-5px) rotate(2deg);
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.thumb.is-active {
  border: 3px solid #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) brightness(0.9);
  transition: filter 0.3s ease;
}

.thumb:hover img,
.thumb.is-active img {
  filter: contrast(1.2) brightness(1);
}

.info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info .title {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: -2px;
  transform: rotate(-0.5deg);
  line-height: 1.1;
}

.info .subtitle {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 2rem;
  font-family: 'Inter', sans-serif;
  text-transform: lowercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  transform: rotate(0.5deg);
}

.info .copy {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', sans-serif;
  line-height: 1.8;
  font-size: 1.1rem;
}

.info .copy p {
  margin-bottom: 1.5rem;
}

.info ul {
  margin: 0 0 1.5rem 2rem;
  line-height: 1.8;
}

.price-block p {
  margin-bottom: 0.5rem;
}

.btn {
  display: inline-block;
  border: 3px solid #fff;
  background: transparent;
  color: #fff;
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  transform: rotate(-1deg);
  cursor: pointer;
}

.btn:hover {
  background: #fff;
  color: #000;
  transform: rotate(1deg) translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 900px) {
  .main-header {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .gallery-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
  }

  .gallery-block + .gallery-block {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
