/* ==============================
   DORILED COTIZADOR - ESTILOS
   ============================== */

/* Botón header */
.doriled-cotizador-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a1a2e;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 14px;
    transition: background 0.2s;
    position: relative;
}
.doriled-cotizador-btn:hover {
    background: #0f3460;
    color: #fff !important;
}
.doriled-cotizador-count {
    background: #e94560;
    color: #fff;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    padding: 0 4px;
    transition: transform 0.2s;
}
.doriled-cotizador-count.bump {
    transform: scale(1.4);
}

/* Botones en producto */
.doriled-agregar-cotizador {
    background: #0f3460 !important;
    color: #fff !important;
    border: none !important;
    margin-top: 6px !important;
    width: 100%;
    transition: background 0.2s !important;
}
.doriled-agregar-cotizador:hover {
    background: #e94560 !important;
}
.doriled-agregar-cotizador.agregado {
    background: #2ecc71 !important;
}

.doriled-ver-producto {
    background: #fff !important;
    color: #0f3460 !important;
    border: 2px solid #0f3460 !important;
}
.doriled-ver-producto:hover {
    background: #0f3460 !important;
    color: #fff !important;
}

/* Página cotizador */
#doriled-cotizador-page {
    max-width: 900px;
    margin: 0 auto;
}

/* Lista de productos en cotizador */
#doriled-productos-lista {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.doriled-vacio {
    grid-column: 1 / -1;
    text-align: center;
    color: #888;
    font-size: 16px;
    padding: 40px 0;
}

.doriled-producto-card {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    position: relative;
}
.doriled-producto-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
}
.doriled-producto-card .doriled-card-name {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #1a1a2e;
}
.doriled-producto-card .doriled-card-name a {
    color: inherit;
    text-decoration: none;
}
.doriled-producto-card .doriled-card-name a:hover {
    color: #e94560;
}
.doriled-quitar-btn {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #ccc;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}
.doriled-quitar-btn:hover {
    color: #e94560;
}

/* Botón limpiar */
#doriled-limpiar-btn {
    background: #fff !important;
    color: #e94560 !important;
    border: 2px solid #e94560 !important;
    margin-bottom: 32px;
    font-weight: 600;
    transition: all 0.2s !important;
}
#doriled-limpiar-btn:hover {
    background: #e94560 !important;
    color: #fff !important;
}

/* Formulario */
#doriled-form-wrap {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 28px;
}
#doriled-form-wrap h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1a1a2e;
    font-size: 20px;
}
.doriled-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.doriled-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.doriled-field:nth-child(3),
.doriled-field:nth-child(4) {
    grid-column: 1 / -1;
}
.doriled-field label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.doriled-field label span {
    color: #e94560;
}
.doriled-field input,
.doriled-field textarea {
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
.doriled-field input:focus,
.doriled-field textarea:focus {
    border-color: #0f3460;
    outline: none;
}
#doriled-enviar-btn {
    grid-column: 1 / -1;
    background: #e94560 !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    cursor: pointer;
    transition: background 0.2s !important;
}
#doriled-enviar-btn:hover {
    background: #c73652 !important;
}
#doriled-form-msg {
    grid-column: 1 / -1;
    text-align: center;
    font-weight: 600;
    padding: 10px;
    border-radius: 6px;
}
#doriled-form-msg.success {
    background: #d4edda;
    color: #155724;
}
#doriled-form-msg.error {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 600px) {
    .doriled-form {
        grid-template-columns: 1fr;
    }
    .doriled-field:nth-child(3),
    .doriled-field:nth-child(4) {
        grid-column: 1;
    }
}
