.lene-configurator,
.lene-configurator * {
  box-sizing: border-box;
}

.lene-configurator {
  background: #f7f1ea;
  color: #3b2a20;
  padding: 70px 24px;
  overflow: hidden;
}

.lene-config-header,
.lene-steps,
.lene-grid,
.lene-order {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */

.lene-config-header {
  text-align: center;
  margin-bottom: 48px;
}

.lene-kicker {
  margin: 0 0 10px;
  color: #c0903f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lene-config-header h1 {
  margin: 0 0 14px;
  font-family: "Playfair Display", serif;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
}

.lene-config-header p {
  max-width: 650px;
  margin: 0 auto;
  color: #7b6754;
  font-size: 18px;
}

/* STEPS */

.lene-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 34px;
}

.lene-steps div {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  font-weight: 700;
}

.lene-steps span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #c0903f;
  color: #fff;
}

/* MAIN GRID */

.lene-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(0, 1.12fr)
    minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.lene-grid > * {
  min-width: 0;
}

.lene-panel {
  min-width: 0;
  background: #fff9f3;
  border: 1px solid #e8d8c2;
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(59, 42, 32, 0.07);
}

.lene-panel-title {
  margin: 0 0 22px;
  font-family: "Playfair Display", serif;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.1;
}

/* PRODUCTS */

.lene-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lene-product-card {
  min-width: 0;
  min-height: 205px;
  padding: 12px;
  border: 1px solid #e6d4bd;
  border-radius: 16px;
  background: #fffaf5;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.lene-product-card.active {
  border: 2px solid #c0903f;
  box-shadow: 0 12px 28px rgba(192, 144, 63, 0.2);
}

.lene-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(59, 42, 32, 0.08);
}

.lene-product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 12px;
}

.lene-product-card strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.lene-product-card div {
  margin-top: 6px;
  color: #8a7158;
  font-size: 14px;
}

/* FORM */

.lene-panel label {
  display: block;
  margin: 16px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.lene-panel input,
.lene-panel textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #e0d0bd;
  border-radius: 10px;
  padding: 14px 15px;
  background: #fff;
  color: #3b2a20;
  font-size: 16px;
}

.lene-panel textarea {
  min-height: 110px;
  resize: vertical;
}

.lene-premium {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid #e4c99f;
  border-radius: 14px;
  background: #fff4e6;
}

.lene-premium label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lene-premium input {
  width: auto;
  flex: 0 0 auto;
}

/* ADDONS */

.lene-addon-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eadccc;
}

.lene-addon-row label {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.lene-addon-row input {
  width: auto;
  flex: 0 0 auto;
}

.lene-addon-row span {
  white-space: nowrap;
  font-weight: 700;
}

/* PREVIEW IMAGE */

.lene-preview {
  position: relative;
  width: 100%;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid #e4d0b6;
  border-radius: 16px;
  background: #eee5db;
  box-shadow: 0 12px 30px rgba(59, 42, 32, 0.08);
}

.lene-preview img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  margin: 0;
}

/* ORDER SUMMARY */

.lene-order {
  margin-top: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
  padding: 30px;
  background: #fff9f3;
  border: 1px solid #e8d8c2;
  border-radius: 22px;
  box-shadow: 0 18px 45px rgba(59, 42, 32, 0.07);
}

.lene-order > * {
  min-width: 0;
}

.lene-order-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 38% minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.lene-order-image,
.lene-order-text {
  min-width: 0;
}

.lene-order img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.lene-order h3,
.lene-total-box h3 {
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-size: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lene-order-text p {
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.lene-total-box {
  min-width: 0;
  width: 100%;
  padding: 24px;
  border: 1px solid #e4d0b6;
  border-radius: 18px;
  background: #fff4e8;
}

.lene-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 14px;
}

.lene-price-row strong {
  white-space: nowrap;
}

.lene-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  margin: 22px 0;
  color: #c0903f;
  font-size: 28px;
  font-weight: 800;
}

.lene-total span {
  white-space: nowrap;
}

.lene-cart-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 17px 20px;
  background: #c0903f;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.lene-cart-btn:hover {
  background: #a9782e;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(192, 144, 63, 0.25);
}

.lene-cart-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .lene-grid {
    grid-template-columns: 1fr;
  }

  .lene-steps {
    grid-template-columns: 1fr;
  }

  .lene-order {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .lene-configurator {
    padding: 46px 14px;
  }

  .lene-products {
    grid-template-columns: 1fr;
  }

  .lene-order-main {
    grid-template-columns: 1fr;
  }

  .lene-panel,
  .lene-order,
  .lene-total-box {
    padding: 20px;
  }

  .lene-order h3,
  .lene-total-box h3 {
    font-size: 25px;
  }

  .lene-total {
    font-size: 23px;
  }
}