body {
  margin: 0;
  padding-top: 20px;
  background: #f8f9fa;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.builder-wrapper {
  width: 80%;
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.builder-container {
  display: flex;
  padding: 15px;
  gap: 15px;
  width: 100%;
  height: auto;
  flex-wrap: nowrap;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .builder-container {
    flex-wrap: wrap;
    min-height: auto;
    gap: 15px;
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .builder-container {
    padding: 10px;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .builder-container {
    padding: 8px;
    gap: 8px;
  }
}

.builder-header {
  text-align: center;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 20px;
}

.builder-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.builder-header p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.brand-box {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 20px;
}

.brand-btn {
  width: 180px;
  padding: 14px 20px;
  border: 2.5px solid #48d1c3;
  background: white;
  color: #48d1c3;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(72, 209, 195, 0.2);
}

.brand-btn.active {
  background: linear-gradient(135deg, #48d1c3 0%, #20a39e 100%);
  color: white;
  box-shadow: 0 6px 16px rgba(72, 209, 195, 0.4);
}

/* 2-COLUMN LAYOUT */
.builder-main {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .builder-main {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .welcome-section {
    min-height: 300px;
  }
}

/* LEFT: WELCOME SECTION */
.welcome-section {
  background: linear-gradient(135deg, #48d1c3 0%, #20a39e 100%);
  border-radius: 12px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.welcome-content {
  text-align: center;
  color: white;
}

.welcome-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.welcome-content .highlight {
  font-size: 48px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 20px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 10px;
}

.welcome-content p {
  font-size: 16px;
  margin: 20px 0;
  opacity: 0.9;
}

.welcome-image {
  margin-top: 40px;
  font-size: 120px;
  opacity: 0.8;
}

/* RIGHT: BUILDER FORM */
.builder-main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.parts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 0;
}

@media (max-width: 1024px) {
  .parts-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
  }
}

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

@media (max-width: 480px) {
  .parts-grid {
    gap: 6px;
  }
}

.part {
  /* width: 70%; */

  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px;
  background: #f9f9f9;
  border: 1.5px solid #e9ecef;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
}

.part:hover {
  border-color: #48d1c3;
  background: #f0fffe;
  box-shadow: 0 4px 12px rgba(72, 209, 195, 0.1);
  transform: translateY(-2px);
}

.part.required::after {
  content: "*";
  position: absolute;
  top: 8px;
  right: 12px;
  color: #ff6b6b;
  font-weight: bold;
  font-size: 18px;
}

.part label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #333;
  margin: 0;
}

.part-select {
  /* width: 100%; */
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
  font-size: 11px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-sizing: border-box;
  max-width: 100%;
}

.part-select:hover {
  border-color: #48d1c3;
  background-color: #f9ffff;
  box-shadow: 0 2px 6px rgba(72, 209, 195, 0.1);
}

.part-select:focus {
  outline: none;
  border-color: #48d1c3;
  box-shadow: 0 0 0 3px rgba(72, 209, 195, 0.2);
}

.price-text {
  font-size: 10px;
  font-weight: 700;
  color: #ff6b6b;
  margin-top: 1px;
}

.footer-section {
  display: flex;
  gap: 30px;
  align-items: stretch;
  border-top: 2px solid #e9ecef;
  padding-top: 30px;
  flex-wrap: wrap;
}

.total-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #efefef 100%);
  border-radius: 8px;
  border-top: 3px solid #48d1c3;
  flex-shrink: 0;
  gap: 6px;
}

.total-box h2 {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  margin: 0;
}

.total-box h1 {
  font-size: 28px;
  font-weight: 800;
  color: #48d1c3;
  line-height: 1;
  letter-spacing: -0.5px;
  margin: 0;
}

.action-buttons {
  display: grid;
  /* grid-template-columns: 1fr 1fr; */
  gap: 12px;
  flex: 1;
  min-width: 300px;
}

.btn-orange,
.btn-dark {
  padding: 14px 20px;
  border: none;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-orange {
  background: linear-gradient(135deg, #48d1c3 0%, #20a39e 100%);
  color: white;
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(72, 209, 195, 0.4);
}

.btn-orange:active {
  transform: translateY(0);
}

.btn-dark {
  background: linear-gradient(135deg, #333 0%, #000 100%);
  color: white;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #444 0%, #111 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-dark:active {
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .builder-wrapper {
    width: 95%;
    padding: 30px;
  }

  .parts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .footer-section {
    flex-direction: column;
    gap: 20px;
  }

  .total-box {
    width: 100%;
    min-width: auto;
  }

  .action-buttons {
    grid-template-columns: 1fr;
  }

  .builder-header h1 {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .builder-wrapper {
    width: 100%;
    padding: 20px;
  }

  .builder-header h1 {
    font-size: 20px;
  }

  .brand-box {
    gap: 12px;
  }

  .brand-btn {
    width: 140px;
    padding: 10px 16px;
    font-size: 14px;
  }

  .part {
    padding: 10px;
    gap: 4px;
  }

  .part label {
    font-size: 10px;
  }

  .part-select {
    width: 100%;
    font-size: 12px;
    padding: 8px;
  }

  .parts-grid {
    gap: 12px;
  }

  .footer-section {
    padding-top: 20px;
    gap: 15px;
  }

  .total-box {
    padding: 20px;
  }

  .total-box h1 {
    font-size: 32px;
  }

  .btn-orange,
  .btn-dark {
    padding: 12px 16px;
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 10px;
  }

  .builder-wrapper {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  .builder-header h1 {
    font-size: 18px;
  }

  .builder-header p {
    font-size: 12px;
  }

  .brand-box {
    gap: 8px;
    flex-wrap: wrap;
  }

  .brand-btn {
    width: calc(50% - 4px);
    padding: 8px 12px;
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .part {
    padding: 8px;
    gap: 3px;
  }

  .part label {
    font-size: 9px;
  }

  .part-select {
    font-size: 11px;
    padding: 6px;
  }

  .price-text {
    font-size: 9px;
  }

  .total-box {
    padding: 10px;
    gap: 4px;
  }

  .total-box h2 {
    font-size: 9px;
  }

  .total-box h1 {
    font-size: 24px;
  }

  .action-buttons {
    gap: 6px;
  }

  .btn-orange,
  .btn-dark {
    padding: 10px 12px;
    font-size: 11px;
  }

  .slide {
    padding: 20px;
    flex-direction: column;
    text-align: center;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slide-content p {
    font-size: 13px;
  }

  .slide-img {
    width: 80%;
    max-width: 200px;
  }
}

/* ---------------- LEFT SLIDER ---------------- */
/* Half Slider Container */
.half-slider {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f5f5f5 0%, #efefef 100%);
  background-color: wheat;
  border-radius: 10px;
  min-height: 450px;
}

@media (max-width: 1024px) {
  .half-slider {
    flex: 0 0 100%;
    width: 100%;
    min-height: 350px;
  }
}

@media (max-width: 768px) {
  .half-slider {
    min-height: 280px;
    flex: 0 0 100%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .half-slider {
    min-height: 220px;
  }
}

/* Each slide */
.slide {
  width: 100%;
  height: 100%;
  padding: 40px;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  transform: translateX(40px);
  transition: all 0.8s ease-in-out;
}

/* Active slide */
.slide.active {
  opacity: 1;
  transform: translateX(0);
}

/* Slide Text */
.slide-content h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}

.slide-content p {
  font-size: 16px;
  margin-top: 10px;
  color: #444;
}

.orange {
  color: #48d1c3;
}

/* Slide Image */
.slide-img {
  width: 45%;
  height: auto;
  object-fit: contain;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
}

.slider-dots span {
  width: 10px;
  height: 10px;
  background: #ccc;
  border-radius: 50%;
  display: inline-block;
  margin: 0 4px;
  cursor: pointer;
  transition: 0.3s;
}

.slider-dots span.active {
  background: #48d1c3;
  width: 12px;
  height: 12px;
}

/* Right Builder Box */
.builder-box {
  flex: 1;
  background: white;
  border: 2px solid #48d1c3;
  border-radius: 10px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 50%;
  overflow: visible;
  min-height: 450px;
}

@media (max-width: 1024px) {
  .builder-box {
    flex: 0 0 100%;
    width: 100%;
    min-height: auto;
    padding: 18px;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .builder-box {
    padding: 15px;
    gap: 10px;
    flex: 0 0 100%;
    width: 100%;
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .builder-box {
    padding: 10px;
    gap: 8px;
  }
}

@media (max-width: 1024px) {
  .builder-box {
    width: 100%;
    max-height: none;
  }
}

/* Build Summary */
.build-summary {
  background: linear-gradient(135deg, #48d1c3 0%, #20a39e 100%);
  color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 4px 12px rgba(72, 209, 195, 0.2);
}

.summary-title {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  max-height: 150px;
  overflow-y: auto;
}

.summary-item {
  padding: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border-left: 3px solid white;
  padding-left: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-item-name {
  font-weight: 600;
  flex: 1;
}

.summary-item-value {
  font-size: 11px;
  opacity: 0.9;
}
