/* Boat Customizer Styles */
.customizer-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.customizer-header {
  text-align: center;
  margin-bottom: 2rem;
}

.customizer-content {
  display: flex;
  flex-direction: row;
  flex: 1;
  gap: 2rem;
  height: 100%;
}

.customizer-options {
  width: 30%;
  overflow-y: auto;
  padding-right: 1rem;
}

.customizer-preview {
  width: 70%;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(to bottom, #0c4a6e, #0ea5e9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.option-category {
  margin-bottom: 1.5rem;
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--card-border);
}

.category-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-title svg {
  width: 1.25rem;
  height: 1.25rem;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.customization-option {
  background-color: rgba(24, 24, 27, 0.4);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.customization-option:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background-color: rgba(24, 24, 27, 0.6);
}

.customization-option.active {
  border-color: var(--primary);
  background-color: rgba(14, 165, 233, 0.2);
}

.option-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.option-name {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.option-price {
  font-size: 0.875rem;
  color: var(--muted);
}

.boat-3d-container {
  width: 100%;
  height: 100%;
  position: relative;
  perspective: 1000px;
}

#boat-3d-model {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1s ease;
  position: relative;
}

.boat-component {
  position: absolute;
  transition: all 0.5s ease;
}

.boat-body {
  width: 80%;
  height: 30%;
  background-color: #ffffff;
  border-radius: 20px;
  bottom: 20%;
  left: 10%;
  transform: translateZ(0);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.boat-roof {
  width: 70%;
  height: 10%;
  top: 40%;
  left: 15%;
  transform: translateZ(20px);
  display: none;
}

.boat-roof.thatch {
  background-color: #d4a76a;
  border-radius: 5px 5px 0 0;
}

.boat-roof.metal {
  background-color: #a1a1aa;
  border-radius: 10px 10px 0 0;
}

.boat-roof.canvas {
  background-color: #94a3b8;
  border-radius: 15px 15px 0 0;
}

.boat-interior {
  width: 60%;
  height: 20%;
  bottom: 30%;
  left: 20%;
  transform: translateZ(10px);
  display: none;
}

.boat-interior.standard {
  background-color: #94a3b8;
}

.boat-interior.premium {
  background-color: #7c3aed;
}

.boat-interior.luxury {
  background-color: #c2410c;
}

.boat-grill {
  width: 15%;
  height: 10%;
  bottom: 35%;
  right: 25%;
  transform: translateZ(15px);
  display: none;
}

.boat-grill.basic {
  background-color: #71717a;
  border-radius: 5px;
}

.boat-grill.premium {
  background-color: #525252;
  border-radius: 8px;
}

.boat-grill.deluxe {
  background-color: #404040;
  border-radius: 10px;
}

.boat-lighting {
  position: absolute;
  width: 80%;
  height: 5%;
  bottom: 25%;
  left: 10%;
  display: none;
}

.boat-lighting.standard {
  box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.3);
}

.boat-lighting.rgb {
  box-shadow: 0 0 15px 8px rgba(124, 58, 237, 0.4);
}

.boat-lighting.premium {
  box-shadow: 0 0 20px 10px rgba(14, 165, 233, 0.5);
}

.boat-sound {
  width: 10%;
  height: 8%;
  bottom: 35%;
  left: 25%;
  transform: translateZ(15px);
  display: none;
}

.boat-sound.basic {
  background-color: #71717a;
  border-radius: 50%;
}

.boat-sound.premium {
  background-color: #525252;
  border-radius: 50%;
}

.boat-sound.surround {
  background-color: #404040;
  border-radius: 50%;
}

.boat-engine {
  width: 15%;
  height: 15%;
  bottom: 15%;
  right: 15%;
  transform: translateZ(5px);
  display: none;
}

.boat-engine.standard {
  background-color: #71717a;
  border-radius: 5px;
}

.boat-engine.high-power {
  background-color: #525252;
  border-radius: 5px;
}

.boat-engine.electric {
  background-color: #0ea5e9;
  border-radius: 5px;
}

.price-container {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 1rem;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  border: 1px solid var(--card-border);
  z-index: 10;
}

.price-label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 0.25rem;
}

#boat-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.rotate-controls {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.rotate-btn {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  backdrop-filter: blur(4px);
}

.rotate-btn:hover {
  background-color: rgba(14, 165, 233, 0.3);
}

.rotate-btn svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--foreground);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .customizer-content {
    flex-direction: column;
  }

  .customizer-options,
  .customizer-preview {
    width: 100%;
  }

  .customizer-preview {
    height: 300px;
    margin-bottom: 1.5rem;
  }

  .customizer-options {
    order: 2;
  }

  .customizer-preview {
    order: 1;
  }
}

@media (max-width: 768px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}
