/* Boxer Personalizer v2 — usa foto real do produto */

#bp-personalizer *,
#bp-personalizer *::before,
#bp-personalizer *::after {
  box-sizing: border-box;
}

#bp-personalizer {
  margin: 28px 0 24px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
}

.bp-header { margin-bottom: 16px; }

.bp-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 4px;
}

.bp-title {
  font-size: 17px !important;
  font-weight: 700 !important;
  margin: 0 0 3px !important;
  padding: 0 !important;
  color: #1a1a1a !important;
  border: none !important;
}

.bp-subtitle {
  font-size: 13px;
  color: #888;
  margin: 0 !important;
}

/* Preview */
.bp-preview-wrap {
  margin-bottom: 18px;
}

.bp-view-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.bp-view-btn {
  padding: 6px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1.5px solid #ddd;
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  color: #888;
  transition: all 0.15s;
  font-family: inherit;
}

.bp-view-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.bp-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.bp-loading {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  margin: 0;
}

#bp-canvas {
  border-radius: 8px;
}

/* Controles */
.bp-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bp-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  color: #666 !important;
  margin: 0 !important;
}

.bp-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

#bp-input-texto {
  width: 100% !important;
  padding: 10px 46px 10px 13px !important;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-family: inherit !important;
  color: #1a1a1a !important;
  background: #fff !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color 0.15s !important;
}

#bp-input-texto:focus {
  border-color: #1a1a1a !important;
}

.bp-counter {
  position: absolute;
  right: 11px;
  font-size: 11px;
  color: #bbb;
  pointer-events: none;
}

.bp-font-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.bp-font-btn {
  padding: 9px 6px;
  font-size: 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
  font-family: inherit;
  text-align: center;
}

.bp-font-btn:hover { border-color: #aaa; }

.bp-font-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.bp-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.bp-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  outline: none;
}

.bp-swatch:hover { transform: scale(1.12); }

.bp-swatch.active {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a;
}

@media (max-width: 480px) {
  .bp-font-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Alinhamento */
.bp-align-group {
  display: flex;
  gap: 6px;
}

.bp-align-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  font-size: 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  color: #555;
  transition: all 0.15s;
  font-family: inherit;
}

.bp-align-btn:hover { border-color: #aaa; }

.bp-align-btn.active {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.bp-align-btn svg { flex-shrink: 0; }

/* Grid de fontes — 2 colunas para caber os nomes longos */
.bp-font-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Dropdown select */
.bp-select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e0e0e0 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  font-family: inherit !important;
  color: #1a1a1a !important;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  cursor: pointer !important;
  outline: none !important;
  box-shadow: none !important;
}

.bp-select:focus {
  border-color: #1a1a1a !important;
}

/* Garantir que o input NÃO force maiúsculas */
#bp-input-texto {
  text-transform: none !important;
}

/* ============================================================
   BOXER FULL — interface unificada [boxer_full]
============================================================ */
#bp-full * { box-sizing: border-box; }

#bp-full {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  max-width: 480px;
}

.bp-full-photo {
  margin-bottom: 20px;
}

.bp-full-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.bp-full-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bp-full-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.bp-full-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #666;
}

.bp-full-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.bp-full-input-wrap input {
  width: 100%;
  padding: 12px 50px 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

.bp-full-input-wrap input:focus {
  border-color: #1a1a1a;
}

.bp-full-counter {
  position: absolute;
  right: 12px;
  font-size: 11px;
  color: #bbb;
}

.bp-full-select {
  width: 100%;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  outline: none;
}

.bp-full-select:focus {
  border-color: #1a1a1a;
}

/* Linha de quantidade + add to cart */
.bp-full-buy-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: stretch;
  margin-top: 4px;
  width: 100%;
}

.bp-full-qty {
  display: flex;
  align-items: center;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.bp-qty-btn {
  width: 40px;
  height: 100%;
  border: none;
  background: #fff;
  font-size: 18px;
  color: #555;
  cursor: pointer;
  transition: background 0.15s;
}

.bp-qty-btn:hover {
  background: #f5f5f5;
}

.bp-full-qty-input {
  width: 44px;
  text-align: center;
  border: none;
  border-left: 1.5px solid #e0e0e0;
  border-right: 1.5px solid #e0e0e0;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a1a;
  padding: 12px 0;
  -moz-appearance: textfield;
}

.bp-full-qty-input::-webkit-outer-spin-button,
.bp-full-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bp-full-addcart {
  flex: 1;
  padding: 12px 24px;
  background: #1a1a1a;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: opacity 0.15s;
  font-family: inherit;
}

.bp-full-addcart:hover {
  opacity: 0.9;
}

.bp-full-addcart:disabled {
  cursor: not-allowed;
}

.bp-full-price {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 0 !important;
  text-align: right;
  color: #1a1a1a;
}

.bp-full-price .woocommerce-Price-amount {
  color: #1a1a1a;
}

@media (max-width: 480px) {
  .bp-full-buy-row {
    flex-direction: column;
  }
  .bp-full-qty {
    align-self: flex-start;
  }
}
