/* LAYOUT */
.product-layout {
  display: flex;
  gap: 40px;
  padding: 30px;
  max-width: 1400px;
  margin: 0 auto;
}

.left {
  flex: 0 0 65%;
}

.right {
  flex: 0 0 35%;
}

/* SLIDER */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
}

.slider {
  display: flex;
  transition: transform 0.4s ease;
}

/* blur background slide */
.slide {
  min-width: 100%;
  height: 420px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #f1f5f9;
}

/* blurred background layer */
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(20px);
  transform: scale(1.1);
  z-index: 0;
}

/* light overlay */
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

/* sharp main image */
.slide img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  border-radius: 8px;
}

/* Hide nav arrows if only one slide */
.slider-wrapper:has(.slide:only-child) .nav {
  display: none;
}

/* Empty slide state */
.slide:has(img[src=""]) {
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide:has(img[src=""])::after {
  content: "Image coming soon";
  color: #64748b;
  font-size: 14px;
  position: absolute;
  z-index: 3;
}

/* arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 22px;
  padding: 8px 16px;
  cursor: pointer;
  z-index: 10;
  border-radius: 0 4px 4px 0;
  transition: background 0.2s;
}

.nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.prev {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.next {
  right: 0;
  border-radius: 4px 0 0 4px;
}

.dots {
  text-align: center;
  margin-top: 16px;
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  margin: 0 6px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;
}

.dots span:hover {
  background: #64748b;
}

.dots .active {
  background: #0f172a;
  transform: scale(1.2);
}

/* PRODUCT INFO */
.product {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
  position: sticky;
  top: 20px;
}

.product h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 28px;
  color: #0f172a;
}

.product p {
  color: #334155;
  line-height: 1.6;
  margin-bottom: 20px;
}

.specs {
  padding-left: 20px;
  margin: 20px 0 28px;
  line-height: 1.8;
  color: #1e293b;
}

.specs li {
  margin-bottom: 8px;
}

.enquiry-btn {
  display: block;
  background: #22c55e;
  color: white;
  padding: 14px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: background 0.2s;
}

.enquiry-btn:hover {
  background: #16a34a;
}

.photos-btn {
  display: block;
  border: 2px solid #22c55e;
  color: #22c55e;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  margin-top: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.photos-btn:hover {
  background: #22c55e;
  color: white;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .product-layout {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
  }
  
  .left, .right {
    flex: 0 0 100%;
  }
  
  .slide {
    height: 280px;
  }
  
  .product {
    position: static;
    padding: 20px;
  }
  
  .product h2 {
    font-size: 24px;
  }
  
  .nav {
    padding: 6px 12px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .slide {
    height: 220px;
  }
  
  .product {
    padding: 16px;
  }
}
.slide video {
  position: relative;
  z-index: 3;
}
.slide::before,
.slide::after {
  pointer-events: none;
}