/* === Global — Architectural Brutalist Design System === */

/* Products gallery grid */
.products-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  margin: 8rem auto;
}

.loader {
  width: 15px;
  aspect-ratio: 1;
  animation: l5 1s infinite linear alternate;
}

/* Image loading overlay */
.product-image-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.image-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(238, 238, 238, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.image-loading-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #e8e8e8;
  border-top: 2px solid #3b6a00;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes l5 {
  0%   { box-shadow: 20px 0 #1b1b1b, -20px 0 #1b1b1b22; background: #1b1b1b }
  33%  { box-shadow: 20px 0 #1b1b1b, -20px 0 #1b1b1b22; background: #1b1b1b22 }
  66%  { box-shadow: 20px 0 #1b1b1b22, -20px 0 #1b1b1b; background: #1b1b1b22 }
  100% { box-shadow: 20px 0 #1b1b1b22, -20px 0 #1b1b1b; background: #1b1b1b }
}

@media screen and (max-width: 1024px) {
  .products-gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px;
  }
}

@media (max-width: 768px) {
  .products-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 8px;
  }
}

@media screen and (max-width: 480px) {
  .products-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 6px;
  }
}

@media screen and (max-width: 320px) {
  .products-gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 4px;
    padding: 4px;
  }
}
