/* Finish Options Section */
.finish-options-section {
  background-color: #e9ecef;
  padding: 50px 0;
}

.finish-options-container {
  max-width: 1410px;
  margin: 0 auto;
  padding: 0;
}

.finish-options-header {
  text-align: left;
}

.finish-options-subtitle {
  font-size: 18px;
  color: #333f48;
  max-width: 1200px;
  margin: 0;
  display: none;
}

/* Configurator Layout */
.configurator-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

/* Product Display */
.product-display {
  background: #ffffff;
  border-radius: 30px 0 0 30px;
  padding: 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image-container {
  position: relative;
  width: 100%;
  height: 450px;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
  border-radius: 30px;
}

.product-sku {
  background: #f8f8f8;
  color: #333f48;
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 10px;
  display: none;
}

.product-title {
  font-size: 20px;
  font-weight: 600;
  color: #00a7b5;
  margin: 0;
  width: 600px;
}

.product-description {
  font-size: 16px;
  color: #333f48;
  margin: 0px 0 10px 0;
  text-wrap-style: balance;
  display: none;
}

.share-button {
  background: linear-gradient(to bottom, #00a7b5 0%, #00a7b5 50%, #333f48 50%, #333f48 100%);
  background-size: 100% 200%;
  color: #ffffff;
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.share-button:hover {
  background-position: 0 100%;
  color: #ffffff;
}

.share-button:disabled {
  background: #e9ecef;
  color: #9ca3af;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Configuration Options */
.configuration-options {
  background: #ffffff;
  border-radius: 0 30px 30px 0;
  padding: 50px 50px 50px 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-content: center;
  height: 100%;
}

.option-group {
  margin-bottom: 0;
  flex: 1 1 calc(50% - 20px);
}

.option-group:last-child {
  margin-bottom: 0;
}

.option-group-title {
  font-size: 18px;
  font-weight: 600;
  color: #333f48;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
}

.option-group-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px 0;
  font-weight: 500;
  display: none;
}

.options-grid {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.option-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.option-item:hover .option-swatch,
.option-item.selected {
  border-color: #00a7b5;
}

.option-item.selected .option-label {
  font-weight: 700;
}

.option-swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 6px;
  border: 2px solid #b2b4b2;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.option-item.selected .option-swatch {
  border-color: #00a7b5;
}

.option-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.option-swatch.wood-grain {
  background: linear-gradient(45deg, #8b4513 0%, #d2691e 50%, #8b4513 100%);
}

.option-swatch.white {
  background: #ffffff;
}

.option-swatch.black {
  background: #000;
}

.option-swatch.studio-white {
  background: #ffffff;
}

.option-swatch.new-oak-matte {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/NOM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-swatch.new-oak-ravine {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/NOR.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-swatch.nordic-maple {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/NM.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-swatch.classic-natural {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/CN.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-swatch.sublime-teak {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/ST.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-swatch.natural-walnut {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/NW.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.option-label {
  font-size: 12px;
  font-weight: 600;
  color: #333f48;
  text-align: center;
  width: 60px;
}

.option-item.selected .option-label {
  color: #00a7b5;
}

/* Range Options (Special Layout) */
.range-options {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.range-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.range-option:hover {
  opacity: 1;
}

.range-option.selected {
  opacity: 1;
}

.range-icon {
  width: 60px;
  height: 60px;
  border-radius: 30px;
  border: 2px solid #b2b4b2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 5px;
}

/* Range icons as image backgrounds */
.range-option[data-value='ssd'] .range-icon {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/KR-SSD.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.range-option[data-value='dsd'] .range-icon {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/KR-DSD.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.range-option[data-value='workstation'] .range-icon {
  background-image: url('https://olgoffice.com/wp-content/uploads/2025/09/KR-WORKSTATION.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Keep selection border/shadow but do not override icon image */
.range-option:hover .range-icon,
.range-option.selected .range-icon {
  border: 2px solid #00a7b5;
  transition: all 0.3s ease;
}

.range-option.selected .range-label {
  font-weight: 700;
  transition: all 0.3s ease;
  color: #00a7b5;
}

.range-label {
  font-size: 12px;
  font-weight: 600;
  color: #333f48;
  text-align: center;
}

.range-option.selected .range-label {
  font-weight: 700;
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #00a7b5;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Copy Link Feedback */
.copy-feedback {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #00a7b5;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  z-index: 1000;
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.3s ease;
}

.copy-feedback.show {
  opacity: 1;
  transform: translateX(0);
}

.content-title {
  text-align: left !important;
}

h2.content-title.h2-title {
  padding-bottom: 20px;
}

@media screen and (min-width: 1px) and (max-width: 1440px) {
  .finish-options-section {
    padding: 30px 15px;
  }

  h2.content-title.h2-title {
    padding-bottom: 10px !important;
  }

  .share-button {
    width: 300px;
  }
}

@media screen and (min-width: 1px) and (max-width: 1200px) {
  .configurator-wrapper {
    display: flex;
    flex-direction: column;
  }

  .product-display {
    border-radius: 30px 30px 0 0;
  }

  .configuration-options {
    border-radius: 0 0 30px 30px;
    padding: 0px 30px 30px 30px;
    gap: 30px;
  }

  .product-image {
    border-radius: 30px 30px 0 0;
  }

  .product-image-container {
    height: 400px;
  }
}

@media screen and (min-width: 1px) and (max-width: 400px) {
  .options-grid {
    gap: 5px;
  }

  .option-swatch {
    width: 40px;
    height: 40px;
  }

  .configuration-options {
    padding: 0 15px 30px;
  }

  .share-button {
    font-size: 12px;
  }
}