/* Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--body-bg);
  color: var(--text-color);
  line-height: 1.6;
}

.stop-scroll {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

/* Header */
header {
  background: var(--dark-blue);
  color: var(--white);
  padding: 0.8rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.logo-container {
  width: 150px;
  height: 60px;
}

/* Page Title */
.page-title {
  background: var(--primary-blue);
  color: var(--white);
  padding: 3rem 2rem;
  text-align: center;
}

.page-title h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

/* Product Showcase */
.product-showcase {
  padding: 4rem 2rem;
  background: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.product-item {
  position: relative;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  aspect-ratio: 1 / 1; /* Maintain square aspect ratio */
}

.product-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.product-item:hover .product-image {
  transform: scale(1.05);
}

/* Full Size Image Viewer */
.image-container {
  display: none;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85); /* Darker background for better contrast */
  position: fixed;
  top: 0;
  left: 0;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: all 0.3s ease;
}

.image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 90%;
}

#fullSizeImage {
  max-width: 85%;
  max-height: 85%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: all 0.3s ease;
  cursor: zoom-in;
  border-radius: 4px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
}

/* When toggled (enlarged) */
#fullSizeImage.enlarged {
  max-width: 98%;
  max-height: 98%;
  cursor: zoom-out;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0.5);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  transition: all 0.2s ease;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.1);
}

.left-arrow {
  left: 20px;
}

.right-arrow {
  right: 20px;
}

.arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

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

/* Image counter */
#imageCounter {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Footer */
footer {
  background: var(--dark-blue);
  color: var(--white);
  padding: 4rem 2rem 2rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .page-title h1 {
    font-size: 2rem;
  }
  
  .product-showcase {
    padding: 2rem 1rem;
  }
  
  /* Mobile specific image viewer styles */
  .arrow {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .left-arrow {
    left: 5px;
  }
  
  .right-arrow {
    right: 5px;
  }
  
  .close-btn {
    top: 10px;
    right: 10px;
    font-size: 32px;
  }
  
  #fullSizeImage {
    max-width: 90%;
    max-height: 70%;
  }
  
  .image-wrapper {
    width: 100%;
    height: 80%;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  
  .product-item {
    padding: 5px;
  }
  
  .arrow {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}