/* Gallery Page */
.page-header {
  text-align: center;
  margin-bottom: 40px;
}

.page-header .boutique-name {
  font-size: 2.2em;
  margin-bottom: 15px;
}

.page-header .boutique-description {
  font-size: 1.1em;
  color: var(--color-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 40px 0;
}

.gallery-item {
  background: #f8f2e4;
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(139,69,19,0.08);
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(139,69,19,0.15);
  border-color: var(--color-accent);
}

.image-placeholder {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4em;
  margin-bottom: 15px;
  color: var(--color-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.gallery-item:hover .image-placeholder {
  transform: scale(1.02);
  box-shadow: 0 4px 15px rgba(139,69,19,0.2);
}

.gallery-item p {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1em;
  margin: 0;
  padding: 10px 0 5px 0;
}

.gallery-item .price {
  color: var(--color-secondary);
  font-size: 1em;
  font-weight: 500;
  margin-top: 5px;
}

/* Status Indicator */
.gallery-status {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85em;
  font-weight: 600;
  margin-top: 8px;
}

.status-available {
  background: #e8f5e8;
  color: #2e7d32;
}

.status-sold {
  background: #ffebee;
  color: #c62828;
}

/* Gallery CTA */
.gallery-cta {
  text-align: center;
  margin: 50px 0 30px 0;
  padding: 30px;
  background: linear-gradient(135deg, #f4e4d4 0%, #f8f2e4 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(139,69,19,0.1);
}

.gallery-cta p {
  color: var(--color-primary);
  font-size: 1.3em;
  margin-bottom: 25px;
  font-weight: 500;
}

.gallery-cta .link-button {
  max-width: 250px;
}

/* Responsive Gallery */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 18px;
  }
  
  .image-placeholder {
    height: 200px;
    font-size: 3em;
  }
  
  .gallery-cta {
    padding: 22px 18px;
    margin: 26px 0;
  }
  
  .gallery-cta p {
    font-size: 1.05em;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .gallery-item {
    padding: 14px;
  }
}

/* Loading State */
.loading-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-primary);
  font-size: 1.2em;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-secondary);
  font-size: 1.2em;
  font-style: italic;
}

/* Gallery Images */
.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.gallery-image.loaded {
  opacity: 1;
}

.gallery-info {
  text-align: center;
}

.gallery-title {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.1em;
  margin: 0 0 8px 0;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.lightbox-overlay.active {
  opacity: 1;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: default;
  animation: lightboxZoomIn 0.3s ease;
}

@keyframes lightboxZoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-image {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 40px;
  cursor: pointer;
  padding: 10px;
  line-height: 1;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 10000;
}

.lightbox-close:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

/* Navigation arrows */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--color-primary);
  font-size: 40px;
  cursor: pointer;
  padding: 15px 20px;
  line-height: 1;
  border-radius: 8px;
  transition: all 0.2s ease;
  z-index: 10001;
  font-weight: bold;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-prev:active,
.lightbox-next:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-info {
  background: rgba(255, 255, 255, 0.95);
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  max-width: 600px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lightbox-title {
  color: var(--color-primary);
  font-size: 1.5em;
  font-weight: 600;
  margin: 0 0 10px 0;
}

.lightbox-counter {
  color: var(--color-secondary);
  font-size: 0.9em;
  margin: 5px 0 0 0;
  opacity: 0.8;
}

/* Responsive Lightbox */
@media (max-width: 768px) {
  .lightbox-close {
    top: -40px;
    right: -10px;
    font-size: 35px;
  }
  
  .lightbox-image {
    max-height: 70vh;
  }
  
  .lightbox-info {
    padding: 15px;
    margin-top: 15px;
  }
  
  .lightbox-title {
    font-size: 1.2em;
  }
  
  .lightbox-counter {
    font-size: 0.85em;
  }
  
  .lightbox-prev,
  .lightbox-next {
    font-size: 30px;
    padding: 10px 15px;
  }
  
  .lightbox-prev {
    left: 10px;
  }
  
  .lightbox-next {
    right: 10px;
  }
}
/* Notifications */
.gallery-notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  z-index: var(--z-index-tooltip);
  opacity: 0;
  transform: translateX(400px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  border-left: 4px solid var(--color-info);
}

.gallery-notification--visible {
  opacity: 1;
  transform: translateX(0);
}

.gallery-notification--hiding {
  opacity: 0;
  transform: translateX(400px);
}

.gallery-notification--error {
  border-left-color: var(--color-error);
}

.gallery-notification--info {
  border-left-color: var(--color-info);
}

.gallery-notification__icon {
  font-size: 24px;
  flex-shrink: 0;
}

.gallery-notification__message {
  flex: 1;
  color: var(--color-text);
  font-size: 14px;
  line-height: 1.4;
}

.gallery-notification__close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s, color 0.2s;
  flex-shrink: 0;
}

.gallery-notification__close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
}

/* Mobile */
@media (max-width: 680px) {
  .gallery-notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
    padding: 11px 14px;
  }
  
  .gallery-notification__message {
    font-size: 12px;
  }
}
