.eco-model-viewer-wrapper {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 20px 0;
}

.container3d {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
	display: grid;
/* 	grid-template-columns: 25% 75%; */
/*   max-width: 800px; */
  width: 100%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  animation: fadeInUp 0.8s ease-out;
}

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

.container3d h2 {
  color: #000;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  animation: slideInLeft 0.6s ease-out 0.2s both;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.subtitle {
  color: #666;
  font-size: 1rem;
  margin-bottom: 32px;
  font-weight: 400;
  animation: slideInRight 0.6s ease-out 0.3s both;
}

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

.viewer-container3d {
	/*min-height: 64vh;*/
  position: relative;
  margin-bottom: 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #f3f4f6;
  background: #fafafa;
  transition: all 0.3s ease;
  animation: scaleIn 0.6s ease-out 0.4s both;
  height: 100%;
  display: block;
	
  align-items: center;
  justify-content: center;
}

.viewer-container3d .model-image {
    max-height: 38vh;
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.viewer-container3d:hover {
  /*border-color: #000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);*/
}

.model-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
  opacity: 0;
}

.model-image.loaded {
  opacity: 1;
  animation: imageTransition 0.5s ease-out;
}

.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #666;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.loading.show {
  opacity: 1;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.error-message {
  color: #666;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.error-message.show {
  opacity: 1;
}

.section-title {
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #000;
  border-radius: 1px;
}

.button-group {
  margin-bottom: 28px;
  animation: fadeInUp 0.6s ease-out var(--delay, 0.5s) both;
}

.button-group:nth-of-type(2) {
  --delay: 0.6s;
}

.button-group:nth-of-type(3) {
  --delay: 0.7s;
}

.color-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.color-button {
  position: relative;
  padding: 12px 12px;
  border: 2px solid #e5e7eb;
	border: solid 0.5px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  background: #ffffff;
  color: #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  min-width: 28px;
  border-radius: 52px;
}

.color-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.05), transparent);
  transition: left 0.6s ease;
}

.color-button:hover::before {
  left: 100%;
}

.color-button:hover {
  border-color: #666;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.color-button.active {
  background: #000;
  color: #ffffff;
  border-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.view-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.view-button {
  padding: 14px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.view-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.view-button:hover::after {
  width: 120px;
  height: 120px;
}

.view-button:hover {
  border-color: #666;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.view-button.active {
  background: #000;
  border-color: #000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.product-button {
  padding: 14px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.product-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.product-button:hover::after {
  width: 120px;
  height: 120px;
}

.product-button:hover {
  border-color: #666;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.product-button.active {
  background: #000;
  border-color: #000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.booknow-button {
  padding: 14px 8px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  color: #333;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.booknow-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.05) 0%, transparent 70%);
  transition: all 0.4s ease;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.booknow-button:hover::after {
  width: 120px;
  height: 120px;
}

.booknow-button:hover {
  border-color: #666;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.booknow-button.active {
  background: #000;
  border-color: #000;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


@keyframes imageTransition {
  0% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.button-click {
  animation: buttonPress 0.2s ease-out;
}

@keyframes buttonPress {
  0% { transform: translateY(-2px) scale(1); }
  50% { transform: translateY(0) scale(0.98); }
  100% { transform: translateY(-2px) scale(1); }
}

.flexrow {
  display: block;
}
.model-image{
	    min-height: 500px;
}

.d-button-group{
	display: grid;
    grid-template-columns: 1fr  1fr 1fr;
}

.booknow .d-button-group{
	display: grid;
    grid-template-columns: 1fr  1fr;
}

/* Mobile responsiveness */
@media (max-width: 480px) {
	.model-image{
	    min-height: 550px;
}
.d-button-group{
	display: grid;
    grid-template-columns: 1fr;
}
	
  .container3d {
    padding: 24px;
    margin: 10px;
  }
  
  .container3d h2 {
    font-size: 2rem;
  }
  
  .viewer-container3d {
   /*height: 250px;*/
  }
  
  .color-buttons {
    gap: 8px;
  }
  
  .color-button {
    padding: 10px 18px;
    font-size: 0.8rem;
    min-width: 80px;
  }
  
  .view-buttons {
    gap: 6px;
  }
  
  .view-button {
    padding: 12px 6px;
    font-size: 0.75rem;
  }
}