/* Estilos principales para el customizador */
.customizer-wrapper {
  display: grid;
  grid-template-columns: 30% 70%; /* Corregido: controles 30%, visualizador 70% */
  gap: 10px;
  max-width: 100%;
  margin: 0 auto;
  height: calc(100vh - 40px);
  box-sizing: border-box;
}

.site-content .ast-container {
  max-width: 100% !important;
  padding: 0;
  display: block;
  padding: 20px;
  margin-top: 100px;
  margin-bottom: 50px;
}

.product-options {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.color-control,
.size-control {
  width: 10%;
}

.logo-upload {
  width: 70%;
  align-content: end !important;
}

.controls-panel {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.product-viewer {
  height: 100%;
  margin-right: 20px;
  border-radius: 12px;
  overflow: hidden;
  background: #222223;
  position: relative;
}

/* Estilos para los controles dentro del panel */
.controls-panel > div {
  margin-bottom: 15px;
}

.controls-panel label {
  display: block;
  font-size: 14px;
  color: #555;
  margin-bottom: 8px;
  font-weight: bold;
}

.controls-panel input[type="color"] {
  width: 100%;
  height: 40px;
  border: 2px solid #ccd0d5;
  border-radius: 50px;
  cursor: pointer;
}

#visody-size {
  padding: 0 0 0 0.5em !important;
}

.controls-panel select {
  width: 100%;
  height: 40px;
  padding: 5px;
  border: 2px solid #ccd0d5;
  border-radius: 50px !important;
  font-size: 14px;
  background: white;
}

.controls-panel input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 2px dashed #ccd0d5;
  border-radius: 6px;
  background: white;
}

.controls-panel small {
  color: #888;
  font-size: 12px;
}

.placement-guide {
  position: relative;
  width: 400px;
  height: 400px;
  background: transparent;
  border-radius: 8px;
  margin: 0 auto 10px auto;
  box-shadow: 0 2px 8px #ccc;
  border: 1px solid #e0e0e0;
  margin: 0 auto;
}

.placement-guide img {
  max-width: 100%;
  height: auto;
  display: block;
}

#visody-placement-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.controls-panel input[type="range"] {
  width: 100%;
}

.controls-panel .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}

.controls-panel .buttons-container {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.controls-panel button {
  flex: 1;
  padding: 15px !important;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 20px;
}

#visody-add-to-cart {
  border-radius: 50px;
  background: #1a4398;
  color: white;
}

#visody-reset {
  background: #029ed9;
  color: #ffff;
  border-radius: 50px;
}

/* Ajustes responsivos */
@media (max-width: 768px) {
  .customizer-wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: 40% 60%; /* En móvil, controles arriba (40%), visualizador abajo (60%) */
    height: 100vh;
  }

  .product-viewer {
    height: 100%;
  }

  .controls-panel {
    height: 100%;
    overflow-y: auto;
  }
}

/* ===== ESTILOS CHECKOUT ===== */
.customizer-checkout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}

.product-summary,
.checkout-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-summary h2,
.checkout-form h2 {
  color: #1a2a55;
  font-size: 25px!important;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.customizer-thank-you h1 {
    color: #1a2a55;
  font-size: 25px!important;
  margin-bottom: 20px;
  padding-bottom: 10px;
}

.product-preview img {
  width: 100%;
  max-width: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 15px;
}

.product-details {
  margin-top: 20px;
}

.product-details p {
  margin: 10px 0;
  font-size: 16px;
}

.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 3px;
  margin-left: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1a2a55;
  box-shadow: 0 0 5px rgba(26, 42, 85, 0.3);
}

.submit-order {
    width: 100%;
    background: #1a2a55 !important;
    color: white !important;
    padding: 15px !important;
    border-radius: 50px;
    font-size: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
  .checkout-container {
    display: flex;
    flex-direction: column;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ===== ESTILOS THANK YOU ===== */
.customizer-thank-you {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  text-align: center;
}

.thank-you-container {
  background: white;
  padding: 50px 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.customizer-thank-you h1 {
  color: #1a2a55;
  margin-bottom: 15px;
  font-size: 36px;
}

.customizer-thank-you p {
  font-size: 18px;
  color: #666;
  margin-bottom: 30px;
}

.order-summary {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: left;
}

.order-summary h3 {
  color: #1a2a55;
  margin-bottom: 15px;
  text-align: center;
}

.order-details p {
  margin: 10px 0;
  font-size: 16px;
  color: #333;
}

.back-home {
  display: inline-block;
  background: #1a2a55;
  color: white;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 50px !important;
  font-size: 16px;
  transition: background 0.3s;
}

.back-home:hover {
  background: #2d3b6b;
  color: white;
}

.upload-button-style {
  display: inline-block;
  padding: 10px 20px;
  text-align: center;
  align-content: center;
  background-color: #029ed9;
  color: #ffffff !important;
  height: 70%;
  border-radius: 50px;
  cursor: pointer;
  font-family: sans-serif;
  font-size: 20px !important;
}
