/* ============================================================================
   EDITOR DE CAMISETAS PRO - ESTILOS v1.0
   ============================================================================ */


* { box-sizing: border-box; margin: 0; padding: 0; }

#editor-camisetas-container {
    font-family: 'Poppins', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    color: #333;
}

/* ---- HEADER ---- */

.product-type-btns { display: flex; gap: 6px; }
.product-type-btn {
    flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 8px;
    background: #fff; cursor: pointer; font-family: inherit; font-size: 12px;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: all 0.2s;
}
.product-type-btn.active { border-color: #7F77DD; background: #f8f7ff; color: #7F77DD; font-weight: 500; }
.product-type-btn:hover { border-color: #7F77DD; }
.editor-header {
    text-align: center;
    padding: 16px;
    background: linear-gradient(135deg, #7F77DD 0%, #E92063 100%);
    border-radius: 12px 12px 0 0;
}
.editor-header h1 {
    color: white;
    font-size: 1.4rem;
    font-weight: 500;
}

/* ---- VIEW TABS ---- */
.view-tabs {
    display: flex;
    background: #f8f8fa;
    border-bottom: 1px solid #eee;
    overflow-x: auto;
}
.view-tab {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.view-tab.active {
    color: #7F77DD;
    border-bottom-color: #7F77DD;
    font-weight: 500;
}
.view-tab:hover { color: #7F77DD; }
.view-badge {
    background: #7F77DD;
    color: white;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}
.view-badge:empty { display: none; }

/* ---- MAIN CONTAINER ---- */
.main-container {
    display: flex;
    gap: 0;
    background: #fff;
    border: 1px solid #eee;
    border-top: none;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

/* ---- CONTROLS PANEL ---- */
.controls-panel {
    width: 300px;
    min-width: 300px;
    background: #fafafa;
    border-right: 1px solid #eee;
    overflow-y: auto;
    max-height: 85vh;
}

.control-section {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}
.section-header {
    font-size: 13px;
    font-weight: 500;
    color: #E92063;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

/* Color grid */
.color-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.color-swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s;
}
.color-swatch:hover { transform: scale(1.15); }
.color-swatch.active {
    border-color: #7F77DD;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #7F77DD;
    transform: scale(1.1);
}

/* ---- ACCORDION ---- */
.accordion { border-bottom: 1px solid #eee; }
.accordion-toggle {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: #E92063;
}
.accordion-toggle .arrow {
    font-size: 10px;
    transition: transform 0.2s;
    color: #999;
}
.accordion-toggle .arrow.rotated { transform: rotate(-90deg); }
.accordion-content {
    padding: 0 16px 16px;
    transition: max-height 0.3s;
}
.accordion-content.collapsed {
    display: none;
}

/* ---- INPUTS ---- */
.input-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    color: #333;
    background: #fff;
}
.input-field:focus { outline: none; border-color: #7F77DD; }
textarea.input-field { resize: vertical; }
select.input-field { appearance: auto; }

/* ---- BUTTONS ---- */
.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-primary { background: #7F77DD; color: white; }
.btn-primary:hover { background: #534AB7; }
.btn-secondary { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-secondary:hover { background: #f5f5f5; }
.btn-whatsapp { background: #25D366; color: white; }
.btn-whatsapp:hover { background: #1DA851; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }

.format-btns { display: flex; gap: 4px; }
.fmt-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: #555;
    font-size: 16px;
}
.fmt-btn:hover { background: #f0f0f0; }

/* ---- SLIDERS ---- */
.slider-row {
    margin-bottom: 8px;
}
.slider-row label {
    font-size: 12px;
    color: #888;
    display: flex;
    justify-content: space-between;
    margin-bottom: 2px;
}
.slider-row label span { color: #E92063; font-weight: 500; }
.slider-row input[type=range] {
    width: 100%;
    accent-color: #E92063;
}
.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.control-row label { font-size: 12px; color: #888; }
.control-row input[type=color] {
    width: 36px;
    height: 28px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
}

/* ---- DROP ZONE ---- */
.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 13px;
}
.drop-zone:hover, .drop-zone.drag-over { border-color: #7F77DD; background: #f8f7ff; }
.drop-zone small { font-size: 11px; color: #bbb; }

/* ---- PREVIEW PANEL ---- */
.preview-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    background: #e8e8ec;
}

/* Zoom controls */
.zoom-controls {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,0.9);
    padding: 8px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 10;
}
.zoom-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #555;
    transition: background 0.15s;
}
.zoom-btn:hover { background: #f0f0f0; }
#zoom-slider {
    writing-mode: vertical-lr;
    direction: rtl;
    width: 28px;
    height: 100px;
    accent-color: #7F77DD;
}
.zoom-val {
    font-size: 11px;
    color: #888;
}
.preview-panel {
    position: relative;
}
/* Product view */
.product-view {
    position: relative;
    display: inline-block;
    max-width: 100%;
    background: #e8e8ec;
    border-radius: 8px;
    padding: 16px;
    overflow: hidden;
    transition: transform 0.2s ease;
    transform-origin: center center;
}
.product-view img {
    max-width: 100%;
    max-height: 60vh;
    display: block;
}
.product-view canvas {
    position: absolute;
    top: 5%;
    left: 18%;
    width: 64%;
    height: 90%;
    cursor: crosshair;
}

/* ---- TOOLBAR ---- */
.toolbar {
    display: flex;
    gap: 4px;
    margin: 12px 0;
    padding: 8px 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
    z-index: 20;
}
.tool-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #fff;
    color: #555;
    font-size: 18px;
    transition: background 0.15s;
}
.tool-btn:hover { background: #f0f0f0; }
.tool-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.toolbar-separator {
    width: 1px;
    background: #ddd;
    margin: 0 4px;
}

/* ---- ACTION BUTTONS ---- */
.action-buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    z-index: 20;
}
.action-buttons .btn { flex: 1; }




/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .main-container { flex-direction: column; }
    .controls-panel {
        width: 100%;
        min-width: auto;
        max-height: none;
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .product-view canvas {
        top: 12%;
        left: 18%;
        width: 64%;
        height: 58%;
    }
    .action-buttons { flex-direction: column; }
}
/* Font preview en selector */
select#text-font option {
    font-size: 16px;
    padding: 4px 0;
}

select#text-font option {
    font-size: 16px;
    padding: 4px 0;
}
select#text-font option[value="Lobster"] { font-family: 'Lobster'; }
select#text-font option[value="Pacifico"] { font-family: 'Pacifico'; }
select#text-font option[value="Dancing Script"] { font-family: 'Dancing Script'; }
select#text-font option[value="Satisfy"] { font-family: 'Satisfy'; }
select#text-font option[value="Caveat"] { font-family: 'Caveat'; }
select#text-font option[value="Great Vibes"] { font-family: 'Great Vibes'; }
select#text-font option[value="Sacramento"] { font-family: 'Sacramento'; }
select#text-font option[value="Yellowtail"] { font-family: 'Yellowtail'; }
select#text-font option[value="Permanent Marker"] { font-family: 'Permanent Marker'; }
select#text-font option[value="Righteous"] { font-family: 'Righteous'; }
select#text-font option[value="Poppins"] { font-family: 'Poppins'; }
select#text-font option[value="Montserrat"] { font-family: 'Montserrat'; }
select#text-font option[value="Oswald"] { font-family: 'Oswald'; }
select#text-font option[value="Anton"] { font-family: 'Anton'; }
select#text-font option[value="Bebas Neue"] { font-family: 'Bebas Neue'; }
select#text-font option[value="Black Ops One"] { font-family: 'Black Ops One'; }
select#text-font option[value="Bungee"] { font-family: 'Bungee'; }
select#text-font option[value="Fredoka One"] { font-family: 'Fredoka One'; }
select#text-font option[value="Bubblegum Sans"] { font-family: 'Bubblegum Sans'; }
select#text-font option[value="Comic Neue"] { font-family: 'Comic Neue'; }
select#text-font option[value="Patrick Hand"] { font-family: 'Patrick Hand'; }
select#text-font option[value="Impact"] { font-family: 'Impact'; }
select#text-font option[value="Georgia"] { font-family: 'Georgia'; }
/* ============================================================================
   FIX: WordPress theme override — specificity boost
   Agregar al FINAL de editor-camisetas-styles.css
   ============================================================================ */

#editor-camisetas-container .btn-primary {
    background: #7F77DD !important;
    color: white !important;
    border: none !important;
}
#editor-camisetas-container .btn-primary:hover {
    background: #534AB7 !important;
}
#editor-camisetas-container .btn-secondary {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
#editor-camisetas-container .btn-secondary:hover {
    background: #f5f5f5 !important;
}
#editor-camisetas-container .btn-whatsapp {
    background: #25D366 !important;
    color: white !important;
    border: none !important;
}
#editor-camisetas-container .btn-whatsapp:hover {
    background: #1DA851 !important;
}
#editor-camisetas-container .btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}
#editor-camisetas-container .tool-btn {
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
}
#editor-camisetas-container .tool-btn:hover {
    background: #f0f0f0 !important;
}
#editor-camisetas-container .fmt-btn {
    background: #fff !important;
    color: #555 !important;
    border: 1px solid #ddd !important;
}
#editor-camisetas-container .fmt-btn:hover {
    background: #f0f0f0 !important;
}
#editor-camisetas-container .product-type-btn {
    background: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
}
#editor-camisetas-container .product-type-btn.active {
    border-color: #7F77DD !important;
    background: #f8f7ff !important;
    color: #7F77DD !important;
}
#editor-camisetas-container .zoom-btn {
    background: #fff !important;
    color: #555 !important;
    border: none !important;
}
#editor-camisetas-container #btn-embroidery {
    background: #fff !important;
    border-color: #7F77DD !important;
    color: #7F77DD !important;
}

