:root {
  --text-color: #333;
  --bg-color: #f8f9fa;
  --accent-mauve: #9a8c98;
  --accent-pink: #eebbc3;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

a {
  color: var(--accent-mauve);
  text-decoration: none;
}

a:hover {
  color: var(--text-color);
  text-decoration: underline;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  height: 48vh;
  background-image: url('/img/logo/logo_heroimage.png');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.hero-text {
  position: relative; /* Para ficar acima do overlay */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-text h1 {
  font-size: 4rem;
  font-weight: bold;
}

/* --- Product List --- */
.product-list-item {
  display: flex;
  flex-direction: column;
  background-color: var(--card-bg);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px var(--card-shadow);
  margin-bottom: 2rem;
  overflow: hidden;
}

.product-image-container {
  flex-shrink: 0;
  width: 100%;
  margin-bottom: 1rem;
}

.product-details-container {
  padding: 1.5rem;
  flex-grow: 1;
}

.product-colors .badge {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background-color: var(--accent-mauve);
  color: white;
  font-weight: 500;
}

.badge-customizable {
  background-color: var(--accent-pink);
  color: var(--text-color);
}

.product-price {
  font-weight: bold;
  font-size: 1.8rem;
  color: var(--text-color);
  text-align: right;
}

.btn-primary,
.btn:hover,
.btn:first-child:active {
  border-color: var(--accent-mauve);
  background-color: var(--accent-pink);
  color: var(--text-color);
}

.carousel-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.carousel-indicators [data-bs-target] {
  background-color: var(--accent-pink);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
  .product-details-container {
    padding: 1rem;
  }
}

/* --- Product Detail Page & Lightbox --- */
.main-image-container {
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--card-bg);
  border-radius: 0.25rem;
  border: 1px solid #dee2e6;
}

#main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-image {
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
  padding: 2px;
  border-radius: 0.25rem;
}

.thumbnail-image.active,
.thumbnail-image:hover {
  border-color: var(--accent-pink);
}

.main-image-container img {
  cursor: pointer;
  border-radius: 0.25rem;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: none; /* Hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 1055; /* Higher than Bootstrap modal backdrop */
}

.lightbox-overlay.show {
  display: flex; /* Shown with JS */
}

.lightbox-image {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}

.lightbox-close:hover {
  color: var(--accent-pink);
}

#thumbnail-container-mobile {
  display: flex;
  overflow-x: auto;
  padding-bottom: 1rem;
}

#thumbnail-container-mobile .thumbnail-image {
  height: 75px;
  width: 75px;
  object-fit: cover;
  flex-shrink: 0;
}

.lightbox-trigger {
  cursor: pointer;
}
