.color-selector-section[data-astro-cid-tb3cl47w] {
  overflow: visible;
}

.color-swatches[data-astro-cid-tb3cl47w] {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding: var(--space-xs);
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: wrap;
}

.color-swatches-centered[data-astro-cid-tb3cl47w] {
  justify-content: center;
}

.color-swatch[data-astro-cid-tb3cl47w] {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-fast);
}

.color-swatch[data-astro-cid-tb3cl47w]:hover {
  transform: scale(1.08);
}

.color-swatch[data-astro-cid-tb3cl47w] img[data-astro-cid-tb3cl47w] {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid #12151329;
  background-color: #f7f4ef;
  background-image: linear-gradient(45deg, #0000000b 25%, #0000 25%), linear-gradient(-45deg, #0000000b 25%, #0000 25%), linear-gradient(45deg, #0000 75%, #0000000b 75%), linear-gradient(-45deg, #0000 75%, #0000000b 75%);
  background-size: 14px 14px;
  background-position: 0 0, 0 7px, 7px -7px, -7px 0;
  box-shadow: inset 0 0 0 1px #ffffff59, 0 4px 14px #00000014;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.color-swatch[data-astro-cid-tb3cl47w]:hover img[data-astro-cid-tb3cl47w] {
  border-color: #752d1073;
  box-shadow: inset 0 0 0 1px #ffffff59, 0 8px 22px #00000024;
}

.color-swatch[data-astro-cid-tb3cl47w].active img[data-astro-cid-tb3cl47w] {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px #752d102e, 0 8px 22px #00000024;
}

.color-swatch-lg[data-astro-cid-tb3cl47w] img[data-astro-cid-tb3cl47w] {
  width: 112px;
  height: 84px;
}

.swatch-label[data-astro-cid-tb3cl47w] {
  font-size: .75rem;
  font-family: var(--font-heading);
  font-weight: 500;
  color: var(--color-text-light);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.color-swatch[data-astro-cid-tb3cl47w].active .swatch-label[data-astro-cid-tb3cl47w] {
  color: var(--color-primary);
  font-weight: 600;
}

.swatch-new-badge[data-astro-cid-tb3cl47w] {
  position: absolute;
  top: -4px;
  right: -2px;
  padding: .1rem .4rem;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: .6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-radius: var(--radius-full);
  line-height: 1.4;
}

.color-display[data-astro-cid-tb3cl47w] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
}

@media (width >= 768px) {
  .color-display[data-astro-cid-tb3cl47w] {
    grid-template-columns: 1.5fr 1fr;
  }

  .has-gallery[data-astro-cid-tb3cl47w] .color-display[data-astro-cid-tb3cl47w] {
    grid-template-columns: 1.5fr 1fr;
    grid-template-rows: auto auto;
  }

  .has-gallery[data-astro-cid-tb3cl47w] .color-display-image[data-astro-cid-tb3cl47w] {
    grid-column: 1;
    grid-row: 1;
  }

  .has-gallery[data-astro-cid-tb3cl47w] .gallery-thumbnails[data-astro-cid-tb3cl47w] {
    grid-column: 1;
    grid-row: 2;
  }

  .has-gallery[data-astro-cid-tb3cl47w] .color-display-info[data-astro-cid-tb3cl47w] {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

.color-display-image[data-astro-cid-tb3cl47w] {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-dark);
}

.color-preview-img[data-astro-cid-tb3cl47w] {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .4s;
}

.gallery-expand-btn[data-astro-cid-tb3cl47w] {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #0000008c;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s, background .2s;
  backdrop-filter: blur(4px);
}

.color-display-image[data-astro-cid-tb3cl47w]:hover .gallery-expand-btn[data-astro-cid-tb3cl47w] {
  opacity: 1;
}

.gallery-expand-btn[data-astro-cid-tb3cl47w]:hover {
  background: #000000bf;
}

.color-display-info[data-astro-cid-tb3cl47w] {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.collection-label[data-astro-cid-tb3cl47w] {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-accent);
  font-weight: 600;
}

.color-name[data-astro-cid-tb3cl47w] {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-heading);
  transition: opacity .3s;
}

.color-description[data-astro-cid-tb3cl47w] {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-light);
  transition: opacity .3s;
}

.color-price[data-astro-cid-tb3cl47w] {
  font-size: 1rem;
  color: var(--color-text);
  padding: var(--space-sm) 0;
  border-top: 1px solid var(--color-border);
}

.color-price[data-astro-cid-tb3cl47w] strong[data-astro-cid-tb3cl47w] {
  font-size: 1.35rem;
  color: var(--color-primary);
  font-weight: 700;
}

.color-hint[data-astro-cid-tb3cl47w] {
  font-size: .8rem;
  color: var(--color-text-muted);
  font-style: italic;
}

.gallery-lightbox[data-astro-cid-tb3cl47w] {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.gallery-lightbox[data-astro-cid-tb3cl47w].active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop[data-astro-cid-tb3cl47w] {
  position: absolute;
  inset: 0;
  background: #000000eb;
}

.lightbox-content[data-astro-cid-tb3cl47w] {
  position: relative;
  width: 90vw;
  height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap[data-astro-cid-tb3cl47w] {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img[data-astro-cid-tb3cl47w] {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
  transition: opacity .25s;
}

.lightbox-close[data-astro-cid-tb3cl47w] {
  position: absolute;
  top: -20px;
  right: -10px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: opacity .2s;
  z-index: 10;
}

.lightbox-close[data-astro-cid-tb3cl47w]:hover {
  opacity: 1;
}

.lightbox-nav[data-astro-cid-tb3cl47w] {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: #ffffff1a;
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .7;
  transition: opacity .2s, background .2s;
  backdrop-filter: blur(4px);
}

.lightbox-nav[data-astro-cid-tb3cl47w]:hover {
  opacity: 1;
  background: #fff3;
}

.lightbox-prev[data-astro-cid-tb3cl47w] {
  left: 0;
}

.lightbox-next[data-astro-cid-tb3cl47w] {
  right: 0;
}

.lightbox-counter[data-astro-cid-tb3cl47w] {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffffb3;
  font-size: .85rem;
  font-family: var(--font-heading);
  letter-spacing: .05em;
  white-space: nowrap;
}

@media (width <= 767px) {
  .color-swatches[data-astro-cid-tb3cl47w] {
    gap: .65rem;
    padding-right: var(--space-md);
  }

  .color-swatch[data-astro-cid-tb3cl47w] img[data-astro-cid-tb3cl47w] {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  .color-display-info[data-astro-cid-tb3cl47w] {
    padding: var(--space-md);
  }

  .lightbox-nav[data-astro-cid-tb3cl47w] {
    width: 40px;
    height: 40px;
  }

  .lightbox-prev[data-astro-cid-tb3cl47w] {
    left: 4px;
  }

  .lightbox-next[data-astro-cid-tb3cl47w] {
    right: 4px;
  }

  .lightbox-close[data-astro-cid-tb3cl47w] {
    top: -10px;
    right: 0;
  }

  .gallery-expand-btn[data-astro-cid-tb3cl47w] {
    opacity: 1;
  }
}
/* Gallery thumbnails — global so dynamically-created elements get styled */
  .gallery-thumbnails { display: flex; gap: 6px; padding: 10px 12px; background: #f5f3f0; justify-content: center; flex-wrap: wrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .gallery-thumb { flex-shrink: 0; width: 72px; height: 48px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; padding: 0; background: none; transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease; }
  .gallery-thumb:hover { transform: scale(1.05); box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
  .gallery-thumb.active { border-color: var(--color-primary); box-shadow: 0 0 0 2px rgba(117, 45, 16, 0.2); }
  .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
  @media (max-width: 767px) {
    .gallery-thumbnails { padding: 8px; gap: 4px; }
    .gallery-thumb { width: 60px; height: 40px; }
  }