/* Style pentru configuratorul Rolete D&N */

#dne-configurator {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.section {
  margin-bottom: 25px;
}

.section h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.families-grid,
.models-grid,
.options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.family-card,
.model-card,
.option-box {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 5px;
  text-align: center;
  background-color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  width: 100px;
  box-sizing: border-box;
}

.family-card img,
.model-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 5px;
}

.family-card.selected,
.model-card.selected,
.option-box.selected {
  border-color: #212121;
  background-color: #f9f9f9;
  border-width: 3px;
  border-style: solid;
  border-radius: 8px;
}


.option-box {
  font-size: 14px;
  padding: 8px 10px;
}

#dne-price {
  font-size: 20px;
  color: #212121;
  margin: 15px 0;
}

.dne-btn {
  background-color: #212121;
  color: #fff;
  border: none;
  padding: 0px 25px;
  height: 42px;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.dne-btn:hover {
  background-color: #212121;
}

.selected-model-preview {
  text-align: center;
  margin: 20px 0;
}

.selected-model-preview img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
  .family-card,
  .model-card,
  .option-box {
    width: calc(33.33% - 10px);
  }
}

@media (max-width: 480px) {
  .family-card,
  .model-card,
  .option-box {
    width: calc(50% - 10px);
  }
}

div.model-card p {
  margin-bottom: 0!important;
  font-size: 15px!important;
}

div.family-card p {
  margin-bottom: 0!important;
  font-size: 14px!important;
}

.familie-lightbox img {
  cursor: zoom-in;
  transition: transform 0.5s ease;
}

.familie-lightbox img:hover {
  transform: scale(1.02);
}

#dne-configurator {
  position: relative!important;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  overflow: hidden; /* asigură-te că elementele rămân în container */
  max-width: 600px;
  margin: 0 auto;
}

#dne-add-to-cart {
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.dne-btn {
  background-color: #000;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dne-btn:hover {
  background-color: #333;
}

div#dne-configurator {
  margin-bottom: 20px!important;
}

.woocommerce-cart div#dne-configurator.dne-box {
  display: none !important;
}

.woocommerce-cart #dne-configurator,
.woocommerce-cart .dne-box {
    display: none !important;
}

#dne-configurator .dne-btn {
  background-color: #000 !important;
  color: #fff !important;
  border-radius: 40px !important;
  font-weight: 600;
  padding: 12px 25px;
  border: none;
}

#dne-configurator .dne-qty-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
}

#dne-configurator .quantity,
#dne-configurator .add-to-cart-wrap {
  height: 42px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

#dne-configurator .quantity {
  border: 1px solid #ccc;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  height: 42px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 1;
  transform: translateY(8px); /* ajustează fin pe verticală */
}

#dne-configurator .quantity input[type="number"] {
  border: none;
  text-align: center;
  width: 50px;
  font-size: 16px;
  outline: none;
  height: 100%;
  -moz-appearance: textfield;
}

#dne-configurator .quantity input[type="number"]::-webkit-outer-spin-button,
#dne-configurator .quantity input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#dne-configurator .quantity button.minus,
#dne-configurator .quantity button.plus {
  background: #fff;
  border: none;
  width: 40px;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

#dne-configurator .quantity button.minus::before {
  content: '−';
}

#dne-configurator .quantity button.plus::before {
  content: '+';
}

#dne-configurator .single_add_to_cart_button {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 16px;
  padding: 0 25px;
  font-weight: bold;
  background-color: #000 !important;
  color: #fff !important;
  border: none;
  border-radius: 50px !important;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  flex-grow: 1; /* ✅ cheia întinderii */
}



