@charset "utf-8";
/* CSS Document */

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

body {
  font-family: Arial, sans-serif;
  background: #f3f4f6;
  padding: 10px;
  color: #222;
}

/* MAIN CONTAINER */
.product-container {
  max-width: 1100px;
  margin: auto;
  background: #fff;
  padding: 10px;
  padding-bottom: 20px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}
.product-container > div {
  min-width: 0;
}

@media(max-width: 900px){
  .product-container { grid-template-columns: 1fr; }
}


.main-image {
  width: 100%;
  height: auto;
  display: block;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* MAIN IMAGE WRAPPER */
.main-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden; /* critical */
  border-radius: 1px;
  cursor: zoom-in;
}

/* Force image to behave */
.main-image-wrapper img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 2.8;
  object-fit: cover;     /* fills box, crops if needed */
  height: auto;
  display: block;
  border-radius: 5px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* Controlled fade/slide */
.fade-out {
  opacity: 0;
  transform: translateX(25px);
}

/* THUMBNAILS DESKTOP */
.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}

/* MOBILE HORIZONTAL SCROLL */
@media(max-width: 768px){
  .thumbnail-row {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .thumbnail-row img {
    min-width: 80px;
    scroll-snap-align: start;
  }

  .thumbnail-row::-webkit-scrollbar {
    display: none;
  }
}

.thumbnail-row img {
  width: 100%;
  aspect-ratio: 4 / 2.8;
  object-fit: cover;     /* fills box, crops if needed */
  cursor: pointer;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: 0.2s ease;
}

.thumbnail-row img:hover,
.thumbnail-row img.active {
  border-color: #0056b3;
}

/* PRODUCT INFO */
.product-info h1 { font-size: 28px; margin-bottom: 15px; font-weight: 700; }

.price {
  font-size: 34px;
  color: #c00;
  margin-bottom: 20px;
  font-weight: bold;
}

.btn {
  display: inline-block;
  padding: 14px 24px;
  background: #0056b3;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  margin: 6px;
  transition: background 0.2s ease;
}

/* Different colours */
.btn-red { background-color: #e74c3c; }
.btn-blue { background-color: #3498db; }
.btn-green { background-color: #2ecc71; }

.btn:hover { 
	background: grey;
	color: white;
	}

/* FEATURES */
.feature-title {
  margin-top: 30px;
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 600;
  border-bottom: 2px solid #e5e5e5;
  padding-bottom: 8px;
}

.feature-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 14px;
}

/* PRODUCT DESCRIPTION */
.product-description {
  margin-top: 35px;
  padding: 25px;
  background: #f8f9fb;
  border-left: 4px solid #0056b3;
  border-radius: 6px;
  text-align:left;
}
.description-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111;
}

.product-description p {
  font-size: 15px;
  text-align:left;
  font-weight:400;
  line-height: 1.7;
  color: #444;
  margin-bottom: 15px;
}

@media (min-width: 768px) {
  .feature-list { grid-template-columns: 1fr 1fr; }
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.6;
  transition: transform 0.2s ease, color 0.2s ease;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #0056b3;
  border-radius: 2px;
}

.feature-list li:hover {
  transform: translateX(4px);
  color: #0056b3;
}

/* lightboxBT */
.lightboxBT {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightboxBT.active { display: flex; }

.lightboxBT img {
  max-width: 90%;
  max-height: 90%;
  transition: opacity 0.3s ease;
}

.lightboxBT-close {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 35px;
  color: white;
  cursor: pointer;
}

.lightboxBT-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.lightboxBT-arrow.left { left: 30px; }
.lightboxBT-arrow.right { right: 30px; }
