/* Gallery Page Styles */

/* Hidden class for filtering */
.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Gallery Header Section */
.gallery-header {
  background: linear-gradient(135deg, var(--secondary-cream) 0%, var(--neutral-light) 100%);
  padding: 40px 0;
  border-bottom: 3px solid var(--primary-gold);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--neutral-medium);
}

.breadcrumb a {
  color: var(--accent-coral);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb a:hover {
  color: var(--primary-gold);
}

.breadcrumb-separator {
  color: var(--neutral-medium);
  opacity: 0.6;
}

.breadcrumb-current {
  color: var(--neutral-dark);
  font-weight: 600;
}

.gallery-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.highlight {
  background: var(--gradient-earth);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gallery-description {
  font-size: 16px;
  color: var(--neutral-medium);
  margin-bottom: 16px;
}

.gallery-header .gallery-results {
  text-align: center;
  font-size: 14px;
  color: var(--neutral-medium);
  font-weight: 500;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-block;
}



.gallery-view-options {
  display: flex;
  gap: 8px;
}

.view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 2px solid rgba(226, 232, 240, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--neutral-medium);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.view-btn:hover {
  border-color: var(--accent-coral);
  color: var(--accent-coral);
}

.view-btn.active {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  color: white;
}

/* Gallery Section */
.gallery-section {
  background: #FAFAFA;
  padding: 40px 0 80px;
  min-height: 60vh;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  transition: all 0.3s ease;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
  border: 2px solid var(--primary-gold);
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #FFFFFF 0%, #FEFEFE 100%);
}

.product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 60px rgba(224, 122, 95, 0.25);
  border-color: var(--accent-coral);
  border-width: 3px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--secondary-cream) 100%);
}

.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 5/4;
  overflow: hidden;
  background: #F8FAFC;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  opacity: 0;
  transition: all 0.3s;
}

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

.gallery-item-info {
  color: white;
  margin-bottom: 16px;
}

.gallery-item-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gallery-item-category {
  font-size: 12px;
  color: var(--primary-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.gallery-item-description {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  opacity: 0.9;
}

.gallery-item-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  opacity: 0.8;
}

.gallery-item-actions {
  display: flex;
  gap: 8px;
}

.gallery-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.gallery-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.gallery-item-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: var(--gradient-warm);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(224, 122, 95, 0.3);
  z-index: 10;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
  position: relative;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  max-width: 1200px;
  max-height: 90vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: lightboxSlideIn 0.3s ease-out;
}

@keyframes lightboxSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.lightbox-image-container {
  position: relative;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-info {
  padding: 40px;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--neutral-white) 0%, var(--secondary-cream) 100%);
}

.lightbox-details h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lightbox-category {
  font-size: 14px;
  color: var(--accent-coral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.lightbox-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--neutral-medium);
  margin-bottom: 24px;
}

.lightbox-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.spec-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-dark);
}

.spec-value {
  font-size: 14px;
  color: var(--neutral-medium);
  text-align: right;
}

.lightbox-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-cta-primary,
.lightbox-cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
}

.lightbox-cta-primary {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.lightbox-cta-primary:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.lightbox-cta-secondary {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--neutral-dark);
  border: 2px solid rgba(226, 232, 240, 0.8);
}

.lightbox-cta-secondary:hover {
  background: var(--neutral-white);
  border-color: var(--accent-coral);
  color: var(--accent-coral);
  transform: translateY(-2px);
}

.lightbox-navigation {
  position: absolute;
  top: 50%;
  left: 20px;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.lightbox-nav-btn {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  pointer-events: all;
}

.lightbox-nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

/* Gallery CTA Section */
.gallery-cta-section {
  background: linear-gradient(135deg, var(--neutral-dark) 0%, var(--secondary-brown) 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.gallery-cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.gallery-cta-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-gold);
}

.gallery-cta-description {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--secondary-cream);
}

.gallery-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-cta-primary,
.gallery-cta-secondary,
.gallery-cta-tertiary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.gallery-cta-primary {
  background: #25D366;
  color: white;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.gallery-cta-primary:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.4);
}

.gallery-cta-secondary {
  background: var(--gradient-warm);
  color: white;
  box-shadow: 0 4px 12px rgba(224, 122, 95, 0.3);
}

.gallery-cta-secondary:hover {
  background: var(--gradient-earth);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.gallery-cta-tertiary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.gallery-cta-tertiary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
  }
  
  .gallery-grid.masonry {
    columns: 3;
  }
  
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
  
  .gallery-filters-section .hero-container {
    flex-direction: column;
    gap: 20px;
  }
  
  .gallery-stats {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .gallery-hero {
    padding: 100px 0 60px;
  }
  
  .gallery-hero-title {
    font-size: 32px;
  }
  
  .gallery-stats {
    gap: 30px;
  }
  
  .gallery-stat-item .stat-number {
    font-size: 28px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .gallery-grid.masonry {
    columns: 2;
    column-gap: 20px;
  }
  
  .gallery-filters {
    justify-content: center;
  }
  
  .gallery-filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .lightbox-info {
    padding: 24px;
  }
  
  .lightbox-details h2 {
    font-size: 24px;
  }
  
  .gallery-cta-title {
    font-size: 28px;
  }
  
  .gallery-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  
  .gallery-grid.masonry {
    columns: 1;
  }
  
  .gallery-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .lightbox-content {
    margin: 10px;
    border-radius: 16px;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .gallery-filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }
}

/* Animation for filtered items */
.gallery-item.fade-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}
.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  background: var(--gradient-warm);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(224, 122, 95, 0.3);
  z-index: 10;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.1) 0%, 
    rgba(0, 0, 0, 0.3) 50%,
    rgba(0, 0, 0, 0.8) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  opacity: 0;
  transition: all 0.4s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-quick-info {
  color: white;
}

.overlay-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.overlay-category {
  font-size: 13px;
  color: var(--primary-gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.view-details-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  color: var(--neutral-dark);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s;
  align-self: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.view-details-btn:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.product-info {
  padding: 24px;
}

.product-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--neutral-dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-category {
  font-size: 12px;
  color: var(--accent-coral);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.product-description {
  font-size: 14px;
  color: var(--neutral-medium);
  line-height: 1.6;
  margin-bottom: 16px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--neutral-medium);
  padding: 6px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item svg {
  color: var(--accent-coral);
  flex-shrink: 0;
}

/* No Results */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--neutral-medium);
}

.no-results-content {
  max-width: 400px;
  margin: 0 auto;
}

.no-results svg {
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-results h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 12px;
}

.no-results p {
  font-size: 16px;
  margin-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .lightbox-content {
    grid-template-columns: 1fr;
    max-height: 95vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .gallery-header {
    padding: 30px 0;
  }
  
  .gallery-title {
    font-size: 28px;
  }
  
  .gallery-controls {
    padding: 20px 0;
  }
  
  .gallery-filters {
    gap: 8px;
  }
  
  .filter-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .search-container {
    max-width: 100%;
  }
  
  .gallery-search-input {
    font-size: 14px;
    padding: 12px 45px 12px 16px;
  }
  
  .product-info {
    padding: 20px;
  }
  
  .product-name {
    font-size: 16px;
  }
  
  .overlay-title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .gallery-hero {
    padding: 80px 0 40px;
  }

  .gallery-title {
    font-size: 24px;
  }

  .gallery-subtitle {
    font-size: 14px;
  }

  .gallery-header {
    padding: 20px 0;
  }

  .gallery-search {
    margin-bottom: 20px;
  }

  .search-input {
    padding: 12px 16px;
    font-size: 14px;
  }

  .gallery-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 12px;
    min-width: auto;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    border-radius: 12px;
    border-width: 2px;
  }
  
  .product-card:hover {
    border-width: 2px;
    transform: translateY(-6px);
  }

  .product-image {
    height: 200px;
  }
  
  .product-overlay {
    padding: 16px;
  }

  .product-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .product-category {
    font-size: 12px;
  }
  
  .view-details-btn {
    padding: 8px 16px;
    font-size: 12px;
    margin-top: 12px;
  }

  .gallery-results {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .no-results {
    padding: 40px 20px;
  }

  .no-results h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .no-results p {
    font-size: 14px;
  }
  
  .lightbox-content {
    margin: 8px;
    border-radius: 12px;
    max-height: calc(100vh - 16px);
  }

  .lightbox-close {
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
  }
  
  .lightbox-info {
    padding: 20px;
  }

  .lightbox-title {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .lightbox-category {
    font-size: 12px;
  }

  .lightbox-description {
    font-size: 14px;
    margin: 12px 0;
  }

  .lightbox-details {
    gap: 16px;
    margin: 16px 0;
  }

  .detail-item h4 {
    font-size: 12px;
  }

  .detail-item p {
    font-size: 13px;
  }

  .lightbox-actions {
    gap: 12px;
    margin-top: 20px;
  }

  .lightbox-cta-primary,
  .lightbox-cta-secondary {
    padding: 12px 16px;
    font-size: 13px;
    flex: 1;
  }

  .lightbox-navigation {
    bottom: 16px;
    gap: 12px;
  }

  .lightbox-nav-btn {
    width: 40px;
    height: 40px;
  }

  /* Touch-friendly improvements */
  .product-card {
    min-height: 44px;
  }

  .filter-btn {
    min-height: 44px;
  }

  .view-details-btn {
    min-height: 44px;
  }
}

/* Animation for filtered items */
.product-card.fade-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card.fade-out {
  animation: fadeOut 0.3s ease-out;
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}