/*------------------------*/
/* Color Picker
/*------------------------*/

.color-picker-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;
  margin-top: 5px;
}

.color-select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background-color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

/* Active Color Card Styles */
.color-preview-card {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.preview-swatch {
  min-height: 120px;
  background-color: #f0f0f0; /* Fallback */
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* No Preview State */
.preview-swatch.no-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  background-color: #f5f5f5;
  border-right: 1px solid rgba(0,0,0,0.05);
}

.preview-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preview-title {
  padding: 0;
  margin: 0 0 5px 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--textDark);
}

.preview-description {
  margin: 0;
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
}

@media (max-width: 480px) {
  .preview-swatch {
    width: 100%;
    height: 150px;
  }
  .preview-swatch.no-preview {
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,0.05);
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/*------------------------*/
/* Webshop Price Badge & Placeholder
/*------------------------*/

/* Enable positioning for badge */
.webshop-brick .item .img {
  position: relative;
}

/* Price badge - top right corner */
.price-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  color: var(--textDark, #333);
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Placeholder for products without images */
.placeholder-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8e8e8;
  color: #888;
  font-size: 1rem;
  font-weight: 500;
  font-style: italic;
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
}

/*------------------------*/
/* Footer Logos
/*------------------------*/

.footer-logos {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-logos img {
  height: 3rem;
  width: auto;
  object-fit: contain;
}

/*------------------------*/
/* Masonry Gallery Styles
/*------------------------*/

.gallery-section {
  padding: 4.5rem 0 5rem;
}

.gallery-intro {
  text-align: center;
  max-width: 45rem;
  margin: 0 auto 3.5rem;
}

.gallery-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--textDarker);
  margin-bottom: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.gallery-intro p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--textMedium);
}

/* Masonry grid container */
.masonry-gallery {
  column-count: 2;
  column-gap: 1.5rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 992px) {
  .masonry-gallery {
    column-count: 2;
    column-gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .masonry-gallery {
    column-count: 1;
    column-gap: 0;
  }
}

/* Gallery Item */
.masonry-item {
  display: inline-block;
  width: 100%;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  background-color: var(--light);
  box-shadow: 0 4px 12px rgba(30, 40, 45, 0.04);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  cursor: pointer;
}

.masonry-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

/* Image zoom & hover effects */
.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  border-radius: 0.5rem;
}

.masonry-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(30, 40, 45, 0.12);
}

.masonry-item:hover img {
  transform: scale(1.04);
}

/* Overlay styling (Premium reveal effect) */
.masonry-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(30, 40, 45, 0.85) 0%, rgba(30, 40, 45, 0.2) 60%, rgba(30, 40, 45, 0) 100%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  box-sizing: border-box;
  transition: opacity 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
  pointer-events: none; /* Let clicks pass through to the link */
}

.masonry-item:hover .masonry-overlay {
  opacity: 1;
}

.masonry-title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.masonry-item:hover .masonry-title {
  transform: translateY(0);
}

.masonry-category {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  margin-bottom: 0;
  transform: translateY(15px);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) 0.05s;
}

.masonry-item:hover .masonry-category {
  transform: translateY(0);
}

/*------------------------*/
/* Lightbox Caption Styles
/*------------------------*/

#lightbox > span {
  display: block !important; /* Override theme's display: none */
  position: fixed;
  bottom: 25px;
  height: auto;
  line-height: 1.5;
  width: 100%;
  text-align: center;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 600;
  font-family: var(--fontTitles), sans-serif;
  z-index: 9999999;
}

#lightbox > span .lightbox-category {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6) !important;
  position: static !important;
}

